Skip to content

Commit 1407b78

Browse files
committed
feat: support 1.15
1 parent f0fa0c2 commit 1407b78

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

error.go

+1
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,5 @@ var (
138138
InvalidUserStatusError = newError(4000042, "Invalid request. The user status field is invalid")
139139
InvalidTransactionNotConsumableError = newError(4000043, "Invalid request. The transaction id parameter must represent a consumable in-app purchase")
140140
InvalidTransactionTypeNotSupportedError = newError(4000047, "Invalid request. The transaction id doesn't represent a supported in-app purchase type")
141+
AppTransactionIdNotSupportedError = newError(4000048, "Invalid request. Invalid request. App transactions aren't supported by this endpoint")
141142
)

model.go

+5
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ type ConsumptionRequestBody struct {
8787

8888
// JWSRenewalInfoDecodedPayload https://developer.apple.com/documentation/appstoreserverapi/jwsrenewalinfodecodedpayload
8989
type JWSRenewalInfoDecodedPayload struct {
90+
AppAccountToken string `json:"appAccountToken,omitempty"`
91+
AppTransactionId string `json:"appTransactionId,omitempty"`
9092
AutoRenewProductId string `json:"autoRenewProductId"`
9193
AutoRenewStatus int32 `json:"autoRenewStatus"`
9294
Environment Environment `json:"environment"`
@@ -95,6 +97,7 @@ type JWSRenewalInfoDecodedPayload struct {
9597
IsInBillingRetryPeriod *bool `json:"isInBillingRetryPeriod"`
9698
OfferIdentifier string `json:"offerIdentifier"`
9799
OfferType int32 `json:"offerType"`
100+
OfferPeriod string `json:"offerPeriod"`
98101
OriginalTransactionId string `json:"originalTransactionId"`
99102
PriceIncreaseStatus *int32 `json:"priceIncreaseStatus"`
100103
ProductId string `json:"productId"`
@@ -171,6 +174,7 @@ const (
171174

172175
// JWSTransaction https://developer.apple.com/documentation/appstoreserverapi/jwstransaction
173176
type JWSTransaction struct {
177+
AppTransactionId string `json:"appTransactionId,omitempty"`
174178
TransactionID string `json:"transactionId,omitempty"`
175179
OriginalTransactionId string `json:"originalTransactionId,omitempty"`
176180
WebOrderLineItemId string `json:"webOrderLineItemId,omitempty"`
@@ -186,6 +190,7 @@ type JWSTransaction struct {
186190
InAppOwnershipType string `json:"inAppOwnershipType,omitempty"`
187191
SignedDate int64 `json:"signedDate,omitempty"`
188192
OfferType int32 `json:"offerType,omitempty"`
193+
OfferPeriod string `json:"offerPeriod,omitempty"`
189194
OfferIdentifier string `json:"offerIdentifier,omitempty"`
190195
RevocationDate int64 `json:"revocationDate,omitempty"`
191196
RevocationReason *int32 `json:"revocationReason,omitempty"`

0 commit comments

Comments
 (0)