Purchase

Summary

This model represents a purchase made on plug’s store.

Note

While the Purchase model has members for cash and plug points, it’ll usually only be one of the two that will have a valid number given. The two members just exist for consistency reasons and because items can cost either Plug Points or real cash.

Model

{
   "count": -1,
   "cash": -1,
   "name": "",
   "pp": -1
}

Detail

count

Amount of the item you bought.

Type: Number
Default Value: -1

cash

The amount of real money it did cost.

Type: Number
Default Value: -1

name

Key value used as an identifier for the item.

Type: String
Default Value: ""

pp

Plug points after purchase.

Type: Number
Default Value: -1