Class PaymentMethod


  • public class PaymentMethod
    extends Object
    PaymentMethod
    • Constructor Detail

      • PaymentMethod

        public PaymentMethod()
    • Method Detail

      • 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)
      • getApplePay

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

        public void setApplePay​(ApplePayInfo applePay)
      • getBcmc

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

        public void setBcmc​(BcmcInfo bcmc)
      • getBusinessLineId

        public String getBusinessLineId()
        The unique identifier of the business line.
        Returns:
        businessLineId
      • setBusinessLineId

        public void setBusinessLineId​(String businessLineId)
      • getCartesBancaires

        public CartesBancairesInfo getCartesBancaires()
        Get cartesBancaires
        Returns:
        cartesBancaires
      • 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)
      • 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)
      • 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)
      • getEnabled

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

        public void setEnabled​(Boolean enabled)
      • getGiroPay

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

        public void setGiroPay​(GiroPayInfo giroPay)
      • getGooglePay

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

        public void setGooglePay​(GooglePayInfo googlePay)
      • getId

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

        public void setId​(String id)
      • getKlarna

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

        public void setKlarna​(KlarnaInfo klarna)
      • getMealVoucherFR

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

        public void setMealVoucherFR​(MealVoucherFRInfo mealVoucherFR)
      • getPaypal

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

        public void setPaypal​(PayPalInfo 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)
      • getShopperInteraction

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

        public void setShopperInteraction​(String shopperInteraction)
      • getSofort

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

        public void setSofort​(SofortInfo sofort)
      • 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)
      • getSwish

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

        public void setSwish​(SwishInfo swish)
      • getType

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

        public void setType​(String type)
      • getVerificationStatus

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

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

        public void setVipps​(VippsInfo vipps)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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