Skip to content

Commit 40d9fc3

Browse files
authored
Update October 19, 2023 (#44)
1 parent b07968d commit 40d9fc3

File tree

3 files changed

+42
-15
lines changed

3 files changed

+42
-15
lines changed

ozon/common.go

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,3 +540,40 @@ const (
540540
// pound sterling
541541
InvoiceCurrencyGBP InvoiceCurrency = "GBP"
542542
)
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+
)

ozon/fbs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ type FBSRequirements struct {
306306
//
307307
// To pack the shipment, pass the CCD number for all listed SKUs.
308308
// 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`
310310
ProductsRequiringGTD []string `json:"products_requiring_gtd"`
311311

312312
// Array of Ozon Product IDs (SKU) for which

ozon/reports.go

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,11 @@ type GetReportDetailResult struct {
126126
// Array with the filters specified when the seller created the report
127127
Params map[string]string `json:"params"`
128128

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"`
139131

140-
// Report generation status:
141-
// - success
142-
// - failed
143-
Status string `json:"status"`
132+
// Report generation status
133+
Status ReportInfoStatus `json:"status"`
144134
}
145135

146136
// Returns information about a created report by its identifier

0 commit comments

Comments
 (0)