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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SplitConfigurationLogicacquiringFees(SplitConfigurationLogic.AcquiringFeesEnum acquiringFees)SplitConfigurationLogicadditionalCommission(AdditionalCommission additionalCommission)SplitConfigurationLogicadyenCommission(SplitConfigurationLogic.AdyenCommissionEnum adyenCommission)SplitConfigurationLogicadyenFees(SplitConfigurationLogic.AdyenFeesEnum adyenFees)SplitConfigurationLogicadyenMarkup(SplitConfigurationLogic.AdyenMarkupEnum adyenMarkup)SplitConfigurationLogicchargeback(SplitConfigurationLogic.ChargebackEnum chargeback)SplitConfigurationLogicchargebackCostAllocation(SplitConfigurationLogic.ChargebackCostAllocationEnum chargebackCostAllocation)SplitConfigurationLogiccommission(Commission commission)booleanequals(Object o)Return true if this SplitConfigurationLogic object is equal to o.static SplitConfigurationLogicfromJson(String jsonString)Create an instance of SplitConfigurationLogic given an JSON stringSplitConfigurationLogic.AcquiringFeesEnumgetAcquiringFees()Specifies the logic to apply when booking the transaction fees.AdditionalCommissiongetAdditionalCommission()Get additionalCommissionSplitConfigurationLogic.AdyenCommissionEnumgetAdyenCommission()Specifies the logic to apply when booking the transaction fees.SplitConfigurationLogic.AdyenFeesEnumgetAdyenFees()Specifies the logic to apply when booking the transaction fees.SplitConfigurationLogic.AdyenMarkupEnumgetAdyenMarkup()Specifies the logic to apply when booking the transaction fees.SplitConfigurationLogic.ChargebackEnumgetChargeback()Specifies the logic to apply when booking the chargeback amount.SplitConfigurationLogic.ChargebackCostAllocationEnumgetChargebackCostAllocation()Specifies the logic to apply when allocating the chargeback costs.CommissiongetCommission()Get commissionSplitConfigurationLogic.InterchangeEnumgetInterchange()Specifies the logic to apply when booking the transaction fees.SplitConfigurationLogic.PaymentFeeEnumgetPaymentFee()Specifies the logic to apply when booking the transaction fees.SplitConfigurationLogic.RemainderEnumgetRemainder()Specifies the logic to apply when booking the amount left over after currency conversion.SplitConfigurationLogic.SchemeFeeEnumgetSchemeFee()Specifies the logic to apply when booking the transaction fees.StringgetSplitLogicId()Unique identifier of the split logic that is applied when the split configuration conditions are met.SplitConfigurationLogic.SurchargeEnumgetSurcharge()Specifies the logic to apply when booking the surcharge amount.SplitConfigurationLogic.TipEnumgetTip()Specifies the logic to apply when booking tips (gratuity).inthashCode()SplitConfigurationLogicinterchange(SplitConfigurationLogic.InterchangeEnum interchange)SplitConfigurationLogicpaymentFee(SplitConfigurationLogic.PaymentFeeEnum paymentFee)SplitConfigurationLogicremainder(SplitConfigurationLogic.RemainderEnum remainder)SplitConfigurationLogicschemeFee(SplitConfigurationLogic.SchemeFeeEnum schemeFee)voidsetAcquiringFees(SplitConfigurationLogic.AcquiringFeesEnum acquiringFees)Specifies the logic to apply when booking the transaction fees.voidsetAdditionalCommission(AdditionalCommission additionalCommission)additionalCommissionvoidsetAdyenCommission(SplitConfigurationLogic.AdyenCommissionEnum adyenCommission)Specifies the logic to apply when booking the transaction fees.voidsetAdyenFees(SplitConfigurationLogic.AdyenFeesEnum adyenFees)Specifies the logic to apply when booking the transaction fees.voidsetAdyenMarkup(SplitConfigurationLogic.AdyenMarkupEnum adyenMarkup)Specifies the logic to apply when booking the transaction fees.voidsetChargeback(SplitConfigurationLogic.ChargebackEnum chargeback)Specifies the logic to apply when booking the chargeback amount.voidsetChargebackCostAllocation(SplitConfigurationLogic.ChargebackCostAllocationEnum chargebackCostAllocation)Specifies the logic to apply when allocating the chargeback costs.voidsetCommission(Commission commission)commissionvoidsetInterchange(SplitConfigurationLogic.InterchangeEnum interchange)Specifies the logic to apply when booking the transaction fees.voidsetPaymentFee(SplitConfigurationLogic.PaymentFeeEnum paymentFee)Specifies the logic to apply when booking the transaction fees.voidsetRemainder(SplitConfigurationLogic.RemainderEnum remainder)Specifies the logic to apply when booking the amount left over after currency conversion.voidsetSchemeFee(SplitConfigurationLogic.SchemeFeeEnum schemeFee)Specifies the logic to apply when booking the transaction fees.voidsetSplitLogicId(String splitLogicId)Unique identifier of the split logic that is applied when the split configuration conditions are met.voidsetSurcharge(SplitConfigurationLogic.SurchargeEnum surcharge)Specifies the logic to apply when booking the surcharge amount.voidsetTip(SplitConfigurationLogic.TipEnum tip)Specifies the logic to apply when booking tips (gratuity).SplitConfigurationLogicsplitLogicId(String splitLogicId)SplitConfigurationLogicsurcharge(SplitConfigurationLogic.SurchargeEnum surcharge)SplitConfigurationLogictip(SplitConfigurationLogic.TipEnum tip)StringtoJson()Convert an instance of SplitConfigurationLogic to an JSON stringStringtoString()
-
-
-
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)
Specifies the logic to apply when booking the transaction fees. Should be combined with adyenFees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.- Parameters:
acquiringFees-
-
additionalCommission
public SplitConfigurationLogic additionalCommission(AdditionalCommission additionalCommission)
-
getAdditionalCommission
public AdditionalCommission getAdditionalCommission()
Get additionalCommission- Returns:
- additionalCommission
-
setAdditionalCommission
public void setAdditionalCommission(AdditionalCommission additionalCommission)
additionalCommission- Parameters:
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)
Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, interchange & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.- Parameters:
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)
Specifies the logic to apply when booking the transaction fees. Should be combined with acquiringFees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.- Parameters:
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)
Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, adyenCommission & interchange. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.- Parameters:
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)
Specifies the logic to apply when booking the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**.- Parameters:
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)
Specifies the logic to apply when allocating the chargeback costs. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**- Parameters:
chargebackCostAllocation-
-
commission
public SplitConfigurationLogic commission(Commission commission)
-
getCommission
public Commission getCommission()
Get commission- Returns:
- commission
-
setCommission
public void setCommission(Commission commission)
commission- Parameters:
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)
Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, adyenCommission & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.- Parameters:
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)
Specifies the logic to apply when booking the transaction fees. Cannot be combined with other fees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.- Parameters:
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)
Specifies the logic to apply when booking the amount left over after currency conversion. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**.- Parameters:
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)
Specifies the logic to apply when booking the transaction fees. Should be combined with interchange, adyenCommission & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**.- Parameters:
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)
Unique identifier of the split logic that is applied when the split configuration conditions are met.- Parameters:
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)
Specifies the logic to apply when booking the surcharge amount. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**- Parameters:
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)
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.
-
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
-
-