Transaction

com.anywherecommerce.android.sdk.transactions

Interface Transaction

Method Summary

  Modifier and TypeMethod and Description`void````
  <span class="memberNameLink">

addCustomField(java.lang.String name,
java.lang.Object value)
` `void

addCustomLineItem(

CustomLineItem customLineItem) void``

addFee(

FeeLineItem feeLineItem) void``

addTax(

TaxLineItem taxLineItem) void``

applyGatewayResponse(

GatewayResponse response) void``

calculateAmounts() void``

cancel()

Transaction``

createReversal() void``

execute(

TransactionListener listener)

Amount``

getAmountAvailableToRefund() java.lang.String``

getApprovalCode()

Amount``

getApprovedAmount() java.lang.String``

getCurrency()

TransactionStatus``

getCurrentStatus()

CustomerDetails``

getCustomerDetails() java.lang.Object``

getCustomField(java.lang.String name) java.util.HashMap<java.lang.String,java.lang.Object>``

getCustomFields()

CustomLineItem``

getCustomLineItem(java.lang.String name) java.util.Collection<

CustomLineItem>``

getCustomLineItems()

Endpoint``

getEndpoint() java.lang.String``

getExternalId()

FeeLineItem``

getFee(java.lang.String name) java.util.Collection<

FeeLineItem>``

getFees()

GatewayResponse``

getGatewayResponse()

GeolocationData``

getGeolocationData() java.lang.String``

getInternalId() java.lang.String``

getKeywords() java.lang.String``

getNotes() java.lang.String``

getOperator() java.lang.String``

getPaymentId()

PaymentMethod``

getPaymentMethod()

PaymentStatus``

getPaymentStatus()

TransactionStatus``

getPendingStatus() java.lang.String``

getResponseText() java.lang.String``

getStatusText()

Amount``

getSubtotal()

TaxLineItem``

getTax(java.lang.String name) java.util.Collection<

TaxLineItem>``

getTaxes()

TipLineItem``

getTip()

Amount``

getTotalAmount() java.util.Date``

getTransactionTime()

TransactionType``

getTransactionType() java.util.Collection<

MeaningfulMessage>``

getWarnings() java.lang.Boolean``

isApproved() boolean``

isCancelled() boolean``

isExecuting() boolean``

isFinalized() java.lang.Boolean``

isPartiallyApproved() boolean``

isSuspended() void``

persist() void``

proceed() void``

raiseWarning(

MeaningfulMessage warning) void``

removeCustomField(java.lang.String name) void``

removeCustomLineItem(

CustomLineItem customLineItem) void``

removeFee(

FeeLineItem feeLineItem) void``

removeTax(

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``

setCustomerDetails(

CustomerDetails customerDetails) void``

setEndpoint(

Endpoint endpoint) void``

setGeolocationData(

GeolocationData geolocationData) void``

setKeywords(java.lang.String string) void``

setNotes(java.lang.String notes) void``

setOnWarningListener(

MeaningfulMessageListener listener) void``

setOperator(java.lang.String string) void``

setPaymentMethod(

PaymentMethod method) void``

setResponseText(java.lang.String responseText) void``

setSubtotal(

Amount amount) void``

setTip(

TipLineItem tipLineItem) void``

setTotalAmount(

Amount amount) void``

setTransactionType(

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()`