CreateWalletObjectsRequest.Builder

public final class CreateWalletObjectsRequest.Builder extends Object

Builder to create a CreateWalletObjectsRequest.

Public Method Summary

CreateWalletObjectsRequest
build()
Returns the CreateWalletObjectsRequest created using the data passed to the Builder.
CreateWalletObjectsRequest.Builder
setCreateMode(int createMode)
Sets the creation mode to use.
CreateWalletObjectsRequest.Builder
setGiftCardWalletObject(GiftCardWalletObject giftCardWalletObject)
Sets the Gift Card wallet object to be created.
CreateWalletObjectsRequest.Builder
setLoyaltyWalletObject(LoyaltyWalletObject loyaltyWalletObject)
Sets the Loyalty wallet object to be created.
CreateWalletObjectsRequest.Builder
setOfferWalletObject(OfferWalletObject offerWalletObject)
Sets the Offer wallet object to be created.

Inherited Method Summary

Public Methods

public CreateWalletObjectsRequest build ()

Returns the CreateWalletObjectsRequest created using the data passed to the Builder.

public CreateWalletObjectsRequest.Builder setCreateMode (int createMode)

Sets the creation mode to use. If the value is CreateWalletObjectsRequest.SHOW_SAVE_PROMPT, a save prompt dialog appears, with a save button that the user must click before the save occurs. If the value is CreateWalletObjectsRequest.REQUEST_IMMEDIATE_SAVE, the save happens immediately, followed by a confirmation dialog to show the save is successful. Note the calling application must only use CreateWalletObjectsRequest.REQUEST_IMMEDIATE_SAVE if the user shows they intend to save the Wallet Object to Google Pay, such as by clicking a button in the calling application with the label "Save to Google Pay". Sometimes the implementation will still use CreateWalletObjectsRequest.SHOW_SAVE_PROMPT mode, even when the Caller specifies CreateWalletObjectsRequest.REQUEST_IMMEDIATE_SAVE. For example, if multiple Google accounts exist on the device, the implementation may still show the save prompt dialog in order to allow the user to select which account to save to.

public CreateWalletObjectsRequest.Builder setGiftCardWalletObject (GiftCardWalletObject giftCardWalletObject)

Sets the Gift Card wallet object to be created.

public CreateWalletObjectsRequest.Builder setLoyaltyWalletObject (LoyaltyWalletObject loyaltyWalletObject)

Sets the Loyalty wallet object to be created.

public CreateWalletObjectsRequest.Builder setOfferWalletObject (OfferWalletObject offerWalletObject)

Sets the Offer wallet object to be created.