Class Mandate
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.Mandate
-
public class Mandate extends Object
Mandate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMandate.StatusEnumThe status of the mandate.static classMandate.TypeEnumThe type of 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(Object createdAt)createdAtbooleanequals(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 counterpartyObjectgetCreatedAt()Get createdAtStringgetId()The unique identifier of the mandate.StringgetPaymentInstrumentId()The unique identifier of the payment instrument linked to the mandate.Mandate.StatusEnumgetStatus()The status of the mandate.Mandate.TypeEnumgetType()The type of mandate.ObjectgetUpdatedAt()Get updatedAtinthashCode()Mandateid(String id)The unique identifier of the mandate.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(Object createdAt)createdAtvoidsetId(String id)The unique identifier of the mandate.voidsetPaymentInstrumentId(String paymentInstrumentId)The unique identifier of the payment instrument linked to the mandate.voidsetStatus(Mandate.StatusEnum status)The status of the mandate.voidsetType(Mandate.TypeEnum type)The type of mandate.voidsetUpdatedAt(Object updatedAt)updatedAtMandatestatus(Mandate.StatusEnum status)The status of the mandate.StringtoJson()Convert an instance of Mandate to an JSON stringStringtoString()Mandatetype(Mandate.TypeEnum type)The type of mandate.MandateupdatedAt(Object updatedAt)updatedAt
-
-
-
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(Object createdAt)
createdAt- Parameters:
createdAt-- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getCreatedAt
public Object getCreatedAt()
Get createdAt- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(Object createdAt)
createdAt- Parameters:
createdAt-
-
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(Mandate.StatusEnum status)
The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.- Parameters:
status- The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getStatus
public Mandate.StatusEnum getStatus()
The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.- Returns:
- status The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.
-
setStatus
public void setStatus(Mandate.StatusEnum status)
The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.- Parameters:
status- The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.
-
type
public Mandate type(Mandate.TypeEnum type)
The type of mandate. Possible value: **bacs**.- Parameters:
type- The type of mandate. Possible value: **bacs**.- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getType
public Mandate.TypeEnum getType()
The type of mandate. Possible value: **bacs**.- Returns:
- type The type of mandate. Possible value: **bacs**.
-
setType
public void setType(Mandate.TypeEnum type)
The type of mandate. Possible value: **bacs**.- Parameters:
type- The type of mandate. Possible value: **bacs**.
-
updatedAt
public Mandate updatedAt(Object updatedAt)
updatedAt- Parameters:
updatedAt-- Returns:
- the current
Mandateinstance, allowing for method chaining
-
getUpdatedAt
public Object getUpdatedAt()
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(Object updatedAt)
updatedAt- Parameters:
updatedAt-
-
equals
public boolean equals(Object o)
Return true if this Mandate object is equal to o.
-
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
-
-