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

Public Member Functions

BigDecimal getRunningSubtotal ()
 
void setRunningSubtotal (@Nullable BigDecimal runningSubtotal)
 
BigDecimal getRunningTax ()
 
void setRunningTax (BigDecimal runningTax)
 
BigDecimal getRunningTotal ()
 
void setRunningTotal (BigDecimal runningTotal)
 
BigDecimal getRunningGratuity ()
 
void setRunningGratuity (BigDecimal runningGratuity)
 
void addAmounts (BigDecimal subtotal, BigDecimal tax, BigDecimal gratuity, BigDecimal total)
 
void subtractAmounts (BigDecimal subtotal, BigDecimal tax, BigDecimal gratuity, BigDecimal total)
 
void setAmounts (BigDecimal subtotal, BigDecimal tax, BigDecimal gratuity, BigDecimal total)
 
boolean isUnset ()
 
 AmountTotals (final AmountTotals amountTotalsToCopy)
 
 AmountTotals (Parcel in, int parcelVersion)
 
void writeToParcel (Parcel dest, int flags)
 
- 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 Member Functions

static AmountTotals getUnsetAmountTotals ()
 

Static Public Attributes

static final Creator< AmountTotalsCREATOR
 
- Static Public Attributes inherited from BaseParcel
static final Parcelable.Creator< BaseParcelCREATOR
 

Additional Inherited Members

- 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

A container for the various totals, making it easier to update these values at one time.

Definition at line 22 of file AmountTotals.java.

Member Function Documentation

◆ getRunningGratuity()

BigDecimal getRunningGratuity ( )

The gratuity as held by this object.

Definition at line 57 of file AmountTotals.java.

◆ getRunningSubtotal()

BigDecimal getRunningSubtotal ( )

The subtotal as held by this object.

Definition at line 30 of file AmountTotals.java.

◆ getRunningTax()

BigDecimal getRunningTax ( )

The tax as held by this object.

Definition at line 39 of file AmountTotals.java.

◆ getRunningTotal()

BigDecimal getRunningTotal ( )

The total as held by this object.

Definition at line 48 of file AmountTotals.java.

Member Data Documentation

◆ CREATOR

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

Definition at line 156 of file AmountTotals.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.