Parcelable representing a subset of the PaymentData
needed in order to provide an update to the PaymentDataRequestUpdate
in the
BasePaymentDataCallbacks.onPaymentDataChanged(IntermediatePaymentData,
OnCompleteListener).
Inherited Constant Summary
Field Summary
| public static final Creator<IntermediatePaymentData> | CREATOR |
Public Method Summary
| static IntermediatePaymentData |
fromJson(String json)
Constructs
IntermediatePaymentData from a JSON object serialized as a string
without any saved states.
|
| Bundle |
getLastSavedState()
Returns the last saved state associated with this
PaymentsClient.loadPaymentData(PaymentDataRequest) invocation.
|
| String |
toJson()
Returns
IntermediatePaymentData in JSON format.
|
| IntermediatePaymentData |
withLastSavedState(Bundle savedState)
Returns a new instance of
IntermediatePaymentData with
getLastSavedState() returning the given savedState.
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<IntermediatePaymentData> CREATOR
Public Methods
public static IntermediatePaymentData fromJson (String json)
Constructs
IntermediatePaymentData from a JSON object serialized as a string without
any saved states.
To convert back to a JSON object serialized as string use
toJson().
For the expected format of this JSON, please see IntermediatePaymentData object reference documentation.
public Bundle getLastSavedState ()
Returns the last saved state associated with this
PaymentsClient.loadPaymentData(PaymentDataRequest) invocation.
See
PaymentDataRequest.withSavedState(Bundle) for more details.
public String toJson ()
Returns
IntermediatePaymentData in JSON format.
Note that this will be null if this object was not constructed using
fromJson(String).
For the expected format of this JSON, please see IntermediatePaymentData object reference documentation.
public IntermediatePaymentData withLastSavedState (Bundle savedState)
Returns a new instance of
IntermediatePaymentData with
getLastSavedState() returning the given savedState.
See
PaymentDataRequest.withSavedState(Bundle) for more details.