Class CheckoutActivityResult
-
- All Implemented Interfaces:
-
android.os.Parcelable
public class CheckoutActivityResult implements Parcelable
Represents result of com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCheckoutActivityResult.Builder
-
Field Summary
Fields Modifier and Type Field Description public final Transactiontransactionpublic final PaymentErrorpaymentErrorpublic final StringresourcePathpublic final booleanisCanceledpublic final static Parcelable.Creator<CheckoutActivityResult>CREATOR
-
Method Summary
Modifier and Type Method Description TransactiongetTransaction()Returns the Transaction, if it is available. PaymentErrorgetPaymentError()Returns the PaymentError, if there was an error during the checkout process. StringgetResourcePath()Returns the resource path for payment status request, if it is available. booleanisCanceled()Indicates if checkout is canceled by user. booleanisErrored()Indicates if there was an error during the checkout process. intdescribeContents()voidwriteToParcel(Parcel dest, int flags)booleanequals(Object o)inthashCode()-
-
Method Detail
-
getTransaction
@Nullable() Transaction getTransaction()
Returns the Transaction, if it is available.
- Returns:
the transaction, or
null
-
getPaymentError
@Nullable() PaymentError getPaymentError()
Returns the PaymentError, if there was an error during the checkout process.
- Returns:
the payment error, or
null.
-
getResourcePath
@Nullable() String getResourcePath()
Returns the resource path for payment status request, if it is available.
- Returns:
the resource path, or
null.
-
isCanceled
boolean isCanceled()
Indicates if checkout is canceled by user.
- Returns:
trueif checkout is canceled, otherwisefalse.
-
isErrored
boolean isErrored()
Indicates if there was an error during the checkout process.
- Returns:
truein case of checkout error, otherwisefalse.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-