public class InstallmentData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InstallmentData.PeriodEnum
Initial period of recurring, can be `day`, `week`, `month`, `year`
|
| Constructor and Description |
|---|
InstallmentData() |
public void setAmount(BigDecimal amount)
public InstallmentData amount(BigDecimal amount)
amount - The total transaction amount in selected currency with dot as a decimal separator, must be less than 100 millionspublic void setCurrency(String currency)
public InstallmentData currency(String currency)
currency - [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency codepublic void setDynamicDescriptor(String dynamicDescriptor)
public InstallmentData dynamicDescriptor(String dynamicDescriptor)
dynamicDescriptor - dynamicDescriptorpublic void setGenerateToken(Boolean generateToken)
public InstallmentData generateToken(Boolean generateToken)
generateToken - generateTokenpublic void setInitiator(String initiator)
public InstallmentData initiator(String initiator)
initiator - initiatorpublic void setInterval(Integer interval)
public InstallmentData interval(Integer interval)
interval - Frequency interval of period, can be 1-365 depending on selected period value. Minimum value of period + interval can be 7 days / 1 week. Maximum value of period + interval plan can be 365 days / 52 weeks / 12 months / 1 year. 1-60 minutes - for **sandbox environment** and testing purpose only.public void setNote(String note)
public InstallmentData note(String note)
note - notepublic void setPayments(Integer payments)
public InstallmentData payments(Integer payments)
payments - Number of total payments to be charged per defined interval, can be 2-200.public void setPeriod(InstallmentData.PeriodEnum period)
public InstallmentData period(InstallmentData.PeriodEnum period)
period - Initial period of recurring, can be `day`, `week`, `month`, `year`public void setRetries(Integer retries)
public InstallmentData retries(Integer retries)
retries - Number of daily basis retry attempts in case of payment has not been captured successfully, from 1 to 15 attempts can be specified.public void setSubscriptionStart(OffsetDateTime subscriptionStart)
public InstallmentData subscriptionStart(OffsetDateTime subscriptionStart)
subscriptionStart - The date in yyyy-MM-dd format when subscription will actually become activated (grace period). Auth request will be created but Customer will be charged only when subscription start date comes. Leave it empty or specify the current date to activate subscription at once without any grace period applied.Copyright © 2019. All rights reserved.