Logo
Developer SDK
Version 1.9.632.913d652c-152450467.
CPBaseParcel Class Referenceabstract
Inheritance diagram for CPBaseParcel:
BaseParcel AmountAdjustment Basket BasketAdjustment BasketItem CardInformation LoyaltyAdjustment LoyaltyIdentifier Payment Transaction

Public Member Functions

 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 Member Functions

static< CPEntityType extends CPBaseParcel > CPEntityType buildFromCpJson ( @NonNull JSONObject jsonObject, @NonNull Class< CPEntityType > clazz, @Nullable CPEntityType parentObject)
 

Protected Member Functions

abstract< CPEntityType extends CPBaseParcel > CPEntityType buildFromCpJson ( @NonNull JSONObject jsonObject, @Nullable CPEntityType parentObject)
 

Static Protected Member Functions

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)
 

Additional Inherited Members

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

Detailed Description

Created by romans1 on 11/02/2017. Inherits BaseParcel for support all common entities functions and extends it with CP-specific functions.

Definition at line 20 of file CPBaseParcel.java.

Member Function Documentation

◆ buildFromCpJson()

static <CPEntityType extends CPBaseParcel> CPEntityType buildFromCpJson ( @NonNull JSONObject  jsonObject,
@NonNull Class< CPEntityType >  clazz,
@Nullable CPEntityType  parentObject 
)
static

Used internally to build when handling CP Triggers or other messages. Either populates the transaction object provided, or creates a new one if the former is null. Only sets values if the value is available from the JSON, otherwise an element is ignored.

Parameters
jsonObjectjson object for parsing
clazzexpected class
Returns
new object with parsed values.

Definition at line 40 of file CPBaseParcel.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.