Package com.adyen.model
Class Split
- java.lang.Object
-
- com.adyen.model.Split
-
public class Split extends Object
Split
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSplit.TypeEnumThe type of this split.
-
Constructor Summary
Constructors Constructor Description Split()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Splitaccount(String account)Splitamount(SplitAmount amount)Splitdescription(String description)booleanequals(Object o)StringgetAccount()The account to which this split applies.SplitAmountgetAmount()Get amountStringgetDescription()A description of this split.StringgetReference()The reference of this split.Split.TypeEnumgetType()The type of this split.inthashCode()Splitreference(String reference)voidsetAccount(String account)voidsetAmount(SplitAmount amount)voidsetDescription(String description)voidsetReference(String reference)voidsetType(Split.TypeEnum type)StringtoString()Splittype(Split.TypeEnum type)
-
-
-
Method Detail
-
getAccount
public String getAccount()
The account to which this split applies. >Required if the type is `MarketPlace`.- Returns:
- account
-
setAccount
public void setAccount(String account)
-
amount
public Split amount(SplitAmount amount)
-
getAmount
public SplitAmount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(SplitAmount amount)
-
getDescription
public String getDescription()
A description of this split.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
getReference
public String getReference()
The reference of this split. Used to link other operations (e.g. captures and refunds) to this split. >Required if the type is `MarketPlace`.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
type
public Split type(Split.TypeEnum type)
-
getType
public Split.TypeEnum getType()
The type of this split. >Permitted values: `Default`, `PaymentFee`, `VAT`, `Commission`, `MarketPlace`, `BalanceAccount`.- Returns:
- type
-
setType
public void setType(Split.TypeEnum type)
-
-