CardRequirements | Doclava
public final class

CardRequirements

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.wallet.CardRequirements

Class Overview

Optional card requirements for the returned payment card. Examples include which card networks are allowed (See WalletConstants.CardNetwork) and whether prepaid card is allowed.

Summary

Nested Classes
class CardRequirements.Builder Builder to create a CardRequirements
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<CardRequirements> CREATOR
Public Methods
boolean allowPrepaidCards()
ArrayList<Integer> getAllowedCardNetworks()
int getBillingAddressFormat()
boolean isBillingAddressRequired()
static CardRequirements.Builder newBuilder()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<CardRequirements> CREATOR

Public Methods

public boolean allowPrepaidCards ()

Returns
boolean whether a prepaid card may be used as the backing card for this transaction.

public ArrayList<Integer> getAllowedCardNetworks ()

Returns
ArrayList<Integer> the types of WalletConstants.CardNetwork that are allowed for this purchase, or null if no restrictions were specified.

public int getBillingAddressFormat ()

Returns
int The billing address format. See WalletConstants.BillingAddressFormat for more info.

public boolean isBillingAddressRequired ()

Returns
boolean whether a billing address is required to be returned.

public static CardRequirements.Builder newBuilder ()

public void writeToParcel (Parcel out, int flags)

Parameters
out Parcel

flags int