Инструменты пользователя

Инструменты сайта


v6.buy.inapp

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
v6.buy.inapp [2022/06/09 15:11]
serg создано
v6.buy.inapp [2022/06/10 14:06] (текущий)
serg
Строка 14: Строка 14:
  BundleVer ​    ​string  BundleVer ​    ​string
  GAID          string  GAID          string
- GaidType ​     ​models.TGAIDType+ GaidType ​     ​int8
  ProductType ​  ​TProductType  ProductType ​  ​TProductType
  ProductId ​    ​string  ProductId ​    ​string
Строка 31: Строка 31:
 === Response === === Response ===
 <​code>​ <​code>​
-{  +returns ​TPurchase
-    "​Error":"",​ +
-    "​Data": ​TPurchase +
-}+
  
-//TPurchase purchase bind 
 type TPurchase struct { type TPurchase struct {
  ProductId ​       string ​                   `json:"​pid"​`  ProductId ​       string ​                   `json:"​pid"​`
  Quantity ​        ​int64 ​                    ​`json:"​q"​`  Quantity ​        ​int64 ​                    ​`json:"​q"​`
- PurchaseState ​   models.TYovoPurchaseState `json:"​ps"​` ​//-> 1 subscription valid+ PurchaseState ​   models.TYovoPurchaseState `json:"​ps"​` ​
  Acknowledged ​    ​int64 ​                    ​`json:"​a"​`  Acknowledged ​    ​int64 ​                    ​`json:"​a"​`
  OrderId ​         string ​                   `json:"​o"​`  OrderId ​         string ​                   `json:"​o"​`
Строка 46: Строка 42:
  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
Строка 59: Строка 58:
  PS_PENDING ​  ​= ​  2  PS_PENDING ​  ​= ​  2
  PS_REFUNDED ​ =   3  PS_REFUNDED ​ =   3
 +)
 +
 +type TPurchaseType enum
 +const (
 + PTTest TPurchaseType = iota
 + PTPromo
 + PTRewarded
 +)
 +
 +type TProductType enum
 +const (
 + Consumable TProductType = iota
 + Non_consumable
 + Subscription
 ) )
 </​code>​ </​code>​
Строка 64: Строка 77:
 **Data** **Data**
 <​code>​ <​code>​
-{"Error":"​some error"​}+{"E":"​some error"​}
 </​code>​ </​code>​
  
v6.buy.inapp.1654787488.txt.gz · Последние изменения: 2022/06/09 15:11 — serg