Skip to content

Commit

Permalink
fix VND price int32 overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
a3d21 committed Apr 26, 2024
1 parent f9960d4 commit 50fbd5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appstore/api/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ type JWSTransaction struct {
StorefrontId string `json:"storefrontId,omitempty"`
TransactionReason TransactionReason `json:"transactionReason,omitempty"`
Environment Environment `json:"environment,omitempty"`
Price int32 `json:"price,omitempty"`
Price int64 `json:"price,omitempty"`
Currency string `json:"currency,omitempty"`
OfferDiscountType OfferDiscountType `json:"offerDiscountType,omitempty"`
}
Expand Down
2 changes: 1 addition & 1 deletion appstore/notification_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ type (
OfferType OfferType `json:"offerType"`
OriginalPurchaseDate int64 `json:"originalPurchaseDate"`
OriginalTransactionId string `json:"originalTransactionId"`
Price int32 `json:"price,omitempty"`
Price int64 `json:"price,omitempty"`
ProductId string `json:"productId"`
PurchaseDate int64 `json:"purchaseDate"`
Quantity int64 `json:"quantity"`
Expand Down

0 comments on commit 50fbd5e

Please sign in to comment.