Package com.adyen.model.marketpayfund
Class TransferFundsRequest
- java.lang.Object
-
- com.adyen.model.marketpayfund.TransferFundsRequest
-
public class TransferFundsRequest extends Object
TransferFundsRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_DESTINATION_ACCOUNT_CODEstatic StringJSON_PROPERTY_MERCHANT_REFERENCEstatic StringJSON_PROPERTY_SOURCE_ACCOUNT_CODEstatic StringJSON_PROPERTY_TRANSFER_CODE
-
Constructor Summary
Constructors Constructor Description TransferFundsRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferFundsRequestamount(Amount amount)TransferFundsRequestdestinationAccountCode(String destinationAccountCode)booleanequals(Object o)Return true if this TransferFundsRequest object is equal to o.static TransferFundsRequestfromJson(String jsonString)Create an instance of TransferFundsRequest given an JSON stringAmountgetAmount()Get amountStringgetDestinationAccountCode()The code of the account to which the funds are to be credited.StringgetMerchantReference()A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another.StringgetSourceAccountCode()The code of the account from which the funds are to be debited.StringgetTransferCode()The code related to the type of transfer being performed.inthashCode()TransferFundsRequestmerchantReference(String merchantReference)voidsetAmount(Amount amount)voidsetDestinationAccountCode(String destinationAccountCode)voidsetMerchantReference(String merchantReference)voidsetSourceAccountCode(String sourceAccountCode)voidsetTransferCode(String transferCode)TransferFundsRequestsourceAccountCode(String sourceAccountCode)StringtoJson()Convert an instance of TransferFundsRequest to an JSON stringStringtoString()TransferFundsRequesttransferCode(String transferCode)
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESTINATION_ACCOUNT_CODE
public static final String JSON_PROPERTY_DESTINATION_ACCOUNT_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_REFERENCE
public static final String JSON_PROPERTY_MERCHANT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOURCE_ACCOUNT_CODE
public static final String JSON_PROPERTY_SOURCE_ACCOUNT_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSFER_CODE
public static final String JSON_PROPERTY_TRANSFER_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public TransferFundsRequest amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
destinationAccountCode
public TransferFundsRequest destinationAccountCode(String destinationAccountCode)
-
getDestinationAccountCode
public String getDestinationAccountCode()
The code of the account to which the funds are to be credited. >The state of the Account Holder of this account must be Active.- Returns:
- destinationAccountCode
-
setDestinationAccountCode
public void setDestinationAccountCode(String destinationAccountCode)
-
merchantReference
public TransferFundsRequest merchantReference(String merchantReference)
-
getMerchantReference
public String getMerchantReference()
A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another.- Returns:
- merchantReference
-
setMerchantReference
public void setMerchantReference(String merchantReference)
-
sourceAccountCode
public TransferFundsRequest sourceAccountCode(String sourceAccountCode)
-
getSourceAccountCode
public String getSourceAccountCode()
The code of the account from which the funds are to be debited. >The state of the Account Holder of this account must be Active and allow payouts.- Returns:
- sourceAccountCode
-
setSourceAccountCode
public void setSourceAccountCode(String sourceAccountCode)
-
transferCode
public TransferFundsRequest transferCode(String transferCode)
-
getTransferCode
public String getTransferCode()
The code related to the type of transfer being performed. >The permitted codes differ for each platform account and are defined in their service level agreement.- Returns:
- transferCode
-
setTransferCode
public void setTransferCode(String transferCode)
-
equals
public boolean equals(Object o)
Return true if this TransferFundsRequest object is equal to o.
-
fromJson
public static TransferFundsRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransferFundsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransferFundsRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransferFundsRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransferFundsRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-