Package com.adyen.model.management
Class SplitConfigurationLogic
- java.lang.Object
-
- com.adyen.model.management.SplitConfigurationLogic
-
public class SplitConfigurationLogic extends Object
SplitConfigurationLogic
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSplitConfigurationLogic.AcquiringFeesEnumSpecifies the logic to apply when booking the transaction fees.static classSplitConfigurationLogic.AdyenCommissionEnumSpecifies the logic to apply when booking the transaction fees.static classSplitConfigurationLogic.AdyenFeesEnumSpecifies the logic to apply when booking the transaction fees.static classSplitConfigurationLogic.AdyenMarkupEnumSpecifies the logic to apply when booking the transaction fees.static classSplitConfigurationLogic.ChargebackCostAllocationEnumSpecifies the logic to apply when allocating the chargeback costs.static classSplitConfigurationLogic.ChargebackEnumSpecifies the logic to apply when booking the chargeback amount.static classSplitConfigurationLogic.InterchangeEnumSpecifies the logic to apply when booking the transaction fees.static classSplitConfigurationLogic.PaymentFeeEnumSpecifies the logic to apply when booking the transaction fees.static classSplitConfigurationLogic.RemainderEnumSpecifies the logic to apply when booking the amount left over after currency conversion.static classSplitConfigurationLogic.SchemeFeeEnumSpecifies the logic to apply when booking the transaction fees.static classSplitConfigurationLogic.SurchargeEnumSpecifies the logic to apply when booking the surcharge amount.static classSplitConfigurationLogic.TipEnumSpecifies the logic to apply when booking tips (gratuity).
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACQUIRING_FEESstatic StringJSON_PROPERTY_ADDITIONAL_COMMISSIONstatic StringJSON_PROPERTY_ADYEN_COMMISSIONstatic StringJSON_PROPERTY_ADYEN_FEESstatic StringJSON_PROPERTY_ADYEN_MARKUPstatic StringJSON_PROPERTY_CHARGEBACKstatic StringJSON_PROPERTY_CHARGEBACK_COST_ALLOCATIONstatic StringJSON_PROPERTY_COMMISSIONstatic StringJSON_PROPERTY_INTERCHANGEstatic StringJSON_PROPERTY_PAYMENT_FEEstatic StringJSON_PROPERTY_REMAINDERstatic StringJSON_PROPERTY_SCHEME_FEEstatic StringJSON_PROPERTY_SPLIT_LOGIC_IDstatic StringJSON_PROPERTY_SURCHARGEstatic StringJSON_PROPERTY_TIP
-
Constructor Summary
Constructors Constructor Description SplitConfigurationLogic()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_ACQUIRING_FEES
public static final String JSON_PROPERTY_ACQUIRING_FEES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ADDITIONAL_COMMISSION
public static final String JSON_PROPERTY_ADDITIONAL_COMMISSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ADYEN_COMMISSION
public static final String JSON_PROPERTY_ADYEN_COMMISSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ADYEN_FEES
public static final String JSON_PROPERTY_ADYEN_FEES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ADYEN_MARKUP
public static final String JSON_PROPERTY_ADYEN_MARKUP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHARGEBACK
public static final String JSON_PROPERTY_CHARGEBACK
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHARGEBACK_COST_ALLOCATION
public static final String JSON_PROPERTY_CHARGEBACK_COST_ALLOCATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMMISSION
public static final String JSON_PROPERTY_COMMISSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INTERCHANGE
public static final String JSON_PROPERTY_INTERCHANGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_FEE
public static final String JSON_PROPERTY_PAYMENT_FEE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REMAINDER
public static final String JSON_PROPERTY_REMAINDER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCHEME_FEE
public static final String JSON_PROPERTY_SCHEME_FEE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SPLIT_LOGIC_ID
public static final String JSON_PROPERTY_SPLIT_LOGIC_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SURCHARGE
public static final String JSON_PROPERTY_SURCHARGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIP
public static final String JSON_PROPERTY_TIP
- See Also:
- Constant Field Values
-
-
Method Detail
-
acquiringFees
public SplitConfigurationLogic acquiringFees(SplitConfigurationLogic.AcquiringFeesEnum acquiringFees)
-
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)
-
additionalCommission
public SplitConfigurationLogic additionalCommission(AdditionalCommission additionalCommission)
-
getAdditionalCommission
public AdditionalCommission getAdditionalCommission()
Get additionalCommission- Returns:
- additionalCommission
-
setAdditionalCommission
public void setAdditionalCommission(AdditionalCommission additionalCommission)
-
adyenCommission
public SplitConfigurationLogic adyenCommission(SplitConfigurationLogic.AdyenCommissionEnum adyenCommission)
-
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)
-
adyenFees
public SplitConfigurationLogic adyenFees(SplitConfigurationLogic.AdyenFeesEnum adyenFees)
-
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)
-
adyenMarkup
public SplitConfigurationLogic adyenMarkup(SplitConfigurationLogic.AdyenMarkupEnum adyenMarkup)
-
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)
-
chargeback
public SplitConfigurationLogic chargeback(SplitConfigurationLogic.ChargebackEnum chargeback)
-
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)
-
chargebackCostAllocation
public SplitConfigurationLogic chargebackCostAllocation(SplitConfigurationLogic.ChargebackCostAllocationEnum chargebackCostAllocation)
-
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)
-
commission
public SplitConfigurationLogic commission(Commission commission)
-
getCommission
public Commission getCommission()
Get commission- Returns:
- commission
-
setCommission
public void setCommission(Commission commission)
-
interchange
public SplitConfigurationLogic interchange(SplitConfigurationLogic.InterchangeEnum interchange)
-
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)
-
paymentFee
public SplitConfigurationLogic paymentFee(SplitConfigurationLogic.PaymentFeeEnum paymentFee)
-
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)
-
remainder
public SplitConfigurationLogic remainder(SplitConfigurationLogic.RemainderEnum remainder)
-
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)
-
schemeFee
public SplitConfigurationLogic schemeFee(SplitConfigurationLogic.SchemeFeeEnum schemeFee)
-
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)
-
splitLogicId
public SplitConfigurationLogic splitLogicId(String splitLogicId)
-
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)
-
surcharge
public SplitConfigurationLogic surcharge(SplitConfigurationLogic.SurchargeEnum surcharge)
-
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)
-
tip
public SplitConfigurationLogic tip(SplitConfigurationLogic.TipEnum tip)
-
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)
-
equals
public boolean equals(Object o)
Return true if this SplitConfigurationLogic object is equal to o.
-
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
-
-