Period

data class Period(    val value: Int,     val unit: Period.Unit,     val iso8601: String) : Parcelable

Represents subscription or PricingPhase billing period

Constructors

Link copied to clipboard
fun Period(    value: Int,     unit: Period.Unit,     iso8601: String)

Types

Link copied to clipboard
object Factory
Link copied to clipboard
enum Unit : Enum<Period.Unit>

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val iso8601: String

Specified in ISO 8601 format. For example, P1W equates to one week, P1M equates to one month, P3M equates to three months, P6M equates to six months, and P1Y equates to one year

Link copied to clipboard
val unit: Period.Unit

The increment of time that a subscription period is specified in.

Link copied to clipboard
val value: Int

The number of period units.

Sources

Link copied to clipboard