Skip to content

Commit 439affe

Browse files
authored
Merge pull request #274 from a3d21/master
fix VND price int32 overflow
2 parents f9960d4 + 50fbd5e commit 439affe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

appstore/api/model.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ type JWSTransaction struct {
163163
StorefrontId string `json:"storefrontId,omitempty"`
164164
TransactionReason TransactionReason `json:"transactionReason,omitempty"`
165165
Environment Environment `json:"environment,omitempty"`
166-
Price int32 `json:"price,omitempty"`
166+
Price int64 `json:"price,omitempty"`
167167
Currency string `json:"currency,omitempty"`
168168
OfferDiscountType OfferDiscountType `json:"offerDiscountType,omitempty"`
169169
}

appstore/notification_v2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ type (
231231
OfferType OfferType `json:"offerType"`
232232
OriginalPurchaseDate int64 `json:"originalPurchaseDate"`
233233
OriginalTransactionId string `json:"originalTransactionId"`
234-
Price int32 `json:"price,omitempty"`
234+
Price int64 `json:"price,omitempty"`
235235
ProductId string `json:"productId"`
236236
PurchaseDate int64 `json:"purchaseDate"`
237237
Quantity int64 `json:"quantity"`

0 commit comments

Comments
 (0)