Classes | |
enum | ManualPromptOption |
Public Member Functions | |
Transaction (String type) | |
Transaction (String type, String invoiceId) | |
String | getOriginator () |
void | setOriginator (String originator) |
String | getAcquirerMerchantId () |
void | setAcquirerMerchantId (String acquirerMerchantId) |
String | getAcquirerTerminalId () |
void | setAcquirerTerminalId (String acquirerTerminalId) |
String | getAcquirerId () |
void | setAcquirerId (String acquirerId) |
String | getGatewayMerchantId () |
void | setGatewayMerchantId (String gatewayMerchantId) |
String | getGatewayTerminalId () |
void | setGatewayTerminalId (String gatewayTerminalId) |
void | setInvoiceId (String invoiceId) |
String | getInvoiceId () |
void | setTransactionId (String transactionId) |
String | getTransactionId () |
void | setReferenceTransactionId (String transactionId) |
String | getReferemceTransactionId () |
void | setVenue (String venue) |
String | getVenue () |
void | setLane (String lane) |
String | getLane () |
void | setCashierId (String cashierId) |
String | getCashierId () |
void | setCashierDisplayName (String cashierDisplayName) |
String | getCashierDisplayName () |
void | setAmount (BigDecimal amount) |
BigDecimal | getAmount () |
void | setTaxAmount (BigDecimal taxAmount) |
BigDecimal | getTaxAmount () |
void | setGratuityAmount (BigDecimal gratuityAmount) |
BigDecimal | getGratuityAmount () |
void | setDonationAmount (BigDecimal donationAmount) |
BigDecimal | getDonationAmount () |
void | setAmountTotals (@Nullable final AmountTotals amountTotals) |
AmountTotals | getAmountTotals () |
void | setCurrency (String currency) |
String | getCurrency () |
void | setAllowsManualEntry (boolean allowsManualEntry) |
boolean | getAllowsManualEntry () |
void | setManualPromptOptions (ManualPromptOption[] manualPromptOptions) |
ManualPromptOption [] | getManualPromptOptions () |
void | setTransactionType (String transactionType) |
String | getTransactionType () |
void | setCustomerPhoneNumber (String customerPhoneNumber) |
String | getCustomerPhoneNumber () |
void | setCustomerEmail (String customerEmail) |
String | getCustomerEmail () |
ArrayList< Payment > | getPayments () |
void | setPayments (ArrayList< Payment > payments) |
String | getResult () |
Basket | getBasket () |
void | setBasket (Basket basket) |
Transaction | getReferenceTransaction () |
void | setReferenceTransaction (Transaction referenceTransaction) |
Integer | getShiftId () |
void | setShiftId (Integer shiftId) |
void | merge (Transaction other, boolean aggressively) |
Transaction (Parcel in, int parcelVersion) | |
void | setParcelVersion (int targetParcelVersion) |
void | writeToParcel (Parcel dest, int flags) |
JSONObject | getAsJsonObject () throws JSONException |
![]() | |
CPBaseParcel (Parcel in, int parcelVersion) | |
![]() | |
BaseParcel (Parcel in, int parcelVersion) | |
void | setParcelVersion (int targetParcelVersion) |
final int | getParcelVersion () |
String | getClassName () |
void | writeToParcel (Parcel dest, int flags) |
int | describeContents () |
Static Public Attributes | |
static final String | PAYMENT_TYPE = "TRANSACTION_PAYMENT_TYPE" |
static final String | REFUND_TYPE = "TRANSACTION_REFUND_TYPE" |
static final String | VOID_TYPE = "TRANSACTION_VOID_TYPE" |
static final String | PRE_AUTHORISATION_TYPE = "TRANSACTION_PRE_AUTHORISATION_TYPE" |
static final String | PRE_AUTHORISATION_COMPLETION_TYPE |
static final String | DEFERRED_PAYMENT_TYPE = "TRANSACTION_DEFERRED_PAYMENT_TYPE" |
static final String | DEFERRED_PAYMENT_COMPLETION_TYPE |
static final String | RESULT_SUCCESS = "SUCCESS" |
static final String | RESULT_CANCELLED = "CANCELLED" |
static final String | ORIGINATOR_PAYMENT_APPLICATION = "PAYMENT_APPLICATION" |
static final String | ORIGINATOR_COMMERCE_APPLICATION = "CP_APPLICATION" |
static final Creator< Transaction > | CREATOR |
![]() | |
static final Parcelable.Creator< BaseParcel > | CREATOR |
Additional Inherited Members | |
![]() | |
static< CPEntityType extends CPBaseParcel > CPEntityType | buildFromCpJson ( @NonNull JSONObject jsonObject, @NonNull Class< CPEntityType > clazz, @Nullable CPEntityType parentObject) |
![]() | |
abstract< CPEntityType extends CPBaseParcel > CPEntityType | buildFromCpJson ( @NonNull JSONObject jsonObject, @Nullable CPEntityType parentObject) |
![]() | |
static< CPEntityType extends CPBaseParcel > ArrayList< CPEntityType > | buildListFromCpJson ( @NonNull JSONObject jsonObject, @NonNull Class< CPEntityType > clazz, @NonNull String targetJsonAlias) |
![]() | |
static void | safelySetParcelVersion (final int targetParcelVersion, @Nullable BaseParcel item) |
static void | safelySetParcelVersion (final int targetParcelVersion, @Nullable List<? extends BaseParcel > items) |
static< T extends BaseParcel > void | safelySetParcelVersion (final int targetParcelVersion, @Nullable T[] items) |
This represents the data that is shared between the terminal and the Android application. Setting the fields is only relevant when sending the data to the terminal, and conversely, getting the fields is only relevant when receiving this object from the terminal.
A word on subtotals. In North America, we automatically calculate the subtotal by subtracting tax and gratuity from the total amount, but leaving donation amounts included.
Definition at line 37 of file Transaction.java.
Transaction | ( | String | type | ) |
Create a new transaction with a type and auto-generated invoiceId.
Definition at line 138 of file Transaction.java.
Transaction | ( | String | type, |
String | invoiceId | ||
) |
Create a new transaction with a type and invoiceId.
Definition at line 145 of file Transaction.java.
String getAcquirerId | ( | ) |
Get the ID for the acquirer if available, otherwise returns null.
Definition at line 203 of file Transaction.java.
String getAcquirerMerchantId | ( | ) |
Get the acquirer's merchant ID if available, otherwise returns null.
Definition at line 181 of file Transaction.java.
String getAcquirerTerminalId | ( | ) |
Get the acquirer's terminal ID if available, otherwise returns null.
Definition at line 192 of file Transaction.java.
boolean getAllowsManualEntry | ( | ) |
Refer to setAllowsManualEntry(boolean allowsManualEntry)
Definition at line 458 of file Transaction.java.
BigDecimal getAmount | ( | ) |
Refer to setAmount(BigDecimal amount)
Definition at line 351 of file Transaction.java.
AmountTotals getAmountTotals | ( | ) |
Creates a new AmountTotals object based off of the current values. See setAmountTotals(AmountTotals).
Definition at line 425 of file Transaction.java.
Basket getBasket | ( | ) |
The basket currently associated with the transaction. The actual object may update over time as it is changed through the AIDL communications with the service and updated by the Basket Manager, but the contents will stay intact.
Definition at line 552 of file Transaction.java.
String getCashierDisplayName | ( | ) |
Refer to setCashierDisplayName(String cashierDisplayName)
Definition at line 335 of file Transaction.java.
String getCashierId | ( | ) |
Refer to setCashierId(String cashierId)
Definition at line 319 of file Transaction.java.
String getCurrency | ( | ) |
Refer to setCurrency(String currency)
Definition at line 442 of file Transaction.java.
String getCustomerEmail | ( | ) |
Refer to setCustomerEmail(String customerEmail)
Definition at line 522 of file Transaction.java.
String getCustomerPhoneNumber | ( | ) |
Refer to setCustomerPhoneNumber(String customerPhoneNumber)
Definition at line 506 of file Transaction.java.
BigDecimal getDonationAmount | ( | ) |
Refer to setDonationAmount(BigDecimal donationAmount)
Definition at line 401 of file Transaction.java.
String getGatewayMerchantId | ( | ) |
Get the gateway's merchant ID if available, otherwise returns null.
Definition at line 214 of file Transaction.java.
String getGatewayTerminalId | ( | ) |
Get the gateway's terminal ID if available, otherwise returns null.
Definition at line 225 of file Transaction.java.
BigDecimal getGratuityAmount | ( | ) |
Refer to setGratuityAmount(BigDecimal gratuityAmount)
Definition at line 384 of file Transaction.java.
String getInvoiceId | ( | ) |
Refer to setInvoiceId(String invoice)
Definition at line 245 of file Transaction.java.
String getLane | ( | ) |
Refer to setLane(String lane)
Definition at line 305 of file Transaction.java.
ManualPromptOption [] getManualPromptOptions | ( | ) |
Refer to setManualPromptOptions(ManualPromptOption[] manualPromptOptions)
Definition at line 473 of file Transaction.java.
String getOriginator | ( | ) |
Returns either ORIGINATOR_PAYMENT_APPLICATION or ORIGINATOR_COMMERCE_APPLICATION.
Definition at line 170 of file Transaction.java.
ArrayList<Payment> getPayments | ( | ) |
The payments applied to the transaction amount in the order they are initiated. This will update throughout the transaction, as the payment application may handle multiple tenders, or other applications may contribute alternate forms of payment.
Definition at line 531 of file Transaction.java.
String getReferemceTransactionId | ( | ) |
The ID of a referenced transaction. Generally useful in the case of VOID or PRE_AUTHORISATION, referencing the original transaction as the reference transaction for voiding or completing.
Definition at line 277 of file Transaction.java.
Transaction getReferenceTransaction | ( | ) |
A reference transaction. Generally useful in the case of VOID or PRE_AUTHORISATION, include the original transaction as the reference transaction for voiding or completing.
Definition at line 568 of file Transaction.java.
String getResult | ( | ) |
The final result of the transaction, either RESULT_SUCCESS or RESULT_CANCELLED.
Definition at line 543 of file Transaction.java.
BigDecimal getTaxAmount | ( | ) |
Refer to setTaxAmount(BigDecimal taxAmount)
Definition at line 367 of file Transaction.java.
String getTransactionId | ( | ) |
Refer to setTransactionId(String transactionId)
Definition at line 261 of file Transaction.java.
String getTransactionType | ( | ) |
Refer to setTransactionType(String transactionType)
Definition at line 490 of file Transaction.java.
String getVenue | ( | ) |
Refer to setVenue(String venue)
Definition at line 291 of file Transaction.java.
void merge | ( | Transaction | other, |
boolean | aggressively | ||
) |
Merge in the values from the other item, useful when re-synchronizing copied data. Use aggressively if current valid values should be overriden by the other item.
Definition at line 591 of file Transaction.java.
void setAllowsManualEntry | ( | boolean | allowsManualEntry | ) |
Determines if the payment application on the terminal will accept manual entry of card data for payment. Defaults to false.
Definition at line 450 of file Transaction.java.
void setAmount | ( | BigDecimal | amount | ) |
The total amount of the transaction to be paid by the customer as a GAAP-standard BigDecimal. This amount may change throughout the transaction depending on basket modifications, discounts, offers, or other interactions by other applications. This is required.
Definition at line 344 of file Transaction.java.
void setAmountTotals | ( | @Nullable final AmountTotals | amountTotals | ) |
Allows updating all of the totals at once. If null, resets the amounts back to their default values.
Definition at line 409 of file Transaction.java.
void setBasket | ( | Basket | basket | ) |
Refer to getBasket().
Definition at line 559 of file Transaction.java.
void setCashierDisplayName | ( | String | cashierDisplayName | ) |
The display name of the cashier, to be used when printing the receipt or otherwise displaying cashier information. This is optional.
Definition at line 327 of file Transaction.java.
void setCashierId | ( | String | cashierId | ) |
The ID of the cashier. This is optional.
Definition at line 312 of file Transaction.java.
void setCurrency | ( | String | currency | ) |
The base currency for the transaction. This value should not change after the transaction is started. This is required.
Definition at line 435 of file Transaction.java.
void setCustomerEmail | ( | String | customerEmail | ) |
The email address of the customer. This may be added during or after the transaction. This is optional.
Definition at line 514 of file Transaction.java.
void setCustomerPhoneNumber | ( | String | customerPhoneNumber | ) |
The phone number of the customer. This may be added during or after the transaction. This is optional.
Definition at line 498 of file Transaction.java.
void setDonationAmount | ( | BigDecimal | donationAmount | ) |
The total donation amount as a GAAP-standard BigDecimal. This amount may change throughout the transaction depending on basket modifications, discounts, offers, or other interactions by other applications. This is optional.
Definition at line 393 of file Transaction.java.
void setGratuityAmount | ( | BigDecimal | gratuityAmount | ) |
The total tip/gratuity amount as a GAAP-standard BigDecimal. This amount may change throughout the transaction depending on basket modifications, discounts, offers, or other interactions by other applications. This is optional.
Definition at line 376 of file Transaction.java.
void setInvoiceId | ( | String | invoiceId | ) |
The ID of the invoice. This is generated by the system if not provided, and cannot be changed. The Invoice is an abstract structure containing relevant transactions, a basket, and payments.
Definition at line 238 of file Transaction.java.
void setLane | ( | String | lane | ) |
The ID of the lane for this device. This is optional.
Definition at line 298 of file Transaction.java.
void setManualPromptOptions | ( | ManualPromptOption [] | manualPromptOptions | ) |
Sets the manual prompt options desired. Meaningful only when allowsManualEntry is true.
Definition at line 465 of file Transaction.java.
void setReferenceTransaction | ( | Transaction | referenceTransaction | ) |
Refer to getReferenceTransaction().
Definition at line 575 of file Transaction.java.
void setReferenceTransactionId | ( | String | transactionId | ) |
Refer to getReferemceTransactionId().
Definition at line 268 of file Transaction.java.
void setTaxAmount | ( | BigDecimal | taxAmount | ) |
The total tax amount applied as a GAAP-standard BigDecimal. This amount may change throughout the transaction depending on basket modifications, discounts, offers, or other interactions by other applications. This is optional.
Definition at line 360 of file Transaction.java.
void setTransactionId | ( | String | transactionId | ) |
Sets the ID for this transaction. This is generated by the system if not provided, and cannot be changed. This is primarily used for audit purposes.
Definition at line 253 of file Transaction.java.
void setTransactionType | ( | String | transactionType | ) |
Type of payment transaction the Payment Application is executing. The underlying service will automatically determine this based on the methods used to start the transaction if this is not provided.
Definition at line 482 of file Transaction.java.
void setVenue | ( | String | venue | ) |
The ID of the venue. This is optional.
Definition at line 284 of file Transaction.java.
|
static |
Definition at line 766 of file Transaction.java.
|
static |
Not currently supported. Finish a deferred payment plan.
Definition at line 66 of file Transaction.java.
|
static |
Not currently supported. Begin or continue a deferred payment plan.
Definition at line 62 of file Transaction.java.
|
static |
The identifier for a Commerce Applcation as the originator of a transaction. This includes POS applications.
Definition at line 87 of file Transaction.java.
|
static |
The identifier for the payment application on the terminal as the originator of a transaction.
Definition at line 82 of file Transaction.java.
|
static |
A direct payment, attempting to collect the funds in full at once.
Definition at line 41 of file Transaction.java.
|
static |
Completes a pre-authorisation
Definition at line 57 of file Transaction.java.
|
static |
Authorizes an amount to be completed at a later time.
Definition at line 53 of file Transaction.java.
|
static |
A refund for a specific payment.
Definition at line 45 of file Transaction.java.
|
static |
The final result for a transaction that was cancelled.
Definition at line 76 of file Transaction.java.
|
static |
The final result for a successful transaction.
Definition at line 72 of file Transaction.java.
|
static |
Used to void a transaction.
Definition at line 49 of file Transaction.java.
This document is the confidential property of Verifone, Inc. Any reproduction or distribution of this document, in whole or in part, or the disclosure of any of the information contained herein, without the prior written consent of Verifone, Inc. is prohibited. This document and any supplemental material supplied as part of any review must be returned to Verifone, Inc. upon request. Notice: This document may go through material revisions over time. While the Company will make every effort to keep readers updated as changes occur, care must be taken by the reader to make sure they are reading the latest version. Version numbers appear in the title page and revision history page of this document. All rights reserved. Verifone, the Verifone logo are either trademarks or registered trademarks of Verifone in the United States and/or other countries. All other trademarks or brand names are properties of their respective holders.