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.CustomTypeAdapterFactorystatic classBalanceTransferResponse.StatusEnumThe status of the balance transfer.static classBalanceTransferResponse.TypeEnumThe type of balance transfer.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_FROM_MERCHANTstatic StringSERIALIZED_NAME_PSP_REFERENCEstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TO_MERCHANTstatic StringSERIALIZED_NAME_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)BalanceTransferResponsecreatedAt(OffsetDateTime createdAt)BalanceTransferResponsedescription(String description)booleanequals(Object o)static BalanceTransferResponsefromJson(String jsonString)Create an instance of BalanceTransferResponse given an JSON stringBalanceTransferResponsefromMerchant(String fromMerchant)AmountgetAmount()Get 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)BalanceTransferResponsereference(String reference)voidsetAmount(Amount amount)voidsetCreatedAt(OffsetDateTime createdAt)voidsetDescription(String description)voidsetFromMerchant(String fromMerchant)voidsetPspReference(String pspReference)voidsetReference(String reference)voidsetStatus(BalanceTransferResponse.StatusEnum status)voidsetToMerchant(String toMerchant)voidsetType(BalanceTransferResponse.TypeEnum type)BalanceTransferResponsestatus(BalanceTransferResponse.StatusEnum status)StringtoJson()Convert an instance of BalanceTransferResponse to an JSON stringBalanceTransferResponsetoMerchant(String toMerchant)StringtoString()BalanceTransferResponsetype(BalanceTransferResponse.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FROM_MERCHANT
public static final String SERIALIZED_NAME_FROM_MERCHANT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PSP_REFERENCE
public static final String SERIALIZED_NAME_PSP_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TO_MERCHANT
public static final String SERIALIZED_NAME_TO_MERCHANT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public BalanceTransferResponse amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
createdAt
public BalanceTransferResponse createdAt(OffsetDateTime createdAt)
-
getCreatedAt
public OffsetDateTime getCreatedAt()
The date when the balance transfer was requested.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
description
public BalanceTransferResponse description(String description)
-
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)
-
fromMerchant
public BalanceTransferResponse fromMerchant(String fromMerchant)
-
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)
-
pspReference
public BalanceTransferResponse pspReference(String pspReference)
-
getPspReference
public String getPspReference()
Adyen's 16-character string reference associated with the balance transfer.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
reference
public BalanceTransferResponse reference(String reference)
-
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)
-
status
public BalanceTransferResponse status(BalanceTransferResponse.StatusEnum status)
-
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)
-
toMerchant
public BalanceTransferResponse toMerchant(String toMerchant)
-
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)
-
type
public BalanceTransferResponse type(BalanceTransferResponse.TypeEnum type)
-
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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to BalanceTransferResponse
-
fromJson
public static BalanceTransferResponse fromJson(String jsonString) throws IOException
Create an instance of BalanceTransferResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BalanceTransferResponse
- Throws:
IOException- if the JSON string is invalid with respect to BalanceTransferResponse
-
toJson
public String toJson()
Convert an instance of BalanceTransferResponse to an JSON string- Returns:
- JSON string
-
-