public final class
MaskedWalletRequest
extends Object
implements SafeParcelable
implements SafeParcelable
Parcelable representing a masked wallet request.
Nested Class Summary
class | MaskedWalletRequest.Builder | Builder to create a MaskedWalletRequest . |
Inherited Constant Summary
Field Summary
public static final Creator<MaskedWalletRequest> | CREATOR |
Public Method Summary
boolean | |
boolean | |
ArrayList<Integer> | |
ArrayList<CountrySpecification> | |
CountrySpecification[] | |
Cart |
getCart()
|
String | |
String | |
String | |
String | |
PaymentMethodTokenizationParameters | |
int | |
boolean |
isBillingAgreement()
This method was deprecated.
Billing agreement is not supported in Android Pay.
|
boolean | |
boolean | |
static MaskedWalletRequest.Builder | |
boolean |
useMinimalBillingAddress()
This method was deprecated.
This setting will be ignored in the future, but will still be respected for
Google Wallet Instant Buy. Users will always have a full billing address with
Android Pay.
|
void |
writeToParcel(Parcel dest, int flags)
|
Inherited Method Summary
Fields
Public Methods
public boolean allowDebitCard ()
Returns
- whether a debit card may be used as the backing card for this transaction
public boolean allowPrepaidCard ()
Returns
- whether a prepaid card may be used as the backing card for this transaction
public ArrayList<Integer> getAllowedCardNetworks ()
Returns
- The types of
WalletConstants.CardNetwork
that are allowed for this purchase, ornull
if no restrictions were specified.
public ArrayList<CountrySpecification> getAllowedCountrySpecificationsForShipping ()
Returns
- a list of countries that are allowed for shipping addresses
public CountrySpecification[] getAllowedShippingCountrySpecifications ()
Returns
- the allowed set of shipping country specifications
public String getMerchantName ()
Returns
- the merchant name that overrides the default display name in the merchant's account settings
public PaymentMethodTokenizationParameters getPaymentMethodTokenizationParameters ()
Returns
- payment method tokenization parameters
public int getVersionCode ()
public boolean isBillingAgreement ()
This method was deprecated.
Billing agreement is not supported in Android Pay.
Returns
- whether this request is for a billing agreement rather than for a one time purchase
public boolean isPhoneNumberRequired ()
Returns
- whether a user phone number is required
public boolean isShippingAddressRequired ()
Returns
- whether a user shipping address is required
public boolean useMinimalBillingAddress ()
This method was deprecated.
This setting will be ignored in the future, but will still be respected for
Google Wallet Instant Buy. Users will always have a full billing address with
Android Pay.
Returns
- indicates that only a minimal billing address associated with user's payment instrument is desired.