Class SplitConfigurationLogic


  • public class SplitConfigurationLogic
    extends Object
    SplitConfigurationLogic
    • Constructor Detail

      • SplitConfigurationLogic

        public SplitConfigurationLogic()
    • Method Detail

      • getAcquiringFees

        public SplitConfigurationLogic.AcquiringFeesEnum getAcquiringFees()
        Specifies the logic to apply when booking the transaction fees. Should be combined with adyenFees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Returns:
        acquiringFees
      • setAcquiringFees

        public void setAcquiringFees​(SplitConfigurationLogic.AcquiringFeesEnum acquiringFees)
        Specifies the logic to apply when booking the transaction fees. Should be combined with adyenFees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Parameters:
        acquiringFees -
      • getAdditionalCommission

        public AdditionalCommission getAdditionalCommission()
        Get additionalCommission
        Returns:
        additionalCommission
      • setAdditionalCommission

        public void setAdditionalCommission​(AdditionalCommission additionalCommission)
        additionalCommission
        Parameters:
        additionalCommission -
      • getAdyenCommission

        public SplitConfigurationLogic.AdyenCommissionEnum getAdyenCommission()
        Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, interchange & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Returns:
        adyenCommission
      • setAdyenCommission

        public void setAdyenCommission​(SplitConfigurationLogic.AdyenCommissionEnum adyenCommission)
        Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, interchange & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Parameters:
        adyenCommission -
      • getAdyenFees

        public SplitConfigurationLogic.AdyenFeesEnum getAdyenFees()
        Specifies the logic to apply when booking the transaction fees. Should be combined with acquiringFees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Returns:
        adyenFees
      • setAdyenFees

        public void setAdyenFees​(SplitConfigurationLogic.AdyenFeesEnum adyenFees)
        Specifies the logic to apply when booking the transaction fees. Should be combined with acquiringFees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Parameters:
        adyenFees -
      • getAdyenMarkup

        public SplitConfigurationLogic.AdyenMarkupEnum getAdyenMarkup()
        Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, adyenCommission & interchange. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Returns:
        adyenMarkup
      • setAdyenMarkup

        public void setAdyenMarkup​(SplitConfigurationLogic.AdyenMarkupEnum adyenMarkup)
        Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, adyenCommission & interchange. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Parameters:
        adyenMarkup -
      • getChargeback

        public SplitConfigurationLogic.ChargebackEnum getChargeback()
        Specifies the logic to apply when booking the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**.
        Returns:
        chargeback
      • setChargeback

        public void setChargeback​(SplitConfigurationLogic.ChargebackEnum chargeback)
        Specifies the logic to apply when booking the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**.
        Parameters:
        chargeback -
      • getChargebackCostAllocation

        public SplitConfigurationLogic.ChargebackCostAllocationEnum getChargebackCostAllocation()
        Specifies the logic to apply when allocating the chargeback costs. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**
        Returns:
        chargebackCostAllocation
      • setChargebackCostAllocation

        public void setChargebackCostAllocation​(SplitConfigurationLogic.ChargebackCostAllocationEnum chargebackCostAllocation)
        Specifies the logic to apply when allocating the chargeback costs. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**
        Parameters:
        chargebackCostAllocation -
      • getCommission

        public Commission getCommission()
        Get commission
        Returns:
        commission
      • setCommission

        public void setCommission​(Commission commission)
        commission
        Parameters:
        commission -
      • getInterchange

        public SplitConfigurationLogic.InterchangeEnum getInterchange()
        Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, adyenCommission & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Returns:
        interchange
      • setInterchange

        public void setInterchange​(SplitConfigurationLogic.InterchangeEnum interchange)
        Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, adyenCommission & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Parameters:
        interchange -
      • getPaymentFee

        public SplitConfigurationLogic.PaymentFeeEnum getPaymentFee()
        Specifies the logic to apply when booking the transaction fees. Cannot be combined with other fees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Returns:
        paymentFee
      • setPaymentFee

        public void setPaymentFee​(SplitConfigurationLogic.PaymentFeeEnum paymentFee)
        Specifies the logic to apply when booking the transaction fees. Cannot be combined with other fees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Parameters:
        paymentFee -
      • getRemainder

        public SplitConfigurationLogic.RemainderEnum getRemainder()
        Specifies the logic to apply when booking the amount left over after currency conversion. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**.
        Returns:
        remainder
      • setRemainder

        public void setRemainder​(SplitConfigurationLogic.RemainderEnum remainder)
        Specifies the logic to apply when booking the amount left over after currency conversion. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**.
        Parameters:
        remainder -
      • getSchemeFee

        public SplitConfigurationLogic.SchemeFeeEnum getSchemeFee()
        Specifies the logic to apply when booking the transaction fees. Should be combined with interchange, adyenCommission & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Returns:
        schemeFee
      • setSchemeFee

        public void setSchemeFee​(SplitConfigurationLogic.SchemeFeeEnum schemeFee)
        Specifies the logic to apply when booking the transaction fees. Should be combined with interchange, adyenCommission & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.
        Parameters:
        schemeFee -
      • getSplitLogicId

        public String getSplitLogicId()
        Unique identifier of the split logic that is applied when the split configuration conditions are met.
        Returns:
        splitLogicId
      • setSplitLogicId

        public void setSplitLogicId​(String splitLogicId)
        Unique identifier of the split logic that is applied when the split configuration conditions are met.
        Parameters:
        splitLogicId -
      • getSurcharge

        public SplitConfigurationLogic.SurchargeEnum getSurcharge()
        Specifies the logic to apply when booking the surcharge amount. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**
        Returns:
        surcharge
      • setSurcharge

        public void setSurcharge​(SplitConfigurationLogic.SurchargeEnum surcharge)
        Specifies the logic to apply when booking the surcharge amount. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**
        Parameters:
        surcharge -
      • getTip

        public SplitConfigurationLogic.TipEnum getTip()
        Specifies the logic to apply when booking tips (gratuity). Possible values: **addToLiableAccount**, **addToOneBalanceAccount**.
        Returns:
        tip
      • setTip

        public void setTip​(SplitConfigurationLogic.TipEnum tip)
        Specifies the logic to apply when booking tips (gratuity). Possible values: **addToLiableAccount**, **addToOneBalanceAccount**.
        Parameters:
        tip -
      • equals

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

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

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

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