Здесь показаны различия между двумя версиями данной страницы.
| Следующая версия | Предыдущая версия | ||
|
v6.restore.inapp [2022/06/09 15:13] serg создано |
v6.restore.inapp [2022/06/10 14:07] (текущий) serg |
||
|---|---|---|---|
| Строка 36: | Строка 36: | ||
| === Response === | === Response === | ||
| <code> | <code> | ||
| - | { | + | type TRestoryOutput struct { |
| - | "Error":"", | + | Data []TPurchase `json:"Data"` |
| - | "Data": []TPurchase | + | Err string `json:"E"` |
| + | ProductType TProductType `json:"prt"` | ||
| } | } | ||
| - | //TPurchase purchase bind | ||
| type TPurchase struct { | type TPurchase struct { | ||
| ProductId string `json:"pid"` | ProductId string `json:"pid"` | ||
| Строка 51: | Строка 51: | ||
| PurchaseTime string `json:"t"` | PurchaseTime string `json:"t"` | ||
| ConsumptionState int64 `json:"cs"` | ConsumptionState int64 `json:"cs"` | ||
| - | PurchaseType int64 `json:"pty"` | + | PurchaseType TPurchaseType `json:"pty"` |
| DeveloperPayload string `json:"dp"` | DeveloperPayload string `json:"dp"` | ||
| ProductType TProductType `json:"prt"` | ProductType TProductType `json:"prt"` | ||
| ExpiryTimeMillis int64 `json:"et"` | ExpiryTimeMillis int64 `json:"et"` | ||
| + | Err string `json:"E"` | ||
| + | kind string | ||
| } | } | ||
| + | |||
| TYovoPurchaseState enum | TYovoPurchaseState enum | ||
| Строка 64: | Строка 67: | ||
| PS_PENDING = 2 | PS_PENDING = 2 | ||
| PS_REFUNDED = 3 | PS_REFUNDED = 3 | ||
| + | ) | ||
| + | |||
| + | TPurchaseType enum | ||
| + | const ( | ||
| + | PTTest TPurchaseType = iota | ||
| + | PTPromo | ||
| + | PTRewarded | ||
| ) | ) | ||
| </code> | </code> | ||