core / pragma.order / Order /

Order #

data class Order(val orderId: UUID, val pragmaSocialId: SocialId, val skuId: String, val quantity: Int, val providerId: OrderProviderType, val providerSource: ProviderSource, val orderStatus: OrderRpc.OrderStatus, val purchaseDateMillis: Long, val providerRevokedDateMillis: Long = 0, val createdTimestampMillis: Long, val lastUpdatedTimestampMillis: Long, val contentVersion: Long)

Represents a Pragma Order. Is created from a database record by pragma.order.OrderDaoNodeService.

Constructors #

Order

fun Order(proto: OrderRpc.Order)

Order

fun Order(orderId: UUID, pragmaSocialId: SocialId, skuId: String, quantity: Int, providerId: OrderProviderType, providerSource: ProviderSource, orderStatus: OrderRpc.OrderStatus, purchaseDateMillis: Long, providerRevokedDateMillis: Long = 0, createdTimestampMillis: Long, lastUpdatedTimestampMillis: Long, contentVersion: Long)

Properties #

NameSummary

contentVersion

val contentVersion: Long

The version of the content json file at the time that the Order was created.

createdTimestampMillis

val createdTimestampMillis: Long

The date in milliseconds that Pragma created this Order record.

lastUpdatedTimestampMillis

val lastUpdatedTimestampMillis: Long

The date in milliseconds that this Order was last altered.

orderId

val orderId: UUID

Unique ID for this Order.

orderStatus

val orderStatus: OrderRpc.OrderStatus

The current status of the order. See OrderRpc.OrderStatus.

pragmaSocialId

val pragmaSocialId: SocialId

providerId

val providerId: OrderProviderType

The third party provider type e.g. AccountRpc.IdProvider.STEAM_VALUE.

providerRevokedDateMillis

val providerRevokedDateMillis: Long = 0

The date in milliseconds that the third party provider issued this revocation.

providerSource

val providerSource: ProviderSource

Third party specific information for how the provider identifies this item.

purchaseDateMillis

val purchaseDateMillis: Long

The date in milliseconds that this item was purchased according to the third party provider.

quantity

val quantity: Int

The number of times to fulfill this order.

skuId

val skuId: String

Unique Pragma string that represents this item.