Skip to content

Commit 7f71ed6

Browse files
authored
Update November 29, 2024 (#124)
1 parent 2f4d207 commit 7f71ed6

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

ozon/fbo.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ type GetFBOShipmentsListResultAdditionalData struct {
101101
}
102102

103103
type GetFBOShipmentsListResultAnalyticsData struct {
104-
// Delivery city
105-
City string `json:"city"`
106-
107104
// Delivery method
108105
DeliveryType string `json:"delivery_type"`
109106

@@ -118,9 +115,6 @@ type GetFBOShipmentsListResultAnalyticsData struct {
118115
// Payment method
119116
PaymentTypeGroupName PaymentTypeGroupName `json:"payment_type_group_name"`
120117

121-
// Delivery region
122-
Region string `json:"region"`
123-
124118
// Warehouse identifier
125119
WarehouseId int64 `json:"warehouse_id"`
126120

@@ -247,9 +241,6 @@ type GetShipmentDetailsResultAdditionalData struct {
247241
}
248242

249243
type GetShipmentDetailsResultAnalyticsData struct {
250-
// Delivery city
251-
City string `json:"city"`
252-
253244
// Delivery method
254245
DeliveryType string `json:"delivery_type"`
255246

@@ -264,9 +255,6 @@ type GetShipmentDetailsResultAnalyticsData struct {
264255
// Payment method
265256
PaymentTypeGroupName string `json:"payment_type_group_name"`
266257

267-
// Delivery region
268-
Region string `json:"region"`
269-
270258
// Warehouse identifier
271259
WarehouseId int64 `json:"warehouse_id"`
272260

ozon/fbo_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ func TestGetFBOShipmentsList(t *testing.T) {
5858
}
5959
],
6060
"analytics_data": {
61-
"region": "РОСТОВСКАЯ ОБЛАСТЬ",
62-
"city": "Ростов-на-Дону",
6361
"delivery_type": "PVZ",
6462
"is_premium": false,
6563
"payment_type_group_name": "Карты оплаты",
@@ -191,8 +189,6 @@ func TestGetShipmentDetails(t *testing.T) {
191189
}
192190
],
193191
"analytics_data": {
194-
"region": "МОСКВА",
195-
"city": "Москва",
196192
"delivery_type": "Courier",
197193
"is_premium": false,
198194
"payment_type_group_name": "Карты оплаты",

ozon/fbs.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ type FBSPostingAddressee struct {
237237
}
238238

239239
type FBSPostingAnalyticsData struct {
240-
// Delivery city
240+
// Delivery city. Only for rFBS shipments
241241
City string `json:"city"`
242242

243243
// Delivery start date and time
@@ -261,7 +261,7 @@ type FBSPostingAnalyticsData struct {
261261
// Payment method
262262
PaymentTypeGroupName PaymentTypeGroupName `json:"payment_type_group_name"`
263263

264-
// Delivery region
264+
// Delivery region. Only for rFBS shipments
265265
Region string `json:"region"`
266266

267267
// Delivery service
@@ -1077,7 +1077,7 @@ type GetShipmentDataByIdentifierResultAddressee struct {
10771077
}
10781078

10791079
type GetShipmentDataByIdentifierResultAnalyticsData struct {
1080-
// Delivery city
1080+
// Delivery city. Only for rFBS shipments
10811081
City string `json:"city"`
10821082

10831083
// Delivery start date and time
@@ -1100,7 +1100,7 @@ type GetShipmentDataByIdentifierResultAnalyticsData struct {
11001100
// Payment method
11011101
PaymentTypeGroupName string `json:"payment_type_group_name"`
11021102

1103-
// Delivery region
1103+
// Delivery region. Only for rFBS shipments
11041104
Region string `json:"region"`
11051105

11061106
// Delivery service

0 commit comments

Comments
 (0)