Package com.adyen.model.balanceplatform
Class Mandate
- java.lang.Object
-
- com.adyen.model.balanceplatform.Mandate
-
public class Mandate extends Object
Mandate
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BALANCE_ACCOUNT_IDstatic StringJSON_PROPERTY_COUNTERPARTYstatic StringJSON_PROPERTY_CREATED_ATstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENT_IDstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description Mandate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MandatebalanceAccountId(String balanceAccountId)The unique identifier of the balance account linked to the payment instrument.Mandatecounterparty(MandateBankAccount counterparty)counterpartyMandatecreatedAt(OffsetDateTime createdAt)The date when the mandate was created.booleanequals(Object o)Return true if this Mandate object is equal to o.static MandatefromJson(String jsonString)Create an instance of Mandate given an JSON stringStringgetBalanceAccountId()The unique identifier of the balance account linked to the payment instrument.MandateBankAccountgetCounterparty()Get counterpartyOffsetDateTimegetCreatedAt()The date when the mandate was created.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetId()The unique identifier of the mandate.StringgetPaymentInstrumentId()The unique identifier of the payment instrument linked to the mandate.MandateStatusgetStatus()Get statusMandateTypegetType()Get typeOffsetDateTimegetUpdatedAt()The date when the mandate was updated.inthashCode()Mandateid(String id)The unique identifier of the mandate.MandateincludeNullValues(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.MandatepaymentInstrumentId(String paymentInstrumentId)The unique identifier of the payment instrument linked to the mandate.voidsetBalanceAccountId(String balanceAccountId)The unique identifier of the balance account linked to the payment instrument.voidsetCounterparty(MandateBankAccount counterparty)counterpartyvoidsetCreatedAt(OffsetDateTime createdAt)The date when the mandate was created.voidsetId(String id)The unique identifier of the mandate.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPaymentInstrumentId(String paymentInstrumentId)The unique identifier of the payment instrument linked to the mandate.voidsetStatus(MandateStatus status)statusvoidsetType(MandateType type)typevoidsetUpdatedAt(OffsetDateTime updatedAt)The date when the mandate was updated.Mandatestatus(MandateStatus status)statusStringtoJson()Convert an instance of Mandate to an JSON stringStringtoString()Mandatetype(MandateType type)typeMandateupdatedAt(OffsetDateTime updatedAt)The date when the mandate was updated.
-
-
-
Field Detail
-
JSON_PROPERTY_BALANCE_ACCOUNT_ID
public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTERPARTY
public static final String JSON_PROPERTY_COUNTERPARTY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATED_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENT_ID
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_UPDATED_AT
public static final String JSON_PROPERTY_UPDATED_AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
balanceAccountId
public Mandate balanceAccountId(String balanceAccountId)
The unique identifier of the balance account linked to the payment instrument.- Parameters:
balanceAccountId- The unique identifier of the balance account linked to the payment instrument.- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getBalanceAccountId
public String getBalanceAccountId()
The unique identifier of the balance account linked to the payment instrument.- Returns:
- balanceAccountId The unique identifier of the balance account linked to the payment instrument.
-
setBalanceAccountId
public void setBalanceAccountId(String balanceAccountId)
The unique identifier of the balance account linked to the payment instrument.- Parameters:
balanceAccountId- The unique identifier of the balance account linked to the payment instrument.
-
counterparty
public Mandate counterparty(MandateBankAccount counterparty)
counterparty- Parameters:
counterparty-- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getCounterparty
public MandateBankAccount getCounterparty()
Get counterparty- Returns:
- counterparty
-
setCounterparty
public void setCounterparty(MandateBankAccount counterparty)
counterparty- Parameters:
counterparty-
-
createdAt
public Mandate createdAt(OffsetDateTime createdAt)
The date when the mandate was created.- Parameters:
createdAt- The date when the mandate was created.- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getCreatedAt
public OffsetDateTime getCreatedAt()
The date when the mandate was created.- Returns:
- createdAt The date when the mandate was created.
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
The date when the mandate was created.- Parameters:
createdAt- The date when the mandate was created.
-
id
public Mandate id(String id)
The unique identifier of the mandate.- Parameters:
id- The unique identifier of the mandate.- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the mandate.- Returns:
- id The unique identifier of the mandate.
-
setId
public void setId(String id)
The unique identifier of the mandate.- Parameters:
id- The unique identifier of the mandate.
-
paymentInstrumentId
public Mandate paymentInstrumentId(String paymentInstrumentId)
The unique identifier of the payment instrument linked to the mandate.- Parameters:
paymentInstrumentId- The unique identifier of the payment instrument linked to the mandate.- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getPaymentInstrumentId
public String getPaymentInstrumentId()
The unique identifier of the payment instrument linked to the mandate.- Returns:
- paymentInstrumentId The unique identifier of the payment instrument linked to the mandate.
-
setPaymentInstrumentId
public void setPaymentInstrumentId(String paymentInstrumentId)
The unique identifier of the payment instrument linked to the mandate.- Parameters:
paymentInstrumentId- The unique identifier of the payment instrument linked to the mandate.
-
status
public Mandate status(MandateStatus status)
status- Parameters:
status-- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getStatus
public MandateStatus getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(MandateStatus status)
status- Parameters:
status-
-
type
public Mandate type(MandateType type)
type- Parameters:
type-- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getType
public MandateType getType()
Get type- Returns:
- type
-
setType
public void setType(MandateType type)
type- Parameters:
type-
-
updatedAt
public Mandate updatedAt(OffsetDateTime updatedAt)
The date when the mandate was updated.- Parameters:
updatedAt- The date when the mandate was updated.- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getUpdatedAt
public OffsetDateTime getUpdatedAt()
The date when the mandate was updated.- Returns:
- updatedAt The date when the mandate was updated.
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
The date when the mandate was updated.- Parameters:
updatedAt- The date when the mandate was updated.
-
includeNullValues
public Mandate 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 Mandate 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 Mandate fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Mandate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Mandate
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Mandate
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Mandate to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-