Merge branch 'master' of github.com:awa/go-iap

This commit is contained in:
Minhaz Syrus
2019-02-02 12:17:08 +06:00
5 changed files with 77 additions and 46 deletions

View File

@@ -119,6 +119,7 @@ type (
SubscriptionAutoRenewStatus string `json:"auto_renew_status"`
SubscriptionPriceConsentStatus string `json:"price_consent_status"`
ProductID string `json:"product_id"`
OriginalTransactionID string `json:"original_transaction_id"`
}
// The IAPResponse type has the response properties

View File

@@ -33,7 +33,7 @@ func TestNumericString_UnmarshalJSON(t *testing.T) {
{
name: "object case",
in: []byte("{\"ID\":{\"Num\": 8080}}"),
err: errors.New("json: cannot unmarshal object into Go struct field foo.ID of type json.Number"),
err: errors.New("json: cannot unmarshal object into Go value of type json.Number"),
out: foo{},
},
}