Public Member Functions | |
boolean | getIsBasketAdjusted () |
void | setBasketAdjusted (boolean isBasketAdjusted) |
void | addOffer (Offer offer) |
void | removeOffer (Offer offer) |
Offer [] | getOffers () |
ArrayList< Offer > | getOffersList () |
void | addOffers (List< Offer > offers) |
void | addDonation (Donation donation) |
void | removeDonation (Donation donation) |
Donation [] | getDonations () |
ArrayList< Donation > | getDonationsList () |
void | addDonations (List< Donation > donations) |
BasketAdjustment (Parcel in, int parcelVersion) | |
void | setParcelVersion (int targetParcelVersion) |
void | writeToParcel (Parcel dest, int flags) |
JSONObject | buildToCpJson () |
![]() | |
CPBaseParcel (Parcel in, int parcelVersion) | |
![]() | |
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< BasketAdjustment > | CREATOR |
![]() | |
static final Parcelable.Creator< BaseParcel > | CREATOR |
Additional Inherited Members | |
![]() | |
static< CPEntityType extends CPBaseParcel > CPEntityType | buildFromCpJson ( @NonNull JSONObject jsonObject, @NonNull Class< CPEntityType > clazz, @Nullable CPEntityType parentObject) |
![]() | |
abstract< CPEntityType extends CPBaseParcel > CPEntityType | buildFromCpJson ( @NonNull JSONObject jsonObject, @Nullable CPEntityType parentObject) |
![]() | |
static< CPEntityType extends CPBaseParcel > ArrayList< CPEntityType > | buildListFromCpJson ( @NonNull JSONObject jsonObject, @NonNull Class< CPEntityType > clazz, @NonNull String targetJsonAlias) |
![]() | |
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) |
Contains possible changes to the basket in response to the com.verifone.commerce.triggers.BasketAdjustmentRequest. Allows an application to propose changes to the basket using com.verifone.commerce.triggers.BasketAdjustmentResponse. When received in the com.verifone.commerce.payment.BasketAdjustedEvent, allows the recipient to determine which adjustments will actually be applied to the cart.
Definition at line 26 of file BasketAdjustment.java.
void addDonation | ( | Donation | donation | ) |
Adds a donation.
Definition at line 117 of file BasketAdjustment.java.
void addDonations | ( | List< Donation > | donations | ) |
Add list of donations to existed donations or create new list if no donations yet.
Definition at line 154 of file BasketAdjustment.java.
void addOffer | ( | Offer | offer | ) |
Adds an offer.
Definition at line 66 of file BasketAdjustment.java.
void addOffers | ( | List< Offer > | offers | ) |
Add list of offers to existed offers or create new list if no offers yet.
Definition at line 104 of file BasketAdjustment.java.
Donation [] getDonations | ( | ) |
Retrieves all of the donations that have been added to this response.
Definition at line 139 of file BasketAdjustment.java.
ArrayList<Donation> getDonationsList | ( | ) |
Returns the actual list used by the object.
Definition at line 147 of file BasketAdjustment.java.
boolean getIsBasketAdjusted | ( | ) |
Returns true if any donations or offers have been added to the basket by the current application.
Definition at line 50 of file BasketAdjustment.java.
Offer [] getOffers | ( | ) |
Retrieves all of the offers that have been added to this response. Creates an array backed by the underlying list.
Definition at line 89 of file BasketAdjustment.java.
ArrayList<Offer> getOffersList | ( | ) |
Returns the actual list used by the object.
Definition at line 97 of file BasketAdjustment.java.
void removeDonation | ( | Donation | donation | ) |
Removes a donation from the list if it is present. Only affects donations added by the current application.
Definition at line 129 of file BasketAdjustment.java.
void removeOffer | ( | Offer | offer | ) |
Removes an offer from the list if it is present. Only affects offers added by the current application.
Definition at line 78 of file BasketAdjustment.java.
void setBasketAdjusted | ( | boolean | isBasketAdjusted | ) |
Set basket adjusted
isBasketAdjusted | true if basket has adjusted, false - otherwise |
Definition at line 59 of file BasketAdjustment.java.
|
static |
Definition at line 191 of file BasketAdjustment.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.