Logo
Developer SDK
Version 1.9.632.913d652c-152450467.
PaymentAmountAdjustmentResponse Class Reference
Inheritance diagram for PaymentAmountAdjustmentResponse:
CommerceTrigger CommerceMessage

Public Member Functions

void setAdjustmentValue (BigDecimal adjustmentValue)
 
BigDecimal getAdjustmentValue ()
 
void setAdjustmentPercentage (BigDecimal adjustmentPercentage)
 
BigDecimal getAdjustmentPercentage ()
 
void setFXAmount (BigDecimal fxAmount)
 
BigDecimal getFXAmount ()
 
void setFXCurrency (String fxCurrency)
 
String getFXCurrency ()
 
void setFXRate (BigDecimal FXRate)
 
BigDecimal getFXRate ()
 
void setFXInvertedRate (BigDecimal FXInvertedRate)
 
BigDecimal getFXInvertedRate ()
 
void setFXPercentageCommission (BigDecimal FXPercentageCommission)
 
BigDecimal getFXPercentageCommission ()
 
void setFXAccepted (boolean FXAccepted)
 
boolean getFXAccepted ()
 
void setDescription (String Description)
 
String getDescription ()
 
void setFXMerchantId (String fxMerchantId)
 
String getFXMerchantId ()
 
void setFXTerminalId (String fxTerminalId)
 
String getFXTerminalId ()
 
CommerceTrigger generateResponse ()
 
String getName ()
 
- Public Member Functions inherited from CommerceTrigger
String getMerchantId ()
 
String getTerminalId ()
 
Transaction getTransaction ()
 
void setTransaction (Transaction transaction)
 
CommerceTrigger generateResponse ()
 
String getMessageType ()
 
- Public Member Functions inherited from CommerceMessage
abstract String getName ()
 
abstract String getMessageType ()
 
final String getHandle ()
 
final boolean isTypeOfMessage (@NonNull final String type)
 
boolean put (String key, Object value)
 
Object get (String key)
 
List< String > getKeys ()
 
Status send (@NonNull final Context context)
 

Static Public Attributes

static final String NAME = "CP_SYSTEM_RECEIVES_PAYMENT_AMOUNT_ADJUSTMENT"
 
- Static Public Attributes inherited from CommerceTrigger
static final String MESSAGE_NAME_PREFIX = "CP_SYSTEM_"
 
static final String INTENT_EXTRA_TRANSACTION_CONTEXT = "com.verifone.commerce.intent.extra.TRANSACTION_CONTEXT"
 
- Static Public Attributes inherited from CommerceMessage
static final String MESSAGE_TYPE_INTERAPP = "INTERAPP"
 
static final String MESSAGE_TYPE_PAYMENTTRIGGER = "PAYMENTTRIGGER"
 
static final String MESSAGE_TYPE_NONPAYMENTTRIGGER = "NONPAYMENTTRIGGER"
 
static final String MESSAGE_TYPE_PAYMENTAPI = "PAYMENTAPI"
 
static final String MESSAGE_TYPE_UNKNOWN = "UNKNOWN"
 
static final String INTENT_ACTION_PREFIX = "com.verifone.commerce.intent.action."
 
static final String INTENT_CATEGORY = "com.verifone.commerce.intent.category.CP_MESSAGE"
 
static final String INTENT_EXTRA_HANDLE = "com.verifone.commerce.intent.extra.HANDLE"
 
static final String INTENT_EXTRA_PAYLOAD = "com.verifone.commerce.intent.extra.PAYLOAD"
 
static final String CP_JSON_KEY_TRANS_AMOUNT = "Trans_Amount"
 
static final String CP_JSON_KEY_CURRENCY = "Currency"
 

Protected Member Functions

void setHandle (@NonNull String handle)
 
String getAsJsonString ()
 
- Protected Member Functions inherited from CommerceTrigger
void populateMessageFromJson (@NonNull final JSONObject jsonObject)
 
String getAsJsonString ()
 
- Protected Member Functions inherited from CommerceMessage
void populateMessageFromJson (@NonNull final JSONObject jsonObject)
 
void setHandle (@NonNull final String handle)
 
JSONObject getJsonObject ()
 
void setJsonObject (@NonNull final JSONObject jsonObject)
 
abstract String getAsJsonString ()
 
String getCpAppId ()
 
void setCpAppId (String cpAppId)
 
String getCpAppVersion ()
 
void setCpAppVersion (String cpAppVersion)
 

Additional Inherited Members

- Static Public Member Functions inherited from CommerceMessage
static Intent createIntentWithName (final String name)
 
static Intent createIntentForMessage (final CommerceMessage message)
 
static int getNumberOfReceivers (Context context, final CommerceMessage message)
 
static boolean isResponseMessage (String name)
 
static boolean isRequestMessage (String name)
 
static boolean isMessageFromCPAndroid (String name)
 

Detailed Description

The response to the PaymentAmountAdjustmentRequest request.

Definition at line 16 of file PaymentAmountAdjustmentResponse.java.

Member Function Documentation

◆ generateResponse()

CommerceTrigger generateResponse ( )

There is no response for this object, so this returns null.

Definition at line 231 of file PaymentAmountAdjustmentResponse.java.

◆ getAdjustmentPercentage()

BigDecimal getAdjustmentPercentage ( )

Refer to the setter for information.

Definition at line 97 of file PaymentAmountAdjustmentResponse.java.

◆ getAdjustmentValue()

BigDecimal getAdjustmentValue ( )

Refer to the setter for information.

Definition at line 83 of file PaymentAmountAdjustmentResponse.java.

◆ getDescription()

String getDescription ( )

Refer to the setter for information.

Definition at line 195 of file PaymentAmountAdjustmentResponse.java.

◆ getFXAccepted()

boolean getFXAccepted ( )

Refer to the setter for information.

Definition at line 181 of file PaymentAmountAdjustmentResponse.java.

◆ getFXAmount()

BigDecimal getFXAmount ( )

Refer to the setter for information.

Definition at line 111 of file PaymentAmountAdjustmentResponse.java.

◆ getFXCurrency()

String getFXCurrency ( )

Refer to the setter for information.

Definition at line 125 of file PaymentAmountAdjustmentResponse.java.

◆ getFXInvertedRate()

BigDecimal getFXInvertedRate ( )

Refer to the setter for information.

Definition at line 153 of file PaymentAmountAdjustmentResponse.java.

◆ getFXMerchantId()

String getFXMerchantId ( )

Refer to the setter for information.

Definition at line 209 of file PaymentAmountAdjustmentResponse.java.

◆ getFXPercentageCommission()

BigDecimal getFXPercentageCommission ( )

Refer to the setter for information.

Definition at line 167 of file PaymentAmountAdjustmentResponse.java.

◆ getFXRate()

BigDecimal getFXRate ( )

Refer to the setter for information.

Definition at line 139 of file PaymentAmountAdjustmentResponse.java.

◆ getFXTerminalId()

String getFXTerminalId ( )

Refer to the setter for information.

Definition at line 223 of file PaymentAmountAdjustmentResponse.java.

◆ setAdjustmentPercentage()

void setAdjustmentPercentage ( BigDecimal  adjustmentPercentage)

The percentage amount to adjust the payment amount. To represent 10% specify the value as 0.10. Can be positive or negative.

Definition at line 90 of file PaymentAmountAdjustmentResponse.java.

◆ setAdjustmentValue()

void setAdjustmentValue ( BigDecimal  adjustmentValue)

The amount to adjust the payment amount. Can be positive or negative.

Definition at line 76 of file PaymentAmountAdjustmentResponse.java.

◆ setDescription()

void setDescription ( String  Description)

A short description of the adjustment.

Definition at line 188 of file PaymentAmountAdjustmentResponse.java.

◆ setFXAccepted()

void setFXAccepted ( boolean  FXAccepted)

True is currency conversion has been accepted and is applicable.

Definition at line 174 of file PaymentAmountAdjustmentResponse.java.

◆ setFXAmount()

void setFXAmount ( BigDecimal  fxAmount)

The amount in foreign currency. The value must be greater than zero.

Definition at line 104 of file PaymentAmountAdjustmentResponse.java.

◆ setFXCurrency()

void setFXCurrency ( String  fxCurrency)

Alphabetic currency code (ISO 4217). Ex: USD, EUR. This represents the currency of FXAmount.

Definition at line 118 of file PaymentAmountAdjustmentResponse.java.

◆ setFXInvertedRate()

void setFXInvertedRate ( BigDecimal  FXInvertedRate)

Rate to convert the foreign currency amount to the base currency amount. PaymentAmount = FXInvertedRate * FXAmount

Definition at line 146 of file PaymentAmountAdjustmentResponse.java.

◆ setFXMerchantId()

void setFXMerchantId ( String  fxMerchantId)

To allow a CP DCC application to provide particular MID and TID back to payment application

Definition at line 202 of file PaymentAmountAdjustmentResponse.java.

◆ setFXPercentageCommission()

void setFXPercentageCommission ( BigDecimal  FXPercentageCommission)

Commission percentage value applied to the exchange rate. To represent 10% specify the value as 0.10. 

Definition at line 160 of file PaymentAmountAdjustmentResponse.java.

◆ setFXRate()

void setFXRate ( BigDecimal  FXRate)

Rate to convert the base currency amount to the foreign currency amount. FXAmount = PaymentAmount * FXRate

Definition at line 132 of file PaymentAmountAdjustmentResponse.java.

◆ setFXTerminalId()

void setFXTerminalId ( String  fxTerminalId)

in the case of acquirers dealing with separate MID and TID values for DCC transactions

Definition at line 216 of file PaymentAmountAdjustmentResponse.java.

Member Data Documentation

◆ NAME

final String NAME = "CP_SYSTEM_RECEIVES_PAYMENT_AMOUNT_ADJUSTMENT"
static

The system name of the message.

Definition at line 23 of file PaymentAmountAdjustmentResponse.java.


The documentation for this class was generated from the following file:

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.