Package com.adyen.model.checkout
Class Split
- java.lang.Object
-
- com.adyen.model.checkout.Split
-
public class Split extends Object
Split
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSplit.TypeEnumThe part of the payment you want to book to the specified `account`.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNTstatic StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description Split()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Splitaccount(String account)The unique identifier of the account to which the split amount is booked.Splitamount(SplitAmount amount)amountSplitdescription(String description)Your description for the split item.booleanequals(Object o)Return true if this Split object is equal to o.static SplitfromJson(String jsonString)Create an instance of Split given an JSON stringStringgetAccount()The unique identifier of the account to which the split amount is booked.SplitAmountgetAmount()amountStringgetDescription()Your description for the split item.StringgetReference()Your unique reference for the part of the payment booked to the specified `account`.Split.TypeEnumgetType()The part of the payment you want to book to the specified `account`.inthashCode()Splitreference(String reference)Your unique reference for the part of the payment booked to the specified `account`.voidsetAccount(String account)The unique identifier of the account to which the split amount is booked.voidsetAmount(SplitAmount amount)amountvoidsetDescription(String description)Your description for the split item.voidsetReference(String reference)Your unique reference for the part of the payment booked to the specified `account`.voidsetType(Split.TypeEnum type)The part of the payment you want to book to the specified `account`.StringtoJson()Convert an instance of Split to an JSON stringStringtoString()Splittype(Split.TypeEnum type)The part of the payment you want to book to the specified `account`.
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT
public static final String JSON_PROPERTY_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
account
public Split account(String account)
The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked.- Parameters:
account-- Returns:
- the current
Splitinstance, allowing for method chaining
-
getAccount
public String getAccount()
The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked.- Returns:
- account
-
setAccount
public void setAccount(String account)
The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked.- Parameters:
account-
-
amount
public Split amount(SplitAmount amount)
amount- Parameters:
amount-- Returns:
- the current
Splitinstance, allowing for method chaining
-
getAmount
public SplitAmount getAmount()
amount- Returns:
- amount
-
setAmount
public void setAmount(SplitAmount amount)
amount- Parameters:
amount-
-
description
public Split description(String description)
Your description for the split item.- Parameters:
description-- Returns:
- the current
Splitinstance, allowing for method chaining
-
getDescription
public String getDescription()
Your description for the split item.- Returns:
- description
-
setDescription
public void setDescription(String description)
Your description for the split item.- Parameters:
description-
-
reference
public Split reference(String reference)
Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports.- Parameters:
reference-- Returns:
- the current
Splitinstance, allowing for method chaining
-
getReference
public String getReference()
Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports.- Returns:
- reference
-
setReference
public void setReference(String reference)
Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports.- Parameters:
reference-
-
type
public Split type(Split.TypeEnum type)
The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**.- Parameters:
type-- Returns:
- the current
Splitinstance, allowing for method chaining
-
getType
public Split.TypeEnum getType()
The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**.- Returns:
- type
-
setType
public void setType(Split.TypeEnum type)
The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this Split object is equal to o.
-
fromJson
public static Split fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Split given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Split
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Split
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Split to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-