Package com.adyen.model.balancecontrol
Class BalanceTransferRequest
- java.lang.Object
-
- com.adyen.model.balancecontrol.BalanceTransferRequest
-
public class BalanceTransferRequest extends Object
BalanceTransferRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBalanceTransferRequest.TypeEnumThe type of balance transfer.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_FROM_MERCHANTstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_TO_MERCHANTstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description BalanceTransferRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceTransferRequestamount(Amount amount)amountBalanceTransferRequestdescription(String description)A human-readable description for the transfer.booleanequals(Object o)Return true if this BalanceTransferRequest object is equal to o.static BalanceTransferRequestfromJson(String jsonString)Create an instance of BalanceTransferRequest given an JSON stringBalanceTransferRequestfromMerchant(String fromMerchant)The unique identifier of the source merchant account from which funds are deducted.AmountgetAmount()amountStringgetDescription()A human-readable description for the transfer.StringgetFromMerchant()The unique identifier of the source merchant account from which funds are deducted.StringgetReference()A reference for the balance transfer.StringgetToMerchant()The unique identifier of the destination merchant account from which funds are transferred.BalanceTransferRequest.TypeEnumgetType()The type of balance transfer.inthashCode()BalanceTransferRequestreference(String reference)A reference for the balance transfer.voidsetAmount(Amount amount)amountvoidsetDescription(String description)A human-readable description for the transfer.voidsetFromMerchant(String fromMerchant)The unique identifier of the source merchant account from which funds are deducted.voidsetReference(String reference)A reference for the balance transfer.voidsetToMerchant(String toMerchant)The unique identifier of the destination merchant account from which funds are transferred.voidsetType(BalanceTransferRequest.TypeEnum type)The type of balance transfer.StringtoJson()Convert an instance of BalanceTransferRequest to an JSON stringBalanceTransferRequesttoMerchant(String toMerchant)The unique identifier of the destination merchant account from which funds are transferred.StringtoString()BalanceTransferRequesttype(BalanceTransferRequest.TypeEnum type)The type of balance transfer.
-
-
-
Field Detail
-
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_FROM_MERCHANT
public static final String JSON_PROPERTY_FROM_MERCHANT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TO_MERCHANT
public static final String JSON_PROPERTY_TO_MERCHANT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public BalanceTransferRequest amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
BalanceTransferRequestinstance, allowing for method chaining
-
getAmount
public Amount getAmount()
amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
description
public BalanceTransferRequest description(String description)
A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated.- Parameters:
description-- Returns:
- the current
BalanceTransferRequestinstance, allowing for method chaining
-
getDescription
public String getDescription()
A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated.- Returns:
- description
-
setDescription
public void setDescription(String description)
A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated.- Parameters:
description-
-
fromMerchant
public BalanceTransferRequest fromMerchant(String fromMerchant)
The unique identifier of the source merchant account from which funds are deducted.- Parameters:
fromMerchant-- Returns:
- the current
BalanceTransferRequestinstance, allowing for method chaining
-
getFromMerchant
public String getFromMerchant()
The unique identifier of the source merchant account from which funds are deducted.- Returns:
- fromMerchant
-
setFromMerchant
public void setFromMerchant(String fromMerchant)
The unique identifier of the source merchant account from which funds are deducted.- Parameters:
fromMerchant-
-
reference
public BalanceTransferRequest reference(String reference)
A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters.- Parameters:
reference-- Returns:
- the current
BalanceTransferRequestinstance, allowing for method chaining
-
getReference
public String getReference()
A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters.- Returns:
- reference
-
setReference
public void setReference(String reference)
A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters.- Parameters:
reference-
-
toMerchant
public BalanceTransferRequest toMerchant(String toMerchant)
The unique identifier of the destination merchant account from which funds are transferred.- Parameters:
toMerchant-- Returns:
- the current
BalanceTransferRequestinstance, allowing for method chaining
-
getToMerchant
public String getToMerchant()
The unique identifier of the destination merchant account from which funds are transferred.- Returns:
- toMerchant
-
setToMerchant
public void setToMerchant(String toMerchant)
The unique identifier of the destination merchant account from which funds are transferred.- Parameters:
toMerchant-
-
type
public BalanceTransferRequest type(BalanceTransferRequest.TypeEnum type)
The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**.- Parameters:
type-- Returns:
- the current
BalanceTransferRequestinstance, allowing for method chaining
-
getType
public BalanceTransferRequest.TypeEnum getType()
The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**.- Returns:
- type
-
setType
public void setType(BalanceTransferRequest.TypeEnum type)
The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this BalanceTransferRequest object is equal to o.
-
fromJson
public static BalanceTransferRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BalanceTransferRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BalanceTransferRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BalanceTransferRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BalanceTransferRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-