Update December 24, 2024 (#131)

This commit is contained in:
Kirill
2025-01-23 01:07:04 +03:00
committed by GitHub
parent c38e9f19a9
commit 804a4f3c2b
2 changed files with 17 additions and 10 deletions

View File

@@ -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"
)

View File

@@ -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 {
@@ -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"`
@@ -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 {