File tree Expand file tree Collapse file tree 3 files changed +42
-15
lines changed Expand file tree Collapse file tree 3 files changed +42
-15
lines changed Original file line number Diff line number Diff line change @@ -540,3 +540,40 @@ const (
540
540
// pound sterling
541
541
InvoiceCurrencyGBP InvoiceCurrency = "GBP"
542
542
)
543
+
544
+ type ReportType string
545
+
546
+ const (
547
+ // products report
548
+ ReportTypeSellerProducts ReportType = "SELLER_PRODUCTS"
549
+
550
+ // transactions report
551
+ ReportTypeSellerTransactions ReportType = "SELLER_TRANSACTIONS"
552
+
553
+ // product prices report
554
+ ReportTypeSellerProductPrices ReportType = "SELLER_PRODUCT_PRICES"
555
+
556
+ // stocks report
557
+ ReportTypeSellerStock ReportType = "SELLER_STOCK"
558
+
559
+ // products movement report
560
+ ReportTypeSellerProductMovement ReportType = "SELLER_PRODUCT_MOVEMENT"
561
+
562
+ // returns report
563
+ ReportTypeSellerReturns ReportType = "SELLER_RETURNS"
564
+
565
+ // shipments report
566
+ ReportTypeSellerPostings ReportType = "SELLER_POSTINGS"
567
+
568
+ // financial report
569
+ ReportTypeSellerFinance ReportType = "SELLER_FINANCE"
570
+ )
571
+
572
+ type ReportInfoStatus string
573
+
574
+ const (
575
+ ReportInfoWaiting ReportInfoStatus = "waiting"
576
+ ReportInfoProcessing ReportInfoStatus = "processing"
577
+ ReportInfoSuccess ReportInfoStatus = "success"
578
+ ReportInfoFailed ReportInfoStatus = "failed"
579
+ )
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ type FBSRequirements struct {
306
306
//
307
307
// To pack the shipment, pass the CCD number for all listed SKUs.
308
308
// If you do not have a CCD number, pass the value `is_gtd_absent` = true
309
- // via the `/v3/posting/fbs/ship/package` or `/v3/posting/fbs/ship` method
309
+ // via the `/v3/posting/fbs/ship/package`
310
310
ProductsRequiringGTD []string `json:"products_requiring_gtd"`
311
311
312
312
// Array of Ozon Product IDs (SKU) for which
Original file line number Diff line number Diff line change @@ -126,21 +126,11 @@ type GetReportDetailResult struct {
126
126
// Array with the filters specified when the seller created the report
127
127
Params map [string ]string `json:"params"`
128
128
129
- // Report type:
130
- // - SELLER_PRODUCTS — products report,
131
- // - SELLER_TRANSACTIONS — transactions report,
132
- // - SELLER_PRODUCT_PRICES — product prices report,
133
- // - SELLER_STOCK — stocks report,
134
- // - SELLER_PRODUCT_MOVEMENT — products movement report,
135
- // - SELLER_RETURNS — returns report,
136
- // - SELLER_POSTINGS — shipments report,
137
- // - SELLER_FINANCE — financial report
138
- ReportType string `json:"report_type"`
129
+ // Report type
130
+ ReportType ReportType `json:"report_type"`
139
131
140
- // Report generation status:
141
- // - success
142
- // - failed
143
- Status string `json:"status"`
132
+ // Report generation status
133
+ Status ReportInfoStatus `json:"status"`
144
134
}
145
135
146
136
// Returns information about a created report by its identifier
You can’t perform that action at this time.
0 commit comments