Duration
A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Models.Shared.
A length of time as a count and a unit (day, month or year), used for subscription trial and charge periods.
- Listed in Alta.Api.DataTransferModels
Constructors
| Member | What it is |
|---|---|
Duration() | Creates a Duration with default values. |
Properties
| Member | What it is |
|---|---|
int Months { get; } | The duration in whole months. Day durations give 0 and years count as 12 months. |
int Period { get; set; } | How many units (value in JSON). |
DurationType Type { get; set; } | The unit. |
Used in
Members of other types that take, return or hold a Duration: