Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(appstore): Add refundPreference and InvalidTransactionTypeNotSupportedError to appstore server api #275

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading