Package com.adyen.model.checkout
Class SubscriptionDetails
- java.lang.Object
-
- com.adyen.model.checkout.SubscriptionDetails
-
public class SubscriptionDetails extends Object
SubscriptionDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionDetails.AmountRuleEnumThe limitation rule of the billing amount.static classSubscriptionDetails.BillingAttemptsRuleEnumThe rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date.static classSubscriptionDetails.FrequencyEnumThe frequency with which a shopper should be charged.
-
Constructor Summary
Constructors Constructor Description SubscriptionDetails()
-
Method Summary
-
-
-
Method Detail
-
amount
public SubscriptionDetails amount(String amount)
-
getAmount
public String getAmount()
The billing amount of the recurring transactions.- Returns:
- amount
-
setAmount
public void setAmount(String amount)
-
amountRule
public SubscriptionDetails amountRule(SubscriptionDetails.AmountRuleEnum amountRule)
-
getAmountRule
public SubscriptionDetails.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
-
setAmountRule
public void setAmountRule(SubscriptionDetails.AmountRuleEnum amountRule)
-
billingAttemptsRule
public SubscriptionDetails billingAttemptsRule(SubscriptionDetails.BillingAttemptsRuleEnum billingAttemptsRule)
-
getBillingAttemptsRule
public SubscriptionDetails.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
-
setBillingAttemptsRule
public void setBillingAttemptsRule(SubscriptionDetails.BillingAttemptsRuleEnum billingAttemptsRule)
-
billingDay
public SubscriptionDetails billingDay(String billingDay)
-
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
-
setBillingDay
public void setBillingDay(String billingDay)
-
endAt
public SubscriptionDetails endAt(String endAt)
-
getEndAt
public String getEndAt()
End date of the billing plan, in YYYY-MM-DD format.- Returns:
- endAt
-
setEndAt
public void setEndAt(String endAt)
-
frequency
public SubscriptionDetails frequency(SubscriptionDetails.FrequencyEnum frequency)
-
getFrequency
public SubscriptionDetails.FrequencyEnum getFrequency()
The frequency with which a shopper should be charged. Possible values: daily, weekly, biWeekly, monthly, quarterly, halfYearly, yearly.- Returns:
- frequency
-
setFrequency
public void setFrequency(SubscriptionDetails.FrequencyEnum frequency)
-
remarks
public SubscriptionDetails remarks(String remarks)
-
getRemarks
public String getRemarks()
The message shown by UPI to the shopper on the approval screen.- Returns:
- remarks
-
setRemarks
public void setRemarks(String remarks)
-
startAt
public SubscriptionDetails startAt(String startAt)
-
getStartAt
public String getStartAt()
Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date.- Returns:
- startAt
-
setStartAt
public void setStartAt(String startAt)
-
-