Update 16, 2024 (#90)

This commit is contained in:
Kirill
2024-05-18 12:07:52 +03:00
committed by GitHub
parent ad2eb19325
commit 7ffcf3f235
5 changed files with 7 additions and 20 deletions

View File

@@ -463,11 +463,14 @@ const (
type GetFBSReturnsFilterStatus string
const (
Moving GetFBSReturnsFilterStatus = "moving"
ReturnedToSeller GetFBSReturnsFilterStatus = "returned_to_seller"
WaitingForSeller GetFBSReturnsFilterStatus = "waiting_for_seller"
AcceptedFromCustomer GetFBSReturnsFilterStatus = "accepted_from_customer"
CancelledWithCompensation GetFBSReturnsFilterStatus = "cancelled_with_compensation"
ReadyForShipment GetFBSReturnsFilterStatus = "ready_for_shipment"
Disposing GetFBSReturnsFilterStatus = "disposing"
Disposed GetFBSReturnsFilterStatus = "disposed"
)
type GetFBOReturnsFilterStatus string

View File

@@ -2100,7 +2100,8 @@ type PartialPackOrderAdditionalData struct {
// The primary unassembled shipment will contain some of the products
// that weren't passed to the request.
//
// Default status of created shipments is awaiting_deliver.
// Default status of created shipments is awaiting_packaging,
// which indicates that the shipment is awaiting assembly.
//
// The status of the original shipment will only change
// when the split shipments status changes

View File

@@ -212,9 +212,6 @@ type ProductDetails struct {
// Price before discounts. Displayed strikethrough on the product description page
OldPrice string `json:"old_price"`
// Price for customers with an Ozon Premium subscription
PremiumPrice string `json:"premium_price"`
// Product price including discounts. This value is shown on the product description page
Price string `json:"price"`
@@ -712,9 +709,7 @@ type UpdatePricesResultError struct {
// Allows you to change a price of one or more products.
// You can change prices for 1000 products in one request.
// To reset old_price or premium_price set these parameters to 0.
//
// A new price must differ from the old one by at least 5%.
// To reset old_price, set 0 for this parameter
func (c Products) UpdatePrices(ctx context.Context, params *UpdatePricesParams) (*UpdatePricesResponse, error) {
url := "/v1/product/import/prices"
@@ -808,9 +803,6 @@ type CreateOrUpdateProductItem struct {
// List of PDF files
PDFList []CreateOrUpdateProductPDF `json:"pdf_list"`
// Price for customers with an Ozon Premium subscription
PremiumPrice string `json:"premium_price"`
// Product price including discounts. This value is shown on the product description card.
// If there are no discounts on the product, specify the old_price value
Price string `json:"price"`
@@ -1133,9 +1125,6 @@ type CreateProductsByOzonIDItem struct {
// The fractional part is separated by decimal point, up to two digits after the decimal point
OldPrice string `json:"old_price"`
// Price for customers with an Ozon Premium subscription
PremiumPrice string `json:"premium_price"`
// Product price including discounts. This value is shown on the product description page.
// If there are no discounts, pass the old_price value in this parameter
Price string `json:"price"`

View File

@@ -145,7 +145,6 @@ func TestGetProductDetails(t *testing.T) {
"marketing_price": "",
"min_price": "",
"old_price": "",
"premium_price": "",
"price": "590.0000",
"sources": [
{
@@ -684,7 +683,6 @@ func TestCreateOrUpdateProduct(t *testing.T) {
Name: "Комплект защитных плёнок для X3 NFC. Темный хлопок",
OfferId: "143210608",
OldPrice: "1100",
PremiumPrice: "900",
Price: "1000",
VAT: "0.1",
Weight: 100,
@@ -1152,7 +1150,6 @@ func TestCreateProductByOzonID(t *testing.T) {
OfferId: "91132",
OldPrice: "2590",
Price: "2300",
PremiumPrice: "2200",
CurrencyCode: "RUB",
SKU: 298789742,
VAT: "0.1",
@@ -1392,7 +1389,6 @@ func TestListProductsByIDs(t *testing.T) {
"marketing_price": "",
"min_price": "",
"old_price": "1000.0000",
"premium_price": "590.0000",
"price": "690.0000",
"sources": [
{
@@ -1468,7 +1464,6 @@ func TestListProductsByIDs(t *testing.T) {
"marketing_price": "",
"min_price": "",
"old_price": "12200.0000",
"premium_price": "5490.0000",
"price": "6100.0000",
"sources": [
{
@@ -2353,7 +2348,6 @@ func TestGetProductPriceInfo(t *testing.T) {
"currency_code": "RUB",
"price": "499.0000",
"old_price": "579.0000",
"premium_price": "",
"retail_price": "",
"vat": "0.200000",
"min_ozon_price": "",

View File

@@ -204,7 +204,7 @@ type GetFBSReturnResultReturn struct {
// Product price without commission
PriceWithoutCommission float64 `json:"price_without_commission"`
// Product identifier
// Product identifier — SKU
ProductId int64 `json:"product_id"`
// Product name