IsReadyToPayRequest

public final class IsReadyToPayRequest extends Object
implements Parcelable

A Parcelable request that can optionally be passed to PaymentsClient.isReadyToPay(IsReadyToPayRequest) to specify additional filtering criteria for determining if a user is considered ready 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

static IsReadyToPayRequest
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 static IsReadyToPayRequest fromJson (String isReadyToPayRequestJson)

Constructs IsReadyToPayRequest from a JSON object serialized as a string.

To convert back to a JSON object serialized as string use toJson().

Note that you shouldn't rely on the values returned by getters in IsReadyToPayRequest as they will not be populated with the data set in the given JSON.

For the expected format of this JSON, please see IsReadyToPayRequest object reference documentation.

public ArrayList<Integer> getAllowedCardNetworks ()

This method is deprecated.
Use the JSON request format instead, see fromJson(String).

public ArrayList<Integer> getAllowedPaymentMethods ()

This method is deprecated.
Use the JSON request format instead, see fromJson(String).

Returns

public boolean isExistingPaymentMethodRequired ()

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 static IsReadyToPayRequest.Builder newBuilder ()

This method is deprecated.
Use the JSON request format instead, see fromJson(String).

Returns

public String toJson ()

Returns IsReadyToPayRequest in JSON format.

Note that this will be null if this request was not constructed using fromJson(String).

For the expected format of this JSON, please see IsReadyToPayRequest object reference documentation.