Package com.adyen.model.marketpayaccount
Class Account
- java.lang.Object
-
- com.adyen.model.marketpayaccount.Account
-
public class Account extends Object
Account
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccount.PayoutSpeedEnumSpeed with which payouts for this account are processed.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_CODEstatic StringJSON_PROPERTY_BANK_ACCOUNT_U_U_I_Dstatic StringJSON_PROPERTY_BENEFICIARY_ACCOUNTstatic StringJSON_PROPERTY_BENEFICIARY_MERCHANT_REFERENCEstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_METADATAstatic StringJSON_PROPERTY_PAYOUT_METHOD_CODEstatic StringJSON_PROPERTY_PAYOUT_SCHEDULEstatic StringJSON_PROPERTY_PAYOUT_SPEEDstatic StringJSON_PROPERTY_STATUS
-
Constructor Summary
Constructors Constructor Description Account()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountaccountCode(String accountCode)AccountbankAccountUUID(String bankAccountUUID)AccountbeneficiaryAccount(String beneficiaryAccount)AccountbeneficiaryMerchantReference(String beneficiaryMerchantReference)Accountdescription(String description)booleanequals(Object o)Return true if this Account object is equal to o.static AccountfromJson(String jsonString)Create an instance of Account given an JSON stringStringgetAccountCode()The code of the account.StringgetBankAccountUUID()The bankAccountUUID of the bank account held by the account holder to couple the account with.StringgetBeneficiaryAccount()The beneficiary of the account.StringgetBeneficiaryMerchantReference()The reason that a beneficiary has been set up for this account.StringgetDescription()A description of the account.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.PayoutScheduleResponsegetPayoutSchedule()Get payoutScheduleAccount.PayoutSpeedEnumgetPayoutSpeed()Speed with which payouts for this account are processed.StringgetStatus()The status of the account.inthashCode()Accountmetadata(Map<String,String> metadata)AccountpayoutMethodCode(String payoutMethodCode)AccountpayoutSchedule(PayoutScheduleResponse payoutSchedule)AccountpayoutSpeed(Account.PayoutSpeedEnum payoutSpeed)AccountputMetadataItem(String key, String metadataItem)voidsetAccountCode(String accountCode)voidsetBankAccountUUID(String bankAccountUUID)voidsetBeneficiaryAccount(String beneficiaryAccount)voidsetBeneficiaryMerchantReference(String beneficiaryMerchantReference)voidsetDescription(String description)voidsetMetadata(Map<String,String> metadata)voidsetPayoutMethodCode(String payoutMethodCode)voidsetPayoutSchedule(PayoutScheduleResponse payoutSchedule)voidsetPayoutSpeed(Account.PayoutSpeedEnum payoutSpeed)voidsetStatus(String status)Accountstatus(String status)StringtoJson()Convert an instance of Account to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_CODE
public static final String JSON_PROPERTY_ACCOUNT_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_BENEFICIARY_ACCOUNT
public static final String JSON_PROPERTY_BENEFICIARY_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BENEFICIARY_MERCHANT_REFERENCE
public static final String JSON_PROPERTY_BENEFICIARY_MERCHANT_REFERENCE
- 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_SPEED
public static final String JSON_PROPERTY_PAYOUT_SPEED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccountCode
public String getAccountCode()
The code of the account.- Returns:
- accountCode
-
setAccountCode
public void setAccountCode(String accountCode)
-
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)
-
getBeneficiaryAccount
public String getBeneficiaryAccount()
The beneficiary of the account.- Returns:
- beneficiaryAccount
-
setBeneficiaryAccount
public void setBeneficiaryAccount(String beneficiaryAccount)
-
beneficiaryMerchantReference
public Account beneficiaryMerchantReference(String beneficiaryMerchantReference)
-
getBeneficiaryMerchantReference
public String getBeneficiaryMerchantReference()
The reason that a beneficiary has been set up for this account. This may have been supplied during the setup of a beneficiary at the discretion of the executing user.- Returns:
- beneficiaryMerchantReference
-
setBeneficiaryMerchantReference
public void setBeneficiaryMerchantReference(String beneficiaryMerchantReference)
-
getDescription
public String getDescription()
A description of the account.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
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
-
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 Account payoutSchedule(PayoutScheduleResponse payoutSchedule)
-
getPayoutSchedule
public PayoutScheduleResponse getPayoutSchedule()
Get payoutSchedule- Returns:
- payoutSchedule
-
setPayoutSchedule
public void setPayoutSchedule(PayoutScheduleResponse payoutSchedule)
-
payoutSpeed
public Account payoutSpeed(Account.PayoutSpeedEnum payoutSpeed)
-
getPayoutSpeed
public Account.PayoutSpeedEnum getPayoutSpeed()
Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.- Returns:
- payoutSpeed
-
setPayoutSpeed
public void setPayoutSpeed(Account.PayoutSpeedEnum payoutSpeed)
-
getStatus
public String getStatus()
The status of the account. Possible values: `Active`, `Inactive`, `Suspended`, `Closed`.- Returns:
- status
-
setStatus
public void setStatus(String status)
-
equals
public boolean equals(Object o)
Return true if this Account object is equal to o.
-
fromJson
public static Account fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Account given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Account
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Account
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Account to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-