IsReadyToPayRequest

public final class IsReadyToPayRequest extends Object
implements Parcelable

A Parcelable request that can optionally be passed to isReadyToPay(IsReadyToPayRequest) to specify additional filtering criteria for determining if a user is considered ready to pay.

Nested Class Summary

class IsReadyToPayRequest.Builder Builder for creating an IsReadyToPayRequest

Inherited Constant Summary

Public Method Summary

static IsReadyToPayRequest
fromJson(String isReadyToPayRequestJson)
Constructs IsReadyToPayRequest from a JSON object serialized as a string.
ArrayList<Integer>
ArrayList<Integer>
boolean
static IsReadyToPayRequest.Builder
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 ()

Returns

public ArrayList<Integer> getAllowedPaymentMethods ()

Returns

public boolean isExistingPaymentMethodRequired ()

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 ()

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.