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 obj) |
long |
getCartTotal()
Get the cart total value, excluding shipping and tax items.
|
PaymentMethod |
getPaymentMethod() |
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 |
boolean |
updateIsPaymentReadyToCharge(PaymentSessionConfig config)
Function that looks at the
PaymentSessionConfig and determines whether the data is
ready to charge. |
void |
writeToParcel(android.os.Parcel parcel,
int i) |
public static final android.os.Parcelable.Creator<PaymentSessionData> CREATOR
public PaymentMethod getPaymentMethod()
PaymentSession
public long getCartTotal()
public boolean isPaymentReadyToCharge()
public void setPaymentReadyToCharge(boolean paymentReadyToCharge)
paymentReadyToCharge
- whether the payment data is ready for making a charge.public long getShippingTotal()
PaymentSession
public 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 PaymentSession
shippingInformation
- 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 PaymentSession
shippingMethod
- how the items being purchased should be shipped.public boolean updateIsPaymentReadyToCharge(PaymentSessionConfig config)
PaymentSessionConfig
and determines whether the data is
ready to charge.config
- specifies what data is requiredpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
in interface android.os.Parcelable