File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,14 @@ const (
132
132
NonRenewable IAPType = "Non-Renewing Subscription"
133
133
)
134
134
135
+ type OfferDiscountType string
136
+
137
+ const (
138
+ OfferDiscountTypeFreeTrial OfferDiscountType = "FREE_TRIAL"
139
+ OfferDiscountTypePayAsYouGo OfferDiscountType = "PAY_AS_YOU_GO"
140
+ OfferDiscountTypePayUpFront OfferDiscountType = "PAY_UP_FRONT"
141
+ )
142
+
135
143
// JWSTransaction https://developer.apple.com/documentation/appstoreserverapi/jwstransaction
136
144
type JWSTransaction struct {
137
145
TransactionID string `json:"transactionId,omitempty"`
@@ -157,6 +165,9 @@ type JWSTransaction struct {
157
165
StorefrontId string `json:"storefrontId,omitempty"`
158
166
TransactionReason TransactionReason `json:"transactionReason,omitempty"`
159
167
Environment Environment `json:"environment,omitempty"`
168
+ Price int32 `json:"price,omitempty"`
169
+ Currency string `json:"currency,omitempty"`
170
+ OfferDiscountType OfferDiscountType `json:"offerDiscountType,omitempty"`
160
171
}
161
172
162
173
func (J JWSTransaction ) Valid () error {
You can’t perform that action at this time.
0 commit comments