Skip to content

Commit

Permalink
Merge pull request #120 from jjideenschmiede/development
Browse files Browse the repository at this point in the history
fix: Update product structs.
  • Loading branch information
gowizzard authored Dec 6, 2023
2 parents 801512a + f2b4ea6 commit ca84782
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit ca84782

Please sign in to comment.