AParcelable
request
that can optionally be passed to
PaymentsClient.isReadyToPay(IsReadyToPayRequest)
to specify additional filtering
criteria for determining if a user is consideredready to pay.
Nested Class Summary
class | IsReadyToPayRequest.Builder | This class is deprecated. Use the JSON
request format instead, see
IsReadyToPayRequest.fromJson(String) . |
Inherited Constant Summary
Public Method Summary
staticIsReadyToPayRequest |
fromJson(String
isReadyToPayRequestJson)
Constructs
IsReadyToPayRequest
from a JSON object serialized as a string.
|
ArrayList<Integer> |
getAllowedCardNetworks()
This method is deprecated. Use the JSON request format instead, see
fromJson(String) .
|
ArrayList<Integer> |
getAllowedPaymentMethods()
This method is deprecated. Use the JSON request format instead, see
fromJson(String) .
|
boolean |
isExistingPaymentMethodRequired()
This method is deprecated. Use the JSON request format instead, see
fromJson(String) .
|
static IsReadyToPayRequest.Builder |
newBuilder()
This method is deprecated. Use the JSON request format instead, see
fromJson(String) .
|
String |
toJson()
Returns
IsReadyToPayRequest
in JSON format.
|
Inherited Method Summary
Public Methods
public staticIsReadyToPayRequest fromJson(String isReadyToPayRequestJson)
ConstructsIsReadyToPayRequest
from a JSON object serialized as a string.
To convert back to a JSON object serialized as string usetoJson()
.
Note that you shouldn't rely on the values returned by getters inIsReadyToPayRequest
as they will not be populated with the data set in the given JSON.
For the expected format of this JSON, please seeIsReadyToPayRequest object reference documentation.
publicArrayList<Integer> getAllowedCardNetworks()
This method is deprecated.
Use the JSON request format instead, see
fromJson(String)
.
Returns
- the
WalletConstants.CardNetwork
s that is used to filter the instruments deemed acceptable byPaymentsClient.isReadyToPay(IsReadyToPayRequest)
.If not explicitly set, the default supported networks isWalletConstants.CARD_NETWORK_AMEX
,WalletConstants.CARD_NETWORK_DISCOVER
,WalletConstants.CARD_NETWORK_MASTERCARD
,andWalletConstants.CARD_NETWORK_VISA
.
publicArrayList<Integer> getAllowedPaymentMethods()
This method is deprecated.
Use the JSON request format instead, see
fromJson(String)
.
Returns
- the supported payment credential types defined in
WalletConstants.PaymentMethod
,ornull
if no restrictions were specified.
public booleanisExistingPaymentMethodRequired()
This method is deprecated.
Use the JSON request format instead, see
fromJson(String)
.
Returns
- whether or not IsReadyToPay will be determined by the user having an existing payment method that matches the other criteria specified in the IsReadyToPayRequest.
public staticIsReadyToPayRequest.Builder newBuilder()
This method is deprecated.
Use the JSON request format instead, see
fromJson(String)
.
Returns
- a builder for constructing the
IsReadyToPayRequest
object.
publicStringtoJson()
ReturnsIsReadyToPayRequest
in JSON format.
Note that this will benull
if this request was not constructed using
fromJson(String)
.
For the expected format of this JSON, please seeIsReadyToPayRequest object reference documentation.