|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.authorize.Transaction
net.authorize.aim.Transaction
public class Transaction
Container to hold all payment related information that gets passed back and forth to the payment gateway.
| Field Summary | |
|---|---|
protected String |
MD5Value
|
protected Map<String,String> |
merchantDefinedMap
|
protected Map<String,String> |
requestMap
|
protected TransactionType |
transactionType
|
| 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 |
| Constructor Summary | |
|---|---|
protected |
Transaction(Merchant merchant,
TransactionType transactionType,
BigDecimal amount)
Constructor for creation a transaction with typed objects. |
| Method Summary | |
|---|---|
static Transaction |
createTransaction(Merchant merchant,
TransactionType transactionType,
BigDecimal amount)
Create a Transaction for a merchant. |
static Transaction |
createTransaction(Transaction transaction,
BasicXmlDocument response)
Create a transaction from a response XML doc. |
static Transaction |
createTransaction(Transaction transaction,
Map<ResponseField,String> responseMap)
Create a transaction from a responseMap. |
String |
getAuthorizationCode()
Get the authorization code of the transaction. |
CreditCard |
getCreditCard()
Get the CreditCard associated with the transaction. |
String |
getCurrencyCode()
Get the currency code for Card Present transactions. |
BasicXmlDocument |
getCurrentResponse()
Return a response XML doc if the transaction was a Card Present transaction. |
Customer |
getCustomer()
Get the Customer information associated with the transaction. |
ECheck |
getECheck()
|
EmailReceipt |
getEmailReceipt()
Get the EmailReceipt associated with the transaction. |
String |
getMD5Value()
|
String |
getMerchantDefinedField(String field)
Get a merchant defined field. |
Map<String,String> |
getMerchantDefinedMap()
Get the merchant defined data map. |
Order |
getOrder()
Get the Order associated with the transaction. |
Map<String,String> |
getRequestMap()
|
String |
getResponseField(ResponseField responseField)
Returns the payment gateway response data for a specific ResponseField. |
Map<ResponseField,String> |
getResponseMap()
Return the payment gateway response data map. |
ShippingAddress |
getShippingAddress()
Get the ShippingAddress for the transaction request. |
ShippingCharges |
getShippingCharges()
Get the ShippingCharges associated with the transaction. |
String |
getTransactionId()
Return the payment gateway assigned transaction ID of the transaction. |
TransactionType |
getTransactionType()
Get the transaction type. |
boolean |
isCardPresent()
Return true if the transaction is a Card Present type transaction. |
void |
setAuthorizationCode(String authCode)
The authorization code of an original transaction not captured on the payment gateway. |
void |
setCreditCard(CreditCard creditCard)
Set the CreditCard information for the transaction request. |
void |
setCurrencyCode(String currencyCode)
Set the currency code for Card Present transactions. |
void |
setCustomer(Customer customer)
Set the Customer information for the transaction request. |
void |
setDuplicateWindow(int seconds)
The window of time after the submission of a transaction that a duplicate transaction can not be submitted. |
void |
setECheck(ECheck eCheck)
|
void |
setEmailReceipt(EmailReceipt emailReceipt)
Set the EmailReceipt information for the transaction request. |
void |
setMerchantDefinedField(String field,
String value)
Set a merchant defined field. |
void |
setOrder(Order order)
Set the Order (and OrderItems) for the transaction request. |
void |
setRecurringBilling(boolean recurringBillingStatus)
Indicating marker used by merchant account providers to identify transactions which originate from merchant hosted recurring billing applications. |
void |
setShippingAddress(ShippingAddress shippingAddress)
Set the ShippingAddress for the transaction request. |
void |
setShippingCharges(ShippingCharges shippingCharges)
Set the ShippingCharges for the transaction request. |
void |
setSplitTenderId(String splitTenderId)
The payment gateway assigned slit tender ID of an original transaction. |
void |
setTransactionId(String transactionId)
The payment gateway assigned transaction ID of an original transaction. |
String |
toNVPString()
Prepare the name/value pair mapping based on the Map(s) provided. |
| Methods inherited from class net.authorize.Transaction |
|---|
getDecodedString, getEncodedString, setEncapCharDelimiter, setTransactionFieldDelimiter, toXMLString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,String> requestMap
protected Map<String,String> merchantDefinedMap
protected TransactionType transactionType
protected String MD5Value
| Constructor Detail |
|---|
protected Transaction(Merchant merchant,
TransactionType transactionType,
BigDecimal amount)
merchant - transactionType - amount - | Method Detail |
|---|
public static final Transaction createTransaction(Transaction transaction,
Map<ResponseField,String> responseMap)
transaction - responseMap -
public static final Transaction createTransaction(Transaction transaction,
BasicXmlDocument response)
transaction - response -
public static Transaction createTransaction(Merchant merchant,
TransactionType transactionType,
BigDecimal amount)
merchant - transactionType - amount - public Map<String,String> getRequestMap()
public Map<ResponseField,String> getResponseMap()
public void setTransactionId(String transactionId)
transactionId - public void setSplitTenderId(String splitTenderId)
splitTenderId - public String getTransactionId()
public TransactionType getTransactionType()
public void setAuthorizationCode(String authCode)
authCode - public String getAuthorizationCode()
public void setCreditCard(CreditCard creditCard)
creditCard - public CreditCard getCreditCard()
public void setECheck(ECheck eCheck)
eCheck - the eCheck to setpublic ECheck getECheck()
public void setCustomer(Customer customer)
customer - public Customer getCustomer()
public void setEmailReceipt(EmailReceipt emailReceipt)
emailReceipt - public EmailReceipt getEmailReceipt()
public void setOrder(Order order)
order - public Order getOrder()
public void setShippingAddress(ShippingAddress shippingAddress)
shippingAddress - public ShippingAddress getShippingAddress()
public void setShippingCharges(ShippingCharges shippingCharges)
shippingCharges - public ShippingCharges getShippingCharges()
public void setDuplicateWindow(int seconds)
seconds - public void setCurrencyCode(String currencyCode)
currencyCode - public String getCurrencyCode()
public void setRecurringBilling(boolean recurringBillingStatus)
recurringBillingStatus -
public void setMerchantDefinedField(String field,
String value)
field - value - public String getMerchantDefinedField(String field)
field -
public Map<String,String> getMerchantDefinedMap()
public String getResponseField(ResponseField responseField)
responseField -
public String toNVPString()
toNVPString in class Transactionpublic boolean isCardPresent()
public BasicXmlDocument getCurrentResponse()
public String getMD5Value()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||