AI-generated Key Takeaways
-
CreateWalletObjectsRequest is a Parcelable class used to create wallet objects.
-
It includes nested classes like Builder and CreateMode, and constants for creation modes like REQUEST_IMMEDIATE_SAVE and SHOW_SAVE_PROMPT.
-
Deprecated constructors for LoyaltyWalletObject, OfferWalletObject, and GiftCardWalletObject exist; the recommended way to create a request is by using the newBuilder() method.
-
Public methods allow retrieval of the creation mode and the specific wallet object types.
Parcelable representing request to create wallet objects.
Nested Class Summary
| class | CreateWalletObjectsRequest.Builder | Builder to create a CreateWalletObjectsRequest. |
|
| @interface | CreateWalletObjectsRequest.CreateMode | The creation mode to use. | |
Constant Summary
| int | REQUEST_IMMEDIATE_SAVE | |
| int | SHOW_SAVE_PROMPT |
Inherited Constant Summary
Field Summary
| public static final Creator<CreateWalletObjectsRequest> | CREATOR |
Public Constructor Summary
|
CreateWalletObjectsRequest(LoyaltyWalletObject
loyaltyWalletObject)
This constructor is deprecated. Use
newBuilder() to create a
CreateWalletObjectsRequest.Builder instead.
|
|
|
CreateWalletObjectsRequest(OfferWalletObject
offerWalletObject)
This constructor is deprecated. Use
newBuilder() to create a
CreateWalletObjectsRequest.Builder instead.
|
|
|
CreateWalletObjectsRequest(GiftCardWalletObject
giftCardWalletObject)
This constructor is deprecated. Use
newBuilder() to create a
CreateWalletObjectsRequest.Builder instead.
|
Public Method Summary
| int |
getCreateMode()
Returns the creation mode that will be used when the request is made.
|
| GiftCardWalletObject | |
| LoyaltyWalletObject | |
| OfferWalletObject | |
| static CreateWalletObjectsRequest.Builder |
newBuilder()
Create a
CreateWalletObjectsRequest.Builder for building a
CreateWalletObjectsRequest.
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Constants
public static final int REQUEST_IMMEDIATE_SAVE
public static final int SHOW_SAVE_PROMPT
Fields
public static final Creator<CreateWalletObjectsRequest> CREATOR
Public Constructors
public CreateWalletObjectsRequest (LoyaltyWalletObject loyaltyWalletObject)
This constructor is deprecated.
Use
newBuilder() to create a
CreateWalletObjectsRequest.Builder instead.
Constructs a request for a loyalty card creation
Parameters
| loyaltyWalletObject | the loyalty card to be created |
|---|
public CreateWalletObjectsRequest (OfferWalletObject offerWalletObject)
This constructor is deprecated.
Use
newBuilder() to create a
CreateWalletObjectsRequest.Builder instead.
Constructs a request for an offer object creation
Parameters
| offerWalletObject | the offer object to be created |
|---|
public CreateWalletObjectsRequest (GiftCardWalletObject giftCardWalletObject)
This constructor is deprecated.
Use
newBuilder() to create a
CreateWalletObjectsRequest.Builder instead.
Constructs a request for a gift card object creation.
Parameters
| giftCardWalletObject | the gift card to be created. |
|---|
Public Methods
public int getCreateMode ()
Returns the creation mode that will be used when the request is made.
public GiftCardWalletObject getGiftCardWalletObject ()
public LoyaltyWalletObject getLoyaltyWalletObject ()
public OfferWalletObject getOfferWalletObject ()
public static CreateWalletObjectsRequest.Builder newBuilder ()
Create a
CreateWalletObjectsRequest.Builder for building a CreateWalletObjectsRequest.