From 4df0d9a1345f2336a29575091f13e129a0c499b9 Mon Sep 17 00:00:00 2001 From: diPhantxm Date: Wed, 13 Mar 2024 21:52:34 +0300 Subject: [PATCH] add value to tpl integration type enum - hybryd --- ozon/cancellations.go | 2 +- ozon/common.go | 3 +++ ozon/fbs.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ozon/cancellations.go b/ozon/cancellations.go index 312de76..3cb573e 100644 --- a/ozon/cancellations.go +++ b/ozon/cancellations.go @@ -41,7 +41,7 @@ type CancellationInfo struct { CancellationReasonMessage string `json:"cancellation_reason_message"` // Delivery service integration type - TPLIntegrationType string `json:"tpl_integration_type"` + TPLIntegrationType TPLIntegrationType `json:"tpl_integration_type"` // Cancellation request status State CancellationInfoState `json:"state"` diff --git a/ozon/common.go b/ozon/common.go index c98bd20..e17eb6f 100644 --- a/ozon/common.go +++ b/ozon/common.go @@ -312,6 +312,9 @@ const ( // delivery by the seller NonIntegratedTPLType TPLIntegrationType = "non_integrated" + + // Russian Post delivery scheme + HybrydTPLType TPLIntegrationType = "hybryd" ) type DetailsDeliveryItemName string diff --git a/ozon/fbs.go b/ozon/fbs.go index d55146a..2b6b02f 100644 --- a/ozon/fbs.go +++ b/ozon/fbs.go @@ -174,7 +174,7 @@ type FBSPosting struct { Substatus string `json:"substatus"` // Type of integration with the delivery service - TPLIntegrationType string `json:"tpl_integration_type"` + TPLIntegrationType TPLIntegrationType `json:"tpl_integration_type"` // Shipment tracking number TrackingNumber string `json:"tracking_number"`