AI-generated Key Takeaways
-
CreateWalletObjectsRequest
enables the creation of digital wallet objects like loyalty cards, offers, and gift cards. -
It provides options for immediate saving or prompting the user to save the object to their Google Wallet.
-
It's recommended to use the
newBuilder()
method and theCreateWalletObjectsRequest.Builder
class for object creation. -
The older constructors for creating requests with specific wallet object types are deprecated.
-
CreateWalletObjectsRequest
includes methods to retrieve the wallet object type and the creation mode.
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
.