Logo
Developer SDK
Version 1.9.632.913d652c-152450467.
AmountAdjustment Class Reference
Inheritance diagram for AmountAdjustment:
CPBaseParcel ICpToJson BaseParcel

Public Member Functions

void setAdjustmentValue (BigDecimal adjustmentValue)
 
BigDecimal getAdjustmentValue ()
 
void setAdjustmentPercentage (BigDecimal adjustmentPercentage)
 
BigDecimal getAdjustmentPercentage ()
 
boolean shouldUsePercentageForAdjustment ()
 
void setDescription (String description)
 
String getDescription ()
 
 AmountAdjustment (Parcel in, int parcelVersion)
 
void writeToParcel (Parcel dest, int flags)
 
JSONObject buildToCpJson ()
 
- Public Member Functions inherited from CPBaseParcel
 CPBaseParcel (Parcel in, int parcelVersion)
 
- Public Member Functions inherited from BaseParcel
 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 Creator< AmountAdjustmentCREATOR
 
- Static Public Attributes inherited from BaseParcel
static final Parcelable.Creator< BaseParcelCREATOR
 

Additional Inherited Members

- Static Public Member Functions inherited from CPBaseParcel
static< CPEntityType extends CPBaseParcel > CPEntityType buildFromCpJson ( @NonNull JSONObject jsonObject, @NonNull Class< CPEntityType > clazz, @Nullable CPEntityType parentObject)
 
- Protected Member Functions inherited from CPBaseParcel
abstract< CPEntityType extends CPBaseParcel > CPEntityType buildFromCpJson ( @NonNull JSONObject jsonObject, @Nullable CPEntityType parentObject)
 
- Static Protected Member Functions inherited from CPBaseParcel
static< CPEntityType extends CPBaseParcel > ArrayList< CPEntityType > buildListFromCpJson ( @NonNull JSONObject jsonObject, @NonNull Class< CPEntityType > clazz, @NonNull String targetJsonAlias)
 
- Static Protected Member Functions inherited from BaseParcel
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)
 

Detailed Description

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.

Definition at line 32 of file AmountAdjustment.java.

Member Function Documentation

◆ getAdjustmentPercentage()

BigDecimal getAdjustmentPercentage ( )

Refer to the setAdjustmentPercentage(BigDecimal).

Definition at line 77 of file AmountAdjustment.java.

◆ getAdjustmentValue()

BigDecimal getAdjustmentValue ( )

Refer to setAdjustmentValue(BigDecimal).

Definition at line 56 of file AmountAdjustment.java.

◆ getDescription()

String getDescription ( )

Refer to setDescription(String).

Definition at line 91 of file AmountAdjustment.java.

◆ setAdjustmentPercentage()

void setAdjustmentPercentage ( BigDecimal  adjustmentPercentage)

The percentage to adjust the total as a GAAP-standard BigDecimal. Can be positive or negative. Either this or adjustmentValue is required, setting one will overwrite the other if both are set. Can be set to null to remove this adjustment.

Definition at line 64 of file AmountAdjustment.java.

◆ setAdjustmentValue()

void setAdjustmentValue ( BigDecimal  adjustmentValue)

Set the amount to adjust the total as a GAAP-standard BigDecimal. Can be positive or negative. Either this or adjustmentPercentage is required, setting one will overwrite the other if both are set. Can be set to null to remove this adjustment.

Definition at line 45 of file AmountAdjustment.java.

◆ setDescription()

void setDescription ( String  description)

A short description of the adjustment. This is optional.

Definition at line 86 of file AmountAdjustment.java.

Member Data Documentation

◆ CREATOR

final Creator<AmountAdjustment> CREATOR
static
Initial value:
=
new AmountAdjustment.ParcelCreator<AmountAdjustment>() {
@Override
public AmountAdjustment createFromParcel(Parcel source) {
BaseParcel createdObject = super.createFromParcel(source);
if (createdObject == null || !AmountAdjustment.class.isInstance(createdObject)) {
return new AmountAdjustment(source, getRecommendedParcelVersion());
} else {
return (AmountAdjustment) createdObject;
}
}
@Override
public AmountAdjustment[] newArray(int size) {
return new AmountAdjustment[size];
}
}

Definition at line 137 of file AmountAdjustment.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.