Package com.adyen.model.checkout
Class CheckoutPaymentMethod
- java.lang.Object
-
- com.adyen.model.checkout.AbstractOpenApiSchema
-
- com.adyen.model.checkout.CheckoutPaymentMethod
-
public class CheckoutPaymentMethod extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutPaymentMethod.CheckoutPaymentMethodDeserializerstatic classCheckoutPaymentMethod.CheckoutPaymentMethodSerializer
-
Constructor Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CheckoutPaymentMethodfromJson(String jsonString)Create an instance of CheckoutPaymentMethod given an JSON stringAchDetailsgetAchDetails()Get the actual instance of `AchDetails`.ObjectgetActualInstance()Get the actual instance, which can be the following: AchDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DotpayDetails, DragonpayDetails, EcontextVoucherDetails, GenericIssuerPaymentMethodDetails, GiropayDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankDetails, PayPalDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, RatepayDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetailsAfterpayDetailsgetAfterpayDetails()Get the actual instance of `AfterpayDetails`.AmazonPayDetailsgetAmazonPayDetails()Get the actual instance of `AmazonPayDetails`.AncvDetailsgetAncvDetails()Get the actual instance of `AncvDetails`.AndroidPayDetailsgetAndroidPayDetails()Get the actual instance of `AndroidPayDetails`.ApplePayDetailsgetApplePayDetails()Get the actual instance of `ApplePayDetails`.BacsDirectDebitDetailsgetBacsDirectDebitDetails()Get the actual instance of `BacsDirectDebitDetails`.BillDeskDetailsgetBillDeskDetails()Get the actual instance of `BillDeskDetails`.BlikDetailsgetBlikDetails()Get the actual instance of `BlikDetails`.CardDetailsgetCardDetails()Get the actual instance of `CardDetails`.CashAppDetailsgetCashAppDetails()Get the actual instance of `CashAppDetails`.CellulantDetailsgetCellulantDetails()Get the actual instance of `CellulantDetails`.DokuDetailsgetDokuDetails()Get the actual instance of `DokuDetails`.DotpayDetailsgetDotpayDetails()Get the actual instance of `DotpayDetails`.DragonpayDetailsgetDragonpayDetails()Get the actual instance of `DragonpayDetails`.EcontextVoucherDetailsgetEcontextVoucherDetails()Get the actual instance of `EcontextVoucherDetails`.GenericIssuerPaymentMethodDetailsgetGenericIssuerPaymentMethodDetails()Get the actual instance of `GenericIssuerPaymentMethodDetails`.GiropayDetailsgetGiropayDetails()Get the actual instance of `GiropayDetails`.GooglePayDetailsgetGooglePayDetails()Get the actual instance of `GooglePayDetails`.IdealDetailsgetIdealDetails()Get the actual instance of `IdealDetails`.KlarnaDetailsgetKlarnaDetails()Get the actual instance of `KlarnaDetails`.MasterpassDetailsgetMasterpassDetails()Get the actual instance of `MasterpassDetails`.MbwayDetailsgetMbwayDetails()Get the actual instance of `MbwayDetails`.MobilePayDetailsgetMobilePayDetails()Get the actual instance of `MobilePayDetails`.MolPayDetailsgetMolPayDetails()Get the actual instance of `MolPayDetails`.OpenInvoiceDetailsgetOpenInvoiceDetails()Get the actual instance of `OpenInvoiceDetails`.PayByBankDetailsgetPayByBankDetails()Get the actual instance of `PayByBankDetails`.PaymentDetailsgetPaymentDetails()Get the actual instance of `PaymentDetails`.PayPalDetailsgetPayPalDetails()Get the actual instance of `PayPalDetails`.PayUUpiDetailsgetPayUUpiDetails()Get the actual instance of `PayUUpiDetails`.PayWithGoogleDetailsgetPayWithGoogleDetails()Get the actual instance of `PayWithGoogleDetails`.RatepayDetailsgetRatepayDetails()Get the actual instance of `RatepayDetails`.SamsungPayDetailsgetSamsungPayDetails()Get the actual instance of `SamsungPayDetails`.Map<String,jakarta.ws.rs.core.GenericType>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectSepaDirectDebitDetailsgetSepaDirectDebitDetails()Get the actual instance of `SepaDirectDebitDetails`.StoredPaymentMethodDetailsgetStoredPaymentMethodDetails()Get the actual instance of `StoredPaymentMethodDetails`.UpiCollectDetailsgetUpiCollectDetails()Get the actual instance of `UpiCollectDetails`.UpiIntentDetailsgetUpiIntentDetails()Get the actual instance of `UpiIntentDetails`.VippsDetailsgetVippsDetails()Get the actual instance of `VippsDetails`.VisaCheckoutDetailsgetVisaCheckoutDetails()Get the actual instance of `VisaCheckoutDetails`.WeChatPayDetailsgetWeChatPayDetails()Get the actual instance of `WeChatPayDetails`.WeChatPayMiniProgramDetailsgetWeChatPayMiniProgramDetails()Get the actual instance of `WeChatPayMiniProgramDetails`.ZipDetailsgetZipDetails()Get the actual instance of `ZipDetails`.voidsetActualInstance(Object instance)Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: AchDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DotpayDetails, DragonpayDetails, EcontextVoucherDetails, GenericIssuerPaymentMethodDetails, GiropayDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankDetails, PayPalDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, RatepayDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails It could be an instance of the 'oneOf' schemas.StringtoJson()Convert an instance of CheckoutPaymentMethod to an JSON string-
Methods inherited from class com.adyen.model.checkout.AbstractOpenApiSchema
equals, getActualInstanceRecursively, getSchemaType, hashCode, isNullable, toString
-
-
-
-
Constructor Detail
-
CheckoutPaymentMethod
public CheckoutPaymentMethod()
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(AchDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(AfterpayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(AmazonPayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(AncvDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(AndroidPayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(ApplePayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(BacsDirectDebitDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(BillDeskDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(BlikDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(CardDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(CashAppDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(CellulantDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(DokuDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(DotpayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(DragonpayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(EcontextVoucherDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(GenericIssuerPaymentMethodDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(GiropayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(GooglePayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(IdealDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(KlarnaDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(MasterpassDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(MbwayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(MobilePayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(MolPayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(OpenInvoiceDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(PayByBankDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(PayPalDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(PayUUpiDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(PayWithGoogleDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(PaymentDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(RatepayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(SamsungPayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(SepaDirectDebitDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(StoredPaymentMethodDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(UpiCollectDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(UpiIntentDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(VippsDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(VisaCheckoutDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(WeChatPayDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(WeChatPayMiniProgramDetails o)
-
CheckoutPaymentMethod
public CheckoutPaymentMethod(ZipDetails o)
-
-
Method Detail
-
getSchemas
public Map<String,jakarta.ws.rs.core.GenericType> getSchemas()
Description copied from class:AbstractOpenApiSchemaGet the list of oneOf/anyOf composed schemas allowed to be stored in this object- Specified by:
getSchemasin classAbstractOpenApiSchema- Returns:
- an instance of the actual schema/object
-
setActualInstance
public void setActualInstance(Object instance)
Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: AchDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DotpayDetails, DragonpayDetails, EcontextVoucherDetails, GenericIssuerPaymentMethodDetails, GiropayDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankDetails, PayPalDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, RatepayDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf).- Overrides:
setActualInstancein classAbstractOpenApiSchema- Parameters:
instance- the actual instance of the schema/object
-
getActualInstance
public Object getActualInstance()
Get the actual instance, which can be the following: AchDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DotpayDetails, DragonpayDetails, EcontextVoucherDetails, GenericIssuerPaymentMethodDetails, GiropayDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankDetails, PayPalDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, RatepayDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails- Overrides:
getActualInstancein classAbstractOpenApiSchema- Returns:
- The actual instance (AchDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DotpayDetails, DragonpayDetails, EcontextVoucherDetails, GenericIssuerPaymentMethodDetails, GiropayDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankDetails, PayPalDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, RatepayDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails)
-
getAchDetails
public AchDetails getAchDetails() throws ClassCastException
Get the actual instance of `AchDetails`. If the actual instance is not `AchDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `AchDetails`
- Throws:
ClassCastException- if the instance is not `AchDetails`
-
getAfterpayDetails
public AfterpayDetails getAfterpayDetails() throws ClassCastException
Get the actual instance of `AfterpayDetails`. If the actual instance is not `AfterpayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `AfterpayDetails`
- Throws:
ClassCastException- if the instance is not `AfterpayDetails`
-
getAmazonPayDetails
public AmazonPayDetails getAmazonPayDetails() throws ClassCastException
Get the actual instance of `AmazonPayDetails`. If the actual instance is not `AmazonPayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `AmazonPayDetails`
- Throws:
ClassCastException- if the instance is not `AmazonPayDetails`
-
getAncvDetails
public AncvDetails getAncvDetails() throws ClassCastException
Get the actual instance of `AncvDetails`. If the actual instance is not `AncvDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `AncvDetails`
- Throws:
ClassCastException- if the instance is not `AncvDetails`
-
getAndroidPayDetails
public AndroidPayDetails getAndroidPayDetails() throws ClassCastException
Get the actual instance of `AndroidPayDetails`. If the actual instance is not `AndroidPayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `AndroidPayDetails`
- Throws:
ClassCastException- if the instance is not `AndroidPayDetails`
-
getApplePayDetails
public ApplePayDetails getApplePayDetails() throws ClassCastException
Get the actual instance of `ApplePayDetails`. If the actual instance is not `ApplePayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `ApplePayDetails`
- Throws:
ClassCastException- if the instance is not `ApplePayDetails`
-
getBacsDirectDebitDetails
public BacsDirectDebitDetails getBacsDirectDebitDetails() throws ClassCastException
Get the actual instance of `BacsDirectDebitDetails`. If the actual instance is not `BacsDirectDebitDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `BacsDirectDebitDetails`
- Throws:
ClassCastException- if the instance is not `BacsDirectDebitDetails`
-
getBillDeskDetails
public BillDeskDetails getBillDeskDetails() throws ClassCastException
Get the actual instance of `BillDeskDetails`. If the actual instance is not `BillDeskDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `BillDeskDetails`
- Throws:
ClassCastException- if the instance is not `BillDeskDetails`
-
getBlikDetails
public BlikDetails getBlikDetails() throws ClassCastException
Get the actual instance of `BlikDetails`. If the actual instance is not `BlikDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `BlikDetails`
- Throws:
ClassCastException- if the instance is not `BlikDetails`
-
getCardDetails
public CardDetails getCardDetails() throws ClassCastException
Get the actual instance of `CardDetails`. If the actual instance is not `CardDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `CardDetails`
- Throws:
ClassCastException- if the instance is not `CardDetails`
-
getCashAppDetails
public CashAppDetails getCashAppDetails() throws ClassCastException
Get the actual instance of `CashAppDetails`. If the actual instance is not `CashAppDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `CashAppDetails`
- Throws:
ClassCastException- if the instance is not `CashAppDetails`
-
getCellulantDetails
public CellulantDetails getCellulantDetails() throws ClassCastException
Get the actual instance of `CellulantDetails`. If the actual instance is not `CellulantDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `CellulantDetails`
- Throws:
ClassCastException- if the instance is not `CellulantDetails`
-
getDokuDetails
public DokuDetails getDokuDetails() throws ClassCastException
Get the actual instance of `DokuDetails`. If the actual instance is not `DokuDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `DokuDetails`
- Throws:
ClassCastException- if the instance is not `DokuDetails`
-
getDotpayDetails
public DotpayDetails getDotpayDetails() throws ClassCastException
Get the actual instance of `DotpayDetails`. If the actual instance is not `DotpayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `DotpayDetails`
- Throws:
ClassCastException- if the instance is not `DotpayDetails`
-
getDragonpayDetails
public DragonpayDetails getDragonpayDetails() throws ClassCastException
Get the actual instance of `DragonpayDetails`. If the actual instance is not `DragonpayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `DragonpayDetails`
- Throws:
ClassCastException- if the instance is not `DragonpayDetails`
-
getEcontextVoucherDetails
public EcontextVoucherDetails getEcontextVoucherDetails() throws ClassCastException
Get the actual instance of `EcontextVoucherDetails`. If the actual instance is not `EcontextVoucherDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `EcontextVoucherDetails`
- Throws:
ClassCastException- if the instance is not `EcontextVoucherDetails`
-
getGenericIssuerPaymentMethodDetails
public GenericIssuerPaymentMethodDetails getGenericIssuerPaymentMethodDetails() throws ClassCastException
Get the actual instance of `GenericIssuerPaymentMethodDetails`. If the actual instance is not `GenericIssuerPaymentMethodDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `GenericIssuerPaymentMethodDetails`
- Throws:
ClassCastException- if the instance is not `GenericIssuerPaymentMethodDetails`
-
getGiropayDetails
public GiropayDetails getGiropayDetails() throws ClassCastException
Get the actual instance of `GiropayDetails`. If the actual instance is not `GiropayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `GiropayDetails`
- Throws:
ClassCastException- if the instance is not `GiropayDetails`
-
getGooglePayDetails
public GooglePayDetails getGooglePayDetails() throws ClassCastException
Get the actual instance of `GooglePayDetails`. If the actual instance is not `GooglePayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `GooglePayDetails`
- Throws:
ClassCastException- if the instance is not `GooglePayDetails`
-
getIdealDetails
public IdealDetails getIdealDetails() throws ClassCastException
Get the actual instance of `IdealDetails`. If the actual instance is not `IdealDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `IdealDetails`
- Throws:
ClassCastException- if the instance is not `IdealDetails`
-
getKlarnaDetails
public KlarnaDetails getKlarnaDetails() throws ClassCastException
Get the actual instance of `KlarnaDetails`. If the actual instance is not `KlarnaDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `KlarnaDetails`
- Throws:
ClassCastException- if the instance is not `KlarnaDetails`
-
getMasterpassDetails
public MasterpassDetails getMasterpassDetails() throws ClassCastException
Get the actual instance of `MasterpassDetails`. If the actual instance is not `MasterpassDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `MasterpassDetails`
- Throws:
ClassCastException- if the instance is not `MasterpassDetails`
-
getMbwayDetails
public MbwayDetails getMbwayDetails() throws ClassCastException
Get the actual instance of `MbwayDetails`. If the actual instance is not `MbwayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `MbwayDetails`
- Throws:
ClassCastException- if the instance is not `MbwayDetails`
-
getMobilePayDetails
public MobilePayDetails getMobilePayDetails() throws ClassCastException
Get the actual instance of `MobilePayDetails`. If the actual instance is not `MobilePayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `MobilePayDetails`
- Throws:
ClassCastException- if the instance is not `MobilePayDetails`
-
getMolPayDetails
public MolPayDetails getMolPayDetails() throws ClassCastException
Get the actual instance of `MolPayDetails`. If the actual instance is not `MolPayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `MolPayDetails`
- Throws:
ClassCastException- if the instance is not `MolPayDetails`
-
getOpenInvoiceDetails
public OpenInvoiceDetails getOpenInvoiceDetails() throws ClassCastException
Get the actual instance of `OpenInvoiceDetails`. If the actual instance is not `OpenInvoiceDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `OpenInvoiceDetails`
- Throws:
ClassCastException- if the instance is not `OpenInvoiceDetails`
-
getPayByBankDetails
public PayByBankDetails getPayByBankDetails() throws ClassCastException
Get the actual instance of `PayByBankDetails`. If the actual instance is not `PayByBankDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `PayByBankDetails`
- Throws:
ClassCastException- if the instance is not `PayByBankDetails`
-
getPayPalDetails
public PayPalDetails getPayPalDetails() throws ClassCastException
Get the actual instance of `PayPalDetails`. If the actual instance is not `PayPalDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `PayPalDetails`
- Throws:
ClassCastException- if the instance is not `PayPalDetails`
-
getPayUUpiDetails
public PayUUpiDetails getPayUUpiDetails() throws ClassCastException
Get the actual instance of `PayUUpiDetails`. If the actual instance is not `PayUUpiDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `PayUUpiDetails`
- Throws:
ClassCastException- if the instance is not `PayUUpiDetails`
-
getPayWithGoogleDetails
public PayWithGoogleDetails getPayWithGoogleDetails() throws ClassCastException
Get the actual instance of `PayWithGoogleDetails`. If the actual instance is not `PayWithGoogleDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `PayWithGoogleDetails`
- Throws:
ClassCastException- if the instance is not `PayWithGoogleDetails`
-
getPaymentDetails
public PaymentDetails getPaymentDetails() throws ClassCastException
Get the actual instance of `PaymentDetails`. If the actual instance is not `PaymentDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `PaymentDetails`
- Throws:
ClassCastException- if the instance is not `PaymentDetails`
-
getRatepayDetails
public RatepayDetails getRatepayDetails() throws ClassCastException
Get the actual instance of `RatepayDetails`. If the actual instance is not `RatepayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `RatepayDetails`
- Throws:
ClassCastException- if the instance is not `RatepayDetails`
-
getSamsungPayDetails
public SamsungPayDetails getSamsungPayDetails() throws ClassCastException
Get the actual instance of `SamsungPayDetails`. If the actual instance is not `SamsungPayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `SamsungPayDetails`
- Throws:
ClassCastException- if the instance is not `SamsungPayDetails`
-
getSepaDirectDebitDetails
public SepaDirectDebitDetails getSepaDirectDebitDetails() throws ClassCastException
Get the actual instance of `SepaDirectDebitDetails`. If the actual instance is not `SepaDirectDebitDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `SepaDirectDebitDetails`
- Throws:
ClassCastException- if the instance is not `SepaDirectDebitDetails`
-
getStoredPaymentMethodDetails
public StoredPaymentMethodDetails getStoredPaymentMethodDetails() throws ClassCastException
Get the actual instance of `StoredPaymentMethodDetails`. If the actual instance is not `StoredPaymentMethodDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `StoredPaymentMethodDetails`
- Throws:
ClassCastException- if the instance is not `StoredPaymentMethodDetails`
-
getUpiCollectDetails
public UpiCollectDetails getUpiCollectDetails() throws ClassCastException
Get the actual instance of `UpiCollectDetails`. If the actual instance is not `UpiCollectDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `UpiCollectDetails`
- Throws:
ClassCastException- if the instance is not `UpiCollectDetails`
-
getUpiIntentDetails
public UpiIntentDetails getUpiIntentDetails() throws ClassCastException
Get the actual instance of `UpiIntentDetails`. If the actual instance is not `UpiIntentDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `UpiIntentDetails`
- Throws:
ClassCastException- if the instance is not `UpiIntentDetails`
-
getVippsDetails
public VippsDetails getVippsDetails() throws ClassCastException
Get the actual instance of `VippsDetails`. If the actual instance is not `VippsDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `VippsDetails`
- Throws:
ClassCastException- if the instance is not `VippsDetails`
-
getVisaCheckoutDetails
public VisaCheckoutDetails getVisaCheckoutDetails() throws ClassCastException
Get the actual instance of `VisaCheckoutDetails`. If the actual instance is not `VisaCheckoutDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `VisaCheckoutDetails`
- Throws:
ClassCastException- if the instance is not `VisaCheckoutDetails`
-
getWeChatPayDetails
public WeChatPayDetails getWeChatPayDetails() throws ClassCastException
Get the actual instance of `WeChatPayDetails`. If the actual instance is not `WeChatPayDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `WeChatPayDetails`
- Throws:
ClassCastException- if the instance is not `WeChatPayDetails`
-
getWeChatPayMiniProgramDetails
public WeChatPayMiniProgramDetails getWeChatPayMiniProgramDetails() throws ClassCastException
Get the actual instance of `WeChatPayMiniProgramDetails`. If the actual instance is not `WeChatPayMiniProgramDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `WeChatPayMiniProgramDetails`
- Throws:
ClassCastException- if the instance is not `WeChatPayMiniProgramDetails`
-
getZipDetails
public ZipDetails getZipDetails() throws ClassCastException
Get the actual instance of `ZipDetails`. If the actual instance is not `ZipDetails`, the ClassCastException will be thrown.- Returns:
- The actual instance of `ZipDetails`
- Throws:
ClassCastException- if the instance is not `ZipDetails`
-
fromJson
public static CheckoutPaymentMethod fromJson(String jsonString) throws IOException
Create an instance of CheckoutPaymentMethod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutPaymentMethod
- Throws:
IOException- if the JSON string is invalid with respect to CheckoutPaymentMethod
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CheckoutPaymentMethod to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-