Package com.adyen.model.checkout
Class TokenMandate
- java.lang.Object
-
- com.adyen.model.checkout.TokenMandate
-
public class TokenMandate extends Object
TokenMandate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenMandate.AmountRuleEnumThe limitation rule of the billing amount.static classTokenMandate.BillingAttemptsRuleEnumThe rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date.static classTokenMandate.FrequencyEnumThe frequency with which a shopper should be charged.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_ID_TYPEstatic StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_AMOUNT_RULEstatic StringJSON_PROPERTY_BILLING_ATTEMPTS_RULEstatic StringJSON_PROPERTY_BILLING_DAYstatic StringJSON_PROPERTY_COUNTstatic StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_ENDS_ATstatic StringJSON_PROPERTY_FREQUENCYstatic StringJSON_PROPERTY_MANDATE_IDstatic StringJSON_PROPERTY_MASKED_ACCOUNT_IDstatic StringJSON_PROPERTY_PROVIDER_IDstatic StringJSON_PROPERTY_REMARKSstatic StringJSON_PROPERTY_STARTS_ATstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_TX_VARIANT
-
Constructor Summary
Constructors Constructor Description TokenMandate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenMandateaccountIdType(String accountIdType)The type of account identifier for the masked account number.TokenMandateamount(String amount)The billing amount (in minor units) of the recurring transactions.TokenMandateamountRule(TokenMandate.AmountRuleEnum amountRule)The limitation rule of the billing amount.TokenMandatebillingAttemptsRule(TokenMandate.BillingAttemptsRuleEnum billingAttemptsRule)The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date.TokenMandatebillingDay(String billingDay)The number of the day, on which the recurring debit can happen.TokenMandatecount(String count)The number of transactions that can be performed within the given frequency.TokenMandatecurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).TokenMandateendsAt(String endsAt)End date of the billing plan, in YYYY-MM-DD format.booleanequals(Object o)Return true if this TokenMandate object is equal to o.TokenMandatefrequency(TokenMandate.FrequencyEnum frequency)The frequency with which a shopper should be charged.static TokenMandatefromJson(String jsonString)Create an instance of TokenMandate given an JSON stringStringgetAccountIdType()The type of account identifier for the masked account number.StringgetAmount()The billing amount (in minor units) of the recurring transactions.TokenMandate.AmountRuleEnumgetAmountRule()The limitation rule of the billing amount.TokenMandate.BillingAttemptsRuleEnumgetBillingAttemptsRule()The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date.StringgetBillingDay()The number of the day, on which the recurring debit can happen.StringgetCount()The number of transactions that can be performed within the given frequency.StringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).StringgetEndsAt()End date of the billing plan, in YYYY-MM-DD format.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.TokenMandate.FrequencyEnumgetFrequency()The frequency with which a shopper should be charged.StringgetMandateId()The unique identifier of the mandate.StringgetMaskedAccountId()The masked account number associated with the mandate.StringgetProviderId()The provider-specific identifier for this mandate.StringgetRemarks()Additional remarks or notes about the mandate.StringgetStartsAt()Start date of the billing plan, in YYYY-MM-DD format.StringgetStatus()The status of the mandate.StringgetTxVariant()The transaction variant used for this mandate.inthashCode()TokenMandateincludeNullValues(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.TokenMandatemandateId(String mandateId)The unique identifier of the mandate.TokenMandatemaskedAccountId(String maskedAccountId)The masked account number associated with the mandate.TokenMandateproviderId(String providerId)The provider-specific identifier for this mandate.TokenMandateremarks(String remarks)Additional remarks or notes about the mandate.voidsetAccountIdType(String accountIdType)The type of account identifier for the masked account number.voidsetAmount(String amount)The billing amount (in minor units) of the recurring transactions.voidsetAmountRule(TokenMandate.AmountRuleEnum amountRule)The limitation rule of the billing amount.voidsetBillingAttemptsRule(TokenMandate.BillingAttemptsRuleEnum billingAttemptsRule)The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date.voidsetBillingDay(String billingDay)The number of the day, on which the recurring debit can happen.voidsetCount(String count)The number of transactions that can be performed within the given frequency.voidsetCurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).voidsetEndsAt(String endsAt)End date of the billing plan, in YYYY-MM-DD format.voidsetFrequency(TokenMandate.FrequencyEnum frequency)The frequency with which a shopper should be charged.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMandateId(String mandateId)The unique identifier of the mandate.voidsetMaskedAccountId(String maskedAccountId)The masked account number associated with the mandate.voidsetProviderId(String providerId)The provider-specific identifier for this mandate.voidsetRemarks(String remarks)Additional remarks or notes about the mandate.voidsetStartsAt(String startsAt)Start date of the billing plan, in YYYY-MM-DD format.voidsetStatus(String status)The status of the mandate.voidsetTxVariant(String txVariant)The transaction variant used for this mandate.TokenMandatestartsAt(String startsAt)Start date of the billing plan, in YYYY-MM-DD format.TokenMandatestatus(String status)The status of the mandate.StringtoJson()Convert an instance of TokenMandate to an JSON stringStringtoString()TokenMandatetxVariant(String txVariant)The transaction variant used for this mandate.
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_ID_TYPE
public static final String JSON_PROPERTY_ACCOUNT_ID_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNT_RULE
public static final String JSON_PROPERTY_AMOUNT_RULE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BILLING_ATTEMPTS_RULE
public static final String JSON_PROPERTY_BILLING_ATTEMPTS_RULE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BILLING_DAY
public static final String JSON_PROPERTY_BILLING_DAY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNT
public static final String JSON_PROPERTY_COUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENDS_AT
public static final String JSON_PROPERTY_ENDS_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FREQUENCY
public static final String JSON_PROPERTY_FREQUENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MANDATE_ID
public static final String JSON_PROPERTY_MANDATE_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MASKED_ACCOUNT_ID
public static final String JSON_PROPERTY_MASKED_ACCOUNT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROVIDER_ID
public static final String JSON_PROPERTY_PROVIDER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REMARKS
public static final String JSON_PROPERTY_REMARKS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STARTS_AT
public static final String JSON_PROPERTY_STARTS_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TX_VARIANT
public static final String JSON_PROPERTY_TX_VARIANT
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountIdType
public TokenMandate accountIdType(String accountIdType)
The type of account identifier for the masked account number.- Parameters:
accountIdType- The type of account identifier for the masked account number.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getAccountIdType
public String getAccountIdType()
The type of account identifier for the masked account number.- Returns:
- accountIdType The type of account identifier for the masked account number.
-
setAccountIdType
public void setAccountIdType(String accountIdType)
The type of account identifier for the masked account number.- Parameters:
accountIdType- The type of account identifier for the masked account number.
-
amount
public TokenMandate amount(String amount)
The billing amount (in minor units) of the recurring transactions.- Parameters:
amount- The billing amount (in minor units) of the recurring transactions.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getAmount
public String getAmount()
The billing amount (in minor units) of the recurring transactions.- Returns:
- amount The billing amount (in minor units) of the recurring transactions.
-
setAmount
public void setAmount(String amount)
The billing amount (in minor units) of the recurring transactions.- Parameters:
amount- The billing amount (in minor units) of the recurring transactions.
-
amountRule
public TokenMandate amountRule(TokenMandate.AmountRuleEnum amountRule)
The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`.- Parameters:
amountRule- The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getAmountRule
public TokenMandate.AmountRuleEnum getAmountRule()
The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`.- Returns:
- amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`.
-
setAmountRule
public void setAmountRule(TokenMandate.AmountRuleEnum amountRule)
The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`.- Parameters:
amountRule- The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`.
-
billingAttemptsRule
public TokenMandate billingAttemptsRule(TokenMandate.BillingAttemptsRuleEnum billingAttemptsRule)
The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date.- Parameters:
billingAttemptsRule- The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getBillingAttemptsRule
public TokenMandate.BillingAttemptsRuleEnum getBillingAttemptsRule()
The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date.- Returns:
- billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date.
-
setBillingAttemptsRule
public void setBillingAttemptsRule(TokenMandate.BillingAttemptsRuleEnum billingAttemptsRule)
The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date.- Parameters:
billingAttemptsRule- The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date.
-
billingDay
public TokenMandate billingDay(String billingDay)
The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`.- Parameters:
billingDay- The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getBillingDay
public String getBillingDay()
The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`.- Returns:
- billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`.
-
setBillingDay
public void setBillingDay(String billingDay)
The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`.- Parameters:
billingDay- The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`.
-
count
public TokenMandate count(String count)
The number of transactions that can be performed within the given frequency.- Parameters:
count- The number of transactions that can be performed within the given frequency.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getCount
public String getCount()
The number of transactions that can be performed within the given frequency.- Returns:
- count The number of transactions that can be performed within the given frequency.
-
setCount
public void setCount(String count)
The number of transactions that can be performed within the given frequency.- Parameters:
count- The number of transactions that can be performed within the given frequency.
-
currency
public TokenMandate currency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Parameters:
currency- The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getCurrency
public String getCurrency()
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Returns:
- currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
-
setCurrency
public void setCurrency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Parameters:
currency- The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
-
endsAt
public TokenMandate endsAt(String endsAt)
End date of the billing plan, in YYYY-MM-DD format.- Parameters:
endsAt- End date of the billing plan, in YYYY-MM-DD format.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getEndsAt
public String getEndsAt()
End date of the billing plan, in YYYY-MM-DD format.- Returns:
- endsAt End date of the billing plan, in YYYY-MM-DD format.
-
setEndsAt
public void setEndsAt(String endsAt)
End date of the billing plan, in YYYY-MM-DD format.- Parameters:
endsAt- End date of the billing plan, in YYYY-MM-DD format.
-
frequency
public TokenMandate frequency(TokenMandate.FrequencyEnum frequency)
The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**.- Parameters:
frequency- The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getFrequency
public TokenMandate.FrequencyEnum getFrequency()
The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**.- Returns:
- frequency The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**.
-
setFrequency
public void setFrequency(TokenMandate.FrequencyEnum frequency)
The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**.- Parameters:
frequency- The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**.
-
mandateId
public TokenMandate mandateId(String mandateId)
The unique identifier of the mandate.- Parameters:
mandateId- The unique identifier of the mandate.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getMandateId
public String getMandateId()
The unique identifier of the mandate.- Returns:
- mandateId The unique identifier of the mandate.
-
setMandateId
public void setMandateId(String mandateId)
The unique identifier of the mandate.- Parameters:
mandateId- The unique identifier of the mandate.
-
maskedAccountId
public TokenMandate maskedAccountId(String maskedAccountId)
The masked account number associated with the mandate.- Parameters:
maskedAccountId- The masked account number associated with the mandate.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getMaskedAccountId
public String getMaskedAccountId()
The masked account number associated with the mandate.- Returns:
- maskedAccountId The masked account number associated with the mandate.
-
setMaskedAccountId
public void setMaskedAccountId(String maskedAccountId)
The masked account number associated with the mandate.- Parameters:
maskedAccountId- The masked account number associated with the mandate.
-
providerId
public TokenMandate providerId(String providerId)
The provider-specific identifier for this mandate.- Parameters:
providerId- The provider-specific identifier for this mandate.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getProviderId
public String getProviderId()
The provider-specific identifier for this mandate.- Returns:
- providerId The provider-specific identifier for this mandate.
-
setProviderId
public void setProviderId(String providerId)
The provider-specific identifier for this mandate.- Parameters:
providerId- The provider-specific identifier for this mandate.
-
remarks
public TokenMandate remarks(String remarks)
Additional remarks or notes about the mandate.- Parameters:
remarks- Additional remarks or notes about the mandate.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getRemarks
public String getRemarks()
Additional remarks or notes about the mandate.- Returns:
- remarks Additional remarks or notes about the mandate.
-
setRemarks
public void setRemarks(String remarks)
Additional remarks or notes about the mandate.- Parameters:
remarks- Additional remarks or notes about the mandate.
-
startsAt
public TokenMandate startsAt(String startsAt)
Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date.- Parameters:
startsAt- Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getStartsAt
public String getStartsAt()
Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date.- Returns:
- startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date.
-
setStartsAt
public void setStartsAt(String startsAt)
Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date.- Parameters:
startsAt- Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date.
-
status
public TokenMandate status(String status)
The status of the mandate. Examples : active, revoked, completed, expired- Parameters:
status- The status of the mandate. Examples : active, revoked, completed, expired- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getStatus
public String getStatus()
The status of the mandate. Examples : active, revoked, completed, expired- Returns:
- status The status of the mandate. Examples : active, revoked, completed, expired
-
setStatus
public void setStatus(String status)
The status of the mandate. Examples : active, revoked, completed, expired- Parameters:
status- The status of the mandate. Examples : active, revoked, completed, expired
-
txVariant
public TokenMandate txVariant(String txVariant)
The transaction variant used for this mandate.- Parameters:
txVariant- The transaction variant used for this mandate.- Returns:
- the current
TokenMandateinstance, allowing for method chaining
-
getTxVariant
public String getTxVariant()
The transaction variant used for this mandate.- Returns:
- txVariant The transaction variant used for this mandate.
-
setTxVariant
public void setTxVariant(String txVariant)
The transaction variant used for this mandate.- Parameters:
txVariant- The transaction variant used for this mandate.
-
includeNullValues
public TokenMandate 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 TokenMandate 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 TokenMandate fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TokenMandate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TokenMandate
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TokenMandate
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TokenMandate to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-