Class PaymentMethod


  • public class PaymentMethod
    extends Object
    PaymentMethod
    • Constructor Detail

      • PaymentMethod

        public PaymentMethod()
    • Method Detail

      • getAfterpayTouch

        public AfterpayTouchInfo getAfterpayTouch()
        Get afterpayTouch
        Returns:
        afterpayTouch
      • setAfterpayTouch

        public void setAfterpayTouch​(AfterpayTouchInfo afterpayTouch)
        afterpayTouch
        Parameters:
        afterpayTouch -
      • 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)
        Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account.
        Parameters:
        allowed -
      • getApplePay

        public ApplePayInfo getApplePay()
        Get applePay
        Returns:
        applePay
      • setApplePay

        public void setApplePay​(ApplePayInfo applePay)
        applePay
        Parameters:
        applePay -
      • getBcmc

        public BcmcInfo getBcmc()
        Get bcmc
        Returns:
        bcmc
      • setBcmc

        public void setBcmc​(BcmcInfo bcmc)
        bcmc
        Parameters:
        bcmc -
      • getBusinessLineId

        public String getBusinessLineId()
        The unique identifier of the business line. Required if you have a [platform setup](https://docs.adyen.com/marketplaces-and-platforms/platform-structure-resources/platform-setup/).
        Returns:
        businessLineId
      • setBusinessLineId

        public void setBusinessLineId​(String businessLineId)
        The unique identifier of the business line. Required if you have a [platform setup](https://docs.adyen.com/marketplaces-and-platforms/platform-structure-resources/platform-setup/).
        Parameters:
        businessLineId -
      • getCartesBancaires

        public CartesBancairesInfo getCartesBancaires()
        Get cartesBancaires
        Returns:
        cartesBancaires
      • setCartesBancaires

        public void setCartesBancaires​(CartesBancairesInfo cartesBancaires)
        cartesBancaires
        Parameters:
        cartesBancaires -
      • getClearpay

        public ClearpayInfo getClearpay()
        Get clearpay
        Returns:
        clearpay
      • setClearpay

        public void setClearpay​(ClearpayInfo clearpay)
        clearpay
        Parameters:
        clearpay -
      • 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
      • setCountries

        public void setCountries​(List<String> countries)
        The list of countries where a payment method is available. By default, all countries supported by the payment method.
        Parameters:
        countries -
      • 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
      • setCurrencies

        public void setCurrencies​(List<String> currencies)
        The list of currencies that a payment method supports. By default, all currencies supported by the payment method.
        Parameters:
        currencies -
      • 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
      • setCustomRoutingFlags

        public void setCustomRoutingFlags​(List<String> customRoutingFlags)
        The list of custom routing flags to route payment to the intended acquirer.
        Parameters:
        customRoutingFlags -
      • setDiscover

        public void setDiscover​(GenericPmWithTdiInfo discover)
        discover
        Parameters:
        discover -
      • getEftposAustralia

        public GenericPmWithTdiInfo getEftposAustralia()
        Get eftposAustralia
        Returns:
        eftposAustralia
      • setEftposAustralia

        public void setEftposAustralia​(GenericPmWithTdiInfo eftposAustralia)
        eftposAustralia
        Parameters:
        eftposAustralia -
      • getEnabled

        public Boolean getEnabled()
        Indicates whether the payment method is enabled (**true**) or disabled (**false**).
        Returns:
        enabled
      • setEnabled

        public void setEnabled​(Boolean enabled)
        Indicates whether the payment method is enabled (**true**) or disabled (**false**).
        Parameters:
        enabled -
      • getGiroPay

        public GiroPayInfo getGiroPay()
        Get giroPay
        Returns:
        giroPay
      • setGiroPay

        public void setGiroPay​(GiroPayInfo giroPay)
        giroPay
        Parameters:
        giroPay -
      • setGirocard

        public void setGirocard​(GenericPmWithTdiInfo girocard)
        girocard
        Parameters:
        girocard -
      • getGooglePay

        public GooglePayInfo getGooglePay()
        Get googlePay
        Returns:
        googlePay
      • setGooglePay

        public void setGooglePay​(GooglePayInfo googlePay)
        googlePay
        Parameters:
        googlePay -
      • getId

        public String getId()
        The identifier of the resource.
        Returns:
        id
      • setId

        public void setId​(String id)
        The identifier of the resource.
        Parameters:
        id -
      • getInteracCard

        public GenericPmWithTdiInfo getInteracCard()
        Get interacCard
        Returns:
        interacCard
      • setInteracCard

        public void setInteracCard​(GenericPmWithTdiInfo interacCard)
        interacCard
        Parameters:
        interacCard -
      • getKlarna

        public KlarnaInfo getKlarna()
        Get klarna
        Returns:
        klarna
      • setKlarna

        public void setKlarna​(KlarnaInfo klarna)
        klarna
        Parameters:
        klarna -
      • setMaestro

        public void setMaestro​(GenericPmWithTdiInfo maestro)
        maestro
        Parameters:
        maestro -
      • getMealVoucherFR

        public MealVoucherFRInfo getMealVoucherFR()
        Get mealVoucherFR
        Returns:
        mealVoucherFR
      • setMealVoucherFR

        public void setMealVoucherFR​(MealVoucherFRInfo mealVoucherFR)
        mealVoucherFR
        Parameters:
        mealVoucherFR -
      • getPaypal

        public PayPalInfo getPaypal()
        Get paypal
        Returns:
        paypal
      • setPaypal

        public void setPaypal​(PayPalInfo paypal)
        paypal
        Parameters:
        paypal -
      • 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)
        Your reference for the payment method. Supported characters a-z, A-Z, 0-9.
        Parameters:
        reference -
      • getShopperInteraction

        public String getShopperInteraction()
        The sales channel.
        Returns:
        shopperInteraction
      • setShopperInteraction

        public void setShopperInteraction​(String shopperInteraction)
        The sales channel.
        Parameters:
        shopperInteraction -
      • getSofort

        public SofortInfo getSofort()
        Get sofort
        Returns:
        sofort
      • setSofort

        public void setSofort​(SofortInfo sofort)
        sofort
        Parameters:
        sofort -
      • getStoreIds

        public List<String> getStoreIds()
        The unique identifier of the store for which to configure the payment method, if any.
        Returns:
        storeIds
      • setStoreIds

        public void setStoreIds​(List<String> storeIds)
        The unique identifier of the store for which to configure the payment method, if any.
        Parameters:
        storeIds -
      • getSwish

        public SwishInfo getSwish()
        Get swish
        Returns:
        swish
      • setSwish

        public void setSwish​(SwishInfo swish)
        swish
        Parameters:
        swish -
      • getTwint

        public TwintInfo getTwint()
        Get twint
        Returns:
        twint
      • setTwint

        public void setTwint​(TwintInfo twint)
        twint
        Parameters:
        twint -
      • getType

        public String getType()
        Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
        Returns:
        type
      • setType

        public void setType​(String type)
        Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
        Parameters:
        type -
      • getVerificationStatus

        public PaymentMethod.VerificationStatusEnum getVerificationStatus()
        Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**
        Returns:
        verificationStatus
      • setVerificationStatus

        public void setVerificationStatus​(PaymentMethod.VerificationStatusEnum verificationStatus)
        Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**
        Parameters:
        verificationStatus -
      • getVipps

        public VippsInfo getVipps()
        Get vipps
        Returns:
        vipps
      • setVipps

        public void setVipps​(VippsInfo vipps)
        vipps
        Parameters:
        vipps -
      • equals

        public boolean equals​(Object o)
        Return true if this PaymentMethod object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static PaymentMethod fromJson​(String jsonString)
                                      throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of PaymentMethod given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PaymentMethod
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to PaymentMethod
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of PaymentMethod to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException