social-common / pragma.order / Orders / addOrder /
addOrder #
abstract suspend fun addOrder(skuId: String, quantity: Int, providerSource: ProviderSource, providerDetails: ProviderDetails, purchaseDateMillis: Long): Order
Stores an order in the database.
Return #
The newly added Order object
Parameters #
skuId | Unique Pragma string that identifies the item |
quantity | The number of times to fulfill this order |
providerSource | Third party specific information for how the provider identifies this item |
providerDetails | Additional third party provider details |
purchaseDateMillis | The date in milliseconds that this item was purchased |