Class Action
-
- All Implemented Interfaces:
-
android.os.Parcelable
public abstract class Action extends ModelObjectAn Action is an object from the response of the /payments API call that indicates what needs to be done to complete the payment. Each type of Action contains different properties, so we use polymorphism to parse which type of Action we are dealing with.
Action.SERIALIZER can be used to serialize and deserialize the subclasses of Action without having to know the exact type of the subclass.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAction.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringTYPEpublic final static StringPAYMENT_DATApublic final static StringPAYMENT_METHOD_TYPEpublic final static ModelObject.Serializer<Action>SERIALIZERprivate Stringtypeprivate StringpaymentDataprivate StringpaymentMethodTypepublic final static Action.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description Action()
-
Method Summary
Modifier and Type Method Description abstract StringgetType()abstract UnitsetType(String type)abstract StringgetPaymentData()abstract UnitsetPaymentData(String paymentData)abstract StringgetPaymentMethodType()abstract UnitsetPaymentMethodType(String paymentMethodType)-
Methods inherited from class com.adyen.checkout.core.internal.data.model.ModelObject
describeContents -
Methods inherited from class android.os.Parcelable
writeToParcel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPaymentData
abstract String getPaymentData()
-
setPaymentData
abstract Unit setPaymentData(String paymentData)
-
getPaymentMethodType
abstract String getPaymentMethodType()
-
setPaymentMethodType
abstract Unit setPaymentMethodType(String paymentMethodType)
-
-
-
-