public class PPCDataConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
static com.ibm.commerce.payments.plugincontroller.Batch | buildBatch(com.ibm.commerce.payments.plugincontroller.beans.PPCBatchData batchData, java.util.ArrayList financialTransactionList)
This method is used to build the batch value object of WebSphere commerce payments level from batch data access bean.
|
static Credit | buildCreditWithPaymentInstruction(com.ibm.commerce.payments.plugincontroller.beans.PPCCreditData creditData, PaymentContext paymentContext)
This method builds a Credit value object and the associated PaymentInstruction value object from the database.
|
static Credit | buildCreditWithWholeTree(java.lang.String creditId, PaymentContext paymentContext)
This method builds a Credit value object from the database.
|
static FinancialTransaction | buildFinancialTransactionWithCredit(com.ibm.commerce.payments.plugincontroller.beans.PPCPayTranData paymentTranData, Credit creditVO, PaymentContext paymentContext)
This method builds the FinancialTransaction value object with Credit object.
|
static FinancialTransaction | buildFinancialTransactionWithPayment(com.ibm.commerce.payments.plugincontroller.beans.PPCPayTranData paymentTranData, Payment paymentVO, PaymentContext paymentContext)
This method builds the FinancialTransaction value object with Payment object.
|
static java.util.HashMap | buildHashMapExtendedData(java.util.Collection extDataDataCollection, PaymentContext context)
This method builds a HaspMap extendedData from a collection of PPCExtDataData.
|
static PaymentInstruction | buildPaymentInstruction(com.ibm.commerce.payments.plugincontroller.beans.PPCPayInstData piData, java.util.Collection extendedData, java.lang.Boolean maskSensitiveData, PaymentContext context)
This method builds a PaymentInstruction value object from a PPCPayInstData and a collection of PPCExtDataBean.
|
static PaymentInstruction | buildPaymentInstructionWithWholeTree(com.ibm.commerce.payments.plugincontroller.beans.PPCPayInstData piData, PaymentContext paymentContext)
This method builds a PaymentInstruction value object from a PPCPayInstData and the database.
|
static Payment | buildPaymentWithPaymentInstruction(com.ibm.commerce.payments.plugincontroller.beans.PPCPaymentData paymentData, PaymentContext paymentContext)
MaskSensitiveData builds a Payment value object with a PaymentInsruction from the database.
|
static Payment | buildPaymentWithWholeTree(java.lang.String paymentId, PaymentContext paymentContext)
This method builds a Payment value object from the database.
|
static void | filtersPPCPIExtendedData(PluginAdapter adapter, java.util.Collection ppcExtendedDataColl)
This method filters out garbage properties Before PPC persistent payment instruction extended data to database.
|
static void | updatePPCCreditData(com.ibm.commerce.payments.plugincontroller.beans.PPCCreditData creditData, Credit credit)
This method updates the data bean of PPCCredit using the information of the Credit value object.
|
static void | updatePPCExtDataCollection(java.util.Collection ppcExtendedData, java.util.HashMap extendedData, PaymentContext paymentContext)
This method updates a collection of data beans of PPCExtData using the information of the HashMap extendedData.
|
static void | updatePPCPayInstData(com.ibm.commerce.payments.plugincontroller.beans.PPCPayInstData piData, PaymentInstruction paymentInst)
This method updates the data bean of PPCPayInst using the information of the PaymentInstruction value object.
|
static void | updatePPCPaymentData(com.ibm.commerce.payments.plugincontroller.beans.PPCPaymentData paymentData, Payment payment)
This method updates the data bean of PPCPayment using the information of the Payment value object.
|
public static final java.lang.String COPYRIGHT
public static Credit buildCreditWithPaymentInstruction(com.ibm.commerce.payments.plugincontroller.beans.PPCCreditData creditData, PaymentContext paymentContext) throws CreditNotFoundException, PaymentInstructionNotFoundException, ConfigException, InternalException
This method builds a Credit value object and the associated PaymentInstruction value object from the database.
public static Credit buildCreditWithWholeTree(java.lang.String creditId, PaymentContext paymentContext) throws PaymentNotFoundException, CreditNotFoundException, PaymentInstructionNotFoundException, ConfigException, InternalException
This method builds a Credit value object from the database. The PaymentInstruction and all the related Payments and Credits are all navigatable from this Credit value object.
public static java.util.HashMap buildHashMapExtendedData(java.util.Collection extDataDataCollection, PaymentContext context) throws InternalException
This method builds a HaspMap extendedData from a collection of PPCExtDataData.
public static PaymentInstruction buildPaymentInstruction(com.ibm.commerce.payments.plugincontroller.beans.PPCPayInstData piData, java.util.Collection extendedData, java.lang.Boolean maskSensitiveData, PaymentContext context) throws ConfigException, InternalException
This method builds a PaymentInstruction value object from a PPCPayInstData and a collection of PPCExtDataBean. The returned PaymentInstruction value object has no payment or credit attached to it.
public static PaymentInstruction buildPaymentInstructionWithWholeTree(com.ibm.commerce.payments.plugincontroller.beans.PPCPayInstData piData, PaymentContext paymentContext) throws PaymentNotFoundException, CreditNotFoundException, PaymentInstructionNotFoundException, ConfigException, InternalException
This method builds a PaymentInstruction value object from a PPCPayInstData and the database. The return PaymentInstruction value object has all the associated payments and credits attached.
public static Payment buildPaymentWithPaymentInstruction(com.ibm.commerce.payments.plugincontroller.beans.PPCPaymentData paymentData, PaymentContext paymentContext) throws PaymentNotFoundException, PaymentInstructionNotFoundException, ConfigException, InternalException
MaskSensitiveData builds a Payment value object with a PaymentInsruction from the database.
public static FinancialTransaction buildFinancialTransactionWithPayment(com.ibm.commerce.payments.plugincontroller.beans.PPCPayTranData paymentTranData, Payment paymentVO, PaymentContext paymentContext) throws InternalException
public static FinancialTransaction buildFinancialTransactionWithCredit(com.ibm.commerce.payments.plugincontroller.beans.PPCPayTranData paymentTranData, Credit creditVO, PaymentContext paymentContext) throws InternalException
public static Payment buildPaymentWithWholeTree(java.lang.String paymentId, PaymentContext paymentContext) throws PaymentNotFoundException, CreditNotFoundException, PaymentInstructionNotFoundException, ConfigException, InternalException
This method builds a Payment value object from the database. The associated PaymentInstruction and all related Payments and Credits can be navigatable from this Payment.
public static void updatePPCCreditData(com.ibm.commerce.payments.plugincontroller.beans.PPCCreditData creditData, Credit credit)
This method updates the data bean of PPCCredit using the information of the Credit value object.
public static void updatePPCExtDataCollection(java.util.Collection ppcExtendedData, java.util.HashMap extendedData, PaymentContext paymentContext) throws InternalException
This method updates a collection of data beans of PPCExtData using the information of the HashMap extendedData.
In order to support that only those data needed to be changed is passed, there are three options here:If the element in old extended data is also in the new data, just modify it.
If the element in new extended data is not in old data, just add it.
If the element in old extended data is not in the new data, do nothing.
public static void updatePPCPayInstData(com.ibm.commerce.payments.plugincontroller.beans.PPCPayInstData piData, PaymentInstruction paymentInst)
This method updates the data bean of PPCPayInst using the information of the PaymentInstruction value object.
public static void updatePPCPaymentData(com.ibm.commerce.payments.plugincontroller.beans.PPCPaymentData paymentData, Payment payment)
This method updates the data bean of PPCPayment using the information of the Payment value object.
public static void filtersPPCPIExtendedData(PluginAdapter adapter, java.util.Collection ppcExtendedDataColl)
public static com.ibm.commerce.payments.plugincontroller.Batch buildBatch(com.ibm.commerce.payments.plugincontroller.beans.PPCBatchData batchData, java.util.ArrayList financialTransactionList) throws InternalException