public class Transaction extends Transaction
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
extraOptions |
protected java.util.Map<HostedProfileSettingType,java.lang.String> |
hostedProfileSettings |
static java.lang.String |
XML_NAMESPACE |
BRACKET_PIPE_DELIMITER, CURRENCY_DECIMAL_PLACES, EMPTY_STRING, ENCAP_CHAR_DELIMITER, FALSE, MAX_AUTH_CODE_LENGTH, QUANTITY_DECIMAL_PLACES, TRANSACTION_FIELD_DELIMITER, TRUE, VERSION, ZERO_AMOUNT, ZERO_STRING| Modifier and Type | Method and Description |
|---|---|
void |
addExtraOption(java.lang.String key,
java.lang.String value)
Add extra option to the extra options map.
|
void |
addHostedProfileSetting(HostedProfileSettingType settingName,
java.lang.String settingValue)
Add hosted profile setting to the hosted profile settings map.
|
void |
addPaymentProfile(PaymentProfile paymentProfile)
Add a payment profile.
|
static Transaction |
createTransaction(Merchant merchant,
TransactionType transactionType)
Creates a transaction.
|
static Transaction |
createTransaction(Transaction transaction,
BasicXmlDocument response)
Create a transaction from a response.
|
BasicXmlDocument |
getCurrentRequest()
Returns the current request.
|
BasicXmlDocument |
getCurrentResponse()
Returns the current response.
|
java.util.ArrayList<PaymentProfile> |
getPaymentProfileList() |
java.lang.String |
getRefId() |
TransactionType |
getTransactionType() |
ValidationModeType |
getValidationMode()
Get the validation mode.
|
void |
setCardCode(java.lang.String cardCode)
Set the card code for specific transactions.
|
void |
setCustomerPaymentProfileId(java.lang.String customerPaymentProfileId)
Set the customer payment profile id.
|
void |
setCustomerProfile(CustomerProfile customerProfile)
Set the customer profile.
|
void |
setCustomerProfileId(java.lang.String customerProfileId)
Set the customer profile id.
|
void |
setCustomerShippingAddressId(java.lang.String customerShippingAddressId)
Set the customer shipping address id.
|
void |
setExtraOptions(java.util.Map<java.lang.String,java.lang.String> extraOptions)
Sets the extra options.
|
void |
setHostedProfileSettings(java.util.Map<HostedProfileSettingType,java.lang.String> settings)
Sets the hosted profile settings.
|
void |
setPaymentProfileList(java.util.ArrayList<PaymentProfile> paymentProfileList) |
void |
setPaymentTransaction(PaymentTransaction paymentTransaction)
Set the payment transaction.
|
void |
setRefId(java.lang.String refId) |
void |
setShipTo(Address shipTo)
Set shipping information.
|
void |
setValidationMode(ValidationModeType validationMode)
Set the validation mode for the request.
|
java.lang.String |
toXMLString()
Convert request to XML.
|
getDecodedString, getEncodedString, setEncapCharDelimiter, setTransactionFieldDelimiter, toNVPStringpublic static java.lang.String XML_NAMESPACE
protected java.util.Map<java.lang.String,java.lang.String> extraOptions
protected java.util.Map<HostedProfileSettingType,java.lang.String> hostedProfileSettings
public static Transaction createTransaction(Merchant merchant, TransactionType transactionType)
merchant - transactionType - public static final Transaction createTransaction(Transaction transaction, BasicXmlDocument response)
transaction - response - public TransactionType getTransactionType()
public BasicXmlDocument getCurrentRequest()
public BasicXmlDocument getCurrentResponse()
public java.lang.String toXMLString()
toXMLString in class Transactionpublic java.lang.String getRefId()
public void setRefId(java.lang.String refId)
refId - the refId to setpublic java.util.ArrayList<PaymentProfile> getPaymentProfileList()
public void setPaymentProfileList(java.util.ArrayList<PaymentProfile> paymentProfileList)
paymentProfileList - the paymentProfileList to setpublic void addPaymentProfile(PaymentProfile paymentProfile)
paymentProfile - public void setShipTo(Address shipTo)
shipTo - public ValidationModeType getValidationMode()
public void setValidationMode(ValidationModeType validationMode)
validationMode - the validationMode to setpublic void setCustomerProfile(CustomerProfile customerProfile)
customerProfile - the customerProfile to setpublic void setCustomerProfileId(java.lang.String customerProfileId)
customerProfileId - public void setCustomerPaymentProfileId(java.lang.String customerPaymentProfileId)
customerPaymentProfileId - public void setCustomerShippingAddressId(java.lang.String customerShippingAddressId)
customerShippingAddressId - public void setCardCode(java.lang.String cardCode)
cardCode - public void setPaymentTransaction(PaymentTransaction paymentTransaction)
paymentTransaction - the paymentTransaction to setpublic void setExtraOptions(java.util.Map<java.lang.String,java.lang.String> extraOptions)
extraOptions - the extraOptions to setpublic void addExtraOption(java.lang.String key,
java.lang.String value)
key - value - public void setHostedProfileSettings(java.util.Map<HostedProfileSettingType,java.lang.String> settings)
settings - the settings to setpublic void addHostedProfileSetting(HostedProfileSettingType settingName, java.lang.String settingValue)
settingName - settingValue - Copyright © 2018. All Rights Reserved.