added new response fields to GetProductPriceInfo: result.items.acquiring, result.items.commissions.sales_percent_fbo/fbs
This commit is contained in:
@@ -1912,6 +1912,9 @@ type GetProductPriceInfoResult struct {
|
||||
}
|
||||
|
||||
type GetPRoductPriceInfoResultItem struct {
|
||||
// Maximum acquiring fee
|
||||
Acquiring int32 `json:"acquiring"`
|
||||
|
||||
// Commissions information
|
||||
Commissions GetProductPriceInfoResultItemCommission `json:"commissions"`
|
||||
|
||||
@@ -1970,10 +1973,10 @@ type GetProductPriceInfoResultItemCommission struct {
|
||||
// Pipeline from (FBS)
|
||||
FBSPipelineFrom float64 `json:"fbs_direct_flow_trans_min_amount"`
|
||||
|
||||
// Shipment processing fee to (FBS)
|
||||
// Minimal shipment processing fee (FBS) — 0 rubles
|
||||
FBSShipmentProcessingToFee float64 `json:"fbs_first_mile_min_amount"`
|
||||
|
||||
// Shipment processing fee from (FBS)
|
||||
// Maximal shipment processing fee (FBS) — 25 rubles
|
||||
FBSShipmentProcessingFromFee float64 `json:"Shipment processing fee from (FBS)"`
|
||||
|
||||
// Return and cancellation fees, shipment processing (FBS)
|
||||
@@ -1985,7 +1988,13 @@ type GetProductPriceInfoResultItemCommission struct {
|
||||
// Return and cancellation fees, pipeline from (FBS)
|
||||
FBSReturnCancellationFromFees float64 `json:"fbs_return_flow_trans_min_amount"`
|
||||
|
||||
// Sales commission percentage (FBO and FBS)
|
||||
// Sales commission percentage (FBO)
|
||||
SalesCommissionFBORate float64 `json:"sales_percent_fbo"`
|
||||
|
||||
// Sales commission percentage (FBS)
|
||||
SalesCommissionFBSRate float64 `json:"sales_percent_fbs"`
|
||||
|
||||
// Larger sales commission percentage among FBO and FBS
|
||||
SalesCommissionRate float64 `json:"sales_percent"`
|
||||
}
|
||||
|
||||
|
||||
@@ -2240,6 +2240,7 @@ func TestGetProductPriceInfo(t *testing.T) {
|
||||
"result": {
|
||||
"items": [
|
||||
{
|
||||
"acquiring": 0,
|
||||
"product_id": 243686911,
|
||||
"offer_id": "356792",
|
||||
"price": {
|
||||
@@ -2255,9 +2256,28 @@ func TestGetProductPriceInfo(t *testing.T) {
|
||||
"marketing_seller_price": "",
|
||||
"auto_action_enabled": true
|
||||
},
|
||||
"price_index": "0.00",
|
||||
"price_indexes": {
|
||||
"external_index_data": {
|
||||
"minimal_price": "string",
|
||||
"minimal_price_currency": "string",
|
||||
"price_index_value": 0
|
||||
},
|
||||
"ozon_index_data": {
|
||||
"minimal_price": "string",
|
||||
"minimal_price_currency": "string",
|
||||
"price_index_value": 0
|
||||
},
|
||||
"price_index": "WITHOUT_INDEX",
|
||||
"self_marketplaces_index_data": {
|
||||
"minimal_price": "string",
|
||||
"minimal_price_currency": "string",
|
||||
"price_index_value": 0
|
||||
}
|
||||
},
|
||||
"commissions": {
|
||||
"sales_percent": 15,
|
||||
"sales_percent_fbo": 15,
|
||||
"sales_percent_fbs": 0,
|
||||
"fbo_fulfillment_amount": 0,
|
||||
"fbo_direct_flow_trans_min_amount": 31,
|
||||
"fbo_direct_flow_trans_max_amount": 46.5,
|
||||
@@ -2266,7 +2286,7 @@ func TestGetProductPriceInfo(t *testing.T) {
|
||||
"fbo_return_flow_trans_min_amount": 21.7,
|
||||
"fbo_return_flow_trans_max_amount": 21.7,
|
||||
"fbs_first_mile_min_amount": 0,
|
||||
"fbs_first_mile_max_amount": 0,
|
||||
"fbs_first_mile_max_amount": 25,
|
||||
"fbs_direct_flow_trans_min_amount": 41,
|
||||
"fbs_direct_flow_trans_max_amount": 61.5,
|
||||
"fbs_deliv_to_customer_amount": 60,
|
||||
|
||||
Reference in New Issue
Block a user