Package com.adyen.model.payout
Class Recurring
- java.lang.Object
-
- com.adyen.model.payout.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.TokenServiceEnumThe name of the token service.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONTRACTstatic StringJSON_PROPERTY_RECURRING_DETAIL_NAMEstatic StringJSON_PROPERTY_RECURRING_EXPIRYstatic StringJSON_PROPERTY_RECURRING_FREQUENCYstatic StringJSON_PROPERTY_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)The type of recurring contract to be used.booleanequals(Object o)Return true if this Recurring object is equal to 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)A descriptive name for this detail.RecurringrecurringExpiry(OffsetDateTime recurringExpiry)Date after which no further authorisations shall be performed.RecurringrecurringFrequency(String recurringFrequency)Minimum number of days between authorisations.voidsetContract(Recurring.ContractEnum contract)The type of recurring contract to be used.voidsetRecurringDetailName(String recurringDetailName)A descriptive name for this detail.voidsetRecurringExpiry(OffsetDateTime recurringExpiry)Date after which no further authorisations shall be performed.voidsetRecurringFrequency(String recurringFrequency)Minimum number of days between authorisations.voidsetTokenService(Recurring.TokenServiceEnum tokenService)The name of the token service.StringtoJson()Convert an instance of Recurring to an JSON stringRecurringtokenService(Recurring.TokenServiceEnum tokenService)The name of the token service.StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CONTRACT
public static final String JSON_PROPERTY_CONTRACT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING_DETAIL_NAME
public static final String JSON_PROPERTY_RECURRING_DETAIL_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING_EXPIRY
public static final String JSON_PROPERTY_RECURRING_EXPIRY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING_FREQUENCY
public static final String JSON_PROPERTY_RECURRING_FREQUENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN_SERVICE
public static final String JSON_PROPERTY_TOKEN_SERVICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
contract
public Recurring contract(Recurring.ContractEnum contract)
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).- Parameters:
contract-- Returns:
- the current
Recurringinstance, allowing for method chaining
-
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)
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).- Parameters:
contract-
-
recurringDetailName
public Recurring recurringDetailName(String recurringDetailName)
A descriptive name for this detail.- Parameters:
recurringDetailName-- Returns:
- the current
Recurringinstance, allowing for method chaining
-
getRecurringDetailName
public String getRecurringDetailName()
A descriptive name for this detail.- Returns:
- recurringDetailName
-
setRecurringDetailName
public void setRecurringDetailName(String recurringDetailName)
A descriptive name for this detail.- Parameters:
recurringDetailName-
-
recurringExpiry
public Recurring recurringExpiry(OffsetDateTime recurringExpiry)
Date after which no further authorisations shall be performed. Only for 3D Secure 2.- Parameters:
recurringExpiry-- Returns:
- the current
Recurringinstance, allowing for method chaining
-
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)
Date after which no further authorisations shall be performed. Only for 3D Secure 2.- Parameters:
recurringExpiry-
-
recurringFrequency
public Recurring recurringFrequency(String recurringFrequency)
Minimum number of days between authorisations. Only for 3D Secure 2.- Parameters:
recurringFrequency-- Returns:
- the current
Recurringinstance, allowing for method chaining
-
getRecurringFrequency
public String getRecurringFrequency()
Minimum number of days between authorisations. Only for 3D Secure 2.- Returns:
- recurringFrequency
-
setRecurringFrequency
public void setRecurringFrequency(String recurringFrequency)
Minimum number of days between authorisations. Only for 3D Secure 2.- Parameters:
recurringFrequency-
-
tokenService
public Recurring tokenService(Recurring.TokenServiceEnum tokenService)
The name of the token service.- Parameters:
tokenService-- Returns:
- the current
Recurringinstance, allowing for method chaining
-
getTokenService
public Recurring.TokenServiceEnum getTokenService()
The name of the token service.- Returns:
- tokenService
-
setTokenService
public void setTokenService(Recurring.TokenServiceEnum tokenService)
The name of the token service.- Parameters:
tokenService-
-
equals
public boolean equals(Object o)
Return true if this Recurring object is equal to o.
-
fromJson
public static Recurring fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Recurring given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Recurring
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Recurring
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Recurring to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-