com.anywherecommerce.android.sdk.transactions
Interface Transaction
-
All Superinterfaces:java.lang.Cloneable, java.io.SerializableAll Known Subinterfaces:CardTransaction, CheckTransaction, CryptoTransaction, EmvTransaction, KeyedTransaction, ReferenceTransaction, SwipeTransaction, TokenizedCardTransactionAll Known Implementing Classes:AnyPayCardTransaction, AnyPayEmvTransaction, AnyPayReferenceTransaction, AnyPaySwipeTransaction, AnyPayTransaction, PropayReferenceTransaction, PropayTransaction-
public interface <span class="typeNameLabel">Transaction</span> extends java.io.Serializable, java.lang.Cloneable
Method Summary
Modifier and TypeMethod and Description`void````
<span class="memberNameLink">
addCustomField(java.lang.String name,
java.lang.Object value)
` `void
CustomLineItem customLineItem)
void``
FeeLineItem feeLineItem)
void``
TaxLineItem taxLineItem)
void``
GatewayResponse response)
void``
calculateAmounts()
void``
cancel()
createReversal()
void``
TransactionListener listener)
Amount``
getAmountAvailableToRefund()
java.lang.String``
Amount``
getApprovedAmount()
java.lang.String``
getCustomerDetails()
java.lang.Object``
getCustomField(java.lang.String name)
java.util.HashMap<java.lang.String,java.lang.Object>``
getCustomLineItem(java.lang.String name)
java.util.Collection<
Endpoint``
getEndpoint()
java.lang.String``
getFee(java.lang.String name)
java.util.Collection<
FeeLineItem>``
getFees()
getGeolocationData()
java.lang.String``
getInternalId()
java.lang.String``
getKeywords()
java.lang.String``
getNotes()
java.lang.String``
getOperator()
java.lang.String``
getPendingStatus()
java.lang.String``
getResponseText()
java.lang.String``
Amount``
getTax(java.lang.String name)
java.util.Collection<
TaxLineItem>``
getTaxes()
getTip()
Amount``
getTotalAmount()
java.util.Date``
getTransactionType()
java.util.Collection<
getWarnings()
java.lang.Boolean``
isApproved()
boolean``
isCancelled()
boolean``
isExecuting()
boolean``
isFinalized()
java.lang.Boolean``
isPartiallyApproved()
boolean``
isSuspended()
void``
persist()
void``
proceed()
void``
MeaningfulMessage warning)
void``
removeCustomField(java.lang.String name)
void``
CustomLineItem customLineItem)
void``
FeeLineItem feeLineItem)
void``
TaxLineItem taxLineItem)
void``
removeTip()
void````
sendReceipt(java.lang.String to,
RequestListener listener)
` `void
setCurrency(java.util.Currency currency)
void``
setCurrency(java.lang.String currency)
void``
CustomerDetails customerDetails)
void``
Endpoint endpoint)
void``
GeolocationData geolocationData)
void``
setKeywords(java.lang.String string)
void``
setNotes(java.lang.String notes)
void``
MeaningfulMessageListener listener)
void``
setOperator(java.lang.String string)
void``
PaymentMethod method)
void``
setResponseText(java.lang.String responseText)
void``
Amount amount)
void``
TipLineItem tipLineItem)
void``
Amount amount)
void``
TransactionType type)
void``
suspend()`
Method Detail
getInternalId
`java.lang.String getInternalId()`
getExternalId
`java.lang.String getExternalId()`
getPaymentId
`java.lang.String getPaymentId()`
getTransactionTime
`java.util.Date getTransactionTime()`
getTransactionType
`
TransactionType getTransactionType()`
setTransactionType
`void setTransactionType(
TransactionType type)`
getPaymentMethod
`
PaymentMethod getPaymentMethod()`
setPaymentMethod
`void setPaymentMethod(
PaymentMethod method)`
getCurrentStatus
`
TransactionStatus getCurrentStatus()`
getPendingStatus
`
TransactionStatus getPendingStatus()`
getPaymentStatus
`
PaymentStatus getPaymentStatus()`
getCurrency
`java.lang.String getCurrency()`
setCurrency
`void setCurrency(java.lang.String currency)`
setCurrency
`void setCurrency(java.util.Currency currency)`
getOperator
`java.lang.String getOperator()`
setOperator
`void setOperator(java.lang.String string)`
getKeywords
`java.lang.String getKeywords()`
setKeywords
`void setKeywords(java.lang.String string)`
getEndpoint
`
Endpoint getEndpoint()`
setEndpoint
`void setEndpoint(
Endpoint endpoint)`
setTotalAmount
`void setTotalAmount(
Amount amount)`
getTotalAmount
`
Amount getTotalAmount()`
setSubtotal
`void setSubtotal(
Amount amount)`
getSubtotal
`
Amount getSubtotal()`
getNotes
`java.lang.String getNotes()`
setNotes
`void setNotes(java.lang.String notes)`
getCustomerDetails
`
CustomerDetails getCustomerDetails()`
setCustomerDetails
`void setCustomerDetails(
CustomerDetails customerDetails)`
getGatewayResponse
`
GatewayResponse getGatewayResponse()`
applyGatewayResponse
`void applyGatewayResponse(
GatewayResponse response)`
isApproved
`java.lang.Boolean isApproved()`
isPartiallyApproved
`java.lang.Boolean isPartiallyApproved()`
isCancelled
`boolean isCancelled()`
isSuspended
`boolean isSuspended()`
isFinalized
`boolean isFinalized()`
getApprovalCode
`java.lang.String getApprovalCode()`
getApprovedAmount
`
Amount getApprovedAmount()`
getAmountAvailableToRefund
`
Amount getAmountAvailableToRefund()`
getStatusText
`java.lang.String getStatusText()`
getResponseText
`java.lang.String getResponseText()`
setResponseText
`void setResponseText(java.lang.String responseText)`
createReversal
`
Transaction createReversal()`
cancel
`void cancel()`
suspend
`void suspend()`
persist
`void persist()`
sendReceipt
```
void sendReceipt(java.lang.String to,
RequestListener listener)
```
addTax
`void addTax(
TaxLineItem taxLineItem)`
removeTax
`void removeTax(
TaxLineItem taxLineItem)`
getTax
`
TaxLineItem getTax(java.lang.String name)`
getTaxes
`java.util.Collection<
TaxLineItem> getTaxes()`
setTip
`void setTip(
TipLineItem tipLineItem)`
getTip
`
TipLineItem getTip()`
removeTip
`void removeTip()`
addFee
`void addFee(
FeeLineItem feeLineItem)`
removeFee
`void removeFee(
FeeLineItem feeLineItem)`
getFee
`
FeeLineItem getFee(java.lang.String name)`
getFees
`java.util.Collection<
FeeLineItem> getFees()`
addCustomLineItem
`void addCustomLineItem(
CustomLineItem customLineItem)`
removeCustomLineItem
`void removeCustomLineItem(
CustomLineItem customLineItem)`
getCustomLineItem
`
CustomLineItem getCustomLineItem(java.lang.String name)`
getCustomLineItems
`java.util.Collection<
CustomLineItem> getCustomLineItems()`
addCustomField
```
void addCustomField(java.lang.String name,
java.lang.Object value)
```
removeCustomField
`void removeCustomField(java.lang.String name)`
getCustomField
`java.lang.Object getCustomField(java.lang.String name)`
getCustomFields
`java.util.HashMap<java.lang.String,java.lang.Object> getCustomFields()`
calculateAmounts
`void calculateAmounts()`
execute
`void execute(
TransactionListener listener)`
proceed
`void proceed()`
getWarnings
`java.util.Collection<
MeaningfulMessage> getWarnings()`
setOnWarningListener
`void setOnWarningListener(
MeaningfulMessageListener listener)`
raiseWarning
`void raiseWarning(
MeaningfulMessage warning)`
setGeolocationData
`void setGeolocationData(
GeolocationData geolocationData)`
getGeolocationData
`
GeolocationData getGeolocationData()`
isExecuting
`boolean isExecuting()`