public class PaymentSessionData
extends java.lang.Object
implements android.os.Parcelable
PaymentSession.| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<PaymentSessionData> |
CREATOR |
| Constructor and Description |
|---|
PaymentSessionData() |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents()
Parcelable
|
boolean |
equals(java.lang.Object o) |
long |
getCartTotal()
Get the cart total value, excluding shipping and tax items.
|
java.lang.String |
getPaymentResult()
Get the payment result for this PaymentSession.
|
java.lang.String |
getSelectedPaymentMethodId()
Get the selected payment method ID for the associated
PaymentSession. |
ShippingInformation |
getShippingInformation()
Get the
ShippingInformation collected as part of the associated
PaymentSession
payment flow. |
ShippingMethod |
getShippingMethod()
Get the
ShippingMethod collected as part of the associated PaymentSession
payment flow. |
long |
getShippingTotal()
Get the value of shipping items in the associated
PaymentSession |
int |
hashCode() |
boolean |
isPaymentReadyToCharge()
Get the whether the all the payment data is ready for making a charge.
|
void |
setPaymentReadyToCharge(boolean paymentReadyToCharge)
Set whether the payment data is ready for making a charge.
|
void |
setShippingInformation(ShippingInformation shippingInformation)
Set the
ShippingInformation for the associated PaymentSession |
void |
setShippingMethod(ShippingMethod shippingMethod)
Set the
ShippingMethod for the associated PaymentSession |
void |
writeToParcel(android.os.Parcel parcel,
int i) |
public static final android.os.Parcelable.Creator<PaymentSessionData> CREATOR
public java.lang.String getSelectedPaymentMethodId()
PaymentSession.public long getCartTotal()
public java.lang.String getPaymentResult()
public boolean isPaymentReadyToCharge()
public void setPaymentReadyToCharge(boolean paymentReadyToCharge)
paymentReadyToCharge - whether the payment data is ready for making a charge.public long getShippingTotal()
PaymentSessionpublic ShippingInformation getShippingInformation()
ShippingInformation collected as part of the associated
PaymentSession
payment flow.ShippingInformation where the items being purchased should be shipped.public void setShippingInformation(ShippingInformation shippingInformation)
ShippingInformation for the associated PaymentSessionshippingInformation - where the items being purchased should be shipped.public ShippingMethod getShippingMethod()
ShippingMethod collected as part of the associated PaymentSession
payment flow.ShippingMethod how the items being purchased should be shipped.public void setShippingMethod(ShippingMethod shippingMethod)
ShippingMethod for the associated PaymentSessionshippingMethod - how the items being purchased should be shipped.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel parcel,
int i)
writeToParcel in interface android.os.Parcelable