From f2b4ea6215326f1db02ffc776204081ad075a155 Mon Sep 17 00:00:00 2001 From: Jonas Kwiedor Date: Wed, 6 Dec 2023 08:50:45 +0100 Subject: [PATCH] fix: Update product structs. --- product.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/product.go b/product.go index 5420407..d804347 100644 --- a/product.go +++ b/product.go @@ -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 { @@ -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"`