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

fix: Update product structs. #120

Merged
merged 1 commit into from
Dec 6, 2023
Merged
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
6 changes: 3 additions & 3 deletions product.go
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,8 @@ type UpdateProductStockReturn struct {

// UpdateProductPriceBody is to structure the body data
type UpdateProductPriceBody struct {
Price []UpdateProductPriceBodyPrice `json:"price"`
PurchasePrices []UpdateProductPriceBodyPrices `json:"purchasePrices"`
Price []*UpdateProductPriceBodyPrice `json:"price"`
PurchasePrices []*UpdateProductPriceBodyPurchasePrices `json:"purchasePrices"`
}

type UpdateProductPriceBodyPrice struct {
Expand All @@ -818,7 +818,7 @@ type UpdateProductPriceBodyRegulationPrice struct {
Linked bool `json:"linked"`
}

type UpdateProductPriceBodyPrices struct {
type UpdateProductPriceBodyPurchasePrices struct {
CurrencyId string `json:"currencyId"`
Net float64 `json:"net"`
Gross float64 `json:"gross"`
Expand Down
Loading