Package com.adyen.model.marketpayaccount
Class CreateAccountRequest
- java.lang.Object
-
- com.adyen.model.marketpayaccount.CreateAccountRequest
-
public class CreateAccountRequest extends Object
CreateAccountRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateAccountRequest.PayoutScheduleEnumThe payout schedule of the prospective account.static classCreateAccountRequest.PayoutSpeedEnumSpeed with which payouts for this account are processed.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_HOLDER_CODEstatic StringJSON_PROPERTY_BANK_ACCOUNT_U_U_I_Dstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_METADATAstatic StringJSON_PROPERTY_PAYOUT_METHOD_CODEstatic StringJSON_PROPERTY_PAYOUT_SCHEDULEstatic StringJSON_PROPERTY_PAYOUT_SCHEDULE_REASONstatic StringJSON_PROPERTY_PAYOUT_SPEED
-
Constructor Summary
Constructors Constructor Description CreateAccountRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateAccountRequestaccountHolderCode(String accountHolderCode)CreateAccountRequestbankAccountUUID(String bankAccountUUID)CreateAccountRequestdescription(String description)booleanequals(Object o)Return true if this CreateAccountRequest object is equal to o.static CreateAccountRequestfromJson(String jsonString)Create an instance of CreateAccountRequest given an JSON stringStringgetAccountHolderCode()The code of Account Holder under which to create the account.StringgetBankAccountUUID()The bankAccountUUID of the bank account held by the account holder to couple the account with.StringgetDescription()A description of the account, maximum 256 characters.Map<String,String>getMetadata()A set of key and value pairs for general use by the merchant.StringgetPayoutMethodCode()The payout method code held by the account holder to couple the account with.CreateAccountRequest.PayoutScheduleEnumgetPayoutSchedule()The payout schedule of the prospective account.StringgetPayoutScheduleReason()The reason for the payout schedule choice.CreateAccountRequest.PayoutSpeedEnumgetPayoutSpeed()Speed with which payouts for this account are processed.inthashCode()CreateAccountRequestmetadata(Map<String,String> metadata)CreateAccountRequestpayoutMethodCode(String payoutMethodCode)CreateAccountRequestpayoutSchedule(CreateAccountRequest.PayoutScheduleEnum payoutSchedule)CreateAccountRequestpayoutScheduleReason(String payoutScheduleReason)CreateAccountRequestpayoutSpeed(CreateAccountRequest.PayoutSpeedEnum payoutSpeed)CreateAccountRequestputMetadataItem(String key, String metadataItem)voidsetAccountHolderCode(String accountHolderCode)voidsetBankAccountUUID(String bankAccountUUID)voidsetDescription(String description)voidsetMetadata(Map<String,String> metadata)voidsetPayoutMethodCode(String payoutMethodCode)voidsetPayoutSchedule(CreateAccountRequest.PayoutScheduleEnum payoutSchedule)voidsetPayoutScheduleReason(String payoutScheduleReason)voidsetPayoutSpeed(CreateAccountRequest.PayoutSpeedEnum payoutSpeed)StringtoJson()Convert an instance of CreateAccountRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_HOLDER_CODE
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D
public static final String JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_METADATA
public static final String JSON_PROPERTY_METADATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYOUT_METHOD_CODE
public static final String JSON_PROPERTY_PAYOUT_METHOD_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYOUT_SCHEDULE
public static final String JSON_PROPERTY_PAYOUT_SCHEDULE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYOUT_SCHEDULE_REASON
public static final String JSON_PROPERTY_PAYOUT_SCHEDULE_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYOUT_SPEED
public static final String JSON_PROPERTY_PAYOUT_SPEED
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountHolderCode
public CreateAccountRequest accountHolderCode(String accountHolderCode)
-
getAccountHolderCode
public String getAccountHolderCode()
The code of Account Holder under which to create the account.- Returns:
- accountHolderCode
-
setAccountHolderCode
public void setAccountHolderCode(String accountHolderCode)
-
bankAccountUUID
public CreateAccountRequest bankAccountUUID(String bankAccountUUID)
-
getBankAccountUUID
public String getBankAccountUUID()
The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder.- Returns:
- bankAccountUUID
-
setBankAccountUUID
public void setBankAccountUUID(String bankAccountUUID)
-
description
public CreateAccountRequest description(String description)
-
getDescription
public String getDescription()
A description of the account, maximum 256 characters. You can use alphanumeric characters (A-Z, a-z, 0-9), white spaces, and underscores `_`.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
metadata
public CreateAccountRequest metadata(Map<String,String> metadata)
-
putMetadataItem
public CreateAccountRequest putMetadataItem(String key, String metadataItem)
-
getMetadata
public Map<String,String> getMetadata()
A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.- Returns:
- metadata
-
payoutMethodCode
public CreateAccountRequest payoutMethodCode(String payoutMethodCode)
-
getPayoutMethodCode
public String getPayoutMethodCode()
The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code.- Returns:
- payoutMethodCode
-
setPayoutMethodCode
public void setPayoutMethodCode(String payoutMethodCode)
-
payoutSchedule
public CreateAccountRequest payoutSchedule(CreateAccountRequest.PayoutScheduleEnum payoutSchedule)
-
getPayoutSchedule
public CreateAccountRequest.PayoutScheduleEnum getPayoutSchedule()
The payout schedule of the prospective account. >Permitted values: `DEFAULT`, `HOLD`, `DAILY`, `WEEKLY`, `MONTHLY`.- Returns:
- payoutSchedule
-
setPayoutSchedule
public void setPayoutSchedule(CreateAccountRequest.PayoutScheduleEnum payoutSchedule)
-
payoutScheduleReason
public CreateAccountRequest payoutScheduleReason(String payoutScheduleReason)
-
getPayoutScheduleReason
public String getPayoutScheduleReason()
The reason for the payout schedule choice. >Required if the payoutSchedule is `HOLD`.- Returns:
- payoutScheduleReason
-
setPayoutScheduleReason
public void setPayoutScheduleReason(String payoutScheduleReason)
-
payoutSpeed
public CreateAccountRequest payoutSpeed(CreateAccountRequest.PayoutSpeedEnum payoutSpeed)
-
getPayoutSpeed
public CreateAccountRequest.PayoutSpeedEnum getPayoutSpeed()
Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.- Returns:
- payoutSpeed
-
setPayoutSpeed
public void setPayoutSpeed(CreateAccountRequest.PayoutSpeedEnum payoutSpeed)
-
equals
public boolean equals(Object o)
Return true if this CreateAccountRequest object is equal to o.
-
fromJson
public static CreateAccountRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateAccountRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateAccountRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateAccountRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateAccountRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-