Package com.adyen.model.checkout
Class PixRecurring
- java.lang.Object
-
- com.adyen.model.checkout.PixRecurring
-
public class PixRecurring extends Object
PixRecurring
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPixRecurring.FrequencyEnumThe frequency at which the shopper will be charged.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BILLING_DATEstatic StringJSON_PROPERTY_ENDS_ATstatic StringJSON_PROPERTY_FREQUENCYstatic StringJSON_PROPERTY_MIN_AMOUNTstatic StringJSON_PROPERTY_ORIGINAL_PSP_REFERENCEstatic StringJSON_PROPERTY_RECURRING_AMOUNTstatic StringJSON_PROPERTY_RECURRING_STATEMENTstatic StringJSON_PROPERTY_RETRY_POLICYstatic StringJSON_PROPERTY_STARTS_AT
-
Constructor Summary
Constructors Constructor Description PixRecurring()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PixRecurringbillingDate(String billingDate)The date on which the shopper's payment method will be charged, in YYYY-MM-DD format.PixRecurringendsAt(String endsAt)End date of the billing plan, in YYYY-MM-DD format.booleanequals(Object o)Return true if this PixRecurring object is equal to o.PixRecurringfrequency(PixRecurring.FrequencyEnum frequency)The frequency at which the shopper will be charged.static PixRecurringfromJson(String jsonString)Create an instance of PixRecurring given an JSON stringStringgetBillingDate()The date on which the shopper's payment method will be charged, in YYYY-MM-DD format.StringgetEndsAt()End date of the billing plan, in YYYY-MM-DD format.PixRecurring.FrequencyEnumgetFrequency()The frequency at which the shopper will be charged.AmountgetMinAmount()Get minAmountStringgetOriginalPspReference()The pspReference for the failed recurring payment.AmountgetRecurringAmount()Get recurringAmountStringgetRecurringStatement()The text that that will be shown on the shopper's bank statement for the recurring payments.BooleangetRetryPolicy()When set to true, you can retry for failed recurring payments.StringgetStartsAt()Start date of the billing plan, in YYYY-MM-DD format.inthashCode()PixRecurringminAmount(Amount minAmount)minAmountPixRecurringoriginalPspReference(String originalPspReference)The pspReference for the failed recurring payment.PixRecurringrecurringAmount(Amount recurringAmount)recurringAmountPixRecurringrecurringStatement(String recurringStatement)The text that that will be shown on the shopper's bank statement for the recurring payments.PixRecurringretryPolicy(Boolean retryPolicy)When set to true, you can retry for failed recurring payments.voidsetBillingDate(String billingDate)The date on which the shopper's payment method will be charged, in YYYY-MM-DD format.voidsetEndsAt(String endsAt)End date of the billing plan, in YYYY-MM-DD format.voidsetFrequency(PixRecurring.FrequencyEnum frequency)The frequency at which the shopper will be charged.voidsetMinAmount(Amount minAmount)minAmountvoidsetOriginalPspReference(String originalPspReference)The pspReference for the failed recurring payment.voidsetRecurringAmount(Amount recurringAmount)recurringAmountvoidsetRecurringStatement(String recurringStatement)The text that that will be shown on the shopper's bank statement for the recurring payments.voidsetRetryPolicy(Boolean retryPolicy)When set to true, you can retry for failed recurring payments.voidsetStartsAt(String startsAt)Start date of the billing plan, in YYYY-MM-DD format.PixRecurringstartsAt(String startsAt)Start date of the billing plan, in YYYY-MM-DD format.StringtoJson()Convert an instance of PixRecurring to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BILLING_DATE
public static final String JSON_PROPERTY_BILLING_DATE
- 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_MIN_AMOUNT
public static final String JSON_PROPERTY_MIN_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORIGINAL_PSP_REFERENCE
public static final String JSON_PROPERTY_ORIGINAL_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING_AMOUNT
public static final String JSON_PROPERTY_RECURRING_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING_STATEMENT
public static final String JSON_PROPERTY_RECURRING_STATEMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RETRY_POLICY
public static final String JSON_PROPERTY_RETRY_POLICY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STARTS_AT
public static final String JSON_PROPERTY_STARTS_AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
billingDate
public PixRecurring billingDate(String billingDate)
The date on which the shopper's payment method will be charged, in YYYY-MM-DD format.- Parameters:
billingDate-- Returns:
- the current
PixRecurringinstance, allowing for method chaining
-
getBillingDate
public String getBillingDate()
The date on which the shopper's payment method will be charged, in YYYY-MM-DD format.- Returns:
- billingDate
-
setBillingDate
public void setBillingDate(String billingDate)
The date on which the shopper's payment method will be charged, in YYYY-MM-DD format.- Parameters:
billingDate-
-
endsAt
public PixRecurring endsAt(String endsAt)
End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper.- Parameters:
endsAt-- Returns:
- the current
PixRecurringinstance, allowing for method chaining
-
getEndsAt
public String getEndsAt()
End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper.- Returns:
- endsAt
-
setEndsAt
public void setEndsAt(String endsAt)
End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper.- Parameters:
endsAt-
-
frequency
public PixRecurring frequency(PixRecurring.FrequencyEnum frequency)
The frequency at which the shopper will be charged.- Parameters:
frequency-- Returns:
- the current
PixRecurringinstance, allowing for method chaining
-
getFrequency
public PixRecurring.FrequencyEnum getFrequency()
The frequency at which the shopper will be charged.- Returns:
- frequency
-
setFrequency
public void setFrequency(PixRecurring.FrequencyEnum frequency)
The frequency at which the shopper will be charged.- Parameters:
frequency-
-
minAmount
public PixRecurring minAmount(Amount minAmount)
minAmount- Parameters:
minAmount-- Returns:
- the current
PixRecurringinstance, allowing for method chaining
-
getMinAmount
public Amount getMinAmount()
Get minAmount- Returns:
- minAmount
-
setMinAmount
public void setMinAmount(Amount minAmount)
minAmount- Parameters:
minAmount-
-
originalPspReference
public PixRecurring originalPspReference(String originalPspReference)
The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date.- Parameters:
originalPspReference-- Returns:
- the current
PixRecurringinstance, allowing for method chaining
-
getOriginalPspReference
public String getOriginalPspReference()
The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date.- Returns:
- originalPspReference
-
setOriginalPspReference
public void setOriginalPspReference(String originalPspReference)
The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date.- Parameters:
originalPspReference-
-
recurringAmount
public PixRecurring recurringAmount(Amount recurringAmount)
recurringAmount- Parameters:
recurringAmount-- Returns:
- the current
PixRecurringinstance, allowing for method chaining
-
getRecurringAmount
public Amount getRecurringAmount()
Get recurringAmount- Returns:
- recurringAmount
-
setRecurringAmount
public void setRecurringAmount(Amount recurringAmount)
recurringAmount- Parameters:
recurringAmount-
-
recurringStatement
public PixRecurring recurringStatement(String recurringStatement)
The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters.- Parameters:
recurringStatement-- Returns:
- the current
PixRecurringinstance, allowing for method chaining
-
getRecurringStatement
public String getRecurringStatement()
The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters.- Returns:
- recurringStatement
-
setRecurringStatement
public void setRecurringStatement(String recurringStatement)
The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters.- Parameters:
recurringStatement-
-
retryPolicy
public PixRecurring retryPolicy(Boolean retryPolicy)
When set to true, you can retry for failed recurring payments. The default value is true.- Parameters:
retryPolicy-- Returns:
- the current
PixRecurringinstance, allowing for method chaining
-
getRetryPolicy
public Boolean getRetryPolicy()
When set to true, you can retry for failed recurring payments. The default value is true.- Returns:
- retryPolicy
-
setRetryPolicy
public void setRetryPolicy(Boolean retryPolicy)
When set to true, you can retry for failed recurring payments. The default value is true.- Parameters:
retryPolicy-
-
startsAt
public PixRecurring startsAt(String startsAt)
Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date.- Parameters:
startsAt-- Returns:
- the current
PixRecurringinstance, allowing for method chaining
-
getStartsAt
public String getStartsAt()
Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date.- Returns:
- startsAt
-
setStartsAt
public void setStartsAt(String startsAt)
Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date.- Parameters:
startsAt-
-
equals
public boolean equals(Object o)
Return true if this PixRecurring object is equal to o.
-
fromJson
public static PixRecurring fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PixRecurring given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PixRecurring
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PixRecurring
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PixRecurring to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-