Class RecurringToken
- java.lang.Object
-
- com.adyen.model.tokenizationwebhooks.RecurringToken
-
public class RecurringToken extends Object
RecurringToken
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_SHOPPER_REFERENCEstatic StringJSON_PROPERTY_STORED_PAYMENT_METHOD_IDstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description RecurringToken()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this RecurringToken object is equal to o.static RecurringTokenfromJson(String jsonString)Create an instance of RecurringToken given an JSON stringStringgetMerchantAccount()The identifier of the merchant account related to the event that triggered the webhook.StringgetShopperReference()Your unique shopper reference that is associated with the `storedPaymentMethodId`.StringgetStoredPaymentMethodId()The ID of the token.StringgetType()The type of the payment method.inthashCode()RecurringTokenmerchantAccount(String merchantAccount)The identifier of the merchant account related to the event that triggered the webhook.voidsetMerchantAccount(String merchantAccount)The identifier of the merchant account related to the event that triggered the webhook.voidsetShopperReference(String shopperReference)Your unique shopper reference that is associated with the `storedPaymentMethodId`.voidsetStoredPaymentMethodId(String storedPaymentMethodId)The ID of the token.voidsetType(String type)The type of the payment method.RecurringTokenshopperReference(String shopperReference)Your unique shopper reference that is associated with the `storedPaymentMethodId`.RecurringTokenstoredPaymentMethodId(String storedPaymentMethodId)The ID of the token.StringtoJson()Convert an instance of RecurringToken to an JSON stringStringtoString()RecurringTokentype(String type)The type of the payment method.
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public RecurringToken merchantAccount(String merchantAccount)
The identifier of the merchant account related to the event that triggered the webhook.- Parameters:
merchantAccount- The identifier of the merchant account related to the event that triggered the webhook.- Returns:
- the current
RecurringTokeninstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
The identifier of the merchant account related to the event that triggered the webhook.- Returns:
- merchantAccount The identifier of the merchant account related to the event that triggered the webhook.
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The identifier of the merchant account related to the event that triggered the webhook.- Parameters:
merchantAccount- The identifier of the merchant account related to the event that triggered the webhook.
-
shopperReference
public RecurringToken shopperReference(String shopperReference)
Your unique shopper reference that is associated with the `storedPaymentMethodId`.- Parameters:
shopperReference- Your unique shopper reference that is associated with the `storedPaymentMethodId`.- Returns:
- the current
RecurringTokeninstance, allowing for method chaining
-
getShopperReference
public String getShopperReference()
Your unique shopper reference that is associated with the `storedPaymentMethodId`.- Returns:
- shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`.
-
setShopperReference
public void setShopperReference(String shopperReference)
Your unique shopper reference that is associated with the `storedPaymentMethodId`.- Parameters:
shopperReference- Your unique shopper reference that is associated with the `storedPaymentMethodId`.
-
storedPaymentMethodId
public RecurringToken storedPaymentMethodId(String storedPaymentMethodId)
The ID of the token.- Parameters:
storedPaymentMethodId- The ID of the token.- Returns:
- the current
RecurringTokeninstance, allowing for method chaining
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
The ID of the token.- Returns:
- storedPaymentMethodId The ID of the token.
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
The ID of the token.- Parameters:
storedPaymentMethodId- The ID of the token.
-
type
public RecurringToken type(String type)
The type of the payment method.- Parameters:
type- The type of the payment method.- Returns:
- the current
RecurringTokeninstance, allowing for method chaining
-
getType
public String getType()
The type of the payment method.- Returns:
- type The type of the payment method.
-
setType
public void setType(String type)
The type of the payment method.- Parameters:
type- The type of the payment method.
-
equals
public boolean equals(Object o)
Return true if this RecurringToken object is equal to o.
-
fromJson
public static RecurringToken fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of RecurringToken given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RecurringToken
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to RecurringToken
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of RecurringToken to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-