@@ -47,23 +47,26 @@ type Promotion struct {
47
47
48
48
// The IAPResponse type has the response properties
49
49
type IAPResponse struct {
50
- ReceiptID string `json:"receiptId"`
51
- ProductType string `json:"productType"`
52
- ProductID string `json:"productId"`
53
- PurchaseDate int64 `json:"purchaseDate"`
54
- RenewalDate int64 `json:"renewalDate"`
55
- CancelDate int64 `json:"cancelDate"`
56
- TestTransaction bool `json:"testTransaction"`
57
- BetaProduct bool `json:"betaProduct"`
58
- ParentProductID string `json:"parentProductId"`
59
- Quantity int64 `json:"quantity"`
60
- Term string `json:"term"`
61
- TermSku string `json:"termSku"`
62
- FreeTrialEndDate int64 `json:"freeTrialEndDate"`
63
- AutoRenewing bool `json:"autoRenewing"`
64
- CancelReason * int8 `json:"cancelReason"`
65
- GracePeriodEndDate int64 `json:"gracePeriodEndDate"`
66
- Promotions []Promotion `json:"promotions"`
50
+ ReceiptID string `json:"receiptId"`
51
+ ProductType string `json:"productType"`
52
+ ProductID string `json:"productId"`
53
+ PurchaseDate int64 `json:"purchaseDate"`
54
+ RenewalDate int64 `json:"renewalDate"`
55
+ CancelDate int64 `json:"cancelDate"`
56
+ TestTransaction bool `json:"testTransaction"`
57
+ BetaProduct bool `json:"betaProduct"`
58
+ ParentProductID string `json:"parentProductId"`
59
+ Quantity int64 `json:"quantity"`
60
+ Term string `json:"term"`
61
+ TermSku string `json:"termSku"`
62
+ FreeTrialEndDate * int64 `json:"freeTrialEndDate"`
63
+ AutoRenewing bool `json:"autoRenewing"`
64
+ CancelReason * int8 `json:"cancelReason"`
65
+ GracePeriodEndDate * int64 `json:"gracePeriodEndDate"`
66
+ Promotions []Promotion `json:"promotions"`
67
+ FulfillmentDate * int64 `json:"fulfillmentDate"`
68
+ FulfillmentResult string `json:"fulfillmentResult"`
69
+ PurchaseMetadataMap map [string ]string `json:"purchaseMetadataMap"`
67
70
}
68
71
69
72
// The IAPResponseError typs has error message and status.
0 commit comments