Skip to content

Commit

Permalink
Update June 27, 2024 (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
diPhantxm authored Jul 29, 2024
1 parent b0c133b commit dfbb93f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
13 changes: 13 additions & 0 deletions ozon/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -809,3 +809,16 @@ const (
// reissue of returns at the pick-up point
TransactionServiceRedistributionReturnsPVZ TransactionOperationService = "MarketplaceServiceItemRedistributionReturnsPVZ"
)

type PaymentTypeGroupName string

const (
PaymentTypeGroupByCardOnline PaymentTypeGroupName = "by card online"
PaymentTypeGroupOzonCard PaymentTypeGroupName = "Ozon Card"
PaymentTypeGroupOzonCardAtCheckout PaymentTypeGroupName = "Ozon Card at checkout"
PaymentTypeGroupBySavedBankCardUponPickup PaymentTypeGroupName = "by saved bank card upon pick-up"
PaymentTypeGroupFasterPaymentSystem PaymentTypeGroupName = "Faster payment system"
PaymentTypeGroupOzonInstallment PaymentTypeGroupName = "Ozon Installment"
PaymentTypeGroupPaymentToCurrentAccount PaymentTypeGroupName = "payment to current account"
PaymentTypeGroupSberpay PaymentTypeGroupName = "Sberpay"
)
2 changes: 1 addition & 1 deletion ozon/fbo.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ type GetFBOShipmentsListResultAnalyticsData struct {
IsPremium bool `json:"is_premium"`

// Payment method
PaymentTypeGroupName string `json:"payment_type_group_name"`
PaymentTypeGroupName PaymentTypeGroupName `json:"payment_type_group_name"`

// Delivery region
Region string `json:"region"`
Expand Down
17 changes: 14 additions & 3 deletions ozon/fbs.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ type FBSPostingAnalyticsData struct {
IsPremium bool `json:"is_premium"`

// Payment method
PaymentTypeGroupName string `json:"payment_type_group_name"`
PaymentTypeGroupName PaymentTypeGroupName `json:"payment_type_group_name"`

// Delivery region
Region string `json:"region"`
Expand Down Expand Up @@ -358,7 +358,7 @@ type FBSCustomer struct {

// Customer phone number.
//
// Returns an empty string
// Returns an empty string ""
Phone string `json:"phone"`
}

Expand Down Expand Up @@ -563,6 +563,13 @@ type GetFBSShipmentsListFilter struct {

// Warehouse identifier
WarehouseId []int64 `json:"warehouse_id"`

LastChangedStatusDate GetFBSShipmentsListFilterLastChangeDate `json:"last_changed_status_date"`
}

type GetFBSShipmentsListFilterLastChangeDate struct {
From time.Time `json:"from"`
To time.Time `json:"to"`
}

type GetFBSShipmentsListWith struct {
Expand Down Expand Up @@ -1006,7 +1013,9 @@ type GetShipmentDataByIdentifierResultAddressee struct {
// Recipient name
Name string `json:"name"`

// Recipient phone number
// Recipient phone number.
//
// Returns an empty string ""
Phone string `json:"phone"`
}

Expand Down Expand Up @@ -1061,6 +1070,8 @@ type GetShipmentDataByIdentifierResultCourier struct {
Name string `json:"name"`

// Courier's phone number
//
// Returns an empty string ""
Phone string `json:"phone"`
}

Expand Down

0 comments on commit dfbb93f

Please sign in to comment.