Package com.adyen.model.balancecontrol
Class BalanceTransferResponse
- java.lang.Object
-
- com.adyen.model.balancecontrol.BalanceTransferResponse
-
public class BalanceTransferResponse extends Object
BalanceTransferResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBalanceTransferResponse.StatusEnumThe status of the balance transfer.static classBalanceTransferResponse.TypeEnumThe type of balance transfer.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_CREATED_ATstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_FROM_MERCHANTstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_TO_MERCHANTstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description BalanceTransferResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceTransferResponseamount(Amount amount)amountBalanceTransferResponsecreatedAt(OffsetDateTime createdAt)The date when the balance transfer was requested.BalanceTransferResponsedescription(String description)A human-readable description for the transfer.booleanequals(Object o)Return true if this BalanceTransferResponse object is equal to o.static BalanceTransferResponsefromJson(String jsonString)Create an instance of BalanceTransferResponse given an JSON stringBalanceTransferResponsefromMerchant(String fromMerchant)The unique identifier of the source merchant account from which funds are deducted.AmountgetAmount()amountOffsetDateTimegetCreatedAt()The date when the balance transfer was requested.StringgetDescription()A human-readable description for the transfer.StringgetFromMerchant()The unique identifier of the source merchant account from which funds are deducted.StringgetPspReference()Adyen's 16-character string reference associated with the balance transfer.StringgetReference()A reference for the balance transfer.BalanceTransferResponse.StatusEnumgetStatus()The status of the balance transfer.StringgetToMerchant()The unique identifier of the destination merchant account from which funds are transferred.BalanceTransferResponse.TypeEnumgetType()The type of balance transfer.inthashCode()BalanceTransferResponsepspReference(String pspReference)Adyen's 16-character string reference associated with the balance transfer.BalanceTransferResponsereference(String reference)A reference for the balance transfer.voidsetAmount(Amount amount)amountvoidsetCreatedAt(OffsetDateTime createdAt)The date when the balance transfer was requested.voidsetDescription(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.voidsetPspReference(String pspReference)Adyen's 16-character string reference associated with the balance transfer.voidsetReference(String reference)A reference for the balance transfer.voidsetStatus(BalanceTransferResponse.StatusEnum status)The status of the balance transfer.voidsetToMerchant(String toMerchant)The unique identifier of the destination merchant account from which funds are transferred.voidsetType(BalanceTransferResponse.TypeEnum type)The type of balance transfer.BalanceTransferResponsestatus(BalanceTransferResponse.StatusEnum status)The status of the balance transfer.StringtoJson()Convert an instance of BalanceTransferResponse to an JSON stringBalanceTransferResponsetoMerchant(String toMerchant)The unique identifier of the destination merchant account from which funds are transferred.StringtoString()BalanceTransferResponsetype(BalanceTransferResponse.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_CREATED_AT
public static final String JSON_PROPERTY_CREATED_AT
- 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_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- 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 BalanceTransferResponse amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
BalanceTransferResponseinstance, allowing for method chaining
-
getAmount
public Amount getAmount()
amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
createdAt
public BalanceTransferResponse createdAt(OffsetDateTime createdAt)
The date when the balance transfer was requested.- Parameters:
createdAt-- Returns:
- the current
BalanceTransferResponseinstance, allowing for method chaining
-
getCreatedAt
public OffsetDateTime getCreatedAt()
The date when the balance transfer was requested.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
The date when the balance transfer was requested.- Parameters:
createdAt-
-
description
public BalanceTransferResponse 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
BalanceTransferResponseinstance, 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 BalanceTransferResponse fromMerchant(String fromMerchant)
The unique identifier of the source merchant account from which funds are deducted.- Parameters:
fromMerchant-- Returns:
- the current
BalanceTransferResponseinstance, 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-
-
pspReference
public BalanceTransferResponse pspReference(String pspReference)
Adyen's 16-character string reference associated with the balance transfer.- Parameters:
pspReference-- Returns:
- the current
BalanceTransferResponseinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
Adyen's 16-character string reference associated with the balance transfer.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
Adyen's 16-character string reference associated with the balance transfer.- Parameters:
pspReference-
-
reference
public BalanceTransferResponse 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
BalanceTransferResponseinstance, 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-
-
status
public BalanceTransferResponse status(BalanceTransferResponse.StatusEnum status)
The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**.- Parameters:
status-- Returns:
- the current
BalanceTransferResponseinstance, allowing for method chaining
-
getStatus
public BalanceTransferResponse.StatusEnum getStatus()
The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**.- Returns:
- status
-
setStatus
public void setStatus(BalanceTransferResponse.StatusEnum status)
The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**.- Parameters:
status-
-
toMerchant
public BalanceTransferResponse toMerchant(String toMerchant)
The unique identifier of the destination merchant account from which funds are transferred.- Parameters:
toMerchant-- Returns:
- the current
BalanceTransferResponseinstance, 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 BalanceTransferResponse type(BalanceTransferResponse.TypeEnum type)
The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**.- Parameters:
type-- Returns:
- the current
BalanceTransferResponseinstance, allowing for method chaining
-
getType
public BalanceTransferResponse.TypeEnum getType()
The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**.- Returns:
- type
-
setType
public void setType(BalanceTransferResponse.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 BalanceTransferResponse object is equal to o.
-
fromJson
public static BalanceTransferResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BalanceTransferResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BalanceTransferResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BalanceTransferResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BalanceTransferResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-