Fix GetProductPriceInfo response (#152)
This commit is contained in:
@@ -2155,74 +2155,72 @@ func TestGetProductPriceInfo(t *testing.T) {
|
||||
},
|
||||
},
|
||||
`{
|
||||
"result": {
|
||||
"cursor": "string",
|
||||
"items": [
|
||||
{
|
||||
"acquiring": 0,
|
||||
"commissions": {
|
||||
"fbo_deliv_to_customer_amount": 14.75,
|
||||
"fbo_direct_flow_trans_max_amount": 46.5,
|
||||
"fbo_direct_flow_trans_min_amount": 31,
|
||||
"fbo_return_flow_amount": 50,
|
||||
"fbs_deliv_to_customer_amount": 60,
|
||||
"fbs_direct_flow_trans_max_amount": 61.5,
|
||||
"fbs_direct_flow_trans_min_amount": 41,
|
||||
"fbs_first_mile_max_amount": 25,
|
||||
"fbs_first_mile_min_amount": 0,
|
||||
"fbs_return_flow_amount": 40,
|
||||
"sales_percent_fbo": 15,
|
||||
"sales_percent_fbs": 0
|
||||
},
|
||||
"marketing_actions": {
|
||||
"actions": [
|
||||
{
|
||||
"date_from": "2024-12-13T06:49:37.591Z",
|
||||
"date_to": "2024-12-13T06:49:37.591Z",
|
||||
"title": "string",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"current_period_from": "2024-12-13T06:49:37.591Z",
|
||||
"current_period_to": "2024-12-13T06:49:37.591Z",
|
||||
"ozon_actions_exist": true
|
||||
},
|
||||
"offer_id": "356792",
|
||||
"price": {
|
||||
"auto_action_enabled": true,
|
||||
"currency_code": "RUB",
|
||||
"marketing_price": 0,
|
||||
"marketing_seller_price": 0,
|
||||
"min_price": 0,
|
||||
"old_price": 579,
|
||||
"price": 499,
|
||||
"retail_price": 0,
|
||||
"vat": 0.2
|
||||
},
|
||||
"price_indexes": {
|
||||
"color_index": "WITHOUT_INDEX",
|
||||
"external_index_data": {
|
||||
"min_price": 0,
|
||||
"min_price_currency": "string",
|
||||
"price_index_value": 0
|
||||
},
|
||||
"ozon_index_data": {
|
||||
"min_price": 0,
|
||||
"min_price_currency": "string",
|
||||
"price_index_value": 0
|
||||
},
|
||||
"self_marketplaces_index_data": {
|
||||
"min_price": 0,
|
||||
"min_price_currency": "string",
|
||||
"price_index_value": 0
|
||||
"cursor": "string",
|
||||
"items": [
|
||||
{
|
||||
"acquiring": 0.5,
|
||||
"commissions": {
|
||||
"fbo_deliv_to_customer_amount": 14.75,
|
||||
"fbo_direct_flow_trans_max_amount": 46.5,
|
||||
"fbo_direct_flow_trans_min_amount": 31,
|
||||
"fbo_return_flow_amount": 50,
|
||||
"fbs_deliv_to_customer_amount": 60,
|
||||
"fbs_direct_flow_trans_max_amount": 61.5,
|
||||
"fbs_direct_flow_trans_min_amount": 41,
|
||||
"fbs_first_mile_max_amount": 25,
|
||||
"fbs_first_mile_min_amount": 0,
|
||||
"fbs_return_flow_amount": 40,
|
||||
"sales_percent_fbo": 15,
|
||||
"sales_percent_fbs": 0
|
||||
},
|
||||
"marketing_actions": {
|
||||
"actions": [
|
||||
{
|
||||
"date_from": "2024-12-13T06:49:37.591Z",
|
||||
"date_to": "2024-12-13T06:49:37.591Z",
|
||||
"title": "string",
|
||||
"value": 0
|
||||
}
|
||||
},
|
||||
"product_id": 243686911,
|
||||
"volume_weight": 0
|
||||
],
|
||||
"current_period_from": "2024-12-13T06:49:37.591Z",
|
||||
"current_period_to": "2024-12-13T06:49:37.591Z",
|
||||
"ozon_actions_exist": true
|
||||
},
|
||||
"offer_id": "356792",
|
||||
"price": {
|
||||
"auto_action_enabled": true,
|
||||
"currency_code": "RUB",
|
||||
"marketing_price": 0,
|
||||
"marketing_seller_price": 0,
|
||||
"min_price": 0,
|
||||
"old_price": 579,
|
||||
"price": 499,
|
||||
"retail_price": 0,
|
||||
"vat": 0.2
|
||||
},
|
||||
"price_indexes": {
|
||||
"color_index": "WITHOUT_INDEX",
|
||||
"external_index_data": {
|
||||
"min_price": 0,
|
||||
"min_price_currency": "string",
|
||||
"price_index_value": 0
|
||||
},
|
||||
"ozon_index_data": {
|
||||
"min_price": 0,
|
||||
"min_price_currency": "string",
|
||||
"price_index_value": 0
|
||||
},
|
||||
"self_marketplaces_index_data": {
|
||||
"min_price": 0,
|
||||
"min_price_currency": "string",
|
||||
"price_index_value": 0
|
||||
}
|
||||
],
|
||||
"total": 0
|
||||
},
|
||||
"product_id": 243686911,
|
||||
"volume_weight": 0
|
||||
}
|
||||
],
|
||||
"total": 0
|
||||
}`,
|
||||
},
|
||||
// Test No Client-Id or Api-Key
|
||||
|
||||
Reference in New Issue
Block a user