Public Member Functions | |
CommerceTrigger | generateResponse () |
String | getName () |
String | getCurrency () |
void | setCurrency (@NonNull String currency) |
BigDecimal | getInitialAmount () |
void | setInitialAmount (@NonNull BigDecimal initialAmount) |
BigDecimal | getAdjustedAmount () |
void | setAdjustedAmount (@Nullable BigDecimal adjustedAmount) |
BigDecimal | getGratuityAmount () |
void | setGratuityAmount (@Nullable BigDecimal gratuityAmount) |
BigDecimal | getFinalAmount () |
void | setFinalAmount (@NonNull BigDecimal finalAmount) |
BigDecimal | getAlreadyApprovedAmount () |
void | setAlreadyApprovedAmount (@Nullable BigDecimal alreadyApprovedAmount) |
![]() | |
String | getMerchantId () |
String | getTerminalId () |
Transaction | getTransaction () |
void | setTransaction (Transaction transaction) |
CommerceTrigger | generateResponse () |
String | getMessageType () |
Static Public Attributes | |
static final String | NAME = "CP_SYSTEM_NOTIFIES_AMOUNT_FINALIZED" |
![]() | |
static final String | MESSAGE_NAME_PREFIX = "CP_SYSTEM_" |
static final String | INTENT_EXTRA_TRANSACTION_CONTEXT = "com.verifone.commerce.intent.extra.TRANSACTION_CONTEXT" |
Protected Member Functions | |
void | populateMessageFromJson (@NonNull JSONObject jsonObject) |
String | getAsJsonString () |
![]() | |
void | populateMessageFromJson (@NonNull final JSONObject jsonObject) |
String | getAsJsonString () |
Additional Inherited Members |
Fired by Payment Application when amount was received from POS or entered directly. This informs the Commerce Applications on the final amount and intermediate amounts, if any.
Definition at line 20 of file AmountFinalizedNotification.java.
CommerceTrigger generateResponse | ( | ) |
There is no response for this object, so this returns null.
Definition at line 34 of file AmountFinalizedNotification.java.
BigDecimal getAdjustedAmount | ( | ) |
This amount may either be positive or negative.or zero. String amount formatting applies. This represents the sum of adjustments that have to be applied to the initial amount excluding the gratuity. The adjustements may be done by POS or by CP applications. The value may therefore change throughout the transaction.
Definition at line 82 of file AmountFinalizedNotification.java.
BigDecimal getAlreadyApprovedAmount | ( | ) |
In case of split tender this field holds the value that was approved in previous iterations.
Definition at line 131 of file AmountFinalizedNotification.java.
String getCurrency | ( | ) |
Alphabetic currency code (ISO 4217). Ex: USD, EUR.
<color="orange">Note: NonNull based on CP contract, be careful to use it before parsing JSON</color>
Definition at line 49 of file AmountFinalizedNotification.java.
BigDecimal getFinalAmount | ( | ) |
This represent the projected final amount to be paid. The value may therefore change throughout the transaction. It always obeys to the following formula:
Final_Amount = Initial_Amount + Adjusted_Amount + Gratuity_Amount - Already_Approved_Amount
The value of Final_Amount is used as initial "Trans_Amount" value for the payment phase.
Definition at line 116 of file AmountFinalizedNotification.java.
BigDecimal getGratuityAmount | ( | ) |
This amount is always positive. String amount formatting applies. This represents the tip and its value is constant throughout the transaction.
Definition at line 97 of file AmountFinalizedNotification.java.
BigDecimal getInitialAmount | ( | ) |
This number is always positive and non-zero. String amount formatting applies. This represents the amount that payment is attempted. This is either captured by the payment application or by POS. It does not include the gratuity.
Definition at line 65 of file AmountFinalizedNotification.java.
void setAdjustedAmount | ( | @Nullable BigDecimal | adjustedAmount | ) |
Definition at line 89 of file AmountFinalizedNotification.java.
void setAlreadyApprovedAmount | ( | @Nullable BigDecimal | alreadyApprovedAmount | ) |
Definition at line 138 of file AmountFinalizedNotification.java.
void setCurrency | ( | @NonNull String | currency | ) |
Definition at line 56 of file AmountFinalizedNotification.java.
void setFinalAmount | ( | @NonNull BigDecimal | finalAmount | ) |
Definition at line 123 of file AmountFinalizedNotification.java.
void setGratuityAmount | ( | @Nullable BigDecimal | gratuityAmount | ) |
Definition at line 104 of file AmountFinalizedNotification.java.
void setInitialAmount | ( | @NonNull BigDecimal | initialAmount | ) |
Definition at line 72 of file AmountFinalizedNotification.java.
|
static |
The system name of the message.
Definition at line 26 of file AmountFinalizedNotification.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.