Package com.adyen.model.capital
Class Disbursement
- java.lang.Object
-
- com.adyen.model.capital.Disbursement
-
public class Disbursement extends Object
Disbursement
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_HOLDER_IDstatic StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_BALANCE_ACCOUNT_IDstatic StringJSON_PROPERTY_BALANCESstatic StringJSON_PROPERTY_FEEstatic StringJSON_PROPERTY_FUNDS_COLLECTIONSstatic StringJSON_PROPERTY_GRANT_IDstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_REPAYMENT
-
Constructor Summary
Constructors Constructor Description Disbursement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DisbursementaccountHolderId(String accountHolderId)The unique identifier of the account holder that received the disbursement.DisbursementaddFundsCollectionsItem(FundsCollection fundsCollectionsItem)Disbursementamount(Amount amount)amountDisbursementbalanceAccountId(String balanceAccountId)The unique identifier of the balance account that received the disbursement.Disbursementbalances(Balance balances)balancesbooleanequals(Object o)Return true if this Disbursement object is equal to o.Disbursementfee(Fee fee)feestatic DisbursementfromJson(String jsonString)Create an instance of Disbursement given an JSON stringDisbursementfundsCollections(List<FundsCollection> fundsCollections)Contains information about the accounts that Adyen uses to collect funds related to repayments.StringgetAccountHolderId()The unique identifier of the account holder that received the disbursement.AmountgetAmount()Get amountStringgetBalanceAccountId()The unique identifier of the balance account that received the disbursement.BalancegetBalances()Get balancesMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.FeegetFee()Get feeList<FundsCollection>getFundsCollections()Contains information about the accounts that Adyen uses to collect funds related to repayments.StringgetGrantId()The unique identifier of the grant related to the disbursement.StringgetId()The unique identifier of the disbursement.DisbursementRepaymentgetRepayment()Get repaymentDisbursementgrantId(String grantId)The unique identifier of the grant related to the disbursement.inthashCode()Disbursementid(String id)The unique identifier of the disbursement.DisbursementincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.Disbursementrepayment(DisbursementRepayment repayment)repaymentvoidsetAccountHolderId(String accountHolderId)The unique identifier of the account holder that received the disbursement.voidsetAmount(Amount amount)amountvoidsetBalanceAccountId(String balanceAccountId)The unique identifier of the balance account that received the disbursement.voidsetBalances(Balance balances)balancesvoidsetFee(Fee fee)feevoidsetFundsCollections(List<FundsCollection> fundsCollections)Contains information about the accounts that Adyen uses to collect funds related to repayments.voidsetGrantId(String grantId)The unique identifier of the grant related to the disbursement.voidsetId(String id)The unique identifier of the disbursement.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetRepayment(DisbursementRepayment repayment)repaymentStringtoJson()Convert an instance of Disbursement to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_HOLDER_ID
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BALANCE_ACCOUNT_ID
public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BALANCES
public static final String JSON_PROPERTY_BALANCES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FEE
public static final String JSON_PROPERTY_FEE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FUNDS_COLLECTIONS
public static final String JSON_PROPERTY_FUNDS_COLLECTIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GRANT_ID
public static final String JSON_PROPERTY_GRANT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REPAYMENT
public static final String JSON_PROPERTY_REPAYMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountHolderId
public Disbursement accountHolderId(String accountHolderId)
The unique identifier of the account holder that received the disbursement.- Parameters:
accountHolderId- The unique identifier of the account holder that received the disbursement.- Returns:
- the current
Disbursementinstance, allowing for method chaining
-
getAccountHolderId
public String getAccountHolderId()
The unique identifier of the account holder that received the disbursement.- Returns:
- accountHolderId The unique identifier of the account holder that received the disbursement.
-
setAccountHolderId
public void setAccountHolderId(String accountHolderId)
The unique identifier of the account holder that received the disbursement.- Parameters:
accountHolderId- The unique identifier of the account holder that received the disbursement.
-
amount
public Disbursement amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
Disbursementinstance, allowing for method chaining
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
balanceAccountId
public Disbursement balanceAccountId(String balanceAccountId)
The unique identifier of the balance account that received the disbursement.- Parameters:
balanceAccountId- The unique identifier of the balance account that received the disbursement.- Returns:
- the current
Disbursementinstance, allowing for method chaining
-
getBalanceAccountId
public String getBalanceAccountId()
The unique identifier of the balance account that received the disbursement.- Returns:
- balanceAccountId The unique identifier of the balance account that received the disbursement.
-
setBalanceAccountId
public void setBalanceAccountId(String balanceAccountId)
The unique identifier of the balance account that received the disbursement.- Parameters:
balanceAccountId- The unique identifier of the balance account that received the disbursement.
-
balances
public Disbursement balances(Balance balances)
balances- Parameters:
balances-- Returns:
- the current
Disbursementinstance, allowing for method chaining
-
getBalances
public Balance getBalances()
Get balances- Returns:
- balances
-
setBalances
public void setBalances(Balance balances)
balances- Parameters:
balances-
-
fee
public Disbursement fee(Fee fee)
fee- Parameters:
fee-- Returns:
- the current
Disbursementinstance, allowing for method chaining
-
getFee
public Fee getFee()
Get fee- Returns:
- fee
-
setFee
public void setFee(Fee fee)
fee- Parameters:
fee-
-
fundsCollections
public Disbursement fundsCollections(List<FundsCollection> fundsCollections)
Contains information about the accounts that Adyen uses to collect funds related to repayments.- Parameters:
fundsCollections- Contains information about the accounts that Adyen uses to collect funds related to repayments.- Returns:
- the current
Disbursementinstance, allowing for method chaining
-
addFundsCollectionsItem
public Disbursement addFundsCollectionsItem(FundsCollection fundsCollectionsItem)
-
getFundsCollections
public List<FundsCollection> getFundsCollections()
Contains information about the accounts that Adyen uses to collect funds related to repayments.- Returns:
- fundsCollections Contains information about the accounts that Adyen uses to collect funds related to repayments.
-
setFundsCollections
public void setFundsCollections(List<FundsCollection> fundsCollections)
Contains information about the accounts that Adyen uses to collect funds related to repayments.- Parameters:
fundsCollections- Contains information about the accounts that Adyen uses to collect funds related to repayments.
-
grantId
public Disbursement grantId(String grantId)
The unique identifier of the grant related to the disbursement.- Parameters:
grantId- The unique identifier of the grant related to the disbursement.- Returns:
- the current
Disbursementinstance, allowing for method chaining
-
getGrantId
public String getGrantId()
The unique identifier of the grant related to the disbursement.- Returns:
- grantId The unique identifier of the grant related to the disbursement.
-
setGrantId
public void setGrantId(String grantId)
The unique identifier of the grant related to the disbursement.- Parameters:
grantId- The unique identifier of the grant related to the disbursement.
-
id
public Disbursement id(String id)
The unique identifier of the disbursement.- Parameters:
id- The unique identifier of the disbursement.- Returns:
- the current
Disbursementinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the disbursement.- Returns:
- id The unique identifier of the disbursement.
-
setId
public void setId(String id)
The unique identifier of the disbursement.- Parameters:
id- The unique identifier of the disbursement.
-
repayment
public Disbursement repayment(DisbursementRepayment repayment)
repayment- Parameters:
repayment-- Returns:
- the current
Disbursementinstance, allowing for method chaining
-
getRepayment
public DisbursementRepayment getRepayment()
Get repayment- Returns:
- repayment
-
setRepayment
public void setRepayment(DisbursementRepayment repayment)
repayment- Parameters:
repayment-
-
includeNullValues
public Disbursement includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this Disbursement object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static Disbursement fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Disbursement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Disbursement
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Disbursement
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Disbursement to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-