Fix GetProductPriceInfo response (#152)
This commit is contained in:
		@@ -2130,10 +2130,6 @@ type GetProductPriceInfoFilter struct {
 | 
				
			|||||||
type GetProductPriceInfoResponse struct {
 | 
					type GetProductPriceInfoResponse struct {
 | 
				
			||||||
	core.CommonResponse
 | 
						core.CommonResponse
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	Result GetProductPriceInfoResult `json:"result"`
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type GetProductPriceInfoResult struct {
 | 
					 | 
				
			||||||
	// Products list
 | 
						// Products list
 | 
				
			||||||
	Items []GetProductPriceInfoResultItem `json:"items"`
 | 
						Items []GetProductPriceInfoResultItem `json:"items"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -2146,7 +2142,7 @@ type GetProductPriceInfoResult struct {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
type GetProductPriceInfoResultItem struct {
 | 
					type GetProductPriceInfoResultItem struct {
 | 
				
			||||||
	// Maximum acquiring fee
 | 
						// Maximum acquiring fee
 | 
				
			||||||
	Acquiring int32 `json:"acquiring"`
 | 
						Acquiring float64 `json:"acquiring"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Commissions information
 | 
						// Commissions information
 | 
				
			||||||
	Commissions GetProductPriceInfoResultItemCommission `json:"commissions"`
 | 
						Commissions GetProductPriceInfoResultItemCommission `json:"commissions"`
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2155,74 +2155,72 @@ func TestGetProductPriceInfo(t *testing.T) {
 | 
				
			|||||||
				},
 | 
									},
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			`{
 | 
								`{
 | 
				
			||||||
				"result": {
 | 
									"cursor": "string",
 | 
				
			||||||
				  "cursor": "string",
 | 
									"items": [
 | 
				
			||||||
				  "items": [
 | 
									{
 | 
				
			||||||
					{
 | 
										"acquiring": 0.5,
 | 
				
			||||||
					  "acquiring": 0,
 | 
										"commissions": {
 | 
				
			||||||
					  "commissions": {
 | 
										"fbo_deliv_to_customer_amount": 14.75,
 | 
				
			||||||
						"fbo_deliv_to_customer_amount": 14.75,
 | 
										"fbo_direct_flow_trans_max_amount": 46.5,
 | 
				
			||||||
						"fbo_direct_flow_trans_max_amount": 46.5,
 | 
										"fbo_direct_flow_trans_min_amount": 31,
 | 
				
			||||||
						"fbo_direct_flow_trans_min_amount": 31,
 | 
										"fbo_return_flow_amount": 50,
 | 
				
			||||||
						"fbo_return_flow_amount": 50,
 | 
										"fbs_deliv_to_customer_amount": 60,
 | 
				
			||||||
						"fbs_deliv_to_customer_amount": 60,
 | 
										"fbs_direct_flow_trans_max_amount": 61.5,
 | 
				
			||||||
						"fbs_direct_flow_trans_max_amount": 61.5,
 | 
										"fbs_direct_flow_trans_min_amount": 41,
 | 
				
			||||||
						"fbs_direct_flow_trans_min_amount": 41,
 | 
										"fbs_first_mile_max_amount": 25,
 | 
				
			||||||
						"fbs_first_mile_max_amount": 25,
 | 
										"fbs_first_mile_min_amount": 0,
 | 
				
			||||||
						"fbs_first_mile_min_amount": 0,
 | 
										"fbs_return_flow_amount": 40,
 | 
				
			||||||
						"fbs_return_flow_amount": 40,
 | 
										"sales_percent_fbo": 15,
 | 
				
			||||||
						"sales_percent_fbo": 15,
 | 
										"sales_percent_fbs": 0
 | 
				
			||||||
						"sales_percent_fbs": 0
 | 
										},
 | 
				
			||||||
					  },
 | 
										"marketing_actions": {
 | 
				
			||||||
					  "marketing_actions": {
 | 
										"actions": [
 | 
				
			||||||
						"actions": [
 | 
											{
 | 
				
			||||||
						  {
 | 
											"date_from": "2024-12-13T06:49:37.591Z",
 | 
				
			||||||
							"date_from": "2024-12-13T06:49:37.591Z",
 | 
											"date_to": "2024-12-13T06:49:37.591Z",
 | 
				
			||||||
							"date_to": "2024-12-13T06:49:37.591Z",
 | 
											"title": "string",
 | 
				
			||||||
							"title": "string",
 | 
											"value": 0
 | 
				
			||||||
							"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
 | 
					 | 
				
			||||||
						}
 | 
											}
 | 
				
			||||||
					  },
 | 
										],
 | 
				
			||||||
					  "product_id": 243686911,
 | 
										"current_period_from": "2024-12-13T06:49:37.591Z",
 | 
				
			||||||
					  "volume_weight": 0
 | 
										"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
 | 
							// Test No Client-Id or Api-Key
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user