From 752442621d05ceebcada2eda6bdf6345f033f01f Mon Sep 17 00:00:00 2001 From: IceCreamHacker <18309699+elegantm@users.noreply.github.com> Date: Tue, 30 Jan 2024 17:12:32 +0800 Subject: [PATCH] Update transaction_model.go (#383) fix bug: apple refunded transaction revocationReason type should be int32 https://developer.apple.com/documentation/appstoreserverapi/revocationreason --- apple/transaction_model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apple/transaction_model.go b/apple/transaction_model.go index a46bc3aa..2550340f 100644 --- a/apple/transaction_model.go +++ b/apple/transaction_model.go @@ -40,7 +40,7 @@ type TransactionsItem struct { PurchaseDate int64 `json:"purchaseDate"` Quantity int `json:"quantity"` RevocationDate int64 `json:"revocationDate"` - RevocationReason string `json:"revocationReason"` + RevocationReason int `json:"revocationReason"` SignedDate int64 `json:"signedDate"` Storefront string `json:"storefront"` StorefrontId string `json:"storefrontId"`