Skip to content

Commit

Permalink
Update December 9, 2024 (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
diPhantxm authored Jan 10, 2025
1 parent 32bd774 commit 8173450
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ozon/finance.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ type ListTransactionsResult struct {
// Transactions infromation
Operations []ListTransactionsResultOperation `json:"operations"`

// Number of pages
// Number of pages. If 0, there are no more pages
PageCount int64 `json:"page_count"`

// Number of products
// Number of transactions on all pages. If 0, there are no more transactions
RowCount int64 `json:"row_count"`
}

Expand Down
12 changes: 9 additions & 3 deletions ozon/returns.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,6 @@ type GetFBSQuantityReturnsPagination struct {
type GetFBSQuantityReturnsResponse struct {
core.CommonResponse

// Seller identifier
CompanyId int64 `json:"company_id"`

DropoffPoints []GetFBSQuantityDropoffPoint `json:"drop_off_points"`

// true if there are any other points where sellers have orders waiting
Expand Down Expand Up @@ -697,6 +694,12 @@ type GetFBSQuantityDropoffPoint struct {

// Seller's warehouses identifiers
WarehouseIds []string `json:"warehouses_ids"`

// Number of boxes in drop-off point
BoxCount int32 `json:"box_count"`

// Time zone offset of the shipping time from UTC-0
UTCOffset string `json:"utc_offset"`
}

type GetFBSQuantityDropoffPointPassInfo struct {
Expand Down Expand Up @@ -904,6 +907,9 @@ type ReturnProduct struct {

// Commission details
Commission ReturnSum `json:"commission"`

// Product quantity
Quantity int32 `json:"quantity"`
}

type ReturnLogistic struct {
Expand Down
6 changes: 4 additions & 2 deletions ozon/returns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -823,10 +823,10 @@ func TestFBSQuantity(t *testing.T) {
},
},
`{
"company_id": 0,
"drop_off_points": [
{
"address": "string",
"box_count": 0,
"id": 0,
"name": "string",
"pass_info": {
Expand All @@ -835,6 +835,7 @@ func TestFBSQuantity(t *testing.T) {
},
"place_id": 0,
"returns_count": 0,
"utc_offset": "string",
"warehouses_ids": [
"string"
]
Expand Down Expand Up @@ -963,7 +964,8 @@ func TestListReturns(t *testing.T) {
"commission": {
"currency_code": "RUB",
"price": 2312
}
},
"quantity": 1
},
"logistic": {
"technical_return_moment": "2024-07-29T06:15:48.998146Z",
Expand Down

0 comments on commit 8173450

Please sign in to comment.