Skip to content

Commit

Permalink
Update December 24, 2024 (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
diPhantxm authored Jan 22, 2025
1 parent c38e9f1 commit 804a4f3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
10 changes: 10 additions & 0 deletions ozon/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -923,3 +923,13 @@ const (
// awaiting shipping
VisualStatusWaitingShipment VisualStatus = "WaitingShipment"
)

type VAT string

const (
VAT0 VAT = "0"
VAT005 VAT = "0.05"
VAT007 VAT = "0.07"
VAT01 VAT = "0.1"
VAT02 VAT = "0.2"
)
17 changes: 7 additions & 10 deletions ozon/products.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,9 @@ type UpdatePricesPrice struct {
//
// If the regular and economy products have different article codes, don't specify the parameter.
QuantSize int64 `json:"quant_size"`

// VAT rate for the product
VAT VAT `json:"vat"`
}

type UpdatePricesResponse struct {
Expand Down Expand Up @@ -937,11 +940,8 @@ type CreateOrUpdateProductItem struct {
// you can leave out the attributes attribute if it has the `id:8229` parameter
TypeId int64 `json:"type_id"`

// VAT rate for the product:
// - 0 — not subject to VAT,
// - 0.1 — 10%,
// - 0.2 — 20%
VAT string `json:"vat"`
// VAT rate for the product
VAT VAT `json:"vat"`

// Product weight with the package. The limit value is 1000 kilograms or a corresponding converted value in other measurement units
Weight int32 `json:"weight"`
Expand Down Expand Up @@ -1266,11 +1266,8 @@ type CreateProductsByOzonIDItem struct {
// Product identifier in the Ozon system, SKU
SKU int64 `json:"sku"`

// VAT rate for the product:
// - 0 — not subject to VAT,
// - 0.1 — 10%,
// - 0.2 — 20%
VAT string `json:"vat"`
// VAT rate for the product
VAT VAT `json:"vat"`
}

type CreateProductByOzonIDResponse struct {
Expand Down

0 comments on commit 804a4f3

Please sign in to comment.