Skip to content

Commit 8605d1c

Browse files
committed
fix(api): correct the field type of JWSRenewalInfoDecodedPayload, JWSTransactio
1 parent 45bd635 commit 8605d1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

model.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ type JWSRenewalInfoDecodedPayload struct {
9191
Environment Environment `json:"environment"`
9292
ExpirationIntent int32 `json:"expirationIntent"`
9393
GracePeriodExpiresDate int64 `json:"gracePeriodExpiresDate"`
94-
IsInBillingRetryPeriod bool `json:"isInBillingRetryPeriod"`
94+
IsInBillingRetryPeriod *bool `json:"isInBillingRetryPeriod"`
9595
OfferIdentifier string `json:"offerIdentifier"`
9696
OfferType string `json:"offerType"`
9797
OriginalTransactionId string `json:"originalTransactionId"`
98-
PriceIncreaseStatus int32 `json:"priceIncreaseStatus"`
98+
PriceIncreaseStatus *int32 `json:"priceIncreaseStatus"`
9999
ProductId string `json:"productId"`
100100
RecentSubscriptionStartDate int64 `json:"recentSubscriptionStartDate"`
101101
RenewalDate int64 `json:"renewalDate"`
@@ -151,7 +151,7 @@ type JWSTransaction struct {
151151
OfferType int32 `json:"offerType,omitempty"`
152152
OfferIdentifier string `json:"offerIdentifier,omitempty"`
153153
RevocationDate int64 `json:"revocationDate,omitempty"`
154-
RevocationReason int32 `json:"revocationReason,omitempty"`
154+
RevocationReason *int32 `json:"revocationReason,omitempty"`
155155
IsUpgraded bool `json:"isUpgraded,omitempty"`
156156
Storefront string `json:"storefront,omitempty"`
157157
StorefrontId string `json:"storefrontId,omitempty"`
@@ -330,7 +330,7 @@ type RenewalInfo struct {
330330
AutoRenewProductId string `json:"autoRenewProductId"`
331331
ProductID string `json:"productId"`
332332
AutoRenewStatus int `json:"autoRenewStatus"`
333-
IsInBillingRetryPeriod bool `json:"isInBillingRetryPeriod"`
333+
IsInBillingRetryPeriod *bool `json:"isInBillingRetryPeriod"`
334334
SignedDate int `json:"signedDate"`
335335
Environment string `json:"environment"`
336336
}

0 commit comments

Comments
 (0)