Package com.adyen.model.transfers
Class Transfer
- java.lang.Object
-
- com.adyen.model.transfers.Transfer
-
public class Transfer extends Object
Transfer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransfer.CategoryEnumThe type of transfer.static classTransfer.CustomTypeAdapterFactorystatic classTransfer.DirectionEnumThe direction of the transfer.static classTransfer.PriorityEnumThe priority for the bank transfer.static classTransfer.ReasonEnumAdditional information about the status of the transfer.static classTransfer.StatusEnumThe result of the transfer.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_BALANCE_ACCOUNT_IDstatic StringSERIALIZED_NAME_CATEGORYstatic StringSERIALIZED_NAME_COUNTERPARTYstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_DIRECTIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_PAYMENT_INSTRUMENT_IDstatic StringSERIALIZED_NAME_PRIORITYstatic StringSERIALIZED_NAME_REASONstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_REFERENCE_FOR_BENEFICIARYstatic StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description Transfer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Transferamount(Amount amount)TransferbalanceAccountId(String balanceAccountId)Transfercategory(Transfer.CategoryEnum category)Transfercounterparty(CounterpartyV3 counterparty)Transferdescription(String description)Transferdirection(Transfer.DirectionEnum direction)booleanequals(Object o)static TransferfromJson(String jsonString)Create an instance of Transfer given an JSON stringAmountgetAmount()Get amountStringgetBalanceAccountId()The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).Transfer.CategoryEnumgetCategory()The type of transfer.CounterpartyV3getCounterparty()Get counterpartyStringgetDescription()A human-readable description for the transfer.Transfer.DirectionEnumgetDirection()The direction of the transfer.StringgetId()The ID of the resource.StringgetPaymentInstrumentId()The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments__resParam_id).Transfer.PriorityEnumgetPriority()The priority for the bank transfer.Transfer.ReasonEnumgetReason()Additional information about the status of the transfer.StringgetReference()Your reference for the transfer, used internally within your platform.StringgetReferenceForBeneficiary()A reference that is sent to the recipient.Transfer.StatusEnumgetStatus()The result of the transfer.inthashCode()Transferid(String id)TransferpaymentInstrumentId(String paymentInstrumentId)Transferpriority(Transfer.PriorityEnum priority)Transferreason(Transfer.ReasonEnum reason)Transferreference(String reference)TransferreferenceForBeneficiary(String referenceForBeneficiary)voidsetAmount(Amount amount)voidsetBalanceAccountId(String balanceAccountId)voidsetCategory(Transfer.CategoryEnum category)voidsetCounterparty(CounterpartyV3 counterparty)voidsetDescription(String description)voidsetDirection(Transfer.DirectionEnum direction)voidsetId(String id)voidsetPaymentInstrumentId(String paymentInstrumentId)voidsetPriority(Transfer.PriorityEnum priority)voidsetReason(Transfer.ReasonEnum reason)voidsetReference(String reference)voidsetReferenceForBeneficiary(String referenceForBeneficiary)voidsetStatus(Transfer.StatusEnum status)Transferstatus(Transfer.StatusEnum status)StringtoJson()Convert an instance of Transfer to an JSON stringStringtoString()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_BALANCE_ACCOUNT_ID
public static final String SERIALIZED_NAME_BALANCE_ACCOUNT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CATEGORY
public static final String SERIALIZED_NAME_CATEGORY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTERPARTY
public static final String SERIALIZED_NAME_COUNTERPARTY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DIRECTION
public static final String SERIALIZED_NAME_DIRECTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_INSTRUMENT_ID
public static final String SERIALIZED_NAME_PAYMENT_INSTRUMENT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRIORITY
public static final String SERIALIZED_NAME_PRIORITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REASON
public static final String SERIALIZED_NAME_REASON
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE_FOR_BENEFICIARY
public static final String SERIALIZED_NAME_REFERENCE_FOR_BENEFICIARY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
getBalanceAccountId
public String getBalanceAccountId()
The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).- Returns:
- balanceAccountId
-
setBalanceAccountId
public void setBalanceAccountId(String balanceAccountId)
-
category
public Transfer category(Transfer.CategoryEnum category)
-
getCategory
public Transfer.CategoryEnum getCategory()
The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.- Returns:
- category
-
setCategory
public void setCategory(Transfer.CategoryEnum category)
-
counterparty
public Transfer counterparty(CounterpartyV3 counterparty)
-
getCounterparty
public CounterpartyV3 getCounterparty()
Get counterparty- Returns:
- counterparty
-
setCounterparty
public void setCounterparty(CounterpartyV3 counterparty)
-
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)
-
direction
public Transfer direction(Transfer.DirectionEnum direction)
-
getDirection
public Transfer.DirectionEnum getDirection()
The direction of the transfer. Possible values: **incoming**, **outgoing**.- Returns:
- direction
-
setDirection
public void setDirection(Transfer.DirectionEnum direction)
-
getId
public String getId()
The ID of the resource.- Returns:
- id
-
setId
public void setId(String id)
-
getPaymentInstrumentId
public String getPaymentInstrumentId()
The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments__resParam_id).- Returns:
- paymentInstrumentId
-
setPaymentInstrumentId
public void setPaymentInstrumentId(String paymentInstrumentId)
-
priority
public Transfer priority(Transfer.PriorityEnum priority)
-
getPriority
public Transfer.PriorityEnum getPriority()
The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).- Returns:
- priority
-
setPriority
public void setPriority(Transfer.PriorityEnum priority)
-
reason
public Transfer reason(Transfer.ReasonEnum reason)
-
getReason
public Transfer.ReasonEnum getReason()
Additional information about the status of the transfer.- Returns:
- reason
-
setReason
public void setReason(Transfer.ReasonEnum reason)
-
getReference
public String getReference()
Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
getReferenceForBeneficiary
public String getReferenceForBeneficiary()
A reference that is sent to the recipient. This reference is also sent in all notification webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.- Returns:
- referenceForBeneficiary
-
setReferenceForBeneficiary
public void setReferenceForBeneficiary(String referenceForBeneficiary)
-
status
public Transfer status(Transfer.StatusEnum status)
-
getStatus
public Transfer.StatusEnum getStatus()
The result of the transfer. For example, **authorised**, **refused**, or **error**.- Returns:
- status
-
setStatus
public void setStatus(Transfer.StatusEnum status)
-
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 Transfer
-
fromJson
public static Transfer fromJson(String jsonString) throws IOException
Create an instance of Transfer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Transfer
- Throws:
IOException- if the JSON string is invalid with respect to Transfer
-
toJson
public String toJson()
Convert an instance of Transfer to an JSON string- Returns:
- JSON string
-
-