AI-generated Key Takeaways
-
CardRequirements specifies requirements for payment cards like allowed networks and whether prepaid cards are accepted.
-
It includes methods to check if prepaid cards are allowed, get allowed card networks, retrieve the billing address format, and determine if a billing address is required.
-
A Builder class is available to create CardRequirements objects.
Card requirements for the returned payment card. Examples include which card networks are
allowed (See WalletConstants.CardNetwork)
and whether prepaid card is allowed.
Nested Class Summary
| class | CardRequirements.Builder | Builder to create a CardRequirements. |
|
Inherited Constant Summary
Field Summary
| public static final Creator<CardRequirements> | CREATOR |
Public Method Summary
| boolean |
allowPrepaidCards()
Returns whether a prepaid card may be used as the backing card for this
transaction.
|
| ArrayList<Integer> |
getAllowedCardNetworks()
Returns the types of
WalletConstants.CardNetwork that are allowed for this purchase, or
null if no restrictions were specified.
|
| int |
getBillingAddressFormat()
Returns the billing address format.
|
| boolean |
isBillingAddressRequired()
Returns whether a billing address is required to be returned.
|
| static CardRequirements.Builder | |
| void |
writeToParcel(Parcel out, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<CardRequirements> CREATOR
Public Methods
public boolean allowPrepaidCards ()
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, or null if no restrictions were
specified.
public int getBillingAddressFormat ()
Returns the billing address format. See
WalletConstants.BillingAddressFormat for more info.
public boolean isBillingAddressRequired ()
Returns whether a billing address is required to be returned.