Skip to content

Commit 9c0e16f

Browse files
authored
Merge pull request #96 from jun06t/appstore-grace-period
Added grace period fields
2 parents 062102b + e895c80 commit 9c0e16f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

appstore/model.go

+9
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ type (
7676
CancellationDatePST string `json:"cancellation_date_pst,omitempty"`
7777
}
7878

79+
// The GracePeriodDate type indicates the grace period date for the subscription
80+
GracePeriodDate struct {
81+
GracePeriodDate string `json:"grace_period_expires_date,omitempty"`
82+
GracePeriodDateMS string `json:"grace_period_expires_date_ms,omitempty"`
83+
GracePeriodDatePST string `json:"grace_period_expires_date_pst,omitempty"`
84+
}
85+
7986
// The InApp type has the receipt attributes
8087
InApp struct {
8188
Quantity string `json:"quantity"`
@@ -120,6 +127,8 @@ type (
120127
SubscriptionPriceConsentStatus string `json:"price_consent_status"`
121128
ProductID string `json:"product_id"`
122129
OriginalTransactionID string `json:"original_transaction_id"`
130+
131+
GracePeriodDate
123132
}
124133

125134
// The IAPResponse type has the response properties

0 commit comments

Comments
 (0)