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

Public Member Functions

void setLoyaltyId (String loyaltyId)
 
String getLoyaltyId ()
 
String getInvoiceId ()
 
void setInvoiceId (String invoiceId)
 
String getCurrency ()
 
void setCurrency (String currency)
 
void setMerchandises (Merchandise[] merchandises)
 
Merchandise [] getMerchandises ()
 
void setOffers (Offer[] offers)
 
Offer [] getOffers ()
 
void setDonations (Donation[] donations)
 
Donation [] getDonations ()
 
void clear ()
 
 Basket (Parcel in, int parcelVersion)
 
void writeToParcel (Parcel dest, int flags)
 
void setParcelVersion (int targetParcelVersion)
 
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< BasketCREATOR
 
- 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 should generally be managed through the BasketManager, to properly update the display and fire the appropriate triggered events.

Definition at line 33 of file Basket.java.

Member Function Documentation

◆ getDonations()

Donation [] getDonations ( )

Refer to the setDonations(Donation[] donations) for more information.

Definition at line 144 of file Basket.java.

◆ getLoyaltyId()

String getLoyaltyId ( )

Refer to the setLoyaltyId(String loyaltyId) for more information.

Definition at line 79 of file Basket.java.

◆ getMerchandises()

Merchandise [] getMerchandises ( )

Refer to the setMerchandises(Merchandise[] merchandises) for more information.

Definition at line 112 of file Basket.java.

◆ getOffers()

Offer [] getOffers ( )

Refer to the setOffers(Offer[] offers) for more information.

Definition at line 128 of file Basket.java.

◆ setDonations()

void setDonations ( Donation []  donations)

Any donations associated with this basket. These may change throughout the transaction. This is optional.

Definition at line 136 of file Basket.java.

◆ setLoyaltyId()

void setLoyaltyId ( String  loyaltyId)

The loyalty ID associated with this transaction and basket. This is set by the initiator of the transaction as the probable ID, and may be updated during the transaction process. This is optional.

Definition at line 71 of file Basket.java.

◆ setMerchandises()

void setMerchandises ( Merchandise []  merchandises)

The merchandise that is being purchased or returned. This should only be set by the POS or payment application. This is optional.

Definition at line 103 of file Basket.java.

◆ setOffers()

void setOffers ( Offer []  offers)

Any offers associated with this basket. These may change throughout the transaction. This is optional.

Definition at line 120 of file Basket.java.

Member Data Documentation

◆ CREATOR

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

Definition at line 227 of file Basket.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.