|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.authorize.Transaction
net.authorize.cim.Transaction
public class Transaction
Transaction object for CIM.
| Field Summary | |
|---|---|
protected Map<String,String> |
extraOptions
|
static String |
XML_NAMESPACE
|
| Fields inherited from class net.authorize.Transaction |
|---|
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 |
| Method Summary | |
|---|---|
void |
addExtraOption(String key,
String value)
Add extra option to the extra options 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. |
ArrayList<PaymentProfile> |
getPaymentProfileList()
|
String |
getRefId()
|
TransactionType |
getTransactionType()
|
ValidationModeType |
getValidationMode()
Get the validation mode. |
void |
setCardCode(String cardCode)
Set the card code for specific transactions. |
void |
setCustomerPaymentProfileId(String customerPaymentProfileId)
Set the customer payment profile id. |
void |
setCustomerProfile(CustomerProfile customerProfile)
Set the customer profile. |
void |
setCustomerProfileId(String customerProfileId)
Set the customer profile id. |
void |
setCustomerShippingAddressId(String customerShippingAddressId)
Set the customer shipping address id. |
void |
setExtraOptions(Map<String,String> extraOptions)
Sets the extra options. |
void |
setPaymentProfileList(ArrayList<PaymentProfile> paymentProfileList)
|
void |
setPaymentTransaction(PaymentTransaction paymentTransaction)
Set the payment transaction. |
void |
setRefId(String refId)
|
void |
setShipTo(Address shipTo)
Set shipping information. |
void |
setValidationMode(ValidationModeType validationMode)
Set the validation mode for the request. |
String |
toXMLString()
Convert request to XML. |
| Methods inherited from class net.authorize.Transaction |
|---|
getDecodedString, getEncodedString, setEncapCharDelimiter, setTransactionFieldDelimiter, toNVPString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String XML_NAMESPACE
protected Map<String,String> extraOptions
| Method Detail |
|---|
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 String toXMLString()
toXMLString in class Transactionpublic String getRefId()
public void setRefId(String refId)
refId - the refId to setpublic ArrayList<PaymentProfile> getPaymentProfileList()
public void setPaymentProfileList(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(String customerProfileId)
customerProfileId - public void setCustomerPaymentProfileId(String customerPaymentProfileId)
customerPaymentProfileId - public void setCustomerShippingAddressId(String customerShippingAddressId)
customerShippingAddressId - public void setCardCode(String cardCode)
cardCode - public void setPaymentTransaction(PaymentTransaction paymentTransaction)
paymentTransaction - the paymentTransaction to setpublic void setExtraOptions(Map<String,String> extraOptions)
extraOptions - the extraOptions to set
public void addExtraOption(String key,
String value)
key - value -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||