Parcelable representing an object returned from
BasePaymentDataCallbacks.onPaymentDataChanged(IntermediatePaymentData,
OnCompleteListener) callback. This object - PaymentDataRequestUpdate
- specifies new transaction info, shipping options and error to update the payment sheet.
Inherited Constant Summary
Field Summary
| public static final Creator<PaymentDataRequestUpdate> | CREATOR |
Public Method Summary
| static PaymentDataRequestUpdate |
fromJson(String json)
Constructs
PaymentDataRequestUpdate from a JSON object serialized as a string
without any saved states.
|
| Bundle |
getUpdatedSavedState()
Returns the new updated saved state set with
withUpdatedSavedState(Bundle) invocation.
|
| String |
toJson()
Returns
PaymentDataRequestUpdate in JSON format.
|
| PaymentDataRequestUpdate |
withUpdatedSavedState(Bundle savedState)
Returns a new instance of
PaymentDataRequestUpdate with the given updated saved state.
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<PaymentDataRequestUpdate> CREATOR
Public Methods
public static PaymentDataRequestUpdate fromJson (String json)
Constructs
PaymentDataRequestUpdate 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 PaymentDataRequestUpdate object reference documentation.
public Bundle getUpdatedSavedState ()
Returns the new updated saved state set with
withUpdatedSavedState(Bundle) invocation.
See
PaymentDataRequest.withSavedState(Bundle) for more details.
public String toJson ()
Returns
PaymentDataRequestUpdate 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 PaymentDataRequestUpdate object reference documentation.
public PaymentDataRequestUpdate withUpdatedSavedState (Bundle savedState)
Returns a new instance of
PaymentDataRequestUpdate with the given updated saved state.
If non null, the given updated saved state will replace the saved state associated
with the current
PaymentsClient.loadPaymentData(PaymentDataRequest) invocation. If null or
not set, the previously set saved state will remain unchanged.