Package com.adyen.model.payments
Class Recurring
- java.lang.Object
-
- com.adyen.model.payments.Recurring
-
public class Recurring extends Object
Recurring
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecurring.ContractEnumThe type of recurring contract to be used.static classRecurring.CustomTypeAdapterFactorystatic classRecurring.TokenServiceEnumThe name of the token service.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CONTRACTstatic StringSERIALIZED_NAME_RECURRING_DETAIL_NAMEstatic StringSERIALIZED_NAME_RECURRING_EXPIRYstatic StringSERIALIZED_NAME_RECURRING_FREQUENCYstatic StringSERIALIZED_NAME_TOKEN_SERVICE
-
Constructor Summary
Constructors Constructor Description Recurring()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Recurringcontract(Recurring.ContractEnum contract)booleanequals(Object o)static RecurringfromJson(String jsonString)Create an instance of Recurring given an JSON stringRecurring.ContractEnumgetContract()The type of recurring contract to be used.StringgetRecurringDetailName()A descriptive name for this detail.OffsetDateTimegetRecurringExpiry()Date after which no further authorisations shall be performed.StringgetRecurringFrequency()Minimum number of days between authorisations.Recurring.TokenServiceEnumgetTokenService()The name of the token service.inthashCode()RecurringrecurringDetailName(String recurringDetailName)RecurringrecurringExpiry(OffsetDateTime recurringExpiry)RecurringrecurringFrequency(String recurringFrequency)voidsetContract(Recurring.ContractEnum contract)voidsetRecurringDetailName(String recurringDetailName)voidsetRecurringExpiry(OffsetDateTime recurringExpiry)voidsetRecurringFrequency(String recurringFrequency)voidsetTokenService(Recurring.TokenServiceEnum tokenService)StringtoJson()Convert an instance of Recurring to an JSON stringRecurringtokenService(Recurring.TokenServiceEnum tokenService)StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CONTRACT
public static final String SERIALIZED_NAME_CONTRACT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_DETAIL_NAME
public static final String SERIALIZED_NAME_RECURRING_DETAIL_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_EXPIRY
public static final String SERIALIZED_NAME_RECURRING_EXPIRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_FREQUENCY
public static final String SERIALIZED_NAME_RECURRING_FREQUENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN_SERVICE
public static final String SERIALIZED_NAME_TOKEN_SERVICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
contract
public Recurring contract(Recurring.ContractEnum contract)
-
getContract
public Recurring.ContractEnum getContract()
The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts).- Returns:
- contract
-
setContract
public void setContract(Recurring.ContractEnum contract)
-
getRecurringDetailName
public String getRecurringDetailName()
A descriptive name for this detail.- Returns:
- recurringDetailName
-
setRecurringDetailName
public void setRecurringDetailName(String recurringDetailName)
-
recurringExpiry
public Recurring recurringExpiry(OffsetDateTime recurringExpiry)
-
getRecurringExpiry
public OffsetDateTime getRecurringExpiry()
Date after which no further authorisations shall be performed. Only for 3D Secure 2.- Returns:
- recurringExpiry
-
setRecurringExpiry
public void setRecurringExpiry(OffsetDateTime recurringExpiry)
-
getRecurringFrequency
public String getRecurringFrequency()
Minimum number of days between authorisations. Only for 3D Secure 2.- Returns:
- recurringFrequency
-
setRecurringFrequency
public void setRecurringFrequency(String recurringFrequency)
-
tokenService
public Recurring tokenService(Recurring.TokenServiceEnum tokenService)
-
getTokenService
public Recurring.TokenServiceEnum getTokenService()
The name of the token service.- Returns:
- tokenService
-
setTokenService
public void setTokenService(Recurring.TokenServiceEnum tokenService)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Recurring
-
fromJson
public static Recurring fromJson(String jsonString) throws IOException
Create an instance of Recurring given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Recurring
- Throws:
IOException- if the JSON string is invalid with respect to Recurring
-
toJson
public String toJson()
Convert an instance of Recurring to an JSON string- Returns:
- JSON string
-
-