Skip to content

Commit dfbb93f

Browse files
authored
Update June 27, 2024 (#98)
1 parent b0c133b commit dfbb93f

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

ozon/common.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,3 +809,16 @@ const (
809809
// reissue of returns at the pick-up point
810810
TransactionServiceRedistributionReturnsPVZ TransactionOperationService = "MarketplaceServiceItemRedistributionReturnsPVZ"
811811
)
812+
813+
type PaymentTypeGroupName string
814+
815+
const (
816+
PaymentTypeGroupByCardOnline PaymentTypeGroupName = "by card online"
817+
PaymentTypeGroupOzonCard PaymentTypeGroupName = "Ozon Card"
818+
PaymentTypeGroupOzonCardAtCheckout PaymentTypeGroupName = "Ozon Card at checkout"
819+
PaymentTypeGroupBySavedBankCardUponPickup PaymentTypeGroupName = "by saved bank card upon pick-up"
820+
PaymentTypeGroupFasterPaymentSystem PaymentTypeGroupName = "Faster payment system"
821+
PaymentTypeGroupOzonInstallment PaymentTypeGroupName = "Ozon Installment"
822+
PaymentTypeGroupPaymentToCurrentAccount PaymentTypeGroupName = "payment to current account"
823+
PaymentTypeGroupSberpay PaymentTypeGroupName = "Sberpay"
824+
)

ozon/fbo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ type GetFBOShipmentsListResultAnalyticsData struct {
116116
IsPremium bool `json:"is_premium"`
117117

118118
// Payment method
119-
PaymentTypeGroupName string `json:"payment_type_group_name"`
119+
PaymentTypeGroupName PaymentTypeGroupName `json:"payment_type_group_name"`
120120

121121
// Delivery region
122122
Region string `json:"region"`

ozon/fbs.go

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ type FBSPostingAnalyticsData struct {
213213
IsPremium bool `json:"is_premium"`
214214

215215
// Payment method
216-
PaymentTypeGroupName string `json:"payment_type_group_name"`
216+
PaymentTypeGroupName PaymentTypeGroupName `json:"payment_type_group_name"`
217217

218218
// Delivery region
219219
Region string `json:"region"`
@@ -358,7 +358,7 @@ type FBSCustomer struct {
358358

359359
// Customer phone number.
360360
//
361-
// Returns an empty string
361+
// Returns an empty string ""
362362
Phone string `json:"phone"`
363363
}
364364

@@ -563,6 +563,13 @@ type GetFBSShipmentsListFilter struct {
563563

564564
// Warehouse identifier
565565
WarehouseId []int64 `json:"warehouse_id"`
566+
567+
LastChangedStatusDate GetFBSShipmentsListFilterLastChangeDate `json:"last_changed_status_date"`
568+
}
569+
570+
type GetFBSShipmentsListFilterLastChangeDate struct {
571+
From time.Time `json:"from"`
572+
To time.Time `json:"to"`
566573
}
567574

568575
type GetFBSShipmentsListWith struct {
@@ -1006,7 +1013,9 @@ type GetShipmentDataByIdentifierResultAddressee struct {
10061013
// Recipient name
10071014
Name string `json:"name"`
10081015

1009-
// Recipient phone number
1016+
// Recipient phone number.
1017+
//
1018+
// Returns an empty string ""
10101019
Phone string `json:"phone"`
10111020
}
10121021

@@ -1061,6 +1070,8 @@ type GetShipmentDataByIdentifierResultCourier struct {
10611070
Name string `json:"name"`
10621071

10631072
// Courier's phone number
1073+
//
1074+
// Returns an empty string ""
10641075
Phone string `json:"phone"`
10651076
}
10661077

0 commit comments

Comments
 (0)