Package com.adyen.model.management
Class PaymentMethod
- java.lang.Object
-
- com.adyen.model.management.PaymentMethod
-
public class PaymentMethod extends Object
PaymentMethod
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentMethod.CustomTypeAdapterFactorystatic classPaymentMethod.VerificationStatusEnumPayment method status.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PaymentMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentMethodaddCountriesItem(String countriesItem)PaymentMethodaddCurrenciesItem(String currenciesItem)PaymentMethodaddCustomRoutingFlagsItem(String customRoutingFlagsItem)PaymentMethodallowed(Boolean allowed)PaymentMethodapplePay(ApplePayInfo applePay)PaymentMethodbcmc(BcmcInfo bcmc)PaymentMethodbusinessLineId(String businessLineId)PaymentMethodcartesBancaires(CartesBancairesInfo cartesBancaires)PaymentMethodcountries(List<String> countries)PaymentMethodcurrencies(List<String> currencies)PaymentMethodcustomRoutingFlags(List<String> customRoutingFlags)PaymentMethodenabled(Boolean enabled)booleanequals(Object o)static PaymentMethodfromJson(String jsonString)Create an instance of PaymentMethod given an JSON stringBooleangetAllowed()Indicates whether receiving payments is allowed.ApplePayInfogetApplePay()Get applePayBcmcInfogetBcmc()Get bcmcStringgetBusinessLineId()The unique identifier of the business line.CartesBancairesInfogetCartesBancaires()Get cartesBancairesList<String>getCountries()The list of countries where a payment method is available.List<String>getCurrencies()The list of currencies that a payment method supports.List<String>getCustomRoutingFlags()The list of custom routing flags to route payment to the intended acquirer.BooleangetEnabled()Indicates whether the payment method is enabled (**true**) or disabled (**false**).GiroPayInfogetGiroPay()Get giroPayGooglePayInfogetGooglePay()Get googlePayStringgetId()The identifier of the resource.KlarnaInfogetKlarna()Get klarnaMealVoucherFRInfogetMealVoucherFR()Get mealVoucherFRPayPalInfogetPaypal()Get paypalStringgetReference()Your reference for the payment method.StringgetShopperInteraction()The sales channel.SofortInfogetSofort()Get sofortStringgetStoreId()The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any.SwishInfogetSwish()Get swishStringgetType()Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).PaymentMethod.VerificationStatusEnumgetVerificationStatus()Payment method status.VippsInfogetVipps()Get vippsPaymentMethodgiroPay(GiroPayInfo giroPay)PaymentMethodgooglePay(GooglePayInfo googlePay)inthashCode()PaymentMethodid(String id)PaymentMethodklarna(KlarnaInfo klarna)PaymentMethodmealVoucherFR(MealVoucherFRInfo mealVoucherFR)PaymentMethodpaypal(PayPalInfo paypal)PaymentMethodreference(String reference)voidsetAllowed(Boolean allowed)voidsetApplePay(ApplePayInfo applePay)voidsetBcmc(BcmcInfo bcmc)voidsetBusinessLineId(String businessLineId)voidsetCartesBancaires(CartesBancairesInfo cartesBancaires)voidsetCountries(List<String> countries)voidsetCurrencies(List<String> currencies)voidsetCustomRoutingFlags(List<String> customRoutingFlags)voidsetEnabled(Boolean enabled)voidsetGiroPay(GiroPayInfo giroPay)voidsetGooglePay(GooglePayInfo googlePay)voidsetId(String id)voidsetKlarna(KlarnaInfo klarna)voidsetMealVoucherFR(MealVoucherFRInfo mealVoucherFR)voidsetPaypal(PayPalInfo paypal)voidsetReference(String reference)voidsetShopperInteraction(String shopperInteraction)voidsetSofort(SofortInfo sofort)voidsetStoreId(String storeId)voidsetSwish(SwishInfo swish)voidsetType(String type)voidsetVerificationStatus(PaymentMethod.VerificationStatusEnum verificationStatus)voidsetVipps(VippsInfo vipps)PaymentMethodshopperInteraction(String shopperInteraction)PaymentMethodsofort(SofortInfo sofort)PaymentMethodstoreId(String storeId)PaymentMethodswish(SwishInfo swish)StringtoJson()Convert an instance of PaymentMethod to an JSON stringStringtoString()PaymentMethodtype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundPaymentMethodverificationStatus(PaymentMethod.VerificationStatusEnum verificationStatus)PaymentMethodvipps(VippsInfo vipps)
-
-
-
Field Detail
-
SERIALIZED_NAME_ALLOWED
public static final String SERIALIZED_NAME_ALLOWED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPLE_PAY
public static final String SERIALIZED_NAME_APPLE_PAY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BCMC
public static final String SERIALIZED_NAME_BCMC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BUSINESS_LINE_ID
public static final String SERIALIZED_NAME_BUSINESS_LINE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CARTES_BANCAIRES
public static final String SERIALIZED_NAME_CARTES_BANCAIRES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRIES
public static final String SERIALIZED_NAME_COUNTRIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENCIES
public static final String SERIALIZED_NAME_CURRENCIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CUSTOM_ROUTING_FLAGS
public static final String SERIALIZED_NAME_CUSTOM_ROUTING_FLAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLED
public static final String SERIALIZED_NAME_ENABLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GIRO_PAY
public static final String SERIALIZED_NAME_GIRO_PAY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GOOGLE_PAY
public static final String SERIALIZED_NAME_GOOGLE_PAY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_KLARNA
public static final String SERIALIZED_NAME_KLARNA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MEAL_VOUCHER_F_R
public static final String SERIALIZED_NAME_MEAL_VOUCHER_F_R
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYPAL
public static final String SERIALIZED_NAME_PAYPAL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_INTERACTION
public static final String SERIALIZED_NAME_SHOPPER_INTERACTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOFORT
public static final String SERIALIZED_NAME_SOFORT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORE_ID
public static final String SERIALIZED_NAME_STORE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SWISH
public static final String SERIALIZED_NAME_SWISH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERIFICATION_STATUS
public static final String SERIALIZED_NAME_VERIFICATION_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VIPPS
public static final String SERIALIZED_NAME_VIPPS
- See Also:
- Constant Field Values
-
-
Method Detail
-
allowed
public PaymentMethod allowed(Boolean allowed)
-
getAllowed
public Boolean getAllowed()
Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account.- Returns:
- allowed
-
setAllowed
public void setAllowed(Boolean allowed)
-
applePay
public PaymentMethod applePay(ApplePayInfo applePay)
-
getApplePay
public ApplePayInfo getApplePay()
Get applePay- Returns:
- applePay
-
setApplePay
public void setApplePay(ApplePayInfo applePay)
-
bcmc
public PaymentMethod bcmc(BcmcInfo bcmc)
-
getBcmc
public BcmcInfo getBcmc()
Get bcmc- Returns:
- bcmc
-
setBcmc
public void setBcmc(BcmcInfo bcmc)
-
businessLineId
public PaymentMethod businessLineId(String businessLineId)
-
getBusinessLineId
public String getBusinessLineId()
The unique identifier of the business line.- Returns:
- businessLineId
-
setBusinessLineId
public void setBusinessLineId(String businessLineId)
-
cartesBancaires
public PaymentMethod cartesBancaires(CartesBancairesInfo cartesBancaires)
-
getCartesBancaires
public CartesBancairesInfo getCartesBancaires()
Get cartesBancaires- Returns:
- cartesBancaires
-
setCartesBancaires
public void setCartesBancaires(CartesBancairesInfo cartesBancaires)
-
countries
public PaymentMethod countries(List<String> countries)
-
addCountriesItem
public PaymentMethod addCountriesItem(String countriesItem)
-
getCountries
public List<String> getCountries()
The list of countries where a payment method is available. By default, all countries supported by the payment method.- Returns:
- countries
-
currencies
public PaymentMethod currencies(List<String> currencies)
-
addCurrenciesItem
public PaymentMethod addCurrenciesItem(String currenciesItem)
-
getCurrencies
public List<String> getCurrencies()
The list of currencies that a payment method supports. By default, all currencies supported by the payment method.- Returns:
- currencies
-
customRoutingFlags
public PaymentMethod customRoutingFlags(List<String> customRoutingFlags)
-
addCustomRoutingFlagsItem
public PaymentMethod addCustomRoutingFlagsItem(String customRoutingFlagsItem)
-
getCustomRoutingFlags
public List<String> getCustomRoutingFlags()
The list of custom routing flags to route payment to the intended acquirer.- Returns:
- customRoutingFlags
-
enabled
public PaymentMethod enabled(Boolean enabled)
-
getEnabled
public Boolean getEnabled()
Indicates whether the payment method is enabled (**true**) or disabled (**false**).- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
giroPay
public PaymentMethod giroPay(GiroPayInfo giroPay)
-
getGiroPay
public GiroPayInfo getGiroPay()
Get giroPay- Returns:
- giroPay
-
setGiroPay
public void setGiroPay(GiroPayInfo giroPay)
-
googlePay
public PaymentMethod googlePay(GooglePayInfo googlePay)
-
getGooglePay
public GooglePayInfo getGooglePay()
Get googlePay- Returns:
- googlePay
-
setGooglePay
public void setGooglePay(GooglePayInfo googlePay)
-
id
public PaymentMethod id(String id)
-
getId
public String getId()
The identifier of the resource.- Returns:
- id
-
setId
public void setId(String id)
-
klarna
public PaymentMethod klarna(KlarnaInfo klarna)
-
getKlarna
public KlarnaInfo getKlarna()
Get klarna- Returns:
- klarna
-
setKlarna
public void setKlarna(KlarnaInfo klarna)
-
mealVoucherFR
public PaymentMethod mealVoucherFR(MealVoucherFRInfo mealVoucherFR)
-
getMealVoucherFR
public MealVoucherFRInfo getMealVoucherFR()
Get mealVoucherFR- Returns:
- mealVoucherFR
-
setMealVoucherFR
public void setMealVoucherFR(MealVoucherFRInfo mealVoucherFR)
-
paypal
public PaymentMethod paypal(PayPalInfo paypal)
-
getPaypal
public PayPalInfo getPaypal()
Get paypal- Returns:
- paypal
-
setPaypal
public void setPaypal(PayPalInfo paypal)
-
reference
public PaymentMethod reference(String reference)
-
getReference
public String getReference()
Your reference for the payment method. Supported characters a-z, A-Z, 0-9.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
shopperInteraction
public PaymentMethod shopperInteraction(String shopperInteraction)
-
getShopperInteraction
public String getShopperInteraction()
The sales channel.- Returns:
- shopperInteraction
-
setShopperInteraction
public void setShopperInteraction(String shopperInteraction)
-
sofort
public PaymentMethod sofort(SofortInfo sofort)
-
getSofort
public SofortInfo getSofort()
Get sofort- Returns:
- sofort
-
setSofort
public void setSofort(SofortInfo sofort)
-
storeId
public PaymentMethod storeId(String storeId)
-
getStoreId
public String getStoreId()
The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any.- Returns:
- storeId
-
setStoreId
public void setStoreId(String storeId)
-
swish
public PaymentMethod swish(SwishInfo swish)
-
getSwish
public SwishInfo getSwish()
Get swish- Returns:
- swish
-
setSwish
public void setSwish(SwishInfo swish)
-
type
public PaymentMethod type(String type)
-
getType
public String getType()
Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).- Returns:
- type
-
setType
public void setType(String type)
-
verificationStatus
public PaymentMethod verificationStatus(PaymentMethod.VerificationStatusEnum verificationStatus)
-
getVerificationStatus
public PaymentMethod.VerificationStatusEnum getVerificationStatus()
Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**- Returns:
- verificationStatus
-
setVerificationStatus
public void setVerificationStatus(PaymentMethod.VerificationStatusEnum verificationStatus)
-
vipps
public PaymentMethod vipps(VippsInfo vipps)
-
getVipps
public VippsInfo getVipps()
Get vipps- Returns:
- vipps
-
setVipps
public void setVipps(VippsInfo vipps)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to PaymentMethod
-
fromJson
public static PaymentMethod fromJson(String jsonString) throws IOException
Create an instance of PaymentMethod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentMethod
- Throws:
IOException- if the JSON string is invalid with respect to PaymentMethod
-
toJson
public String toJson()
Convert an instance of PaymentMethod to an JSON string- Returns:
- JSON string
-
-