public class ResponsePlanData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResponsePlanData.PeriodEnum
Period of created plan
|
static class |
ResponsePlanData.StatusEnum
Status of created plan: 'ACTIVE' or 'INACTIVE'
|
| Constructor and Description |
|---|
ResponsePlanData() |
public void setId(String id)
public ResponsePlanData id(String id)
id - ID of created planpublic void setName(String name)
public ResponsePlanData name(String name)
name - Name of created planpublic void setCreated(OffsetDateTime created)
public ResponsePlanData created(OffsetDateTime created)
created - Creation time, [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) formatpublic void setStatus(ResponsePlanData.StatusEnum status)
public ResponsePlanData status(ResponsePlanData.StatusEnum status)
status - Status of created plan: 'ACTIVE' or 'INACTIVE'public void setPeriod(ResponsePlanData.PeriodEnum period)
public ResponsePlanData period(ResponsePlanData.PeriodEnum period)
period - Period of created planpublic void setInterval(Integer interval)
public ResponsePlanData interval(Integer interval)
interval - Interval of planpublic void setCurrency(String currency)
public ResponsePlanData currency(String currency)
currency - [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of created planpublic void setAmount(BigDecimal amount)
public ResponsePlanData amount(BigDecimal amount)
amount - The total amount of created planpublic void setRetries(Integer retries)
public ResponsePlanData retries(Integer retries)
retries - Number of daily basis retry attempts in case of payment has not been captured successfully, from 1 to 15 attemptspublic void setPricingModel(String pricingModel)
public ResponsePlanData pricingModel(String pricingModel)
pricingModel - Parameter regulates the price calculation pricing_model depending on the number of units. Possible values: `FIXED` `TIERED` `VOLUME`public void setQuantity(List<PlanQuantity> quantity)
public ResponsePlanData quantity(List<PlanQuantity> quantity)
quantity - Array with units paramspublic ResponsePlanData addQuantityItem(PlanQuantity quantityItem)
Copyright © 2024. All rights reserved.