Promotion

data class Promotion(    val name: String,     val dateStart: String? = null,     val dateEnd: String? = null,     val discount: Promotion.Discount,     val bonus: List<Promotion.Bonus> = emptyList(),     val limits: Promotion.Limits) : Parcelable

Constructors

Link copied to clipboard
fun Promotion(    name: String,     dateStart: String? = null,     dateEnd: String? = null,     discount: Promotion.Discount,     bonus: List<Promotion.Bonus> = emptyList(),     limits: Promotion.Limits)

Types

Link copied to clipboard
data class Bonus(val sku: String, val quantity: Int) : Parcelable
Link copied to clipboard
data class Discount(val percent: String? = null, val value: String? = null) : Parcelable
Link copied to clipboard
data class Limits(val perUser: Promotion.PerUser) : Parcelable
Link copied to clipboard
data class PerUser(val available: Int, val total: Int) : Parcelable

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 bonus: List<Promotion.Bonus>
Link copied to clipboard
@SerializedName(value = "date_end")
val dateEnd: String? = null
Link copied to clipboard
@SerializedName(value = "date_start")
val dateStart: String? = null
Link copied to clipboard
val discount: Promotion.Discount
Link copied to clipboard
val limits: Promotion.Limits
Link copied to clipboard
val name: String

Sources

Link copied to clipboard