Package com.adyen.model.management
Class SplitConfigurationRule
- java.lang.Object
-
- com.adyen.model.management.SplitConfigurationRule
-
public class SplitConfigurationRule extends Object
SplitConfigurationRule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSplitConfigurationRule.FundingSourceEnumThe funding source of the payment method.static classSplitConfigurationRule.ShopperInteractionEnumThe sales channel condition that defines whether the split logic applies.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_FUNDING_SOURCEstatic StringJSON_PROPERTY_PAYMENT_METHODstatic StringJSON_PROPERTY_RULE_IDstatic StringJSON_PROPERTY_SHOPPER_INTERACTIONstatic StringJSON_PROPERTY_SPLIT_LOGIC
-
Constructor Summary
Constructors Constructor Description SplitConfigurationRule()SplitConfigurationRule(String ruleId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SplitConfigurationRulecurrency(String currency)The currency condition that defines whether the split logic applies.booleanequals(Object o)Return true if this SplitConfigurationRule object is equal to o.static SplitConfigurationRulefromJson(String jsonString)Create an instance of SplitConfigurationRule given an JSON stringSplitConfigurationRulefundingSource(SplitConfigurationRule.FundingSourceEnum fundingSource)The funding source of the payment method.StringgetCurrency()The currency condition that defines whether the split logic applies.SplitConfigurationRule.FundingSourceEnumgetFundingSource()The funding source of the payment method.StringgetPaymentMethod()The payment method condition that defines whether the split logic applies.StringgetRuleId()The unique identifier of the split configuration rule.SplitConfigurationRule.ShopperInteractionEnumgetShopperInteraction()The sales channel condition that defines whether the split logic applies.SplitConfigurationLogicgetSplitLogic()Get splitLogicinthashCode()SplitConfigurationRulepaymentMethod(String paymentMethod)The payment method condition that defines whether the split logic applies.voidsetCurrency(String currency)The currency condition that defines whether the split logic applies.voidsetFundingSource(SplitConfigurationRule.FundingSourceEnum fundingSource)The funding source of the payment method.voidsetPaymentMethod(String paymentMethod)The payment method condition that defines whether the split logic applies.voidsetShopperInteraction(SplitConfigurationRule.ShopperInteractionEnum shopperInteraction)The sales channel condition that defines whether the split logic applies.voidsetSplitLogic(SplitConfigurationLogic splitLogic)splitLogicSplitConfigurationRuleshopperInteraction(SplitConfigurationRule.ShopperInteractionEnum shopperInteraction)The sales channel condition that defines whether the split logic applies.SplitConfigurationRulesplitLogic(SplitConfigurationLogic splitLogic)splitLogicStringtoJson()Convert an instance of SplitConfigurationRule to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FUNDING_SOURCE
public static final String JSON_PROPERTY_FUNDING_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_METHOD
public static final String JSON_PROPERTY_PAYMENT_METHOD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RULE_ID
public static final String JSON_PROPERTY_RULE_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_INTERACTION
public static final String JSON_PROPERTY_SHOPPER_INTERACTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SPLIT_LOGIC
public static final String JSON_PROPERTY_SPLIT_LOGIC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SplitConfigurationRule
public SplitConfigurationRule()
-
SplitConfigurationRule
public SplitConfigurationRule(String ruleId)
-
-
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- 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:
- the current
SplitConfigurationRuleinstance, 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 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).
-
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- 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).
-
fundingSource
public SplitConfigurationRule fundingSource(SplitConfigurationRule.FundingSourceEnum fundingSource)
The funding source of the payment method. This only applies to card transactions. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY**- Parameters:
fundingSource- The funding source of the payment method. This only applies to card transactions. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY**- Returns:
- the current
SplitConfigurationRuleinstance, allowing for method chaining
-
getFundingSource
public SplitConfigurationRule.FundingSourceEnum getFundingSource()
The funding source of the payment method. This only applies to card transactions. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY**- Returns:
- fundingSource The funding source of the payment method. This only applies to card transactions. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY**
-
setFundingSource
public void setFundingSource(SplitConfigurationRule.FundingSourceEnum fundingSource)
The funding source of the payment method. This only applies to card transactions. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY**- Parameters:
fundingSource- The funding source of the payment method. This only applies to card transactions. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY**
-
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- 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:
- the current
SplitConfigurationRuleinstance, 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 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.
-
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- 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.
-
getRuleId
public String getRuleId()
The unique identifier of the split configuration rule.- Returns:
- ruleId The unique identifier of the split configuration rule.
-
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- 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:
- the current
SplitConfigurationRuleinstance, 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 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.
-
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- 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.
-
splitLogic
public SplitConfigurationRule splitLogic(SplitConfigurationLogic splitLogic)
splitLogic- Parameters:
splitLogic-- Returns:
- the current
SplitConfigurationRuleinstance, allowing for method chaining
-
getSplitLogic
public SplitConfigurationLogic getSplitLogic()
Get splitLogic- Returns:
- splitLogic
-
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.
-
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
-
-