Skip to content

Commit

Permalink
Merge pull request #275 from richzw/master
Browse files Browse the repository at this point in the history
Feat(appstore): Add refundPreference and InvalidTransactionTypeNotSupportedError to appstore server api
  • Loading branch information
takecy committed Apr 29, 2024
2 parents 439affe + 53f2913 commit 5b45c28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions appstore/api/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,5 @@ var (
InvalidSampleContentProvidedError = newError(4000041, "Invalid request. The sample content provided field is invalid")
InvalidUserStatusError = newError(4000042, "Invalid request. The user status field is invalid")
InvalidTransactionNotConsumableError = newError(4000043, "Invalid request. The transaction id parameter must represent a consumable in-app purchase")
InvalidTransactionTypeNotSupportedError = newError(4000047, "Invalid request. The transaction id doesn't represent a supported in-app purchase type")
)
1 change: 1 addition & 0 deletions appstore/api/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ type ConsumptionRequestBody struct {
PlayTime int32 `json:"playTime"`
SampleContentProvided bool `json:"sampleContentProvided"`
UserStatus int32 `json:"userStatus"`
RefundPreference int32 `json:"refundPreference"`
}

// JWSRenewalInfoDecodedPayload https://developer.apple.com/documentation/appstoreserverapi/jwsrenewalinfodecodedpayload
Expand Down

0 comments on commit 5b45c28

Please sign in to comment.