Package com.adyen.model.marketpayfund
Class DebitAccountHolderRequest
- java.lang.Object
-
- com.adyen.model.marketpayfund.DebitAccountHolderRequest
-
public class DebitAccountHolderRequest extends Object
DebitAccountHolderRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_HOLDER_CODEstatic StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_BANK_ACCOUNT_U_U_I_Dstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_SPLITS
-
Constructor Summary
Constructors Constructor Description DebitAccountHolderRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DebitAccountHolderRequestaccountHolderCode(String accountHolderCode)DebitAccountHolderRequestaddSplitsItem(Split splitsItem)DebitAccountHolderRequestamount(Amount amount)DebitAccountHolderRequestbankAccountUUID(String bankAccountUUID)DebitAccountHolderRequestdescription(String description)booleanequals(Object o)Return true if this DebitAccountHolderRequest object is equal to o.static DebitAccountHolderRequestfromJson(String jsonString)Create an instance of DebitAccountHolderRequest given an JSON stringStringgetAccountHolderCode()The code of the account holder.AmountgetAmount()Get amountStringgetBankAccountUUID()The Adyen-generated unique alphanumeric identifier (UUID) of the account holder's bank account.StringgetDescription()A description of the direct debit.StringgetMerchantAccount()Your merchant account.List<Split>getSplits()Contains instructions on how to split the funds between the accounts in your platform.inthashCode()DebitAccountHolderRequestmerchantAccount(String merchantAccount)voidsetAccountHolderCode(String accountHolderCode)voidsetAmount(Amount amount)voidsetBankAccountUUID(String bankAccountUUID)voidsetDescription(String description)voidsetMerchantAccount(String merchantAccount)voidsetSplits(List<Split> splits)DebitAccountHolderRequestsplits(List<Split> splits)StringtoJson()Convert an instance of DebitAccountHolderRequest 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_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- 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_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SPLITS
public static final String JSON_PROPERTY_SPLITS
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountHolderCode
public DebitAccountHolderRequest accountHolderCode(String accountHolderCode)
-
getAccountHolderCode
public String getAccountHolderCode()
The code of the account holder.- Returns:
- accountHolderCode
-
setAccountHolderCode
public void setAccountHolderCode(String accountHolderCode)
-
amount
public DebitAccountHolderRequest amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
bankAccountUUID
public DebitAccountHolderRequest bankAccountUUID(String bankAccountUUID)
-
getBankAccountUUID
public String getBankAccountUUID()
The Adyen-generated unique alphanumeric identifier (UUID) of the account holder's bank account.- Returns:
- bankAccountUUID
-
setBankAccountUUID
public void setBankAccountUUID(String bankAccountUUID)
-
description
public DebitAccountHolderRequest description(String description)
-
getDescription
public String getDescription()
A description of the direct debit. Maximum length: 35 characters. Allowed characters: **a-z**, **A-Z**, **0-9**, and special characters **_/?:().,'+ \";**.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
merchantAccount
public DebitAccountHolderRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
Your merchant account.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
splits
public DebitAccountHolderRequest splits(List<Split> splits)
-
addSplitsItem
public DebitAccountHolderRequest addSplitsItem(Split splitsItem)
-
getSplits
public List<Split> getSplits()
Contains instructions on how to split the funds between the accounts in your platform. The request must have at least one split item.- Returns:
- splits
-
equals
public boolean equals(Object o)
Return true if this DebitAccountHolderRequest object is equal to o.
-
fromJson
public static DebitAccountHolderRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DebitAccountHolderRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DebitAccountHolderRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DebitAccountHolderRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DebitAccountHolderRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-