Class SplitConfigurationRule


  • public class SplitConfigurationRule
    extends Object
    SplitConfigurationRule
    • Constructor Detail

      • SplitConfigurationRule

        public SplitConfigurationRule()
    • Method Detail

      • currency

        public SplitConfigurationRule currency​(String currency)
        The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217).
        Parameters:
        currency -
        Returns:
        the current SplitConfigurationRule instance, allowing for method chaining
      • getCurrency

        public String getCurrency()
        The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217).
        Returns:
        currency
      • setCurrency

        public void setCurrency​(String currency)
        The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217).
        Parameters:
        currency -
      • fundingSource

        public SplitConfigurationRule fundingSource​(SplitConfigurationRule.FundingSourceEnum fundingSource)
        The funding source condition of the payment method (only for cards). Possible values: **credit**, **debit**, or **ANY**.
        Parameters:
        fundingSource -
        Returns:
        the current SplitConfigurationRule instance, allowing for method chaining
      • getFundingSource

        public SplitConfigurationRule.FundingSourceEnum getFundingSource()
        The funding source condition of the payment method (only for cards). Possible values: **credit**, **debit**, or **ANY**.
        Returns:
        fundingSource
      • setFundingSource

        public void setFundingSource​(SplitConfigurationRule.FundingSourceEnum fundingSource)
        The funding source condition of the payment method (only for cards). Possible values: **credit**, **debit**, or **ANY**.
        Parameters:
        fundingSource -
      • paymentMethod

        public SplitConfigurationRule paymentMethod​(String paymentMethod)
        The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods.
        Parameters:
        paymentMethod -
        Returns:
        the current SplitConfigurationRule instance, allowing for method chaining
      • getPaymentMethod

        public String getPaymentMethod()
        The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods.
        Returns:
        paymentMethod
      • setPaymentMethod

        public void setPaymentMethod​(String paymentMethod)
        The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods.
        Parameters:
        paymentMethod -
      • ruleId

        public SplitConfigurationRule ruleId​(String ruleId)
        The unique identifier of the split configuration rule.
        Parameters:
        ruleId -
        Returns:
        the current SplitConfigurationRule instance, allowing for method chaining
      • getRuleId

        public String getRuleId()
        The unique identifier of the split configuration rule.
        Returns:
        ruleId
      • setRuleId

        public void setRuleId​(String ruleId)
        The unique identifier of the split configuration rule.
        Parameters:
        ruleId -
      • shopperInteraction

        public SplitConfigurationRule shopperInteraction​(SplitConfigurationRule.ShopperInteractionEnum shopperInteraction)
        The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels.
        Parameters:
        shopperInteraction -
        Returns:
        the current SplitConfigurationRule instance, allowing for method chaining
      • getShopperInteraction

        public SplitConfigurationRule.ShopperInteractionEnum getShopperInteraction()
        The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels.
        Returns:
        shopperInteraction
      • setShopperInteraction

        public void setShopperInteraction​(SplitConfigurationRule.ShopperInteractionEnum shopperInteraction)
        The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels.
        Parameters:
        shopperInteraction -
      • setSplitLogic

        public void setSplitLogic​(SplitConfigurationLogic splitLogic)
        splitLogic
        Parameters:
        splitLogic -
      • equals

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

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

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

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