— поддерживается, но не влияет на отображение текста.
+ Slip string `json:"slip"`
+ // Дата, до которой нужно активировать ключи. Если ключи действуют бессрочно, укажите любую дату в отдаленном будущем. Формат даты: `ГГГГ-ММ-ДД`.
+ ActivateTill string `json:"activate_till"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderDigitalItemDTO OrderDigitalItemDTO
+
+// NewOrderDigitalItemDTO instantiates a new OrderDigitalItemDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderDigitalItemDTO(id int64, slip string, activateTill string) *OrderDigitalItemDTO {
+ this := OrderDigitalItemDTO{}
+ this.Id = id
+ this.Slip = slip
+ this.ActivateTill = activateTill
+ return &this
+}
+
+// NewOrderDigitalItemDTOWithDefaults instantiates a new OrderDigitalItemDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderDigitalItemDTOWithDefaults() *OrderDigitalItemDTO {
+ this := OrderDigitalItemDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *OrderDigitalItemDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *OrderDigitalItemDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *OrderDigitalItemDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetCode returns the Code field value if set, zero value otherwise.
+// Deprecated
+func (o *OrderDigitalItemDTO) GetCode() string {
+ if o == nil || IsNil(o.Code) {
+ var ret string
+ return ret
+ }
+ return *o.Code
+}
+
+// GetCodeOk returns a tuple with the Code field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *OrderDigitalItemDTO) GetCodeOk() (*string, bool) {
+ if o == nil || IsNil(o.Code) {
+ return nil, false
+ }
+ return o.Code, true
+}
+
+// HasCode returns a boolean if a field has been set.
+func (o *OrderDigitalItemDTO) HasCode() bool {
+ if o != nil && !IsNil(o.Code) {
+ return true
+ }
+
+ return false
+}
+
+// SetCode gets a reference to the given string and assigns it to the Code field.
+// Deprecated
+func (o *OrderDigitalItemDTO) SetCode(v string) {
+ o.Code = &v
+}
+
+// GetCodes returns the Codes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrderDigitalItemDTO) GetCodes() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Codes
+}
+
+// GetCodesOk returns a tuple with the Codes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrderDigitalItemDTO) GetCodesOk() ([]string, bool) {
+ if o == nil || IsNil(o.Codes) {
+ return nil, false
+ }
+ return o.Codes, true
+}
+
+// HasCodes returns a boolean if a field has been set.
+func (o *OrderDigitalItemDTO) HasCodes() bool {
+ if o != nil && !IsNil(o.Codes) {
+ return true
+ }
+
+ return false
+}
+
+// SetCodes gets a reference to the given []string and assigns it to the Codes field.
+func (o *OrderDigitalItemDTO) SetCodes(v []string) {
+ o.Codes = v
+}
+
+// GetSlip returns the Slip field value
+func (o *OrderDigitalItemDTO) GetSlip() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Slip
+}
+
+// GetSlipOk returns a tuple with the Slip field value
+// and a boolean to check if the value has been set.
+func (o *OrderDigitalItemDTO) GetSlipOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Slip, true
+}
+
+// SetSlip sets field value
+func (o *OrderDigitalItemDTO) SetSlip(v string) {
+ o.Slip = v
+}
+
+// GetActivateTill returns the ActivateTill field value
+func (o *OrderDigitalItemDTO) GetActivateTill() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ActivateTill
+}
+
+// GetActivateTillOk returns a tuple with the ActivateTill field value
+// and a boolean to check if the value has been set.
+func (o *OrderDigitalItemDTO) GetActivateTillOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ActivateTill, true
+}
+
+// SetActivateTill sets field value
+func (o *OrderDigitalItemDTO) SetActivateTill(v string) {
+ o.ActivateTill = v
+}
+
+func (o OrderDigitalItemDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderDigitalItemDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ if !IsNil(o.Code) {
+ toSerialize["code"] = o.Code
+ }
+ if o.Codes != nil {
+ toSerialize["codes"] = o.Codes
+ }
+ toSerialize["slip"] = o.Slip
+ toSerialize["activate_till"] = o.ActivateTill
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderDigitalItemDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "slip",
+ "activate_till",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderDigitalItemDTO := _OrderDigitalItemDTO{}
+
+ err = json.Unmarshal(data, &varOrderDigitalItemDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderDigitalItemDTO(varOrderDigitalItemDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "code")
+ delete(additionalProperties, "codes")
+ delete(additionalProperties, "slip")
+ delete(additionalProperties, "activate_till")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderDigitalItemDTO struct {
+ value *OrderDigitalItemDTO
+ isSet bool
+}
+
+func (v NullableOrderDigitalItemDTO) Get() *OrderDigitalItemDTO {
+ return v.value
+}
+
+func (v *NullableOrderDigitalItemDTO) Set(val *OrderDigitalItemDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderDigitalItemDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderDigitalItemDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderDigitalItemDTO(val *OrderDigitalItemDTO) *NullableOrderDigitalItemDTO {
+ return &NullableOrderDigitalItemDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderDigitalItemDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderDigitalItemDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_document_status_type.go b/pkg/api/yandex/ymclient/model_order_document_status_type.go
new file mode 100644
index 0000000..7a7b5ff
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_document_status_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderDocumentStatusType Статус документа: * `READY` — готов. * `NOT_READY` — не готов.
+type OrderDocumentStatusType string
+
+// List of OrderDocumentStatusType
+const (
+ ORDERDOCUMENTSTATUSTYPE_READY OrderDocumentStatusType = "READY"
+ ORDERDOCUMENTSTATUSTYPE_NOT_READY OrderDocumentStatusType = "NOT_READY"
+)
+
+// All allowed values of OrderDocumentStatusType enum
+var AllowedOrderDocumentStatusTypeEnumValues = []OrderDocumentStatusType{
+ "READY",
+ "NOT_READY",
+}
+
+func (v *OrderDocumentStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderDocumentStatusType(value)
+ for _, existing := range AllowedOrderDocumentStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderDocumentStatusType", value)
+}
+
+// NewOrderDocumentStatusTypeFromValue returns a pointer to a valid OrderDocumentStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderDocumentStatusTypeFromValue(v string) (*OrderDocumentStatusType, error) {
+ ev := OrderDocumentStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderDocumentStatusType: valid values are %v", v, AllowedOrderDocumentStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderDocumentStatusType) IsValid() bool {
+ for _, existing := range AllowedOrderDocumentStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderDocumentStatusType value
+func (v OrderDocumentStatusType) Ptr() *OrderDocumentStatusType {
+ return &v
+}
+
+type NullableOrderDocumentStatusType struct {
+ value *OrderDocumentStatusType
+ isSet bool
+}
+
+func (v NullableOrderDocumentStatusType) Get() *OrderDocumentStatusType {
+ return v.value
+}
+
+func (v *NullableOrderDocumentStatusType) Set(val *OrderDocumentStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderDocumentStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderDocumentStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderDocumentStatusType(val *OrderDocumentStatusType) *NullableOrderDocumentStatusType {
+ return &NullableOrderDocumentStatusType{value: val, isSet: true}
+}
+
+func (v NullableOrderDocumentStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderDocumentStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_dto.go b/pkg/api/yandex/ymclient/model_order_dto.go
new file mode 100644
index 0000000..ee741a4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_dto.go
@@ -0,0 +1,931 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderDTO{}
+
+// OrderDTO Заказ.
+type OrderDTO struct {
+ // Идентификатор заказа.
+ Id int64 `json:"id"`
+ // Внешний идентификатор заказа, который вы передали в [POST campaigns/{campaignId}/orders/{orderId}/external-id](../../reference/orders/updateExternalOrderId.md).
+ ExternalOrderId *string `json:"externalOrderId,omitempty"`
+ Status OrderStatusType `json:"status"`
+ Substatus OrderSubstatusType `json:"substatus"`
+ CreationDate string `json:"creationDate"`
+ UpdatedAt *string `json:"updatedAt,omitempty"`
+ Currency CurrencyType `json:"currency"`
+ // Платеж покупателя.
+ ItemsTotal float32 `json:"itemsTotal"`
+ // Стоимость доставки.
+ DeliveryTotal float32 `json:"deliveryTotal"`
+ // Стоимость всех товаров в заказе в валюте покупателя после применения скидок и без учета стоимости доставки.
+ // Deprecated
+ BuyerItemsTotal *float32 `json:"buyerItemsTotal,omitempty"`
+ // Стоимость всех товаров в заказе в валюте покупателя после применения скидок и с учетом стоимости доставки.
+ // Deprecated
+ BuyerTotal *float32 `json:"buyerTotal,omitempty"`
+ // Стоимость всех товаров в заказе в валюте покупателя без учета стоимости доставки и до применения скидок по: * акциям; * купонам; * промокодам.
+ BuyerItemsTotalBeforeDiscount float32 `json:"buyerItemsTotalBeforeDiscount"`
+ // Стоимость всех товаров в заказе в валюте покупателя до применения скидок и с учетом стоимости доставки (`buyerItemsTotalBeforeDiscount` + стоимость доставки).
+ // Deprecated
+ BuyerTotalBeforeDiscount *float32 `json:"buyerTotalBeforeDiscount,omitempty"`
+ PaymentType OrderPaymentType `json:"paymentType"`
+ PaymentMethod OrderPaymentMethodType `json:"paymentMethod"`
+ // Тип заказа: * `false` — настоящий заказ покупателя. * `true` — [тестовый](../../concepts/sandbox.md) заказ Маркета.
+ Fake bool `json:"fake"`
+ // Список товаров в заказе.
+ Items []OrderItemDTO `json:"items"`
+ // Список субсидий по типам.
+ Subsidies []OrderSubsidyDTO `json:"subsidies,omitempty"`
+ Delivery OrderDeliveryDTO `json:"delivery"`
+ Buyer OrderBuyerDTO `json:"buyer"`
+ // Комментарий к заказу.
+ Notes *string `json:"notes,omitempty"`
+ TaxSystem OrderTaxSystemType `json:"taxSystem"`
+ // **Только для модели DBS** Запрошена ли отмена.
+ CancelRequested *bool `json:"cancelRequested,omitempty"`
+ ExpiryDate *string `json:"expiryDate,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderDTO OrderDTO
+
+// NewOrderDTO instantiates a new OrderDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderDTO(id int64, status OrderStatusType, substatus OrderSubstatusType, creationDate string, currency CurrencyType, itemsTotal float32, deliveryTotal float32, buyerItemsTotalBeforeDiscount float32, paymentType OrderPaymentType, paymentMethod OrderPaymentMethodType, fake bool, items []OrderItemDTO, delivery OrderDeliveryDTO, buyer OrderBuyerDTO, taxSystem OrderTaxSystemType) *OrderDTO {
+ this := OrderDTO{}
+ this.Id = id
+ this.Status = status
+ this.Substatus = substatus
+ this.CreationDate = creationDate
+ this.Currency = currency
+ this.ItemsTotal = itemsTotal
+ this.DeliveryTotal = deliveryTotal
+ this.BuyerItemsTotalBeforeDiscount = buyerItemsTotalBeforeDiscount
+ this.PaymentType = paymentType
+ this.PaymentMethod = paymentMethod
+ this.Fake = fake
+ this.Items = items
+ this.Delivery = delivery
+ this.Buyer = buyer
+ this.TaxSystem = taxSystem
+ return &this
+}
+
+// NewOrderDTOWithDefaults instantiates a new OrderDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderDTOWithDefaults() *OrderDTO {
+ this := OrderDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *OrderDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *OrderDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetExternalOrderId returns the ExternalOrderId field value if set, zero value otherwise.
+func (o *OrderDTO) GetExternalOrderId() string {
+ if o == nil || IsNil(o.ExternalOrderId) {
+ var ret string
+ return ret
+ }
+ return *o.ExternalOrderId
+}
+
+// GetExternalOrderIdOk returns a tuple with the ExternalOrderId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetExternalOrderIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ExternalOrderId) {
+ return nil, false
+ }
+ return o.ExternalOrderId, true
+}
+
+// HasExternalOrderId returns a boolean if a field has been set.
+func (o *OrderDTO) HasExternalOrderId() bool {
+ if o != nil && !IsNil(o.ExternalOrderId) {
+ return true
+ }
+
+ return false
+}
+
+// SetExternalOrderId gets a reference to the given string and assigns it to the ExternalOrderId field.
+func (o *OrderDTO) SetExternalOrderId(v string) {
+ o.ExternalOrderId = &v
+}
+
+// GetStatus returns the Status field value
+func (o *OrderDTO) GetStatus() OrderStatusType {
+ if o == nil {
+ var ret OrderStatusType
+ return ret
+ }
+
+ return o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetStatusOk() (*OrderStatusType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Status, true
+}
+
+// SetStatus sets field value
+func (o *OrderDTO) SetStatus(v OrderStatusType) {
+ o.Status = v
+}
+
+// GetSubstatus returns the Substatus field value
+func (o *OrderDTO) GetSubstatus() OrderSubstatusType {
+ if o == nil {
+ var ret OrderSubstatusType
+ return ret
+ }
+
+ return o.Substatus
+}
+
+// GetSubstatusOk returns a tuple with the Substatus field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetSubstatusOk() (*OrderSubstatusType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Substatus, true
+}
+
+// SetSubstatus sets field value
+func (o *OrderDTO) SetSubstatus(v OrderSubstatusType) {
+ o.Substatus = v
+}
+
+// GetCreationDate returns the CreationDate field value
+func (o *OrderDTO) GetCreationDate() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.CreationDate
+}
+
+// GetCreationDateOk returns a tuple with the CreationDate field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetCreationDateOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationDate, true
+}
+
+// SetCreationDate sets field value
+func (o *OrderDTO) SetCreationDate(v string) {
+ o.CreationDate = v
+}
+
+// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
+func (o *OrderDTO) GetUpdatedAt() string {
+ if o == nil || IsNil(o.UpdatedAt) {
+ var ret string
+ return ret
+ }
+ return *o.UpdatedAt
+}
+
+// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetUpdatedAtOk() (*string, bool) {
+ if o == nil || IsNil(o.UpdatedAt) {
+ return nil, false
+ }
+ return o.UpdatedAt, true
+}
+
+// HasUpdatedAt returns a boolean if a field has been set.
+func (o *OrderDTO) HasUpdatedAt() bool {
+ if o != nil && !IsNil(o.UpdatedAt) {
+ return true
+ }
+
+ return false
+}
+
+// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field.
+func (o *OrderDTO) SetUpdatedAt(v string) {
+ o.UpdatedAt = &v
+}
+
+// GetCurrency returns the Currency field value
+func (o *OrderDTO) GetCurrency() CurrencyType {
+ if o == nil {
+ var ret CurrencyType
+ return ret
+ }
+
+ return o.Currency
+}
+
+// GetCurrencyOk returns a tuple with the Currency field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetCurrencyOk() (*CurrencyType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Currency, true
+}
+
+// SetCurrency sets field value
+func (o *OrderDTO) SetCurrency(v CurrencyType) {
+ o.Currency = v
+}
+
+// GetItemsTotal returns the ItemsTotal field value
+func (o *OrderDTO) GetItemsTotal() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.ItemsTotal
+}
+
+// GetItemsTotalOk returns a tuple with the ItemsTotal field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetItemsTotalOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ItemsTotal, true
+}
+
+// SetItemsTotal sets field value
+func (o *OrderDTO) SetItemsTotal(v float32) {
+ o.ItemsTotal = v
+}
+
+// GetDeliveryTotal returns the DeliveryTotal field value
+func (o *OrderDTO) GetDeliveryTotal() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.DeliveryTotal
+}
+
+// GetDeliveryTotalOk returns a tuple with the DeliveryTotal field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetDeliveryTotalOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DeliveryTotal, true
+}
+
+// SetDeliveryTotal sets field value
+func (o *OrderDTO) SetDeliveryTotal(v float32) {
+ o.DeliveryTotal = v
+}
+
+// GetBuyerItemsTotal returns the BuyerItemsTotal field value if set, zero value otherwise.
+// Deprecated
+func (o *OrderDTO) GetBuyerItemsTotal() float32 {
+ if o == nil || IsNil(o.BuyerItemsTotal) {
+ var ret float32
+ return ret
+ }
+ return *o.BuyerItemsTotal
+}
+
+// GetBuyerItemsTotalOk returns a tuple with the BuyerItemsTotal field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *OrderDTO) GetBuyerItemsTotalOk() (*float32, bool) {
+ if o == nil || IsNil(o.BuyerItemsTotal) {
+ return nil, false
+ }
+ return o.BuyerItemsTotal, true
+}
+
+// HasBuyerItemsTotal returns a boolean if a field has been set.
+func (o *OrderDTO) HasBuyerItemsTotal() bool {
+ if o != nil && !IsNil(o.BuyerItemsTotal) {
+ return true
+ }
+
+ return false
+}
+
+// SetBuyerItemsTotal gets a reference to the given float32 and assigns it to the BuyerItemsTotal field.
+// Deprecated
+func (o *OrderDTO) SetBuyerItemsTotal(v float32) {
+ o.BuyerItemsTotal = &v
+}
+
+// GetBuyerTotal returns the BuyerTotal field value if set, zero value otherwise.
+// Deprecated
+func (o *OrderDTO) GetBuyerTotal() float32 {
+ if o == nil || IsNil(o.BuyerTotal) {
+ var ret float32
+ return ret
+ }
+ return *o.BuyerTotal
+}
+
+// GetBuyerTotalOk returns a tuple with the BuyerTotal field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *OrderDTO) GetBuyerTotalOk() (*float32, bool) {
+ if o == nil || IsNil(o.BuyerTotal) {
+ return nil, false
+ }
+ return o.BuyerTotal, true
+}
+
+// HasBuyerTotal returns a boolean if a field has been set.
+func (o *OrderDTO) HasBuyerTotal() bool {
+ if o != nil && !IsNil(o.BuyerTotal) {
+ return true
+ }
+
+ return false
+}
+
+// SetBuyerTotal gets a reference to the given float32 and assigns it to the BuyerTotal field.
+// Deprecated
+func (o *OrderDTO) SetBuyerTotal(v float32) {
+ o.BuyerTotal = &v
+}
+
+// GetBuyerItemsTotalBeforeDiscount returns the BuyerItemsTotalBeforeDiscount field value
+func (o *OrderDTO) GetBuyerItemsTotalBeforeDiscount() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.BuyerItemsTotalBeforeDiscount
+}
+
+// GetBuyerItemsTotalBeforeDiscountOk returns a tuple with the BuyerItemsTotalBeforeDiscount field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetBuyerItemsTotalBeforeDiscountOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.BuyerItemsTotalBeforeDiscount, true
+}
+
+// SetBuyerItemsTotalBeforeDiscount sets field value
+func (o *OrderDTO) SetBuyerItemsTotalBeforeDiscount(v float32) {
+ o.BuyerItemsTotalBeforeDiscount = v
+}
+
+// GetBuyerTotalBeforeDiscount returns the BuyerTotalBeforeDiscount field value if set, zero value otherwise.
+// Deprecated
+func (o *OrderDTO) GetBuyerTotalBeforeDiscount() float32 {
+ if o == nil || IsNil(o.BuyerTotalBeforeDiscount) {
+ var ret float32
+ return ret
+ }
+ return *o.BuyerTotalBeforeDiscount
+}
+
+// GetBuyerTotalBeforeDiscountOk returns a tuple with the BuyerTotalBeforeDiscount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *OrderDTO) GetBuyerTotalBeforeDiscountOk() (*float32, bool) {
+ if o == nil || IsNil(o.BuyerTotalBeforeDiscount) {
+ return nil, false
+ }
+ return o.BuyerTotalBeforeDiscount, true
+}
+
+// HasBuyerTotalBeforeDiscount returns a boolean if a field has been set.
+func (o *OrderDTO) HasBuyerTotalBeforeDiscount() bool {
+ if o != nil && !IsNil(o.BuyerTotalBeforeDiscount) {
+ return true
+ }
+
+ return false
+}
+
+// SetBuyerTotalBeforeDiscount gets a reference to the given float32 and assigns it to the BuyerTotalBeforeDiscount field.
+// Deprecated
+func (o *OrderDTO) SetBuyerTotalBeforeDiscount(v float32) {
+ o.BuyerTotalBeforeDiscount = &v
+}
+
+// GetPaymentType returns the PaymentType field value
+func (o *OrderDTO) GetPaymentType() OrderPaymentType {
+ if o == nil {
+ var ret OrderPaymentType
+ return ret
+ }
+
+ return o.PaymentType
+}
+
+// GetPaymentTypeOk returns a tuple with the PaymentType field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetPaymentTypeOk() (*OrderPaymentType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PaymentType, true
+}
+
+// SetPaymentType sets field value
+func (o *OrderDTO) SetPaymentType(v OrderPaymentType) {
+ o.PaymentType = v
+}
+
+// GetPaymentMethod returns the PaymentMethod field value
+func (o *OrderDTO) GetPaymentMethod() OrderPaymentMethodType {
+ if o == nil {
+ var ret OrderPaymentMethodType
+ return ret
+ }
+
+ return o.PaymentMethod
+}
+
+// GetPaymentMethodOk returns a tuple with the PaymentMethod field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetPaymentMethodOk() (*OrderPaymentMethodType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PaymentMethod, true
+}
+
+// SetPaymentMethod sets field value
+func (o *OrderDTO) SetPaymentMethod(v OrderPaymentMethodType) {
+ o.PaymentMethod = v
+}
+
+// GetFake returns the Fake field value
+func (o *OrderDTO) GetFake() bool {
+ if o == nil {
+ var ret bool
+ return ret
+ }
+
+ return o.Fake
+}
+
+// GetFakeOk returns a tuple with the Fake field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetFakeOk() (*bool, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Fake, true
+}
+
+// SetFake sets field value
+func (o *OrderDTO) SetFake(v bool) {
+ o.Fake = v
+}
+
+// GetItems returns the Items field value
+func (o *OrderDTO) GetItems() []OrderItemDTO {
+ if o == nil {
+ var ret []OrderItemDTO
+ return ret
+ }
+
+ return o.Items
+}
+
+// GetItemsOk returns a tuple with the Items field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetItemsOk() ([]OrderItemDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Items, true
+}
+
+// SetItems sets field value
+func (o *OrderDTO) SetItems(v []OrderItemDTO) {
+ o.Items = v
+}
+
+// GetSubsidies returns the Subsidies field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrderDTO) GetSubsidies() []OrderSubsidyDTO {
+ if o == nil {
+ var ret []OrderSubsidyDTO
+ return ret
+ }
+ return o.Subsidies
+}
+
+// GetSubsidiesOk returns a tuple with the Subsidies field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrderDTO) GetSubsidiesOk() ([]OrderSubsidyDTO, bool) {
+ if o == nil || IsNil(o.Subsidies) {
+ return nil, false
+ }
+ return o.Subsidies, true
+}
+
+// HasSubsidies returns a boolean if a field has been set.
+func (o *OrderDTO) HasSubsidies() bool {
+ if o != nil && !IsNil(o.Subsidies) {
+ return true
+ }
+
+ return false
+}
+
+// SetSubsidies gets a reference to the given []OrderSubsidyDTO and assigns it to the Subsidies field.
+func (o *OrderDTO) SetSubsidies(v []OrderSubsidyDTO) {
+ o.Subsidies = v
+}
+
+// GetDelivery returns the Delivery field value
+func (o *OrderDTO) GetDelivery() OrderDeliveryDTO {
+ if o == nil {
+ var ret OrderDeliveryDTO
+ return ret
+ }
+
+ return o.Delivery
+}
+
+// GetDeliveryOk returns a tuple with the Delivery field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetDeliveryOk() (*OrderDeliveryDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Delivery, true
+}
+
+// SetDelivery sets field value
+func (o *OrderDTO) SetDelivery(v OrderDeliveryDTO) {
+ o.Delivery = v
+}
+
+// GetBuyer returns the Buyer field value
+func (o *OrderDTO) GetBuyer() OrderBuyerDTO {
+ if o == nil {
+ var ret OrderBuyerDTO
+ return ret
+ }
+
+ return o.Buyer
+}
+
+// GetBuyerOk returns a tuple with the Buyer field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetBuyerOk() (*OrderBuyerDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Buyer, true
+}
+
+// SetBuyer sets field value
+func (o *OrderDTO) SetBuyer(v OrderBuyerDTO) {
+ o.Buyer = v
+}
+
+// GetNotes returns the Notes field value if set, zero value otherwise.
+func (o *OrderDTO) GetNotes() string {
+ if o == nil || IsNil(o.Notes) {
+ var ret string
+ return ret
+ }
+ return *o.Notes
+}
+
+// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetNotesOk() (*string, bool) {
+ if o == nil || IsNil(o.Notes) {
+ return nil, false
+ }
+ return o.Notes, true
+}
+
+// HasNotes returns a boolean if a field has been set.
+func (o *OrderDTO) HasNotes() bool {
+ if o != nil && !IsNil(o.Notes) {
+ return true
+ }
+
+ return false
+}
+
+// SetNotes gets a reference to the given string and assigns it to the Notes field.
+func (o *OrderDTO) SetNotes(v string) {
+ o.Notes = &v
+}
+
+// GetTaxSystem returns the TaxSystem field value
+func (o *OrderDTO) GetTaxSystem() OrderTaxSystemType {
+ if o == nil {
+ var ret OrderTaxSystemType
+ return ret
+ }
+
+ return o.TaxSystem
+}
+
+// GetTaxSystemOk returns a tuple with the TaxSystem field value
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetTaxSystemOk() (*OrderTaxSystemType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TaxSystem, true
+}
+
+// SetTaxSystem sets field value
+func (o *OrderDTO) SetTaxSystem(v OrderTaxSystemType) {
+ o.TaxSystem = v
+}
+
+// GetCancelRequested returns the CancelRequested field value if set, zero value otherwise.
+func (o *OrderDTO) GetCancelRequested() bool {
+ if o == nil || IsNil(o.CancelRequested) {
+ var ret bool
+ return ret
+ }
+ return *o.CancelRequested
+}
+
+// GetCancelRequestedOk returns a tuple with the CancelRequested field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetCancelRequestedOk() (*bool, bool) {
+ if o == nil || IsNil(o.CancelRequested) {
+ return nil, false
+ }
+ return o.CancelRequested, true
+}
+
+// HasCancelRequested returns a boolean if a field has been set.
+func (o *OrderDTO) HasCancelRequested() bool {
+ if o != nil && !IsNil(o.CancelRequested) {
+ return true
+ }
+
+ return false
+}
+
+// SetCancelRequested gets a reference to the given bool and assigns it to the CancelRequested field.
+func (o *OrderDTO) SetCancelRequested(v bool) {
+ o.CancelRequested = &v
+}
+
+// GetExpiryDate returns the ExpiryDate field value if set, zero value otherwise.
+func (o *OrderDTO) GetExpiryDate() string {
+ if o == nil || IsNil(o.ExpiryDate) {
+ var ret string
+ return ret
+ }
+ return *o.ExpiryDate
+}
+
+// GetExpiryDateOk returns a tuple with the ExpiryDate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderDTO) GetExpiryDateOk() (*string, bool) {
+ if o == nil || IsNil(o.ExpiryDate) {
+ return nil, false
+ }
+ return o.ExpiryDate, true
+}
+
+// HasExpiryDate returns a boolean if a field has been set.
+func (o *OrderDTO) HasExpiryDate() bool {
+ if o != nil && !IsNil(o.ExpiryDate) {
+ return true
+ }
+
+ return false
+}
+
+// SetExpiryDate gets a reference to the given string and assigns it to the ExpiryDate field.
+func (o *OrderDTO) SetExpiryDate(v string) {
+ o.ExpiryDate = &v
+}
+
+func (o OrderDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ if !IsNil(o.ExternalOrderId) {
+ toSerialize["externalOrderId"] = o.ExternalOrderId
+ }
+ toSerialize["status"] = o.Status
+ toSerialize["substatus"] = o.Substatus
+ toSerialize["creationDate"] = o.CreationDate
+ if !IsNil(o.UpdatedAt) {
+ toSerialize["updatedAt"] = o.UpdatedAt
+ }
+ toSerialize["currency"] = o.Currency
+ toSerialize["itemsTotal"] = o.ItemsTotal
+ toSerialize["deliveryTotal"] = o.DeliveryTotal
+ if !IsNil(o.BuyerItemsTotal) {
+ toSerialize["buyerItemsTotal"] = o.BuyerItemsTotal
+ }
+ if !IsNil(o.BuyerTotal) {
+ toSerialize["buyerTotal"] = o.BuyerTotal
+ }
+ toSerialize["buyerItemsTotalBeforeDiscount"] = o.BuyerItemsTotalBeforeDiscount
+ if !IsNil(o.BuyerTotalBeforeDiscount) {
+ toSerialize["buyerTotalBeforeDiscount"] = o.BuyerTotalBeforeDiscount
+ }
+ toSerialize["paymentType"] = o.PaymentType
+ toSerialize["paymentMethod"] = o.PaymentMethod
+ toSerialize["fake"] = o.Fake
+ toSerialize["items"] = o.Items
+ if o.Subsidies != nil {
+ toSerialize["subsidies"] = o.Subsidies
+ }
+ toSerialize["delivery"] = o.Delivery
+ toSerialize["buyer"] = o.Buyer
+ if !IsNil(o.Notes) {
+ toSerialize["notes"] = o.Notes
+ }
+ toSerialize["taxSystem"] = o.TaxSystem
+ if !IsNil(o.CancelRequested) {
+ toSerialize["cancelRequested"] = o.CancelRequested
+ }
+ if !IsNil(o.ExpiryDate) {
+ toSerialize["expiryDate"] = o.ExpiryDate
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "status",
+ "substatus",
+ "creationDate",
+ "currency",
+ "itemsTotal",
+ "deliveryTotal",
+ "buyerItemsTotalBeforeDiscount",
+ "paymentType",
+ "paymentMethod",
+ "fake",
+ "items",
+ "delivery",
+ "buyer",
+ "taxSystem",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderDTO := _OrderDTO{}
+
+ err = json.Unmarshal(data, &varOrderDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderDTO(varOrderDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "externalOrderId")
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "substatus")
+ delete(additionalProperties, "creationDate")
+ delete(additionalProperties, "updatedAt")
+ delete(additionalProperties, "currency")
+ delete(additionalProperties, "itemsTotal")
+ delete(additionalProperties, "deliveryTotal")
+ delete(additionalProperties, "buyerItemsTotal")
+ delete(additionalProperties, "buyerTotal")
+ delete(additionalProperties, "buyerItemsTotalBeforeDiscount")
+ delete(additionalProperties, "buyerTotalBeforeDiscount")
+ delete(additionalProperties, "paymentType")
+ delete(additionalProperties, "paymentMethod")
+ delete(additionalProperties, "fake")
+ delete(additionalProperties, "items")
+ delete(additionalProperties, "subsidies")
+ delete(additionalProperties, "delivery")
+ delete(additionalProperties, "buyer")
+ delete(additionalProperties, "notes")
+ delete(additionalProperties, "taxSystem")
+ delete(additionalProperties, "cancelRequested")
+ delete(additionalProperties, "expiryDate")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderDTO struct {
+ value *OrderDTO
+ isSet bool
+}
+
+func (v NullableOrderDTO) Get() *OrderDTO {
+ return v.value
+}
+
+func (v *NullableOrderDTO) Set(val *OrderDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderDTO(val *OrderDTO) *NullableOrderDTO {
+ return &NullableOrderDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_detail_dto.go b/pkg/api/yandex/ymclient/model_order_item_detail_dto.go
new file mode 100644
index 0000000..f8e5b5d
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_detail_dto.go
@@ -0,0 +1,226 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderItemDetailDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderItemDetailDTO{}
+
+// OrderItemDetailDTO Детали по товару в заказе.
+type OrderItemDetailDTO struct {
+ // Количество единиц товара.
+ ItemCount int64 `json:"itemCount"`
+ ItemStatus OrderItemStatusType `json:"itemStatus"`
+ // Формат даты: `ДД-ММ-ГГГГ`.
+ UpdateDate string `json:"updateDate"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderItemDetailDTO OrderItemDetailDTO
+
+// NewOrderItemDetailDTO instantiates a new OrderItemDetailDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderItemDetailDTO(itemCount int64, itemStatus OrderItemStatusType, updateDate string) *OrderItemDetailDTO {
+ this := OrderItemDetailDTO{}
+ this.ItemCount = itemCount
+ this.ItemStatus = itemStatus
+ this.UpdateDate = updateDate
+ return &this
+}
+
+// NewOrderItemDetailDTOWithDefaults instantiates a new OrderItemDetailDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderItemDetailDTOWithDefaults() *OrderItemDetailDTO {
+ this := OrderItemDetailDTO{}
+ return &this
+}
+
+// GetItemCount returns the ItemCount field value
+func (o *OrderItemDetailDTO) GetItemCount() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.ItemCount
+}
+
+// GetItemCountOk returns a tuple with the ItemCount field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemDetailDTO) GetItemCountOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ItemCount, true
+}
+
+// SetItemCount sets field value
+func (o *OrderItemDetailDTO) SetItemCount(v int64) {
+ o.ItemCount = v
+}
+
+// GetItemStatus returns the ItemStatus field value
+func (o *OrderItemDetailDTO) GetItemStatus() OrderItemStatusType {
+ if o == nil {
+ var ret OrderItemStatusType
+ return ret
+ }
+
+ return o.ItemStatus
+}
+
+// GetItemStatusOk returns a tuple with the ItemStatus field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemDetailDTO) GetItemStatusOk() (*OrderItemStatusType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ItemStatus, true
+}
+
+// SetItemStatus sets field value
+func (o *OrderItemDetailDTO) SetItemStatus(v OrderItemStatusType) {
+ o.ItemStatus = v
+}
+
+// GetUpdateDate returns the UpdateDate field value
+func (o *OrderItemDetailDTO) GetUpdateDate() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.UpdateDate
+}
+
+// GetUpdateDateOk returns a tuple with the UpdateDate field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemDetailDTO) GetUpdateDateOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateDate, true
+}
+
+// SetUpdateDate sets field value
+func (o *OrderItemDetailDTO) SetUpdateDate(v string) {
+ o.UpdateDate = v
+}
+
+func (o OrderItemDetailDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderItemDetailDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["itemCount"] = o.ItemCount
+ toSerialize["itemStatus"] = o.ItemStatus
+ toSerialize["updateDate"] = o.UpdateDate
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderItemDetailDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "itemCount",
+ "itemStatus",
+ "updateDate",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderItemDetailDTO := _OrderItemDetailDTO{}
+
+ err = json.Unmarshal(data, &varOrderItemDetailDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderItemDetailDTO(varOrderItemDetailDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "itemCount")
+ delete(additionalProperties, "itemStatus")
+ delete(additionalProperties, "updateDate")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderItemDetailDTO struct {
+ value *OrderItemDetailDTO
+ isSet bool
+}
+
+func (v NullableOrderItemDetailDTO) Get() *OrderItemDetailDTO {
+ return v.value
+}
+
+func (v *NullableOrderItemDetailDTO) Set(val *OrderItemDetailDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemDetailDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemDetailDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemDetailDTO(val *OrderItemDetailDTO) *NullableOrderItemDetailDTO {
+ return &NullableOrderItemDetailDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderItemDetailDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemDetailDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_dto.go b/pkg/api/yandex/ymclient/model_order_item_dto.go
new file mode 100644
index 0000000..013743f
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_dto.go
@@ -0,0 +1,778 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderItemDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderItemDTO{}
+
+// OrderItemDTO Список товаров в заказе.
+type OrderItemDTO struct {
+ // Идентификатор товара в заказе. Позволяет идентифицировать товар в рамках данного заказа.
+ Id int64 `json:"id"`
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Название товара.
+ OfferName string `json:"offerName"`
+ // Цена на товар в валюте заказа без учета вознаграждения продавцу за скидки по промокодам, купонам и акциям (параметр `subsidies`). Включает НДС.
+ Price float32 `json:"price"`
+ // Цена на товар в валюте покупателя. В цене уже учтены скидки по: * акциям; * купонам; * промокодам.
+ BuyerPrice float32 `json:"buyerPrice"`
+ // Стоимость товара в валюте покупателя до применения скидок по: * акциям; * купонам; * промокодам.
+ BuyerPriceBeforeDiscount float32 `json:"buyerPriceBeforeDiscount"`
+ // Стоимость товара в валюте магазина до применения скидок.
+ // Deprecated
+ PriceBeforeDiscount *float32 `json:"priceBeforeDiscount,omitempty"`
+ // Количество единиц товара.
+ Count int32 `json:"count"`
+ Vat OrderVatType `json:"vat"`
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ ShopSku *string `json:"shopSku,omitempty" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // {% note warning \"Вместо него используйте `subsidies`.\" %} {% endnote %} Общее вознаграждение продавцу за DBS-доставку и все скидки на товар: * по промокодам; * по купонам; * по баллам Плюса; * по акциям.
+ // Deprecated
+ Subsidy *float32 `json:"subsidy,omitempty"`
+ // Идентификатор склада в системе магазина, на который сформирован заказ.
+ // Deprecated
+ PartnerWarehouseId *string `json:"partnerWarehouseId,omitempty"`
+ // Информация о вознаграждениях продавцу за скидки на товар по промокодам, купонам и акциям.
+ Promos []OrderItemPromoDTO `json:"promos,omitempty"`
+ // Информация о маркировке единиц товара. Возвращаются данные для маркировки, переданные в запросе [PUT campaigns/{campaignId}/orders/{orderId}/identifiers](../../reference/orders/provideOrderItemIdentifiers.md). Если магазин еще не передавал коды для этого заказа, `instances` отсутствует.
+ Instances []OrderItemInstanceDTO `json:"instances,omitempty"`
+ // {% note warning \"Для получения информации о невыкупах и возвратах используйте [GET campaigns/{campaignId}/returns](../../reference/orders/getReturns.md).\" %} {% endnote %} Информация о невыкупленных или возвращенных товарах в заказе.
+ // Deprecated
+ Details []OrderItemDetailDTO `json:"details,omitempty"`
+ // Список субсидий по типам.
+ Subsidies []OrderItemSubsidyDTO `json:"subsidies,omitempty"`
+ // Список необходимых маркировок товара.
+ RequiredInstanceTypes []OrderItemInstanceType `json:"requiredInstanceTypes,omitempty"`
+ // Признаки товара.
+ Tags []OrderItemTagType `json:"tags,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderItemDTO OrderItemDTO
+
+// NewOrderItemDTO instantiates a new OrderItemDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderItemDTO(id int64, offerId string, offerName string, price float32, buyerPrice float32, buyerPriceBeforeDiscount float32, count int32, vat OrderVatType) *OrderItemDTO {
+ this := OrderItemDTO{}
+ this.Id = id
+ this.OfferId = offerId
+ this.OfferName = offerName
+ this.Price = price
+ this.BuyerPrice = buyerPrice
+ this.BuyerPriceBeforeDiscount = buyerPriceBeforeDiscount
+ this.Count = count
+ this.Vat = vat
+ return &this
+}
+
+// NewOrderItemDTOWithDefaults instantiates a new OrderItemDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderItemDTOWithDefaults() *OrderItemDTO {
+ this := OrderItemDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *OrderItemDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *OrderItemDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetOfferId returns the OfferId field value
+func (o *OrderItemDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *OrderItemDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetOfferName returns the OfferName field value
+func (o *OrderItemDTO) GetOfferName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferName
+}
+
+// GetOfferNameOk returns a tuple with the OfferName field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemDTO) GetOfferNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferName, true
+}
+
+// SetOfferName sets field value
+func (o *OrderItemDTO) SetOfferName(v string) {
+ o.OfferName = v
+}
+
+// GetPrice returns the Price field value
+func (o *OrderItemDTO) GetPrice() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Price
+}
+
+// GetPriceOk returns a tuple with the Price field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemDTO) GetPriceOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Price, true
+}
+
+// SetPrice sets field value
+func (o *OrderItemDTO) SetPrice(v float32) {
+ o.Price = v
+}
+
+// GetBuyerPrice returns the BuyerPrice field value
+func (o *OrderItemDTO) GetBuyerPrice() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.BuyerPrice
+}
+
+// GetBuyerPriceOk returns a tuple with the BuyerPrice field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemDTO) GetBuyerPriceOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.BuyerPrice, true
+}
+
+// SetBuyerPrice sets field value
+func (o *OrderItemDTO) SetBuyerPrice(v float32) {
+ o.BuyerPrice = v
+}
+
+// GetBuyerPriceBeforeDiscount returns the BuyerPriceBeforeDiscount field value
+func (o *OrderItemDTO) GetBuyerPriceBeforeDiscount() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.BuyerPriceBeforeDiscount
+}
+
+// GetBuyerPriceBeforeDiscountOk returns a tuple with the BuyerPriceBeforeDiscount field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemDTO) GetBuyerPriceBeforeDiscountOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.BuyerPriceBeforeDiscount, true
+}
+
+// SetBuyerPriceBeforeDiscount sets field value
+func (o *OrderItemDTO) SetBuyerPriceBeforeDiscount(v float32) {
+ o.BuyerPriceBeforeDiscount = v
+}
+
+// GetPriceBeforeDiscount returns the PriceBeforeDiscount field value if set, zero value otherwise.
+// Deprecated
+func (o *OrderItemDTO) GetPriceBeforeDiscount() float32 {
+ if o == nil || IsNil(o.PriceBeforeDiscount) {
+ var ret float32
+ return ret
+ }
+ return *o.PriceBeforeDiscount
+}
+
+// GetPriceBeforeDiscountOk returns a tuple with the PriceBeforeDiscount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *OrderItemDTO) GetPriceBeforeDiscountOk() (*float32, bool) {
+ if o == nil || IsNil(o.PriceBeforeDiscount) {
+ return nil, false
+ }
+ return o.PriceBeforeDiscount, true
+}
+
+// HasPriceBeforeDiscount returns a boolean if a field has been set.
+func (o *OrderItemDTO) HasPriceBeforeDiscount() bool {
+ if o != nil && !IsNil(o.PriceBeforeDiscount) {
+ return true
+ }
+
+ return false
+}
+
+// SetPriceBeforeDiscount gets a reference to the given float32 and assigns it to the PriceBeforeDiscount field.
+// Deprecated
+func (o *OrderItemDTO) SetPriceBeforeDiscount(v float32) {
+ o.PriceBeforeDiscount = &v
+}
+
+// GetCount returns the Count field value
+func (o *OrderItemDTO) GetCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Count
+}
+
+// GetCountOk returns a tuple with the Count field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemDTO) GetCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Count, true
+}
+
+// SetCount sets field value
+func (o *OrderItemDTO) SetCount(v int32) {
+ o.Count = v
+}
+
+// GetVat returns the Vat field value
+func (o *OrderItemDTO) GetVat() OrderVatType {
+ if o == nil {
+ var ret OrderVatType
+ return ret
+ }
+
+ return o.Vat
+}
+
+// GetVatOk returns a tuple with the Vat field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemDTO) GetVatOk() (*OrderVatType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Vat, true
+}
+
+// SetVat sets field value
+func (o *OrderItemDTO) SetVat(v OrderVatType) {
+ o.Vat = v
+}
+
+// GetShopSku returns the ShopSku field value if set, zero value otherwise.
+func (o *OrderItemDTO) GetShopSku() string {
+ if o == nil || IsNil(o.ShopSku) {
+ var ret string
+ return ret
+ }
+ return *o.ShopSku
+}
+
+// GetShopSkuOk returns a tuple with the ShopSku field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderItemDTO) GetShopSkuOk() (*string, bool) {
+ if o == nil || IsNil(o.ShopSku) {
+ return nil, false
+ }
+ return o.ShopSku, true
+}
+
+// HasShopSku returns a boolean if a field has been set.
+func (o *OrderItemDTO) HasShopSku() bool {
+ if o != nil && !IsNil(o.ShopSku) {
+ return true
+ }
+
+ return false
+}
+
+// SetShopSku gets a reference to the given string and assigns it to the ShopSku field.
+func (o *OrderItemDTO) SetShopSku(v string) {
+ o.ShopSku = &v
+}
+
+// GetSubsidy returns the Subsidy field value if set, zero value otherwise.
+// Deprecated
+func (o *OrderItemDTO) GetSubsidy() float32 {
+ if o == nil || IsNil(o.Subsidy) {
+ var ret float32
+ return ret
+ }
+ return *o.Subsidy
+}
+
+// GetSubsidyOk returns a tuple with the Subsidy field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *OrderItemDTO) GetSubsidyOk() (*float32, bool) {
+ if o == nil || IsNil(o.Subsidy) {
+ return nil, false
+ }
+ return o.Subsidy, true
+}
+
+// HasSubsidy returns a boolean if a field has been set.
+func (o *OrderItemDTO) HasSubsidy() bool {
+ if o != nil && !IsNil(o.Subsidy) {
+ return true
+ }
+
+ return false
+}
+
+// SetSubsidy gets a reference to the given float32 and assigns it to the Subsidy field.
+// Deprecated
+func (o *OrderItemDTO) SetSubsidy(v float32) {
+ o.Subsidy = &v
+}
+
+// GetPartnerWarehouseId returns the PartnerWarehouseId field value if set, zero value otherwise.
+// Deprecated
+func (o *OrderItemDTO) GetPartnerWarehouseId() string {
+ if o == nil || IsNil(o.PartnerWarehouseId) {
+ var ret string
+ return ret
+ }
+ return *o.PartnerWarehouseId
+}
+
+// GetPartnerWarehouseIdOk returns a tuple with the PartnerWarehouseId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *OrderItemDTO) GetPartnerWarehouseIdOk() (*string, bool) {
+ if o == nil || IsNil(o.PartnerWarehouseId) {
+ return nil, false
+ }
+ return o.PartnerWarehouseId, true
+}
+
+// HasPartnerWarehouseId returns a boolean if a field has been set.
+func (o *OrderItemDTO) HasPartnerWarehouseId() bool {
+ if o != nil && !IsNil(o.PartnerWarehouseId) {
+ return true
+ }
+
+ return false
+}
+
+// SetPartnerWarehouseId gets a reference to the given string and assigns it to the PartnerWarehouseId field.
+// Deprecated
+func (o *OrderItemDTO) SetPartnerWarehouseId(v string) {
+ o.PartnerWarehouseId = &v
+}
+
+// GetPromos returns the Promos field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrderItemDTO) GetPromos() []OrderItemPromoDTO {
+ if o == nil {
+ var ret []OrderItemPromoDTO
+ return ret
+ }
+ return o.Promos
+}
+
+// GetPromosOk returns a tuple with the Promos field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrderItemDTO) GetPromosOk() ([]OrderItemPromoDTO, bool) {
+ if o == nil || IsNil(o.Promos) {
+ return nil, false
+ }
+ return o.Promos, true
+}
+
+// HasPromos returns a boolean if a field has been set.
+func (o *OrderItemDTO) HasPromos() bool {
+ if o != nil && !IsNil(o.Promos) {
+ return true
+ }
+
+ return false
+}
+
+// SetPromos gets a reference to the given []OrderItemPromoDTO and assigns it to the Promos field.
+func (o *OrderItemDTO) SetPromos(v []OrderItemPromoDTO) {
+ o.Promos = v
+}
+
+// GetInstances returns the Instances field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrderItemDTO) GetInstances() []OrderItemInstanceDTO {
+ if o == nil {
+ var ret []OrderItemInstanceDTO
+ return ret
+ }
+ return o.Instances
+}
+
+// GetInstancesOk returns a tuple with the Instances field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrderItemDTO) GetInstancesOk() ([]OrderItemInstanceDTO, bool) {
+ if o == nil || IsNil(o.Instances) {
+ return nil, false
+ }
+ return o.Instances, true
+}
+
+// HasInstances returns a boolean if a field has been set.
+func (o *OrderItemDTO) HasInstances() bool {
+ if o != nil && !IsNil(o.Instances) {
+ return true
+ }
+
+ return false
+}
+
+// SetInstances gets a reference to the given []OrderItemInstanceDTO and assigns it to the Instances field.
+func (o *OrderItemDTO) SetInstances(v []OrderItemInstanceDTO) {
+ o.Instances = v
+}
+
+// GetDetails returns the Details field value if set, zero value otherwise (both if not set or set to explicit null).
+// Deprecated
+func (o *OrderItemDTO) GetDetails() []OrderItemDetailDTO {
+ if o == nil {
+ var ret []OrderItemDetailDTO
+ return ret
+ }
+ return o.Details
+}
+
+// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+// Deprecated
+func (o *OrderItemDTO) GetDetailsOk() ([]OrderItemDetailDTO, bool) {
+ if o == nil || IsNil(o.Details) {
+ return nil, false
+ }
+ return o.Details, true
+}
+
+// HasDetails returns a boolean if a field has been set.
+func (o *OrderItemDTO) HasDetails() bool {
+ if o != nil && !IsNil(o.Details) {
+ return true
+ }
+
+ return false
+}
+
+// SetDetails gets a reference to the given []OrderItemDetailDTO and assigns it to the Details field.
+// Deprecated
+func (o *OrderItemDTO) SetDetails(v []OrderItemDetailDTO) {
+ o.Details = v
+}
+
+// GetSubsidies returns the Subsidies field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrderItemDTO) GetSubsidies() []OrderItemSubsidyDTO {
+ if o == nil {
+ var ret []OrderItemSubsidyDTO
+ return ret
+ }
+ return o.Subsidies
+}
+
+// GetSubsidiesOk returns a tuple with the Subsidies field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrderItemDTO) GetSubsidiesOk() ([]OrderItemSubsidyDTO, bool) {
+ if o == nil || IsNil(o.Subsidies) {
+ return nil, false
+ }
+ return o.Subsidies, true
+}
+
+// HasSubsidies returns a boolean if a field has been set.
+func (o *OrderItemDTO) HasSubsidies() bool {
+ if o != nil && !IsNil(o.Subsidies) {
+ return true
+ }
+
+ return false
+}
+
+// SetSubsidies gets a reference to the given []OrderItemSubsidyDTO and assigns it to the Subsidies field.
+func (o *OrderItemDTO) SetSubsidies(v []OrderItemSubsidyDTO) {
+ o.Subsidies = v
+}
+
+// GetRequiredInstanceTypes returns the RequiredInstanceTypes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrderItemDTO) GetRequiredInstanceTypes() []OrderItemInstanceType {
+ if o == nil {
+ var ret []OrderItemInstanceType
+ return ret
+ }
+ return o.RequiredInstanceTypes
+}
+
+// GetRequiredInstanceTypesOk returns a tuple with the RequiredInstanceTypes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrderItemDTO) GetRequiredInstanceTypesOk() ([]OrderItemInstanceType, bool) {
+ if o == nil || IsNil(o.RequiredInstanceTypes) {
+ return nil, false
+ }
+ return o.RequiredInstanceTypes, true
+}
+
+// HasRequiredInstanceTypes returns a boolean if a field has been set.
+func (o *OrderItemDTO) HasRequiredInstanceTypes() bool {
+ if o != nil && !IsNil(o.RequiredInstanceTypes) {
+ return true
+ }
+
+ return false
+}
+
+// SetRequiredInstanceTypes gets a reference to the given []OrderItemInstanceType and assigns it to the RequiredInstanceTypes field.
+func (o *OrderItemDTO) SetRequiredInstanceTypes(v []OrderItemInstanceType) {
+ o.RequiredInstanceTypes = v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrderItemDTO) GetTags() []OrderItemTagType {
+ if o == nil {
+ var ret []OrderItemTagType
+ return ret
+ }
+ return o.Tags
+}
+
+// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrderItemDTO) GetTagsOk() ([]OrderItemTagType, bool) {
+ if o == nil || IsNil(o.Tags) {
+ return nil, false
+ }
+ return o.Tags, true
+}
+
+// HasTags returns a boolean if a field has been set.
+func (o *OrderItemDTO) HasTags() bool {
+ if o != nil && !IsNil(o.Tags) {
+ return true
+ }
+
+ return false
+}
+
+// SetTags gets a reference to the given []OrderItemTagType and assigns it to the Tags field.
+func (o *OrderItemDTO) SetTags(v []OrderItemTagType) {
+ o.Tags = v
+}
+
+func (o OrderItemDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderItemDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["offerId"] = o.OfferId
+ toSerialize["offerName"] = o.OfferName
+ toSerialize["price"] = o.Price
+ toSerialize["buyerPrice"] = o.BuyerPrice
+ toSerialize["buyerPriceBeforeDiscount"] = o.BuyerPriceBeforeDiscount
+ if !IsNil(o.PriceBeforeDiscount) {
+ toSerialize["priceBeforeDiscount"] = o.PriceBeforeDiscount
+ }
+ toSerialize["count"] = o.Count
+ toSerialize["vat"] = o.Vat
+ if !IsNil(o.ShopSku) {
+ toSerialize["shopSku"] = o.ShopSku
+ }
+ if !IsNil(o.Subsidy) {
+ toSerialize["subsidy"] = o.Subsidy
+ }
+ if !IsNil(o.PartnerWarehouseId) {
+ toSerialize["partnerWarehouseId"] = o.PartnerWarehouseId
+ }
+ if o.Promos != nil {
+ toSerialize["promos"] = o.Promos
+ }
+ if o.Instances != nil {
+ toSerialize["instances"] = o.Instances
+ }
+ if o.Details != nil {
+ toSerialize["details"] = o.Details
+ }
+ if o.Subsidies != nil {
+ toSerialize["subsidies"] = o.Subsidies
+ }
+ if o.RequiredInstanceTypes != nil {
+ toSerialize["requiredInstanceTypes"] = o.RequiredInstanceTypes
+ }
+ if o.Tags != nil {
+ toSerialize["tags"] = o.Tags
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderItemDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "offerId",
+ "offerName",
+ "price",
+ "buyerPrice",
+ "buyerPriceBeforeDiscount",
+ "count",
+ "vat",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderItemDTO := _OrderItemDTO{}
+
+ err = json.Unmarshal(data, &varOrderItemDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderItemDTO(varOrderItemDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "offerName")
+ delete(additionalProperties, "price")
+ delete(additionalProperties, "buyerPrice")
+ delete(additionalProperties, "buyerPriceBeforeDiscount")
+ delete(additionalProperties, "priceBeforeDiscount")
+ delete(additionalProperties, "count")
+ delete(additionalProperties, "vat")
+ delete(additionalProperties, "shopSku")
+ delete(additionalProperties, "subsidy")
+ delete(additionalProperties, "partnerWarehouseId")
+ delete(additionalProperties, "promos")
+ delete(additionalProperties, "instances")
+ delete(additionalProperties, "details")
+ delete(additionalProperties, "subsidies")
+ delete(additionalProperties, "requiredInstanceTypes")
+ delete(additionalProperties, "tags")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderItemDTO struct {
+ value *OrderItemDTO
+ isSet bool
+}
+
+func (v NullableOrderItemDTO) Get() *OrderItemDTO {
+ return v.value
+}
+
+func (v *NullableOrderItemDTO) Set(val *OrderItemDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemDTO(val *OrderItemDTO) *NullableOrderItemDTO {
+ return &NullableOrderItemDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderItemDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_instance_dto.go b/pkg/api/yandex/ymclient/model_order_item_instance_dto.go
new file mode 100644
index 0000000..de62360
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_instance_dto.go
@@ -0,0 +1,344 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrderItemInstanceDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderItemInstanceDTO{}
+
+// OrderItemInstanceDTO Переданные вами для данной позиции коды маркировки или УИНы. Коды «Честного знака» возвращаются в двух вариантах — с криптохвостом и без.
+type OrderItemInstanceDTO struct {
+ // Код идентификации единицы товара в системе [«Честный ЗНАК»](https://честныйзнак.рф/) без криптохвоста или [«ASL BELGISI»](https://aslbelgisi.uz) (для продавцов Market Yandex Go).
+ Cis *string `json:"cis,omitempty"`
+ // Код идентификации единицы товара в системе [«Честный ЗНАК»](https://честныйзнак.рф/) с криптохвостом.
+ CisFull *string `json:"cisFull,omitempty"`
+ // УИН ювелирного изделия (16-значный код) Производитель получает УИН, когда регистрирует изделие в системе контроля за оборотом драгоценных металлов и камней — ГИИС ДМДК.
+ Uin *string `json:"uin,omitempty"`
+ // Регистрационный номер партии товара. Представляет собой строку из четырех чисел, разделенных косой чертой: ХХХХХХХХ/ХХХХХХ/ХХХХХХХ/ХХХ. Первая часть — код таможни, которая зарегистрировала декларацию на партию товара. Далее — дата, номер декларации и номер маркированного товара в декларации.
+ Rnpt *string `json:"rnpt,omitempty"`
+ // Грузовая таможенная декларация. Представляет собой строку из трех чисел, разделенных косой чертой: ХХХХХХХХ/ХХХХХХ/ХХХХХХХ. Первая часть — код таможни, которая зарегистрировала декларацию на ввезенные товары. Далее — дата и номер декларации.
+ Gtd *string `json:"gtd,omitempty"`
+ // Страна производства в формате ISO 3166-1 alpha-2. [Как получить](../../reference/regions/getRegionsCodes.md)
+ CountryCode *string `json:"countryCode,omitempty" validate:"regexp=^[A-Z]{2}$"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderItemInstanceDTO OrderItemInstanceDTO
+
+// NewOrderItemInstanceDTO instantiates a new OrderItemInstanceDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderItemInstanceDTO() *OrderItemInstanceDTO {
+ this := OrderItemInstanceDTO{}
+ return &this
+}
+
+// NewOrderItemInstanceDTOWithDefaults instantiates a new OrderItemInstanceDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderItemInstanceDTOWithDefaults() *OrderItemInstanceDTO {
+ this := OrderItemInstanceDTO{}
+ return &this
+}
+
+// GetCis returns the Cis field value if set, zero value otherwise.
+func (o *OrderItemInstanceDTO) GetCis() string {
+ if o == nil || IsNil(o.Cis) {
+ var ret string
+ return ret
+ }
+ return *o.Cis
+}
+
+// GetCisOk returns a tuple with the Cis field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderItemInstanceDTO) GetCisOk() (*string, bool) {
+ if o == nil || IsNil(o.Cis) {
+ return nil, false
+ }
+ return o.Cis, true
+}
+
+// HasCis returns a boolean if a field has been set.
+func (o *OrderItemInstanceDTO) HasCis() bool {
+ if o != nil && !IsNil(o.Cis) {
+ return true
+ }
+
+ return false
+}
+
+// SetCis gets a reference to the given string and assigns it to the Cis field.
+func (o *OrderItemInstanceDTO) SetCis(v string) {
+ o.Cis = &v
+}
+
+// GetCisFull returns the CisFull field value if set, zero value otherwise.
+func (o *OrderItemInstanceDTO) GetCisFull() string {
+ if o == nil || IsNil(o.CisFull) {
+ var ret string
+ return ret
+ }
+ return *o.CisFull
+}
+
+// GetCisFullOk returns a tuple with the CisFull field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderItemInstanceDTO) GetCisFullOk() (*string, bool) {
+ if o == nil || IsNil(o.CisFull) {
+ return nil, false
+ }
+ return o.CisFull, true
+}
+
+// HasCisFull returns a boolean if a field has been set.
+func (o *OrderItemInstanceDTO) HasCisFull() bool {
+ if o != nil && !IsNil(o.CisFull) {
+ return true
+ }
+
+ return false
+}
+
+// SetCisFull gets a reference to the given string and assigns it to the CisFull field.
+func (o *OrderItemInstanceDTO) SetCisFull(v string) {
+ o.CisFull = &v
+}
+
+// GetUin returns the Uin field value if set, zero value otherwise.
+func (o *OrderItemInstanceDTO) GetUin() string {
+ if o == nil || IsNil(o.Uin) {
+ var ret string
+ return ret
+ }
+ return *o.Uin
+}
+
+// GetUinOk returns a tuple with the Uin field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderItemInstanceDTO) GetUinOk() (*string, bool) {
+ if o == nil || IsNil(o.Uin) {
+ return nil, false
+ }
+ return o.Uin, true
+}
+
+// HasUin returns a boolean if a field has been set.
+func (o *OrderItemInstanceDTO) HasUin() bool {
+ if o != nil && !IsNil(o.Uin) {
+ return true
+ }
+
+ return false
+}
+
+// SetUin gets a reference to the given string and assigns it to the Uin field.
+func (o *OrderItemInstanceDTO) SetUin(v string) {
+ o.Uin = &v
+}
+
+// GetRnpt returns the Rnpt field value if set, zero value otherwise.
+func (o *OrderItemInstanceDTO) GetRnpt() string {
+ if o == nil || IsNil(o.Rnpt) {
+ var ret string
+ return ret
+ }
+ return *o.Rnpt
+}
+
+// GetRnptOk returns a tuple with the Rnpt field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderItemInstanceDTO) GetRnptOk() (*string, bool) {
+ if o == nil || IsNil(o.Rnpt) {
+ return nil, false
+ }
+ return o.Rnpt, true
+}
+
+// HasRnpt returns a boolean if a field has been set.
+func (o *OrderItemInstanceDTO) HasRnpt() bool {
+ if o != nil && !IsNil(o.Rnpt) {
+ return true
+ }
+
+ return false
+}
+
+// SetRnpt gets a reference to the given string and assigns it to the Rnpt field.
+func (o *OrderItemInstanceDTO) SetRnpt(v string) {
+ o.Rnpt = &v
+}
+
+// GetGtd returns the Gtd field value if set, zero value otherwise.
+func (o *OrderItemInstanceDTO) GetGtd() string {
+ if o == nil || IsNil(o.Gtd) {
+ var ret string
+ return ret
+ }
+ return *o.Gtd
+}
+
+// GetGtdOk returns a tuple with the Gtd field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderItemInstanceDTO) GetGtdOk() (*string, bool) {
+ if o == nil || IsNil(o.Gtd) {
+ return nil, false
+ }
+ return o.Gtd, true
+}
+
+// HasGtd returns a boolean if a field has been set.
+func (o *OrderItemInstanceDTO) HasGtd() bool {
+ if o != nil && !IsNil(o.Gtd) {
+ return true
+ }
+
+ return false
+}
+
+// SetGtd gets a reference to the given string and assigns it to the Gtd field.
+func (o *OrderItemInstanceDTO) SetGtd(v string) {
+ o.Gtd = &v
+}
+
+// GetCountryCode returns the CountryCode field value if set, zero value otherwise.
+func (o *OrderItemInstanceDTO) GetCountryCode() string {
+ if o == nil || IsNil(o.CountryCode) {
+ var ret string
+ return ret
+ }
+ return *o.CountryCode
+}
+
+// GetCountryCodeOk returns a tuple with the CountryCode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderItemInstanceDTO) GetCountryCodeOk() (*string, bool) {
+ if o == nil || IsNil(o.CountryCode) {
+ return nil, false
+ }
+ return o.CountryCode, true
+}
+
+// HasCountryCode returns a boolean if a field has been set.
+func (o *OrderItemInstanceDTO) HasCountryCode() bool {
+ if o != nil && !IsNil(o.CountryCode) {
+ return true
+ }
+
+ return false
+}
+
+// SetCountryCode gets a reference to the given string and assigns it to the CountryCode field.
+func (o *OrderItemInstanceDTO) SetCountryCode(v string) {
+ o.CountryCode = &v
+}
+
+func (o OrderItemInstanceDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderItemInstanceDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Cis) {
+ toSerialize["cis"] = o.Cis
+ }
+ if !IsNil(o.CisFull) {
+ toSerialize["cisFull"] = o.CisFull
+ }
+ if !IsNil(o.Uin) {
+ toSerialize["uin"] = o.Uin
+ }
+ if !IsNil(o.Rnpt) {
+ toSerialize["rnpt"] = o.Rnpt
+ }
+ if !IsNil(o.Gtd) {
+ toSerialize["gtd"] = o.Gtd
+ }
+ if !IsNil(o.CountryCode) {
+ toSerialize["countryCode"] = o.CountryCode
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderItemInstanceDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrderItemInstanceDTO := _OrderItemInstanceDTO{}
+
+ err = json.Unmarshal(data, &varOrderItemInstanceDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderItemInstanceDTO(varOrderItemInstanceDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "cis")
+ delete(additionalProperties, "cisFull")
+ delete(additionalProperties, "uin")
+ delete(additionalProperties, "rnpt")
+ delete(additionalProperties, "gtd")
+ delete(additionalProperties, "countryCode")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderItemInstanceDTO struct {
+ value *OrderItemInstanceDTO
+ isSet bool
+}
+
+func (v NullableOrderItemInstanceDTO) Get() *OrderItemInstanceDTO {
+ return v.value
+}
+
+func (v *NullableOrderItemInstanceDTO) Set(val *OrderItemInstanceDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemInstanceDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemInstanceDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemInstanceDTO(val *OrderItemInstanceDTO) *NullableOrderItemInstanceDTO {
+ return &NullableOrderItemInstanceDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderItemInstanceDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemInstanceDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_instance_modification_dto.go b/pkg/api/yandex/ymclient/model_order_item_instance_modification_dto.go
new file mode 100644
index 0000000..0e838e4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_instance_modification_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderItemInstanceModificationDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderItemInstanceModificationDTO{}
+
+// OrderItemInstanceModificationDTO Позиция в корзине, требующая маркировки.
+type OrderItemInstanceModificationDTO struct {
+ // Идентификатор товара в заказе. Он приходит в ответе на запрос [GET campaigns/{campaignId}/orders/{orderId}](../../reference/orders/getOrder.md) — параметр `id` в `items`.
+ Id int64 `json:"id"`
+ // Список кодов маркировки единиц товара.
+ Instances []BriefOrderItemInstanceDTO `json:"instances"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderItemInstanceModificationDTO OrderItemInstanceModificationDTO
+
+// NewOrderItemInstanceModificationDTO instantiates a new OrderItemInstanceModificationDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderItemInstanceModificationDTO(id int64, instances []BriefOrderItemInstanceDTO) *OrderItemInstanceModificationDTO {
+ this := OrderItemInstanceModificationDTO{}
+ this.Id = id
+ this.Instances = instances
+ return &this
+}
+
+// NewOrderItemInstanceModificationDTOWithDefaults instantiates a new OrderItemInstanceModificationDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderItemInstanceModificationDTOWithDefaults() *OrderItemInstanceModificationDTO {
+ this := OrderItemInstanceModificationDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *OrderItemInstanceModificationDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemInstanceModificationDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *OrderItemInstanceModificationDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetInstances returns the Instances field value
+func (o *OrderItemInstanceModificationDTO) GetInstances() []BriefOrderItemInstanceDTO {
+ if o == nil {
+ var ret []BriefOrderItemInstanceDTO
+ return ret
+ }
+
+ return o.Instances
+}
+
+// GetInstancesOk returns a tuple with the Instances field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemInstanceModificationDTO) GetInstancesOk() ([]BriefOrderItemInstanceDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Instances, true
+}
+
+// SetInstances sets field value
+func (o *OrderItemInstanceModificationDTO) SetInstances(v []BriefOrderItemInstanceDTO) {
+ o.Instances = v
+}
+
+func (o OrderItemInstanceModificationDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderItemInstanceModificationDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["instances"] = o.Instances
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderItemInstanceModificationDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "instances",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderItemInstanceModificationDTO := _OrderItemInstanceModificationDTO{}
+
+ err = json.Unmarshal(data, &varOrderItemInstanceModificationDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderItemInstanceModificationDTO(varOrderItemInstanceModificationDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "instances")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderItemInstanceModificationDTO struct {
+ value *OrderItemInstanceModificationDTO
+ isSet bool
+}
+
+func (v NullableOrderItemInstanceModificationDTO) Get() *OrderItemInstanceModificationDTO {
+ return v.value
+}
+
+func (v *NullableOrderItemInstanceModificationDTO) Set(val *OrderItemInstanceModificationDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemInstanceModificationDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemInstanceModificationDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemInstanceModificationDTO(val *OrderItemInstanceModificationDTO) *NullableOrderItemInstanceModificationDTO {
+ return &NullableOrderItemInstanceModificationDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderItemInstanceModificationDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemInstanceModificationDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_instance_type.go b/pkg/api/yandex/ymclient/model_order_item_instance_type.go
new file mode 100644
index 0000000..1a74933
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_instance_type.go
@@ -0,0 +1,116 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderItemInstanceType Вид маркировки товара: * `CIS` — КИЗ, идентификатор единицы товара в системе [«Честный ЗНАК»](https://честныйзнак.рф/) или [«ASL BELGISI»](https://aslbelgisi.uz) (для продавцов Market Yandex Go). Обязателен для заполнения. * `CIS_OPTIONAL` — КИЗ, идентификатор единицы товара в системе [«Честный ЗНАК»](https://честныйзнак.рф/). Необязателен для заполнения, но в ближайшее время потребуется его передача. * `UIN` — УИН, уникальный идентификационный номер. * `RNPT` — РНПТ, регистрационный номер партии товара. * `GTD` — номер ГТД, грузовой таможенной декларации.
+type OrderItemInstanceType string
+
+// List of OrderItemInstanceType
+const (
+ ORDERITEMINSTANCETYPE_CIS OrderItemInstanceType = "CIS"
+ ORDERITEMINSTANCETYPE_CIS_OPTIONAL OrderItemInstanceType = "CIS_OPTIONAL"
+ ORDERITEMINSTANCETYPE_UIN OrderItemInstanceType = "UIN"
+ ORDERITEMINSTANCETYPE_RNPT OrderItemInstanceType = "RNPT"
+ ORDERITEMINSTANCETYPE_GTD OrderItemInstanceType = "GTD"
+)
+
+// All allowed values of OrderItemInstanceType enum
+var AllowedOrderItemInstanceTypeEnumValues = []OrderItemInstanceType{
+ "CIS",
+ "CIS_OPTIONAL",
+ "UIN",
+ "RNPT",
+ "GTD",
+}
+
+func (v *OrderItemInstanceType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderItemInstanceType(value)
+ for _, existing := range AllowedOrderItemInstanceTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderItemInstanceType", value)
+}
+
+// NewOrderItemInstanceTypeFromValue returns a pointer to a valid OrderItemInstanceType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderItemInstanceTypeFromValue(v string) (*OrderItemInstanceType, error) {
+ ev := OrderItemInstanceType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderItemInstanceType: valid values are %v", v, AllowedOrderItemInstanceTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderItemInstanceType) IsValid() bool {
+ for _, existing := range AllowedOrderItemInstanceTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderItemInstanceType value
+func (v OrderItemInstanceType) Ptr() *OrderItemInstanceType {
+ return &v
+}
+
+type NullableOrderItemInstanceType struct {
+ value *OrderItemInstanceType
+ isSet bool
+}
+
+func (v NullableOrderItemInstanceType) Get() *OrderItemInstanceType {
+ return v.value
+}
+
+func (v *NullableOrderItemInstanceType) Set(val *OrderItemInstanceType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemInstanceType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemInstanceType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemInstanceType(val *OrderItemInstanceType) *NullableOrderItemInstanceType {
+ return &NullableOrderItemInstanceType{value: val, isSet: true}
+}
+
+func (v NullableOrderItemInstanceType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemInstanceType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_modification_dto.go b/pkg/api/yandex/ymclient/model_order_item_modification_dto.go
new file mode 100644
index 0000000..575458e
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_modification_dto.go
@@ -0,0 +1,236 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderItemModificationDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderItemModificationDTO{}
+
+// OrderItemModificationDTO Список товаров в заказе. Если магазин не передал информацию о товаре во входных данных, он будет удален из заказа. Обязательный параметр.
+type OrderItemModificationDTO struct {
+ // Идентификатор товара в рамках заказа. Получить идентификатор можно с помощью ресурсов [GET campaigns/{campaignId}/orders](../../reference/orders/getOrders.md) или [GET campaigns/{campaignId}/orders/{orderId}](../../reference/orders/getOrder.md). Обязательный параметр.
+ Id int64 `json:"id"`
+ // Новое количество товара.
+ Count int32 `json:"count"`
+ // Информация о маркировке единиц товара. Передавайте в запросе все единицы товара, который подлежит маркировке. Обязательный параметр, если в заказе от бизнеса есть товары, подлежащие маркировке в системе [:no-translate[«Честный ЗНАК»]](https://честныйзнак.рф/) или [:no-translate[«ASL BELGISI»]](https://aslbelgisi.uz) (для продавцов :no-translate[Market Yandex Go]).
+ Instances []BriefOrderItemInstanceDTO `json:"instances,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderItemModificationDTO OrderItemModificationDTO
+
+// NewOrderItemModificationDTO instantiates a new OrderItemModificationDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderItemModificationDTO(id int64, count int32) *OrderItemModificationDTO {
+ this := OrderItemModificationDTO{}
+ this.Id = id
+ this.Count = count
+ return &this
+}
+
+// NewOrderItemModificationDTOWithDefaults instantiates a new OrderItemModificationDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderItemModificationDTOWithDefaults() *OrderItemModificationDTO {
+ this := OrderItemModificationDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *OrderItemModificationDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemModificationDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *OrderItemModificationDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetCount returns the Count field value
+func (o *OrderItemModificationDTO) GetCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Count
+}
+
+// GetCountOk returns a tuple with the Count field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemModificationDTO) GetCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Count, true
+}
+
+// SetCount sets field value
+func (o *OrderItemModificationDTO) SetCount(v int32) {
+ o.Count = v
+}
+
+// GetInstances returns the Instances field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrderItemModificationDTO) GetInstances() []BriefOrderItemInstanceDTO {
+ if o == nil {
+ var ret []BriefOrderItemInstanceDTO
+ return ret
+ }
+ return o.Instances
+}
+
+// GetInstancesOk returns a tuple with the Instances field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrderItemModificationDTO) GetInstancesOk() ([]BriefOrderItemInstanceDTO, bool) {
+ if o == nil || IsNil(o.Instances) {
+ return nil, false
+ }
+ return o.Instances, true
+}
+
+// HasInstances returns a boolean if a field has been set.
+func (o *OrderItemModificationDTO) HasInstances() bool {
+ if o != nil && !IsNil(o.Instances) {
+ return true
+ }
+
+ return false
+}
+
+// SetInstances gets a reference to the given []BriefOrderItemInstanceDTO and assigns it to the Instances field.
+func (o *OrderItemModificationDTO) SetInstances(v []BriefOrderItemInstanceDTO) {
+ o.Instances = v
+}
+
+func (o OrderItemModificationDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderItemModificationDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["count"] = o.Count
+ if o.Instances != nil {
+ toSerialize["instances"] = o.Instances
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderItemModificationDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "count",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderItemModificationDTO := _OrderItemModificationDTO{}
+
+ err = json.Unmarshal(data, &varOrderItemModificationDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderItemModificationDTO(varOrderItemModificationDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "count")
+ delete(additionalProperties, "instances")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderItemModificationDTO struct {
+ value *OrderItemModificationDTO
+ isSet bool
+}
+
+func (v NullableOrderItemModificationDTO) Get() *OrderItemModificationDTO {
+ return v.value
+}
+
+func (v *NullableOrderItemModificationDTO) Set(val *OrderItemModificationDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemModificationDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemModificationDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemModificationDTO(val *OrderItemModificationDTO) *NullableOrderItemModificationDTO {
+ return &NullableOrderItemModificationDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderItemModificationDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemModificationDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_promo_dto.go b/pkg/api/yandex/ymclient/model_order_item_promo_dto.go
new file mode 100644
index 0000000..418867d
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_promo_dto.go
@@ -0,0 +1,310 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderItemPromoDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderItemPromoDTO{}
+
+// OrderItemPromoDTO Информация о вознаграждениях продавцу за скидки на товар по промокодам, купонам и акциям.
+type OrderItemPromoDTO struct {
+ Type OrderPromoType `json:"type"`
+ // Размер пользовательской скидки в валюте покупателя.
+ Discount *float32 `json:"discount,omitempty"`
+ // Вознаграждение продавцу от Маркета за товар, проданный в рамках акции.
+ Subsidy float32 `json:"subsidy"`
+ // Идентификатор акции поставщика.
+ ShopPromoId *string `json:"shopPromoId,omitempty"`
+ // Идентификатор акции в рамках соглашения на оказание услуг по продвижению сервиса между Маркетом и продавцом.
+ MarketPromoId *string `json:"marketPromoId,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderItemPromoDTO OrderItemPromoDTO
+
+// NewOrderItemPromoDTO instantiates a new OrderItemPromoDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderItemPromoDTO(type_ OrderPromoType, subsidy float32) *OrderItemPromoDTO {
+ this := OrderItemPromoDTO{}
+ this.Type = type_
+ this.Subsidy = subsidy
+ return &this
+}
+
+// NewOrderItemPromoDTOWithDefaults instantiates a new OrderItemPromoDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderItemPromoDTOWithDefaults() *OrderItemPromoDTO {
+ this := OrderItemPromoDTO{}
+ return &this
+}
+
+// GetType returns the Type field value
+func (o *OrderItemPromoDTO) GetType() OrderPromoType {
+ if o == nil {
+ var ret OrderPromoType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemPromoDTO) GetTypeOk() (*OrderPromoType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *OrderItemPromoDTO) SetType(v OrderPromoType) {
+ o.Type = v
+}
+
+// GetDiscount returns the Discount field value if set, zero value otherwise.
+func (o *OrderItemPromoDTO) GetDiscount() float32 {
+ if o == nil || IsNil(o.Discount) {
+ var ret float32
+ return ret
+ }
+ return *o.Discount
+}
+
+// GetDiscountOk returns a tuple with the Discount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderItemPromoDTO) GetDiscountOk() (*float32, bool) {
+ if o == nil || IsNil(o.Discount) {
+ return nil, false
+ }
+ return o.Discount, true
+}
+
+// HasDiscount returns a boolean if a field has been set.
+func (o *OrderItemPromoDTO) HasDiscount() bool {
+ if o != nil && !IsNil(o.Discount) {
+ return true
+ }
+
+ return false
+}
+
+// SetDiscount gets a reference to the given float32 and assigns it to the Discount field.
+func (o *OrderItemPromoDTO) SetDiscount(v float32) {
+ o.Discount = &v
+}
+
+// GetSubsidy returns the Subsidy field value
+func (o *OrderItemPromoDTO) GetSubsidy() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Subsidy
+}
+
+// GetSubsidyOk returns a tuple with the Subsidy field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemPromoDTO) GetSubsidyOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Subsidy, true
+}
+
+// SetSubsidy sets field value
+func (o *OrderItemPromoDTO) SetSubsidy(v float32) {
+ o.Subsidy = v
+}
+
+// GetShopPromoId returns the ShopPromoId field value if set, zero value otherwise.
+func (o *OrderItemPromoDTO) GetShopPromoId() string {
+ if o == nil || IsNil(o.ShopPromoId) {
+ var ret string
+ return ret
+ }
+ return *o.ShopPromoId
+}
+
+// GetShopPromoIdOk returns a tuple with the ShopPromoId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderItemPromoDTO) GetShopPromoIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ShopPromoId) {
+ return nil, false
+ }
+ return o.ShopPromoId, true
+}
+
+// HasShopPromoId returns a boolean if a field has been set.
+func (o *OrderItemPromoDTO) HasShopPromoId() bool {
+ if o != nil && !IsNil(o.ShopPromoId) {
+ return true
+ }
+
+ return false
+}
+
+// SetShopPromoId gets a reference to the given string and assigns it to the ShopPromoId field.
+func (o *OrderItemPromoDTO) SetShopPromoId(v string) {
+ o.ShopPromoId = &v
+}
+
+// GetMarketPromoId returns the MarketPromoId field value if set, zero value otherwise.
+func (o *OrderItemPromoDTO) GetMarketPromoId() string {
+ if o == nil || IsNil(o.MarketPromoId) {
+ var ret string
+ return ret
+ }
+ return *o.MarketPromoId
+}
+
+// GetMarketPromoIdOk returns a tuple with the MarketPromoId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderItemPromoDTO) GetMarketPromoIdOk() (*string, bool) {
+ if o == nil || IsNil(o.MarketPromoId) {
+ return nil, false
+ }
+ return o.MarketPromoId, true
+}
+
+// HasMarketPromoId returns a boolean if a field has been set.
+func (o *OrderItemPromoDTO) HasMarketPromoId() bool {
+ if o != nil && !IsNil(o.MarketPromoId) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarketPromoId gets a reference to the given string and assigns it to the MarketPromoId field.
+func (o *OrderItemPromoDTO) SetMarketPromoId(v string) {
+ o.MarketPromoId = &v
+}
+
+func (o OrderItemPromoDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderItemPromoDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["type"] = o.Type
+ if !IsNil(o.Discount) {
+ toSerialize["discount"] = o.Discount
+ }
+ toSerialize["subsidy"] = o.Subsidy
+ if !IsNil(o.ShopPromoId) {
+ toSerialize["shopPromoId"] = o.ShopPromoId
+ }
+ if !IsNil(o.MarketPromoId) {
+ toSerialize["marketPromoId"] = o.MarketPromoId
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderItemPromoDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "type",
+ "subsidy",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderItemPromoDTO := _OrderItemPromoDTO{}
+
+ err = json.Unmarshal(data, &varOrderItemPromoDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderItemPromoDTO(varOrderItemPromoDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "discount")
+ delete(additionalProperties, "subsidy")
+ delete(additionalProperties, "shopPromoId")
+ delete(additionalProperties, "marketPromoId")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderItemPromoDTO struct {
+ value *OrderItemPromoDTO
+ isSet bool
+}
+
+func (v NullableOrderItemPromoDTO) Get() *OrderItemPromoDTO {
+ return v.value
+}
+
+func (v *NullableOrderItemPromoDTO) Set(val *OrderItemPromoDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemPromoDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemPromoDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemPromoDTO(val *OrderItemPromoDTO) *NullableOrderItemPromoDTO {
+ return &NullableOrderItemPromoDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderItemPromoDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemPromoDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_status_type.go b/pkg/api/yandex/ymclient/model_order_item_status_type.go
new file mode 100644
index 0000000..e97440f
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_status_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderItemStatusType Невыкупленный или возвращенный товар: * `REJECTED` — невыкупленный. * `RETURNED` — возвращенный.
+type OrderItemStatusType string
+
+// List of OrderItemStatusType
+const (
+ ORDERITEMSTATUSTYPE_REJECTED OrderItemStatusType = "REJECTED"
+ ORDERITEMSTATUSTYPE_RETURNED OrderItemStatusType = "RETURNED"
+)
+
+// All allowed values of OrderItemStatusType enum
+var AllowedOrderItemStatusTypeEnumValues = []OrderItemStatusType{
+ "REJECTED",
+ "RETURNED",
+}
+
+func (v *OrderItemStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderItemStatusType(value)
+ for _, existing := range AllowedOrderItemStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderItemStatusType", value)
+}
+
+// NewOrderItemStatusTypeFromValue returns a pointer to a valid OrderItemStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderItemStatusTypeFromValue(v string) (*OrderItemStatusType, error) {
+ ev := OrderItemStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderItemStatusType: valid values are %v", v, AllowedOrderItemStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderItemStatusType) IsValid() bool {
+ for _, existing := range AllowedOrderItemStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderItemStatusType value
+func (v OrderItemStatusType) Ptr() *OrderItemStatusType {
+ return &v
+}
+
+type NullableOrderItemStatusType struct {
+ value *OrderItemStatusType
+ isSet bool
+}
+
+func (v NullableOrderItemStatusType) Get() *OrderItemStatusType {
+ return v.value
+}
+
+func (v *NullableOrderItemStatusType) Set(val *OrderItemStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemStatusType(val *OrderItemStatusType) *NullableOrderItemStatusType {
+ return &NullableOrderItemStatusType{value: val, isSet: true}
+}
+
+func (v NullableOrderItemStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_subsidy_dto.go b/pkg/api/yandex/ymclient/model_order_item_subsidy_dto.go
new file mode 100644
index 0000000..53b9ac8
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_subsidy_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderItemSubsidyDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderItemSubsidyDTO{}
+
+// OrderItemSubsidyDTO Общее вознаграждение продавцу за все скидки на товар: * по промокодам, купонам и акциям; * по баллам Плюса. Включает НДС.
+type OrderItemSubsidyDTO struct {
+ Type OrderItemSubsidyType `json:"type"`
+ // Сумма субсидии.
+ Amount float32 `json:"amount"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderItemSubsidyDTO OrderItemSubsidyDTO
+
+// NewOrderItemSubsidyDTO instantiates a new OrderItemSubsidyDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderItemSubsidyDTO(type_ OrderItemSubsidyType, amount float32) *OrderItemSubsidyDTO {
+ this := OrderItemSubsidyDTO{}
+ this.Type = type_
+ this.Amount = amount
+ return &this
+}
+
+// NewOrderItemSubsidyDTOWithDefaults instantiates a new OrderItemSubsidyDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderItemSubsidyDTOWithDefaults() *OrderItemSubsidyDTO {
+ this := OrderItemSubsidyDTO{}
+ return &this
+}
+
+// GetType returns the Type field value
+func (o *OrderItemSubsidyDTO) GetType() OrderItemSubsidyType {
+ if o == nil {
+ var ret OrderItemSubsidyType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemSubsidyDTO) GetTypeOk() (*OrderItemSubsidyType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *OrderItemSubsidyDTO) SetType(v OrderItemSubsidyType) {
+ o.Type = v
+}
+
+// GetAmount returns the Amount field value
+func (o *OrderItemSubsidyDTO) GetAmount() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Amount
+}
+
+// GetAmountOk returns a tuple with the Amount field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemSubsidyDTO) GetAmountOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Amount, true
+}
+
+// SetAmount sets field value
+func (o *OrderItemSubsidyDTO) SetAmount(v float32) {
+ o.Amount = v
+}
+
+func (o OrderItemSubsidyDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderItemSubsidyDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["type"] = o.Type
+ toSerialize["amount"] = o.Amount
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderItemSubsidyDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "type",
+ "amount",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderItemSubsidyDTO := _OrderItemSubsidyDTO{}
+
+ err = json.Unmarshal(data, &varOrderItemSubsidyDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderItemSubsidyDTO(varOrderItemSubsidyDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "amount")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderItemSubsidyDTO struct {
+ value *OrderItemSubsidyDTO
+ isSet bool
+}
+
+func (v NullableOrderItemSubsidyDTO) Get() *OrderItemSubsidyDTO {
+ return v.value
+}
+
+func (v *NullableOrderItemSubsidyDTO) Set(val *OrderItemSubsidyDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemSubsidyDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemSubsidyDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemSubsidyDTO(val *OrderItemSubsidyDTO) *NullableOrderItemSubsidyDTO {
+ return &NullableOrderItemSubsidyDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderItemSubsidyDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemSubsidyDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_subsidy_type.go b/pkg/api/yandex/ymclient/model_order_item_subsidy_type.go
new file mode 100644
index 0000000..7b7ecd3
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_subsidy_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderItemSubsidyType Тип субсидии: * `YANDEX_CASHBACK` — скидка по подписке Яндекс Плюс. * `SUBSIDY` — скидка Маркета (по акциям, промокодам, купонам и т. д.).
+type OrderItemSubsidyType string
+
+// List of OrderItemSubsidyType
+const (
+ ORDERITEMSUBSIDYTYPE_YANDEX_CASHBACK OrderItemSubsidyType = "YANDEX_CASHBACK"
+ ORDERITEMSUBSIDYTYPE_SUBSIDY OrderItemSubsidyType = "SUBSIDY"
+)
+
+// All allowed values of OrderItemSubsidyType enum
+var AllowedOrderItemSubsidyTypeEnumValues = []OrderItemSubsidyType{
+ "YANDEX_CASHBACK",
+ "SUBSIDY",
+}
+
+func (v *OrderItemSubsidyType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderItemSubsidyType(value)
+ for _, existing := range AllowedOrderItemSubsidyTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderItemSubsidyType", value)
+}
+
+// NewOrderItemSubsidyTypeFromValue returns a pointer to a valid OrderItemSubsidyType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderItemSubsidyTypeFromValue(v string) (*OrderItemSubsidyType, error) {
+ ev := OrderItemSubsidyType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderItemSubsidyType: valid values are %v", v, AllowedOrderItemSubsidyTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderItemSubsidyType) IsValid() bool {
+ for _, existing := range AllowedOrderItemSubsidyTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderItemSubsidyType value
+func (v OrderItemSubsidyType) Ptr() *OrderItemSubsidyType {
+ return &v
+}
+
+type NullableOrderItemSubsidyType struct {
+ value *OrderItemSubsidyType
+ isSet bool
+}
+
+func (v NullableOrderItemSubsidyType) Get() *OrderItemSubsidyType {
+ return v.value
+}
+
+func (v *NullableOrderItemSubsidyType) Set(val *OrderItemSubsidyType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemSubsidyType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemSubsidyType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemSubsidyType(val *OrderItemSubsidyType) *NullableOrderItemSubsidyType {
+ return &NullableOrderItemSubsidyType{value: val, isSet: true}
+}
+
+func (v NullableOrderItemSubsidyType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemSubsidyType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_tag_type.go b/pkg/api/yandex/ymclient/model_order_item_tag_type.go
new file mode 100644
index 0000000..04b64ca
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_tag_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderItemTagType Признак товара: * `ULTIMA` — премиум-товар. * `SAFE_TAG` — товар с [защитной меткой](*safe-tag). * `TURBO` — товар, который быстро раскупают.
+type OrderItemTagType string
+
+// List of OrderItemTagType
+const (
+ ORDERITEMTAGTYPE_ULTIMA OrderItemTagType = "ULTIMA"
+ ORDERITEMTAGTYPE_SAFE_TAG OrderItemTagType = "SAFE_TAG"
+ ORDERITEMTAGTYPE_TURBO OrderItemTagType = "TURBO"
+)
+
+// All allowed values of OrderItemTagType enum
+var AllowedOrderItemTagTypeEnumValues = []OrderItemTagType{
+ "ULTIMA",
+ "SAFE_TAG",
+ "TURBO",
+}
+
+func (v *OrderItemTagType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderItemTagType(value)
+ for _, existing := range AllowedOrderItemTagTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderItemTagType", value)
+}
+
+// NewOrderItemTagTypeFromValue returns a pointer to a valid OrderItemTagType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderItemTagTypeFromValue(v string) (*OrderItemTagType, error) {
+ ev := OrderItemTagType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderItemTagType: valid values are %v", v, AllowedOrderItemTagTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderItemTagType) IsValid() bool {
+ for _, existing := range AllowedOrderItemTagTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderItemTagType value
+func (v OrderItemTagType) Ptr() *OrderItemTagType {
+ return &v
+}
+
+type NullableOrderItemTagType struct {
+ value *OrderItemTagType
+ isSet bool
+}
+
+func (v NullableOrderItemTagType) Get() *OrderItemTagType {
+ return v.value
+}
+
+func (v *NullableOrderItemTagType) Set(val *OrderItemTagType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemTagType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemTagType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemTagType(val *OrderItemTagType) *NullableOrderItemTagType {
+ return &NullableOrderItemTagType{value: val, isSet: true}
+}
+
+func (v NullableOrderItemTagType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemTagType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_item_validation_status_dto.go b/pkg/api/yandex/ymclient/model_order_item_validation_status_dto.go
new file mode 100644
index 0000000..8aad366
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_item_validation_status_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderItemValidationStatusDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderItemValidationStatusDTO{}
+
+// OrderItemValidationStatusDTO Идентификатор товара и статус проверки его УИНа.
+type OrderItemValidationStatusDTO struct {
+ // Идентификатор товара в заказе.
+ Id int64 `json:"id"`
+ // Статусы проверки УИНов.
+ Uin []UinDTO `json:"uin"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderItemValidationStatusDTO OrderItemValidationStatusDTO
+
+// NewOrderItemValidationStatusDTO instantiates a new OrderItemValidationStatusDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderItemValidationStatusDTO(id int64, uin []UinDTO) *OrderItemValidationStatusDTO {
+ this := OrderItemValidationStatusDTO{}
+ this.Id = id
+ this.Uin = uin
+ return &this
+}
+
+// NewOrderItemValidationStatusDTOWithDefaults instantiates a new OrderItemValidationStatusDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderItemValidationStatusDTOWithDefaults() *OrderItemValidationStatusDTO {
+ this := OrderItemValidationStatusDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *OrderItemValidationStatusDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemValidationStatusDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *OrderItemValidationStatusDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetUin returns the Uin field value
+func (o *OrderItemValidationStatusDTO) GetUin() []UinDTO {
+ if o == nil {
+ var ret []UinDTO
+ return ret
+ }
+
+ return o.Uin
+}
+
+// GetUinOk returns a tuple with the Uin field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemValidationStatusDTO) GetUinOk() ([]UinDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Uin, true
+}
+
+// SetUin sets field value
+func (o *OrderItemValidationStatusDTO) SetUin(v []UinDTO) {
+ o.Uin = v
+}
+
+func (o OrderItemValidationStatusDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderItemValidationStatusDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["uin"] = o.Uin
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderItemValidationStatusDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "uin",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderItemValidationStatusDTO := _OrderItemValidationStatusDTO{}
+
+ err = json.Unmarshal(data, &varOrderItemValidationStatusDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderItemValidationStatusDTO(varOrderItemValidationStatusDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "uin")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderItemValidationStatusDTO struct {
+ value *OrderItemValidationStatusDTO
+ isSet bool
+}
+
+func (v NullableOrderItemValidationStatusDTO) Get() *OrderItemValidationStatusDTO {
+ return v.value
+}
+
+func (v *NullableOrderItemValidationStatusDTO) Set(val *OrderItemValidationStatusDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemValidationStatusDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemValidationStatusDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemValidationStatusDTO(val *OrderItemValidationStatusDTO) *NullableOrderItemValidationStatusDTO {
+ return &NullableOrderItemValidationStatusDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderItemValidationStatusDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemValidationStatusDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_items_modification_request_reason_type.go b/pkg/api/yandex/ymclient/model_order_items_modification_request_reason_type.go
new file mode 100644
index 0000000..cc852f4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_items_modification_request_reason_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderItemsModificationRequestReasonType Причина, почему обновился состав заказа: * `PARTNER_REQUESTED_REMOVE` — магазин удалил товар. * `USER_REQUESTED_REMOVE` — покупатель попросил удалить товар.
+type OrderItemsModificationRequestReasonType string
+
+// List of OrderItemsModificationRequestReasonType
+const (
+ ORDERITEMSMODIFICATIONREQUESTREASONTYPE_PARTNER_REQUESTED_REMOVE OrderItemsModificationRequestReasonType = "PARTNER_REQUESTED_REMOVE"
+ ORDERITEMSMODIFICATIONREQUESTREASONTYPE_USER_REQUESTED_REMOVE OrderItemsModificationRequestReasonType = "USER_REQUESTED_REMOVE"
+)
+
+// All allowed values of OrderItemsModificationRequestReasonType enum
+var AllowedOrderItemsModificationRequestReasonTypeEnumValues = []OrderItemsModificationRequestReasonType{
+ "PARTNER_REQUESTED_REMOVE",
+ "USER_REQUESTED_REMOVE",
+}
+
+func (v *OrderItemsModificationRequestReasonType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderItemsModificationRequestReasonType(value)
+ for _, existing := range AllowedOrderItemsModificationRequestReasonTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderItemsModificationRequestReasonType", value)
+}
+
+// NewOrderItemsModificationRequestReasonTypeFromValue returns a pointer to a valid OrderItemsModificationRequestReasonType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderItemsModificationRequestReasonTypeFromValue(v string) (*OrderItemsModificationRequestReasonType, error) {
+ ev := OrderItemsModificationRequestReasonType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderItemsModificationRequestReasonType: valid values are %v", v, AllowedOrderItemsModificationRequestReasonTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderItemsModificationRequestReasonType) IsValid() bool {
+ for _, existing := range AllowedOrderItemsModificationRequestReasonTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderItemsModificationRequestReasonType value
+func (v OrderItemsModificationRequestReasonType) Ptr() *OrderItemsModificationRequestReasonType {
+ return &v
+}
+
+type NullableOrderItemsModificationRequestReasonType struct {
+ value *OrderItemsModificationRequestReasonType
+ isSet bool
+}
+
+func (v NullableOrderItemsModificationRequestReasonType) Get() *OrderItemsModificationRequestReasonType {
+ return v.value
+}
+
+func (v *NullableOrderItemsModificationRequestReasonType) Set(val *OrderItemsModificationRequestReasonType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemsModificationRequestReasonType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemsModificationRequestReasonType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemsModificationRequestReasonType(val *OrderItemsModificationRequestReasonType) *NullableOrderItemsModificationRequestReasonType {
+ return &NullableOrderItemsModificationRequestReasonType{value: val, isSet: true}
+}
+
+func (v NullableOrderItemsModificationRequestReasonType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemsModificationRequestReasonType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_items_modification_result_dto.go b/pkg/api/yandex/ymclient/model_order_items_modification_result_dto.go
new file mode 100644
index 0000000..1601347
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_items_modification_result_dto.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderItemsModificationResultDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderItemsModificationResultDTO{}
+
+// OrderItemsModificationResultDTO Краткие сведения о промаркированных товарах. Параметр возвращается, если ответ `OK`.
+type OrderItemsModificationResultDTO struct {
+ // Список позиций в заказе, подлежащих маркировке.
+ Items []BriefOrderItemDTO `json:"items"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderItemsModificationResultDTO OrderItemsModificationResultDTO
+
+// NewOrderItemsModificationResultDTO instantiates a new OrderItemsModificationResultDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderItemsModificationResultDTO(items []BriefOrderItemDTO) *OrderItemsModificationResultDTO {
+ this := OrderItemsModificationResultDTO{}
+ this.Items = items
+ return &this
+}
+
+// NewOrderItemsModificationResultDTOWithDefaults instantiates a new OrderItemsModificationResultDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderItemsModificationResultDTOWithDefaults() *OrderItemsModificationResultDTO {
+ this := OrderItemsModificationResultDTO{}
+ return &this
+}
+
+// GetItems returns the Items field value
+func (o *OrderItemsModificationResultDTO) GetItems() []BriefOrderItemDTO {
+ if o == nil {
+ var ret []BriefOrderItemDTO
+ return ret
+ }
+
+ return o.Items
+}
+
+// GetItemsOk returns a tuple with the Items field value
+// and a boolean to check if the value has been set.
+func (o *OrderItemsModificationResultDTO) GetItemsOk() ([]BriefOrderItemDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Items, true
+}
+
+// SetItems sets field value
+func (o *OrderItemsModificationResultDTO) SetItems(v []BriefOrderItemDTO) {
+ o.Items = v
+}
+
+func (o OrderItemsModificationResultDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderItemsModificationResultDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["items"] = o.Items
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderItemsModificationResultDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "items",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderItemsModificationResultDTO := _OrderItemsModificationResultDTO{}
+
+ err = json.Unmarshal(data, &varOrderItemsModificationResultDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderItemsModificationResultDTO(varOrderItemsModificationResultDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "items")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderItemsModificationResultDTO struct {
+ value *OrderItemsModificationResultDTO
+ isSet bool
+}
+
+func (v NullableOrderItemsModificationResultDTO) Get() *OrderItemsModificationResultDTO {
+ return v.value
+}
+
+func (v *NullableOrderItemsModificationResultDTO) Set(val *OrderItemsModificationResultDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderItemsModificationResultDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderItemsModificationResultDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderItemsModificationResultDTO(val *OrderItemsModificationResultDTO) *NullableOrderItemsModificationResultDTO {
+ return &NullableOrderItemsModificationResultDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderItemsModificationResultDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderItemsModificationResultDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_label_dto.go b/pkg/api/yandex/ymclient/model_order_label_dto.go
new file mode 100644
index 0000000..3ab3fdc
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_label_dto.go
@@ -0,0 +1,256 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderLabelDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderLabelDTO{}
+
+// OrderLabelDTO Данные для печати ярлыка.
+type OrderLabelDTO struct {
+ // Идентификатор заказа.
+ OrderId int64 `json:"orderId"`
+ // Количество коробок в заказе.
+ PlacesNumber int32 `json:"placesNumber"`
+ Url string `json:"url"`
+ // Информация на ярлыке.
+ ParcelBoxLabels []ParcelBoxLabelDTO `json:"parcelBoxLabels"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderLabelDTO OrderLabelDTO
+
+// NewOrderLabelDTO instantiates a new OrderLabelDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderLabelDTO(orderId int64, placesNumber int32, url string, parcelBoxLabels []ParcelBoxLabelDTO) *OrderLabelDTO {
+ this := OrderLabelDTO{}
+ this.OrderId = orderId
+ this.PlacesNumber = placesNumber
+ this.Url = url
+ this.ParcelBoxLabels = parcelBoxLabels
+ return &this
+}
+
+// NewOrderLabelDTOWithDefaults instantiates a new OrderLabelDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderLabelDTOWithDefaults() *OrderLabelDTO {
+ this := OrderLabelDTO{}
+ return &this
+}
+
+// GetOrderId returns the OrderId field value
+func (o *OrderLabelDTO) GetOrderId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.OrderId
+}
+
+// GetOrderIdOk returns a tuple with the OrderId field value
+// and a boolean to check if the value has been set.
+func (o *OrderLabelDTO) GetOrderIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrderId, true
+}
+
+// SetOrderId sets field value
+func (o *OrderLabelDTO) SetOrderId(v int64) {
+ o.OrderId = v
+}
+
+// GetPlacesNumber returns the PlacesNumber field value
+func (o *OrderLabelDTO) GetPlacesNumber() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.PlacesNumber
+}
+
+// GetPlacesNumberOk returns a tuple with the PlacesNumber field value
+// and a boolean to check if the value has been set.
+func (o *OrderLabelDTO) GetPlacesNumberOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PlacesNumber, true
+}
+
+// SetPlacesNumber sets field value
+func (o *OrderLabelDTO) SetPlacesNumber(v int32) {
+ o.PlacesNumber = v
+}
+
+// GetUrl returns the Url field value
+func (o *OrderLabelDTO) GetUrl() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Url
+}
+
+// GetUrlOk returns a tuple with the Url field value
+// and a boolean to check if the value has been set.
+func (o *OrderLabelDTO) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *OrderLabelDTO) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetParcelBoxLabels returns the ParcelBoxLabels field value
+func (o *OrderLabelDTO) GetParcelBoxLabels() []ParcelBoxLabelDTO {
+ if o == nil {
+ var ret []ParcelBoxLabelDTO
+ return ret
+ }
+
+ return o.ParcelBoxLabels
+}
+
+// GetParcelBoxLabelsOk returns a tuple with the ParcelBoxLabels field value
+// and a boolean to check if the value has been set.
+func (o *OrderLabelDTO) GetParcelBoxLabelsOk() ([]ParcelBoxLabelDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ParcelBoxLabels, true
+}
+
+// SetParcelBoxLabels sets field value
+func (o *OrderLabelDTO) SetParcelBoxLabels(v []ParcelBoxLabelDTO) {
+ o.ParcelBoxLabels = v
+}
+
+func (o OrderLabelDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderLabelDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["orderId"] = o.OrderId
+ toSerialize["placesNumber"] = o.PlacesNumber
+ toSerialize["url"] = o.Url
+ toSerialize["parcelBoxLabels"] = o.ParcelBoxLabels
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderLabelDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "orderId",
+ "placesNumber",
+ "url",
+ "parcelBoxLabels",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderLabelDTO := _OrderLabelDTO{}
+
+ err = json.Unmarshal(data, &varOrderLabelDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderLabelDTO(varOrderLabelDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "orderId")
+ delete(additionalProperties, "placesNumber")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "parcelBoxLabels")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderLabelDTO struct {
+ value *OrderLabelDTO
+ isSet bool
+}
+
+func (v NullableOrderLabelDTO) Get() *OrderLabelDTO {
+ return v.value
+}
+
+func (v *NullableOrderLabelDTO) Set(val *OrderLabelDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderLabelDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderLabelDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderLabelDTO(val *OrderLabelDTO) *NullableOrderLabelDTO {
+ return &NullableOrderLabelDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderLabelDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderLabelDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_lift_type.go b/pkg/api/yandex/ymclient/model_order_lift_type.go
new file mode 100644
index 0000000..6c948cd
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_lift_type.go
@@ -0,0 +1,118 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderLiftType Тип подъема заказа на этаж: * `NOT_NEEDED` — не требуется. * `MANUAL` — ручной. * `ELEVATOR` — лифт. * `CARGO_ELEVATOR` — грузовой лифт. * `FREE` — любой из перечисленных выше, если включена опция бесплатного подъема. * `UNKNOWN` — неизвестный тип.
+type OrderLiftType string
+
+// List of OrderLiftType
+const (
+ ORDERLIFTTYPE_NOT_NEEDED OrderLiftType = "NOT_NEEDED"
+ ORDERLIFTTYPE_MANUAL OrderLiftType = "MANUAL"
+ ORDERLIFTTYPE_ELEVATOR OrderLiftType = "ELEVATOR"
+ ORDERLIFTTYPE_CARGO_ELEVATOR OrderLiftType = "CARGO_ELEVATOR"
+ ORDERLIFTTYPE_FREE OrderLiftType = "FREE"
+ ORDERLIFTTYPE_UNKNOWN OrderLiftType = "UNKNOWN"
+)
+
+// All allowed values of OrderLiftType enum
+var AllowedOrderLiftTypeEnumValues = []OrderLiftType{
+ "NOT_NEEDED",
+ "MANUAL",
+ "ELEVATOR",
+ "CARGO_ELEVATOR",
+ "FREE",
+ "UNKNOWN",
+}
+
+func (v *OrderLiftType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderLiftType(value)
+ for _, existing := range AllowedOrderLiftTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderLiftType", value)
+}
+
+// NewOrderLiftTypeFromValue returns a pointer to a valid OrderLiftType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderLiftTypeFromValue(v string) (*OrderLiftType, error) {
+ ev := OrderLiftType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderLiftType: valid values are %v", v, AllowedOrderLiftTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderLiftType) IsValid() bool {
+ for _, existing := range AllowedOrderLiftTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderLiftType value
+func (v OrderLiftType) Ptr() *OrderLiftType {
+ return &v
+}
+
+type NullableOrderLiftType struct {
+ value *OrderLiftType
+ isSet bool
+}
+
+func (v NullableOrderLiftType) Get() *OrderLiftType {
+ return v.value
+}
+
+func (v *NullableOrderLiftType) Set(val *OrderLiftType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderLiftType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderLiftType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderLiftType(val *OrderLiftType) *NullableOrderLiftType {
+ return &NullableOrderLiftType{value: val, isSet: true}
+}
+
+func (v NullableOrderLiftType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderLiftType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_parcel_box_dto.go b/pkg/api/yandex/ymclient/model_order_parcel_box_dto.go
new file mode 100644
index 0000000..b5a0848
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_parcel_box_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderParcelBoxDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderParcelBoxDTO{}
+
+// OrderParcelBoxDTO Информация о грузоместе.
+type OrderParcelBoxDTO struct {
+ // Идентификатор грузоместа.
+ Id int64 `json:"id"`
+ // Идентификатор грузового места в информационной системе магазина.
+ FulfilmentId string `json:"fulfilmentId"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderParcelBoxDTO OrderParcelBoxDTO
+
+// NewOrderParcelBoxDTO instantiates a new OrderParcelBoxDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderParcelBoxDTO(id int64, fulfilmentId string) *OrderParcelBoxDTO {
+ this := OrderParcelBoxDTO{}
+ this.Id = id
+ this.FulfilmentId = fulfilmentId
+ return &this
+}
+
+// NewOrderParcelBoxDTOWithDefaults instantiates a new OrderParcelBoxDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderParcelBoxDTOWithDefaults() *OrderParcelBoxDTO {
+ this := OrderParcelBoxDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *OrderParcelBoxDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *OrderParcelBoxDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *OrderParcelBoxDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetFulfilmentId returns the FulfilmentId field value
+func (o *OrderParcelBoxDTO) GetFulfilmentId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.FulfilmentId
+}
+
+// GetFulfilmentIdOk returns a tuple with the FulfilmentId field value
+// and a boolean to check if the value has been set.
+func (o *OrderParcelBoxDTO) GetFulfilmentIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FulfilmentId, true
+}
+
+// SetFulfilmentId sets field value
+func (o *OrderParcelBoxDTO) SetFulfilmentId(v string) {
+ o.FulfilmentId = v
+}
+
+func (o OrderParcelBoxDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderParcelBoxDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["fulfilmentId"] = o.FulfilmentId
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderParcelBoxDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "fulfilmentId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderParcelBoxDTO := _OrderParcelBoxDTO{}
+
+ err = json.Unmarshal(data, &varOrderParcelBoxDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderParcelBoxDTO(varOrderParcelBoxDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "fulfilmentId")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderParcelBoxDTO struct {
+ value *OrderParcelBoxDTO
+ isSet bool
+}
+
+func (v NullableOrderParcelBoxDTO) Get() *OrderParcelBoxDTO {
+ return v.value
+}
+
+func (v *NullableOrderParcelBoxDTO) Set(val *OrderParcelBoxDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderParcelBoxDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderParcelBoxDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderParcelBoxDTO(val *OrderParcelBoxDTO) *NullableOrderParcelBoxDTO {
+ return &NullableOrderParcelBoxDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderParcelBoxDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderParcelBoxDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_payment_method_type.go b/pkg/api/yandex/ymclient/model_order_payment_method_type.go
new file mode 100644
index 0000000..2c3696e
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_payment_method_type.go
@@ -0,0 +1,138 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderPaymentMethodType Способ оплаты заказа: * Значения, если выбрана оплата при оформлении заказа (`\"paymentType\": \"PREPAID\"`): * `YANDEX` — банковской картой. * `APPLE_PAY` — Apple Pay. * `GOOGLE_PAY` — Google Pay. * `CREDIT` — в кредит. * `TINKOFF_CREDIT` — в кредит в Тинькофф Банке. * `TINKOFF_INSTALLMENTS` — рассрочка в Тинькофф Банке. * `EXTERNAL_CERTIFICATE` — подарочным сертификатом (например, из приложения «Сбербанк Онлайн»). * `SBP` — через систему быстрых платежей. * `B2B_ACCOUNT_PREPAYMENT` — заказ оплачивает организация. * Значения, если выбрана оплата при получении заказа (`\"paymentType\": \"POSTPAID\"`): * `CARD_ON_DELIVERY` — банковской картой. * `BOUND_CARD_ON_DELIVERY` — привязанной картой при получении. * `BNPL_BANK_ON_DELIVERY` — супер Сплитом. * `BNPL_ON_DELIVERY` — Сплитом. * `CASH_ON_DELIVERY` — наличными. * `B2B_ACCOUNT_POSTPAYMENT` — заказ оплачивает организация после доставки. * `UNKNOWN` — неизвестный тип. Значение по умолчанию: `CASH_ON_DELIVERY`.
+type OrderPaymentMethodType string
+
+// List of OrderPaymentMethodType
+const (
+ ORDERPAYMENTMETHODTYPE_CASH_ON_DELIVERY OrderPaymentMethodType = "CASH_ON_DELIVERY"
+ ORDERPAYMENTMETHODTYPE_CARD_ON_DELIVERY OrderPaymentMethodType = "CARD_ON_DELIVERY"
+ ORDERPAYMENTMETHODTYPE_BOUND_CARD_ON_DELIVERY OrderPaymentMethodType = "BOUND_CARD_ON_DELIVERY"
+ ORDERPAYMENTMETHODTYPE_BNPL_BANK_ON_DELIVERY OrderPaymentMethodType = "BNPL_BANK_ON_DELIVERY"
+ ORDERPAYMENTMETHODTYPE_BNPL_ON_DELIVERY OrderPaymentMethodType = "BNPL_ON_DELIVERY"
+ ORDERPAYMENTMETHODTYPE_YANDEX OrderPaymentMethodType = "YANDEX"
+ ORDERPAYMENTMETHODTYPE_APPLE_PAY OrderPaymentMethodType = "APPLE_PAY"
+ ORDERPAYMENTMETHODTYPE_EXTERNAL_CERTIFICATE OrderPaymentMethodType = "EXTERNAL_CERTIFICATE"
+ ORDERPAYMENTMETHODTYPE_CREDIT OrderPaymentMethodType = "CREDIT"
+ ORDERPAYMENTMETHODTYPE_GOOGLE_PAY OrderPaymentMethodType = "GOOGLE_PAY"
+ ORDERPAYMENTMETHODTYPE_TINKOFF_CREDIT OrderPaymentMethodType = "TINKOFF_CREDIT"
+ ORDERPAYMENTMETHODTYPE_SBP OrderPaymentMethodType = "SBP"
+ ORDERPAYMENTMETHODTYPE_TINKOFF_INSTALLMENTS OrderPaymentMethodType = "TINKOFF_INSTALLMENTS"
+ ORDERPAYMENTMETHODTYPE_B2_B_ACCOUNT_PREPAYMENT OrderPaymentMethodType = "B2B_ACCOUNT_PREPAYMENT"
+ ORDERPAYMENTMETHODTYPE_B2_B_ACCOUNT_POSTPAYMENT OrderPaymentMethodType = "B2B_ACCOUNT_POSTPAYMENT"
+ ORDERPAYMENTMETHODTYPE_UNKNOWN OrderPaymentMethodType = "UNKNOWN"
+)
+
+// All allowed values of OrderPaymentMethodType enum
+var AllowedOrderPaymentMethodTypeEnumValues = []OrderPaymentMethodType{
+ "CASH_ON_DELIVERY",
+ "CARD_ON_DELIVERY",
+ "BOUND_CARD_ON_DELIVERY",
+ "BNPL_BANK_ON_DELIVERY",
+ "BNPL_ON_DELIVERY",
+ "YANDEX",
+ "APPLE_PAY",
+ "EXTERNAL_CERTIFICATE",
+ "CREDIT",
+ "GOOGLE_PAY",
+ "TINKOFF_CREDIT",
+ "SBP",
+ "TINKOFF_INSTALLMENTS",
+ "B2B_ACCOUNT_PREPAYMENT",
+ "B2B_ACCOUNT_POSTPAYMENT",
+ "UNKNOWN",
+}
+
+func (v *OrderPaymentMethodType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderPaymentMethodType(value)
+ for _, existing := range AllowedOrderPaymentMethodTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderPaymentMethodType", value)
+}
+
+// NewOrderPaymentMethodTypeFromValue returns a pointer to a valid OrderPaymentMethodType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderPaymentMethodTypeFromValue(v string) (*OrderPaymentMethodType, error) {
+ ev := OrderPaymentMethodType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderPaymentMethodType: valid values are %v", v, AllowedOrderPaymentMethodTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderPaymentMethodType) IsValid() bool {
+ for _, existing := range AllowedOrderPaymentMethodTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderPaymentMethodType value
+func (v OrderPaymentMethodType) Ptr() *OrderPaymentMethodType {
+ return &v
+}
+
+type NullableOrderPaymentMethodType struct {
+ value *OrderPaymentMethodType
+ isSet bool
+}
+
+func (v NullableOrderPaymentMethodType) Get() *OrderPaymentMethodType {
+ return v.value
+}
+
+func (v *NullableOrderPaymentMethodType) Set(val *OrderPaymentMethodType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderPaymentMethodType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderPaymentMethodType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderPaymentMethodType(val *OrderPaymentMethodType) *NullableOrderPaymentMethodType {
+ return &NullableOrderPaymentMethodType{value: val, isSet: true}
+}
+
+func (v NullableOrderPaymentMethodType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderPaymentMethodType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_payment_type.go b/pkg/api/yandex/ymclient/model_order_payment_type.go
new file mode 100644
index 0000000..11f5a47
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_payment_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderPaymentType Тип оплаты заказа: * `PREPAID` — оплата при оформлении заказа. * `POSTPAID` — оплата при получении заказа. * `UNKNOWN` — неизвестный тип. Если параметр отсутствует, заказ будет оплачен при получении.
+type OrderPaymentType string
+
+// List of OrderPaymentType
+const (
+ ORDERPAYMENTTYPE_PREPAID OrderPaymentType = "PREPAID"
+ ORDERPAYMENTTYPE_POSTPAID OrderPaymentType = "POSTPAID"
+ ORDERPAYMENTTYPE_UNKNOWN OrderPaymentType = "UNKNOWN"
+)
+
+// All allowed values of OrderPaymentType enum
+var AllowedOrderPaymentTypeEnumValues = []OrderPaymentType{
+ "PREPAID",
+ "POSTPAID",
+ "UNKNOWN",
+}
+
+func (v *OrderPaymentType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderPaymentType(value)
+ for _, existing := range AllowedOrderPaymentTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderPaymentType", value)
+}
+
+// NewOrderPaymentTypeFromValue returns a pointer to a valid OrderPaymentType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderPaymentTypeFromValue(v string) (*OrderPaymentType, error) {
+ ev := OrderPaymentType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderPaymentType: valid values are %v", v, AllowedOrderPaymentTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderPaymentType) IsValid() bool {
+ for _, existing := range AllowedOrderPaymentTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderPaymentType value
+func (v OrderPaymentType) Ptr() *OrderPaymentType {
+ return &v
+}
+
+type NullableOrderPaymentType struct {
+ value *OrderPaymentType
+ isSet bool
+}
+
+func (v NullableOrderPaymentType) Get() *OrderPaymentType {
+ return v.value
+}
+
+func (v *NullableOrderPaymentType) Set(val *OrderPaymentType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderPaymentType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderPaymentType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderPaymentType(val *OrderPaymentType) *NullableOrderPaymentType {
+ return &NullableOrderPaymentType{value: val, isSet: true}
+}
+
+func (v NullableOrderPaymentType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderPaymentType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_promo_type.go b/pkg/api/yandex/ymclient/model_order_promo_type.go
new file mode 100644
index 0000000..9f7506b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_promo_type.go
@@ -0,0 +1,142 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderPromoType Тип скидки: * `DIRECT_DISCOUNT` — прямая скидка, которую устанавливает продавец или Маркет. * `BLUE_SET` — комплекты. * `BLUE_FLASH` — флеш-акция. * `MARKET_COUPON` — скидка по промокоду Маркета. * `MARKET_PROMOCODE` — скидка по промокоду магазина. * `MARKET_BLUE` — скидка на Маркете. * `CHEAPEST_AS_GIFT` — самый дешевый товар в подарок. * `CASHBACK` — кешбэк. * `SPREAD_DISCOUNT_COUNT` — скидка за количество одинаковых товаров. * `SPREAD_DISCOUNT_RECEIPT` — скидка от суммы чека. * `DISCOUNT_BY_PAYMENT_TYPE` — прямая скидка при оплате картой Плюса. * `PERCENT_DISCOUNT` — прямая скидка в процентах. * `DCO_EXTRA_DISCOUNT` — дополнительная скидка, необходимая для расчета субсидии от Маркета. * `UNKNOWN` — неизвестный тип. Устаревшие типы: * `GENERIC_BUNDLE`. * `MARKET_COIN`. * `PRICE_DROP_AS_YOU_SHOP`. * `SECRET_SALE`.
+type OrderPromoType string
+
+// List of OrderPromoType
+const (
+ ORDERPROMOTYPE_DIRECT_DISCOUNT OrderPromoType = "DIRECT_DISCOUNT"
+ ORDERPROMOTYPE_BLUE_SET OrderPromoType = "BLUE_SET"
+ ORDERPROMOTYPE_BLUE_FLASH OrderPromoType = "BLUE_FLASH"
+ ORDERPROMOTYPE_GENERIC_BUNDLE OrderPromoType = "GENERIC_BUNDLE"
+ ORDERPROMOTYPE_MARKET_COUPON OrderPromoType = "MARKET_COUPON"
+ ORDERPROMOTYPE_MARKET_PROMOCODE OrderPromoType = "MARKET_PROMOCODE"
+ ORDERPROMOTYPE_MARKET_BLUE OrderPromoType = "MARKET_BLUE"
+ ORDERPROMOTYPE_MARKET_COIN OrderPromoType = "MARKET_COIN"
+ ORDERPROMOTYPE_PRICE_DROP_AS_YOU_SHOP OrderPromoType = "PRICE_DROP_AS_YOU_SHOP"
+ ORDERPROMOTYPE_SECRET_SALE OrderPromoType = "SECRET_SALE"
+ ORDERPROMOTYPE_CHEAPEST_AS_GIFT OrderPromoType = "CHEAPEST_AS_GIFT"
+ ORDERPROMOTYPE_CASHBACK OrderPromoType = "CASHBACK"
+ ORDERPROMOTYPE_SPREAD_DISCOUNT_COUNT OrderPromoType = "SPREAD_DISCOUNT_COUNT"
+ ORDERPROMOTYPE_SPREAD_DISCOUNT_RECEIPT OrderPromoType = "SPREAD_DISCOUNT_RECEIPT"
+ ORDERPROMOTYPE_DISCOUNT_BY_PAYMENT_TYPE OrderPromoType = "DISCOUNT_BY_PAYMENT_TYPE"
+ ORDERPROMOTYPE_PERCENT_DISCOUNT OrderPromoType = "PERCENT_DISCOUNT"
+ ORDERPROMOTYPE_DCO_EXTRA_DISCOUNT OrderPromoType = "DCO_EXTRA_DISCOUNT"
+ ORDERPROMOTYPE_UNKNOWN OrderPromoType = "UNKNOWN"
+)
+
+// All allowed values of OrderPromoType enum
+var AllowedOrderPromoTypeEnumValues = []OrderPromoType{
+ "DIRECT_DISCOUNT",
+ "BLUE_SET",
+ "BLUE_FLASH",
+ "GENERIC_BUNDLE",
+ "MARKET_COUPON",
+ "MARKET_PROMOCODE",
+ "MARKET_BLUE",
+ "MARKET_COIN",
+ "PRICE_DROP_AS_YOU_SHOP",
+ "SECRET_SALE",
+ "CHEAPEST_AS_GIFT",
+ "CASHBACK",
+ "SPREAD_DISCOUNT_COUNT",
+ "SPREAD_DISCOUNT_RECEIPT",
+ "DISCOUNT_BY_PAYMENT_TYPE",
+ "PERCENT_DISCOUNT",
+ "DCO_EXTRA_DISCOUNT",
+ "UNKNOWN",
+}
+
+func (v *OrderPromoType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderPromoType(value)
+ for _, existing := range AllowedOrderPromoTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderPromoType", value)
+}
+
+// NewOrderPromoTypeFromValue returns a pointer to a valid OrderPromoType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderPromoTypeFromValue(v string) (*OrderPromoType, error) {
+ ev := OrderPromoType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderPromoType: valid values are %v", v, AllowedOrderPromoTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderPromoType) IsValid() bool {
+ for _, existing := range AllowedOrderPromoTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderPromoType value
+func (v OrderPromoType) Ptr() *OrderPromoType {
+ return &v
+}
+
+type NullableOrderPromoType struct {
+ value *OrderPromoType
+ isSet bool
+}
+
+func (v NullableOrderPromoType) Get() *OrderPromoType {
+ return v.value
+}
+
+func (v *NullableOrderPromoType) Set(val *OrderPromoType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderPromoType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderPromoType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderPromoType(val *OrderPromoType) *NullableOrderPromoType {
+ return &NullableOrderPromoType{value: val, isSet: true}
+}
+
+func (v NullableOrderPromoType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderPromoType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_shipment_dto.go b/pkg/api/yandex/ymclient/model_order_shipment_dto.go
new file mode 100644
index 0000000..c152987
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_shipment_dto.go
@@ -0,0 +1,308 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrderShipmentDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderShipmentDTO{}
+
+// OrderShipmentDTO Список посылок. В параметре может указываться несколько посылок.
+type OrderShipmentDTO struct {
+ // Идентификатор посылки, присвоенный Маркетом.
+ Id *int64 `json:"id,omitempty"`
+ // Формат даты: `ДД-ММ-ГГГГ`.
+ ShipmentDate *string `json:"shipmentDate,omitempty"`
+ // **Только для модели Экспресс** Время, к которому магазин должен упаковать заказ и перевести его в статус `READY_TO_SHIP`. После смены статуса за заказом приедет курьер. Поле может появиться не сразу. Запрашивайте информацию о заказе в течении 5–10 минут, пока оно не вернется. Формат времени: 24-часовой, `ЧЧ:ММ`. Если заказ сделан организацией, параметр не возвращается до согласования даты доставки.
+ ShipmentTime *string `json:"shipmentTime,omitempty"`
+ // **Только для модели :no-translate[DBS]** Информация для отслеживания перемещений посылки.
+ Tracks []OrderTrackDTO `json:"tracks,omitempty"`
+ // Список грузовых мест.
+ Boxes []OrderParcelBoxDTO `json:"boxes,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderShipmentDTO OrderShipmentDTO
+
+// NewOrderShipmentDTO instantiates a new OrderShipmentDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderShipmentDTO() *OrderShipmentDTO {
+ this := OrderShipmentDTO{}
+ return &this
+}
+
+// NewOrderShipmentDTOWithDefaults instantiates a new OrderShipmentDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderShipmentDTOWithDefaults() *OrderShipmentDTO {
+ this := OrderShipmentDTO{}
+ return &this
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *OrderShipmentDTO) GetId() int64 {
+ if o == nil || IsNil(o.Id) {
+ var ret int64
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderShipmentDTO) GetIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *OrderShipmentDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given int64 and assigns it to the Id field.
+func (o *OrderShipmentDTO) SetId(v int64) {
+ o.Id = &v
+}
+
+// GetShipmentDate returns the ShipmentDate field value if set, zero value otherwise.
+func (o *OrderShipmentDTO) GetShipmentDate() string {
+ if o == nil || IsNil(o.ShipmentDate) {
+ var ret string
+ return ret
+ }
+ return *o.ShipmentDate
+}
+
+// GetShipmentDateOk returns a tuple with the ShipmentDate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderShipmentDTO) GetShipmentDateOk() (*string, bool) {
+ if o == nil || IsNil(o.ShipmentDate) {
+ return nil, false
+ }
+ return o.ShipmentDate, true
+}
+
+// HasShipmentDate returns a boolean if a field has been set.
+func (o *OrderShipmentDTO) HasShipmentDate() bool {
+ if o != nil && !IsNil(o.ShipmentDate) {
+ return true
+ }
+
+ return false
+}
+
+// SetShipmentDate gets a reference to the given string and assigns it to the ShipmentDate field.
+func (o *OrderShipmentDTO) SetShipmentDate(v string) {
+ o.ShipmentDate = &v
+}
+
+// GetShipmentTime returns the ShipmentTime field value if set, zero value otherwise.
+func (o *OrderShipmentDTO) GetShipmentTime() string {
+ if o == nil || IsNil(o.ShipmentTime) {
+ var ret string
+ return ret
+ }
+ return *o.ShipmentTime
+}
+
+// GetShipmentTimeOk returns a tuple with the ShipmentTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderShipmentDTO) GetShipmentTimeOk() (*string, bool) {
+ if o == nil || IsNil(o.ShipmentTime) {
+ return nil, false
+ }
+ return o.ShipmentTime, true
+}
+
+// HasShipmentTime returns a boolean if a field has been set.
+func (o *OrderShipmentDTO) HasShipmentTime() bool {
+ if o != nil && !IsNil(o.ShipmentTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetShipmentTime gets a reference to the given string and assigns it to the ShipmentTime field.
+func (o *OrderShipmentDTO) SetShipmentTime(v string) {
+ o.ShipmentTime = &v
+}
+
+// GetTracks returns the Tracks field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrderShipmentDTO) GetTracks() []OrderTrackDTO {
+ if o == nil {
+ var ret []OrderTrackDTO
+ return ret
+ }
+ return o.Tracks
+}
+
+// GetTracksOk returns a tuple with the Tracks field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrderShipmentDTO) GetTracksOk() ([]OrderTrackDTO, bool) {
+ if o == nil || IsNil(o.Tracks) {
+ return nil, false
+ }
+ return o.Tracks, true
+}
+
+// HasTracks returns a boolean if a field has been set.
+func (o *OrderShipmentDTO) HasTracks() bool {
+ if o != nil && !IsNil(o.Tracks) {
+ return true
+ }
+
+ return false
+}
+
+// SetTracks gets a reference to the given []OrderTrackDTO and assigns it to the Tracks field.
+func (o *OrderShipmentDTO) SetTracks(v []OrderTrackDTO) {
+ o.Tracks = v
+}
+
+// GetBoxes returns the Boxes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrderShipmentDTO) GetBoxes() []OrderParcelBoxDTO {
+ if o == nil {
+ var ret []OrderParcelBoxDTO
+ return ret
+ }
+ return o.Boxes
+}
+
+// GetBoxesOk returns a tuple with the Boxes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrderShipmentDTO) GetBoxesOk() ([]OrderParcelBoxDTO, bool) {
+ if o == nil || IsNil(o.Boxes) {
+ return nil, false
+ }
+ return o.Boxes, true
+}
+
+// HasBoxes returns a boolean if a field has been set.
+func (o *OrderShipmentDTO) HasBoxes() bool {
+ if o != nil && !IsNil(o.Boxes) {
+ return true
+ }
+
+ return false
+}
+
+// SetBoxes gets a reference to the given []OrderParcelBoxDTO and assigns it to the Boxes field.
+func (o *OrderShipmentDTO) SetBoxes(v []OrderParcelBoxDTO) {
+ o.Boxes = v
+}
+
+func (o OrderShipmentDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderShipmentDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+ if !IsNil(o.ShipmentDate) {
+ toSerialize["shipmentDate"] = o.ShipmentDate
+ }
+ if !IsNil(o.ShipmentTime) {
+ toSerialize["shipmentTime"] = o.ShipmentTime
+ }
+ if o.Tracks != nil {
+ toSerialize["tracks"] = o.Tracks
+ }
+ if o.Boxes != nil {
+ toSerialize["boxes"] = o.Boxes
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderShipmentDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrderShipmentDTO := _OrderShipmentDTO{}
+
+ err = json.Unmarshal(data, &varOrderShipmentDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderShipmentDTO(varOrderShipmentDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "shipmentDate")
+ delete(additionalProperties, "shipmentTime")
+ delete(additionalProperties, "tracks")
+ delete(additionalProperties, "boxes")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderShipmentDTO struct {
+ value *OrderShipmentDTO
+ isSet bool
+}
+
+func (v NullableOrderShipmentDTO) Get() *OrderShipmentDTO {
+ return v.value
+}
+
+func (v *NullableOrderShipmentDTO) Set(val *OrderShipmentDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderShipmentDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderShipmentDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderShipmentDTO(val *OrderShipmentDTO) *NullableOrderShipmentDTO {
+ return &NullableOrderShipmentDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderShipmentDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderShipmentDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_state_dto.go b/pkg/api/yandex/ymclient/model_order_state_dto.go
new file mode 100644
index 0000000..edb3947
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_state_dto.go
@@ -0,0 +1,233 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderStateDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderStateDTO{}
+
+// OrderStateDTO Информация по заказу.
+type OrderStateDTO struct {
+ // Идентификатор заказа.
+ Id int64 `json:"id"`
+ Status OrderStatusType `json:"status"`
+ Substatus *OrderSubstatusType `json:"substatus,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderStateDTO OrderStateDTO
+
+// NewOrderStateDTO instantiates a new OrderStateDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderStateDTO(id int64, status OrderStatusType) *OrderStateDTO {
+ this := OrderStateDTO{}
+ this.Id = id
+ this.Status = status
+ return &this
+}
+
+// NewOrderStateDTOWithDefaults instantiates a new OrderStateDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderStateDTOWithDefaults() *OrderStateDTO {
+ this := OrderStateDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *OrderStateDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *OrderStateDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *OrderStateDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetStatus returns the Status field value
+func (o *OrderStateDTO) GetStatus() OrderStatusType {
+ if o == nil {
+ var ret OrderStatusType
+ return ret
+ }
+
+ return o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value
+// and a boolean to check if the value has been set.
+func (o *OrderStateDTO) GetStatusOk() (*OrderStatusType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Status, true
+}
+
+// SetStatus sets field value
+func (o *OrderStateDTO) SetStatus(v OrderStatusType) {
+ o.Status = v
+}
+
+// GetSubstatus returns the Substatus field value if set, zero value otherwise.
+func (o *OrderStateDTO) GetSubstatus() OrderSubstatusType {
+ if o == nil || IsNil(o.Substatus) {
+ var ret OrderSubstatusType
+ return ret
+ }
+ return *o.Substatus
+}
+
+// GetSubstatusOk returns a tuple with the Substatus field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderStateDTO) GetSubstatusOk() (*OrderSubstatusType, bool) {
+ if o == nil || IsNil(o.Substatus) {
+ return nil, false
+ }
+ return o.Substatus, true
+}
+
+// HasSubstatus returns a boolean if a field has been set.
+func (o *OrderStateDTO) HasSubstatus() bool {
+ if o != nil && !IsNil(o.Substatus) {
+ return true
+ }
+
+ return false
+}
+
+// SetSubstatus gets a reference to the given OrderSubstatusType and assigns it to the Substatus field.
+func (o *OrderStateDTO) SetSubstatus(v OrderSubstatusType) {
+ o.Substatus = &v
+}
+
+func (o OrderStateDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderStateDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["status"] = o.Status
+ if !IsNil(o.Substatus) {
+ toSerialize["substatus"] = o.Substatus
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderStateDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "status",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderStateDTO := _OrderStateDTO{}
+
+ err = json.Unmarshal(data, &varOrderStateDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderStateDTO(varOrderStateDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "substatus")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderStateDTO struct {
+ value *OrderStateDTO
+ isSet bool
+}
+
+func (v NullableOrderStateDTO) Get() *OrderStateDTO {
+ return v.value
+}
+
+func (v *NullableOrderStateDTO) Set(val *OrderStateDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderStateDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderStateDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderStateDTO(val *OrderStateDTO) *NullableOrderStateDTO {
+ return &NullableOrderStateDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderStateDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderStateDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_stats_status_type.go b/pkg/api/yandex/ymclient/model_order_stats_status_type.go
new file mode 100644
index 0000000..f281fef
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_stats_status_type.go
@@ -0,0 +1,136 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderStatsStatusType Текущий статус заказа: * `CANCELLED_BEFORE_PROCESSING` — заказ отменен до начала его обработки. * `CANCELLED_IN_DELIVERY` — заказ отменен во время его доставки. * `CANCELLED_IN_PROCESSING` — заказ отменен во время его обработки. * `DELIVERY` — заказ передан службе доставки. * `DELIVERED` — заказ доставлен. * `PARTIALLY_DELIVERED` — заказ частично доставлен. {% note warning \"Статус заказа может перейти в `PARTIALLY_DELIVERED` не сразу\" %} Если в доставленном заказе был невыкуп, статус изменится только после получения заказа на складе Маркета. {% endnote %} * `PARTIALLY_RETURNED` — заказ частично возвращен покупателем. * `PENDING` — заказ ожидает подтверждения. * `PICKUP` — заказ доставлен в пункт выдачи. * `PROCESSING` — заказ в обработке. * `RESERVED` — товар зарезервирован на складе. * `RETURNED` — заказ полностью возвращен покупателем. * `UNKNOWN` — неизвестный статус заказа. * `UNPAID` — заказ от юридического лица ожидает оплаты. * `LOST` — заказ утерян.
+type OrderStatsStatusType string
+
+// List of OrderStatsStatusType
+const (
+ ORDERSTATSSTATUSTYPE_CANCELLED_BEFORE_PROCESSING OrderStatsStatusType = "CANCELLED_BEFORE_PROCESSING"
+ ORDERSTATSSTATUSTYPE_CANCELLED_IN_DELIVERY OrderStatsStatusType = "CANCELLED_IN_DELIVERY"
+ ORDERSTATSSTATUSTYPE_CANCELLED_IN_PROCESSING OrderStatsStatusType = "CANCELLED_IN_PROCESSING"
+ ORDERSTATSSTATUSTYPE_DELIVERY OrderStatsStatusType = "DELIVERY"
+ ORDERSTATSSTATUSTYPE_DELIVERED OrderStatsStatusType = "DELIVERED"
+ ORDERSTATSSTATUSTYPE_PARTIALLY_DELIVERED OrderStatsStatusType = "PARTIALLY_DELIVERED"
+ ORDERSTATSSTATUSTYPE_PARTIALLY_RETURNED OrderStatsStatusType = "PARTIALLY_RETURNED"
+ ORDERSTATSSTATUSTYPE_PENDING OrderStatsStatusType = "PENDING"
+ ORDERSTATSSTATUSTYPE_PICKUP OrderStatsStatusType = "PICKUP"
+ ORDERSTATSSTATUSTYPE_PROCESSING OrderStatsStatusType = "PROCESSING"
+ ORDERSTATSSTATUSTYPE_RESERVED OrderStatsStatusType = "RESERVED"
+ ORDERSTATSSTATUSTYPE_RETURNED OrderStatsStatusType = "RETURNED"
+ ORDERSTATSSTATUSTYPE_UNKNOWN OrderStatsStatusType = "UNKNOWN"
+ ORDERSTATSSTATUSTYPE_UNPAID OrderStatsStatusType = "UNPAID"
+ ORDERSTATSSTATUSTYPE_LOST OrderStatsStatusType = "LOST"
+)
+
+// All allowed values of OrderStatsStatusType enum
+var AllowedOrderStatsStatusTypeEnumValues = []OrderStatsStatusType{
+ "CANCELLED_BEFORE_PROCESSING",
+ "CANCELLED_IN_DELIVERY",
+ "CANCELLED_IN_PROCESSING",
+ "DELIVERY",
+ "DELIVERED",
+ "PARTIALLY_DELIVERED",
+ "PARTIALLY_RETURNED",
+ "PENDING",
+ "PICKUP",
+ "PROCESSING",
+ "RESERVED",
+ "RETURNED",
+ "UNKNOWN",
+ "UNPAID",
+ "LOST",
+}
+
+func (v *OrderStatsStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderStatsStatusType(value)
+ for _, existing := range AllowedOrderStatsStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderStatsStatusType", value)
+}
+
+// NewOrderStatsStatusTypeFromValue returns a pointer to a valid OrderStatsStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderStatsStatusTypeFromValue(v string) (*OrderStatsStatusType, error) {
+ ev := OrderStatsStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderStatsStatusType: valid values are %v", v, AllowedOrderStatsStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderStatsStatusType) IsValid() bool {
+ for _, existing := range AllowedOrderStatsStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderStatsStatusType value
+func (v OrderStatsStatusType) Ptr() *OrderStatsStatusType {
+ return &v
+}
+
+type NullableOrderStatsStatusType struct {
+ value *OrderStatsStatusType
+ isSet bool
+}
+
+func (v NullableOrderStatsStatusType) Get() *OrderStatsStatusType {
+ return v.value
+}
+
+func (v *NullableOrderStatsStatusType) Set(val *OrderStatsStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderStatsStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderStatsStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderStatsStatusType(val *OrderStatsStatusType) *NullableOrderStatsStatusType {
+ return &NullableOrderStatsStatusType{value: val, isSet: true}
+}
+
+func (v NullableOrderStatsStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderStatsStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_status_change_delivery_dates_dto.go b/pkg/api/yandex/ymclient/model_order_status_change_delivery_dates_dto.go
new file mode 100644
index 0000000..a3598c6
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_status_change_delivery_dates_dto.go
@@ -0,0 +1,154 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrderStatusChangeDeliveryDatesDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderStatusChangeDeliveryDatesDTO{}
+
+// OrderStatusChangeDeliveryDatesDTO Диапазон дат доставки.
+type OrderStatusChangeDeliveryDatesDTO struct {
+ // **Только для модели DBS** Фактическая дата доставки.
Когда передавать параметр `realDeliveryDate`: * Не передавайте параметр, если: * переводите заказ в любой статус, кроме `PICKUP` или `DELIVERED`; * меняете статус заказа на `PICKUP` или `DELIVERED` в день доставки — будет указана дата выполнения запроса. * Передавайте дату доставки, если переводите заказ в статус `PICKUP` или `DELIVERED` не в день доставки. Нельзя указывать дату доставки в будущем. {% note warning \"Передача статуса после установленного срока снижает индекс качества\" %} О сроках читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/quality/tech#dbs). {% endnote %}
+ RealDeliveryDate *string `json:"realDeliveryDate,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderStatusChangeDeliveryDatesDTO OrderStatusChangeDeliveryDatesDTO
+
+// NewOrderStatusChangeDeliveryDatesDTO instantiates a new OrderStatusChangeDeliveryDatesDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderStatusChangeDeliveryDatesDTO() *OrderStatusChangeDeliveryDatesDTO {
+ this := OrderStatusChangeDeliveryDatesDTO{}
+ return &this
+}
+
+// NewOrderStatusChangeDeliveryDatesDTOWithDefaults instantiates a new OrderStatusChangeDeliveryDatesDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderStatusChangeDeliveryDatesDTOWithDefaults() *OrderStatusChangeDeliveryDatesDTO {
+ this := OrderStatusChangeDeliveryDatesDTO{}
+ return &this
+}
+
+// GetRealDeliveryDate returns the RealDeliveryDate field value if set, zero value otherwise.
+func (o *OrderStatusChangeDeliveryDatesDTO) GetRealDeliveryDate() string {
+ if o == nil || IsNil(o.RealDeliveryDate) {
+ var ret string
+ return ret
+ }
+ return *o.RealDeliveryDate
+}
+
+// GetRealDeliveryDateOk returns a tuple with the RealDeliveryDate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderStatusChangeDeliveryDatesDTO) GetRealDeliveryDateOk() (*string, bool) {
+ if o == nil || IsNil(o.RealDeliveryDate) {
+ return nil, false
+ }
+ return o.RealDeliveryDate, true
+}
+
+// HasRealDeliveryDate returns a boolean if a field has been set.
+func (o *OrderStatusChangeDeliveryDatesDTO) HasRealDeliveryDate() bool {
+ if o != nil && !IsNil(o.RealDeliveryDate) {
+ return true
+ }
+
+ return false
+}
+
+// SetRealDeliveryDate gets a reference to the given string and assigns it to the RealDeliveryDate field.
+func (o *OrderStatusChangeDeliveryDatesDTO) SetRealDeliveryDate(v string) {
+ o.RealDeliveryDate = &v
+}
+
+func (o OrderStatusChangeDeliveryDatesDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderStatusChangeDeliveryDatesDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.RealDeliveryDate) {
+ toSerialize["realDeliveryDate"] = o.RealDeliveryDate
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderStatusChangeDeliveryDatesDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrderStatusChangeDeliveryDatesDTO := _OrderStatusChangeDeliveryDatesDTO{}
+
+ err = json.Unmarshal(data, &varOrderStatusChangeDeliveryDatesDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderStatusChangeDeliveryDatesDTO(varOrderStatusChangeDeliveryDatesDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "realDeliveryDate")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderStatusChangeDeliveryDatesDTO struct {
+ value *OrderStatusChangeDeliveryDatesDTO
+ isSet bool
+}
+
+func (v NullableOrderStatusChangeDeliveryDatesDTO) Get() *OrderStatusChangeDeliveryDatesDTO {
+ return v.value
+}
+
+func (v *NullableOrderStatusChangeDeliveryDatesDTO) Set(val *OrderStatusChangeDeliveryDatesDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderStatusChangeDeliveryDatesDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderStatusChangeDeliveryDatesDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderStatusChangeDeliveryDatesDTO(val *OrderStatusChangeDeliveryDatesDTO) *NullableOrderStatusChangeDeliveryDatesDTO {
+ return &NullableOrderStatusChangeDeliveryDatesDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderStatusChangeDeliveryDatesDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderStatusChangeDeliveryDatesDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_status_change_delivery_dto.go b/pkg/api/yandex/ymclient/model_order_status_change_delivery_dto.go
new file mode 100644
index 0000000..9ada817
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_status_change_delivery_dto.go
@@ -0,0 +1,153 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrderStatusChangeDeliveryDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderStatusChangeDeliveryDTO{}
+
+// OrderStatusChangeDeliveryDTO Информация о доставке.
+type OrderStatusChangeDeliveryDTO struct {
+ Dates *OrderStatusChangeDeliveryDatesDTO `json:"dates,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderStatusChangeDeliveryDTO OrderStatusChangeDeliveryDTO
+
+// NewOrderStatusChangeDeliveryDTO instantiates a new OrderStatusChangeDeliveryDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderStatusChangeDeliveryDTO() *OrderStatusChangeDeliveryDTO {
+ this := OrderStatusChangeDeliveryDTO{}
+ return &this
+}
+
+// NewOrderStatusChangeDeliveryDTOWithDefaults instantiates a new OrderStatusChangeDeliveryDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderStatusChangeDeliveryDTOWithDefaults() *OrderStatusChangeDeliveryDTO {
+ this := OrderStatusChangeDeliveryDTO{}
+ return &this
+}
+
+// GetDates returns the Dates field value if set, zero value otherwise.
+func (o *OrderStatusChangeDeliveryDTO) GetDates() OrderStatusChangeDeliveryDatesDTO {
+ if o == nil || IsNil(o.Dates) {
+ var ret OrderStatusChangeDeliveryDatesDTO
+ return ret
+ }
+ return *o.Dates
+}
+
+// GetDatesOk returns a tuple with the Dates field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderStatusChangeDeliveryDTO) GetDatesOk() (*OrderStatusChangeDeliveryDatesDTO, bool) {
+ if o == nil || IsNil(o.Dates) {
+ return nil, false
+ }
+ return o.Dates, true
+}
+
+// HasDates returns a boolean if a field has been set.
+func (o *OrderStatusChangeDeliveryDTO) HasDates() bool {
+ if o != nil && !IsNil(o.Dates) {
+ return true
+ }
+
+ return false
+}
+
+// SetDates gets a reference to the given OrderStatusChangeDeliveryDatesDTO and assigns it to the Dates field.
+func (o *OrderStatusChangeDeliveryDTO) SetDates(v OrderStatusChangeDeliveryDatesDTO) {
+ o.Dates = &v
+}
+
+func (o OrderStatusChangeDeliveryDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderStatusChangeDeliveryDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Dates) {
+ toSerialize["dates"] = o.Dates
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderStatusChangeDeliveryDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrderStatusChangeDeliveryDTO := _OrderStatusChangeDeliveryDTO{}
+
+ err = json.Unmarshal(data, &varOrderStatusChangeDeliveryDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderStatusChangeDeliveryDTO(varOrderStatusChangeDeliveryDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "dates")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderStatusChangeDeliveryDTO struct {
+ value *OrderStatusChangeDeliveryDTO
+ isSet bool
+}
+
+func (v NullableOrderStatusChangeDeliveryDTO) Get() *OrderStatusChangeDeliveryDTO {
+ return v.value
+}
+
+func (v *NullableOrderStatusChangeDeliveryDTO) Set(val *OrderStatusChangeDeliveryDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderStatusChangeDeliveryDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderStatusChangeDeliveryDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderStatusChangeDeliveryDTO(val *OrderStatusChangeDeliveryDTO) *NullableOrderStatusChangeDeliveryDTO {
+ return &NullableOrderStatusChangeDeliveryDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderStatusChangeDeliveryDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderStatusChangeDeliveryDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_status_change_dto.go b/pkg/api/yandex/ymclient/model_order_status_change_dto.go
new file mode 100644
index 0000000..6266f5d
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_status_change_dto.go
@@ -0,0 +1,240 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderStatusChangeDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderStatusChangeDTO{}
+
+// OrderStatusChangeDTO Заказ.
+type OrderStatusChangeDTO struct {
+ Status OrderStatusType `json:"status"`
+ Substatus *OrderSubstatusType `json:"substatus,omitempty"`
+ Delivery *OrderStatusChangeDeliveryDTO `json:"delivery,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderStatusChangeDTO OrderStatusChangeDTO
+
+// NewOrderStatusChangeDTO instantiates a new OrderStatusChangeDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderStatusChangeDTO(status OrderStatusType) *OrderStatusChangeDTO {
+ this := OrderStatusChangeDTO{}
+ this.Status = status
+ return &this
+}
+
+// NewOrderStatusChangeDTOWithDefaults instantiates a new OrderStatusChangeDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderStatusChangeDTOWithDefaults() *OrderStatusChangeDTO {
+ this := OrderStatusChangeDTO{}
+ return &this
+}
+
+// GetStatus returns the Status field value
+func (o *OrderStatusChangeDTO) GetStatus() OrderStatusType {
+ if o == nil {
+ var ret OrderStatusType
+ return ret
+ }
+
+ return o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value
+// and a boolean to check if the value has been set.
+func (o *OrderStatusChangeDTO) GetStatusOk() (*OrderStatusType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Status, true
+}
+
+// SetStatus sets field value
+func (o *OrderStatusChangeDTO) SetStatus(v OrderStatusType) {
+ o.Status = v
+}
+
+// GetSubstatus returns the Substatus field value if set, zero value otherwise.
+func (o *OrderStatusChangeDTO) GetSubstatus() OrderSubstatusType {
+ if o == nil || IsNil(o.Substatus) {
+ var ret OrderSubstatusType
+ return ret
+ }
+ return *o.Substatus
+}
+
+// GetSubstatusOk returns a tuple with the Substatus field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderStatusChangeDTO) GetSubstatusOk() (*OrderSubstatusType, bool) {
+ if o == nil || IsNil(o.Substatus) {
+ return nil, false
+ }
+ return o.Substatus, true
+}
+
+// HasSubstatus returns a boolean if a field has been set.
+func (o *OrderStatusChangeDTO) HasSubstatus() bool {
+ if o != nil && !IsNil(o.Substatus) {
+ return true
+ }
+
+ return false
+}
+
+// SetSubstatus gets a reference to the given OrderSubstatusType and assigns it to the Substatus field.
+func (o *OrderStatusChangeDTO) SetSubstatus(v OrderSubstatusType) {
+ o.Substatus = &v
+}
+
+// GetDelivery returns the Delivery field value if set, zero value otherwise.
+func (o *OrderStatusChangeDTO) GetDelivery() OrderStatusChangeDeliveryDTO {
+ if o == nil || IsNil(o.Delivery) {
+ var ret OrderStatusChangeDeliveryDTO
+ return ret
+ }
+ return *o.Delivery
+}
+
+// GetDeliveryOk returns a tuple with the Delivery field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderStatusChangeDTO) GetDeliveryOk() (*OrderStatusChangeDeliveryDTO, bool) {
+ if o == nil || IsNil(o.Delivery) {
+ return nil, false
+ }
+ return o.Delivery, true
+}
+
+// HasDelivery returns a boolean if a field has been set.
+func (o *OrderStatusChangeDTO) HasDelivery() bool {
+ if o != nil && !IsNil(o.Delivery) {
+ return true
+ }
+
+ return false
+}
+
+// SetDelivery gets a reference to the given OrderStatusChangeDeliveryDTO and assigns it to the Delivery field.
+func (o *OrderStatusChangeDTO) SetDelivery(v OrderStatusChangeDeliveryDTO) {
+ o.Delivery = &v
+}
+
+func (o OrderStatusChangeDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderStatusChangeDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["status"] = o.Status
+ if !IsNil(o.Substatus) {
+ toSerialize["substatus"] = o.Substatus
+ }
+ if !IsNil(o.Delivery) {
+ toSerialize["delivery"] = o.Delivery
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderStatusChangeDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "status",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderStatusChangeDTO := _OrderStatusChangeDTO{}
+
+ err = json.Unmarshal(data, &varOrderStatusChangeDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderStatusChangeDTO(varOrderStatusChangeDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "substatus")
+ delete(additionalProperties, "delivery")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderStatusChangeDTO struct {
+ value *OrderStatusChangeDTO
+ isSet bool
+}
+
+func (v NullableOrderStatusChangeDTO) Get() *OrderStatusChangeDTO {
+ return v.value
+}
+
+func (v *NullableOrderStatusChangeDTO) Set(val *OrderStatusChangeDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderStatusChangeDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderStatusChangeDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderStatusChangeDTO(val *OrderStatusChangeDTO) *NullableOrderStatusChangeDTO {
+ return &NullableOrderStatusChangeDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderStatusChangeDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderStatusChangeDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_status_type.go b/pkg/api/yandex/ymclient/model_order_status_type.go
new file mode 100644
index 0000000..c7a1086
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_status_type.go
@@ -0,0 +1,130 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderStatusType Статус заказа: * `PLACING` — оформляется, подготовка к резервированию. * `RESERVED` — зарезервирован, но недооформлен. * `UNPAID` — оформлен, но еще не оплачен (если выбрана оплата при оформлении). * `PROCESSING` — находится в обработке. * `DELIVERY` — передан в службу доставки. * `PICKUP` — доставлен в пункт самовывоза. * `DELIVERED` — получен покупателем. * `CANCELLED` — отменен. * `PENDING` — ожидает обработки со стороны продавца. * `PARTIALLY_RETURNED` — возвращен частично. * `RETURNED` — возвращен полностью. * `UNKNOWN` — неизвестный статус. Также могут возвращаться другие значения. Обрабатывать их не требуется.
+type OrderStatusType string
+
+// List of OrderStatusType
+const (
+ ORDERSTATUSTYPE_PLACING OrderStatusType = "PLACING"
+ ORDERSTATUSTYPE_RESERVED OrderStatusType = "RESERVED"
+ ORDERSTATUSTYPE_UNPAID OrderStatusType = "UNPAID"
+ ORDERSTATUSTYPE_PROCESSING OrderStatusType = "PROCESSING"
+ ORDERSTATUSTYPE_DELIVERY OrderStatusType = "DELIVERY"
+ ORDERSTATUSTYPE_PICKUP OrderStatusType = "PICKUP"
+ ORDERSTATUSTYPE_DELIVERED OrderStatusType = "DELIVERED"
+ ORDERSTATUSTYPE_CANCELLED OrderStatusType = "CANCELLED"
+ ORDERSTATUSTYPE_PENDING OrderStatusType = "PENDING"
+ ORDERSTATUSTYPE_PARTIALLY_RETURNED OrderStatusType = "PARTIALLY_RETURNED"
+ ORDERSTATUSTYPE_RETURNED OrderStatusType = "RETURNED"
+ ORDERSTATUSTYPE_UNKNOWN OrderStatusType = "UNKNOWN"
+)
+
+// All allowed values of OrderStatusType enum
+var AllowedOrderStatusTypeEnumValues = []OrderStatusType{
+ "PLACING",
+ "RESERVED",
+ "UNPAID",
+ "PROCESSING",
+ "DELIVERY",
+ "PICKUP",
+ "DELIVERED",
+ "CANCELLED",
+ "PENDING",
+ "PARTIALLY_RETURNED",
+ "RETURNED",
+ "UNKNOWN",
+}
+
+func (v *OrderStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderStatusType(value)
+ for _, existing := range AllowedOrderStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderStatusType", value)
+}
+
+// NewOrderStatusTypeFromValue returns a pointer to a valid OrderStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderStatusTypeFromValue(v string) (*OrderStatusType, error) {
+ ev := OrderStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderStatusType: valid values are %v", v, AllowedOrderStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderStatusType) IsValid() bool {
+ for _, existing := range AllowedOrderStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderStatusType value
+func (v OrderStatusType) Ptr() *OrderStatusType {
+ return &v
+}
+
+type NullableOrderStatusType struct {
+ value *OrderStatusType
+ isSet bool
+}
+
+func (v NullableOrderStatusType) Get() *OrderStatusType {
+ return v.value
+}
+
+func (v *NullableOrderStatusType) Set(val *OrderStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderStatusType(val *OrderStatusType) *NullableOrderStatusType {
+ return &NullableOrderStatusType{value: val, isSet: true}
+}
+
+func (v NullableOrderStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_subsidy_dto.go b/pkg/api/yandex/ymclient/model_order_subsidy_dto.go
new file mode 100644
index 0000000..0733fd5
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_subsidy_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderSubsidyDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderSubsidyDTO{}
+
+// OrderSubsidyDTO Общее вознаграждение продавцу за DBS-доставку и все скидки на товар: * по промокодам, купонам и акциям; * по баллам Плюса; * по доставке (DBS). Включает НДС.
+type OrderSubsidyDTO struct {
+ Type OrderSubsidyType `json:"type"`
+ // Сумма субсидии.
+ Amount float32 `json:"amount"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderSubsidyDTO OrderSubsidyDTO
+
+// NewOrderSubsidyDTO instantiates a new OrderSubsidyDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderSubsidyDTO(type_ OrderSubsidyType, amount float32) *OrderSubsidyDTO {
+ this := OrderSubsidyDTO{}
+ this.Type = type_
+ this.Amount = amount
+ return &this
+}
+
+// NewOrderSubsidyDTOWithDefaults instantiates a new OrderSubsidyDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderSubsidyDTOWithDefaults() *OrderSubsidyDTO {
+ this := OrderSubsidyDTO{}
+ return &this
+}
+
+// GetType returns the Type field value
+func (o *OrderSubsidyDTO) GetType() OrderSubsidyType {
+ if o == nil {
+ var ret OrderSubsidyType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *OrderSubsidyDTO) GetTypeOk() (*OrderSubsidyType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *OrderSubsidyDTO) SetType(v OrderSubsidyType) {
+ o.Type = v
+}
+
+// GetAmount returns the Amount field value
+func (o *OrderSubsidyDTO) GetAmount() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Amount
+}
+
+// GetAmountOk returns a tuple with the Amount field value
+// and a boolean to check if the value has been set.
+func (o *OrderSubsidyDTO) GetAmountOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Amount, true
+}
+
+// SetAmount sets field value
+func (o *OrderSubsidyDTO) SetAmount(v float32) {
+ o.Amount = v
+}
+
+func (o OrderSubsidyDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderSubsidyDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["type"] = o.Type
+ toSerialize["amount"] = o.Amount
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderSubsidyDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "type",
+ "amount",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderSubsidyDTO := _OrderSubsidyDTO{}
+
+ err = json.Unmarshal(data, &varOrderSubsidyDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderSubsidyDTO(varOrderSubsidyDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "amount")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderSubsidyDTO struct {
+ value *OrderSubsidyDTO
+ isSet bool
+}
+
+func (v NullableOrderSubsidyDTO) Get() *OrderSubsidyDTO {
+ return v.value
+}
+
+func (v *NullableOrderSubsidyDTO) Set(val *OrderSubsidyDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderSubsidyDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderSubsidyDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderSubsidyDTO(val *OrderSubsidyDTO) *NullableOrderSubsidyDTO {
+ return &NullableOrderSubsidyDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderSubsidyDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderSubsidyDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_subsidy_type.go b/pkg/api/yandex/ymclient/model_order_subsidy_type.go
new file mode 100644
index 0000000..b583372
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_subsidy_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderSubsidyType Тип субсидии: * `YANDEX_CASHBACK` — скидка по подписке Яндекс Плюс. * `SUBSIDY` — скидка Маркета (по акциям, промокодам, купонам и т. д.) * `DELIVERY` — скидка за доставку (DBS).
+type OrderSubsidyType string
+
+// List of OrderSubsidyType
+const (
+ ORDERSUBSIDYTYPE_YANDEX_CASHBACK OrderSubsidyType = "YANDEX_CASHBACK"
+ ORDERSUBSIDYTYPE_SUBSIDY OrderSubsidyType = "SUBSIDY"
+ ORDERSUBSIDYTYPE_DELIVERY OrderSubsidyType = "DELIVERY"
+)
+
+// All allowed values of OrderSubsidyType enum
+var AllowedOrderSubsidyTypeEnumValues = []OrderSubsidyType{
+ "YANDEX_CASHBACK",
+ "SUBSIDY",
+ "DELIVERY",
+}
+
+func (v *OrderSubsidyType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderSubsidyType(value)
+ for _, existing := range AllowedOrderSubsidyTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderSubsidyType", value)
+}
+
+// NewOrderSubsidyTypeFromValue returns a pointer to a valid OrderSubsidyType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderSubsidyTypeFromValue(v string) (*OrderSubsidyType, error) {
+ ev := OrderSubsidyType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderSubsidyType: valid values are %v", v, AllowedOrderSubsidyTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderSubsidyType) IsValid() bool {
+ for _, existing := range AllowedOrderSubsidyTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderSubsidyType value
+func (v OrderSubsidyType) Ptr() *OrderSubsidyType {
+ return &v
+}
+
+type NullableOrderSubsidyType struct {
+ value *OrderSubsidyType
+ isSet bool
+}
+
+func (v NullableOrderSubsidyType) Get() *OrderSubsidyType {
+ return v.value
+}
+
+func (v *NullableOrderSubsidyType) Set(val *OrderSubsidyType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderSubsidyType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderSubsidyType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderSubsidyType(val *OrderSubsidyType) *NullableOrderSubsidyType {
+ return &NullableOrderSubsidyType{value: val, isSet: true}
+}
+
+func (v NullableOrderSubsidyType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderSubsidyType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_substatus_type.go b/pkg/api/yandex/ymclient/model_order_substatus_type.go
new file mode 100644
index 0000000..79d573f
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_substatus_type.go
@@ -0,0 +1,336 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderSubstatusType Этап обработки заказа (если он имеет статус `PROCESSING`) или причина отмены заказа (если он имеет статус `CANCELLED`). * Значения для заказа в статусе `PROCESSING`: * `STARTED` — заказ подтвержден, его можно начать обрабатывать. * `READY_TO_SHIP` — заказ собран и готов к отправке. * Значения для заказа в статусе `CANCELLED`: * `RESERVATION_EXPIRED` — покупатель не завершил оформление зарезервированного заказа в течение 10 минут. * `USER_NOT_PAID` — покупатель не оплатил заказ (для типа оплаты `PREPAID`) в течение 30 минут. * `USER_UNREACHABLE` — не удалось связаться с покупателем. Для отмены с этой причиной необходимо выполнить условия: * не менее 3 звонков с 8 до 21 в часовом поясе покупателя; * перерыв между первым и третьим звонком не менее 90 минут; * соединение не короче 5 секунд. Если хотя бы одно из этих условий не выполнено (кроме случая, когда номер недоступен), отменить заказ не получится. Вернется ответ с кодом ошибки 400. * `USER_CHANGED_MIND` — покупатель отменил заказ по личным причинам. * `USER_REFUSED_DELIVERY` — покупателя не устроили условия доставки. * `USER_REFUSED_PRODUCT` — покупателю не подошел товар. * `SHOP_FAILED` — магазин не может выполнить заказ. * `USER_REFUSED_QUALITY` — покупателя не устроило качество товара. * `REPLACING_ORDER` — покупатель решил заменить товар другим по собственной инициативе. * `PROCESSING_EXPIRED` — значение более не используется. * `PICKUP_EXPIRED` — закончился срок хранения заказа в ПВЗ. * `TOO_MANY_DELIVERY_DATE_CHANGES` — заказ переносили слишком много раз. * `TOO_LONG_DELIVERY` — заказ доставляется слишком долго. * `TECHNICAL_ERROR` — техническая ошибка на стороне Маркета. Обратитесь в поддержку. Также могут возвращаться другие значения. Обрабатывать их не требуется.
+type OrderSubstatusType string
+
+// List of OrderSubstatusType
+const (
+ ORDERSUBSTATUSTYPE_RESERVATION_EXPIRED OrderSubstatusType = "RESERVATION_EXPIRED"
+ ORDERSUBSTATUSTYPE_USER_NOT_PAID OrderSubstatusType = "USER_NOT_PAID"
+ ORDERSUBSTATUSTYPE_USER_UNREACHABLE OrderSubstatusType = "USER_UNREACHABLE"
+ ORDERSUBSTATUSTYPE_USER_CHANGED_MIND OrderSubstatusType = "USER_CHANGED_MIND"
+ ORDERSUBSTATUSTYPE_USER_REFUSED_DELIVERY OrderSubstatusType = "USER_REFUSED_DELIVERY"
+ ORDERSUBSTATUSTYPE_USER_REFUSED_PRODUCT OrderSubstatusType = "USER_REFUSED_PRODUCT"
+ ORDERSUBSTATUSTYPE_SHOP_FAILED OrderSubstatusType = "SHOP_FAILED"
+ ORDERSUBSTATUSTYPE_USER_REFUSED_QUALITY OrderSubstatusType = "USER_REFUSED_QUALITY"
+ ORDERSUBSTATUSTYPE_REPLACING_ORDER OrderSubstatusType = "REPLACING_ORDER"
+ ORDERSUBSTATUSTYPE_PROCESSING_EXPIRED OrderSubstatusType = "PROCESSING_EXPIRED"
+ ORDERSUBSTATUSTYPE_PENDING_EXPIRED OrderSubstatusType = "PENDING_EXPIRED"
+ ORDERSUBSTATUSTYPE_SHOP_PENDING_CANCELLED OrderSubstatusType = "SHOP_PENDING_CANCELLED"
+ ORDERSUBSTATUSTYPE_PENDING_CANCELLED OrderSubstatusType = "PENDING_CANCELLED"
+ ORDERSUBSTATUSTYPE_USER_FRAUD OrderSubstatusType = "USER_FRAUD"
+ ORDERSUBSTATUSTYPE_RESERVATION_FAILED OrderSubstatusType = "RESERVATION_FAILED"
+ ORDERSUBSTATUSTYPE_USER_PLACED_OTHER_ORDER OrderSubstatusType = "USER_PLACED_OTHER_ORDER"
+ ORDERSUBSTATUSTYPE_USER_BOUGHT_CHEAPER OrderSubstatusType = "USER_BOUGHT_CHEAPER"
+ ORDERSUBSTATUSTYPE_MISSING_ITEM OrderSubstatusType = "MISSING_ITEM"
+ ORDERSUBSTATUSTYPE_BROKEN_ITEM OrderSubstatusType = "BROKEN_ITEM"
+ ORDERSUBSTATUSTYPE_WRONG_ITEM OrderSubstatusType = "WRONG_ITEM"
+ ORDERSUBSTATUSTYPE_PICKUP_EXPIRED OrderSubstatusType = "PICKUP_EXPIRED"
+ ORDERSUBSTATUSTYPE_DELIVERY_PROBLEMS OrderSubstatusType = "DELIVERY_PROBLEMS"
+ ORDERSUBSTATUSTYPE_LATE_CONTACT OrderSubstatusType = "LATE_CONTACT"
+ ORDERSUBSTATUSTYPE_CUSTOM OrderSubstatusType = "CUSTOM"
+ ORDERSUBSTATUSTYPE_DELIVERY_SERVICE_FAILED OrderSubstatusType = "DELIVERY_SERVICE_FAILED"
+ ORDERSUBSTATUSTYPE_WAREHOUSE_FAILED_TO_SHIP OrderSubstatusType = "WAREHOUSE_FAILED_TO_SHIP"
+ ORDERSUBSTATUSTYPE_DELIVERY_SERVICE_UNDELIVERED OrderSubstatusType = "DELIVERY_SERVICE_UNDELIVERED"
+ ORDERSUBSTATUSTYPE_PREORDER OrderSubstatusType = "PREORDER"
+ ORDERSUBSTATUSTYPE_AWAIT_CONFIRMATION OrderSubstatusType = "AWAIT_CONFIRMATION"
+ ORDERSUBSTATUSTYPE_STARTED OrderSubstatusType = "STARTED"
+ ORDERSUBSTATUSTYPE_PACKAGING OrderSubstatusType = "PACKAGING"
+ ORDERSUBSTATUSTYPE_READY_TO_SHIP OrderSubstatusType = "READY_TO_SHIP"
+ ORDERSUBSTATUSTYPE_SHIPPED OrderSubstatusType = "SHIPPED"
+ ORDERSUBSTATUSTYPE_ASYNC_PROCESSING OrderSubstatusType = "ASYNC_PROCESSING"
+ ORDERSUBSTATUSTYPE_WAITING_USER_INPUT OrderSubstatusType = "WAITING_USER_INPUT"
+ ORDERSUBSTATUSTYPE_WAITING_BANK_DECISION OrderSubstatusType = "WAITING_BANK_DECISION"
+ ORDERSUBSTATUSTYPE_BANK_REJECT_CREDIT_OFFER OrderSubstatusType = "BANK_REJECT_CREDIT_OFFER"
+ ORDERSUBSTATUSTYPE_CUSTOMER_REJECT_CREDIT_OFFER OrderSubstatusType = "CUSTOMER_REJECT_CREDIT_OFFER"
+ ORDERSUBSTATUSTYPE_CREDIT_OFFER_FAILED OrderSubstatusType = "CREDIT_OFFER_FAILED"
+ ORDERSUBSTATUSTYPE_AWAIT_DELIVERY_DATES_CONFIRMATION OrderSubstatusType = "AWAIT_DELIVERY_DATES_CONFIRMATION"
+ ORDERSUBSTATUSTYPE_SERVICE_FAULT OrderSubstatusType = "SERVICE_FAULT"
+ ORDERSUBSTATUSTYPE_DELIVERY_SERVICE_RECEIVED OrderSubstatusType = "DELIVERY_SERVICE_RECEIVED"
+ ORDERSUBSTATUSTYPE_USER_RECEIVED OrderSubstatusType = "USER_RECEIVED"
+ ORDERSUBSTATUSTYPE_WAITING_FOR_STOCKS OrderSubstatusType = "WAITING_FOR_STOCKS"
+ ORDERSUBSTATUSTYPE_AS_PART_OF_MULTI_ORDER OrderSubstatusType = "AS_PART_OF_MULTI_ORDER"
+ ORDERSUBSTATUSTYPE_READY_FOR_LAST_MILE OrderSubstatusType = "READY_FOR_LAST_MILE"
+ ORDERSUBSTATUSTYPE_LAST_MILE_STARTED OrderSubstatusType = "LAST_MILE_STARTED"
+ ORDERSUBSTATUSTYPE_ANTIFRAUD OrderSubstatusType = "ANTIFRAUD"
+ ORDERSUBSTATUSTYPE_DELIVERY_USER_NOT_RECEIVED OrderSubstatusType = "DELIVERY_USER_NOT_RECEIVED"
+ ORDERSUBSTATUSTYPE_DELIVERY_SERVICE_DELIVERED OrderSubstatusType = "DELIVERY_SERVICE_DELIVERED"
+ ORDERSUBSTATUSTYPE_DELIVERED_USER_NOT_RECEIVED OrderSubstatusType = "DELIVERED_USER_NOT_RECEIVED"
+ ORDERSUBSTATUSTYPE_USER_WANTED_ANOTHER_PAYMENT_METHOD OrderSubstatusType = "USER_WANTED_ANOTHER_PAYMENT_METHOD"
+ ORDERSUBSTATUSTYPE_USER_RECEIVED_TECHNICAL_ERROR OrderSubstatusType = "USER_RECEIVED_TECHNICAL_ERROR"
+ ORDERSUBSTATUSTYPE_USER_FORGOT_TO_USE_BONUS OrderSubstatusType = "USER_FORGOT_TO_USE_BONUS"
+ ORDERSUBSTATUSTYPE_DELIVERY_SERVICE_NOT_RECEIVED OrderSubstatusType = "DELIVERY_SERVICE_NOT_RECEIVED"
+ ORDERSUBSTATUSTYPE_DELIVERY_SERVICE_LOST OrderSubstatusType = "DELIVERY_SERVICE_LOST"
+ ORDERSUBSTATUSTYPE_SHIPPED_TO_WRONG_DELIVERY_SERVICE OrderSubstatusType = "SHIPPED_TO_WRONG_DELIVERY_SERVICE"
+ ORDERSUBSTATUSTYPE_DELIVERED_USER_RECEIVED OrderSubstatusType = "DELIVERED_USER_RECEIVED"
+ ORDERSUBSTATUSTYPE_WAITING_TINKOFF_DECISION OrderSubstatusType = "WAITING_TINKOFF_DECISION"
+ ORDERSUBSTATUSTYPE_COURIER_SEARCH OrderSubstatusType = "COURIER_SEARCH"
+ ORDERSUBSTATUSTYPE_COURIER_FOUND OrderSubstatusType = "COURIER_FOUND"
+ ORDERSUBSTATUSTYPE_COURIER_IN_TRANSIT_TO_SENDER OrderSubstatusType = "COURIER_IN_TRANSIT_TO_SENDER"
+ ORDERSUBSTATUSTYPE_COURIER_ARRIVED_TO_SENDER OrderSubstatusType = "COURIER_ARRIVED_TO_SENDER"
+ ORDERSUBSTATUSTYPE_COURIER_RECEIVED OrderSubstatusType = "COURIER_RECEIVED"
+ ORDERSUBSTATUSTYPE_COURIER_NOT_FOUND OrderSubstatusType = "COURIER_NOT_FOUND"
+ ORDERSUBSTATUSTYPE_COURIER_NOT_DELIVER_ORDER OrderSubstatusType = "COURIER_NOT_DELIVER_ORDER"
+ ORDERSUBSTATUSTYPE_COURIER_RETURNS_ORDER OrderSubstatusType = "COURIER_RETURNS_ORDER"
+ ORDERSUBSTATUSTYPE_COURIER_RETURNED_ORDER OrderSubstatusType = "COURIER_RETURNED_ORDER"
+ ORDERSUBSTATUSTYPE_WAITING_USER_DELIVERY_INPUT OrderSubstatusType = "WAITING_USER_DELIVERY_INPUT"
+ ORDERSUBSTATUSTYPE_PICKUP_SERVICE_RECEIVED OrderSubstatusType = "PICKUP_SERVICE_RECEIVED"
+ ORDERSUBSTATUSTYPE_PICKUP_USER_RECEIVED OrderSubstatusType = "PICKUP_USER_RECEIVED"
+ ORDERSUBSTATUSTYPE_CANCELLED_COURIER_NOT_FOUND OrderSubstatusType = "CANCELLED_COURIER_NOT_FOUND"
+ ORDERSUBSTATUSTYPE_COURIER_NOT_COME_FOR_ORDER OrderSubstatusType = "COURIER_NOT_COME_FOR_ORDER"
+ ORDERSUBSTATUSTYPE_DELIVERY_NOT_MANAGED_REGION OrderSubstatusType = "DELIVERY_NOT_MANAGED_REGION"
+ ORDERSUBSTATUSTYPE_INCOMPLETE_CONTACT_INFORMATION OrderSubstatusType = "INCOMPLETE_CONTACT_INFORMATION"
+ ORDERSUBSTATUSTYPE_INCOMPLETE_MULTI_ORDER OrderSubstatusType = "INCOMPLETE_MULTI_ORDER"
+ ORDERSUBSTATUSTYPE_INAPPROPRIATE_WEIGHT_SIZE OrderSubstatusType = "INAPPROPRIATE_WEIGHT_SIZE"
+ ORDERSUBSTATUSTYPE_TECHNICAL_ERROR OrderSubstatusType = "TECHNICAL_ERROR"
+ ORDERSUBSTATUSTYPE_SORTING_CENTER_LOST OrderSubstatusType = "SORTING_CENTER_LOST"
+ ORDERSUBSTATUSTYPE_COURIER_SEARCH_NOT_STARTED OrderSubstatusType = "COURIER_SEARCH_NOT_STARTED"
+ ORDERSUBSTATUSTYPE_LOST OrderSubstatusType = "LOST"
+ ORDERSUBSTATUSTYPE_AWAIT_PAYMENT OrderSubstatusType = "AWAIT_PAYMENT"
+ ORDERSUBSTATUSTYPE_AWAIT_LAVKA_RESERVATION OrderSubstatusType = "AWAIT_LAVKA_RESERVATION"
+ ORDERSUBSTATUSTYPE_USER_WANTS_TO_CHANGE_ADDRESS OrderSubstatusType = "USER_WANTS_TO_CHANGE_ADDRESS"
+ ORDERSUBSTATUSTYPE_FULL_NOT_RANSOM OrderSubstatusType = "FULL_NOT_RANSOM"
+ ORDERSUBSTATUSTYPE_PRESCRIPTION_MISMATCH OrderSubstatusType = "PRESCRIPTION_MISMATCH"
+ ORDERSUBSTATUSTYPE_DROPOFF_LOST OrderSubstatusType = "DROPOFF_LOST"
+ ORDERSUBSTATUSTYPE_DROPOFF_CLOSED OrderSubstatusType = "DROPOFF_CLOSED"
+ ORDERSUBSTATUSTYPE_DELIVERY_TO_STORE_STARTED OrderSubstatusType = "DELIVERY_TO_STORE_STARTED"
+ ORDERSUBSTATUSTYPE_USER_WANTS_TO_CHANGE_DELIVERY_DATE OrderSubstatusType = "USER_WANTS_TO_CHANGE_DELIVERY_DATE"
+ ORDERSUBSTATUSTYPE_WRONG_ITEM_DELIVERED OrderSubstatusType = "WRONG_ITEM_DELIVERED"
+ ORDERSUBSTATUSTYPE_DAMAGED_BOX OrderSubstatusType = "DAMAGED_BOX"
+ ORDERSUBSTATUSTYPE_AWAIT_DELIVERY_DATES OrderSubstatusType = "AWAIT_DELIVERY_DATES"
+ ORDERSUBSTATUSTYPE_LAST_MILE_COURIER_SEARCH OrderSubstatusType = "LAST_MILE_COURIER_SEARCH"
+ ORDERSUBSTATUSTYPE_PICKUP_POINT_CLOSED OrderSubstatusType = "PICKUP_POINT_CLOSED"
+ ORDERSUBSTATUSTYPE_LEGAL_INFO_CHANGED OrderSubstatusType = "LEGAL_INFO_CHANGED"
+ ORDERSUBSTATUSTYPE_USER_HAS_NO_TIME_TO_PICKUP_ORDER OrderSubstatusType = "USER_HAS_NO_TIME_TO_PICKUP_ORDER"
+ ORDERSUBSTATUSTYPE_DELIVERY_CUSTOMS_ARRIVED OrderSubstatusType = "DELIVERY_CUSTOMS_ARRIVED"
+ ORDERSUBSTATUSTYPE_DELIVERY_CUSTOMS_CLEARED OrderSubstatusType = "DELIVERY_CUSTOMS_CLEARED"
+ ORDERSUBSTATUSTYPE_FIRST_MILE_DELIVERY_SERVICE_RECEIVED OrderSubstatusType = "FIRST_MILE_DELIVERY_SERVICE_RECEIVED"
+ ORDERSUBSTATUSTYPE_AWAIT_AUTO_DELIVERY_DATES OrderSubstatusType = "AWAIT_AUTO_DELIVERY_DATES"
+ ORDERSUBSTATUSTYPE_AWAIT_USER_PERSONAL_DATA OrderSubstatusType = "AWAIT_USER_PERSONAL_DATA"
+ ORDERSUBSTATUSTYPE_NO_PERSONAL_DATA_EXPIRED OrderSubstatusType = "NO_PERSONAL_DATA_EXPIRED"
+ ORDERSUBSTATUSTYPE_CUSTOMS_PROBLEMS OrderSubstatusType = "CUSTOMS_PROBLEMS"
+ ORDERSUBSTATUSTYPE_AWAIT_CASHIER OrderSubstatusType = "AWAIT_CASHIER"
+ ORDERSUBSTATUSTYPE_WAITING_POSTPAID_BUDGET_RESERVATION OrderSubstatusType = "WAITING_POSTPAID_BUDGET_RESERVATION"
+ ORDERSUBSTATUSTYPE_AWAIT_SERVICEABLE_CONFIRMATION OrderSubstatusType = "AWAIT_SERVICEABLE_CONFIRMATION"
+ ORDERSUBSTATUSTYPE_POSTPAID_BUDGET_RESERVATION_FAILED OrderSubstatusType = "POSTPAID_BUDGET_RESERVATION_FAILED"
+ ORDERSUBSTATUSTYPE_AWAIT_CUSTOM_PRICE_CONFIRMATION OrderSubstatusType = "AWAIT_CUSTOM_PRICE_CONFIRMATION"
+ ORDERSUBSTATUSTYPE_READY_FOR_PICKUP OrderSubstatusType = "READY_FOR_PICKUP"
+ ORDERSUBSTATUSTYPE_TOO_MANY_DELIVERY_DATE_CHANGES OrderSubstatusType = "TOO_MANY_DELIVERY_DATE_CHANGES"
+ ORDERSUBSTATUSTYPE_TOO_LONG_DELIVERY OrderSubstatusType = "TOO_LONG_DELIVERY"
+ ORDERSUBSTATUSTYPE_DEFERRED_PAYMENT OrderSubstatusType = "DEFERRED_PAYMENT"
+ ORDERSUBSTATUSTYPE_POSTPAID_FAILED OrderSubstatusType = "POSTPAID_FAILED"
+ ORDERSUBSTATUSTYPE_UNKNOWN OrderSubstatusType = "UNKNOWN"
+)
+
+// All allowed values of OrderSubstatusType enum
+var AllowedOrderSubstatusTypeEnumValues = []OrderSubstatusType{
+ "RESERVATION_EXPIRED",
+ "USER_NOT_PAID",
+ "USER_UNREACHABLE",
+ "USER_CHANGED_MIND",
+ "USER_REFUSED_DELIVERY",
+ "USER_REFUSED_PRODUCT",
+ "SHOP_FAILED",
+ "USER_REFUSED_QUALITY",
+ "REPLACING_ORDER",
+ "PROCESSING_EXPIRED",
+ "PENDING_EXPIRED",
+ "SHOP_PENDING_CANCELLED",
+ "PENDING_CANCELLED",
+ "USER_FRAUD",
+ "RESERVATION_FAILED",
+ "USER_PLACED_OTHER_ORDER",
+ "USER_BOUGHT_CHEAPER",
+ "MISSING_ITEM",
+ "BROKEN_ITEM",
+ "WRONG_ITEM",
+ "PICKUP_EXPIRED",
+ "DELIVERY_PROBLEMS",
+ "LATE_CONTACT",
+ "CUSTOM",
+ "DELIVERY_SERVICE_FAILED",
+ "WAREHOUSE_FAILED_TO_SHIP",
+ "DELIVERY_SERVICE_UNDELIVERED",
+ "PREORDER",
+ "AWAIT_CONFIRMATION",
+ "STARTED",
+ "PACKAGING",
+ "READY_TO_SHIP",
+ "SHIPPED",
+ "ASYNC_PROCESSING",
+ "WAITING_USER_INPUT",
+ "WAITING_BANK_DECISION",
+ "BANK_REJECT_CREDIT_OFFER",
+ "CUSTOMER_REJECT_CREDIT_OFFER",
+ "CREDIT_OFFER_FAILED",
+ "AWAIT_DELIVERY_DATES_CONFIRMATION",
+ "SERVICE_FAULT",
+ "DELIVERY_SERVICE_RECEIVED",
+ "USER_RECEIVED",
+ "WAITING_FOR_STOCKS",
+ "AS_PART_OF_MULTI_ORDER",
+ "READY_FOR_LAST_MILE",
+ "LAST_MILE_STARTED",
+ "ANTIFRAUD",
+ "DELIVERY_USER_NOT_RECEIVED",
+ "DELIVERY_SERVICE_DELIVERED",
+ "DELIVERED_USER_NOT_RECEIVED",
+ "USER_WANTED_ANOTHER_PAYMENT_METHOD",
+ "USER_RECEIVED_TECHNICAL_ERROR",
+ "USER_FORGOT_TO_USE_BONUS",
+ "DELIVERY_SERVICE_NOT_RECEIVED",
+ "DELIVERY_SERVICE_LOST",
+ "SHIPPED_TO_WRONG_DELIVERY_SERVICE",
+ "DELIVERED_USER_RECEIVED",
+ "WAITING_TINKOFF_DECISION",
+ "COURIER_SEARCH",
+ "COURIER_FOUND",
+ "COURIER_IN_TRANSIT_TO_SENDER",
+ "COURIER_ARRIVED_TO_SENDER",
+ "COURIER_RECEIVED",
+ "COURIER_NOT_FOUND",
+ "COURIER_NOT_DELIVER_ORDER",
+ "COURIER_RETURNS_ORDER",
+ "COURIER_RETURNED_ORDER",
+ "WAITING_USER_DELIVERY_INPUT",
+ "PICKUP_SERVICE_RECEIVED",
+ "PICKUP_USER_RECEIVED",
+ "CANCELLED_COURIER_NOT_FOUND",
+ "COURIER_NOT_COME_FOR_ORDER",
+ "DELIVERY_NOT_MANAGED_REGION",
+ "INCOMPLETE_CONTACT_INFORMATION",
+ "INCOMPLETE_MULTI_ORDER",
+ "INAPPROPRIATE_WEIGHT_SIZE",
+ "TECHNICAL_ERROR",
+ "SORTING_CENTER_LOST",
+ "COURIER_SEARCH_NOT_STARTED",
+ "LOST",
+ "AWAIT_PAYMENT",
+ "AWAIT_LAVKA_RESERVATION",
+ "USER_WANTS_TO_CHANGE_ADDRESS",
+ "FULL_NOT_RANSOM",
+ "PRESCRIPTION_MISMATCH",
+ "DROPOFF_LOST",
+ "DROPOFF_CLOSED",
+ "DELIVERY_TO_STORE_STARTED",
+ "USER_WANTS_TO_CHANGE_DELIVERY_DATE",
+ "WRONG_ITEM_DELIVERED",
+ "DAMAGED_BOX",
+ "AWAIT_DELIVERY_DATES",
+ "LAST_MILE_COURIER_SEARCH",
+ "PICKUP_POINT_CLOSED",
+ "LEGAL_INFO_CHANGED",
+ "USER_HAS_NO_TIME_TO_PICKUP_ORDER",
+ "DELIVERY_CUSTOMS_ARRIVED",
+ "DELIVERY_CUSTOMS_CLEARED",
+ "FIRST_MILE_DELIVERY_SERVICE_RECEIVED",
+ "AWAIT_AUTO_DELIVERY_DATES",
+ "AWAIT_USER_PERSONAL_DATA",
+ "NO_PERSONAL_DATA_EXPIRED",
+ "CUSTOMS_PROBLEMS",
+ "AWAIT_CASHIER",
+ "WAITING_POSTPAID_BUDGET_RESERVATION",
+ "AWAIT_SERVICEABLE_CONFIRMATION",
+ "POSTPAID_BUDGET_RESERVATION_FAILED",
+ "AWAIT_CUSTOM_PRICE_CONFIRMATION",
+ "READY_FOR_PICKUP",
+ "TOO_MANY_DELIVERY_DATE_CHANGES",
+ "TOO_LONG_DELIVERY",
+ "DEFERRED_PAYMENT",
+ "POSTPAID_FAILED",
+ "UNKNOWN",
+}
+
+func (v *OrderSubstatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderSubstatusType(value)
+ for _, existing := range AllowedOrderSubstatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderSubstatusType", value)
+}
+
+// NewOrderSubstatusTypeFromValue returns a pointer to a valid OrderSubstatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderSubstatusTypeFromValue(v string) (*OrderSubstatusType, error) {
+ ev := OrderSubstatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderSubstatusType: valid values are %v", v, AllowedOrderSubstatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderSubstatusType) IsValid() bool {
+ for _, existing := range AllowedOrderSubstatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderSubstatusType value
+func (v OrderSubstatusType) Ptr() *OrderSubstatusType {
+ return &v
+}
+
+type NullableOrderSubstatusType struct {
+ value *OrderSubstatusType
+ isSet bool
+}
+
+func (v NullableOrderSubstatusType) Get() *OrderSubstatusType {
+ return v.value
+}
+
+func (v *NullableOrderSubstatusType) Set(val *OrderSubstatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderSubstatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderSubstatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderSubstatusType(val *OrderSubstatusType) *NullableOrderSubstatusType {
+ return &NullableOrderSubstatusType{value: val, isSet: true}
+}
+
+func (v NullableOrderSubstatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderSubstatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_tax_system_type.go b/pkg/api/yandex/ymclient/model_order_tax_system_type.go
new file mode 100644
index 0000000..72a20a4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_tax_system_type.go
@@ -0,0 +1,122 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderTaxSystemType Система налогообложения (СНО) магазина на момент оформления заказа: * `ECHN` — единый сельскохозяйственный налог (ЕСХН). * `ENVD` — единый налог на вмененный доход (ЕНВД). * `OSN` — общая система налогообложения (ОСН). * `PSN` — патентная система налогообложения (ПСН). * `USN` — упрощенная система налогообложения (УСН). * `USN_MINUS_COST` — упрощенная система налогообложения, доходы, уменьшенные на величину расходов (УСН «Доходы минус расходы»). * `NPD` — налог на профессиональный доход (НПД). * `UNKNOWN_VALUE` — неизвестное значение. Используется только совместно с параметром `payment-method=YANDEX`.
+type OrderTaxSystemType string
+
+// List of OrderTaxSystemType
+const (
+ ORDERTAXSYSTEMTYPE_OSN OrderTaxSystemType = "OSN"
+ ORDERTAXSYSTEMTYPE_USN OrderTaxSystemType = "USN"
+ ORDERTAXSYSTEMTYPE_USN_MINUS_COST OrderTaxSystemType = "USN_MINUS_COST"
+ ORDERTAXSYSTEMTYPE_ENVD OrderTaxSystemType = "ENVD"
+ ORDERTAXSYSTEMTYPE_ECHN OrderTaxSystemType = "ECHN"
+ ORDERTAXSYSTEMTYPE_PSN OrderTaxSystemType = "PSN"
+ ORDERTAXSYSTEMTYPE_NPD OrderTaxSystemType = "NPD"
+ ORDERTAXSYSTEMTYPE_UNKNOWN_VALUE OrderTaxSystemType = "UNKNOWN_VALUE"
+)
+
+// All allowed values of OrderTaxSystemType enum
+var AllowedOrderTaxSystemTypeEnumValues = []OrderTaxSystemType{
+ "OSN",
+ "USN",
+ "USN_MINUS_COST",
+ "ENVD",
+ "ECHN",
+ "PSN",
+ "NPD",
+ "UNKNOWN_VALUE",
+}
+
+func (v *OrderTaxSystemType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderTaxSystemType(value)
+ for _, existing := range AllowedOrderTaxSystemTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderTaxSystemType", value)
+}
+
+// NewOrderTaxSystemTypeFromValue returns a pointer to a valid OrderTaxSystemType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderTaxSystemTypeFromValue(v string) (*OrderTaxSystemType, error) {
+ ev := OrderTaxSystemType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderTaxSystemType: valid values are %v", v, AllowedOrderTaxSystemTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderTaxSystemType) IsValid() bool {
+ for _, existing := range AllowedOrderTaxSystemTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderTaxSystemType value
+func (v OrderTaxSystemType) Ptr() *OrderTaxSystemType {
+ return &v
+}
+
+type NullableOrderTaxSystemType struct {
+ value *OrderTaxSystemType
+ isSet bool
+}
+
+func (v NullableOrderTaxSystemType) Get() *OrderTaxSystemType {
+ return v.value
+}
+
+func (v *NullableOrderTaxSystemType) Set(val *OrderTaxSystemType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderTaxSystemType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderTaxSystemType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderTaxSystemType(val *OrderTaxSystemType) *NullableOrderTaxSystemType {
+ return &NullableOrderTaxSystemType{value: val, isSet: true}
+}
+
+func (v NullableOrderTaxSystemType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderTaxSystemType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_track_dto.go b/pkg/api/yandex/ymclient/model_order_track_dto.go
new file mode 100644
index 0000000..555737f
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_track_dto.go
@@ -0,0 +1,205 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrderTrackDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrderTrackDTO{}
+
+// OrderTrackDTO Информация о трек-номере посылки (:no-translate[DBS]).
+type OrderTrackDTO struct {
+ // Трек‑номер посылки.
+ TrackCode *string `json:"trackCode,omitempty"`
+ // Идентификатор службы доставки. Информацию о службе доставки можно получить с помощью запроса [GET delivery/services](../../reference/orders/getDeliveryServices.md).
+ DeliveryServiceId int64 `json:"deliveryServiceId"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrderTrackDTO OrderTrackDTO
+
+// NewOrderTrackDTO instantiates a new OrderTrackDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrderTrackDTO(deliveryServiceId int64) *OrderTrackDTO {
+ this := OrderTrackDTO{}
+ this.DeliveryServiceId = deliveryServiceId
+ return &this
+}
+
+// NewOrderTrackDTOWithDefaults instantiates a new OrderTrackDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrderTrackDTOWithDefaults() *OrderTrackDTO {
+ this := OrderTrackDTO{}
+ return &this
+}
+
+// GetTrackCode returns the TrackCode field value if set, zero value otherwise.
+func (o *OrderTrackDTO) GetTrackCode() string {
+ if o == nil || IsNil(o.TrackCode) {
+ var ret string
+ return ret
+ }
+ return *o.TrackCode
+}
+
+// GetTrackCodeOk returns a tuple with the TrackCode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrderTrackDTO) GetTrackCodeOk() (*string, bool) {
+ if o == nil || IsNil(o.TrackCode) {
+ return nil, false
+ }
+ return o.TrackCode, true
+}
+
+// HasTrackCode returns a boolean if a field has been set.
+func (o *OrderTrackDTO) HasTrackCode() bool {
+ if o != nil && !IsNil(o.TrackCode) {
+ return true
+ }
+
+ return false
+}
+
+// SetTrackCode gets a reference to the given string and assigns it to the TrackCode field.
+func (o *OrderTrackDTO) SetTrackCode(v string) {
+ o.TrackCode = &v
+}
+
+// GetDeliveryServiceId returns the DeliveryServiceId field value
+func (o *OrderTrackDTO) GetDeliveryServiceId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.DeliveryServiceId
+}
+
+// GetDeliveryServiceIdOk returns a tuple with the DeliveryServiceId field value
+// and a boolean to check if the value has been set.
+func (o *OrderTrackDTO) GetDeliveryServiceIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DeliveryServiceId, true
+}
+
+// SetDeliveryServiceId sets field value
+func (o *OrderTrackDTO) SetDeliveryServiceId(v int64) {
+ o.DeliveryServiceId = v
+}
+
+func (o OrderTrackDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrderTrackDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.TrackCode) {
+ toSerialize["trackCode"] = o.TrackCode
+ }
+ toSerialize["deliveryServiceId"] = o.DeliveryServiceId
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrderTrackDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "deliveryServiceId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrderTrackDTO := _OrderTrackDTO{}
+
+ err = json.Unmarshal(data, &varOrderTrackDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrderTrackDTO(varOrderTrackDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "trackCode")
+ delete(additionalProperties, "deliveryServiceId")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrderTrackDTO struct {
+ value *OrderTrackDTO
+ isSet bool
+}
+
+func (v NullableOrderTrackDTO) Get() *OrderTrackDTO {
+ return v.value
+}
+
+func (v *NullableOrderTrackDTO) Set(val *OrderTrackDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderTrackDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderTrackDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderTrackDTO(val *OrderTrackDTO) *NullableOrderTrackDTO {
+ return &NullableOrderTrackDTO{value: val, isSet: true}
+}
+
+func (v NullableOrderTrackDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderTrackDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_update_status_type.go b/pkg/api/yandex/ymclient/model_order_update_status_type.go
new file mode 100644
index 0000000..dec1d77
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_update_status_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderUpdateStatusType Изменился ли статус заказа: * `OK` — статус изменен. * `ERROR` — статус не изменен. В этом случае появится сообщение об ошибке в параметре `errorDetails`.
+type OrderUpdateStatusType string
+
+// List of OrderUpdateStatusType
+const (
+ ORDERUPDATESTATUSTYPE_OK OrderUpdateStatusType = "OK"
+ ORDERUPDATESTATUSTYPE_ERROR OrderUpdateStatusType = "ERROR"
+)
+
+// All allowed values of OrderUpdateStatusType enum
+var AllowedOrderUpdateStatusTypeEnumValues = []OrderUpdateStatusType{
+ "OK",
+ "ERROR",
+}
+
+func (v *OrderUpdateStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderUpdateStatusType(value)
+ for _, existing := range AllowedOrderUpdateStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderUpdateStatusType", value)
+}
+
+// NewOrderUpdateStatusTypeFromValue returns a pointer to a valid OrderUpdateStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderUpdateStatusTypeFromValue(v string) (*OrderUpdateStatusType, error) {
+ ev := OrderUpdateStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderUpdateStatusType: valid values are %v", v, AllowedOrderUpdateStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderUpdateStatusType) IsValid() bool {
+ for _, existing := range AllowedOrderUpdateStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderUpdateStatusType value
+func (v OrderUpdateStatusType) Ptr() *OrderUpdateStatusType {
+ return &v
+}
+
+type NullableOrderUpdateStatusType struct {
+ value *OrderUpdateStatusType
+ isSet bool
+}
+
+func (v NullableOrderUpdateStatusType) Get() *OrderUpdateStatusType {
+ return v.value
+}
+
+func (v *NullableOrderUpdateStatusType) Set(val *OrderUpdateStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderUpdateStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderUpdateStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderUpdateStatusType(val *OrderUpdateStatusType) *NullableOrderUpdateStatusType {
+ return &NullableOrderUpdateStatusType{value: val, isSet: true}
+}
+
+func (v NullableOrderUpdateStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderUpdateStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_order_vat_type.go b/pkg/api/yandex/ymclient/model_order_vat_type.go
new file mode 100644
index 0000000..a8e83fc
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_order_vat_type.go
@@ -0,0 +1,130 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrderVatType Налог на добавленную стоимость (НДС) на товар: * `NO_VAT` — НДС не облагается, используется только для отдельных видов услуг. * `VAT_0` — НДС 0%. Например, используется при продаже товаров, вывезенных в таможенной процедуре экспорта, или при оказании услуг по международной перевозке товаров. * `VAT_10` — НДС 10%. Например, используется при реализации отдельных продовольственных и медицинских товаров. * `VAT_10_110` — НДС 10/110. НДС 10%, применяется только при предоплате. * `VAT_20` — НДС 20%. Основной НДС с 2019 года. * `VAT_20_120` — НДС 20/120. НДС 20%, применяется только при предоплате. * `VAT_18` — НДС 18%. Основной НДС до 2019 года. * `VAT_18_118` — НДС 18/118. НДС использовался до 1 января 2019 года при предоплате. * `VAT_12` — НДС 12%. Используется только в Узбекистане. * `VAT_05` — НДС 5%. НДС для упрощенной системы налогообложения (УСН). * `VAT_07` — НДС 7%. НДС для упрощенной системы налогообложения (УСН). * `UNKNOWN_VALUE` — неизвестный тип. Используется только совместно с параметром `payment-method=YANDEX`.
+type OrderVatType string
+
+// List of OrderVatType
+const (
+ ORDERVATTYPE_NO_VAT OrderVatType = "NO_VAT"
+ ORDERVATTYPE_VAT_0 OrderVatType = "VAT_0"
+ ORDERVATTYPE_VAT_10 OrderVatType = "VAT_10"
+ ORDERVATTYPE_VAT_10_110 OrderVatType = "VAT_10_110"
+ ORDERVATTYPE_VAT_20 OrderVatType = "VAT_20"
+ ORDERVATTYPE_VAT_20_120 OrderVatType = "VAT_20_120"
+ ORDERVATTYPE_VAT_18 OrderVatType = "VAT_18"
+ ORDERVATTYPE_VAT_18_118 OrderVatType = "VAT_18_118"
+ ORDERVATTYPE_VAT_12 OrderVatType = "VAT_12"
+ ORDERVATTYPE_VAT_05 OrderVatType = "VAT_05"
+ ORDERVATTYPE_VAT_07 OrderVatType = "VAT_07"
+ ORDERVATTYPE_UNKNOWN_VALUE OrderVatType = "UNKNOWN_VALUE"
+)
+
+// All allowed values of OrderVatType enum
+var AllowedOrderVatTypeEnumValues = []OrderVatType{
+ "NO_VAT",
+ "VAT_0",
+ "VAT_10",
+ "VAT_10_110",
+ "VAT_20",
+ "VAT_20_120",
+ "VAT_18",
+ "VAT_18_118",
+ "VAT_12",
+ "VAT_05",
+ "VAT_07",
+ "UNKNOWN_VALUE",
+}
+
+func (v *OrderVatType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrderVatType(value)
+ for _, existing := range AllowedOrderVatTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrderVatType", value)
+}
+
+// NewOrderVatTypeFromValue returns a pointer to a valid OrderVatType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrderVatTypeFromValue(v string) (*OrderVatType, error) {
+ ev := OrderVatType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrderVatType: valid values are %v", v, AllowedOrderVatTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrderVatType) IsValid() bool {
+ for _, existing := range AllowedOrderVatTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrderVatType value
+func (v OrderVatType) Ptr() *OrderVatType {
+ return &v
+}
+
+type NullableOrderVatType struct {
+ value *OrderVatType
+ isSet bool
+}
+
+func (v NullableOrderVatType) Get() *OrderVatType {
+ return v.value
+}
+
+func (v *NullableOrderVatType) Set(val *OrderVatType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrderVatType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrderVatType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrderVatType(val *OrderVatType) *NullableOrderVatType {
+ return &NullableOrderVatType{value: val, isSet: true}
+}
+
+func (v NullableOrderVatType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrderVatType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_shipment_info_dto.go b/pkg/api/yandex/ymclient/model_orders_shipment_info_dto.go
new file mode 100644
index 0000000..ececc58
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_shipment_info_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrdersShipmentInfoDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersShipmentInfoDTO{}
+
+// OrdersShipmentInfoDTO Годные/негодные ярлыки по заказам в отгрузке.
+type OrdersShipmentInfoDTO struct {
+ // Идентификаторы заказов в отгрузке, для которых можно распечатать ярлыки.
+ OrderIdsWithLabels []int64 `json:"orderIdsWithLabels"`
+ // Идентификаторы заказов в отгрузке, для которых нельзя распечатать ярлыки.
+ OrderIdsWithoutLabels []int64 `json:"orderIdsWithoutLabels"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersShipmentInfoDTO OrdersShipmentInfoDTO
+
+// NewOrdersShipmentInfoDTO instantiates a new OrdersShipmentInfoDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersShipmentInfoDTO(orderIdsWithLabels []int64, orderIdsWithoutLabels []int64) *OrdersShipmentInfoDTO {
+ this := OrdersShipmentInfoDTO{}
+ this.OrderIdsWithLabels = orderIdsWithLabels
+ this.OrderIdsWithoutLabels = orderIdsWithoutLabels
+ return &this
+}
+
+// NewOrdersShipmentInfoDTOWithDefaults instantiates a new OrdersShipmentInfoDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersShipmentInfoDTOWithDefaults() *OrdersShipmentInfoDTO {
+ this := OrdersShipmentInfoDTO{}
+ return &this
+}
+
+// GetOrderIdsWithLabels returns the OrderIdsWithLabels field value
+func (o *OrdersShipmentInfoDTO) GetOrderIdsWithLabels() []int64 {
+ if o == nil {
+ var ret []int64
+ return ret
+ }
+
+ return o.OrderIdsWithLabels
+}
+
+// GetOrderIdsWithLabelsOk returns a tuple with the OrderIdsWithLabels field value
+// and a boolean to check if the value has been set.
+func (o *OrdersShipmentInfoDTO) GetOrderIdsWithLabelsOk() ([]int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OrderIdsWithLabels, true
+}
+
+// SetOrderIdsWithLabels sets field value
+func (o *OrdersShipmentInfoDTO) SetOrderIdsWithLabels(v []int64) {
+ o.OrderIdsWithLabels = v
+}
+
+// GetOrderIdsWithoutLabels returns the OrderIdsWithoutLabels field value
+func (o *OrdersShipmentInfoDTO) GetOrderIdsWithoutLabels() []int64 {
+ if o == nil {
+ var ret []int64
+ return ret
+ }
+
+ return o.OrderIdsWithoutLabels
+}
+
+// GetOrderIdsWithoutLabelsOk returns a tuple with the OrderIdsWithoutLabels field value
+// and a boolean to check if the value has been set.
+func (o *OrdersShipmentInfoDTO) GetOrderIdsWithoutLabelsOk() ([]int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OrderIdsWithoutLabels, true
+}
+
+// SetOrderIdsWithoutLabels sets field value
+func (o *OrdersShipmentInfoDTO) SetOrderIdsWithoutLabels(v []int64) {
+ o.OrderIdsWithoutLabels = v
+}
+
+func (o OrdersShipmentInfoDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersShipmentInfoDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["orderIdsWithLabels"] = o.OrderIdsWithLabels
+ toSerialize["orderIdsWithoutLabels"] = o.OrderIdsWithoutLabels
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersShipmentInfoDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "orderIdsWithLabels",
+ "orderIdsWithoutLabels",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrdersShipmentInfoDTO := _OrdersShipmentInfoDTO{}
+
+ err = json.Unmarshal(data, &varOrdersShipmentInfoDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersShipmentInfoDTO(varOrdersShipmentInfoDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "orderIdsWithLabels")
+ delete(additionalProperties, "orderIdsWithoutLabels")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersShipmentInfoDTO struct {
+ value *OrdersShipmentInfoDTO
+ isSet bool
+}
+
+func (v NullableOrdersShipmentInfoDTO) Get() *OrdersShipmentInfoDTO {
+ return v.value
+}
+
+func (v *NullableOrdersShipmentInfoDTO) Set(val *OrdersShipmentInfoDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersShipmentInfoDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersShipmentInfoDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersShipmentInfoDTO(val *OrdersShipmentInfoDTO) *NullableOrdersShipmentInfoDTO {
+ return &NullableOrdersShipmentInfoDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersShipmentInfoDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersShipmentInfoDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_commission_dto.go b/pkg/api/yandex/ymclient/model_orders_stats_commission_dto.go
new file mode 100644
index 0000000..aca0598
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_commission_dto.go
@@ -0,0 +1,191 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrdersStatsCommissionDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersStatsCommissionDTO{}
+
+// OrdersStatsCommissionDTO Информация о стоимости услуг.
+type OrdersStatsCommissionDTO struct {
+ Type *OrdersStatsCommissionType `json:"type,omitempty"`
+ // Сумма, которая была выставлена в момент создания заказа и которую нужно оплатить. Точность — два знака после запятой.
+ Actual *float32 `json:"actual,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersStatsCommissionDTO OrdersStatsCommissionDTO
+
+// NewOrdersStatsCommissionDTO instantiates a new OrdersStatsCommissionDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersStatsCommissionDTO() *OrdersStatsCommissionDTO {
+ this := OrdersStatsCommissionDTO{}
+ return &this
+}
+
+// NewOrdersStatsCommissionDTOWithDefaults instantiates a new OrdersStatsCommissionDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersStatsCommissionDTOWithDefaults() *OrdersStatsCommissionDTO {
+ this := OrdersStatsCommissionDTO{}
+ return &this
+}
+
+// GetType returns the Type field value if set, zero value otherwise.
+func (o *OrdersStatsCommissionDTO) GetType() OrdersStatsCommissionType {
+ if o == nil || IsNil(o.Type) {
+ var ret OrdersStatsCommissionType
+ return ret
+ }
+ return *o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsCommissionDTO) GetTypeOk() (*OrdersStatsCommissionType, bool) {
+ if o == nil || IsNil(o.Type) {
+ return nil, false
+ }
+ return o.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *OrdersStatsCommissionDTO) HasType() bool {
+ if o != nil && !IsNil(o.Type) {
+ return true
+ }
+
+ return false
+}
+
+// SetType gets a reference to the given OrdersStatsCommissionType and assigns it to the Type field.
+func (o *OrdersStatsCommissionDTO) SetType(v OrdersStatsCommissionType) {
+ o.Type = &v
+}
+
+// GetActual returns the Actual field value if set, zero value otherwise.
+func (o *OrdersStatsCommissionDTO) GetActual() float32 {
+ if o == nil || IsNil(o.Actual) {
+ var ret float32
+ return ret
+ }
+ return *o.Actual
+}
+
+// GetActualOk returns a tuple with the Actual field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsCommissionDTO) GetActualOk() (*float32, bool) {
+ if o == nil || IsNil(o.Actual) {
+ return nil, false
+ }
+ return o.Actual, true
+}
+
+// HasActual returns a boolean if a field has been set.
+func (o *OrdersStatsCommissionDTO) HasActual() bool {
+ if o != nil && !IsNil(o.Actual) {
+ return true
+ }
+
+ return false
+}
+
+// SetActual gets a reference to the given float32 and assigns it to the Actual field.
+func (o *OrdersStatsCommissionDTO) SetActual(v float32) {
+ o.Actual = &v
+}
+
+func (o OrdersStatsCommissionDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersStatsCommissionDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Type) {
+ toSerialize["type"] = o.Type
+ }
+ if !IsNil(o.Actual) {
+ toSerialize["actual"] = o.Actual
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersStatsCommissionDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrdersStatsCommissionDTO := _OrdersStatsCommissionDTO{}
+
+ err = json.Unmarshal(data, &varOrdersStatsCommissionDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersStatsCommissionDTO(varOrdersStatsCommissionDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "actual")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersStatsCommissionDTO struct {
+ value *OrdersStatsCommissionDTO
+ isSet bool
+}
+
+func (v NullableOrdersStatsCommissionDTO) Get() *OrdersStatsCommissionDTO {
+ return v.value
+}
+
+func (v *NullableOrdersStatsCommissionDTO) Set(val *OrdersStatsCommissionDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsCommissionDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsCommissionDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsCommissionDTO(val *OrdersStatsCommissionDTO) *NullableOrdersStatsCommissionDTO {
+ return &NullableOrdersStatsCommissionDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsCommissionDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsCommissionDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_commission_type.go b/pkg/api/yandex/ymclient/model_orders_stats_commission_type.go
new file mode 100644
index 0000000..025d393
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_commission_type.go
@@ -0,0 +1,134 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrdersStatsCommissionType Услуга: * `FEE` — размещение товара на Маркете. * `FULFILLMENT` — складская обработка. Не возвращается с 1 января 2024 года. * `LOYALTY_PARTICIPATION_FEE` — участие в программе лояльности и отзывы за баллы. * `AUCTION_PROMOTION` — буст продаж с оплатой за продажи. * `INSTALLMENT` — рассрочка. Не возвращается с 24 февраля 2022 года. * `DELIVERY_TO_CUSTOMER` — доставка покупателю :no-translate[(FBY, FBS)]. Для DBS и Экспресс — если заказ возвращается через логистику Маркета. * `EXPRESS_DELIVERY_TO_CUSTOMER` — экспресс-доставка покупателю (Экспресс). * `AGENCY` — прием платежа покупателя. * `PAYMENT_TRANSFER` — перевод платежа покупателя. * `RETURNED_ORDERS_STORAGE` — хранение невыкупов и возвратов (:no-translate[FBS]). Для :no-translate[DBS] и Экспресс — если заказ возвращается через логистику Маркета. * `SORTING` — обработка заказа (:no-translate[FBS]). * `INTAKE_SORTING` — организация забора заказов со склада продавца (:no-translate[FBS]). * `RETURN_PROCESSING` — обработка заказов на складе (:no-translate[FBS]). Для :no-translate[DBS] и Экспресс — если заказ возвращается через логистику Маркета. * `ILLIQUID_GOODS_SALE` — вознаграждение за продажу невывезенных товаров.
+type OrdersStatsCommissionType string
+
+// List of OrdersStatsCommissionType
+const (
+ ORDERSSTATSCOMMISSIONTYPE_FEE OrdersStatsCommissionType = "FEE"
+ ORDERSSTATSCOMMISSIONTYPE_FULFILLMENT OrdersStatsCommissionType = "FULFILLMENT"
+ ORDERSSTATSCOMMISSIONTYPE_LOYALTY_PARTICIPATION_FEE OrdersStatsCommissionType = "LOYALTY_PARTICIPATION_FEE"
+ ORDERSSTATSCOMMISSIONTYPE_AUCTION_PROMOTION OrdersStatsCommissionType = "AUCTION_PROMOTION"
+ ORDERSSTATSCOMMISSIONTYPE_INSTALLMENT OrdersStatsCommissionType = "INSTALLMENT"
+ ORDERSSTATSCOMMISSIONTYPE_DELIVERY_TO_CUSTOMER OrdersStatsCommissionType = "DELIVERY_TO_CUSTOMER"
+ ORDERSSTATSCOMMISSIONTYPE_EXPRESS_DELIVERY_TO_CUSTOMER OrdersStatsCommissionType = "EXPRESS_DELIVERY_TO_CUSTOMER"
+ ORDERSSTATSCOMMISSIONTYPE_AGENCY OrdersStatsCommissionType = "AGENCY"
+ ORDERSSTATSCOMMISSIONTYPE_PAYMENT_TRANSFER OrdersStatsCommissionType = "PAYMENT_TRANSFER"
+ ORDERSSTATSCOMMISSIONTYPE_RETURNED_ORDERS_STORAGE OrdersStatsCommissionType = "RETURNED_ORDERS_STORAGE"
+ ORDERSSTATSCOMMISSIONTYPE_SORTING OrdersStatsCommissionType = "SORTING"
+ ORDERSSTATSCOMMISSIONTYPE_INTAKE_SORTING OrdersStatsCommissionType = "INTAKE_SORTING"
+ ORDERSSTATSCOMMISSIONTYPE_RETURN_PROCESSING OrdersStatsCommissionType = "RETURN_PROCESSING"
+ ORDERSSTATSCOMMISSIONTYPE_ILLIQUID_GOODS_SALE OrdersStatsCommissionType = "ILLIQUID_GOODS_SALE"
+)
+
+// All allowed values of OrdersStatsCommissionType enum
+var AllowedOrdersStatsCommissionTypeEnumValues = []OrdersStatsCommissionType{
+ "FEE",
+ "FULFILLMENT",
+ "LOYALTY_PARTICIPATION_FEE",
+ "AUCTION_PROMOTION",
+ "INSTALLMENT",
+ "DELIVERY_TO_CUSTOMER",
+ "EXPRESS_DELIVERY_TO_CUSTOMER",
+ "AGENCY",
+ "PAYMENT_TRANSFER",
+ "RETURNED_ORDERS_STORAGE",
+ "SORTING",
+ "INTAKE_SORTING",
+ "RETURN_PROCESSING",
+ "ILLIQUID_GOODS_SALE",
+}
+
+func (v *OrdersStatsCommissionType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrdersStatsCommissionType(value)
+ for _, existing := range AllowedOrdersStatsCommissionTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrdersStatsCommissionType", value)
+}
+
+// NewOrdersStatsCommissionTypeFromValue returns a pointer to a valid OrdersStatsCommissionType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrdersStatsCommissionTypeFromValue(v string) (*OrdersStatsCommissionType, error) {
+ ev := OrdersStatsCommissionType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrdersStatsCommissionType: valid values are %v", v, AllowedOrdersStatsCommissionTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrdersStatsCommissionType) IsValid() bool {
+ for _, existing := range AllowedOrdersStatsCommissionTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrdersStatsCommissionType value
+func (v OrdersStatsCommissionType) Ptr() *OrdersStatsCommissionType {
+ return &v
+}
+
+type NullableOrdersStatsCommissionType struct {
+ value *OrdersStatsCommissionType
+ isSet bool
+}
+
+func (v NullableOrdersStatsCommissionType) Get() *OrdersStatsCommissionType {
+ return v.value
+}
+
+func (v *NullableOrdersStatsCommissionType) Set(val *OrdersStatsCommissionType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsCommissionType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsCommissionType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsCommissionType(val *OrdersStatsCommissionType) *NullableOrdersStatsCommissionType {
+ return &NullableOrdersStatsCommissionType{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsCommissionType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsCommissionType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_delivery_region_dto.go b/pkg/api/yandex/ymclient/model_orders_stats_delivery_region_dto.go
new file mode 100644
index 0000000..963e0f1
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_delivery_region_dto.go
@@ -0,0 +1,192 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrdersStatsDeliveryRegionDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersStatsDeliveryRegionDTO{}
+
+// OrdersStatsDeliveryRegionDTO Информация о регионе доставки.
+type OrdersStatsDeliveryRegionDTO struct {
+ // Идентификатор региона доставки.
+ Id *int64 `json:"id,omitempty"`
+ // Название региона доставки.
+ Name *string `json:"name,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersStatsDeliveryRegionDTO OrdersStatsDeliveryRegionDTO
+
+// NewOrdersStatsDeliveryRegionDTO instantiates a new OrdersStatsDeliveryRegionDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersStatsDeliveryRegionDTO() *OrdersStatsDeliveryRegionDTO {
+ this := OrdersStatsDeliveryRegionDTO{}
+ return &this
+}
+
+// NewOrdersStatsDeliveryRegionDTOWithDefaults instantiates a new OrdersStatsDeliveryRegionDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersStatsDeliveryRegionDTOWithDefaults() *OrdersStatsDeliveryRegionDTO {
+ this := OrdersStatsDeliveryRegionDTO{}
+ return &this
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *OrdersStatsDeliveryRegionDTO) GetId() int64 {
+ if o == nil || IsNil(o.Id) {
+ var ret int64
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsDeliveryRegionDTO) GetIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *OrdersStatsDeliveryRegionDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given int64 and assigns it to the Id field.
+func (o *OrdersStatsDeliveryRegionDTO) SetId(v int64) {
+ o.Id = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *OrdersStatsDeliveryRegionDTO) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsDeliveryRegionDTO) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *OrdersStatsDeliveryRegionDTO) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *OrdersStatsDeliveryRegionDTO) SetName(v string) {
+ o.Name = &v
+}
+
+func (o OrdersStatsDeliveryRegionDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersStatsDeliveryRegionDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersStatsDeliveryRegionDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrdersStatsDeliveryRegionDTO := _OrdersStatsDeliveryRegionDTO{}
+
+ err = json.Unmarshal(data, &varOrdersStatsDeliveryRegionDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersStatsDeliveryRegionDTO(varOrdersStatsDeliveryRegionDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "name")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersStatsDeliveryRegionDTO struct {
+ value *OrdersStatsDeliveryRegionDTO
+ isSet bool
+}
+
+func (v NullableOrdersStatsDeliveryRegionDTO) Get() *OrdersStatsDeliveryRegionDTO {
+ return v.value
+}
+
+func (v *NullableOrdersStatsDeliveryRegionDTO) Set(val *OrdersStatsDeliveryRegionDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsDeliveryRegionDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsDeliveryRegionDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsDeliveryRegionDTO(val *OrdersStatsDeliveryRegionDTO) *NullableOrdersStatsDeliveryRegionDTO {
+ return &NullableOrdersStatsDeliveryRegionDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsDeliveryRegionDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsDeliveryRegionDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_details_dto.go b/pkg/api/yandex/ymclient/model_orders_stats_details_dto.go
new file mode 100644
index 0000000..e3c053b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_details_dto.go
@@ -0,0 +1,266 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrdersStatsDetailsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersStatsDetailsDTO{}
+
+// OrdersStatsDetailsDTO Информация об удалении товара из заказа.
+type OrdersStatsDetailsDTO struct {
+ ItemStatus *OrdersStatsItemStatusType `json:"itemStatus,omitempty"`
+ // Количество товара со статусом, указанном в параметре `itemStatus`.
+ ItemCount *int64 `json:"itemCount,omitempty"`
+ // Дата, когда товар получил статус, указанный в параметре `itemStatus`. Формат даты: `ГГГГ-ММ-ДД`.
+ UpdateDate *string `json:"updateDate,omitempty"`
+ StockType *OrdersStatsStockType `json:"stockType,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersStatsDetailsDTO OrdersStatsDetailsDTO
+
+// NewOrdersStatsDetailsDTO instantiates a new OrdersStatsDetailsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersStatsDetailsDTO() *OrdersStatsDetailsDTO {
+ this := OrdersStatsDetailsDTO{}
+ return &this
+}
+
+// NewOrdersStatsDetailsDTOWithDefaults instantiates a new OrdersStatsDetailsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersStatsDetailsDTOWithDefaults() *OrdersStatsDetailsDTO {
+ this := OrdersStatsDetailsDTO{}
+ return &this
+}
+
+// GetItemStatus returns the ItemStatus field value if set, zero value otherwise.
+func (o *OrdersStatsDetailsDTO) GetItemStatus() OrdersStatsItemStatusType {
+ if o == nil || IsNil(o.ItemStatus) {
+ var ret OrdersStatsItemStatusType
+ return ret
+ }
+ return *o.ItemStatus
+}
+
+// GetItemStatusOk returns a tuple with the ItemStatus field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsDetailsDTO) GetItemStatusOk() (*OrdersStatsItemStatusType, bool) {
+ if o == nil || IsNil(o.ItemStatus) {
+ return nil, false
+ }
+ return o.ItemStatus, true
+}
+
+// HasItemStatus returns a boolean if a field has been set.
+func (o *OrdersStatsDetailsDTO) HasItemStatus() bool {
+ if o != nil && !IsNil(o.ItemStatus) {
+ return true
+ }
+
+ return false
+}
+
+// SetItemStatus gets a reference to the given OrdersStatsItemStatusType and assigns it to the ItemStatus field.
+func (o *OrdersStatsDetailsDTO) SetItemStatus(v OrdersStatsItemStatusType) {
+ o.ItemStatus = &v
+}
+
+// GetItemCount returns the ItemCount field value if set, zero value otherwise.
+func (o *OrdersStatsDetailsDTO) GetItemCount() int64 {
+ if o == nil || IsNil(o.ItemCount) {
+ var ret int64
+ return ret
+ }
+ return *o.ItemCount
+}
+
+// GetItemCountOk returns a tuple with the ItemCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsDetailsDTO) GetItemCountOk() (*int64, bool) {
+ if o == nil || IsNil(o.ItemCount) {
+ return nil, false
+ }
+ return o.ItemCount, true
+}
+
+// HasItemCount returns a boolean if a field has been set.
+func (o *OrdersStatsDetailsDTO) HasItemCount() bool {
+ if o != nil && !IsNil(o.ItemCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetItemCount gets a reference to the given int64 and assigns it to the ItemCount field.
+func (o *OrdersStatsDetailsDTO) SetItemCount(v int64) {
+ o.ItemCount = &v
+}
+
+// GetUpdateDate returns the UpdateDate field value if set, zero value otherwise.
+func (o *OrdersStatsDetailsDTO) GetUpdateDate() string {
+ if o == nil || IsNil(o.UpdateDate) {
+ var ret string
+ return ret
+ }
+ return *o.UpdateDate
+}
+
+// GetUpdateDateOk returns a tuple with the UpdateDate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsDetailsDTO) GetUpdateDateOk() (*string, bool) {
+ if o == nil || IsNil(o.UpdateDate) {
+ return nil, false
+ }
+ return o.UpdateDate, true
+}
+
+// HasUpdateDate returns a boolean if a field has been set.
+func (o *OrdersStatsDetailsDTO) HasUpdateDate() bool {
+ if o != nil && !IsNil(o.UpdateDate) {
+ return true
+ }
+
+ return false
+}
+
+// SetUpdateDate gets a reference to the given string and assigns it to the UpdateDate field.
+func (o *OrdersStatsDetailsDTO) SetUpdateDate(v string) {
+ o.UpdateDate = &v
+}
+
+// GetStockType returns the StockType field value if set, zero value otherwise.
+func (o *OrdersStatsDetailsDTO) GetStockType() OrdersStatsStockType {
+ if o == nil || IsNil(o.StockType) {
+ var ret OrdersStatsStockType
+ return ret
+ }
+ return *o.StockType
+}
+
+// GetStockTypeOk returns a tuple with the StockType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsDetailsDTO) GetStockTypeOk() (*OrdersStatsStockType, bool) {
+ if o == nil || IsNil(o.StockType) {
+ return nil, false
+ }
+ return o.StockType, true
+}
+
+// HasStockType returns a boolean if a field has been set.
+func (o *OrdersStatsDetailsDTO) HasStockType() bool {
+ if o != nil && !IsNil(o.StockType) {
+ return true
+ }
+
+ return false
+}
+
+// SetStockType gets a reference to the given OrdersStatsStockType and assigns it to the StockType field.
+func (o *OrdersStatsDetailsDTO) SetStockType(v OrdersStatsStockType) {
+ o.StockType = &v
+}
+
+func (o OrdersStatsDetailsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersStatsDetailsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.ItemStatus) {
+ toSerialize["itemStatus"] = o.ItemStatus
+ }
+ if !IsNil(o.ItemCount) {
+ toSerialize["itemCount"] = o.ItemCount
+ }
+ if !IsNil(o.UpdateDate) {
+ toSerialize["updateDate"] = o.UpdateDate
+ }
+ if !IsNil(o.StockType) {
+ toSerialize["stockType"] = o.StockType
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersStatsDetailsDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrdersStatsDetailsDTO := _OrdersStatsDetailsDTO{}
+
+ err = json.Unmarshal(data, &varOrdersStatsDetailsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersStatsDetailsDTO(varOrdersStatsDetailsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "itemStatus")
+ delete(additionalProperties, "itemCount")
+ delete(additionalProperties, "updateDate")
+ delete(additionalProperties, "stockType")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersStatsDetailsDTO struct {
+ value *OrdersStatsDetailsDTO
+ isSet bool
+}
+
+func (v NullableOrdersStatsDetailsDTO) Get() *OrdersStatsDetailsDTO {
+ return v.value
+}
+
+func (v *NullableOrdersStatsDetailsDTO) Set(val *OrdersStatsDetailsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsDetailsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsDetailsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsDetailsDTO(val *OrdersStatsDetailsDTO) *NullableOrdersStatsDetailsDTO {
+ return &NullableOrdersStatsDetailsDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsDetailsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsDetailsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_dto.go b/pkg/api/yandex/ymclient/model_orders_stats_dto.go
new file mode 100644
index 0000000..0bc63df
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_dto.go
@@ -0,0 +1,204 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrdersStatsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersStatsDTO{}
+
+// OrdersStatsDTO Информация по заказам.
+type OrdersStatsDTO struct {
+ // Список заказов.
+ Orders []OrdersStatsOrderDTO `json:"orders"`
+ Paging *ForwardScrollingPagerDTO `json:"paging,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersStatsDTO OrdersStatsDTO
+
+// NewOrdersStatsDTO instantiates a new OrdersStatsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersStatsDTO(orders []OrdersStatsOrderDTO) *OrdersStatsDTO {
+ this := OrdersStatsDTO{}
+ this.Orders = orders
+ return &this
+}
+
+// NewOrdersStatsDTOWithDefaults instantiates a new OrdersStatsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersStatsDTOWithDefaults() *OrdersStatsDTO {
+ this := OrdersStatsDTO{}
+ return &this
+}
+
+// GetOrders returns the Orders field value
+func (o *OrdersStatsDTO) GetOrders() []OrdersStatsOrderDTO {
+ if o == nil {
+ var ret []OrdersStatsOrderDTO
+ return ret
+ }
+
+ return o.Orders
+}
+
+// GetOrdersOk returns a tuple with the Orders field value
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsDTO) GetOrdersOk() ([]OrdersStatsOrderDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Orders, true
+}
+
+// SetOrders sets field value
+func (o *OrdersStatsDTO) SetOrders(v []OrdersStatsOrderDTO) {
+ o.Orders = v
+}
+
+// GetPaging returns the Paging field value if set, zero value otherwise.
+func (o *OrdersStatsDTO) GetPaging() ForwardScrollingPagerDTO {
+ if o == nil || IsNil(o.Paging) {
+ var ret ForwardScrollingPagerDTO
+ return ret
+ }
+ return *o.Paging
+}
+
+// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsDTO) GetPagingOk() (*ForwardScrollingPagerDTO, bool) {
+ if o == nil || IsNil(o.Paging) {
+ return nil, false
+ }
+ return o.Paging, true
+}
+
+// HasPaging returns a boolean if a field has been set.
+func (o *OrdersStatsDTO) HasPaging() bool {
+ if o != nil && !IsNil(o.Paging) {
+ return true
+ }
+
+ return false
+}
+
+// SetPaging gets a reference to the given ForwardScrollingPagerDTO and assigns it to the Paging field.
+func (o *OrdersStatsDTO) SetPaging(v ForwardScrollingPagerDTO) {
+ o.Paging = &v
+}
+
+func (o OrdersStatsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersStatsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["orders"] = o.Orders
+ if !IsNil(o.Paging) {
+ toSerialize["paging"] = o.Paging
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersStatsDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "orders",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrdersStatsDTO := _OrdersStatsDTO{}
+
+ err = json.Unmarshal(data, &varOrdersStatsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersStatsDTO(varOrdersStatsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "orders")
+ delete(additionalProperties, "paging")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersStatsDTO struct {
+ value *OrdersStatsDTO
+ isSet bool
+}
+
+func (v NullableOrdersStatsDTO) Get() *OrdersStatsDTO {
+ return v.value
+}
+
+func (v *NullableOrdersStatsDTO) Set(val *OrdersStatsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsDTO(val *OrdersStatsDTO) *NullableOrdersStatsDTO {
+ return &NullableOrdersStatsDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_item_dto.go b/pkg/api/yandex/ymclient/model_orders_stats_item_dto.go
new file mode 100644
index 0000000..5be1250
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_item_dto.go
@@ -0,0 +1,574 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrdersStatsItemDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersStatsItemDTO{}
+
+// OrdersStatsItemDTO Список товаров в заказе после возможных изменений. В ходе обработки заказа Маркет может удалить из него единицы товаров — при проблемах на складе или по инициативе пользователя. * Если из заказа удалены все единицы товара, его не будет в списке `items` — только в списке `initialItems`. * Если в заказе осталась хотя бы одна единица товара, он будет и в списке `items` (с уменьшенным количеством единиц `count`), и в списке `initialItems` (с первоначальным количеством единиц `initialCount`).
+type OrdersStatsItemDTO struct {
+ // Название товара.
+ OfferName *string `json:"offerName,omitempty"`
+ // Идентификатор карточки товара на Маркете.
+ MarketSku *int64 `json:"marketSku,omitempty"`
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ ShopSku *string `json:"shopSku,omitempty" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Количество единиц товара с учетом удаленных единиц. Если из заказа удалены все единицы товара, он попадет только в список `initialItems`.
+ Count *int32 `json:"count,omitempty"`
+ // Цена или скидки на товар.
+ Prices []OrdersStatsPriceDTO `json:"prices,omitempty"`
+ Warehouse *OrdersStatsWarehouseDTO `json:"warehouse,omitempty"`
+ // Информация об удалении товара из заказа.
+ Details []OrdersStatsDetailsDTO `json:"details,omitempty"`
+ // Список кодов идентификации товара в системе [:no-translate[«Честный ЗНАК»]](https://честныйзнак.рф/) или [:no-translate[«ASL BELGISI»]](https://aslbelgisi.uz) (для продавцов :no-translate[Market Yandex Go]).
+ CisList []string `json:"cisList,omitempty"`
+ // Первоначальное количество единиц товара.
+ InitialCount *int32 `json:"initialCount,omitempty"`
+ // Списанная ставка ближайшего конкурента. Указывается в процентах от стоимости товара и умножается на 100. Например, ставка 5% обозначается как 500.
+ BidFee *int32 `json:"bidFee,omitempty"`
+ // Порог для скидок с Маркетом на момент оформления заказа. [Что это такое?](https://yandex.ru/support/marketplace/marketing/smart-pricing.html#sponsored-discounts) Точность — два знака после запятой.
+ CofinanceThreshold *float32 `json:"cofinanceThreshold,omitempty"`
+ // Скидка с Маркетом. [Что это такое?](https://yandex.ru/support/marketplace/marketing/smart-pricing.html#sponsored-discounts) Точность — два знака после запятой.
+ CofinanceValue *float32 `json:"cofinanceValue,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersStatsItemDTO OrdersStatsItemDTO
+
+// NewOrdersStatsItemDTO instantiates a new OrdersStatsItemDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersStatsItemDTO() *OrdersStatsItemDTO {
+ this := OrdersStatsItemDTO{}
+ return &this
+}
+
+// NewOrdersStatsItemDTOWithDefaults instantiates a new OrdersStatsItemDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersStatsItemDTOWithDefaults() *OrdersStatsItemDTO {
+ this := OrdersStatsItemDTO{}
+ return &this
+}
+
+// GetOfferName returns the OfferName field value if set, zero value otherwise.
+func (o *OrdersStatsItemDTO) GetOfferName() string {
+ if o == nil || IsNil(o.OfferName) {
+ var ret string
+ return ret
+ }
+ return *o.OfferName
+}
+
+// GetOfferNameOk returns a tuple with the OfferName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsItemDTO) GetOfferNameOk() (*string, bool) {
+ if o == nil || IsNil(o.OfferName) {
+ return nil, false
+ }
+ return o.OfferName, true
+}
+
+// HasOfferName returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasOfferName() bool {
+ if o != nil && !IsNil(o.OfferName) {
+ return true
+ }
+
+ return false
+}
+
+// SetOfferName gets a reference to the given string and assigns it to the OfferName field.
+func (o *OrdersStatsItemDTO) SetOfferName(v string) {
+ o.OfferName = &v
+}
+
+// GetMarketSku returns the MarketSku field value if set, zero value otherwise.
+func (o *OrdersStatsItemDTO) GetMarketSku() int64 {
+ if o == nil || IsNil(o.MarketSku) {
+ var ret int64
+ return ret
+ }
+ return *o.MarketSku
+}
+
+// GetMarketSkuOk returns a tuple with the MarketSku field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsItemDTO) GetMarketSkuOk() (*int64, bool) {
+ if o == nil || IsNil(o.MarketSku) {
+ return nil, false
+ }
+ return o.MarketSku, true
+}
+
+// HasMarketSku returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasMarketSku() bool {
+ if o != nil && !IsNil(o.MarketSku) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarketSku gets a reference to the given int64 and assigns it to the MarketSku field.
+func (o *OrdersStatsItemDTO) SetMarketSku(v int64) {
+ o.MarketSku = &v
+}
+
+// GetShopSku returns the ShopSku field value if set, zero value otherwise.
+func (o *OrdersStatsItemDTO) GetShopSku() string {
+ if o == nil || IsNil(o.ShopSku) {
+ var ret string
+ return ret
+ }
+ return *o.ShopSku
+}
+
+// GetShopSkuOk returns a tuple with the ShopSku field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsItemDTO) GetShopSkuOk() (*string, bool) {
+ if o == nil || IsNil(o.ShopSku) {
+ return nil, false
+ }
+ return o.ShopSku, true
+}
+
+// HasShopSku returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasShopSku() bool {
+ if o != nil && !IsNil(o.ShopSku) {
+ return true
+ }
+
+ return false
+}
+
+// SetShopSku gets a reference to the given string and assigns it to the ShopSku field.
+func (o *OrdersStatsItemDTO) SetShopSku(v string) {
+ o.ShopSku = &v
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *OrdersStatsItemDTO) GetCount() int32 {
+ if o == nil || IsNil(o.Count) {
+ var ret int32
+ return ret
+ }
+ return *o.Count
+}
+
+// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsItemDTO) GetCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.Count) {
+ return nil, false
+ }
+ return o.Count, true
+}
+
+// HasCount returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasCount() bool {
+ if o != nil && !IsNil(o.Count) {
+ return true
+ }
+
+ return false
+}
+
+// SetCount gets a reference to the given int32 and assigns it to the Count field.
+func (o *OrdersStatsItemDTO) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetPrices returns the Prices field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrdersStatsItemDTO) GetPrices() []OrdersStatsPriceDTO {
+ if o == nil {
+ var ret []OrdersStatsPriceDTO
+ return ret
+ }
+ return o.Prices
+}
+
+// GetPricesOk returns a tuple with the Prices field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrdersStatsItemDTO) GetPricesOk() ([]OrdersStatsPriceDTO, bool) {
+ if o == nil || IsNil(o.Prices) {
+ return nil, false
+ }
+ return o.Prices, true
+}
+
+// HasPrices returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasPrices() bool {
+ if o != nil && !IsNil(o.Prices) {
+ return true
+ }
+
+ return false
+}
+
+// SetPrices gets a reference to the given []OrdersStatsPriceDTO and assigns it to the Prices field.
+func (o *OrdersStatsItemDTO) SetPrices(v []OrdersStatsPriceDTO) {
+ o.Prices = v
+}
+
+// GetWarehouse returns the Warehouse field value if set, zero value otherwise.
+func (o *OrdersStatsItemDTO) GetWarehouse() OrdersStatsWarehouseDTO {
+ if o == nil || IsNil(o.Warehouse) {
+ var ret OrdersStatsWarehouseDTO
+ return ret
+ }
+ return *o.Warehouse
+}
+
+// GetWarehouseOk returns a tuple with the Warehouse field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsItemDTO) GetWarehouseOk() (*OrdersStatsWarehouseDTO, bool) {
+ if o == nil || IsNil(o.Warehouse) {
+ return nil, false
+ }
+ return o.Warehouse, true
+}
+
+// HasWarehouse returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasWarehouse() bool {
+ if o != nil && !IsNil(o.Warehouse) {
+ return true
+ }
+
+ return false
+}
+
+// SetWarehouse gets a reference to the given OrdersStatsWarehouseDTO and assigns it to the Warehouse field.
+func (o *OrdersStatsItemDTO) SetWarehouse(v OrdersStatsWarehouseDTO) {
+ o.Warehouse = &v
+}
+
+// GetDetails returns the Details field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrdersStatsItemDTO) GetDetails() []OrdersStatsDetailsDTO {
+ if o == nil {
+ var ret []OrdersStatsDetailsDTO
+ return ret
+ }
+ return o.Details
+}
+
+// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrdersStatsItemDTO) GetDetailsOk() ([]OrdersStatsDetailsDTO, bool) {
+ if o == nil || IsNil(o.Details) {
+ return nil, false
+ }
+ return o.Details, true
+}
+
+// HasDetails returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasDetails() bool {
+ if o != nil && !IsNil(o.Details) {
+ return true
+ }
+
+ return false
+}
+
+// SetDetails gets a reference to the given []OrdersStatsDetailsDTO and assigns it to the Details field.
+func (o *OrdersStatsItemDTO) SetDetails(v []OrdersStatsDetailsDTO) {
+ o.Details = v
+}
+
+// GetCisList returns the CisList field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrdersStatsItemDTO) GetCisList() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.CisList
+}
+
+// GetCisListOk returns a tuple with the CisList field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrdersStatsItemDTO) GetCisListOk() ([]string, bool) {
+ if o == nil || IsNil(o.CisList) {
+ return nil, false
+ }
+ return o.CisList, true
+}
+
+// HasCisList returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasCisList() bool {
+ if o != nil && !IsNil(o.CisList) {
+ return true
+ }
+
+ return false
+}
+
+// SetCisList gets a reference to the given []string and assigns it to the CisList field.
+func (o *OrdersStatsItemDTO) SetCisList(v []string) {
+ o.CisList = v
+}
+
+// GetInitialCount returns the InitialCount field value if set, zero value otherwise.
+func (o *OrdersStatsItemDTO) GetInitialCount() int32 {
+ if o == nil || IsNil(o.InitialCount) {
+ var ret int32
+ return ret
+ }
+ return *o.InitialCount
+}
+
+// GetInitialCountOk returns a tuple with the InitialCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsItemDTO) GetInitialCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.InitialCount) {
+ return nil, false
+ }
+ return o.InitialCount, true
+}
+
+// HasInitialCount returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasInitialCount() bool {
+ if o != nil && !IsNil(o.InitialCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetInitialCount gets a reference to the given int32 and assigns it to the InitialCount field.
+func (o *OrdersStatsItemDTO) SetInitialCount(v int32) {
+ o.InitialCount = &v
+}
+
+// GetBidFee returns the BidFee field value if set, zero value otherwise.
+func (o *OrdersStatsItemDTO) GetBidFee() int32 {
+ if o == nil || IsNil(o.BidFee) {
+ var ret int32
+ return ret
+ }
+ return *o.BidFee
+}
+
+// GetBidFeeOk returns a tuple with the BidFee field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsItemDTO) GetBidFeeOk() (*int32, bool) {
+ if o == nil || IsNil(o.BidFee) {
+ return nil, false
+ }
+ return o.BidFee, true
+}
+
+// HasBidFee returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasBidFee() bool {
+ if o != nil && !IsNil(o.BidFee) {
+ return true
+ }
+
+ return false
+}
+
+// SetBidFee gets a reference to the given int32 and assigns it to the BidFee field.
+func (o *OrdersStatsItemDTO) SetBidFee(v int32) {
+ o.BidFee = &v
+}
+
+// GetCofinanceThreshold returns the CofinanceThreshold field value if set, zero value otherwise.
+func (o *OrdersStatsItemDTO) GetCofinanceThreshold() float32 {
+ if o == nil || IsNil(o.CofinanceThreshold) {
+ var ret float32
+ return ret
+ }
+ return *o.CofinanceThreshold
+}
+
+// GetCofinanceThresholdOk returns a tuple with the CofinanceThreshold field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsItemDTO) GetCofinanceThresholdOk() (*float32, bool) {
+ if o == nil || IsNil(o.CofinanceThreshold) {
+ return nil, false
+ }
+ return o.CofinanceThreshold, true
+}
+
+// HasCofinanceThreshold returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasCofinanceThreshold() bool {
+ if o != nil && !IsNil(o.CofinanceThreshold) {
+ return true
+ }
+
+ return false
+}
+
+// SetCofinanceThreshold gets a reference to the given float32 and assigns it to the CofinanceThreshold field.
+func (o *OrdersStatsItemDTO) SetCofinanceThreshold(v float32) {
+ o.CofinanceThreshold = &v
+}
+
+// GetCofinanceValue returns the CofinanceValue field value if set, zero value otherwise.
+func (o *OrdersStatsItemDTO) GetCofinanceValue() float32 {
+ if o == nil || IsNil(o.CofinanceValue) {
+ var ret float32
+ return ret
+ }
+ return *o.CofinanceValue
+}
+
+// GetCofinanceValueOk returns a tuple with the CofinanceValue field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsItemDTO) GetCofinanceValueOk() (*float32, bool) {
+ if o == nil || IsNil(o.CofinanceValue) {
+ return nil, false
+ }
+ return o.CofinanceValue, true
+}
+
+// HasCofinanceValue returns a boolean if a field has been set.
+func (o *OrdersStatsItemDTO) HasCofinanceValue() bool {
+ if o != nil && !IsNil(o.CofinanceValue) {
+ return true
+ }
+
+ return false
+}
+
+// SetCofinanceValue gets a reference to the given float32 and assigns it to the CofinanceValue field.
+func (o *OrdersStatsItemDTO) SetCofinanceValue(v float32) {
+ o.CofinanceValue = &v
+}
+
+func (o OrdersStatsItemDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersStatsItemDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.OfferName) {
+ toSerialize["offerName"] = o.OfferName
+ }
+ if !IsNil(o.MarketSku) {
+ toSerialize["marketSku"] = o.MarketSku
+ }
+ if !IsNil(o.ShopSku) {
+ toSerialize["shopSku"] = o.ShopSku
+ }
+ if !IsNil(o.Count) {
+ toSerialize["count"] = o.Count
+ }
+ if o.Prices != nil {
+ toSerialize["prices"] = o.Prices
+ }
+ if !IsNil(o.Warehouse) {
+ toSerialize["warehouse"] = o.Warehouse
+ }
+ if o.Details != nil {
+ toSerialize["details"] = o.Details
+ }
+ if o.CisList != nil {
+ toSerialize["cisList"] = o.CisList
+ }
+ if !IsNil(o.InitialCount) {
+ toSerialize["initialCount"] = o.InitialCount
+ }
+ if !IsNil(o.BidFee) {
+ toSerialize["bidFee"] = o.BidFee
+ }
+ if !IsNil(o.CofinanceThreshold) {
+ toSerialize["cofinanceThreshold"] = o.CofinanceThreshold
+ }
+ if !IsNil(o.CofinanceValue) {
+ toSerialize["cofinanceValue"] = o.CofinanceValue
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersStatsItemDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrdersStatsItemDTO := _OrdersStatsItemDTO{}
+
+ err = json.Unmarshal(data, &varOrdersStatsItemDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersStatsItemDTO(varOrdersStatsItemDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerName")
+ delete(additionalProperties, "marketSku")
+ delete(additionalProperties, "shopSku")
+ delete(additionalProperties, "count")
+ delete(additionalProperties, "prices")
+ delete(additionalProperties, "warehouse")
+ delete(additionalProperties, "details")
+ delete(additionalProperties, "cisList")
+ delete(additionalProperties, "initialCount")
+ delete(additionalProperties, "bidFee")
+ delete(additionalProperties, "cofinanceThreshold")
+ delete(additionalProperties, "cofinanceValue")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersStatsItemDTO struct {
+ value *OrdersStatsItemDTO
+ isSet bool
+}
+
+func (v NullableOrdersStatsItemDTO) Get() *OrdersStatsItemDTO {
+ return v.value
+}
+
+func (v *NullableOrdersStatsItemDTO) Set(val *OrdersStatsItemDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsItemDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsItemDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsItemDTO(val *OrdersStatsItemDTO) *NullableOrdersStatsItemDTO {
+ return &NullableOrdersStatsItemDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsItemDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsItemDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_item_status_type.go b/pkg/api/yandex/ymclient/model_orders_stats_item_status_type.go
new file mode 100644
index 0000000..edbadf4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_item_status_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrdersStatsItemStatusType Статус товара: * `REJECTED` — товар был добавлен в созданный заказ, но не был оплачен. * `RETURNED` — товар вернули.
+type OrdersStatsItemStatusType string
+
+// List of OrdersStatsItemStatusType
+const (
+ ORDERSSTATSITEMSTATUSTYPE_REJECTED OrdersStatsItemStatusType = "REJECTED"
+ ORDERSSTATSITEMSTATUSTYPE_RETURNED OrdersStatsItemStatusType = "RETURNED"
+)
+
+// All allowed values of OrdersStatsItemStatusType enum
+var AllowedOrdersStatsItemStatusTypeEnumValues = []OrdersStatsItemStatusType{
+ "REJECTED",
+ "RETURNED",
+}
+
+func (v *OrdersStatsItemStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrdersStatsItemStatusType(value)
+ for _, existing := range AllowedOrdersStatsItemStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrdersStatsItemStatusType", value)
+}
+
+// NewOrdersStatsItemStatusTypeFromValue returns a pointer to a valid OrdersStatsItemStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrdersStatsItemStatusTypeFromValue(v string) (*OrdersStatsItemStatusType, error) {
+ ev := OrdersStatsItemStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrdersStatsItemStatusType: valid values are %v", v, AllowedOrdersStatsItemStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrdersStatsItemStatusType) IsValid() bool {
+ for _, existing := range AllowedOrdersStatsItemStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrdersStatsItemStatusType value
+func (v OrdersStatsItemStatusType) Ptr() *OrdersStatsItemStatusType {
+ return &v
+}
+
+type NullableOrdersStatsItemStatusType struct {
+ value *OrdersStatsItemStatusType
+ isSet bool
+}
+
+func (v NullableOrdersStatsItemStatusType) Get() *OrdersStatsItemStatusType {
+ return v.value
+}
+
+func (v *NullableOrdersStatsItemStatusType) Set(val *OrdersStatsItemStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsItemStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsItemStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsItemStatusType(val *OrdersStatsItemStatusType) *NullableOrdersStatsItemStatusType {
+ return &NullableOrdersStatsItemStatusType{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsItemStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsItemStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_order_dto.go b/pkg/api/yandex/ymclient/model_orders_stats_order_dto.go
new file mode 100644
index 0000000..ff2b27b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_order_dto.go
@@ -0,0 +1,636 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the OrdersStatsOrderDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersStatsOrderDTO{}
+
+// OrdersStatsOrderDTO Информация о заказе.
+type OrdersStatsOrderDTO struct {
+ // Идентификатор заказа.
+ Id *int64 `json:"id,omitempty"`
+ // Дата создания заказа. Формат даты: `ГГГГ-ММ-ДД`.
+ CreationDate *string `json:"creationDate,omitempty"`
+ // Дата и время, когда статус заказа был изменен в последний раз. Формат даты и времени: :no-translate[ISO 8601]. Например, `2017-11-21T00:00:00`. Часовой пояс — :no-translate[UTC+03:00] (Москва).
+ StatusUpdateDate *time.Time `json:"statusUpdateDate,omitempty"`
+ Status *OrderStatsStatusType `json:"status,omitempty"`
+ // Идентификатор заказа в информационной системе магазина.
+ PartnerOrderId *string `json:"partnerOrderId,omitempty"`
+ PaymentType *OrdersStatsOrderPaymentType `json:"paymentType,omitempty"`
+ // Тип заказа: * `false` — настоящий заказ покупателя. * `true` — [тестовый](../../concepts/sandbox.md) заказ Маркета.
+ Fake *bool `json:"fake,omitempty"`
+ DeliveryRegion *OrdersStatsDeliveryRegionDTO `json:"deliveryRegion,omitempty"`
+ // Список товаров в заказе после возможных изменений. Информация о доставке заказа добавляется отдельным элементом в массиве `items`— параметр `offerName` со значением `Доставка`.
+ Items []OrdersStatsItemDTO `json:"items"`
+ // Список товаров в заказе. Возвращается, только если было изменение количества товаров.
+ InitialItems []OrdersStatsItemDTO `json:"initialItems,omitempty"`
+ // Информация о денежных переводах по заказу. Может вернуться пустым, если нет данных о переводах. Например, заказ отменен или выбрана оплата при получении (для модели DBS).
+ Payments []OrdersStatsPaymentDTO `json:"payments"`
+ // Информация о стоимости услуг.
+ Commissions []OrdersStatsCommissionDTO `json:"commissions"`
+ // Начисление баллов, которые используются для уменьшения стоимости размещения, и их списание в случае невыкупа или возврата.
+ Subsidies []OrdersStatsSubsidyDTO `json:"subsidies,omitempty"`
+ Currency CurrencyType `json:"currency"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersStatsOrderDTO OrdersStatsOrderDTO
+
+// NewOrdersStatsOrderDTO instantiates a new OrdersStatsOrderDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersStatsOrderDTO(items []OrdersStatsItemDTO, payments []OrdersStatsPaymentDTO, commissions []OrdersStatsCommissionDTO, currency CurrencyType) *OrdersStatsOrderDTO {
+ this := OrdersStatsOrderDTO{}
+ this.Items = items
+ this.Payments = payments
+ this.Commissions = commissions
+ this.Currency = currency
+ return &this
+}
+
+// NewOrdersStatsOrderDTOWithDefaults instantiates a new OrdersStatsOrderDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersStatsOrderDTOWithDefaults() *OrdersStatsOrderDTO {
+ this := OrdersStatsOrderDTO{}
+ return &this
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *OrdersStatsOrderDTO) GetId() int64 {
+ if o == nil || IsNil(o.Id) {
+ var ret int64
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *OrdersStatsOrderDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given int64 and assigns it to the Id field.
+func (o *OrdersStatsOrderDTO) SetId(v int64) {
+ o.Id = &v
+}
+
+// GetCreationDate returns the CreationDate field value if set, zero value otherwise.
+func (o *OrdersStatsOrderDTO) GetCreationDate() string {
+ if o == nil || IsNil(o.CreationDate) {
+ var ret string
+ return ret
+ }
+ return *o.CreationDate
+}
+
+// GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetCreationDateOk() (*string, bool) {
+ if o == nil || IsNil(o.CreationDate) {
+ return nil, false
+ }
+ return o.CreationDate, true
+}
+
+// HasCreationDate returns a boolean if a field has been set.
+func (o *OrdersStatsOrderDTO) HasCreationDate() bool {
+ if o != nil && !IsNil(o.CreationDate) {
+ return true
+ }
+
+ return false
+}
+
+// SetCreationDate gets a reference to the given string and assigns it to the CreationDate field.
+func (o *OrdersStatsOrderDTO) SetCreationDate(v string) {
+ o.CreationDate = &v
+}
+
+// GetStatusUpdateDate returns the StatusUpdateDate field value if set, zero value otherwise.
+func (o *OrdersStatsOrderDTO) GetStatusUpdateDate() time.Time {
+ if o == nil || IsNil(o.StatusUpdateDate) {
+ var ret time.Time
+ return ret
+ }
+ return *o.StatusUpdateDate
+}
+
+// GetStatusUpdateDateOk returns a tuple with the StatusUpdateDate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetStatusUpdateDateOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.StatusUpdateDate) {
+ return nil, false
+ }
+ return o.StatusUpdateDate, true
+}
+
+// HasStatusUpdateDate returns a boolean if a field has been set.
+func (o *OrdersStatsOrderDTO) HasStatusUpdateDate() bool {
+ if o != nil && !IsNil(o.StatusUpdateDate) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatusUpdateDate gets a reference to the given time.Time and assigns it to the StatusUpdateDate field.
+func (o *OrdersStatsOrderDTO) SetStatusUpdateDate(v time.Time) {
+ o.StatusUpdateDate = &v
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *OrdersStatsOrderDTO) GetStatus() OrderStatsStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret OrderStatsStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetStatusOk() (*OrderStatsStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *OrdersStatsOrderDTO) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given OrderStatsStatusType and assigns it to the Status field.
+func (o *OrdersStatsOrderDTO) SetStatus(v OrderStatsStatusType) {
+ o.Status = &v
+}
+
+// GetPartnerOrderId returns the PartnerOrderId field value if set, zero value otherwise.
+func (o *OrdersStatsOrderDTO) GetPartnerOrderId() string {
+ if o == nil || IsNil(o.PartnerOrderId) {
+ var ret string
+ return ret
+ }
+ return *o.PartnerOrderId
+}
+
+// GetPartnerOrderIdOk returns a tuple with the PartnerOrderId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetPartnerOrderIdOk() (*string, bool) {
+ if o == nil || IsNil(o.PartnerOrderId) {
+ return nil, false
+ }
+ return o.PartnerOrderId, true
+}
+
+// HasPartnerOrderId returns a boolean if a field has been set.
+func (o *OrdersStatsOrderDTO) HasPartnerOrderId() bool {
+ if o != nil && !IsNil(o.PartnerOrderId) {
+ return true
+ }
+
+ return false
+}
+
+// SetPartnerOrderId gets a reference to the given string and assigns it to the PartnerOrderId field.
+func (o *OrdersStatsOrderDTO) SetPartnerOrderId(v string) {
+ o.PartnerOrderId = &v
+}
+
+// GetPaymentType returns the PaymentType field value if set, zero value otherwise.
+func (o *OrdersStatsOrderDTO) GetPaymentType() OrdersStatsOrderPaymentType {
+ if o == nil || IsNil(o.PaymentType) {
+ var ret OrdersStatsOrderPaymentType
+ return ret
+ }
+ return *o.PaymentType
+}
+
+// GetPaymentTypeOk returns a tuple with the PaymentType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetPaymentTypeOk() (*OrdersStatsOrderPaymentType, bool) {
+ if o == nil || IsNil(o.PaymentType) {
+ return nil, false
+ }
+ return o.PaymentType, true
+}
+
+// HasPaymentType returns a boolean if a field has been set.
+func (o *OrdersStatsOrderDTO) HasPaymentType() bool {
+ if o != nil && !IsNil(o.PaymentType) {
+ return true
+ }
+
+ return false
+}
+
+// SetPaymentType gets a reference to the given OrdersStatsOrderPaymentType and assigns it to the PaymentType field.
+func (o *OrdersStatsOrderDTO) SetPaymentType(v OrdersStatsOrderPaymentType) {
+ o.PaymentType = &v
+}
+
+// GetFake returns the Fake field value if set, zero value otherwise.
+func (o *OrdersStatsOrderDTO) GetFake() bool {
+ if o == nil || IsNil(o.Fake) {
+ var ret bool
+ return ret
+ }
+ return *o.Fake
+}
+
+// GetFakeOk returns a tuple with the Fake field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetFakeOk() (*bool, bool) {
+ if o == nil || IsNil(o.Fake) {
+ return nil, false
+ }
+ return o.Fake, true
+}
+
+// HasFake returns a boolean if a field has been set.
+func (o *OrdersStatsOrderDTO) HasFake() bool {
+ if o != nil && !IsNil(o.Fake) {
+ return true
+ }
+
+ return false
+}
+
+// SetFake gets a reference to the given bool and assigns it to the Fake field.
+func (o *OrdersStatsOrderDTO) SetFake(v bool) {
+ o.Fake = &v
+}
+
+// GetDeliveryRegion returns the DeliveryRegion field value if set, zero value otherwise.
+func (o *OrdersStatsOrderDTO) GetDeliveryRegion() OrdersStatsDeliveryRegionDTO {
+ if o == nil || IsNil(o.DeliveryRegion) {
+ var ret OrdersStatsDeliveryRegionDTO
+ return ret
+ }
+ return *o.DeliveryRegion
+}
+
+// GetDeliveryRegionOk returns a tuple with the DeliveryRegion field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetDeliveryRegionOk() (*OrdersStatsDeliveryRegionDTO, bool) {
+ if o == nil || IsNil(o.DeliveryRegion) {
+ return nil, false
+ }
+ return o.DeliveryRegion, true
+}
+
+// HasDeliveryRegion returns a boolean if a field has been set.
+func (o *OrdersStatsOrderDTO) HasDeliveryRegion() bool {
+ if o != nil && !IsNil(o.DeliveryRegion) {
+ return true
+ }
+
+ return false
+}
+
+// SetDeliveryRegion gets a reference to the given OrdersStatsDeliveryRegionDTO and assigns it to the DeliveryRegion field.
+func (o *OrdersStatsOrderDTO) SetDeliveryRegion(v OrdersStatsDeliveryRegionDTO) {
+ o.DeliveryRegion = &v
+}
+
+// GetItems returns the Items field value
+func (o *OrdersStatsOrderDTO) GetItems() []OrdersStatsItemDTO {
+ if o == nil {
+ var ret []OrdersStatsItemDTO
+ return ret
+ }
+
+ return o.Items
+}
+
+// GetItemsOk returns a tuple with the Items field value
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetItemsOk() ([]OrdersStatsItemDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Items, true
+}
+
+// SetItems sets field value
+func (o *OrdersStatsOrderDTO) SetItems(v []OrdersStatsItemDTO) {
+ o.Items = v
+}
+
+// GetInitialItems returns the InitialItems field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrdersStatsOrderDTO) GetInitialItems() []OrdersStatsItemDTO {
+ if o == nil {
+ var ret []OrdersStatsItemDTO
+ return ret
+ }
+ return o.InitialItems
+}
+
+// GetInitialItemsOk returns a tuple with the InitialItems field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrdersStatsOrderDTO) GetInitialItemsOk() ([]OrdersStatsItemDTO, bool) {
+ if o == nil || IsNil(o.InitialItems) {
+ return nil, false
+ }
+ return o.InitialItems, true
+}
+
+// HasInitialItems returns a boolean if a field has been set.
+func (o *OrdersStatsOrderDTO) HasInitialItems() bool {
+ if o != nil && !IsNil(o.InitialItems) {
+ return true
+ }
+
+ return false
+}
+
+// SetInitialItems gets a reference to the given []OrdersStatsItemDTO and assigns it to the InitialItems field.
+func (o *OrdersStatsOrderDTO) SetInitialItems(v []OrdersStatsItemDTO) {
+ o.InitialItems = v
+}
+
+// GetPayments returns the Payments field value
+func (o *OrdersStatsOrderDTO) GetPayments() []OrdersStatsPaymentDTO {
+ if o == nil {
+ var ret []OrdersStatsPaymentDTO
+ return ret
+ }
+
+ return o.Payments
+}
+
+// GetPaymentsOk returns a tuple with the Payments field value
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetPaymentsOk() ([]OrdersStatsPaymentDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Payments, true
+}
+
+// SetPayments sets field value
+func (o *OrdersStatsOrderDTO) SetPayments(v []OrdersStatsPaymentDTO) {
+ o.Payments = v
+}
+
+// GetCommissions returns the Commissions field value
+func (o *OrdersStatsOrderDTO) GetCommissions() []OrdersStatsCommissionDTO {
+ if o == nil {
+ var ret []OrdersStatsCommissionDTO
+ return ret
+ }
+
+ return o.Commissions
+}
+
+// GetCommissionsOk returns a tuple with the Commissions field value
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetCommissionsOk() ([]OrdersStatsCommissionDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Commissions, true
+}
+
+// SetCommissions sets field value
+func (o *OrdersStatsOrderDTO) SetCommissions(v []OrdersStatsCommissionDTO) {
+ o.Commissions = v
+}
+
+// GetSubsidies returns the Subsidies field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OrdersStatsOrderDTO) GetSubsidies() []OrdersStatsSubsidyDTO {
+ if o == nil {
+ var ret []OrdersStatsSubsidyDTO
+ return ret
+ }
+ return o.Subsidies
+}
+
+// GetSubsidiesOk returns a tuple with the Subsidies field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OrdersStatsOrderDTO) GetSubsidiesOk() ([]OrdersStatsSubsidyDTO, bool) {
+ if o == nil || IsNil(o.Subsidies) {
+ return nil, false
+ }
+ return o.Subsidies, true
+}
+
+// HasSubsidies returns a boolean if a field has been set.
+func (o *OrdersStatsOrderDTO) HasSubsidies() bool {
+ if o != nil && !IsNil(o.Subsidies) {
+ return true
+ }
+
+ return false
+}
+
+// SetSubsidies gets a reference to the given []OrdersStatsSubsidyDTO and assigns it to the Subsidies field.
+func (o *OrdersStatsOrderDTO) SetSubsidies(v []OrdersStatsSubsidyDTO) {
+ o.Subsidies = v
+}
+
+// GetCurrency returns the Currency field value
+func (o *OrdersStatsOrderDTO) GetCurrency() CurrencyType {
+ if o == nil {
+ var ret CurrencyType
+ return ret
+ }
+
+ return o.Currency
+}
+
+// GetCurrencyOk returns a tuple with the Currency field value
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsOrderDTO) GetCurrencyOk() (*CurrencyType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Currency, true
+}
+
+// SetCurrency sets field value
+func (o *OrdersStatsOrderDTO) SetCurrency(v CurrencyType) {
+ o.Currency = v
+}
+
+func (o OrdersStatsOrderDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersStatsOrderDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+ if !IsNil(o.CreationDate) {
+ toSerialize["creationDate"] = o.CreationDate
+ }
+ if !IsNil(o.StatusUpdateDate) {
+ toSerialize["statusUpdateDate"] = o.StatusUpdateDate
+ }
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.PartnerOrderId) {
+ toSerialize["partnerOrderId"] = o.PartnerOrderId
+ }
+ if !IsNil(o.PaymentType) {
+ toSerialize["paymentType"] = o.PaymentType
+ }
+ if !IsNil(o.Fake) {
+ toSerialize["fake"] = o.Fake
+ }
+ if !IsNil(o.DeliveryRegion) {
+ toSerialize["deliveryRegion"] = o.DeliveryRegion
+ }
+ toSerialize["items"] = o.Items
+ if o.InitialItems != nil {
+ toSerialize["initialItems"] = o.InitialItems
+ }
+ toSerialize["payments"] = o.Payments
+ toSerialize["commissions"] = o.Commissions
+ if o.Subsidies != nil {
+ toSerialize["subsidies"] = o.Subsidies
+ }
+ toSerialize["currency"] = o.Currency
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersStatsOrderDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "items",
+ "payments",
+ "commissions",
+ "currency",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrdersStatsOrderDTO := _OrdersStatsOrderDTO{}
+
+ err = json.Unmarshal(data, &varOrdersStatsOrderDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersStatsOrderDTO(varOrdersStatsOrderDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "creationDate")
+ delete(additionalProperties, "statusUpdateDate")
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "partnerOrderId")
+ delete(additionalProperties, "paymentType")
+ delete(additionalProperties, "fake")
+ delete(additionalProperties, "deliveryRegion")
+ delete(additionalProperties, "items")
+ delete(additionalProperties, "initialItems")
+ delete(additionalProperties, "payments")
+ delete(additionalProperties, "commissions")
+ delete(additionalProperties, "subsidies")
+ delete(additionalProperties, "currency")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersStatsOrderDTO struct {
+ value *OrdersStatsOrderDTO
+ isSet bool
+}
+
+func (v NullableOrdersStatsOrderDTO) Get() *OrdersStatsOrderDTO {
+ return v.value
+}
+
+func (v *NullableOrdersStatsOrderDTO) Set(val *OrdersStatsOrderDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsOrderDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsOrderDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsOrderDTO(val *OrdersStatsOrderDTO) *NullableOrdersStatsOrderDTO {
+ return &NullableOrdersStatsOrderDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsOrderDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsOrderDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_order_payment_type.go b/pkg/api/yandex/ymclient/model_orders_stats_order_payment_type.go
new file mode 100644
index 0000000..1c0cc54
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_order_payment_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrdersStatsOrderPaymentType Тип оплаты заказа: - `POSTPAID` — заказ оплачен после того, как был получен. - `PREPAID` — заказ оплачен до того, как был получен. - `UNKNOWN` — неизвестный тип оплаты. Скорее всего покупатель отменил или вернул заказ или не было его оплаты.
+type OrdersStatsOrderPaymentType string
+
+// List of OrdersStatsOrderPaymentType
+const (
+ ORDERSSTATSORDERPAYMENTTYPE_POSTPAID OrdersStatsOrderPaymentType = "POSTPAID"
+ ORDERSSTATSORDERPAYMENTTYPE_PREPAID OrdersStatsOrderPaymentType = "PREPAID"
+ ORDERSSTATSORDERPAYMENTTYPE_UNKNOWN OrdersStatsOrderPaymentType = "UNKNOWN"
+)
+
+// All allowed values of OrdersStatsOrderPaymentType enum
+var AllowedOrdersStatsOrderPaymentTypeEnumValues = []OrdersStatsOrderPaymentType{
+ "POSTPAID",
+ "PREPAID",
+ "UNKNOWN",
+}
+
+func (v *OrdersStatsOrderPaymentType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrdersStatsOrderPaymentType(value)
+ for _, existing := range AllowedOrdersStatsOrderPaymentTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrdersStatsOrderPaymentType", value)
+}
+
+// NewOrdersStatsOrderPaymentTypeFromValue returns a pointer to a valid OrdersStatsOrderPaymentType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrdersStatsOrderPaymentTypeFromValue(v string) (*OrdersStatsOrderPaymentType, error) {
+ ev := OrdersStatsOrderPaymentType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrdersStatsOrderPaymentType: valid values are %v", v, AllowedOrdersStatsOrderPaymentTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrdersStatsOrderPaymentType) IsValid() bool {
+ for _, existing := range AllowedOrdersStatsOrderPaymentTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrdersStatsOrderPaymentType value
+func (v OrdersStatsOrderPaymentType) Ptr() *OrdersStatsOrderPaymentType {
+ return &v
+}
+
+type NullableOrdersStatsOrderPaymentType struct {
+ value *OrdersStatsOrderPaymentType
+ isSet bool
+}
+
+func (v NullableOrdersStatsOrderPaymentType) Get() *OrdersStatsOrderPaymentType {
+ return v.value
+}
+
+func (v *NullableOrdersStatsOrderPaymentType) Set(val *OrdersStatsOrderPaymentType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsOrderPaymentType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsOrderPaymentType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsOrderPaymentType(val *OrdersStatsOrderPaymentType) *NullableOrdersStatsOrderPaymentType {
+ return &NullableOrdersStatsOrderPaymentType{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsOrderPaymentType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsOrderPaymentType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_payment_dto.go b/pkg/api/yandex/ymclient/model_orders_stats_payment_dto.go
new file mode 100644
index 0000000..d7f5eb9
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_payment_dto.go
@@ -0,0 +1,341 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrdersStatsPaymentDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersStatsPaymentDTO{}
+
+// OrdersStatsPaymentDTO Информация о денежных переводах по заказу.
+type OrdersStatsPaymentDTO struct {
+ // Идентификатор денежного перевода.
+ Id *string `json:"id,omitempty"`
+ // Дата денежного перевода. Формат даты: `ГГГГ-ММ-ДД`.
+ Date *string `json:"date,omitempty"`
+ Type *OrdersStatsPaymentType `json:"type,omitempty"`
+ Source *OrdersStatsPaymentSourceType `json:"source,omitempty"`
+ // Сумма денежного перевода. Точность — два знака после запятой.
+ Total *float32 `json:"total,omitempty"`
+ PaymentOrder *OrdersStatsPaymentOrderDTO `json:"paymentOrder,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersStatsPaymentDTO OrdersStatsPaymentDTO
+
+// NewOrdersStatsPaymentDTO instantiates a new OrdersStatsPaymentDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersStatsPaymentDTO() *OrdersStatsPaymentDTO {
+ this := OrdersStatsPaymentDTO{}
+ return &this
+}
+
+// NewOrdersStatsPaymentDTOWithDefaults instantiates a new OrdersStatsPaymentDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersStatsPaymentDTOWithDefaults() *OrdersStatsPaymentDTO {
+ this := OrdersStatsPaymentDTO{}
+ return &this
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *OrdersStatsPaymentDTO) GetId() string {
+ if o == nil || IsNil(o.Id) {
+ var ret string
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsPaymentDTO) GetIdOk() (*string, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *OrdersStatsPaymentDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given string and assigns it to the Id field.
+func (o *OrdersStatsPaymentDTO) SetId(v string) {
+ o.Id = &v
+}
+
+// GetDate returns the Date field value if set, zero value otherwise.
+func (o *OrdersStatsPaymentDTO) GetDate() string {
+ if o == nil || IsNil(o.Date) {
+ var ret string
+ return ret
+ }
+ return *o.Date
+}
+
+// GetDateOk returns a tuple with the Date field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsPaymentDTO) GetDateOk() (*string, bool) {
+ if o == nil || IsNil(o.Date) {
+ return nil, false
+ }
+ return o.Date, true
+}
+
+// HasDate returns a boolean if a field has been set.
+func (o *OrdersStatsPaymentDTO) HasDate() bool {
+ if o != nil && !IsNil(o.Date) {
+ return true
+ }
+
+ return false
+}
+
+// SetDate gets a reference to the given string and assigns it to the Date field.
+func (o *OrdersStatsPaymentDTO) SetDate(v string) {
+ o.Date = &v
+}
+
+// GetType returns the Type field value if set, zero value otherwise.
+func (o *OrdersStatsPaymentDTO) GetType() OrdersStatsPaymentType {
+ if o == nil || IsNil(o.Type) {
+ var ret OrdersStatsPaymentType
+ return ret
+ }
+ return *o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsPaymentDTO) GetTypeOk() (*OrdersStatsPaymentType, bool) {
+ if o == nil || IsNil(o.Type) {
+ return nil, false
+ }
+ return o.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *OrdersStatsPaymentDTO) HasType() bool {
+ if o != nil && !IsNil(o.Type) {
+ return true
+ }
+
+ return false
+}
+
+// SetType gets a reference to the given OrdersStatsPaymentType and assigns it to the Type field.
+func (o *OrdersStatsPaymentDTO) SetType(v OrdersStatsPaymentType) {
+ o.Type = &v
+}
+
+// GetSource returns the Source field value if set, zero value otherwise.
+func (o *OrdersStatsPaymentDTO) GetSource() OrdersStatsPaymentSourceType {
+ if o == nil || IsNil(o.Source) {
+ var ret OrdersStatsPaymentSourceType
+ return ret
+ }
+ return *o.Source
+}
+
+// GetSourceOk returns a tuple with the Source field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsPaymentDTO) GetSourceOk() (*OrdersStatsPaymentSourceType, bool) {
+ if o == nil || IsNil(o.Source) {
+ return nil, false
+ }
+ return o.Source, true
+}
+
+// HasSource returns a boolean if a field has been set.
+func (o *OrdersStatsPaymentDTO) HasSource() bool {
+ if o != nil && !IsNil(o.Source) {
+ return true
+ }
+
+ return false
+}
+
+// SetSource gets a reference to the given OrdersStatsPaymentSourceType and assigns it to the Source field.
+func (o *OrdersStatsPaymentDTO) SetSource(v OrdersStatsPaymentSourceType) {
+ o.Source = &v
+}
+
+// GetTotal returns the Total field value if set, zero value otherwise.
+func (o *OrdersStatsPaymentDTO) GetTotal() float32 {
+ if o == nil || IsNil(o.Total) {
+ var ret float32
+ return ret
+ }
+ return *o.Total
+}
+
+// GetTotalOk returns a tuple with the Total field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsPaymentDTO) GetTotalOk() (*float32, bool) {
+ if o == nil || IsNil(o.Total) {
+ return nil, false
+ }
+ return o.Total, true
+}
+
+// HasTotal returns a boolean if a field has been set.
+func (o *OrdersStatsPaymentDTO) HasTotal() bool {
+ if o != nil && !IsNil(o.Total) {
+ return true
+ }
+
+ return false
+}
+
+// SetTotal gets a reference to the given float32 and assigns it to the Total field.
+func (o *OrdersStatsPaymentDTO) SetTotal(v float32) {
+ o.Total = &v
+}
+
+// GetPaymentOrder returns the PaymentOrder field value if set, zero value otherwise.
+func (o *OrdersStatsPaymentDTO) GetPaymentOrder() OrdersStatsPaymentOrderDTO {
+ if o == nil || IsNil(o.PaymentOrder) {
+ var ret OrdersStatsPaymentOrderDTO
+ return ret
+ }
+ return *o.PaymentOrder
+}
+
+// GetPaymentOrderOk returns a tuple with the PaymentOrder field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsPaymentDTO) GetPaymentOrderOk() (*OrdersStatsPaymentOrderDTO, bool) {
+ if o == nil || IsNil(o.PaymentOrder) {
+ return nil, false
+ }
+ return o.PaymentOrder, true
+}
+
+// HasPaymentOrder returns a boolean if a field has been set.
+func (o *OrdersStatsPaymentDTO) HasPaymentOrder() bool {
+ if o != nil && !IsNil(o.PaymentOrder) {
+ return true
+ }
+
+ return false
+}
+
+// SetPaymentOrder gets a reference to the given OrdersStatsPaymentOrderDTO and assigns it to the PaymentOrder field.
+func (o *OrdersStatsPaymentDTO) SetPaymentOrder(v OrdersStatsPaymentOrderDTO) {
+ o.PaymentOrder = &v
+}
+
+func (o OrdersStatsPaymentDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersStatsPaymentDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+ if !IsNil(o.Date) {
+ toSerialize["date"] = o.Date
+ }
+ if !IsNil(o.Type) {
+ toSerialize["type"] = o.Type
+ }
+ if !IsNil(o.Source) {
+ toSerialize["source"] = o.Source
+ }
+ if !IsNil(o.Total) {
+ toSerialize["total"] = o.Total
+ }
+ if !IsNil(o.PaymentOrder) {
+ toSerialize["paymentOrder"] = o.PaymentOrder
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersStatsPaymentDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrdersStatsPaymentDTO := _OrdersStatsPaymentDTO{}
+
+ err = json.Unmarshal(data, &varOrdersStatsPaymentDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersStatsPaymentDTO(varOrdersStatsPaymentDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "date")
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "source")
+ delete(additionalProperties, "total")
+ delete(additionalProperties, "paymentOrder")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersStatsPaymentDTO struct {
+ value *OrdersStatsPaymentDTO
+ isSet bool
+}
+
+func (v NullableOrdersStatsPaymentDTO) Get() *OrdersStatsPaymentDTO {
+ return v.value
+}
+
+func (v *NullableOrdersStatsPaymentDTO) Set(val *OrdersStatsPaymentDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsPaymentDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsPaymentDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsPaymentDTO(val *OrdersStatsPaymentDTO) *NullableOrdersStatsPaymentDTO {
+ return &NullableOrdersStatsPaymentDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsPaymentDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsPaymentDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_payment_order_dto.go b/pkg/api/yandex/ymclient/model_orders_stats_payment_order_dto.go
new file mode 100644
index 0000000..62db071
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_payment_order_dto.go
@@ -0,0 +1,192 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrdersStatsPaymentOrderDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersStatsPaymentOrderDTO{}
+
+// OrdersStatsPaymentOrderDTO Информация о платежном поручении.
+type OrdersStatsPaymentOrderDTO struct {
+ // Номер платежного поручения.
+ Id *string `json:"id,omitempty"`
+ // Дата платежного поручения. Формат даты: `ГГГГ‑ММ‑ДД`.
+ Date *string `json:"date,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersStatsPaymentOrderDTO OrdersStatsPaymentOrderDTO
+
+// NewOrdersStatsPaymentOrderDTO instantiates a new OrdersStatsPaymentOrderDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersStatsPaymentOrderDTO() *OrdersStatsPaymentOrderDTO {
+ this := OrdersStatsPaymentOrderDTO{}
+ return &this
+}
+
+// NewOrdersStatsPaymentOrderDTOWithDefaults instantiates a new OrdersStatsPaymentOrderDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersStatsPaymentOrderDTOWithDefaults() *OrdersStatsPaymentOrderDTO {
+ this := OrdersStatsPaymentOrderDTO{}
+ return &this
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *OrdersStatsPaymentOrderDTO) GetId() string {
+ if o == nil || IsNil(o.Id) {
+ var ret string
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsPaymentOrderDTO) GetIdOk() (*string, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *OrdersStatsPaymentOrderDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given string and assigns it to the Id field.
+func (o *OrdersStatsPaymentOrderDTO) SetId(v string) {
+ o.Id = &v
+}
+
+// GetDate returns the Date field value if set, zero value otherwise.
+func (o *OrdersStatsPaymentOrderDTO) GetDate() string {
+ if o == nil || IsNil(o.Date) {
+ var ret string
+ return ret
+ }
+ return *o.Date
+}
+
+// GetDateOk returns a tuple with the Date field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsPaymentOrderDTO) GetDateOk() (*string, bool) {
+ if o == nil || IsNil(o.Date) {
+ return nil, false
+ }
+ return o.Date, true
+}
+
+// HasDate returns a boolean if a field has been set.
+func (o *OrdersStatsPaymentOrderDTO) HasDate() bool {
+ if o != nil && !IsNil(o.Date) {
+ return true
+ }
+
+ return false
+}
+
+// SetDate gets a reference to the given string and assigns it to the Date field.
+func (o *OrdersStatsPaymentOrderDTO) SetDate(v string) {
+ o.Date = &v
+}
+
+func (o OrdersStatsPaymentOrderDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersStatsPaymentOrderDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+ if !IsNil(o.Date) {
+ toSerialize["date"] = o.Date
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersStatsPaymentOrderDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrdersStatsPaymentOrderDTO := _OrdersStatsPaymentOrderDTO{}
+
+ err = json.Unmarshal(data, &varOrdersStatsPaymentOrderDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersStatsPaymentOrderDTO(varOrdersStatsPaymentOrderDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "date")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersStatsPaymentOrderDTO struct {
+ value *OrdersStatsPaymentOrderDTO
+ isSet bool
+}
+
+func (v NullableOrdersStatsPaymentOrderDTO) Get() *OrdersStatsPaymentOrderDTO {
+ return v.value
+}
+
+func (v *NullableOrdersStatsPaymentOrderDTO) Set(val *OrdersStatsPaymentOrderDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsPaymentOrderDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsPaymentOrderDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsPaymentOrderDTO(val *OrdersStatsPaymentOrderDTO) *NullableOrdersStatsPaymentOrderDTO {
+ return &NullableOrdersStatsPaymentOrderDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsPaymentOrderDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsPaymentOrderDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_payment_source_type.go b/pkg/api/yandex/ymclient/model_orders_stats_payment_source_type.go
new file mode 100644
index 0000000..6f9e7ae
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_payment_source_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrdersStatsPaymentSourceType Способ денежного перевода: - `BUYER` — оплата или возврат деньгами. Устаревшие способы: - `CASHBACK`. - `MARKETPLACE`. - `SPLIT`.
+type OrdersStatsPaymentSourceType string
+
+// List of OrdersStatsPaymentSourceType
+const (
+ ORDERSSTATSPAYMENTSOURCETYPE_BUYER OrdersStatsPaymentSourceType = "BUYER"
+ ORDERSSTATSPAYMENTSOURCETYPE_CASHBACK OrdersStatsPaymentSourceType = "CASHBACK"
+ ORDERSSTATSPAYMENTSOURCETYPE_MARKETPLACE OrdersStatsPaymentSourceType = "MARKETPLACE"
+ ORDERSSTATSPAYMENTSOURCETYPE_SPLIT OrdersStatsPaymentSourceType = "SPLIT"
+)
+
+// All allowed values of OrdersStatsPaymentSourceType enum
+var AllowedOrdersStatsPaymentSourceTypeEnumValues = []OrdersStatsPaymentSourceType{
+ "BUYER",
+ "CASHBACK",
+ "MARKETPLACE",
+ "SPLIT",
+}
+
+func (v *OrdersStatsPaymentSourceType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrdersStatsPaymentSourceType(value)
+ for _, existing := range AllowedOrdersStatsPaymentSourceTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrdersStatsPaymentSourceType", value)
+}
+
+// NewOrdersStatsPaymentSourceTypeFromValue returns a pointer to a valid OrdersStatsPaymentSourceType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrdersStatsPaymentSourceTypeFromValue(v string) (*OrdersStatsPaymentSourceType, error) {
+ ev := OrdersStatsPaymentSourceType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrdersStatsPaymentSourceType: valid values are %v", v, AllowedOrdersStatsPaymentSourceTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrdersStatsPaymentSourceType) IsValid() bool {
+ for _, existing := range AllowedOrdersStatsPaymentSourceTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrdersStatsPaymentSourceType value
+func (v OrdersStatsPaymentSourceType) Ptr() *OrdersStatsPaymentSourceType {
+ return &v
+}
+
+type NullableOrdersStatsPaymentSourceType struct {
+ value *OrdersStatsPaymentSourceType
+ isSet bool
+}
+
+func (v NullableOrdersStatsPaymentSourceType) Get() *OrdersStatsPaymentSourceType {
+ return v.value
+}
+
+func (v *NullableOrdersStatsPaymentSourceType) Set(val *OrdersStatsPaymentSourceType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsPaymentSourceType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsPaymentSourceType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsPaymentSourceType(val *OrdersStatsPaymentSourceType) *NullableOrdersStatsPaymentSourceType {
+ return &NullableOrdersStatsPaymentSourceType{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsPaymentSourceType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsPaymentSourceType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_payment_type.go b/pkg/api/yandex/ymclient/model_orders_stats_payment_type.go
new file mode 100644
index 0000000..e9f073d
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_payment_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrdersStatsPaymentType Тип денежного перевода: - `PAYMENT` — оплата. - `REFUND` — возврат.
+type OrdersStatsPaymentType string
+
+// List of OrdersStatsPaymentType
+const (
+ ORDERSSTATSPAYMENTTYPE_PAYMENT OrdersStatsPaymentType = "PAYMENT"
+ ORDERSSTATSPAYMENTTYPE_REFUND OrdersStatsPaymentType = "REFUND"
+)
+
+// All allowed values of OrdersStatsPaymentType enum
+var AllowedOrdersStatsPaymentTypeEnumValues = []OrdersStatsPaymentType{
+ "PAYMENT",
+ "REFUND",
+}
+
+func (v *OrdersStatsPaymentType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrdersStatsPaymentType(value)
+ for _, existing := range AllowedOrdersStatsPaymentTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrdersStatsPaymentType", value)
+}
+
+// NewOrdersStatsPaymentTypeFromValue returns a pointer to a valid OrdersStatsPaymentType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrdersStatsPaymentTypeFromValue(v string) (*OrdersStatsPaymentType, error) {
+ ev := OrdersStatsPaymentType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrdersStatsPaymentType: valid values are %v", v, AllowedOrdersStatsPaymentTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrdersStatsPaymentType) IsValid() bool {
+ for _, existing := range AllowedOrdersStatsPaymentTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrdersStatsPaymentType value
+func (v OrdersStatsPaymentType) Ptr() *OrdersStatsPaymentType {
+ return &v
+}
+
+type NullableOrdersStatsPaymentType struct {
+ value *OrdersStatsPaymentType
+ isSet bool
+}
+
+func (v NullableOrdersStatsPaymentType) Get() *OrdersStatsPaymentType {
+ return v.value
+}
+
+func (v *NullableOrdersStatsPaymentType) Set(val *OrdersStatsPaymentType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsPaymentType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsPaymentType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsPaymentType(val *OrdersStatsPaymentType) *NullableOrdersStatsPaymentType {
+ return &NullableOrdersStatsPaymentType{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsPaymentType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsPaymentType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_price_dto.go b/pkg/api/yandex/ymclient/model_orders_stats_price_dto.go
new file mode 100644
index 0000000..f346dff
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_price_dto.go
@@ -0,0 +1,229 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrdersStatsPriceDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersStatsPriceDTO{}
+
+// OrdersStatsPriceDTO Цена или скидки на товар.
+type OrdersStatsPriceDTO struct {
+ Type *OrdersStatsPriceType `json:"type,omitempty"`
+ // Цена или скидка на единицу товара в заказе. Точность — два знака после запятой. Включает НДС.
+ CostPerItem *float32 `json:"costPerItem,omitempty"`
+ // Суммарная цена или скидка на все единицы товара в заказе. Точность — два знака после запятой. Включает НДС.
+ Total *float32 `json:"total,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersStatsPriceDTO OrdersStatsPriceDTO
+
+// NewOrdersStatsPriceDTO instantiates a new OrdersStatsPriceDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersStatsPriceDTO() *OrdersStatsPriceDTO {
+ this := OrdersStatsPriceDTO{}
+ return &this
+}
+
+// NewOrdersStatsPriceDTOWithDefaults instantiates a new OrdersStatsPriceDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersStatsPriceDTOWithDefaults() *OrdersStatsPriceDTO {
+ this := OrdersStatsPriceDTO{}
+ return &this
+}
+
+// GetType returns the Type field value if set, zero value otherwise.
+func (o *OrdersStatsPriceDTO) GetType() OrdersStatsPriceType {
+ if o == nil || IsNil(o.Type) {
+ var ret OrdersStatsPriceType
+ return ret
+ }
+ return *o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsPriceDTO) GetTypeOk() (*OrdersStatsPriceType, bool) {
+ if o == nil || IsNil(o.Type) {
+ return nil, false
+ }
+ return o.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *OrdersStatsPriceDTO) HasType() bool {
+ if o != nil && !IsNil(o.Type) {
+ return true
+ }
+
+ return false
+}
+
+// SetType gets a reference to the given OrdersStatsPriceType and assigns it to the Type field.
+func (o *OrdersStatsPriceDTO) SetType(v OrdersStatsPriceType) {
+ o.Type = &v
+}
+
+// GetCostPerItem returns the CostPerItem field value if set, zero value otherwise.
+func (o *OrdersStatsPriceDTO) GetCostPerItem() float32 {
+ if o == nil || IsNil(o.CostPerItem) {
+ var ret float32
+ return ret
+ }
+ return *o.CostPerItem
+}
+
+// GetCostPerItemOk returns a tuple with the CostPerItem field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsPriceDTO) GetCostPerItemOk() (*float32, bool) {
+ if o == nil || IsNil(o.CostPerItem) {
+ return nil, false
+ }
+ return o.CostPerItem, true
+}
+
+// HasCostPerItem returns a boolean if a field has been set.
+func (o *OrdersStatsPriceDTO) HasCostPerItem() bool {
+ if o != nil && !IsNil(o.CostPerItem) {
+ return true
+ }
+
+ return false
+}
+
+// SetCostPerItem gets a reference to the given float32 and assigns it to the CostPerItem field.
+func (o *OrdersStatsPriceDTO) SetCostPerItem(v float32) {
+ o.CostPerItem = &v
+}
+
+// GetTotal returns the Total field value if set, zero value otherwise.
+func (o *OrdersStatsPriceDTO) GetTotal() float32 {
+ if o == nil || IsNil(o.Total) {
+ var ret float32
+ return ret
+ }
+ return *o.Total
+}
+
+// GetTotalOk returns a tuple with the Total field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsPriceDTO) GetTotalOk() (*float32, bool) {
+ if o == nil || IsNil(o.Total) {
+ return nil, false
+ }
+ return o.Total, true
+}
+
+// HasTotal returns a boolean if a field has been set.
+func (o *OrdersStatsPriceDTO) HasTotal() bool {
+ if o != nil && !IsNil(o.Total) {
+ return true
+ }
+
+ return false
+}
+
+// SetTotal gets a reference to the given float32 and assigns it to the Total field.
+func (o *OrdersStatsPriceDTO) SetTotal(v float32) {
+ o.Total = &v
+}
+
+func (o OrdersStatsPriceDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersStatsPriceDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Type) {
+ toSerialize["type"] = o.Type
+ }
+ if !IsNil(o.CostPerItem) {
+ toSerialize["costPerItem"] = o.CostPerItem
+ }
+ if !IsNil(o.Total) {
+ toSerialize["total"] = o.Total
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersStatsPriceDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrdersStatsPriceDTO := _OrdersStatsPriceDTO{}
+
+ err = json.Unmarshal(data, &varOrdersStatsPriceDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersStatsPriceDTO(varOrdersStatsPriceDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "costPerItem")
+ delete(additionalProperties, "total")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersStatsPriceDTO struct {
+ value *OrdersStatsPriceDTO
+ isSet bool
+}
+
+func (v NullableOrdersStatsPriceDTO) Get() *OrdersStatsPriceDTO {
+ return v.value
+}
+
+func (v *NullableOrdersStatsPriceDTO) Set(val *OrdersStatsPriceDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsPriceDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsPriceDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsPriceDTO(val *OrdersStatsPriceDTO) *NullableOrdersStatsPriceDTO {
+ return &NullableOrdersStatsPriceDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsPriceDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsPriceDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_price_type.go b/pkg/api/yandex/ymclient/model_orders_stats_price_type.go
new file mode 100644
index 0000000..6b9befc
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_price_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrdersStatsPriceType Тип скидки или цена на товар: - `BUYER` — цена на товар с учетом скидок, в том числе купонов. - `CASHBACK` — баллы Плюса. - `MARKETPLACE` — купоны.
+type OrdersStatsPriceType string
+
+// List of OrdersStatsPriceType
+const (
+ ORDERSSTATSPRICETYPE_BUYER OrdersStatsPriceType = "BUYER"
+ ORDERSSTATSPRICETYPE_CASHBACK OrdersStatsPriceType = "CASHBACK"
+ ORDERSSTATSPRICETYPE_MARKETPLACE OrdersStatsPriceType = "MARKETPLACE"
+)
+
+// All allowed values of OrdersStatsPriceType enum
+var AllowedOrdersStatsPriceTypeEnumValues = []OrdersStatsPriceType{
+ "BUYER",
+ "CASHBACK",
+ "MARKETPLACE",
+}
+
+func (v *OrdersStatsPriceType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrdersStatsPriceType(value)
+ for _, existing := range AllowedOrdersStatsPriceTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrdersStatsPriceType", value)
+}
+
+// NewOrdersStatsPriceTypeFromValue returns a pointer to a valid OrdersStatsPriceType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrdersStatsPriceTypeFromValue(v string) (*OrdersStatsPriceType, error) {
+ ev := OrdersStatsPriceType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrdersStatsPriceType: valid values are %v", v, AllowedOrdersStatsPriceTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrdersStatsPriceType) IsValid() bool {
+ for _, existing := range AllowedOrdersStatsPriceTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrdersStatsPriceType value
+func (v OrdersStatsPriceType) Ptr() *OrdersStatsPriceType {
+ return &v
+}
+
+type NullableOrdersStatsPriceType struct {
+ value *OrdersStatsPriceType
+ isSet bool
+}
+
+func (v NullableOrdersStatsPriceType) Get() *OrdersStatsPriceType {
+ return v.value
+}
+
+func (v *NullableOrdersStatsPriceType) Set(val *OrdersStatsPriceType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsPriceType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsPriceType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsPriceType(val *OrdersStatsPriceType) *NullableOrdersStatsPriceType {
+ return &NullableOrdersStatsPriceType{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsPriceType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsPriceType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_stock_type.go b/pkg/api/yandex/ymclient/model_orders_stats_stock_type.go
new file mode 100644
index 0000000..a95df9f
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_stock_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrdersStatsStockType Тип товара: * `FIT` — товар надлежащего качества. * `DEFECT` — товар бракованный. * `EXPIRED` — товар с истекшим сроком годности.
+type OrdersStatsStockType string
+
+// List of OrdersStatsStockType
+const (
+ ORDERSSTATSSTOCKTYPE_FIT OrdersStatsStockType = "FIT"
+ ORDERSSTATSSTOCKTYPE_DEFECT OrdersStatsStockType = "DEFECT"
+ ORDERSSTATSSTOCKTYPE_EXPIRED OrdersStatsStockType = "EXPIRED"
+)
+
+// All allowed values of OrdersStatsStockType enum
+var AllowedOrdersStatsStockTypeEnumValues = []OrdersStatsStockType{
+ "FIT",
+ "DEFECT",
+ "EXPIRED",
+}
+
+func (v *OrdersStatsStockType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrdersStatsStockType(value)
+ for _, existing := range AllowedOrdersStatsStockTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrdersStatsStockType", value)
+}
+
+// NewOrdersStatsStockTypeFromValue returns a pointer to a valid OrdersStatsStockType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrdersStatsStockTypeFromValue(v string) (*OrdersStatsStockType, error) {
+ ev := OrdersStatsStockType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrdersStatsStockType: valid values are %v", v, AllowedOrdersStatsStockTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrdersStatsStockType) IsValid() bool {
+ for _, existing := range AllowedOrdersStatsStockTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrdersStatsStockType value
+func (v OrdersStatsStockType) Ptr() *OrdersStatsStockType {
+ return &v
+}
+
+type NullableOrdersStatsStockType struct {
+ value *OrdersStatsStockType
+ isSet bool
+}
+
+func (v NullableOrdersStatsStockType) Get() *OrdersStatsStockType {
+ return v.value
+}
+
+func (v *NullableOrdersStatsStockType) Set(val *OrdersStatsStockType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsStockType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsStockType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsStockType(val *OrdersStatsStockType) *NullableOrdersStatsStockType {
+ return &NullableOrdersStatsStockType{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsStockType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsStockType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_subsidy_dto.go b/pkg/api/yandex/ymclient/model_orders_stats_subsidy_dto.go
new file mode 100644
index 0000000..453db59
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_subsidy_dto.go
@@ -0,0 +1,225 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OrdersStatsSubsidyDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersStatsSubsidyDTO{}
+
+// OrdersStatsSubsidyDTO Информация о начислении баллов, которые используются для уменьшения стоимости размещения, и их списании в случае невыкупа или возврата.
+type OrdersStatsSubsidyDTO struct {
+ OperationType OrdersStatsSubsidyOperationType `json:"operationType"`
+ Type OrdersStatsSubsidyType `json:"type"`
+ // Количество баллов, которые используются для уменьшения стоимости размещения, с точностью до двух знаков после запятой.
+ Amount float32 `json:"amount"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersStatsSubsidyDTO OrdersStatsSubsidyDTO
+
+// NewOrdersStatsSubsidyDTO instantiates a new OrdersStatsSubsidyDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersStatsSubsidyDTO(operationType OrdersStatsSubsidyOperationType, type_ OrdersStatsSubsidyType, amount float32) *OrdersStatsSubsidyDTO {
+ this := OrdersStatsSubsidyDTO{}
+ this.OperationType = operationType
+ this.Type = type_
+ this.Amount = amount
+ return &this
+}
+
+// NewOrdersStatsSubsidyDTOWithDefaults instantiates a new OrdersStatsSubsidyDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersStatsSubsidyDTOWithDefaults() *OrdersStatsSubsidyDTO {
+ this := OrdersStatsSubsidyDTO{}
+ return &this
+}
+
+// GetOperationType returns the OperationType field value
+func (o *OrdersStatsSubsidyDTO) GetOperationType() OrdersStatsSubsidyOperationType {
+ if o == nil {
+ var ret OrdersStatsSubsidyOperationType
+ return ret
+ }
+
+ return o.OperationType
+}
+
+// GetOperationTypeOk returns a tuple with the OperationType field value
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsSubsidyDTO) GetOperationTypeOk() (*OrdersStatsSubsidyOperationType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OperationType, true
+}
+
+// SetOperationType sets field value
+func (o *OrdersStatsSubsidyDTO) SetOperationType(v OrdersStatsSubsidyOperationType) {
+ o.OperationType = v
+}
+
+// GetType returns the Type field value
+func (o *OrdersStatsSubsidyDTO) GetType() OrdersStatsSubsidyType {
+ if o == nil {
+ var ret OrdersStatsSubsidyType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsSubsidyDTO) GetTypeOk() (*OrdersStatsSubsidyType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *OrdersStatsSubsidyDTO) SetType(v OrdersStatsSubsidyType) {
+ o.Type = v
+}
+
+// GetAmount returns the Amount field value
+func (o *OrdersStatsSubsidyDTO) GetAmount() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Amount
+}
+
+// GetAmountOk returns a tuple with the Amount field value
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsSubsidyDTO) GetAmountOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Amount, true
+}
+
+// SetAmount sets field value
+func (o *OrdersStatsSubsidyDTO) SetAmount(v float32) {
+ o.Amount = v
+}
+
+func (o OrdersStatsSubsidyDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersStatsSubsidyDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["operationType"] = o.OperationType
+ toSerialize["type"] = o.Type
+ toSerialize["amount"] = o.Amount
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersStatsSubsidyDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "operationType",
+ "type",
+ "amount",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrdersStatsSubsidyDTO := _OrdersStatsSubsidyDTO{}
+
+ err = json.Unmarshal(data, &varOrdersStatsSubsidyDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersStatsSubsidyDTO(varOrdersStatsSubsidyDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "operationType")
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "amount")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersStatsSubsidyDTO struct {
+ value *OrdersStatsSubsidyDTO
+ isSet bool
+}
+
+func (v NullableOrdersStatsSubsidyDTO) Get() *OrdersStatsSubsidyDTO {
+ return v.value
+}
+
+func (v *NullableOrdersStatsSubsidyDTO) Set(val *OrdersStatsSubsidyDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsSubsidyDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsSubsidyDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsSubsidyDTO(val *OrdersStatsSubsidyDTO) *NullableOrdersStatsSubsidyDTO {
+ return &NullableOrdersStatsSubsidyDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsSubsidyDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsSubsidyDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_subsidy_operation_type.go b/pkg/api/yandex/ymclient/model_orders_stats_subsidy_operation_type.go
new file mode 100644
index 0000000..967877e
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_subsidy_operation_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrdersStatsSubsidyOperationType Тип операции с баллами, которые используются для уменьшения стоимости размещения: * `ACCRUAL` — начисление баллов. * `DEDUCTION` — списание баллов.
+type OrdersStatsSubsidyOperationType string
+
+// List of OrdersStatsSubsidyOperationType
+const (
+ ORDERSSTATSSUBSIDYOPERATIONTYPE_ACCRUAL OrdersStatsSubsidyOperationType = "ACCRUAL"
+ ORDERSSTATSSUBSIDYOPERATIONTYPE_DEDUCTION OrdersStatsSubsidyOperationType = "DEDUCTION"
+)
+
+// All allowed values of OrdersStatsSubsidyOperationType enum
+var AllowedOrdersStatsSubsidyOperationTypeEnumValues = []OrdersStatsSubsidyOperationType{
+ "ACCRUAL",
+ "DEDUCTION",
+}
+
+func (v *OrdersStatsSubsidyOperationType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrdersStatsSubsidyOperationType(value)
+ for _, existing := range AllowedOrdersStatsSubsidyOperationTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrdersStatsSubsidyOperationType", value)
+}
+
+// NewOrdersStatsSubsidyOperationTypeFromValue returns a pointer to a valid OrdersStatsSubsidyOperationType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrdersStatsSubsidyOperationTypeFromValue(v string) (*OrdersStatsSubsidyOperationType, error) {
+ ev := OrdersStatsSubsidyOperationType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrdersStatsSubsidyOperationType: valid values are %v", v, AllowedOrdersStatsSubsidyOperationTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrdersStatsSubsidyOperationType) IsValid() bool {
+ for _, existing := range AllowedOrdersStatsSubsidyOperationTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrdersStatsSubsidyOperationType value
+func (v OrdersStatsSubsidyOperationType) Ptr() *OrdersStatsSubsidyOperationType {
+ return &v
+}
+
+type NullableOrdersStatsSubsidyOperationType struct {
+ value *OrdersStatsSubsidyOperationType
+ isSet bool
+}
+
+func (v NullableOrdersStatsSubsidyOperationType) Get() *OrdersStatsSubsidyOperationType {
+ return v.value
+}
+
+func (v *NullableOrdersStatsSubsidyOperationType) Set(val *OrdersStatsSubsidyOperationType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsSubsidyOperationType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsSubsidyOperationType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsSubsidyOperationType(val *OrdersStatsSubsidyOperationType) *NullableOrdersStatsSubsidyOperationType {
+ return &NullableOrdersStatsSubsidyOperationType{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsSubsidyOperationType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsSubsidyOperationType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_subsidy_type.go b/pkg/api/yandex/ymclient/model_orders_stats_subsidy_type.go
new file mode 100644
index 0000000..ad58a42
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_subsidy_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OrdersStatsSubsidyType Источник баллов, которые используются для уменьшения стоимости размещения: * `YANDEX_CASHBACK` — скидка по подписке Яндекс Плюс. * `SUBSIDY` — скидка Маркета (по акциям, промокодам, купонам и т. д.) * `DELIVERY` — скидка за доставку (:no-translate[DBS]).
+type OrdersStatsSubsidyType string
+
+// List of OrdersStatsSubsidyType
+const (
+ ORDERSSTATSSUBSIDYTYPE_YANDEX_CASHBACK OrdersStatsSubsidyType = "YANDEX_CASHBACK"
+ ORDERSSTATSSUBSIDYTYPE_SUBSIDY OrdersStatsSubsidyType = "SUBSIDY"
+ ORDERSSTATSSUBSIDYTYPE_DELIVERY OrdersStatsSubsidyType = "DELIVERY"
+)
+
+// All allowed values of OrdersStatsSubsidyType enum
+var AllowedOrdersStatsSubsidyTypeEnumValues = []OrdersStatsSubsidyType{
+ "YANDEX_CASHBACK",
+ "SUBSIDY",
+ "DELIVERY",
+}
+
+func (v *OrdersStatsSubsidyType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OrdersStatsSubsidyType(value)
+ for _, existing := range AllowedOrdersStatsSubsidyTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OrdersStatsSubsidyType", value)
+}
+
+// NewOrdersStatsSubsidyTypeFromValue returns a pointer to a valid OrdersStatsSubsidyType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOrdersStatsSubsidyTypeFromValue(v string) (*OrdersStatsSubsidyType, error) {
+ ev := OrdersStatsSubsidyType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OrdersStatsSubsidyType: valid values are %v", v, AllowedOrdersStatsSubsidyTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OrdersStatsSubsidyType) IsValid() bool {
+ for _, existing := range AllowedOrdersStatsSubsidyTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OrdersStatsSubsidyType value
+func (v OrdersStatsSubsidyType) Ptr() *OrdersStatsSubsidyType {
+ return &v
+}
+
+type NullableOrdersStatsSubsidyType struct {
+ value *OrdersStatsSubsidyType
+ isSet bool
+}
+
+func (v NullableOrdersStatsSubsidyType) Get() *OrdersStatsSubsidyType {
+ return v.value
+}
+
+func (v *NullableOrdersStatsSubsidyType) Set(val *OrdersStatsSubsidyType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsSubsidyType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsSubsidyType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsSubsidyType(val *OrdersStatsSubsidyType) *NullableOrdersStatsSubsidyType {
+ return &NullableOrdersStatsSubsidyType{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsSubsidyType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsSubsidyType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_orders_stats_warehouse_dto.go b/pkg/api/yandex/ymclient/model_orders_stats_warehouse_dto.go
new file mode 100644
index 0000000..20123f4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_orders_stats_warehouse_dto.go
@@ -0,0 +1,192 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OrdersStatsWarehouseDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrdersStatsWarehouseDTO{}
+
+// OrdersStatsWarehouseDTO Информация о складе, на котором хранится товар.
+type OrdersStatsWarehouseDTO struct {
+ // Идентификатор склада.
+ Id *int64 `json:"id,omitempty"`
+ // Название склада.
+ Name *string `json:"name,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OrdersStatsWarehouseDTO OrdersStatsWarehouseDTO
+
+// NewOrdersStatsWarehouseDTO instantiates a new OrdersStatsWarehouseDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrdersStatsWarehouseDTO() *OrdersStatsWarehouseDTO {
+ this := OrdersStatsWarehouseDTO{}
+ return &this
+}
+
+// NewOrdersStatsWarehouseDTOWithDefaults instantiates a new OrdersStatsWarehouseDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrdersStatsWarehouseDTOWithDefaults() *OrdersStatsWarehouseDTO {
+ this := OrdersStatsWarehouseDTO{}
+ return &this
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *OrdersStatsWarehouseDTO) GetId() int64 {
+ if o == nil || IsNil(o.Id) {
+ var ret int64
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsWarehouseDTO) GetIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *OrdersStatsWarehouseDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given int64 and assigns it to the Id field.
+func (o *OrdersStatsWarehouseDTO) SetId(v int64) {
+ o.Id = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *OrdersStatsWarehouseDTO) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrdersStatsWarehouseDTO) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *OrdersStatsWarehouseDTO) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *OrdersStatsWarehouseDTO) SetName(v string) {
+ o.Name = &v
+}
+
+func (o OrdersStatsWarehouseDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrdersStatsWarehouseDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OrdersStatsWarehouseDTO) UnmarshalJSON(data []byte) (err error) {
+ varOrdersStatsWarehouseDTO := _OrdersStatsWarehouseDTO{}
+
+ err = json.Unmarshal(data, &varOrdersStatsWarehouseDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrdersStatsWarehouseDTO(varOrdersStatsWarehouseDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "name")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOrdersStatsWarehouseDTO struct {
+ value *OrdersStatsWarehouseDTO
+ isSet bool
+}
+
+func (v NullableOrdersStatsWarehouseDTO) Get() *OrdersStatsWarehouseDTO {
+ return v.value
+}
+
+func (v *NullableOrdersStatsWarehouseDTO) Set(val *OrdersStatsWarehouseDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrdersStatsWarehouseDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrdersStatsWarehouseDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrdersStatsWarehouseDTO(val *OrdersStatsWarehouseDTO) *NullableOrdersStatsWarehouseDTO {
+ return &NullableOrdersStatsWarehouseDTO{value: val, isSet: true}
+}
+
+func (v NullableOrdersStatsWarehouseDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrdersStatsWarehouseDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_outlet_address_dto.go b/pkg/api/yandex/ymclient/model_outlet_address_dto.go
new file mode 100644
index 0000000..df062aa
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_outlet_address_dto.go
@@ -0,0 +1,475 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OutletAddressDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OutletAddressDTO{}
+
+// OutletAddressDTO Адрес точки продаж.
+type OutletAddressDTO struct {
+ // Идентификатор региона. Идентификатор можно получить c помощью запроса [GET regions](../../reference/regions/searchRegionsByName.md). {% note alert \"Типы регионов при создании и редактировании точек продаж\" %} Указывайте только регионы типов `TOWN` (город), `CITY` (крупный город) и `REPUBLIC_AREA` (район субъекта федерации). Тип региона указан в выходных параметрах `type` запросов [GET regions](../../reference/regions/searchRegionsByName.md) и [GET regions/{regionId}](../../reference/regions/searchRegionsById.md). {% endnote %}
+ RegionId int64 `json:"regionId"`
+ // Улица.
+ Street *string `json:"street,omitempty"`
+ // Номер дома.
+ Number *string `json:"number,omitempty"`
+ // Номер строения.
+ Building *string `json:"building,omitempty"`
+ // Номер владения.
+ Estate *string `json:"estate,omitempty"`
+ // Номер корпуса.
+ Block *string `json:"block,omitempty"`
+ // Дополнительная информация.
+ Additional *string `json:"additional,omitempty"`
+ // Порядковый номер километра дороги, на котором располагается точка продаж, если отсутствует улица.
+ Km *int32 `json:"km,omitempty"`
+ // {% note warning \"В ответах города и населенные пункты возвращаются в параметре `regionId`.\" %} {% endnote %}
+ // Deprecated
+ City *string `json:"city,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OutletAddressDTO OutletAddressDTO
+
+// NewOutletAddressDTO instantiates a new OutletAddressDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOutletAddressDTO(regionId int64) *OutletAddressDTO {
+ this := OutletAddressDTO{}
+ this.RegionId = regionId
+ return &this
+}
+
+// NewOutletAddressDTOWithDefaults instantiates a new OutletAddressDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOutletAddressDTOWithDefaults() *OutletAddressDTO {
+ this := OutletAddressDTO{}
+ return &this
+}
+
+// GetRegionId returns the RegionId field value
+func (o *OutletAddressDTO) GetRegionId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.RegionId
+}
+
+// GetRegionIdOk returns a tuple with the RegionId field value
+// and a boolean to check if the value has been set.
+func (o *OutletAddressDTO) GetRegionIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.RegionId, true
+}
+
+// SetRegionId sets field value
+func (o *OutletAddressDTO) SetRegionId(v int64) {
+ o.RegionId = v
+}
+
+// GetStreet returns the Street field value if set, zero value otherwise.
+func (o *OutletAddressDTO) GetStreet() string {
+ if o == nil || IsNil(o.Street) {
+ var ret string
+ return ret
+ }
+ return *o.Street
+}
+
+// GetStreetOk returns a tuple with the Street field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletAddressDTO) GetStreetOk() (*string, bool) {
+ if o == nil || IsNil(o.Street) {
+ return nil, false
+ }
+ return o.Street, true
+}
+
+// HasStreet returns a boolean if a field has been set.
+func (o *OutletAddressDTO) HasStreet() bool {
+ if o != nil && !IsNil(o.Street) {
+ return true
+ }
+
+ return false
+}
+
+// SetStreet gets a reference to the given string and assigns it to the Street field.
+func (o *OutletAddressDTO) SetStreet(v string) {
+ o.Street = &v
+}
+
+// GetNumber returns the Number field value if set, zero value otherwise.
+func (o *OutletAddressDTO) GetNumber() string {
+ if o == nil || IsNil(o.Number) {
+ var ret string
+ return ret
+ }
+ return *o.Number
+}
+
+// GetNumberOk returns a tuple with the Number field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletAddressDTO) GetNumberOk() (*string, bool) {
+ if o == nil || IsNil(o.Number) {
+ return nil, false
+ }
+ return o.Number, true
+}
+
+// HasNumber returns a boolean if a field has been set.
+func (o *OutletAddressDTO) HasNumber() bool {
+ if o != nil && !IsNil(o.Number) {
+ return true
+ }
+
+ return false
+}
+
+// SetNumber gets a reference to the given string and assigns it to the Number field.
+func (o *OutletAddressDTO) SetNumber(v string) {
+ o.Number = &v
+}
+
+// GetBuilding returns the Building field value if set, zero value otherwise.
+func (o *OutletAddressDTO) GetBuilding() string {
+ if o == nil || IsNil(o.Building) {
+ var ret string
+ return ret
+ }
+ return *o.Building
+}
+
+// GetBuildingOk returns a tuple with the Building field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletAddressDTO) GetBuildingOk() (*string, bool) {
+ if o == nil || IsNil(o.Building) {
+ return nil, false
+ }
+ return o.Building, true
+}
+
+// HasBuilding returns a boolean if a field has been set.
+func (o *OutletAddressDTO) HasBuilding() bool {
+ if o != nil && !IsNil(o.Building) {
+ return true
+ }
+
+ return false
+}
+
+// SetBuilding gets a reference to the given string and assigns it to the Building field.
+func (o *OutletAddressDTO) SetBuilding(v string) {
+ o.Building = &v
+}
+
+// GetEstate returns the Estate field value if set, zero value otherwise.
+func (o *OutletAddressDTO) GetEstate() string {
+ if o == nil || IsNil(o.Estate) {
+ var ret string
+ return ret
+ }
+ return *o.Estate
+}
+
+// GetEstateOk returns a tuple with the Estate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletAddressDTO) GetEstateOk() (*string, bool) {
+ if o == nil || IsNil(o.Estate) {
+ return nil, false
+ }
+ return o.Estate, true
+}
+
+// HasEstate returns a boolean if a field has been set.
+func (o *OutletAddressDTO) HasEstate() bool {
+ if o != nil && !IsNil(o.Estate) {
+ return true
+ }
+
+ return false
+}
+
+// SetEstate gets a reference to the given string and assigns it to the Estate field.
+func (o *OutletAddressDTO) SetEstate(v string) {
+ o.Estate = &v
+}
+
+// GetBlock returns the Block field value if set, zero value otherwise.
+func (o *OutletAddressDTO) GetBlock() string {
+ if o == nil || IsNil(o.Block) {
+ var ret string
+ return ret
+ }
+ return *o.Block
+}
+
+// GetBlockOk returns a tuple with the Block field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletAddressDTO) GetBlockOk() (*string, bool) {
+ if o == nil || IsNil(o.Block) {
+ return nil, false
+ }
+ return o.Block, true
+}
+
+// HasBlock returns a boolean if a field has been set.
+func (o *OutletAddressDTO) HasBlock() bool {
+ if o != nil && !IsNil(o.Block) {
+ return true
+ }
+
+ return false
+}
+
+// SetBlock gets a reference to the given string and assigns it to the Block field.
+func (o *OutletAddressDTO) SetBlock(v string) {
+ o.Block = &v
+}
+
+// GetAdditional returns the Additional field value if set, zero value otherwise.
+func (o *OutletAddressDTO) GetAdditional() string {
+ if o == nil || IsNil(o.Additional) {
+ var ret string
+ return ret
+ }
+ return *o.Additional
+}
+
+// GetAdditionalOk returns a tuple with the Additional field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletAddressDTO) GetAdditionalOk() (*string, bool) {
+ if o == nil || IsNil(o.Additional) {
+ return nil, false
+ }
+ return o.Additional, true
+}
+
+// HasAdditional returns a boolean if a field has been set.
+func (o *OutletAddressDTO) HasAdditional() bool {
+ if o != nil && !IsNil(o.Additional) {
+ return true
+ }
+
+ return false
+}
+
+// SetAdditional gets a reference to the given string and assigns it to the Additional field.
+func (o *OutletAddressDTO) SetAdditional(v string) {
+ o.Additional = &v
+}
+
+// GetKm returns the Km field value if set, zero value otherwise.
+func (o *OutletAddressDTO) GetKm() int32 {
+ if o == nil || IsNil(o.Km) {
+ var ret int32
+ return ret
+ }
+ return *o.Km
+}
+
+// GetKmOk returns a tuple with the Km field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletAddressDTO) GetKmOk() (*int32, bool) {
+ if o == nil || IsNil(o.Km) {
+ return nil, false
+ }
+ return o.Km, true
+}
+
+// HasKm returns a boolean if a field has been set.
+func (o *OutletAddressDTO) HasKm() bool {
+ if o != nil && !IsNil(o.Km) {
+ return true
+ }
+
+ return false
+}
+
+// SetKm gets a reference to the given int32 and assigns it to the Km field.
+func (o *OutletAddressDTO) SetKm(v int32) {
+ o.Km = &v
+}
+
+// GetCity returns the City field value if set, zero value otherwise.
+// Deprecated
+func (o *OutletAddressDTO) GetCity() string {
+ if o == nil || IsNil(o.City) {
+ var ret string
+ return ret
+ }
+ return *o.City
+}
+
+// GetCityOk returns a tuple with the City field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *OutletAddressDTO) GetCityOk() (*string, bool) {
+ if o == nil || IsNil(o.City) {
+ return nil, false
+ }
+ return o.City, true
+}
+
+// HasCity returns a boolean if a field has been set.
+func (o *OutletAddressDTO) HasCity() bool {
+ if o != nil && !IsNil(o.City) {
+ return true
+ }
+
+ return false
+}
+
+// SetCity gets a reference to the given string and assigns it to the City field.
+// Deprecated
+func (o *OutletAddressDTO) SetCity(v string) {
+ o.City = &v
+}
+
+func (o OutletAddressDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OutletAddressDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["regionId"] = o.RegionId
+ if !IsNil(o.Street) {
+ toSerialize["street"] = o.Street
+ }
+ if !IsNil(o.Number) {
+ toSerialize["number"] = o.Number
+ }
+ if !IsNil(o.Building) {
+ toSerialize["building"] = o.Building
+ }
+ if !IsNil(o.Estate) {
+ toSerialize["estate"] = o.Estate
+ }
+ if !IsNil(o.Block) {
+ toSerialize["block"] = o.Block
+ }
+ if !IsNil(o.Additional) {
+ toSerialize["additional"] = o.Additional
+ }
+ if !IsNil(o.Km) {
+ toSerialize["km"] = o.Km
+ }
+ if !IsNil(o.City) {
+ toSerialize["city"] = o.City
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OutletAddressDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "regionId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOutletAddressDTO := _OutletAddressDTO{}
+
+ err = json.Unmarshal(data, &varOutletAddressDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OutletAddressDTO(varOutletAddressDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "regionId")
+ delete(additionalProperties, "street")
+ delete(additionalProperties, "number")
+ delete(additionalProperties, "building")
+ delete(additionalProperties, "estate")
+ delete(additionalProperties, "block")
+ delete(additionalProperties, "additional")
+ delete(additionalProperties, "km")
+ delete(additionalProperties, "city")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOutletAddressDTO struct {
+ value *OutletAddressDTO
+ isSet bool
+}
+
+func (v NullableOutletAddressDTO) Get() *OutletAddressDTO {
+ return v.value
+}
+
+func (v *NullableOutletAddressDTO) Set(val *OutletAddressDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOutletAddressDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOutletAddressDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOutletAddressDTO(val *OutletAddressDTO) *NullableOutletAddressDTO {
+ return &NullableOutletAddressDTO{value: val, isSet: true}
+}
+
+func (v NullableOutletAddressDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOutletAddressDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_outlet_delivery_rule_dto.go b/pkg/api/yandex/ymclient/model_outlet_delivery_rule_dto.go
new file mode 100644
index 0000000..564f173
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_outlet_delivery_rule_dto.go
@@ -0,0 +1,344 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OutletDeliveryRuleDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OutletDeliveryRuleDTO{}
+
+// OutletDeliveryRuleDTO Информация об условиях доставки для данной точки продаж.
+type OutletDeliveryRuleDTO struct {
+ // Минимальный срок доставки товаров в точку продаж. Указан в рабочих днях. Минимальное значение: `0` — доставка в день заказа. Максимальное значение: `60`. Допустимые сроки доставки (разница между `minDeliveryDays` и `maxDeliveryDays`) зависят от региона. Для доставки по своему региону разница не должна превышать двух дней. Например, если `minDeliveryDays` равно 1, то для `maxDeliveryDays` допускаются значения от 1 до 3. Для доставки в другие регионы: * Если `minDeliveryDays` до 18 дней, разница не должна превышать четырех дней. Например, если `minDeliveryDays` равно 10, то для `maxDeliveryDays` допускаются значения от 10 до 14. * Если `minDeliveryDays` больше 18 дней, разница должна быть не больше чем в два раза. Например, если `minDeliveryDays` равно 21, то для `maxDeliveryDays` допускаются значения от 21 до 42. Обязательный параметр, если `type=\"DEPOT\"` или `type=\"MIXED\"`. Взаимоисключающий с параметром `unspecifiedDeliveryInterval`.
+ MinDeliveryDays *int32 `json:"minDeliveryDays,omitempty"`
+ // Максимальный срок доставки товаров в точку продаж. Указан в рабочих днях. Минимальное значение: `0` — доставка в день заказа. Максимальное значение: `60`. Допустимые сроки доставки (разница между `minDeliveryDays` и `maxDeliveryDays`) зависят от региона. Для доставки по своему региону разница не должна превышать двух дней. Например, если `minDeliveryDays` равно 1, то для `maxDeliveryDays` допускаются значения от 1 до 3. Для доставки в другие регионы: * Если `minDeliveryDays` до 18 дней, разница не должна превышать четырех дней. Например, если `minDeliveryDays` равно 10, то для `maxDeliveryDays` допускаются значения от 10 до 14. * Если `minDeliveryDays` больше 18 дней, разница должна быть не больше чем в два раза. Например, если `minDeliveryDays` равно 21, то для `maxDeliveryDays` допускаются значения от 21 до 42. Обязательный параметр, если `type=\"DEPOT\"` или `type=\"MIXED\"`. Взаимоисключающий с параметром `unspecifiedDeliveryInterval`.
+ MaxDeliveryDays *int32 `json:"maxDeliveryDays,omitempty"`
+ // Идентификатор службы доставки товаров в точку продаж. Информацию о службе доставки можно получить с помощью запроса [GET delivery/services](../../reference/orders/getDeliveryServices.md).
+ DeliveryServiceId *int64 `json:"deliveryServiceId,omitempty"`
+ // Час, до которого покупателю нужно сделать заказ, чтобы он был доставлен в точку продаж в сроки от `minDeliveryDays` до `maxDeliveryDays`. Если покупатель оформит заказ после указанного часа, он будет доставлен в сроки от `minDeliveryDays` + 1 рабочий день до `maxDeliveryDays` + 1 рабочий день. Значение по умолчанию: `24`.
+ OrderBefore *int32 `json:"orderBefore,omitempty"`
+ // Цена на товар, начиная с которой действует бесплатный самовывоз товара из точки продаж.
+ PriceFreePickup *float32 `json:"priceFreePickup,omitempty"`
+ // Признак доставки товаров в точку продаж на заказ. Признак выставлен, если: * точный срок доставки в точку продаж заранее неизвестен (например, если магазин собирает несколько заказов для отправки в точку или населенный пункт); * все товары изготавливаются или поставляются на заказ. Возможные значения: * `true` — товары доставляются в точку продаж на заказ. Параметр указывается только со значением `true`. Взаимоисключающий с параметрами `minDeliveryDays` и `maxDeliveryDays`.
+ UnspecifiedDeliveryInterval *bool `json:"unspecifiedDeliveryInterval,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OutletDeliveryRuleDTO OutletDeliveryRuleDTO
+
+// NewOutletDeliveryRuleDTO instantiates a new OutletDeliveryRuleDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOutletDeliveryRuleDTO() *OutletDeliveryRuleDTO {
+ this := OutletDeliveryRuleDTO{}
+ return &this
+}
+
+// NewOutletDeliveryRuleDTOWithDefaults instantiates a new OutletDeliveryRuleDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOutletDeliveryRuleDTOWithDefaults() *OutletDeliveryRuleDTO {
+ this := OutletDeliveryRuleDTO{}
+ return &this
+}
+
+// GetMinDeliveryDays returns the MinDeliveryDays field value if set, zero value otherwise.
+func (o *OutletDeliveryRuleDTO) GetMinDeliveryDays() int32 {
+ if o == nil || IsNil(o.MinDeliveryDays) {
+ var ret int32
+ return ret
+ }
+ return *o.MinDeliveryDays
+}
+
+// GetMinDeliveryDaysOk returns a tuple with the MinDeliveryDays field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletDeliveryRuleDTO) GetMinDeliveryDaysOk() (*int32, bool) {
+ if o == nil || IsNil(o.MinDeliveryDays) {
+ return nil, false
+ }
+ return o.MinDeliveryDays, true
+}
+
+// HasMinDeliveryDays returns a boolean if a field has been set.
+func (o *OutletDeliveryRuleDTO) HasMinDeliveryDays() bool {
+ if o != nil && !IsNil(o.MinDeliveryDays) {
+ return true
+ }
+
+ return false
+}
+
+// SetMinDeliveryDays gets a reference to the given int32 and assigns it to the MinDeliveryDays field.
+func (o *OutletDeliveryRuleDTO) SetMinDeliveryDays(v int32) {
+ o.MinDeliveryDays = &v
+}
+
+// GetMaxDeliveryDays returns the MaxDeliveryDays field value if set, zero value otherwise.
+func (o *OutletDeliveryRuleDTO) GetMaxDeliveryDays() int32 {
+ if o == nil || IsNil(o.MaxDeliveryDays) {
+ var ret int32
+ return ret
+ }
+ return *o.MaxDeliveryDays
+}
+
+// GetMaxDeliveryDaysOk returns a tuple with the MaxDeliveryDays field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletDeliveryRuleDTO) GetMaxDeliveryDaysOk() (*int32, bool) {
+ if o == nil || IsNil(o.MaxDeliveryDays) {
+ return nil, false
+ }
+ return o.MaxDeliveryDays, true
+}
+
+// HasMaxDeliveryDays returns a boolean if a field has been set.
+func (o *OutletDeliveryRuleDTO) HasMaxDeliveryDays() bool {
+ if o != nil && !IsNil(o.MaxDeliveryDays) {
+ return true
+ }
+
+ return false
+}
+
+// SetMaxDeliveryDays gets a reference to the given int32 and assigns it to the MaxDeliveryDays field.
+func (o *OutletDeliveryRuleDTO) SetMaxDeliveryDays(v int32) {
+ o.MaxDeliveryDays = &v
+}
+
+// GetDeliveryServiceId returns the DeliveryServiceId field value if set, zero value otherwise.
+func (o *OutletDeliveryRuleDTO) GetDeliveryServiceId() int64 {
+ if o == nil || IsNil(o.DeliveryServiceId) {
+ var ret int64
+ return ret
+ }
+ return *o.DeliveryServiceId
+}
+
+// GetDeliveryServiceIdOk returns a tuple with the DeliveryServiceId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletDeliveryRuleDTO) GetDeliveryServiceIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.DeliveryServiceId) {
+ return nil, false
+ }
+ return o.DeliveryServiceId, true
+}
+
+// HasDeliveryServiceId returns a boolean if a field has been set.
+func (o *OutletDeliveryRuleDTO) HasDeliveryServiceId() bool {
+ if o != nil && !IsNil(o.DeliveryServiceId) {
+ return true
+ }
+
+ return false
+}
+
+// SetDeliveryServiceId gets a reference to the given int64 and assigns it to the DeliveryServiceId field.
+func (o *OutletDeliveryRuleDTO) SetDeliveryServiceId(v int64) {
+ o.DeliveryServiceId = &v
+}
+
+// GetOrderBefore returns the OrderBefore field value if set, zero value otherwise.
+func (o *OutletDeliveryRuleDTO) GetOrderBefore() int32 {
+ if o == nil || IsNil(o.OrderBefore) {
+ var ret int32
+ return ret
+ }
+ return *o.OrderBefore
+}
+
+// GetOrderBeforeOk returns a tuple with the OrderBefore field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletDeliveryRuleDTO) GetOrderBeforeOk() (*int32, bool) {
+ if o == nil || IsNil(o.OrderBefore) {
+ return nil, false
+ }
+ return o.OrderBefore, true
+}
+
+// HasOrderBefore returns a boolean if a field has been set.
+func (o *OutletDeliveryRuleDTO) HasOrderBefore() bool {
+ if o != nil && !IsNil(o.OrderBefore) {
+ return true
+ }
+
+ return false
+}
+
+// SetOrderBefore gets a reference to the given int32 and assigns it to the OrderBefore field.
+func (o *OutletDeliveryRuleDTO) SetOrderBefore(v int32) {
+ o.OrderBefore = &v
+}
+
+// GetPriceFreePickup returns the PriceFreePickup field value if set, zero value otherwise.
+func (o *OutletDeliveryRuleDTO) GetPriceFreePickup() float32 {
+ if o == nil || IsNil(o.PriceFreePickup) {
+ var ret float32
+ return ret
+ }
+ return *o.PriceFreePickup
+}
+
+// GetPriceFreePickupOk returns a tuple with the PriceFreePickup field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletDeliveryRuleDTO) GetPriceFreePickupOk() (*float32, bool) {
+ if o == nil || IsNil(o.PriceFreePickup) {
+ return nil, false
+ }
+ return o.PriceFreePickup, true
+}
+
+// HasPriceFreePickup returns a boolean if a field has been set.
+func (o *OutletDeliveryRuleDTO) HasPriceFreePickup() bool {
+ if o != nil && !IsNil(o.PriceFreePickup) {
+ return true
+ }
+
+ return false
+}
+
+// SetPriceFreePickup gets a reference to the given float32 and assigns it to the PriceFreePickup field.
+func (o *OutletDeliveryRuleDTO) SetPriceFreePickup(v float32) {
+ o.PriceFreePickup = &v
+}
+
+// GetUnspecifiedDeliveryInterval returns the UnspecifiedDeliveryInterval field value if set, zero value otherwise.
+func (o *OutletDeliveryRuleDTO) GetUnspecifiedDeliveryInterval() bool {
+ if o == nil || IsNil(o.UnspecifiedDeliveryInterval) {
+ var ret bool
+ return ret
+ }
+ return *o.UnspecifiedDeliveryInterval
+}
+
+// GetUnspecifiedDeliveryIntervalOk returns a tuple with the UnspecifiedDeliveryInterval field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletDeliveryRuleDTO) GetUnspecifiedDeliveryIntervalOk() (*bool, bool) {
+ if o == nil || IsNil(o.UnspecifiedDeliveryInterval) {
+ return nil, false
+ }
+ return o.UnspecifiedDeliveryInterval, true
+}
+
+// HasUnspecifiedDeliveryInterval returns a boolean if a field has been set.
+func (o *OutletDeliveryRuleDTO) HasUnspecifiedDeliveryInterval() bool {
+ if o != nil && !IsNil(o.UnspecifiedDeliveryInterval) {
+ return true
+ }
+
+ return false
+}
+
+// SetUnspecifiedDeliveryInterval gets a reference to the given bool and assigns it to the UnspecifiedDeliveryInterval field.
+func (o *OutletDeliveryRuleDTO) SetUnspecifiedDeliveryInterval(v bool) {
+ o.UnspecifiedDeliveryInterval = &v
+}
+
+func (o OutletDeliveryRuleDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OutletDeliveryRuleDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.MinDeliveryDays) {
+ toSerialize["minDeliveryDays"] = o.MinDeliveryDays
+ }
+ if !IsNil(o.MaxDeliveryDays) {
+ toSerialize["maxDeliveryDays"] = o.MaxDeliveryDays
+ }
+ if !IsNil(o.DeliveryServiceId) {
+ toSerialize["deliveryServiceId"] = o.DeliveryServiceId
+ }
+ if !IsNil(o.OrderBefore) {
+ toSerialize["orderBefore"] = o.OrderBefore
+ }
+ if !IsNil(o.PriceFreePickup) {
+ toSerialize["priceFreePickup"] = o.PriceFreePickup
+ }
+ if !IsNil(o.UnspecifiedDeliveryInterval) {
+ toSerialize["unspecifiedDeliveryInterval"] = o.UnspecifiedDeliveryInterval
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OutletDeliveryRuleDTO) UnmarshalJSON(data []byte) (err error) {
+ varOutletDeliveryRuleDTO := _OutletDeliveryRuleDTO{}
+
+ err = json.Unmarshal(data, &varOutletDeliveryRuleDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OutletDeliveryRuleDTO(varOutletDeliveryRuleDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "minDeliveryDays")
+ delete(additionalProperties, "maxDeliveryDays")
+ delete(additionalProperties, "deliveryServiceId")
+ delete(additionalProperties, "orderBefore")
+ delete(additionalProperties, "priceFreePickup")
+ delete(additionalProperties, "unspecifiedDeliveryInterval")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOutletDeliveryRuleDTO struct {
+ value *OutletDeliveryRuleDTO
+ isSet bool
+}
+
+func (v NullableOutletDeliveryRuleDTO) Get() *OutletDeliveryRuleDTO {
+ return v.value
+}
+
+func (v *NullableOutletDeliveryRuleDTO) Set(val *OutletDeliveryRuleDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOutletDeliveryRuleDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOutletDeliveryRuleDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOutletDeliveryRuleDTO(val *OutletDeliveryRuleDTO) *NullableOutletDeliveryRuleDTO {
+ return &NullableOutletDeliveryRuleDTO{value: val, isSet: true}
+}
+
+func (v NullableOutletDeliveryRuleDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOutletDeliveryRuleDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_outlet_dto.go b/pkg/api/yandex/ymclient/model_outlet_dto.go
new file mode 100644
index 0000000..a21891f
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_outlet_dto.go
@@ -0,0 +1,512 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OutletDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OutletDTO{}
+
+// OutletDTO Информация о точке продаж.
+type OutletDTO struct {
+ // Название точки продаж.
+ Name string `json:"name"`
+ Type OutletType `json:"type"`
+ // Координаты точки продаж. Формат: долгота, широта. Разделители: запятая и / или пробел. Например, `20.4522144, 54.7104264`. Если параметр не передан, координаты будут определены по значениям параметров, вложенных в `address`.
+ Coords *string `json:"coords,omitempty"`
+ // Признак основной точки продаж. Возможные значения: * `false` — неосновная точка продаж. * `true` — основная точка продаж.
+ IsMain *bool `json:"isMain,omitempty"`
+ // Идентификатор точки продаж, присвоенный магазином.
+ ShopOutletCode *string `json:"shopOutletCode,omitempty"`
+ Visibility *OutletVisibilityType `json:"visibility,omitempty"`
+ Address OutletAddressDTO `json:"address"`
+ // Номера телефонов точки продаж. Передавайте в формате: `+7 (999) 999-99-99`.
+ Phones []string `json:"phones"`
+ WorkingSchedule OutletWorkingScheduleDTO `json:"workingSchedule"`
+ // Информация об условиях доставки для данной точки продаж. Обязательный параметр, если параметр `type=DEPOT` или `type=MIXED`.
+ DeliveryRules []OutletDeliveryRuleDTO `json:"deliveryRules,omitempty"`
+ // Срок хранения заказа в собственном пункте выдачи заказов. Считается в днях.
+ StoragePeriod *int64 `json:"storagePeriod,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OutletDTO OutletDTO
+
+// NewOutletDTO instantiates a new OutletDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOutletDTO(name string, type_ OutletType, address OutletAddressDTO, phones []string, workingSchedule OutletWorkingScheduleDTO) *OutletDTO {
+ this := OutletDTO{}
+ this.Name = name
+ this.Type = type_
+ this.Address = address
+ this.Phones = phones
+ this.WorkingSchedule = workingSchedule
+ return &this
+}
+
+// NewOutletDTOWithDefaults instantiates a new OutletDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOutletDTOWithDefaults() *OutletDTO {
+ this := OutletDTO{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *OutletDTO) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *OutletDTO) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *OutletDTO) SetName(v string) {
+ o.Name = v
+}
+
+// GetType returns the Type field value
+func (o *OutletDTO) GetType() OutletType {
+ if o == nil {
+ var ret OutletType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *OutletDTO) GetTypeOk() (*OutletType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *OutletDTO) SetType(v OutletType) {
+ o.Type = v
+}
+
+// GetCoords returns the Coords field value if set, zero value otherwise.
+func (o *OutletDTO) GetCoords() string {
+ if o == nil || IsNil(o.Coords) {
+ var ret string
+ return ret
+ }
+ return *o.Coords
+}
+
+// GetCoordsOk returns a tuple with the Coords field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletDTO) GetCoordsOk() (*string, bool) {
+ if o == nil || IsNil(o.Coords) {
+ return nil, false
+ }
+ return o.Coords, true
+}
+
+// HasCoords returns a boolean if a field has been set.
+func (o *OutletDTO) HasCoords() bool {
+ if o != nil && !IsNil(o.Coords) {
+ return true
+ }
+
+ return false
+}
+
+// SetCoords gets a reference to the given string and assigns it to the Coords field.
+func (o *OutletDTO) SetCoords(v string) {
+ o.Coords = &v
+}
+
+// GetIsMain returns the IsMain field value if set, zero value otherwise.
+func (o *OutletDTO) GetIsMain() bool {
+ if o == nil || IsNil(o.IsMain) {
+ var ret bool
+ return ret
+ }
+ return *o.IsMain
+}
+
+// GetIsMainOk returns a tuple with the IsMain field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletDTO) GetIsMainOk() (*bool, bool) {
+ if o == nil || IsNil(o.IsMain) {
+ return nil, false
+ }
+ return o.IsMain, true
+}
+
+// HasIsMain returns a boolean if a field has been set.
+func (o *OutletDTO) HasIsMain() bool {
+ if o != nil && !IsNil(o.IsMain) {
+ return true
+ }
+
+ return false
+}
+
+// SetIsMain gets a reference to the given bool and assigns it to the IsMain field.
+func (o *OutletDTO) SetIsMain(v bool) {
+ o.IsMain = &v
+}
+
+// GetShopOutletCode returns the ShopOutletCode field value if set, zero value otherwise.
+func (o *OutletDTO) GetShopOutletCode() string {
+ if o == nil || IsNil(o.ShopOutletCode) {
+ var ret string
+ return ret
+ }
+ return *o.ShopOutletCode
+}
+
+// GetShopOutletCodeOk returns a tuple with the ShopOutletCode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletDTO) GetShopOutletCodeOk() (*string, bool) {
+ if o == nil || IsNil(o.ShopOutletCode) {
+ return nil, false
+ }
+ return o.ShopOutletCode, true
+}
+
+// HasShopOutletCode returns a boolean if a field has been set.
+func (o *OutletDTO) HasShopOutletCode() bool {
+ if o != nil && !IsNil(o.ShopOutletCode) {
+ return true
+ }
+
+ return false
+}
+
+// SetShopOutletCode gets a reference to the given string and assigns it to the ShopOutletCode field.
+func (o *OutletDTO) SetShopOutletCode(v string) {
+ o.ShopOutletCode = &v
+}
+
+// GetVisibility returns the Visibility field value if set, zero value otherwise.
+func (o *OutletDTO) GetVisibility() OutletVisibilityType {
+ if o == nil || IsNil(o.Visibility) {
+ var ret OutletVisibilityType
+ return ret
+ }
+ return *o.Visibility
+}
+
+// GetVisibilityOk returns a tuple with the Visibility field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletDTO) GetVisibilityOk() (*OutletVisibilityType, bool) {
+ if o == nil || IsNil(o.Visibility) {
+ return nil, false
+ }
+ return o.Visibility, true
+}
+
+// HasVisibility returns a boolean if a field has been set.
+func (o *OutletDTO) HasVisibility() bool {
+ if o != nil && !IsNil(o.Visibility) {
+ return true
+ }
+
+ return false
+}
+
+// SetVisibility gets a reference to the given OutletVisibilityType and assigns it to the Visibility field.
+func (o *OutletDTO) SetVisibility(v OutletVisibilityType) {
+ o.Visibility = &v
+}
+
+// GetAddress returns the Address field value
+func (o *OutletDTO) GetAddress() OutletAddressDTO {
+ if o == nil {
+ var ret OutletAddressDTO
+ return ret
+ }
+
+ return o.Address
+}
+
+// GetAddressOk returns a tuple with the Address field value
+// and a boolean to check if the value has been set.
+func (o *OutletDTO) GetAddressOk() (*OutletAddressDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Address, true
+}
+
+// SetAddress sets field value
+func (o *OutletDTO) SetAddress(v OutletAddressDTO) {
+ o.Address = v
+}
+
+// GetPhones returns the Phones field value
+func (o *OutletDTO) GetPhones() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+
+ return o.Phones
+}
+
+// GetPhonesOk returns a tuple with the Phones field value
+// and a boolean to check if the value has been set.
+func (o *OutletDTO) GetPhonesOk() ([]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Phones, true
+}
+
+// SetPhones sets field value
+func (o *OutletDTO) SetPhones(v []string) {
+ o.Phones = v
+}
+
+// GetWorkingSchedule returns the WorkingSchedule field value
+func (o *OutletDTO) GetWorkingSchedule() OutletWorkingScheduleDTO {
+ if o == nil {
+ var ret OutletWorkingScheduleDTO
+ return ret
+ }
+
+ return o.WorkingSchedule
+}
+
+// GetWorkingScheduleOk returns a tuple with the WorkingSchedule field value
+// and a boolean to check if the value has been set.
+func (o *OutletDTO) GetWorkingScheduleOk() (*OutletWorkingScheduleDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.WorkingSchedule, true
+}
+
+// SetWorkingSchedule sets field value
+func (o *OutletDTO) SetWorkingSchedule(v OutletWorkingScheduleDTO) {
+ o.WorkingSchedule = v
+}
+
+// GetDeliveryRules returns the DeliveryRules field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *OutletDTO) GetDeliveryRules() []OutletDeliveryRuleDTO {
+ if o == nil {
+ var ret []OutletDeliveryRuleDTO
+ return ret
+ }
+ return o.DeliveryRules
+}
+
+// GetDeliveryRulesOk returns a tuple with the DeliveryRules field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *OutletDTO) GetDeliveryRulesOk() ([]OutletDeliveryRuleDTO, bool) {
+ if o == nil || IsNil(o.DeliveryRules) {
+ return nil, false
+ }
+ return o.DeliveryRules, true
+}
+
+// HasDeliveryRules returns a boolean if a field has been set.
+func (o *OutletDTO) HasDeliveryRules() bool {
+ if o != nil && !IsNil(o.DeliveryRules) {
+ return true
+ }
+
+ return false
+}
+
+// SetDeliveryRules gets a reference to the given []OutletDeliveryRuleDTO and assigns it to the DeliveryRules field.
+func (o *OutletDTO) SetDeliveryRules(v []OutletDeliveryRuleDTO) {
+ o.DeliveryRules = v
+}
+
+// GetStoragePeriod returns the StoragePeriod field value if set, zero value otherwise.
+func (o *OutletDTO) GetStoragePeriod() int64 {
+ if o == nil || IsNil(o.StoragePeriod) {
+ var ret int64
+ return ret
+ }
+ return *o.StoragePeriod
+}
+
+// GetStoragePeriodOk returns a tuple with the StoragePeriod field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletDTO) GetStoragePeriodOk() (*int64, bool) {
+ if o == nil || IsNil(o.StoragePeriod) {
+ return nil, false
+ }
+ return o.StoragePeriod, true
+}
+
+// HasStoragePeriod returns a boolean if a field has been set.
+func (o *OutletDTO) HasStoragePeriod() bool {
+ if o != nil && !IsNil(o.StoragePeriod) {
+ return true
+ }
+
+ return false
+}
+
+// SetStoragePeriod gets a reference to the given int64 and assigns it to the StoragePeriod field.
+func (o *OutletDTO) SetStoragePeriod(v int64) {
+ o.StoragePeriod = &v
+}
+
+func (o OutletDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OutletDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ toSerialize["type"] = o.Type
+ if !IsNil(o.Coords) {
+ toSerialize["coords"] = o.Coords
+ }
+ if !IsNil(o.IsMain) {
+ toSerialize["isMain"] = o.IsMain
+ }
+ if !IsNil(o.ShopOutletCode) {
+ toSerialize["shopOutletCode"] = o.ShopOutletCode
+ }
+ if !IsNil(o.Visibility) {
+ toSerialize["visibility"] = o.Visibility
+ }
+ toSerialize["address"] = o.Address
+ toSerialize["phones"] = o.Phones
+ toSerialize["workingSchedule"] = o.WorkingSchedule
+ if o.DeliveryRules != nil {
+ toSerialize["deliveryRules"] = o.DeliveryRules
+ }
+ if !IsNil(o.StoragePeriod) {
+ toSerialize["storagePeriod"] = o.StoragePeriod
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OutletDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ "type",
+ "address",
+ "phones",
+ "workingSchedule",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOutletDTO := _OutletDTO{}
+
+ err = json.Unmarshal(data, &varOutletDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OutletDTO(varOutletDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "coords")
+ delete(additionalProperties, "isMain")
+ delete(additionalProperties, "shopOutletCode")
+ delete(additionalProperties, "visibility")
+ delete(additionalProperties, "address")
+ delete(additionalProperties, "phones")
+ delete(additionalProperties, "workingSchedule")
+ delete(additionalProperties, "deliveryRules")
+ delete(additionalProperties, "storagePeriod")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOutletDTO struct {
+ value *OutletDTO
+ isSet bool
+}
+
+func (v NullableOutletDTO) Get() *OutletDTO {
+ return v.value
+}
+
+func (v *NullableOutletDTO) Set(val *OutletDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOutletDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOutletDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOutletDTO(val *OutletDTO) *NullableOutletDTO {
+ return &NullableOutletDTO{value: val, isSet: true}
+}
+
+func (v NullableOutletDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOutletDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_outlet_license_dto.go b/pkg/api/yandex/ymclient/model_outlet_license_dto.go
new file mode 100644
index 0000000..67419c9
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_outlet_license_dto.go
@@ -0,0 +1,325 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the OutletLicenseDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OutletLicenseDTO{}
+
+// OutletLicenseDTO Информация о лицензии.
+type OutletLicenseDTO struct {
+ // Идентификатор лицензии. Параметр указывается, только если нужно изменить информацию о существующей лицензии. Ее идентификатор можно узнать с помощью запроса [GET campaigns/{campaignId}/outlets/licenses](../../reference/outlets/getOutletLicenses.md). При передаче информации о новой лицензии указывать идентификатор не нужно. Идентификатор лицензии присваивается Маркетом. Не путайте его с номером, указанным на лицензии: он передается в параметре `number`.
+ Id *int64 `json:"id,omitempty"`
+ // Идентификатор точки продаж, для которой действительна лицензия.
+ OutletId int64 `json:"outletId"`
+ LicenseType LicenseType `json:"licenseType"`
+ // Номер лицензии.
+ Number string `json:"number"`
+ // Дата выдачи лицензии. Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC]. Нужно передать дату, указанную на лицензии, время `00:00:00` и часовой пояс, соответствующий региону точки продаж. Например, если лицензия для точки продаж в Москве выдана 13 ноября 2017 года, то параметр должен иметь значение `2017-11-13T00:00:00+03:00`. Не может быть позже даты окончания срока действия, указанной в параметре `dateOfExpiry`.
+ DateOfIssue time.Time `json:"dateOfIssue"`
+ // Дата окончания действия лицензии. Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC]. Нужно передать дату, указанную на лицензии, время `00:00:00` и часовой пояс, соответствующий региону точки продаж. Например, если действие лицензии для точки продаж в Москве заканчивается 20 ноября 2022 года, то параметр должен иметь значение `2022-11-20T00:00:00+03:00`. Не может быть раньше даты выдачи, указанной в параметре `dateOfIssue`.
+ DateOfExpiry time.Time `json:"dateOfExpiry"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OutletLicenseDTO OutletLicenseDTO
+
+// NewOutletLicenseDTO instantiates a new OutletLicenseDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOutletLicenseDTO(outletId int64, licenseType LicenseType, number string, dateOfIssue time.Time, dateOfExpiry time.Time) *OutletLicenseDTO {
+ this := OutletLicenseDTO{}
+ this.OutletId = outletId
+ this.LicenseType = licenseType
+ this.Number = number
+ this.DateOfIssue = dateOfIssue
+ this.DateOfExpiry = dateOfExpiry
+ return &this
+}
+
+// NewOutletLicenseDTOWithDefaults instantiates a new OutletLicenseDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOutletLicenseDTOWithDefaults() *OutletLicenseDTO {
+ this := OutletLicenseDTO{}
+ return &this
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *OutletLicenseDTO) GetId() int64 {
+ if o == nil || IsNil(o.Id) {
+ var ret int64
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletLicenseDTO) GetIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *OutletLicenseDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given int64 and assigns it to the Id field.
+func (o *OutletLicenseDTO) SetId(v int64) {
+ o.Id = &v
+}
+
+// GetOutletId returns the OutletId field value
+func (o *OutletLicenseDTO) GetOutletId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.OutletId
+}
+
+// GetOutletIdOk returns a tuple with the OutletId field value
+// and a boolean to check if the value has been set.
+func (o *OutletLicenseDTO) GetOutletIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OutletId, true
+}
+
+// SetOutletId sets field value
+func (o *OutletLicenseDTO) SetOutletId(v int64) {
+ o.OutletId = v
+}
+
+// GetLicenseType returns the LicenseType field value
+func (o *OutletLicenseDTO) GetLicenseType() LicenseType {
+ if o == nil {
+ var ret LicenseType
+ return ret
+ }
+
+ return o.LicenseType
+}
+
+// GetLicenseTypeOk returns a tuple with the LicenseType field value
+// and a boolean to check if the value has been set.
+func (o *OutletLicenseDTO) GetLicenseTypeOk() (*LicenseType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.LicenseType, true
+}
+
+// SetLicenseType sets field value
+func (o *OutletLicenseDTO) SetLicenseType(v LicenseType) {
+ o.LicenseType = v
+}
+
+// GetNumber returns the Number field value
+func (o *OutletLicenseDTO) GetNumber() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Number
+}
+
+// GetNumberOk returns a tuple with the Number field value
+// and a boolean to check if the value has been set.
+func (o *OutletLicenseDTO) GetNumberOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Number, true
+}
+
+// SetNumber sets field value
+func (o *OutletLicenseDTO) SetNumber(v string) {
+ o.Number = v
+}
+
+// GetDateOfIssue returns the DateOfIssue field value
+func (o *OutletLicenseDTO) GetDateOfIssue() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.DateOfIssue
+}
+
+// GetDateOfIssueOk returns a tuple with the DateOfIssue field value
+// and a boolean to check if the value has been set.
+func (o *OutletLicenseDTO) GetDateOfIssueOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DateOfIssue, true
+}
+
+// SetDateOfIssue sets field value
+func (o *OutletLicenseDTO) SetDateOfIssue(v time.Time) {
+ o.DateOfIssue = v
+}
+
+// GetDateOfExpiry returns the DateOfExpiry field value
+func (o *OutletLicenseDTO) GetDateOfExpiry() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.DateOfExpiry
+}
+
+// GetDateOfExpiryOk returns a tuple with the DateOfExpiry field value
+// and a boolean to check if the value has been set.
+func (o *OutletLicenseDTO) GetDateOfExpiryOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DateOfExpiry, true
+}
+
+// SetDateOfExpiry sets field value
+func (o *OutletLicenseDTO) SetDateOfExpiry(v time.Time) {
+ o.DateOfExpiry = v
+}
+
+func (o OutletLicenseDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OutletLicenseDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+ toSerialize["outletId"] = o.OutletId
+ toSerialize["licenseType"] = o.LicenseType
+ toSerialize["number"] = o.Number
+ toSerialize["dateOfIssue"] = o.DateOfIssue
+ toSerialize["dateOfExpiry"] = o.DateOfExpiry
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OutletLicenseDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "outletId",
+ "licenseType",
+ "number",
+ "dateOfIssue",
+ "dateOfExpiry",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOutletLicenseDTO := _OutletLicenseDTO{}
+
+ err = json.Unmarshal(data, &varOutletLicenseDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OutletLicenseDTO(varOutletLicenseDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "outletId")
+ delete(additionalProperties, "licenseType")
+ delete(additionalProperties, "number")
+ delete(additionalProperties, "dateOfIssue")
+ delete(additionalProperties, "dateOfExpiry")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOutletLicenseDTO struct {
+ value *OutletLicenseDTO
+ isSet bool
+}
+
+func (v NullableOutletLicenseDTO) Get() *OutletLicenseDTO {
+ return v.value
+}
+
+func (v *NullableOutletLicenseDTO) Set(val *OutletLicenseDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOutletLicenseDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOutletLicenseDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOutletLicenseDTO(val *OutletLicenseDTO) *NullableOutletLicenseDTO {
+ return &NullableOutletLicenseDTO{value: val, isSet: true}
+}
+
+func (v NullableOutletLicenseDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOutletLicenseDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_outlet_licenses_response_dto.go b/pkg/api/yandex/ymclient/model_outlet_licenses_response_dto.go
new file mode 100644
index 0000000..1156e8c
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_outlet_licenses_response_dto.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OutletLicensesResponseDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OutletLicensesResponseDTO{}
+
+// OutletLicensesResponseDTO Ответ на запрос информации о лицензиях для точек продаж.
+type OutletLicensesResponseDTO struct {
+ // Список лицензий.
+ Licenses []FullOutletLicenseDTO `json:"licenses"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OutletLicensesResponseDTO OutletLicensesResponseDTO
+
+// NewOutletLicensesResponseDTO instantiates a new OutletLicensesResponseDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOutletLicensesResponseDTO(licenses []FullOutletLicenseDTO) *OutletLicensesResponseDTO {
+ this := OutletLicensesResponseDTO{}
+ this.Licenses = licenses
+ return &this
+}
+
+// NewOutletLicensesResponseDTOWithDefaults instantiates a new OutletLicensesResponseDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOutletLicensesResponseDTOWithDefaults() *OutletLicensesResponseDTO {
+ this := OutletLicensesResponseDTO{}
+ return &this
+}
+
+// GetLicenses returns the Licenses field value
+func (o *OutletLicensesResponseDTO) GetLicenses() []FullOutletLicenseDTO {
+ if o == nil {
+ var ret []FullOutletLicenseDTO
+ return ret
+ }
+
+ return o.Licenses
+}
+
+// GetLicensesOk returns a tuple with the Licenses field value
+// and a boolean to check if the value has been set.
+func (o *OutletLicensesResponseDTO) GetLicensesOk() ([]FullOutletLicenseDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Licenses, true
+}
+
+// SetLicenses sets field value
+func (o *OutletLicensesResponseDTO) SetLicenses(v []FullOutletLicenseDTO) {
+ o.Licenses = v
+}
+
+func (o OutletLicensesResponseDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OutletLicensesResponseDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["licenses"] = o.Licenses
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OutletLicensesResponseDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "licenses",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOutletLicensesResponseDTO := _OutletLicensesResponseDTO{}
+
+ err = json.Unmarshal(data, &varOutletLicensesResponseDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OutletLicensesResponseDTO(varOutletLicensesResponseDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "licenses")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOutletLicensesResponseDTO struct {
+ value *OutletLicensesResponseDTO
+ isSet bool
+}
+
+func (v NullableOutletLicensesResponseDTO) Get() *OutletLicensesResponseDTO {
+ return v.value
+}
+
+func (v *NullableOutletLicensesResponseDTO) Set(val *OutletLicensesResponseDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOutletLicensesResponseDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOutletLicensesResponseDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOutletLicensesResponseDTO(val *OutletLicensesResponseDTO) *NullableOutletLicensesResponseDTO {
+ return &NullableOutletLicensesResponseDTO{value: val, isSet: true}
+}
+
+func (v NullableOutletLicensesResponseDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOutletLicensesResponseDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_outlet_response_dto.go b/pkg/api/yandex/ymclient/model_outlet_response_dto.go
new file mode 100644
index 0000000..0d05e8b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_outlet_response_dto.go
@@ -0,0 +1,154 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the OutletResponseDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OutletResponseDTO{}
+
+// OutletResponseDTO Результат выполнения запроса. Выводится, если `status=\"OK\"`.
+type OutletResponseDTO struct {
+ // Идентификатор точки продаж, присвоенный Маркетом.
+ Id *int64 `json:"id,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OutletResponseDTO OutletResponseDTO
+
+// NewOutletResponseDTO instantiates a new OutletResponseDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOutletResponseDTO() *OutletResponseDTO {
+ this := OutletResponseDTO{}
+ return &this
+}
+
+// NewOutletResponseDTOWithDefaults instantiates a new OutletResponseDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOutletResponseDTOWithDefaults() *OutletResponseDTO {
+ this := OutletResponseDTO{}
+ return &this
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *OutletResponseDTO) GetId() int64 {
+ if o == nil || IsNil(o.Id) {
+ var ret int64
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletResponseDTO) GetIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *OutletResponseDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given int64 and assigns it to the Id field.
+func (o *OutletResponseDTO) SetId(v int64) {
+ o.Id = &v
+}
+
+func (o OutletResponseDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OutletResponseDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OutletResponseDTO) UnmarshalJSON(data []byte) (err error) {
+ varOutletResponseDTO := _OutletResponseDTO{}
+
+ err = json.Unmarshal(data, &varOutletResponseDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OutletResponseDTO(varOutletResponseDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOutletResponseDTO struct {
+ value *OutletResponseDTO
+ isSet bool
+}
+
+func (v NullableOutletResponseDTO) Get() *OutletResponseDTO {
+ return v.value
+}
+
+func (v *NullableOutletResponseDTO) Set(val *OutletResponseDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOutletResponseDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOutletResponseDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOutletResponseDTO(val *OutletResponseDTO) *NullableOutletResponseDTO {
+ return &NullableOutletResponseDTO{value: val, isSet: true}
+}
+
+func (v NullableOutletResponseDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOutletResponseDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_outlet_status_type.go b/pkg/api/yandex/ymclient/model_outlet_status_type.go
new file mode 100644
index 0000000..efa6500
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_outlet_status_type.go
@@ -0,0 +1,116 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OutletStatusType Статус точки продаж. Возможные значения: * `AT_MODERATION` — проверяется. * `FAILED` — не прошла проверку и отклонена модератором. * `MODERATED` — проверена и одобрена. * `NONMODERATED` — новая точка, нуждается в проверке. * `UNKNOWN` — статус не указан. При определении статуса произошла ошибка.
+type OutletStatusType string
+
+// List of OutletStatusType
+const (
+ OUTLETSTATUSTYPE_AT_MODERATION OutletStatusType = "AT_MODERATION"
+ OUTLETSTATUSTYPE_FAILED OutletStatusType = "FAILED"
+ OUTLETSTATUSTYPE_MODERATED OutletStatusType = "MODERATED"
+ OUTLETSTATUSTYPE_NONMODERATED OutletStatusType = "NONMODERATED"
+ OUTLETSTATUSTYPE_UNKNOWN OutletStatusType = "UNKNOWN"
+)
+
+// All allowed values of OutletStatusType enum
+var AllowedOutletStatusTypeEnumValues = []OutletStatusType{
+ "AT_MODERATION",
+ "FAILED",
+ "MODERATED",
+ "NONMODERATED",
+ "UNKNOWN",
+}
+
+func (v *OutletStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OutletStatusType(value)
+ for _, existing := range AllowedOutletStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OutletStatusType", value)
+}
+
+// NewOutletStatusTypeFromValue returns a pointer to a valid OutletStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOutletStatusTypeFromValue(v string) (*OutletStatusType, error) {
+ ev := OutletStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OutletStatusType: valid values are %v", v, AllowedOutletStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OutletStatusType) IsValid() bool {
+ for _, existing := range AllowedOutletStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OutletStatusType value
+func (v OutletStatusType) Ptr() *OutletStatusType {
+ return &v
+}
+
+type NullableOutletStatusType struct {
+ value *OutletStatusType
+ isSet bool
+}
+
+func (v NullableOutletStatusType) Get() *OutletStatusType {
+ return v.value
+}
+
+func (v *NullableOutletStatusType) Set(val *OutletStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOutletStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOutletStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOutletStatusType(val *OutletStatusType) *NullableOutletStatusType {
+ return &NullableOutletStatusType{value: val, isSet: true}
+}
+
+func (v NullableOutletStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOutletStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_outlet_type.go b/pkg/api/yandex/ymclient/model_outlet_type.go
new file mode 100644
index 0000000..ea27f00
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_outlet_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OutletType Тип точки продаж. Возможные значения: * `DEPOT` — пункт выдачи заказов. * `MIXED` — смешанный тип точки продаж (торговый зал и пункт выдачи заказов). * `RETAIL` — розничная точка продаж (торговый зал). * `NOT_DEFINED` — неизвестный тип точки продажи. При определении типа произошла ошибка.
+type OutletType string
+
+// List of OutletType
+const (
+ OUTLETTYPE_DEPOT OutletType = "DEPOT"
+ OUTLETTYPE_MIXED OutletType = "MIXED"
+ OUTLETTYPE_RETAIL OutletType = "RETAIL"
+ OUTLETTYPE_NOT_DEFINED OutletType = "NOT_DEFINED"
+)
+
+// All allowed values of OutletType enum
+var AllowedOutletTypeEnumValues = []OutletType{
+ "DEPOT",
+ "MIXED",
+ "RETAIL",
+ "NOT_DEFINED",
+}
+
+func (v *OutletType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OutletType(value)
+ for _, existing := range AllowedOutletTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OutletType", value)
+}
+
+// NewOutletTypeFromValue returns a pointer to a valid OutletType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOutletTypeFromValue(v string) (*OutletType, error) {
+ ev := OutletType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OutletType: valid values are %v", v, AllowedOutletTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OutletType) IsValid() bool {
+ for _, existing := range AllowedOutletTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OutletType value
+func (v OutletType) Ptr() *OutletType {
+ return &v
+}
+
+type NullableOutletType struct {
+ value *OutletType
+ isSet bool
+}
+
+func (v NullableOutletType) Get() *OutletType {
+ return v.value
+}
+
+func (v *NullableOutletType) Set(val *OutletType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOutletType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOutletType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOutletType(val *OutletType) *NullableOutletType {
+ return &NullableOutletType{value: val, isSet: true}
+}
+
+func (v NullableOutletType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOutletType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_outlet_visibility_type.go b/pkg/api/yandex/ymclient/model_outlet_visibility_type.go
new file mode 100644
index 0000000..a5fad96
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_outlet_visibility_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// OutletVisibilityType Состояние точки продаж. Возможные значения: * `HIDDEN` — точка продаж выключена. * `VISIBLE` — точка продаж включена. * `UNKNOWN` — неизвестное состояние точки продажи. При определении состояния произошла ошибка.
+type OutletVisibilityType string
+
+// List of OutletVisibilityType
+const (
+ OUTLETVISIBILITYTYPE_HIDDEN OutletVisibilityType = "HIDDEN"
+ OUTLETVISIBILITYTYPE_VISIBLE OutletVisibilityType = "VISIBLE"
+ OUTLETVISIBILITYTYPE_UNKNOWN OutletVisibilityType = "UNKNOWN"
+)
+
+// All allowed values of OutletVisibilityType enum
+var AllowedOutletVisibilityTypeEnumValues = []OutletVisibilityType{
+ "HIDDEN",
+ "VISIBLE",
+ "UNKNOWN",
+}
+
+func (v *OutletVisibilityType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := OutletVisibilityType(value)
+ for _, existing := range AllowedOutletVisibilityTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid OutletVisibilityType", value)
+}
+
+// NewOutletVisibilityTypeFromValue returns a pointer to a valid OutletVisibilityType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewOutletVisibilityTypeFromValue(v string) (*OutletVisibilityType, error) {
+ ev := OutletVisibilityType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for OutletVisibilityType: valid values are %v", v, AllowedOutletVisibilityTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v OutletVisibilityType) IsValid() bool {
+ for _, existing := range AllowedOutletVisibilityTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to OutletVisibilityType value
+func (v OutletVisibilityType) Ptr() *OutletVisibilityType {
+ return &v
+}
+
+type NullableOutletVisibilityType struct {
+ value *OutletVisibilityType
+ isSet bool
+}
+
+func (v NullableOutletVisibilityType) Get() *OutletVisibilityType {
+ return v.value
+}
+
+func (v *NullableOutletVisibilityType) Set(val *OutletVisibilityType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOutletVisibilityType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOutletVisibilityType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOutletVisibilityType(val *OutletVisibilityType) *NullableOutletVisibilityType {
+ return &NullableOutletVisibilityType{value: val, isSet: true}
+}
+
+func (v NullableOutletVisibilityType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOutletVisibilityType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_outlet_working_schedule_dto.go b/pkg/api/yandex/ymclient/model_outlet_working_schedule_dto.go
new file mode 100644
index 0000000..bd00b98
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_outlet_working_schedule_dto.go
@@ -0,0 +1,205 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OutletWorkingScheduleDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OutletWorkingScheduleDTO{}
+
+// OutletWorkingScheduleDTO Список режимов работы точки продаж.
+type OutletWorkingScheduleDTO struct {
+ // Признак, работает ли точка продаж в дни государственных праздников. Возможные значения: * `false` — точка продаж не работает в дни государственных праздников. * `true` — точка продаж работает в дни государственных праздников.
+ WorkInHoliday *bool `json:"workInHoliday,omitempty"`
+ // Список расписаний работы точки продаж.
+ ScheduleItems []OutletWorkingScheduleItemDTO `json:"scheduleItems"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OutletWorkingScheduleDTO OutletWorkingScheduleDTO
+
+// NewOutletWorkingScheduleDTO instantiates a new OutletWorkingScheduleDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOutletWorkingScheduleDTO(scheduleItems []OutletWorkingScheduleItemDTO) *OutletWorkingScheduleDTO {
+ this := OutletWorkingScheduleDTO{}
+ this.ScheduleItems = scheduleItems
+ return &this
+}
+
+// NewOutletWorkingScheduleDTOWithDefaults instantiates a new OutletWorkingScheduleDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOutletWorkingScheduleDTOWithDefaults() *OutletWorkingScheduleDTO {
+ this := OutletWorkingScheduleDTO{}
+ return &this
+}
+
+// GetWorkInHoliday returns the WorkInHoliday field value if set, zero value otherwise.
+func (o *OutletWorkingScheduleDTO) GetWorkInHoliday() bool {
+ if o == nil || IsNil(o.WorkInHoliday) {
+ var ret bool
+ return ret
+ }
+ return *o.WorkInHoliday
+}
+
+// GetWorkInHolidayOk returns a tuple with the WorkInHoliday field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OutletWorkingScheduleDTO) GetWorkInHolidayOk() (*bool, bool) {
+ if o == nil || IsNil(o.WorkInHoliday) {
+ return nil, false
+ }
+ return o.WorkInHoliday, true
+}
+
+// HasWorkInHoliday returns a boolean if a field has been set.
+func (o *OutletWorkingScheduleDTO) HasWorkInHoliday() bool {
+ if o != nil && !IsNil(o.WorkInHoliday) {
+ return true
+ }
+
+ return false
+}
+
+// SetWorkInHoliday gets a reference to the given bool and assigns it to the WorkInHoliday field.
+func (o *OutletWorkingScheduleDTO) SetWorkInHoliday(v bool) {
+ o.WorkInHoliday = &v
+}
+
+// GetScheduleItems returns the ScheduleItems field value
+func (o *OutletWorkingScheduleDTO) GetScheduleItems() []OutletWorkingScheduleItemDTO {
+ if o == nil {
+ var ret []OutletWorkingScheduleItemDTO
+ return ret
+ }
+
+ return o.ScheduleItems
+}
+
+// GetScheduleItemsOk returns a tuple with the ScheduleItems field value
+// and a boolean to check if the value has been set.
+func (o *OutletWorkingScheduleDTO) GetScheduleItemsOk() ([]OutletWorkingScheduleItemDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ScheduleItems, true
+}
+
+// SetScheduleItems sets field value
+func (o *OutletWorkingScheduleDTO) SetScheduleItems(v []OutletWorkingScheduleItemDTO) {
+ o.ScheduleItems = v
+}
+
+func (o OutletWorkingScheduleDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OutletWorkingScheduleDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.WorkInHoliday) {
+ toSerialize["workInHoliday"] = o.WorkInHoliday
+ }
+ toSerialize["scheduleItems"] = o.ScheduleItems
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OutletWorkingScheduleDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "scheduleItems",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOutletWorkingScheduleDTO := _OutletWorkingScheduleDTO{}
+
+ err = json.Unmarshal(data, &varOutletWorkingScheduleDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OutletWorkingScheduleDTO(varOutletWorkingScheduleDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "workInHoliday")
+ delete(additionalProperties, "scheduleItems")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOutletWorkingScheduleDTO struct {
+ value *OutletWorkingScheduleDTO
+ isSet bool
+}
+
+func (v NullableOutletWorkingScheduleDTO) Get() *OutletWorkingScheduleDTO {
+ return v.value
+}
+
+func (v *NullableOutletWorkingScheduleDTO) Set(val *OutletWorkingScheduleDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOutletWorkingScheduleDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOutletWorkingScheduleDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOutletWorkingScheduleDTO(val *OutletWorkingScheduleDTO) *NullableOutletWorkingScheduleDTO {
+ return &NullableOutletWorkingScheduleDTO{value: val, isSet: true}
+}
+
+func (v NullableOutletWorkingScheduleDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOutletWorkingScheduleDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_outlet_working_schedule_item_dto.go b/pkg/api/yandex/ymclient/model_outlet_working_schedule_item_dto.go
new file mode 100644
index 0000000..7c6dc43
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_outlet_working_schedule_item_dto.go
@@ -0,0 +1,255 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the OutletWorkingScheduleItemDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OutletWorkingScheduleItemDTO{}
+
+// OutletWorkingScheduleItemDTO Расписание работы точки продаж.
+type OutletWorkingScheduleItemDTO struct {
+ StartDay DayOfWeekType `json:"startDay"`
+ EndDay DayOfWeekType `json:"endDay"`
+ // Точка продаж работает c указанного часа. Формат: `ЧЧ:ММ`.
+ StartTime string `json:"startTime" validate:"regexp=^([0-1][0-9]|2[0-3]):[0-5][0-9]$"`
+ // Точка продаж работает до указанного часа. Формат: `ЧЧ:ММ`.
+ EndTime string `json:"endTime" validate:"regexp=^([0-1][0-9]|2[0-3]):[0-5][0-9]$"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _OutletWorkingScheduleItemDTO OutletWorkingScheduleItemDTO
+
+// NewOutletWorkingScheduleItemDTO instantiates a new OutletWorkingScheduleItemDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOutletWorkingScheduleItemDTO(startDay DayOfWeekType, endDay DayOfWeekType, startTime string, endTime string) *OutletWorkingScheduleItemDTO {
+ this := OutletWorkingScheduleItemDTO{}
+ this.StartDay = startDay
+ this.EndDay = endDay
+ this.StartTime = startTime
+ this.EndTime = endTime
+ return &this
+}
+
+// NewOutletWorkingScheduleItemDTOWithDefaults instantiates a new OutletWorkingScheduleItemDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOutletWorkingScheduleItemDTOWithDefaults() *OutletWorkingScheduleItemDTO {
+ this := OutletWorkingScheduleItemDTO{}
+ return &this
+}
+
+// GetStartDay returns the StartDay field value
+func (o *OutletWorkingScheduleItemDTO) GetStartDay() DayOfWeekType {
+ if o == nil {
+ var ret DayOfWeekType
+ return ret
+ }
+
+ return o.StartDay
+}
+
+// GetStartDayOk returns a tuple with the StartDay field value
+// and a boolean to check if the value has been set.
+func (o *OutletWorkingScheduleItemDTO) GetStartDayOk() (*DayOfWeekType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.StartDay, true
+}
+
+// SetStartDay sets field value
+func (o *OutletWorkingScheduleItemDTO) SetStartDay(v DayOfWeekType) {
+ o.StartDay = v
+}
+
+// GetEndDay returns the EndDay field value
+func (o *OutletWorkingScheduleItemDTO) GetEndDay() DayOfWeekType {
+ if o == nil {
+ var ret DayOfWeekType
+ return ret
+ }
+
+ return o.EndDay
+}
+
+// GetEndDayOk returns a tuple with the EndDay field value
+// and a boolean to check if the value has been set.
+func (o *OutletWorkingScheduleItemDTO) GetEndDayOk() (*DayOfWeekType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.EndDay, true
+}
+
+// SetEndDay sets field value
+func (o *OutletWorkingScheduleItemDTO) SetEndDay(v DayOfWeekType) {
+ o.EndDay = v
+}
+
+// GetStartTime returns the StartTime field value
+func (o *OutletWorkingScheduleItemDTO) GetStartTime() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.StartTime
+}
+
+// GetStartTimeOk returns a tuple with the StartTime field value
+// and a boolean to check if the value has been set.
+func (o *OutletWorkingScheduleItemDTO) GetStartTimeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.StartTime, true
+}
+
+// SetStartTime sets field value
+func (o *OutletWorkingScheduleItemDTO) SetStartTime(v string) {
+ o.StartTime = v
+}
+
+// GetEndTime returns the EndTime field value
+func (o *OutletWorkingScheduleItemDTO) GetEndTime() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.EndTime
+}
+
+// GetEndTimeOk returns a tuple with the EndTime field value
+// and a boolean to check if the value has been set.
+func (o *OutletWorkingScheduleItemDTO) GetEndTimeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.EndTime, true
+}
+
+// SetEndTime sets field value
+func (o *OutletWorkingScheduleItemDTO) SetEndTime(v string) {
+ o.EndTime = v
+}
+
+func (o OutletWorkingScheduleItemDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OutletWorkingScheduleItemDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["startDay"] = o.StartDay
+ toSerialize["endDay"] = o.EndDay
+ toSerialize["startTime"] = o.StartTime
+ toSerialize["endTime"] = o.EndTime
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *OutletWorkingScheduleItemDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "startDay",
+ "endDay",
+ "startTime",
+ "endTime",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOutletWorkingScheduleItemDTO := _OutletWorkingScheduleItemDTO{}
+
+ err = json.Unmarshal(data, &varOutletWorkingScheduleItemDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OutletWorkingScheduleItemDTO(varOutletWorkingScheduleItemDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "startDay")
+ delete(additionalProperties, "endDay")
+ delete(additionalProperties, "startTime")
+ delete(additionalProperties, "endTime")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableOutletWorkingScheduleItemDTO struct {
+ value *OutletWorkingScheduleItemDTO
+ isSet bool
+}
+
+func (v NullableOutletWorkingScheduleItemDTO) Get() *OutletWorkingScheduleItemDTO {
+ return v.value
+}
+
+func (v *NullableOutletWorkingScheduleItemDTO) Set(val *OutletWorkingScheduleItemDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOutletWorkingScheduleItemDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOutletWorkingScheduleItemDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOutletWorkingScheduleItemDTO(val *OutletWorkingScheduleItemDTO) *NullableOutletWorkingScheduleItemDTO {
+ return &NullableOutletWorkingScheduleItemDTO{value: val, isSet: true}
+}
+
+func (v NullableOutletWorkingScheduleItemDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOutletWorkingScheduleItemDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_page_format_type.go b/pkg/api/yandex/ymclient/model_page_format_type.go
new file mode 100644
index 0000000..f217870
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_page_format_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PageFormatType Размещение ярлыков на странице PDF-файла: * `A9_HORIZONTALLY` — ярлык размером 58 × 40 мм без полей, близок к формату :no-translate[A9]. {% cut \"Пример ярлыка для продавцов Маркета\" %} ![Изображение горизонтального ярлыка формата :no-translate[A9] для продавцов Маркета](../../_images/labels/label-A9-horizontally.png) {% endcut %} {% cut \"Пример ярлыка для продавцов Market Yandex Go\" %}  {% endcut %} * `A9` — ярлык размером 40 × 58 мм без полей, близок к формату A9. {% cut \"Пример ярлыка для продавцов Маркета\" %} ![Изображение вертикального ярлыка формата :no-translate[A9] для продавцов Маркета](../../_images/labels/label-A9.png) {% endcut %} {% cut \"Пример ярлыка для продавцов Market Yandex Go\" %} ![Изображение вертикального ярлыка формата :no-translate[A9] для продавцов Market Yandex Go](../../_images/labels/label-A9-uz.png) {% endcut %} * `A7` — ярлык размером 75 × 120 мм (80,4 × 125,6 мм с учетом полей), близок к формату :no-translate[A7]. {% cut \"Пример ярлыка для продавцов Маркета\" %}  {% endcut %} {% cut \"Пример ярлыка для продавцов Market Yandex Go\" %} ![Изображение ярлыка формата :no-translate[A7] для продавцов Market Yandex Go](../../_images/labels/label-A7-uz.png) {% endcut %} * `A4` — на листе A4 располагается ярлык того формата, который выбран в кабинете продавца на Маркете — перейдите на страницу **Заказы** → **Заказы и отгрузки** → на вкладке нужной модели работы нажмите кнопку **Формат ярлыков**.
+type PageFormatType string
+
+// List of PageFormatType
+const (
+ PAGEFORMATTYPE_A9_HORIZONTALLY PageFormatType = "A9_HORIZONTALLY"
+ PAGEFORMATTYPE_A9 PageFormatType = "A9"
+ PAGEFORMATTYPE_A7 PageFormatType = "A7"
+ PAGEFORMATTYPE_A4 PageFormatType = "A4"
+)
+
+// All allowed values of PageFormatType enum
+var AllowedPageFormatTypeEnumValues = []PageFormatType{
+ "A9_HORIZONTALLY",
+ "A9",
+ "A7",
+ "A4",
+}
+
+func (v *PageFormatType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PageFormatType(value)
+ for _, existing := range AllowedPageFormatTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PageFormatType", value)
+}
+
+// NewPageFormatTypeFromValue returns a pointer to a valid PageFormatType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPageFormatTypeFromValue(v string) (*PageFormatType, error) {
+ ev := PageFormatType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PageFormatType: valid values are %v", v, AllowedPageFormatTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PageFormatType) IsValid() bool {
+ for _, existing := range AllowedPageFormatTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PageFormatType value
+func (v PageFormatType) Ptr() *PageFormatType {
+ return &v
+}
+
+type NullablePageFormatType struct {
+ value *PageFormatType
+ isSet bool
+}
+
+func (v NullablePageFormatType) Get() *PageFormatType {
+ return v.value
+}
+
+func (v *NullablePageFormatType) Set(val *PageFormatType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePageFormatType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePageFormatType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePageFormatType(val *PageFormatType) *NullablePageFormatType {
+ return &NullablePageFormatType{value: val, isSet: true}
+}
+
+func (v NullablePageFormatType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePageFormatType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_paged_returns_dto.go b/pkg/api/yandex/ymclient/model_paged_returns_dto.go
new file mode 100644
index 0000000..0996202
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_paged_returns_dto.go
@@ -0,0 +1,204 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PagedReturnsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PagedReturnsDTO{}
+
+// PagedReturnsDTO Невыкупы или возвраты.
+type PagedReturnsDTO struct {
+ Paging *ForwardScrollingPagerDTO `json:"paging,omitempty"`
+ // Список невыкупов или возвратов.
+ Returns []ReturnDTO `json:"returns"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PagedReturnsDTO PagedReturnsDTO
+
+// NewPagedReturnsDTO instantiates a new PagedReturnsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPagedReturnsDTO(returns []ReturnDTO) *PagedReturnsDTO {
+ this := PagedReturnsDTO{}
+ this.Returns = returns
+ return &this
+}
+
+// NewPagedReturnsDTOWithDefaults instantiates a new PagedReturnsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPagedReturnsDTOWithDefaults() *PagedReturnsDTO {
+ this := PagedReturnsDTO{}
+ return &this
+}
+
+// GetPaging returns the Paging field value if set, zero value otherwise.
+func (o *PagedReturnsDTO) GetPaging() ForwardScrollingPagerDTO {
+ if o == nil || IsNil(o.Paging) {
+ var ret ForwardScrollingPagerDTO
+ return ret
+ }
+ return *o.Paging
+}
+
+// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PagedReturnsDTO) GetPagingOk() (*ForwardScrollingPagerDTO, bool) {
+ if o == nil || IsNil(o.Paging) {
+ return nil, false
+ }
+ return o.Paging, true
+}
+
+// HasPaging returns a boolean if a field has been set.
+func (o *PagedReturnsDTO) HasPaging() bool {
+ if o != nil && !IsNil(o.Paging) {
+ return true
+ }
+
+ return false
+}
+
+// SetPaging gets a reference to the given ForwardScrollingPagerDTO and assigns it to the Paging field.
+func (o *PagedReturnsDTO) SetPaging(v ForwardScrollingPagerDTO) {
+ o.Paging = &v
+}
+
+// GetReturns returns the Returns field value
+func (o *PagedReturnsDTO) GetReturns() []ReturnDTO {
+ if o == nil {
+ var ret []ReturnDTO
+ return ret
+ }
+
+ return o.Returns
+}
+
+// GetReturnsOk returns a tuple with the Returns field value
+// and a boolean to check if the value has been set.
+func (o *PagedReturnsDTO) GetReturnsOk() ([]ReturnDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Returns, true
+}
+
+// SetReturns sets field value
+func (o *PagedReturnsDTO) SetReturns(v []ReturnDTO) {
+ o.Returns = v
+}
+
+func (o PagedReturnsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PagedReturnsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Paging) {
+ toSerialize["paging"] = o.Paging
+ }
+ toSerialize["returns"] = o.Returns
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PagedReturnsDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "returns",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPagedReturnsDTO := _PagedReturnsDTO{}
+
+ err = json.Unmarshal(data, &varPagedReturnsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PagedReturnsDTO(varPagedReturnsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "paging")
+ delete(additionalProperties, "returns")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePagedReturnsDTO struct {
+ value *PagedReturnsDTO
+ isSet bool
+}
+
+func (v NullablePagedReturnsDTO) Get() *PagedReturnsDTO {
+ return v.value
+}
+
+func (v *NullablePagedReturnsDTO) Set(val *PagedReturnsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePagedReturnsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePagedReturnsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePagedReturnsDTO(val *PagedReturnsDTO) *NullablePagedReturnsDTO {
+ return &NullablePagedReturnsDTO{value: val, isSet: true}
+}
+
+func (v NullablePagedReturnsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePagedReturnsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_paged_warehouses_dto.go b/pkg/api/yandex/ymclient/model_paged_warehouses_dto.go
new file mode 100644
index 0000000..d60324e
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_paged_warehouses_dto.go
@@ -0,0 +1,204 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PagedWarehousesDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PagedWarehousesDTO{}
+
+// PagedWarehousesDTO Информация о складах в кабинете.
+type PagedWarehousesDTO struct {
+ // Список складов.
+ Warehouses []WarehouseDetailsDTO `json:"warehouses"`
+ Paging *ForwardScrollingPagerDTO `json:"paging,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PagedWarehousesDTO PagedWarehousesDTO
+
+// NewPagedWarehousesDTO instantiates a new PagedWarehousesDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPagedWarehousesDTO(warehouses []WarehouseDetailsDTO) *PagedWarehousesDTO {
+ this := PagedWarehousesDTO{}
+ this.Warehouses = warehouses
+ return &this
+}
+
+// NewPagedWarehousesDTOWithDefaults instantiates a new PagedWarehousesDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPagedWarehousesDTOWithDefaults() *PagedWarehousesDTO {
+ this := PagedWarehousesDTO{}
+ return &this
+}
+
+// GetWarehouses returns the Warehouses field value
+func (o *PagedWarehousesDTO) GetWarehouses() []WarehouseDetailsDTO {
+ if o == nil {
+ var ret []WarehouseDetailsDTO
+ return ret
+ }
+
+ return o.Warehouses
+}
+
+// GetWarehousesOk returns a tuple with the Warehouses field value
+// and a boolean to check if the value has been set.
+func (o *PagedWarehousesDTO) GetWarehousesOk() ([]WarehouseDetailsDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Warehouses, true
+}
+
+// SetWarehouses sets field value
+func (o *PagedWarehousesDTO) SetWarehouses(v []WarehouseDetailsDTO) {
+ o.Warehouses = v
+}
+
+// GetPaging returns the Paging field value if set, zero value otherwise.
+func (o *PagedWarehousesDTO) GetPaging() ForwardScrollingPagerDTO {
+ if o == nil || IsNil(o.Paging) {
+ var ret ForwardScrollingPagerDTO
+ return ret
+ }
+ return *o.Paging
+}
+
+// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PagedWarehousesDTO) GetPagingOk() (*ForwardScrollingPagerDTO, bool) {
+ if o == nil || IsNil(o.Paging) {
+ return nil, false
+ }
+ return o.Paging, true
+}
+
+// HasPaging returns a boolean if a field has been set.
+func (o *PagedWarehousesDTO) HasPaging() bool {
+ if o != nil && !IsNil(o.Paging) {
+ return true
+ }
+
+ return false
+}
+
+// SetPaging gets a reference to the given ForwardScrollingPagerDTO and assigns it to the Paging field.
+func (o *PagedWarehousesDTO) SetPaging(v ForwardScrollingPagerDTO) {
+ o.Paging = &v
+}
+
+func (o PagedWarehousesDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PagedWarehousesDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["warehouses"] = o.Warehouses
+ if !IsNil(o.Paging) {
+ toSerialize["paging"] = o.Paging
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PagedWarehousesDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "warehouses",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPagedWarehousesDTO := _PagedWarehousesDTO{}
+
+ err = json.Unmarshal(data, &varPagedWarehousesDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PagedWarehousesDTO(varPagedWarehousesDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "warehouses")
+ delete(additionalProperties, "paging")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePagedWarehousesDTO struct {
+ value *PagedWarehousesDTO
+ isSet bool
+}
+
+func (v NullablePagedWarehousesDTO) Get() *PagedWarehousesDTO {
+ return v.value
+}
+
+func (v *NullablePagedWarehousesDTO) Set(val *PagedWarehousesDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePagedWarehousesDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePagedWarehousesDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePagedWarehousesDTO(val *PagedWarehousesDTO) *NullablePagedWarehousesDTO {
+ return &NullablePagedWarehousesDTO{value: val, isSet: true}
+}
+
+func (v NullablePagedWarehousesDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePagedWarehousesDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_pallets_count_dto.go b/pkg/api/yandex/ymclient/model_pallets_count_dto.go
new file mode 100644
index 0000000..22ceae6
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_pallets_count_dto.go
@@ -0,0 +1,192 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the PalletsCountDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PalletsCountDTO{}
+
+// PalletsCountDTO Количество палет в отгрузке.
+type PalletsCountDTO struct {
+ // Количество палет, которое заявил продавец.
+ Planned *int32 `json:"planned,omitempty"`
+ // Количество палет, которое приняли в сортировочном центре.
+ Fact *int32 `json:"fact,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PalletsCountDTO PalletsCountDTO
+
+// NewPalletsCountDTO instantiates a new PalletsCountDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPalletsCountDTO() *PalletsCountDTO {
+ this := PalletsCountDTO{}
+ return &this
+}
+
+// NewPalletsCountDTOWithDefaults instantiates a new PalletsCountDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPalletsCountDTOWithDefaults() *PalletsCountDTO {
+ this := PalletsCountDTO{}
+ return &this
+}
+
+// GetPlanned returns the Planned field value if set, zero value otherwise.
+func (o *PalletsCountDTO) GetPlanned() int32 {
+ if o == nil || IsNil(o.Planned) {
+ var ret int32
+ return ret
+ }
+ return *o.Planned
+}
+
+// GetPlannedOk returns a tuple with the Planned field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PalletsCountDTO) GetPlannedOk() (*int32, bool) {
+ if o == nil || IsNil(o.Planned) {
+ return nil, false
+ }
+ return o.Planned, true
+}
+
+// HasPlanned returns a boolean if a field has been set.
+func (o *PalletsCountDTO) HasPlanned() bool {
+ if o != nil && !IsNil(o.Planned) {
+ return true
+ }
+
+ return false
+}
+
+// SetPlanned gets a reference to the given int32 and assigns it to the Planned field.
+func (o *PalletsCountDTO) SetPlanned(v int32) {
+ o.Planned = &v
+}
+
+// GetFact returns the Fact field value if set, zero value otherwise.
+func (o *PalletsCountDTO) GetFact() int32 {
+ if o == nil || IsNil(o.Fact) {
+ var ret int32
+ return ret
+ }
+ return *o.Fact
+}
+
+// GetFactOk returns a tuple with the Fact field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PalletsCountDTO) GetFactOk() (*int32, bool) {
+ if o == nil || IsNil(o.Fact) {
+ return nil, false
+ }
+ return o.Fact, true
+}
+
+// HasFact returns a boolean if a field has been set.
+func (o *PalletsCountDTO) HasFact() bool {
+ if o != nil && !IsNil(o.Fact) {
+ return true
+ }
+
+ return false
+}
+
+// SetFact gets a reference to the given int32 and assigns it to the Fact field.
+func (o *PalletsCountDTO) SetFact(v int32) {
+ o.Fact = &v
+}
+
+func (o PalletsCountDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PalletsCountDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Planned) {
+ toSerialize["planned"] = o.Planned
+ }
+ if !IsNil(o.Fact) {
+ toSerialize["fact"] = o.Fact
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PalletsCountDTO) UnmarshalJSON(data []byte) (err error) {
+ varPalletsCountDTO := _PalletsCountDTO{}
+
+ err = json.Unmarshal(data, &varPalletsCountDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PalletsCountDTO(varPalletsCountDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "planned")
+ delete(additionalProperties, "fact")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePalletsCountDTO struct {
+ value *PalletsCountDTO
+ isSet bool
+}
+
+func (v NullablePalletsCountDTO) Get() *PalletsCountDTO {
+ return v.value
+}
+
+func (v *NullablePalletsCountDTO) Set(val *PalletsCountDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePalletsCountDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePalletsCountDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePalletsCountDTO(val *PalletsCountDTO) *NullablePalletsCountDTO {
+ return &NullablePalletsCountDTO{value: val, isSet: true}
+}
+
+func (v NullablePalletsCountDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePalletsCountDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_parameter_type.go b/pkg/api/yandex/ymclient/model_parameter_type.go
new file mode 100644
index 0000000..60c7cf2
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_parameter_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ParameterType Тип данных: * `TEXT` — текст. * `ENUM` — список возможных значений. * `BOOLEAN` — `true` или `false`. * `NUMERIC` — число.
+type ParameterType string
+
+// List of ParameterType
+const (
+ PARAMETERTYPE_TEXT ParameterType = "TEXT"
+ PARAMETERTYPE_ENUM ParameterType = "ENUM"
+ PARAMETERTYPE_BOOLEAN ParameterType = "BOOLEAN"
+ PARAMETERTYPE_NUMERIC ParameterType = "NUMERIC"
+)
+
+// All allowed values of ParameterType enum
+var AllowedParameterTypeEnumValues = []ParameterType{
+ "TEXT",
+ "ENUM",
+ "BOOLEAN",
+ "NUMERIC",
+}
+
+func (v *ParameterType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ParameterType(value)
+ for _, existing := range AllowedParameterTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ParameterType", value)
+}
+
+// NewParameterTypeFromValue returns a pointer to a valid ParameterType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewParameterTypeFromValue(v string) (*ParameterType, error) {
+ ev := ParameterType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ParameterType: valid values are %v", v, AllowedParameterTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ParameterType) IsValid() bool {
+ for _, existing := range AllowedParameterTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ParameterType value
+func (v ParameterType) Ptr() *ParameterType {
+ return &v
+}
+
+type NullableParameterType struct {
+ value *ParameterType
+ isSet bool
+}
+
+func (v NullableParameterType) Get() *ParameterType {
+ return v.value
+}
+
+func (v *NullableParameterType) Set(val *ParameterType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParameterType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParameterType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParameterType(val *ParameterType) *NullableParameterType {
+ return &NullableParameterType{value: val, isSet: true}
+}
+
+func (v NullableParameterType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParameterType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_parameter_value_constraints_dto.go b/pkg/api/yandex/ymclient/model_parameter_value_constraints_dto.go
new file mode 100644
index 0000000..a5e928a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_parameter_value_constraints_dto.go
@@ -0,0 +1,230 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the ParameterValueConstraintsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ParameterValueConstraintsDTO{}
+
+// ParameterValueConstraintsDTO Ограничения на значения характеристик.
+type ParameterValueConstraintsDTO struct {
+ // Минимальное число.
+ MinValue *float64 `json:"minValue,omitempty"`
+ // Максимальное число.
+ MaxValue *float64 `json:"maxValue,omitempty"`
+ // Максимальная длина текста.
+ MaxLength *int32 `json:"maxLength,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ParameterValueConstraintsDTO ParameterValueConstraintsDTO
+
+// NewParameterValueConstraintsDTO instantiates a new ParameterValueConstraintsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewParameterValueConstraintsDTO() *ParameterValueConstraintsDTO {
+ this := ParameterValueConstraintsDTO{}
+ return &this
+}
+
+// NewParameterValueConstraintsDTOWithDefaults instantiates a new ParameterValueConstraintsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewParameterValueConstraintsDTOWithDefaults() *ParameterValueConstraintsDTO {
+ this := ParameterValueConstraintsDTO{}
+ return &this
+}
+
+// GetMinValue returns the MinValue field value if set, zero value otherwise.
+func (o *ParameterValueConstraintsDTO) GetMinValue() float64 {
+ if o == nil || IsNil(o.MinValue) {
+ var ret float64
+ return ret
+ }
+ return *o.MinValue
+}
+
+// GetMinValueOk returns a tuple with the MinValue field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParameterValueConstraintsDTO) GetMinValueOk() (*float64, bool) {
+ if o == nil || IsNil(o.MinValue) {
+ return nil, false
+ }
+ return o.MinValue, true
+}
+
+// HasMinValue returns a boolean if a field has been set.
+func (o *ParameterValueConstraintsDTO) HasMinValue() bool {
+ if o != nil && !IsNil(o.MinValue) {
+ return true
+ }
+
+ return false
+}
+
+// SetMinValue gets a reference to the given float64 and assigns it to the MinValue field.
+func (o *ParameterValueConstraintsDTO) SetMinValue(v float64) {
+ o.MinValue = &v
+}
+
+// GetMaxValue returns the MaxValue field value if set, zero value otherwise.
+func (o *ParameterValueConstraintsDTO) GetMaxValue() float64 {
+ if o == nil || IsNil(o.MaxValue) {
+ var ret float64
+ return ret
+ }
+ return *o.MaxValue
+}
+
+// GetMaxValueOk returns a tuple with the MaxValue field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParameterValueConstraintsDTO) GetMaxValueOk() (*float64, bool) {
+ if o == nil || IsNil(o.MaxValue) {
+ return nil, false
+ }
+ return o.MaxValue, true
+}
+
+// HasMaxValue returns a boolean if a field has been set.
+func (o *ParameterValueConstraintsDTO) HasMaxValue() bool {
+ if o != nil && !IsNil(o.MaxValue) {
+ return true
+ }
+
+ return false
+}
+
+// SetMaxValue gets a reference to the given float64 and assigns it to the MaxValue field.
+func (o *ParameterValueConstraintsDTO) SetMaxValue(v float64) {
+ o.MaxValue = &v
+}
+
+// GetMaxLength returns the MaxLength field value if set, zero value otherwise.
+func (o *ParameterValueConstraintsDTO) GetMaxLength() int32 {
+ if o == nil || IsNil(o.MaxLength) {
+ var ret int32
+ return ret
+ }
+ return *o.MaxLength
+}
+
+// GetMaxLengthOk returns a tuple with the MaxLength field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParameterValueConstraintsDTO) GetMaxLengthOk() (*int32, bool) {
+ if o == nil || IsNil(o.MaxLength) {
+ return nil, false
+ }
+ return o.MaxLength, true
+}
+
+// HasMaxLength returns a boolean if a field has been set.
+func (o *ParameterValueConstraintsDTO) HasMaxLength() bool {
+ if o != nil && !IsNil(o.MaxLength) {
+ return true
+ }
+
+ return false
+}
+
+// SetMaxLength gets a reference to the given int32 and assigns it to the MaxLength field.
+func (o *ParameterValueConstraintsDTO) SetMaxLength(v int32) {
+ o.MaxLength = &v
+}
+
+func (o ParameterValueConstraintsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ParameterValueConstraintsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.MinValue) {
+ toSerialize["minValue"] = o.MinValue
+ }
+ if !IsNil(o.MaxValue) {
+ toSerialize["maxValue"] = o.MaxValue
+ }
+ if !IsNil(o.MaxLength) {
+ toSerialize["maxLength"] = o.MaxLength
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ParameterValueConstraintsDTO) UnmarshalJSON(data []byte) (err error) {
+ varParameterValueConstraintsDTO := _ParameterValueConstraintsDTO{}
+
+ err = json.Unmarshal(data, &varParameterValueConstraintsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ParameterValueConstraintsDTO(varParameterValueConstraintsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "minValue")
+ delete(additionalProperties, "maxValue")
+ delete(additionalProperties, "maxLength")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableParameterValueConstraintsDTO struct {
+ value *ParameterValueConstraintsDTO
+ isSet bool
+}
+
+func (v NullableParameterValueConstraintsDTO) Get() *ParameterValueConstraintsDTO {
+ return v.value
+}
+
+func (v *NullableParameterValueConstraintsDTO) Set(val *ParameterValueConstraintsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParameterValueConstraintsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParameterValueConstraintsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParameterValueConstraintsDTO(val *ParameterValueConstraintsDTO) *NullableParameterValueConstraintsDTO {
+ return &NullableParameterValueConstraintsDTO{value: val, isSet: true}
+}
+
+func (v NullableParameterValueConstraintsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParameterValueConstraintsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_parameter_value_dto.go b/pkg/api/yandex/ymclient/model_parameter_value_dto.go
new file mode 100644
index 0000000..083937d
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_parameter_value_dto.go
@@ -0,0 +1,281 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ParameterValueDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ParameterValueDTO{}
+
+// ParameterValueDTO Значение характеристики. Вы можете указывать несколько значений одной характеристики при условии, что: * Тип характеристики — `ENUM`. * В ответе на запрос [POST category/{categoryId}/parameters](../../reference/content/getCategoryContentParameters.md) у данной характеристики поле `multivalue` имеет значение `true`. Для этого в `parameterValues` передавайте каждое значение отдельно — несколько объектов с параметрами `parameterId`, `valueId` и `value`. Параметр `parameterId` должен быть одинаковым.
+type ParameterValueDTO struct {
+ // Идентификатор характеристики.
+ ParameterId int64 `json:"parameterId"`
+ // Идентификатор единицы измерения. Если вы не передали параметр `unitId`, используется единица измерения по умолчанию.
+ UnitId *int64 `json:"unitId,omitempty"`
+ // Идентификатор значения. Обязательно указывайте идентификатор, если передаете значение из перечня допустимых значений, полученного от Маркета. Передавайте вместе с `value`. Только для характеристик типа `ENUM`.
+ ValueId *int64 `json:"valueId,omitempty"`
+ // Значение. Для характеристик типа `ENUM` передавайте вместе с `valueId`.
+ Value *string `json:"value,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ParameterValueDTO ParameterValueDTO
+
+// NewParameterValueDTO instantiates a new ParameterValueDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewParameterValueDTO(parameterId int64) *ParameterValueDTO {
+ this := ParameterValueDTO{}
+ this.ParameterId = parameterId
+ return &this
+}
+
+// NewParameterValueDTOWithDefaults instantiates a new ParameterValueDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewParameterValueDTOWithDefaults() *ParameterValueDTO {
+ this := ParameterValueDTO{}
+ return &this
+}
+
+// GetParameterId returns the ParameterId field value
+func (o *ParameterValueDTO) GetParameterId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.ParameterId
+}
+
+// GetParameterIdOk returns a tuple with the ParameterId field value
+// and a boolean to check if the value has been set.
+func (o *ParameterValueDTO) GetParameterIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ParameterId, true
+}
+
+// SetParameterId sets field value
+func (o *ParameterValueDTO) SetParameterId(v int64) {
+ o.ParameterId = v
+}
+
+// GetUnitId returns the UnitId field value if set, zero value otherwise.
+func (o *ParameterValueDTO) GetUnitId() int64 {
+ if o == nil || IsNil(o.UnitId) {
+ var ret int64
+ return ret
+ }
+ return *o.UnitId
+}
+
+// GetUnitIdOk returns a tuple with the UnitId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParameterValueDTO) GetUnitIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.UnitId) {
+ return nil, false
+ }
+ return o.UnitId, true
+}
+
+// HasUnitId returns a boolean if a field has been set.
+func (o *ParameterValueDTO) HasUnitId() bool {
+ if o != nil && !IsNil(o.UnitId) {
+ return true
+ }
+
+ return false
+}
+
+// SetUnitId gets a reference to the given int64 and assigns it to the UnitId field.
+func (o *ParameterValueDTO) SetUnitId(v int64) {
+ o.UnitId = &v
+}
+
+// GetValueId returns the ValueId field value if set, zero value otherwise.
+func (o *ParameterValueDTO) GetValueId() int64 {
+ if o == nil || IsNil(o.ValueId) {
+ var ret int64
+ return ret
+ }
+ return *o.ValueId
+}
+
+// GetValueIdOk returns a tuple with the ValueId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParameterValueDTO) GetValueIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.ValueId) {
+ return nil, false
+ }
+ return o.ValueId, true
+}
+
+// HasValueId returns a boolean if a field has been set.
+func (o *ParameterValueDTO) HasValueId() bool {
+ if o != nil && !IsNil(o.ValueId) {
+ return true
+ }
+
+ return false
+}
+
+// SetValueId gets a reference to the given int64 and assigns it to the ValueId field.
+func (o *ParameterValueDTO) SetValueId(v int64) {
+ o.ValueId = &v
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *ParameterValueDTO) GetValue() string {
+ if o == nil || IsNil(o.Value) {
+ var ret string
+ return ret
+ }
+ return *o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParameterValueDTO) GetValueOk() (*string, bool) {
+ if o == nil || IsNil(o.Value) {
+ return nil, false
+ }
+ return o.Value, true
+}
+
+// HasValue returns a boolean if a field has been set.
+func (o *ParameterValueDTO) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given string and assigns it to the Value field.
+func (o *ParameterValueDTO) SetValue(v string) {
+ o.Value = &v
+}
+
+func (o ParameterValueDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ParameterValueDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["parameterId"] = o.ParameterId
+ if !IsNil(o.UnitId) {
+ toSerialize["unitId"] = o.UnitId
+ }
+ if !IsNil(o.ValueId) {
+ toSerialize["valueId"] = o.ValueId
+ }
+ if !IsNil(o.Value) {
+ toSerialize["value"] = o.Value
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ParameterValueDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "parameterId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varParameterValueDTO := _ParameterValueDTO{}
+
+ err = json.Unmarshal(data, &varParameterValueDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ParameterValueDTO(varParameterValueDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "parameterId")
+ delete(additionalProperties, "unitId")
+ delete(additionalProperties, "valueId")
+ delete(additionalProperties, "value")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableParameterValueDTO struct {
+ value *ParameterValueDTO
+ isSet bool
+}
+
+func (v NullableParameterValueDTO) Get() *ParameterValueDTO {
+ return v.value
+}
+
+func (v *NullableParameterValueDTO) Set(val *ParameterValueDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParameterValueDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParameterValueDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParameterValueDTO(val *ParameterValueDTO) *NullableParameterValueDTO {
+ return &NullableParameterValueDTO{value: val, isSet: true}
+}
+
+func (v NullableParameterValueDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParameterValueDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_parameter_value_option_dto.go b/pkg/api/yandex/ymclient/model_parameter_value_option_dto.go
new file mode 100644
index 0000000..0a66cdb
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_parameter_value_option_dto.go
@@ -0,0 +1,235 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ParameterValueOptionDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ParameterValueOptionDTO{}
+
+// ParameterValueOptionDTO Значение характеристики.
+type ParameterValueOptionDTO struct {
+ // Идентификатор значения.
+ Id int64 `json:"id"`
+ // Значение.
+ Value string `json:"value"`
+ // Описание значения.
+ Description *string `json:"description,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ParameterValueOptionDTO ParameterValueOptionDTO
+
+// NewParameterValueOptionDTO instantiates a new ParameterValueOptionDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewParameterValueOptionDTO(id int64, value string) *ParameterValueOptionDTO {
+ this := ParameterValueOptionDTO{}
+ this.Id = id
+ this.Value = value
+ return &this
+}
+
+// NewParameterValueOptionDTOWithDefaults instantiates a new ParameterValueOptionDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewParameterValueOptionDTOWithDefaults() *ParameterValueOptionDTO {
+ this := ParameterValueOptionDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *ParameterValueOptionDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *ParameterValueOptionDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *ParameterValueOptionDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetValue returns the Value field value
+func (o *ParameterValueOptionDTO) GetValue() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value
+// and a boolean to check if the value has been set.
+func (o *ParameterValueOptionDTO) GetValueOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Value, true
+}
+
+// SetValue sets field value
+func (o *ParameterValueOptionDTO) SetValue(v string) {
+ o.Value = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *ParameterValueOptionDTO) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
+ return ret
+ }
+ return *o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParameterValueOptionDTO) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
+ return nil, false
+ }
+ return o.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (o *ParameterValueOptionDTO) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *ParameterValueOptionDTO) SetDescription(v string) {
+ o.Description = &v
+}
+
+func (o ParameterValueOptionDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ParameterValueOptionDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["value"] = o.Value
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ParameterValueOptionDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "value",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varParameterValueOptionDTO := _ParameterValueOptionDTO{}
+
+ err = json.Unmarshal(data, &varParameterValueOptionDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ParameterValueOptionDTO(varParameterValueOptionDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "value")
+ delete(additionalProperties, "description")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableParameterValueOptionDTO struct {
+ value *ParameterValueOptionDTO
+ isSet bool
+}
+
+func (v NullableParameterValueOptionDTO) Get() *ParameterValueOptionDTO {
+ return v.value
+}
+
+func (v *NullableParameterValueOptionDTO) Set(val *ParameterValueOptionDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParameterValueOptionDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParameterValueOptionDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParameterValueOptionDTO(val *ParameterValueOptionDTO) *NullableParameterValueOptionDTO {
+ return &NullableParameterValueOptionDTO{value: val, isSet: true}
+}
+
+func (v NullableParameterValueOptionDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParameterValueOptionDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_parcel_box_dto.go b/pkg/api/yandex/ymclient/model_parcel_box_dto.go
new file mode 100644
index 0000000..b7d495b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_parcel_box_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the ParcelBoxDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ParcelBoxDTO{}
+
+// ParcelBoxDTO Параметр отображает одно грузовое место.
+type ParcelBoxDTO struct {
+ // Идентификатор коробки в составе заказа.
+ Id *int64 `json:"id,omitempty"`
+ // {% note warning \"Не используйте этот параметр.\" %} {% endnote %}
+ // Deprecated
+ FulfilmentId *string `json:"fulfilmentId,omitempty" validate:"regexp=^[\\\\p{Alnum}- ]*$"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ParcelBoxDTO ParcelBoxDTO
+
+// NewParcelBoxDTO instantiates a new ParcelBoxDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewParcelBoxDTO() *ParcelBoxDTO {
+ this := ParcelBoxDTO{}
+ return &this
+}
+
+// NewParcelBoxDTOWithDefaults instantiates a new ParcelBoxDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewParcelBoxDTOWithDefaults() *ParcelBoxDTO {
+ this := ParcelBoxDTO{}
+ return &this
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *ParcelBoxDTO) GetId() int64 {
+ if o == nil || IsNil(o.Id) {
+ var ret int64
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxDTO) GetIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *ParcelBoxDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given int64 and assigns it to the Id field.
+func (o *ParcelBoxDTO) SetId(v int64) {
+ o.Id = &v
+}
+
+// GetFulfilmentId returns the FulfilmentId field value if set, zero value otherwise.
+// Deprecated
+func (o *ParcelBoxDTO) GetFulfilmentId() string {
+ if o == nil || IsNil(o.FulfilmentId) {
+ var ret string
+ return ret
+ }
+ return *o.FulfilmentId
+}
+
+// GetFulfilmentIdOk returns a tuple with the FulfilmentId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *ParcelBoxDTO) GetFulfilmentIdOk() (*string, bool) {
+ if o == nil || IsNil(o.FulfilmentId) {
+ return nil, false
+ }
+ return o.FulfilmentId, true
+}
+
+// HasFulfilmentId returns a boolean if a field has been set.
+func (o *ParcelBoxDTO) HasFulfilmentId() bool {
+ if o != nil && !IsNil(o.FulfilmentId) {
+ return true
+ }
+
+ return false
+}
+
+// SetFulfilmentId gets a reference to the given string and assigns it to the FulfilmentId field.
+// Deprecated
+func (o *ParcelBoxDTO) SetFulfilmentId(v string) {
+ o.FulfilmentId = &v
+}
+
+func (o ParcelBoxDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ParcelBoxDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+ if !IsNil(o.FulfilmentId) {
+ toSerialize["fulfilmentId"] = o.FulfilmentId
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ParcelBoxDTO) UnmarshalJSON(data []byte) (err error) {
+ varParcelBoxDTO := _ParcelBoxDTO{}
+
+ err = json.Unmarshal(data, &varParcelBoxDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ParcelBoxDTO(varParcelBoxDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "fulfilmentId")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableParcelBoxDTO struct {
+ value *ParcelBoxDTO
+ isSet bool
+}
+
+func (v NullableParcelBoxDTO) Get() *ParcelBoxDTO {
+ return v.value
+}
+
+func (v *NullableParcelBoxDTO) Set(val *ParcelBoxDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParcelBoxDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParcelBoxDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParcelBoxDTO(val *ParcelBoxDTO) *NullableParcelBoxDTO {
+ return &NullableParcelBoxDTO{value: val, isSet: true}
+}
+
+func (v NullableParcelBoxDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParcelBoxDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_parcel_box_label_dto.go b/pkg/api/yandex/ymclient/model_parcel_box_label_dto.go
new file mode 100644
index 0000000..c612990
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_parcel_box_label_dto.go
@@ -0,0 +1,546 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ParcelBoxLabelDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ParcelBoxLabelDTO{}
+
+// ParcelBoxLabelDTO Информация о ярлыке для коробки.
+type ParcelBoxLabelDTO struct {
+ Url string `json:"url"`
+ // Юридическое название магазина.
+ SupplierName string `json:"supplierName"`
+ // Юридическое название службы доставки.
+ DeliveryServiceName string `json:"deliveryServiceName"`
+ // Идентификатор заказа в системе Маркета.
+ OrderId int64 `json:"orderId"`
+ // Идентификатор заказа в информационной системе магазина. Совпадает с `orderId`, если Маркету неизвестен номер заказа в системе магазина.
+ OrderNum string `json:"orderNum"`
+ // Фамилия и инициалы получателя заказа.
+ RecipientName string `json:"recipientName"`
+ // Идентификатор коробки.
+ BoxId int64 `json:"boxId"`
+ // Идентификатор коробки в информационной системе магазина. Возвращается в формате: `номер заказа на Маркете-номер коробки`. Например, `7206821‑1`, `7206821‑2` и т. д.
+ FulfilmentId string `json:"fulfilmentId"`
+ // Номер коробки в заказе. Возвращается в формате: `номер места/общее количество мест`.
+ Place string `json:"place"`
+ // Общая масса всех товаров в заказе. Возвращается в формате: :no-translate[`weight кг`].
+ // Deprecated
+ Weight string `json:"weight"`
+ // Идентификатор службы доставки. Информацию о службе доставки можно получить с помощью запроса [GET delivery/services](../../reference/orders/getDeliveryServices.md).
+ DeliveryServiceId string `json:"deliveryServiceId"`
+ // Адрес получателя.
+ DeliveryAddress *string `json:"deliveryAddress,omitempty"`
+ // Дата отгрузки в формате `dd.MM.yyyy`.
+ ShipmentDate *string `json:"shipmentDate,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ParcelBoxLabelDTO ParcelBoxLabelDTO
+
+// NewParcelBoxLabelDTO instantiates a new ParcelBoxLabelDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewParcelBoxLabelDTO(url string, supplierName string, deliveryServiceName string, orderId int64, orderNum string, recipientName string, boxId int64, fulfilmentId string, place string, weight string, deliveryServiceId string) *ParcelBoxLabelDTO {
+ this := ParcelBoxLabelDTO{}
+ this.Url = url
+ this.SupplierName = supplierName
+ this.DeliveryServiceName = deliveryServiceName
+ this.OrderId = orderId
+ this.OrderNum = orderNum
+ this.RecipientName = recipientName
+ this.BoxId = boxId
+ this.FulfilmentId = fulfilmentId
+ this.Place = place
+ this.Weight = weight
+ this.DeliveryServiceId = deliveryServiceId
+ return &this
+}
+
+// NewParcelBoxLabelDTOWithDefaults instantiates a new ParcelBoxLabelDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewParcelBoxLabelDTOWithDefaults() *ParcelBoxLabelDTO {
+ this := ParcelBoxLabelDTO{}
+ return &this
+}
+
+// GetUrl returns the Url field value
+func (o *ParcelBoxLabelDTO) GetUrl() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Url
+}
+
+// GetUrlOk returns a tuple with the Url field value
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *ParcelBoxLabelDTO) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetSupplierName returns the SupplierName field value
+func (o *ParcelBoxLabelDTO) GetSupplierName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.SupplierName
+}
+
+// GetSupplierNameOk returns a tuple with the SupplierName field value
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetSupplierNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.SupplierName, true
+}
+
+// SetSupplierName sets field value
+func (o *ParcelBoxLabelDTO) SetSupplierName(v string) {
+ o.SupplierName = v
+}
+
+// GetDeliveryServiceName returns the DeliveryServiceName field value
+func (o *ParcelBoxLabelDTO) GetDeliveryServiceName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.DeliveryServiceName
+}
+
+// GetDeliveryServiceNameOk returns a tuple with the DeliveryServiceName field value
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetDeliveryServiceNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DeliveryServiceName, true
+}
+
+// SetDeliveryServiceName sets field value
+func (o *ParcelBoxLabelDTO) SetDeliveryServiceName(v string) {
+ o.DeliveryServiceName = v
+}
+
+// GetOrderId returns the OrderId field value
+func (o *ParcelBoxLabelDTO) GetOrderId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.OrderId
+}
+
+// GetOrderIdOk returns a tuple with the OrderId field value
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetOrderIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrderId, true
+}
+
+// SetOrderId sets field value
+func (o *ParcelBoxLabelDTO) SetOrderId(v int64) {
+ o.OrderId = v
+}
+
+// GetOrderNum returns the OrderNum field value
+func (o *ParcelBoxLabelDTO) GetOrderNum() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OrderNum
+}
+
+// GetOrderNumOk returns a tuple with the OrderNum field value
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetOrderNumOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrderNum, true
+}
+
+// SetOrderNum sets field value
+func (o *ParcelBoxLabelDTO) SetOrderNum(v string) {
+ o.OrderNum = v
+}
+
+// GetRecipientName returns the RecipientName field value
+func (o *ParcelBoxLabelDTO) GetRecipientName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.RecipientName
+}
+
+// GetRecipientNameOk returns a tuple with the RecipientName field value
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetRecipientNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.RecipientName, true
+}
+
+// SetRecipientName sets field value
+func (o *ParcelBoxLabelDTO) SetRecipientName(v string) {
+ o.RecipientName = v
+}
+
+// GetBoxId returns the BoxId field value
+func (o *ParcelBoxLabelDTO) GetBoxId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.BoxId
+}
+
+// GetBoxIdOk returns a tuple with the BoxId field value
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetBoxIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.BoxId, true
+}
+
+// SetBoxId sets field value
+func (o *ParcelBoxLabelDTO) SetBoxId(v int64) {
+ o.BoxId = v
+}
+
+// GetFulfilmentId returns the FulfilmentId field value
+func (o *ParcelBoxLabelDTO) GetFulfilmentId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.FulfilmentId
+}
+
+// GetFulfilmentIdOk returns a tuple with the FulfilmentId field value
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetFulfilmentIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FulfilmentId, true
+}
+
+// SetFulfilmentId sets field value
+func (o *ParcelBoxLabelDTO) SetFulfilmentId(v string) {
+ o.FulfilmentId = v
+}
+
+// GetPlace returns the Place field value
+func (o *ParcelBoxLabelDTO) GetPlace() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Place
+}
+
+// GetPlaceOk returns a tuple with the Place field value
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetPlaceOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Place, true
+}
+
+// SetPlace sets field value
+func (o *ParcelBoxLabelDTO) SetPlace(v string) {
+ o.Place = v
+}
+
+// GetWeight returns the Weight field value
+// Deprecated
+func (o *ParcelBoxLabelDTO) GetWeight() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Weight
+}
+
+// GetWeightOk returns a tuple with the Weight field value
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *ParcelBoxLabelDTO) GetWeightOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Weight, true
+}
+
+// SetWeight sets field value
+// Deprecated
+func (o *ParcelBoxLabelDTO) SetWeight(v string) {
+ o.Weight = v
+}
+
+// GetDeliveryServiceId returns the DeliveryServiceId field value
+func (o *ParcelBoxLabelDTO) GetDeliveryServiceId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.DeliveryServiceId
+}
+
+// GetDeliveryServiceIdOk returns a tuple with the DeliveryServiceId field value
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetDeliveryServiceIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DeliveryServiceId, true
+}
+
+// SetDeliveryServiceId sets field value
+func (o *ParcelBoxLabelDTO) SetDeliveryServiceId(v string) {
+ o.DeliveryServiceId = v
+}
+
+// GetDeliveryAddress returns the DeliveryAddress field value if set, zero value otherwise.
+func (o *ParcelBoxLabelDTO) GetDeliveryAddress() string {
+ if o == nil || IsNil(o.DeliveryAddress) {
+ var ret string
+ return ret
+ }
+ return *o.DeliveryAddress
+}
+
+// GetDeliveryAddressOk returns a tuple with the DeliveryAddress field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetDeliveryAddressOk() (*string, bool) {
+ if o == nil || IsNil(o.DeliveryAddress) {
+ return nil, false
+ }
+ return o.DeliveryAddress, true
+}
+
+// HasDeliveryAddress returns a boolean if a field has been set.
+func (o *ParcelBoxLabelDTO) HasDeliveryAddress() bool {
+ if o != nil && !IsNil(o.DeliveryAddress) {
+ return true
+ }
+
+ return false
+}
+
+// SetDeliveryAddress gets a reference to the given string and assigns it to the DeliveryAddress field.
+func (o *ParcelBoxLabelDTO) SetDeliveryAddress(v string) {
+ o.DeliveryAddress = &v
+}
+
+// GetShipmentDate returns the ShipmentDate field value if set, zero value otherwise.
+func (o *ParcelBoxLabelDTO) GetShipmentDate() string {
+ if o == nil || IsNil(o.ShipmentDate) {
+ var ret string
+ return ret
+ }
+ return *o.ShipmentDate
+}
+
+// GetShipmentDateOk returns a tuple with the ShipmentDate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParcelBoxLabelDTO) GetShipmentDateOk() (*string, bool) {
+ if o == nil || IsNil(o.ShipmentDate) {
+ return nil, false
+ }
+ return o.ShipmentDate, true
+}
+
+// HasShipmentDate returns a boolean if a field has been set.
+func (o *ParcelBoxLabelDTO) HasShipmentDate() bool {
+ if o != nil && !IsNil(o.ShipmentDate) {
+ return true
+ }
+
+ return false
+}
+
+// SetShipmentDate gets a reference to the given string and assigns it to the ShipmentDate field.
+func (o *ParcelBoxLabelDTO) SetShipmentDate(v string) {
+ o.ShipmentDate = &v
+}
+
+func (o ParcelBoxLabelDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ParcelBoxLabelDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["url"] = o.Url
+ toSerialize["supplierName"] = o.SupplierName
+ toSerialize["deliveryServiceName"] = o.DeliveryServiceName
+ toSerialize["orderId"] = o.OrderId
+ toSerialize["orderNum"] = o.OrderNum
+ toSerialize["recipientName"] = o.RecipientName
+ toSerialize["boxId"] = o.BoxId
+ toSerialize["fulfilmentId"] = o.FulfilmentId
+ toSerialize["place"] = o.Place
+ toSerialize["weight"] = o.Weight
+ toSerialize["deliveryServiceId"] = o.DeliveryServiceId
+ if !IsNil(o.DeliveryAddress) {
+ toSerialize["deliveryAddress"] = o.DeliveryAddress
+ }
+ if !IsNil(o.ShipmentDate) {
+ toSerialize["shipmentDate"] = o.ShipmentDate
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ParcelBoxLabelDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "url",
+ "supplierName",
+ "deliveryServiceName",
+ "orderId",
+ "orderNum",
+ "recipientName",
+ "boxId",
+ "fulfilmentId",
+ "place",
+ "weight",
+ "deliveryServiceId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varParcelBoxLabelDTO := _ParcelBoxLabelDTO{}
+
+ err = json.Unmarshal(data, &varParcelBoxLabelDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ParcelBoxLabelDTO(varParcelBoxLabelDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "supplierName")
+ delete(additionalProperties, "deliveryServiceName")
+ delete(additionalProperties, "orderId")
+ delete(additionalProperties, "orderNum")
+ delete(additionalProperties, "recipientName")
+ delete(additionalProperties, "boxId")
+ delete(additionalProperties, "fulfilmentId")
+ delete(additionalProperties, "place")
+ delete(additionalProperties, "weight")
+ delete(additionalProperties, "deliveryServiceId")
+ delete(additionalProperties, "deliveryAddress")
+ delete(additionalProperties, "shipmentDate")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableParcelBoxLabelDTO struct {
+ value *ParcelBoxLabelDTO
+ isSet bool
+}
+
+func (v NullableParcelBoxLabelDTO) Get() *ParcelBoxLabelDTO {
+ return v.value
+}
+
+func (v *NullableParcelBoxLabelDTO) Set(val *ParcelBoxLabelDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParcelBoxLabelDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParcelBoxLabelDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParcelBoxLabelDTO(val *ParcelBoxLabelDTO) *NullableParcelBoxLabelDTO {
+ return &NullableParcelBoxLabelDTO{value: val, isSet: true}
+}
+
+func (v NullableParcelBoxLabelDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParcelBoxLabelDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_parcel_box_request_dto.go b/pkg/api/yandex/ymclient/model_parcel_box_request_dto.go
new file mode 100644
index 0000000..40b59a0
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_parcel_box_request_dto.go
@@ -0,0 +1,158 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the ParcelBoxRequestDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ParcelBoxRequestDTO{}
+
+// ParcelBoxRequestDTO Параметр отображает одно грузовое место. Вложенные поля больше не используются, передавайте параметр пустым.
+type ParcelBoxRequestDTO struct {
+ // {% note warning \"Не используйте этот параметр.\" %} {% endnote %}
+ // Deprecated
+ FulfilmentId *string `json:"fulfilmentId,omitempty" validate:"regexp=^[\\\\p{Alnum}- ]*$"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ParcelBoxRequestDTO ParcelBoxRequestDTO
+
+// NewParcelBoxRequestDTO instantiates a new ParcelBoxRequestDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewParcelBoxRequestDTO() *ParcelBoxRequestDTO {
+ this := ParcelBoxRequestDTO{}
+ return &this
+}
+
+// NewParcelBoxRequestDTOWithDefaults instantiates a new ParcelBoxRequestDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewParcelBoxRequestDTOWithDefaults() *ParcelBoxRequestDTO {
+ this := ParcelBoxRequestDTO{}
+ return &this
+}
+
+// GetFulfilmentId returns the FulfilmentId field value if set, zero value otherwise.
+// Deprecated
+func (o *ParcelBoxRequestDTO) GetFulfilmentId() string {
+ if o == nil || IsNil(o.FulfilmentId) {
+ var ret string
+ return ret
+ }
+ return *o.FulfilmentId
+}
+
+// GetFulfilmentIdOk returns a tuple with the FulfilmentId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *ParcelBoxRequestDTO) GetFulfilmentIdOk() (*string, bool) {
+ if o == nil || IsNil(o.FulfilmentId) {
+ return nil, false
+ }
+ return o.FulfilmentId, true
+}
+
+// HasFulfilmentId returns a boolean if a field has been set.
+func (o *ParcelBoxRequestDTO) HasFulfilmentId() bool {
+ if o != nil && !IsNil(o.FulfilmentId) {
+ return true
+ }
+
+ return false
+}
+
+// SetFulfilmentId gets a reference to the given string and assigns it to the FulfilmentId field.
+// Deprecated
+func (o *ParcelBoxRequestDTO) SetFulfilmentId(v string) {
+ o.FulfilmentId = &v
+}
+
+func (o ParcelBoxRequestDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ParcelBoxRequestDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.FulfilmentId) {
+ toSerialize["fulfilmentId"] = o.FulfilmentId
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ParcelBoxRequestDTO) UnmarshalJSON(data []byte) (err error) {
+ varParcelBoxRequestDTO := _ParcelBoxRequestDTO{}
+
+ err = json.Unmarshal(data, &varParcelBoxRequestDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ParcelBoxRequestDTO(varParcelBoxRequestDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "fulfilmentId")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableParcelBoxRequestDTO struct {
+ value *ParcelBoxRequestDTO
+ isSet bool
+}
+
+func (v NullableParcelBoxRequestDTO) Get() *ParcelBoxRequestDTO {
+ return v.value
+}
+
+func (v *NullableParcelBoxRequestDTO) Set(val *ParcelBoxRequestDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParcelBoxRequestDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParcelBoxRequestDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParcelBoxRequestDTO(val *ParcelBoxRequestDTO) *NullableParcelBoxRequestDTO {
+ return &NullableParcelBoxRequestDTO{value: val, isSet: true}
+}
+
+func (v NullableParcelBoxRequestDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParcelBoxRequestDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_parcel_request_dto.go b/pkg/api/yandex/ymclient/model_parcel_request_dto.go
new file mode 100644
index 0000000..fcdb571
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_parcel_request_dto.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ParcelRequestDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ParcelRequestDTO{}
+
+// ParcelRequestDTO Информация о грузовых местах в заказе.
+type ParcelRequestDTO struct {
+ // Список грузовых мест. По его длине Маркет определяет количество мест.
+ Boxes []ParcelBoxRequestDTO `json:"boxes"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ParcelRequestDTO ParcelRequestDTO
+
+// NewParcelRequestDTO instantiates a new ParcelRequestDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewParcelRequestDTO(boxes []ParcelBoxRequestDTO) *ParcelRequestDTO {
+ this := ParcelRequestDTO{}
+ this.Boxes = boxes
+ return &this
+}
+
+// NewParcelRequestDTOWithDefaults instantiates a new ParcelRequestDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewParcelRequestDTOWithDefaults() *ParcelRequestDTO {
+ this := ParcelRequestDTO{}
+ return &this
+}
+
+// GetBoxes returns the Boxes field value
+func (o *ParcelRequestDTO) GetBoxes() []ParcelBoxRequestDTO {
+ if o == nil {
+ var ret []ParcelBoxRequestDTO
+ return ret
+ }
+
+ return o.Boxes
+}
+
+// GetBoxesOk returns a tuple with the Boxes field value
+// and a boolean to check if the value has been set.
+func (o *ParcelRequestDTO) GetBoxesOk() ([]ParcelBoxRequestDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Boxes, true
+}
+
+// SetBoxes sets field value
+func (o *ParcelRequestDTO) SetBoxes(v []ParcelBoxRequestDTO) {
+ o.Boxes = v
+}
+
+func (o ParcelRequestDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ParcelRequestDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["boxes"] = o.Boxes
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ParcelRequestDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "boxes",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varParcelRequestDTO := _ParcelRequestDTO{}
+
+ err = json.Unmarshal(data, &varParcelRequestDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ParcelRequestDTO(varParcelRequestDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "boxes")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableParcelRequestDTO struct {
+ value *ParcelRequestDTO
+ isSet bool
+}
+
+func (v NullableParcelRequestDTO) Get() *ParcelRequestDTO {
+ return v.value
+}
+
+func (v *NullableParcelRequestDTO) Set(val *ParcelRequestDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParcelRequestDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParcelRequestDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParcelRequestDTO(val *ParcelRequestDTO) *NullableParcelRequestDTO {
+ return &NullableParcelRequestDTO{value: val, isSet: true}
+}
+
+func (v NullableParcelRequestDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParcelRequestDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_partner_shipment_warehouse_dto.go b/pkg/api/yandex/ymclient/model_partner_shipment_warehouse_dto.go
new file mode 100644
index 0000000..fc03932
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_partner_shipment_warehouse_dto.go
@@ -0,0 +1,243 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PartnerShipmentWarehouseDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PartnerShipmentWarehouseDTO{}
+
+// PartnerShipmentWarehouseDTO Данные о складе отправления.
+type PartnerShipmentWarehouseDTO struct {
+ // Идентификатор склада отправления.
+ Id int64 `json:"id"`
+ // Наименование склада отправления.
+ Name *string `json:"name,omitempty"`
+ // Адрес склада отправления.
+ Address *string `json:"address,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PartnerShipmentWarehouseDTO PartnerShipmentWarehouseDTO
+
+// NewPartnerShipmentWarehouseDTO instantiates a new PartnerShipmentWarehouseDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPartnerShipmentWarehouseDTO(id int64) *PartnerShipmentWarehouseDTO {
+ this := PartnerShipmentWarehouseDTO{}
+ this.Id = id
+ return &this
+}
+
+// NewPartnerShipmentWarehouseDTOWithDefaults instantiates a new PartnerShipmentWarehouseDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPartnerShipmentWarehouseDTOWithDefaults() *PartnerShipmentWarehouseDTO {
+ this := PartnerShipmentWarehouseDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *PartnerShipmentWarehouseDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *PartnerShipmentWarehouseDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *PartnerShipmentWarehouseDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PartnerShipmentWarehouseDTO) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartnerShipmentWarehouseDTO) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *PartnerShipmentWarehouseDTO) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *PartnerShipmentWarehouseDTO) SetName(v string) {
+ o.Name = &v
+}
+
+// GetAddress returns the Address field value if set, zero value otherwise.
+func (o *PartnerShipmentWarehouseDTO) GetAddress() string {
+ if o == nil || IsNil(o.Address) {
+ var ret string
+ return ret
+ }
+ return *o.Address
+}
+
+// GetAddressOk returns a tuple with the Address field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartnerShipmentWarehouseDTO) GetAddressOk() (*string, bool) {
+ if o == nil || IsNil(o.Address) {
+ return nil, false
+ }
+ return o.Address, true
+}
+
+// HasAddress returns a boolean if a field has been set.
+func (o *PartnerShipmentWarehouseDTO) HasAddress() bool {
+ if o != nil && !IsNil(o.Address) {
+ return true
+ }
+
+ return false
+}
+
+// SetAddress gets a reference to the given string and assigns it to the Address field.
+func (o *PartnerShipmentWarehouseDTO) SetAddress(v string) {
+ o.Address = &v
+}
+
+func (o PartnerShipmentWarehouseDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PartnerShipmentWarehouseDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Address) {
+ toSerialize["address"] = o.Address
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PartnerShipmentWarehouseDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPartnerShipmentWarehouseDTO := _PartnerShipmentWarehouseDTO{}
+
+ err = json.Unmarshal(data, &varPartnerShipmentWarehouseDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PartnerShipmentWarehouseDTO(varPartnerShipmentWarehouseDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "address")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePartnerShipmentWarehouseDTO struct {
+ value *PartnerShipmentWarehouseDTO
+ isSet bool
+}
+
+func (v NullablePartnerShipmentWarehouseDTO) Get() *PartnerShipmentWarehouseDTO {
+ return v.value
+}
+
+func (v *NullablePartnerShipmentWarehouseDTO) Set(val *PartnerShipmentWarehouseDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePartnerShipmentWarehouseDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePartnerShipmentWarehouseDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePartnerShipmentWarehouseDTO(val *PartnerShipmentWarehouseDTO) *NullablePartnerShipmentWarehouseDTO {
+ return &NullablePartnerShipmentWarehouseDTO{value: val, isSet: true}
+}
+
+func (v NullablePartnerShipmentWarehouseDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePartnerShipmentWarehouseDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_payment_frequency_type.go b/pkg/api/yandex/ymclient/model_payment_frequency_type.go
new file mode 100644
index 0000000..d84e574
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_payment_frequency_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PaymentFrequencyType Частота выплат: * `DAILY` — ежедневно. * `WEEKLY` — раз в неделю. * `BIWEEKLY` — раз в две недели. * `MONTHLY` — раз в месяц. Подробнее о графике выплат читайте [в Справке Маркета для продавцов](https://yandex.ru/support/marketplace/introduction/rates/acquiring.html).
+type PaymentFrequencyType string
+
+// List of PaymentFrequencyType
+const (
+ PAYMENTFREQUENCYTYPE_DAILY PaymentFrequencyType = "DAILY"
+ PAYMENTFREQUENCYTYPE_WEEKLY PaymentFrequencyType = "WEEKLY"
+ PAYMENTFREQUENCYTYPE_BIWEEKLY PaymentFrequencyType = "BIWEEKLY"
+ PAYMENTFREQUENCYTYPE_MONTHLY PaymentFrequencyType = "MONTHLY"
+)
+
+// All allowed values of PaymentFrequencyType enum
+var AllowedPaymentFrequencyTypeEnumValues = []PaymentFrequencyType{
+ "DAILY",
+ "WEEKLY",
+ "BIWEEKLY",
+ "MONTHLY",
+}
+
+func (v *PaymentFrequencyType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PaymentFrequencyType(value)
+ for _, existing := range AllowedPaymentFrequencyTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PaymentFrequencyType", value)
+}
+
+// NewPaymentFrequencyTypeFromValue returns a pointer to a valid PaymentFrequencyType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPaymentFrequencyTypeFromValue(v string) (*PaymentFrequencyType, error) {
+ ev := PaymentFrequencyType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PaymentFrequencyType: valid values are %v", v, AllowedPaymentFrequencyTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PaymentFrequencyType) IsValid() bool {
+ for _, existing := range AllowedPaymentFrequencyTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PaymentFrequencyType value
+func (v PaymentFrequencyType) Ptr() *PaymentFrequencyType {
+ return &v
+}
+
+type NullablePaymentFrequencyType struct {
+ value *PaymentFrequencyType
+ isSet bool
+}
+
+func (v NullablePaymentFrequencyType) Get() *PaymentFrequencyType {
+ return v.value
+}
+
+func (v *NullablePaymentFrequencyType) Set(val *PaymentFrequencyType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaymentFrequencyType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaymentFrequencyType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaymentFrequencyType(val *PaymentFrequencyType) *NullablePaymentFrequencyType {
+ return &NullablePaymentFrequencyType{value: val, isSet: true}
+}
+
+func (v NullablePaymentFrequencyType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaymentFrequencyType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_pickup_address_dto.go b/pkg/api/yandex/ymclient/model_pickup_address_dto.go
new file mode 100644
index 0000000..9876739
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_pickup_address_dto.go
@@ -0,0 +1,306 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the PickupAddressDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PickupAddressDTO{}
+
+// PickupAddressDTO Адрес доставки.
+type PickupAddressDTO struct {
+ // Страна.
+ Country *string `json:"country,omitempty"`
+ // Город.
+ City *string `json:"city,omitempty"`
+ // Улица.
+ Street *string `json:"street,omitempty"`
+ // Номер дома.
+ House *string `json:"house,omitempty"`
+ // Почтовый индекс.
+ Postcode *string `json:"postcode,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PickupAddressDTO PickupAddressDTO
+
+// NewPickupAddressDTO instantiates a new PickupAddressDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPickupAddressDTO() *PickupAddressDTO {
+ this := PickupAddressDTO{}
+ return &this
+}
+
+// NewPickupAddressDTOWithDefaults instantiates a new PickupAddressDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPickupAddressDTOWithDefaults() *PickupAddressDTO {
+ this := PickupAddressDTO{}
+ return &this
+}
+
+// GetCountry returns the Country field value if set, zero value otherwise.
+func (o *PickupAddressDTO) GetCountry() string {
+ if o == nil || IsNil(o.Country) {
+ var ret string
+ return ret
+ }
+ return *o.Country
+}
+
+// GetCountryOk returns a tuple with the Country field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PickupAddressDTO) GetCountryOk() (*string, bool) {
+ if o == nil || IsNil(o.Country) {
+ return nil, false
+ }
+ return o.Country, true
+}
+
+// HasCountry returns a boolean if a field has been set.
+func (o *PickupAddressDTO) HasCountry() bool {
+ if o != nil && !IsNil(o.Country) {
+ return true
+ }
+
+ return false
+}
+
+// SetCountry gets a reference to the given string and assigns it to the Country field.
+func (o *PickupAddressDTO) SetCountry(v string) {
+ o.Country = &v
+}
+
+// GetCity returns the City field value if set, zero value otherwise.
+func (o *PickupAddressDTO) GetCity() string {
+ if o == nil || IsNil(o.City) {
+ var ret string
+ return ret
+ }
+ return *o.City
+}
+
+// GetCityOk returns a tuple with the City field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PickupAddressDTO) GetCityOk() (*string, bool) {
+ if o == nil || IsNil(o.City) {
+ return nil, false
+ }
+ return o.City, true
+}
+
+// HasCity returns a boolean if a field has been set.
+func (o *PickupAddressDTO) HasCity() bool {
+ if o != nil && !IsNil(o.City) {
+ return true
+ }
+
+ return false
+}
+
+// SetCity gets a reference to the given string and assigns it to the City field.
+func (o *PickupAddressDTO) SetCity(v string) {
+ o.City = &v
+}
+
+// GetStreet returns the Street field value if set, zero value otherwise.
+func (o *PickupAddressDTO) GetStreet() string {
+ if o == nil || IsNil(o.Street) {
+ var ret string
+ return ret
+ }
+ return *o.Street
+}
+
+// GetStreetOk returns a tuple with the Street field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PickupAddressDTO) GetStreetOk() (*string, bool) {
+ if o == nil || IsNil(o.Street) {
+ return nil, false
+ }
+ return o.Street, true
+}
+
+// HasStreet returns a boolean if a field has been set.
+func (o *PickupAddressDTO) HasStreet() bool {
+ if o != nil && !IsNil(o.Street) {
+ return true
+ }
+
+ return false
+}
+
+// SetStreet gets a reference to the given string and assigns it to the Street field.
+func (o *PickupAddressDTO) SetStreet(v string) {
+ o.Street = &v
+}
+
+// GetHouse returns the House field value if set, zero value otherwise.
+func (o *PickupAddressDTO) GetHouse() string {
+ if o == nil || IsNil(o.House) {
+ var ret string
+ return ret
+ }
+ return *o.House
+}
+
+// GetHouseOk returns a tuple with the House field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PickupAddressDTO) GetHouseOk() (*string, bool) {
+ if o == nil || IsNil(o.House) {
+ return nil, false
+ }
+ return o.House, true
+}
+
+// HasHouse returns a boolean if a field has been set.
+func (o *PickupAddressDTO) HasHouse() bool {
+ if o != nil && !IsNil(o.House) {
+ return true
+ }
+
+ return false
+}
+
+// SetHouse gets a reference to the given string and assigns it to the House field.
+func (o *PickupAddressDTO) SetHouse(v string) {
+ o.House = &v
+}
+
+// GetPostcode returns the Postcode field value if set, zero value otherwise.
+func (o *PickupAddressDTO) GetPostcode() string {
+ if o == nil || IsNil(o.Postcode) {
+ var ret string
+ return ret
+ }
+ return *o.Postcode
+}
+
+// GetPostcodeOk returns a tuple with the Postcode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PickupAddressDTO) GetPostcodeOk() (*string, bool) {
+ if o == nil || IsNil(o.Postcode) {
+ return nil, false
+ }
+ return o.Postcode, true
+}
+
+// HasPostcode returns a boolean if a field has been set.
+func (o *PickupAddressDTO) HasPostcode() bool {
+ if o != nil && !IsNil(o.Postcode) {
+ return true
+ }
+
+ return false
+}
+
+// SetPostcode gets a reference to the given string and assigns it to the Postcode field.
+func (o *PickupAddressDTO) SetPostcode(v string) {
+ o.Postcode = &v
+}
+
+func (o PickupAddressDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PickupAddressDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Country) {
+ toSerialize["country"] = o.Country
+ }
+ if !IsNil(o.City) {
+ toSerialize["city"] = o.City
+ }
+ if !IsNil(o.Street) {
+ toSerialize["street"] = o.Street
+ }
+ if !IsNil(o.House) {
+ toSerialize["house"] = o.House
+ }
+ if !IsNil(o.Postcode) {
+ toSerialize["postcode"] = o.Postcode
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PickupAddressDTO) UnmarshalJSON(data []byte) (err error) {
+ varPickupAddressDTO := _PickupAddressDTO{}
+
+ err = json.Unmarshal(data, &varPickupAddressDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PickupAddressDTO(varPickupAddressDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "country")
+ delete(additionalProperties, "city")
+ delete(additionalProperties, "street")
+ delete(additionalProperties, "house")
+ delete(additionalProperties, "postcode")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePickupAddressDTO struct {
+ value *PickupAddressDTO
+ isSet bool
+}
+
+func (v NullablePickupAddressDTO) Get() *PickupAddressDTO {
+ return v.value
+}
+
+func (v *NullablePickupAddressDTO) Set(val *PickupAddressDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePickupAddressDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePickupAddressDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePickupAddressDTO(val *PickupAddressDTO) *NullablePickupAddressDTO {
+ return &NullablePickupAddressDTO{value: val, isSet: true}
+}
+
+func (v NullablePickupAddressDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePickupAddressDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_placement_type.go b/pkg/api/yandex/ymclient/model_placement_type.go
new file mode 100644
index 0000000..67cfec8
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_placement_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PlacementType Модель, по которой работает магазин: * `FBS` — FBS или Экспресс. * `FBY` — FBY. * `DBS` — DBS.
+type PlacementType string
+
+// List of PlacementType
+const (
+ PLACEMENTTYPE_FBS PlacementType = "FBS"
+ PLACEMENTTYPE_FBY PlacementType = "FBY"
+ PLACEMENTTYPE_DBS PlacementType = "DBS"
+)
+
+// All allowed values of PlacementType enum
+var AllowedPlacementTypeEnumValues = []PlacementType{
+ "FBS",
+ "FBY",
+ "DBS",
+}
+
+func (v *PlacementType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PlacementType(value)
+ for _, existing := range AllowedPlacementTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PlacementType", value)
+}
+
+// NewPlacementTypeFromValue returns a pointer to a valid PlacementType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPlacementTypeFromValue(v string) (*PlacementType, error) {
+ ev := PlacementType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PlacementType: valid values are %v", v, AllowedPlacementTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PlacementType) IsValid() bool {
+ for _, existing := range AllowedPlacementTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PlacementType value
+func (v PlacementType) Ptr() *PlacementType {
+ return &v
+}
+
+type NullablePlacementType struct {
+ value *PlacementType
+ isSet bool
+}
+
+func (v NullablePlacementType) Get() *PlacementType {
+ return v.value
+}
+
+func (v *NullablePlacementType) Set(val *PlacementType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePlacementType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePlacementType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePlacementType(val *PlacementType) *NullablePlacementType {
+ return &NullablePlacementType{value: val, isSet: true}
+}
+
+func (v NullablePlacementType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePlacementType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_competitiveness_thresholds_dto.go b/pkg/api/yandex/ymclient/model_price_competitiveness_thresholds_dto.go
new file mode 100644
index 0000000..c66a4b4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_competitiveness_thresholds_dto.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the PriceCompetitivenessThresholdsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PriceCompetitivenessThresholdsDTO{}
+
+// PriceCompetitivenessThresholdsDTO Максимальные значения цены, при которых она является привлекательной или умеренной.
+type PriceCompetitivenessThresholdsDTO struct {
+ OptimalPrice *BasePriceDTO `json:"optimalPrice,omitempty"`
+ AveragePrice *BasePriceDTO `json:"averagePrice,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PriceCompetitivenessThresholdsDTO PriceCompetitivenessThresholdsDTO
+
+// NewPriceCompetitivenessThresholdsDTO instantiates a new PriceCompetitivenessThresholdsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPriceCompetitivenessThresholdsDTO() *PriceCompetitivenessThresholdsDTO {
+ this := PriceCompetitivenessThresholdsDTO{}
+ return &this
+}
+
+// NewPriceCompetitivenessThresholdsDTOWithDefaults instantiates a new PriceCompetitivenessThresholdsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPriceCompetitivenessThresholdsDTOWithDefaults() *PriceCompetitivenessThresholdsDTO {
+ this := PriceCompetitivenessThresholdsDTO{}
+ return &this
+}
+
+// GetOptimalPrice returns the OptimalPrice field value if set, zero value otherwise.
+func (o *PriceCompetitivenessThresholdsDTO) GetOptimalPrice() BasePriceDTO {
+ if o == nil || IsNil(o.OptimalPrice) {
+ var ret BasePriceDTO
+ return ret
+ }
+ return *o.OptimalPrice
+}
+
+// GetOptimalPriceOk returns a tuple with the OptimalPrice field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceCompetitivenessThresholdsDTO) GetOptimalPriceOk() (*BasePriceDTO, bool) {
+ if o == nil || IsNil(o.OptimalPrice) {
+ return nil, false
+ }
+ return o.OptimalPrice, true
+}
+
+// HasOptimalPrice returns a boolean if a field has been set.
+func (o *PriceCompetitivenessThresholdsDTO) HasOptimalPrice() bool {
+ if o != nil && !IsNil(o.OptimalPrice) {
+ return true
+ }
+
+ return false
+}
+
+// SetOptimalPrice gets a reference to the given BasePriceDTO and assigns it to the OptimalPrice field.
+func (o *PriceCompetitivenessThresholdsDTO) SetOptimalPrice(v BasePriceDTO) {
+ o.OptimalPrice = &v
+}
+
+// GetAveragePrice returns the AveragePrice field value if set, zero value otherwise.
+func (o *PriceCompetitivenessThresholdsDTO) GetAveragePrice() BasePriceDTO {
+ if o == nil || IsNil(o.AveragePrice) {
+ var ret BasePriceDTO
+ return ret
+ }
+ return *o.AveragePrice
+}
+
+// GetAveragePriceOk returns a tuple with the AveragePrice field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceCompetitivenessThresholdsDTO) GetAveragePriceOk() (*BasePriceDTO, bool) {
+ if o == nil || IsNil(o.AveragePrice) {
+ return nil, false
+ }
+ return o.AveragePrice, true
+}
+
+// HasAveragePrice returns a boolean if a field has been set.
+func (o *PriceCompetitivenessThresholdsDTO) HasAveragePrice() bool {
+ if o != nil && !IsNil(o.AveragePrice) {
+ return true
+ }
+
+ return false
+}
+
+// SetAveragePrice gets a reference to the given BasePriceDTO and assigns it to the AveragePrice field.
+func (o *PriceCompetitivenessThresholdsDTO) SetAveragePrice(v BasePriceDTO) {
+ o.AveragePrice = &v
+}
+
+func (o PriceCompetitivenessThresholdsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PriceCompetitivenessThresholdsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.OptimalPrice) {
+ toSerialize["optimalPrice"] = o.OptimalPrice
+ }
+ if !IsNil(o.AveragePrice) {
+ toSerialize["averagePrice"] = o.AveragePrice
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PriceCompetitivenessThresholdsDTO) UnmarshalJSON(data []byte) (err error) {
+ varPriceCompetitivenessThresholdsDTO := _PriceCompetitivenessThresholdsDTO{}
+
+ err = json.Unmarshal(data, &varPriceCompetitivenessThresholdsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PriceCompetitivenessThresholdsDTO(varPriceCompetitivenessThresholdsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "optimalPrice")
+ delete(additionalProperties, "averagePrice")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePriceCompetitivenessThresholdsDTO struct {
+ value *PriceCompetitivenessThresholdsDTO
+ isSet bool
+}
+
+func (v NullablePriceCompetitivenessThresholdsDTO) Get() *PriceCompetitivenessThresholdsDTO {
+ return v.value
+}
+
+func (v *NullablePriceCompetitivenessThresholdsDTO) Set(val *PriceCompetitivenessThresholdsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceCompetitivenessThresholdsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceCompetitivenessThresholdsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceCompetitivenessThresholdsDTO(val *PriceCompetitivenessThresholdsDTO) *NullablePriceCompetitivenessThresholdsDTO {
+ return &NullablePriceCompetitivenessThresholdsDTO{value: val, isSet: true}
+}
+
+func (v NullablePriceCompetitivenessThresholdsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceCompetitivenessThresholdsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_competitiveness_type.go b/pkg/api/yandex/ymclient/model_price_competitiveness_type.go
new file mode 100644
index 0000000..1a1bc60
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_competitiveness_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PriceCompetitivenessType Привлекательность цены: * `OPTIMAL` — привлекательная. * `AVERAGE` — умеренная. * `LOW` — непривлекательная.
+type PriceCompetitivenessType string
+
+// List of PriceCompetitivenessType
+const (
+ PRICECOMPETITIVENESSTYPE_OPTIMAL PriceCompetitivenessType = "OPTIMAL"
+ PRICECOMPETITIVENESSTYPE_AVERAGE PriceCompetitivenessType = "AVERAGE"
+ PRICECOMPETITIVENESSTYPE_LOW PriceCompetitivenessType = "LOW"
+)
+
+// All allowed values of PriceCompetitivenessType enum
+var AllowedPriceCompetitivenessTypeEnumValues = []PriceCompetitivenessType{
+ "OPTIMAL",
+ "AVERAGE",
+ "LOW",
+}
+
+func (v *PriceCompetitivenessType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PriceCompetitivenessType(value)
+ for _, existing := range AllowedPriceCompetitivenessTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PriceCompetitivenessType", value)
+}
+
+// NewPriceCompetitivenessTypeFromValue returns a pointer to a valid PriceCompetitivenessType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPriceCompetitivenessTypeFromValue(v string) (*PriceCompetitivenessType, error) {
+ ev := PriceCompetitivenessType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PriceCompetitivenessType: valid values are %v", v, AllowedPriceCompetitivenessTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PriceCompetitivenessType) IsValid() bool {
+ for _, existing := range AllowedPriceCompetitivenessTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PriceCompetitivenessType value
+func (v PriceCompetitivenessType) Ptr() *PriceCompetitivenessType {
+ return &v
+}
+
+type NullablePriceCompetitivenessType struct {
+ value *PriceCompetitivenessType
+ isSet bool
+}
+
+func (v NullablePriceCompetitivenessType) Get() *PriceCompetitivenessType {
+ return v.value
+}
+
+func (v *NullablePriceCompetitivenessType) Set(val *PriceCompetitivenessType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceCompetitivenessType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceCompetitivenessType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceCompetitivenessType(val *PriceCompetitivenessType) *NullablePriceCompetitivenessType {
+ return &NullablePriceCompetitivenessType{value: val, isSet: true}
+}
+
+func (v NullablePriceCompetitivenessType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceCompetitivenessType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_dto.go b/pkg/api/yandex/ymclient/model_price_dto.go
new file mode 100644
index 0000000..c6505ee
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_dto.go
@@ -0,0 +1,267 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the PriceDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PriceDTO{}
+
+// PriceDTO Цена с указанием скидки, валюты и времени последнего обновления.
+type PriceDTO struct {
+ // Цена на товар.
+ Value *float32 `json:"value,omitempty"`
+ // Зачеркнутая цена. Число должно быть целым. Вы можете указать цену со скидкой от 5 до 99%. Передавайте этот параметр при каждом обновлении цены, если предоставляете скидку на товар.
+ DiscountBase *float32 `json:"discountBase,omitempty"`
+ CurrencyId *CurrencyType `json:"currencyId,omitempty"`
+ // Идентификатор НДС, применяемый для товара: * `2` — НДС 10%. Например, используется при реализации отдельных продовольственных и медицинских товаров. * `5` — НДС 0%. Например, используется при продаже товаров, вывезенных в таможенной процедуре экспорта, или при оказании услуг по международной перевозке товаров. * `6` — НДС не облагается, используется только для отдельных видов услуг. * `7` — НДС 20%. Основной НДС с 2019 года. * `10` — НДС 5%. НДС для упрощенной системы налогообложения (УСН). * `11` — НДС 7%. НДС для упрощенной системы налогообложения (УСН). Если параметр не указан, используется НДС, установленный в кабинете. **Для продавцов :no-translate[Market Yandex Go]** недоступна передача и получение НДС.
+ Vat *int32 `json:"vat,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PriceDTO PriceDTO
+
+// NewPriceDTO instantiates a new PriceDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPriceDTO() *PriceDTO {
+ this := PriceDTO{}
+ return &this
+}
+
+// NewPriceDTOWithDefaults instantiates a new PriceDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPriceDTOWithDefaults() *PriceDTO {
+ this := PriceDTO{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *PriceDTO) GetValue() float32 {
+ if o == nil || IsNil(o.Value) {
+ var ret float32
+ return ret
+ }
+ return *o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceDTO) GetValueOk() (*float32, bool) {
+ if o == nil || IsNil(o.Value) {
+ return nil, false
+ }
+ return o.Value, true
+}
+
+// HasValue returns a boolean if a field has been set.
+func (o *PriceDTO) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given float32 and assigns it to the Value field.
+func (o *PriceDTO) SetValue(v float32) {
+ o.Value = &v
+}
+
+// GetDiscountBase returns the DiscountBase field value if set, zero value otherwise.
+func (o *PriceDTO) GetDiscountBase() float32 {
+ if o == nil || IsNil(o.DiscountBase) {
+ var ret float32
+ return ret
+ }
+ return *o.DiscountBase
+}
+
+// GetDiscountBaseOk returns a tuple with the DiscountBase field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceDTO) GetDiscountBaseOk() (*float32, bool) {
+ if o == nil || IsNil(o.DiscountBase) {
+ return nil, false
+ }
+ return o.DiscountBase, true
+}
+
+// HasDiscountBase returns a boolean if a field has been set.
+func (o *PriceDTO) HasDiscountBase() bool {
+ if o != nil && !IsNil(o.DiscountBase) {
+ return true
+ }
+
+ return false
+}
+
+// SetDiscountBase gets a reference to the given float32 and assigns it to the DiscountBase field.
+func (o *PriceDTO) SetDiscountBase(v float32) {
+ o.DiscountBase = &v
+}
+
+// GetCurrencyId returns the CurrencyId field value if set, zero value otherwise.
+func (o *PriceDTO) GetCurrencyId() CurrencyType {
+ if o == nil || IsNil(o.CurrencyId) {
+ var ret CurrencyType
+ return ret
+ }
+ return *o.CurrencyId
+}
+
+// GetCurrencyIdOk returns a tuple with the CurrencyId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceDTO) GetCurrencyIdOk() (*CurrencyType, bool) {
+ if o == nil || IsNil(o.CurrencyId) {
+ return nil, false
+ }
+ return o.CurrencyId, true
+}
+
+// HasCurrencyId returns a boolean if a field has been set.
+func (o *PriceDTO) HasCurrencyId() bool {
+ if o != nil && !IsNil(o.CurrencyId) {
+ return true
+ }
+
+ return false
+}
+
+// SetCurrencyId gets a reference to the given CurrencyType and assigns it to the CurrencyId field.
+func (o *PriceDTO) SetCurrencyId(v CurrencyType) {
+ o.CurrencyId = &v
+}
+
+// GetVat returns the Vat field value if set, zero value otherwise.
+func (o *PriceDTO) GetVat() int32 {
+ if o == nil || IsNil(o.Vat) {
+ var ret int32
+ return ret
+ }
+ return *o.Vat
+}
+
+// GetVatOk returns a tuple with the Vat field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceDTO) GetVatOk() (*int32, bool) {
+ if o == nil || IsNil(o.Vat) {
+ return nil, false
+ }
+ return o.Vat, true
+}
+
+// HasVat returns a boolean if a field has been set.
+func (o *PriceDTO) HasVat() bool {
+ if o != nil && !IsNil(o.Vat) {
+ return true
+ }
+
+ return false
+}
+
+// SetVat gets a reference to the given int32 and assigns it to the Vat field.
+func (o *PriceDTO) SetVat(v int32) {
+ o.Vat = &v
+}
+
+func (o PriceDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PriceDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Value) {
+ toSerialize["value"] = o.Value
+ }
+ if !IsNil(o.DiscountBase) {
+ toSerialize["discountBase"] = o.DiscountBase
+ }
+ if !IsNil(o.CurrencyId) {
+ toSerialize["currencyId"] = o.CurrencyId
+ }
+ if !IsNil(o.Vat) {
+ toSerialize["vat"] = o.Vat
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PriceDTO) UnmarshalJSON(data []byte) (err error) {
+ varPriceDTO := _PriceDTO{}
+
+ err = json.Unmarshal(data, &varPriceDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PriceDTO(varPriceDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "value")
+ delete(additionalProperties, "discountBase")
+ delete(additionalProperties, "currencyId")
+ delete(additionalProperties, "vat")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePriceDTO struct {
+ value *PriceDTO
+ isSet bool
+}
+
+func (v NullablePriceDTO) Get() *PriceDTO {
+ return v.value
+}
+
+func (v *NullablePriceDTO) Set(val *PriceDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceDTO(val *PriceDTO) *NullablePriceDTO {
+ return &NullablePriceDTO{value: val, isSet: true}
+}
+
+func (v NullablePriceDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_quarantine_verdict_dto.go b/pkg/api/yandex/ymclient/model_price_quarantine_verdict_dto.go
new file mode 100644
index 0000000..811c348
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_quarantine_verdict_dto.go
@@ -0,0 +1,204 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PriceQuarantineVerdictDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PriceQuarantineVerdictDTO{}
+
+// PriceQuarantineVerdictDTO Причина попадания товара в карантин.
+type PriceQuarantineVerdictDTO struct {
+ Type *PriceQuarantineVerdictType `json:"type,omitempty"`
+ // Цена, из-за которой товар попал в карантин, и значения для сравнения. Конкретный набор параметров зависит от типа карантина.
+ Params []PriceQuarantineVerdictParameterDTO `json:"params"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PriceQuarantineVerdictDTO PriceQuarantineVerdictDTO
+
+// NewPriceQuarantineVerdictDTO instantiates a new PriceQuarantineVerdictDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPriceQuarantineVerdictDTO(params []PriceQuarantineVerdictParameterDTO) *PriceQuarantineVerdictDTO {
+ this := PriceQuarantineVerdictDTO{}
+ this.Params = params
+ return &this
+}
+
+// NewPriceQuarantineVerdictDTOWithDefaults instantiates a new PriceQuarantineVerdictDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPriceQuarantineVerdictDTOWithDefaults() *PriceQuarantineVerdictDTO {
+ this := PriceQuarantineVerdictDTO{}
+ return &this
+}
+
+// GetType returns the Type field value if set, zero value otherwise.
+func (o *PriceQuarantineVerdictDTO) GetType() PriceQuarantineVerdictType {
+ if o == nil || IsNil(o.Type) {
+ var ret PriceQuarantineVerdictType
+ return ret
+ }
+ return *o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceQuarantineVerdictDTO) GetTypeOk() (*PriceQuarantineVerdictType, bool) {
+ if o == nil || IsNil(o.Type) {
+ return nil, false
+ }
+ return o.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *PriceQuarantineVerdictDTO) HasType() bool {
+ if o != nil && !IsNil(o.Type) {
+ return true
+ }
+
+ return false
+}
+
+// SetType gets a reference to the given PriceQuarantineVerdictType and assigns it to the Type field.
+func (o *PriceQuarantineVerdictDTO) SetType(v PriceQuarantineVerdictType) {
+ o.Type = &v
+}
+
+// GetParams returns the Params field value
+func (o *PriceQuarantineVerdictDTO) GetParams() []PriceQuarantineVerdictParameterDTO {
+ if o == nil {
+ var ret []PriceQuarantineVerdictParameterDTO
+ return ret
+ }
+
+ return o.Params
+}
+
+// GetParamsOk returns a tuple with the Params field value
+// and a boolean to check if the value has been set.
+func (o *PriceQuarantineVerdictDTO) GetParamsOk() ([]PriceQuarantineVerdictParameterDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Params, true
+}
+
+// SetParams sets field value
+func (o *PriceQuarantineVerdictDTO) SetParams(v []PriceQuarantineVerdictParameterDTO) {
+ o.Params = v
+}
+
+func (o PriceQuarantineVerdictDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PriceQuarantineVerdictDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Type) {
+ toSerialize["type"] = o.Type
+ }
+ toSerialize["params"] = o.Params
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PriceQuarantineVerdictDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "params",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPriceQuarantineVerdictDTO := _PriceQuarantineVerdictDTO{}
+
+ err = json.Unmarshal(data, &varPriceQuarantineVerdictDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PriceQuarantineVerdictDTO(varPriceQuarantineVerdictDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "params")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePriceQuarantineVerdictDTO struct {
+ value *PriceQuarantineVerdictDTO
+ isSet bool
+}
+
+func (v NullablePriceQuarantineVerdictDTO) Get() *PriceQuarantineVerdictDTO {
+ return v.value
+}
+
+func (v *NullablePriceQuarantineVerdictDTO) Set(val *PriceQuarantineVerdictDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceQuarantineVerdictDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceQuarantineVerdictDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceQuarantineVerdictDTO(val *PriceQuarantineVerdictDTO) *NullablePriceQuarantineVerdictDTO {
+ return &NullablePriceQuarantineVerdictDTO{value: val, isSet: true}
+}
+
+func (v NullablePriceQuarantineVerdictDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceQuarantineVerdictDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_quarantine_verdict_param_name_type.go b/pkg/api/yandex/ymclient/model_price_quarantine_verdict_param_name_type.go
new file mode 100644
index 0000000..10df625
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_quarantine_verdict_param_name_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PriceQuarantineVerdictParamNameType Имя параметра причины скрытия товара по цене. * `CURRENT_PRICE` — цена, из-за которой товар попал в карантин. * `LAST_VALID_PRICE` — последняя цена до попадания в карантин (только для карантина типа `PRICE_CHANGE`). * `MIN_PRICE` — порог попадания в карантин (только для карантина типов `LOW_PRICE` и `LOW_PRICE_PROMO`). * `CURRENCY` — валюта.
+type PriceQuarantineVerdictParamNameType string
+
+// List of PriceQuarantineVerdictParamNameType
+const (
+ PRICEQUARANTINEVERDICTPARAMNAMETYPE_CURRENT_PRICE PriceQuarantineVerdictParamNameType = "CURRENT_PRICE"
+ PRICEQUARANTINEVERDICTPARAMNAMETYPE_LAST_VALID_PRICE PriceQuarantineVerdictParamNameType = "LAST_VALID_PRICE"
+ PRICEQUARANTINEVERDICTPARAMNAMETYPE_MIN_PRICE PriceQuarantineVerdictParamNameType = "MIN_PRICE"
+ PRICEQUARANTINEVERDICTPARAMNAMETYPE_CURRENCY PriceQuarantineVerdictParamNameType = "CURRENCY"
+)
+
+// All allowed values of PriceQuarantineVerdictParamNameType enum
+var AllowedPriceQuarantineVerdictParamNameTypeEnumValues = []PriceQuarantineVerdictParamNameType{
+ "CURRENT_PRICE",
+ "LAST_VALID_PRICE",
+ "MIN_PRICE",
+ "CURRENCY",
+}
+
+func (v *PriceQuarantineVerdictParamNameType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PriceQuarantineVerdictParamNameType(value)
+ for _, existing := range AllowedPriceQuarantineVerdictParamNameTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PriceQuarantineVerdictParamNameType", value)
+}
+
+// NewPriceQuarantineVerdictParamNameTypeFromValue returns a pointer to a valid PriceQuarantineVerdictParamNameType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPriceQuarantineVerdictParamNameTypeFromValue(v string) (*PriceQuarantineVerdictParamNameType, error) {
+ ev := PriceQuarantineVerdictParamNameType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PriceQuarantineVerdictParamNameType: valid values are %v", v, AllowedPriceQuarantineVerdictParamNameTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PriceQuarantineVerdictParamNameType) IsValid() bool {
+ for _, existing := range AllowedPriceQuarantineVerdictParamNameTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PriceQuarantineVerdictParamNameType value
+func (v PriceQuarantineVerdictParamNameType) Ptr() *PriceQuarantineVerdictParamNameType {
+ return &v
+}
+
+type NullablePriceQuarantineVerdictParamNameType struct {
+ value *PriceQuarantineVerdictParamNameType
+ isSet bool
+}
+
+func (v NullablePriceQuarantineVerdictParamNameType) Get() *PriceQuarantineVerdictParamNameType {
+ return v.value
+}
+
+func (v *NullablePriceQuarantineVerdictParamNameType) Set(val *PriceQuarantineVerdictParamNameType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceQuarantineVerdictParamNameType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceQuarantineVerdictParamNameType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceQuarantineVerdictParamNameType(val *PriceQuarantineVerdictParamNameType) *NullablePriceQuarantineVerdictParamNameType {
+ return &NullablePriceQuarantineVerdictParamNameType{value: val, isSet: true}
+}
+
+func (v NullablePriceQuarantineVerdictParamNameType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceQuarantineVerdictParamNameType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_quarantine_verdict_parameter_dto.go b/pkg/api/yandex/ymclient/model_price_quarantine_verdict_parameter_dto.go
new file mode 100644
index 0000000..6baf271
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_quarantine_verdict_parameter_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PriceQuarantineVerdictParameterDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PriceQuarantineVerdictParameterDTO{}
+
+// PriceQuarantineVerdictParameterDTO Параметр карантина.
+type PriceQuarantineVerdictParameterDTO struct {
+ Name PriceQuarantineVerdictParamNameType `json:"name"`
+ // Значение параметра.
+ Value string `json:"value"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PriceQuarantineVerdictParameterDTO PriceQuarantineVerdictParameterDTO
+
+// NewPriceQuarantineVerdictParameterDTO instantiates a new PriceQuarantineVerdictParameterDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPriceQuarantineVerdictParameterDTO(name PriceQuarantineVerdictParamNameType, value string) *PriceQuarantineVerdictParameterDTO {
+ this := PriceQuarantineVerdictParameterDTO{}
+ this.Name = name
+ this.Value = value
+ return &this
+}
+
+// NewPriceQuarantineVerdictParameterDTOWithDefaults instantiates a new PriceQuarantineVerdictParameterDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPriceQuarantineVerdictParameterDTOWithDefaults() *PriceQuarantineVerdictParameterDTO {
+ this := PriceQuarantineVerdictParameterDTO{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *PriceQuarantineVerdictParameterDTO) GetName() PriceQuarantineVerdictParamNameType {
+ if o == nil {
+ var ret PriceQuarantineVerdictParamNameType
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *PriceQuarantineVerdictParameterDTO) GetNameOk() (*PriceQuarantineVerdictParamNameType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *PriceQuarantineVerdictParameterDTO) SetName(v PriceQuarantineVerdictParamNameType) {
+ o.Name = v
+}
+
+// GetValue returns the Value field value
+func (o *PriceQuarantineVerdictParameterDTO) GetValue() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value
+// and a boolean to check if the value has been set.
+func (o *PriceQuarantineVerdictParameterDTO) GetValueOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Value, true
+}
+
+// SetValue sets field value
+func (o *PriceQuarantineVerdictParameterDTO) SetValue(v string) {
+ o.Value = v
+}
+
+func (o PriceQuarantineVerdictParameterDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PriceQuarantineVerdictParameterDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ toSerialize["value"] = o.Value
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PriceQuarantineVerdictParameterDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ "value",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPriceQuarantineVerdictParameterDTO := _PriceQuarantineVerdictParameterDTO{}
+
+ err = json.Unmarshal(data, &varPriceQuarantineVerdictParameterDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PriceQuarantineVerdictParameterDTO(varPriceQuarantineVerdictParameterDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "value")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePriceQuarantineVerdictParameterDTO struct {
+ value *PriceQuarantineVerdictParameterDTO
+ isSet bool
+}
+
+func (v NullablePriceQuarantineVerdictParameterDTO) Get() *PriceQuarantineVerdictParameterDTO {
+ return v.value
+}
+
+func (v *NullablePriceQuarantineVerdictParameterDTO) Set(val *PriceQuarantineVerdictParameterDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceQuarantineVerdictParameterDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceQuarantineVerdictParameterDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceQuarantineVerdictParameterDTO(val *PriceQuarantineVerdictParameterDTO) *NullablePriceQuarantineVerdictParameterDTO {
+ return &NullablePriceQuarantineVerdictParameterDTO{value: val, isSet: true}
+}
+
+func (v NullablePriceQuarantineVerdictParameterDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceQuarantineVerdictParameterDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_quarantine_verdict_type.go b/pkg/api/yandex/ymclient/model_price_quarantine_verdict_type.go
new file mode 100644
index 0000000..fe2ea13
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_quarantine_verdict_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PriceQuarantineVerdictType Типы карантина: * `PRICE_CHANGE` — новая цена слишком сильно отличается от прежней. В поле `params` будет новая цена `CURRENT_PRICE` и последняя цена до попадания в карантин `LAST_VALID_PRICE`. * `LOW_PRICE` — установленная цена слишком сильно отличается от рыночной. В поле `params` будет установленная вами цена `CURRENT_PRICE` и порог попадания в карантин `MIN_PRICE`. * `LOW_PRICE_PROMO` — цена после применения акций слишком сильно отличается от рыночной. В поле `params` будет цена после применения акций `CURRENT_PRICE` и порог попадания в карантин `MIN_PRICE`.
+type PriceQuarantineVerdictType string
+
+// List of PriceQuarantineVerdictType
+const (
+ PRICEQUARANTINEVERDICTTYPE_PRICE_CHANGE PriceQuarantineVerdictType = "PRICE_CHANGE"
+ PRICEQUARANTINEVERDICTTYPE_LOW_PRICE PriceQuarantineVerdictType = "LOW_PRICE"
+ PRICEQUARANTINEVERDICTTYPE_LOW_PRICE_PROMO PriceQuarantineVerdictType = "LOW_PRICE_PROMO"
+)
+
+// All allowed values of PriceQuarantineVerdictType enum
+var AllowedPriceQuarantineVerdictTypeEnumValues = []PriceQuarantineVerdictType{
+ "PRICE_CHANGE",
+ "LOW_PRICE",
+ "LOW_PRICE_PROMO",
+}
+
+func (v *PriceQuarantineVerdictType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PriceQuarantineVerdictType(value)
+ for _, existing := range AllowedPriceQuarantineVerdictTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PriceQuarantineVerdictType", value)
+}
+
+// NewPriceQuarantineVerdictTypeFromValue returns a pointer to a valid PriceQuarantineVerdictType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPriceQuarantineVerdictTypeFromValue(v string) (*PriceQuarantineVerdictType, error) {
+ ev := PriceQuarantineVerdictType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PriceQuarantineVerdictType: valid values are %v", v, AllowedPriceQuarantineVerdictTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PriceQuarantineVerdictType) IsValid() bool {
+ for _, existing := range AllowedPriceQuarantineVerdictTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PriceQuarantineVerdictType value
+func (v PriceQuarantineVerdictType) Ptr() *PriceQuarantineVerdictType {
+ return &v
+}
+
+type NullablePriceQuarantineVerdictType struct {
+ value *PriceQuarantineVerdictType
+ isSet bool
+}
+
+func (v NullablePriceQuarantineVerdictType) Get() *PriceQuarantineVerdictType {
+ return v.value
+}
+
+func (v *NullablePriceQuarantineVerdictType) Set(val *PriceQuarantineVerdictType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceQuarantineVerdictType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceQuarantineVerdictType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceQuarantineVerdictType(val *PriceQuarantineVerdictType) *NullablePriceQuarantineVerdictType {
+ return &NullablePriceQuarantineVerdictType{value: val, isSet: true}
+}
+
+func (v NullablePriceQuarantineVerdictType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceQuarantineVerdictType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_recommendation_item_dto.go b/pkg/api/yandex/ymclient/model_price_recommendation_item_dto.go
new file mode 100644
index 0000000..471ebf6
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_recommendation_item_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PriceRecommendationItemDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PriceRecommendationItemDTO{}
+
+// PriceRecommendationItemDTO Рекомендованная цена.
+type PriceRecommendationItemDTO struct {
+ // Идентификатор кампании. Его можно узнать с помощью запроса [GET campaigns](../../reference/campaigns/getCampaigns.md) или найти в кабинете продавца на Маркете — нажмите на название своего бизнеса и перейдите на страницу: * **Модули и :no-translate[API]** → блок **Передача данных Маркету**. * **Лог запросов** → выпадающий список в блоке **Показывать логи**. ⚠️ Не передавайте вместо него идентификатор магазина, который указан в кабинете продавца на Маркете рядом с названием магазина и в некоторых отчетах.
+ CampaignId int64 `json:"campaignId"`
+ // Рекомендованная цена на товар. Чтобы продвижение хорошо работало, цена на товар должна быть не выше этого значения. [Подробно о рекомендованных ценах](https://yandex.ru/support/marketplace/marketing/campaigns.html#prices)
+ Price float32 `json:"price"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PriceRecommendationItemDTO PriceRecommendationItemDTO
+
+// NewPriceRecommendationItemDTO instantiates a new PriceRecommendationItemDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPriceRecommendationItemDTO(campaignId int64, price float32) *PriceRecommendationItemDTO {
+ this := PriceRecommendationItemDTO{}
+ this.CampaignId = campaignId
+ this.Price = price
+ return &this
+}
+
+// NewPriceRecommendationItemDTOWithDefaults instantiates a new PriceRecommendationItemDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPriceRecommendationItemDTOWithDefaults() *PriceRecommendationItemDTO {
+ this := PriceRecommendationItemDTO{}
+ return &this
+}
+
+// GetCampaignId returns the CampaignId field value
+func (o *PriceRecommendationItemDTO) GetCampaignId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.CampaignId
+}
+
+// GetCampaignIdOk returns a tuple with the CampaignId field value
+// and a boolean to check if the value has been set.
+func (o *PriceRecommendationItemDTO) GetCampaignIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CampaignId, true
+}
+
+// SetCampaignId sets field value
+func (o *PriceRecommendationItemDTO) SetCampaignId(v int64) {
+ o.CampaignId = v
+}
+
+// GetPrice returns the Price field value
+func (o *PriceRecommendationItemDTO) GetPrice() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Price
+}
+
+// GetPriceOk returns a tuple with the Price field value
+// and a boolean to check if the value has been set.
+func (o *PriceRecommendationItemDTO) GetPriceOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Price, true
+}
+
+// SetPrice sets field value
+func (o *PriceRecommendationItemDTO) SetPrice(v float32) {
+ o.Price = v
+}
+
+func (o PriceRecommendationItemDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PriceRecommendationItemDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["campaignId"] = o.CampaignId
+ toSerialize["price"] = o.Price
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PriceRecommendationItemDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "campaignId",
+ "price",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPriceRecommendationItemDTO := _PriceRecommendationItemDTO{}
+
+ err = json.Unmarshal(data, &varPriceRecommendationItemDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PriceRecommendationItemDTO(varPriceRecommendationItemDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "campaignId")
+ delete(additionalProperties, "price")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePriceRecommendationItemDTO struct {
+ value *PriceRecommendationItemDTO
+ isSet bool
+}
+
+func (v NullablePriceRecommendationItemDTO) Get() *PriceRecommendationItemDTO {
+ return v.value
+}
+
+func (v *NullablePriceRecommendationItemDTO) Set(val *PriceRecommendationItemDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceRecommendationItemDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceRecommendationItemDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceRecommendationItemDTO(val *PriceRecommendationItemDTO) *NullablePriceRecommendationItemDTO {
+ return &NullablePriceRecommendationItemDTO{value: val, isSet: true}
+}
+
+func (v NullablePriceRecommendationItemDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceRecommendationItemDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_suggest_dto.go b/pkg/api/yandex/ymclient/model_price_suggest_dto.go
new file mode 100644
index 0000000..c218b06
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_suggest_dto.go
@@ -0,0 +1,191 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the PriceSuggestDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PriceSuggestDTO{}
+
+// PriceSuggestDTO Тип цены.
+type PriceSuggestDTO struct {
+ Type *PriceSuggestType `json:"type,omitempty"`
+ // Цена в рублях.
+ Price *float32 `json:"price,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PriceSuggestDTO PriceSuggestDTO
+
+// NewPriceSuggestDTO instantiates a new PriceSuggestDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPriceSuggestDTO() *PriceSuggestDTO {
+ this := PriceSuggestDTO{}
+ return &this
+}
+
+// NewPriceSuggestDTOWithDefaults instantiates a new PriceSuggestDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPriceSuggestDTOWithDefaults() *PriceSuggestDTO {
+ this := PriceSuggestDTO{}
+ return &this
+}
+
+// GetType returns the Type field value if set, zero value otherwise.
+func (o *PriceSuggestDTO) GetType() PriceSuggestType {
+ if o == nil || IsNil(o.Type) {
+ var ret PriceSuggestType
+ return ret
+ }
+ return *o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceSuggestDTO) GetTypeOk() (*PriceSuggestType, bool) {
+ if o == nil || IsNil(o.Type) {
+ return nil, false
+ }
+ return o.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *PriceSuggestDTO) HasType() bool {
+ if o != nil && !IsNil(o.Type) {
+ return true
+ }
+
+ return false
+}
+
+// SetType gets a reference to the given PriceSuggestType and assigns it to the Type field.
+func (o *PriceSuggestDTO) SetType(v PriceSuggestType) {
+ o.Type = &v
+}
+
+// GetPrice returns the Price field value if set, zero value otherwise.
+func (o *PriceSuggestDTO) GetPrice() float32 {
+ if o == nil || IsNil(o.Price) {
+ var ret float32
+ return ret
+ }
+ return *o.Price
+}
+
+// GetPriceOk returns a tuple with the Price field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceSuggestDTO) GetPriceOk() (*float32, bool) {
+ if o == nil || IsNil(o.Price) {
+ return nil, false
+ }
+ return o.Price, true
+}
+
+// HasPrice returns a boolean if a field has been set.
+func (o *PriceSuggestDTO) HasPrice() bool {
+ if o != nil && !IsNil(o.Price) {
+ return true
+ }
+
+ return false
+}
+
+// SetPrice gets a reference to the given float32 and assigns it to the Price field.
+func (o *PriceSuggestDTO) SetPrice(v float32) {
+ o.Price = &v
+}
+
+func (o PriceSuggestDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PriceSuggestDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Type) {
+ toSerialize["type"] = o.Type
+ }
+ if !IsNil(o.Price) {
+ toSerialize["price"] = o.Price
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PriceSuggestDTO) UnmarshalJSON(data []byte) (err error) {
+ varPriceSuggestDTO := _PriceSuggestDTO{}
+
+ err = json.Unmarshal(data, &varPriceSuggestDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PriceSuggestDTO(varPriceSuggestDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "price")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePriceSuggestDTO struct {
+ value *PriceSuggestDTO
+ isSet bool
+}
+
+func (v NullablePriceSuggestDTO) Get() *PriceSuggestDTO {
+ return v.value
+}
+
+func (v *NullablePriceSuggestDTO) Set(val *PriceSuggestDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceSuggestDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceSuggestDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceSuggestDTO(val *PriceSuggestDTO) *NullablePriceSuggestDTO {
+ return &NullablePriceSuggestDTO{value: val, isSet: true}
+}
+
+func (v NullablePriceSuggestDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceSuggestDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_suggest_offer_dto.go b/pkg/api/yandex/ymclient/model_price_suggest_offer_dto.go
new file mode 100644
index 0000000..30bf47f
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_suggest_offer_dto.go
@@ -0,0 +1,231 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the PriceSuggestOfferDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PriceSuggestOfferDTO{}
+
+// PriceSuggestOfferDTO Товар с ценами для продвижения.
+type PriceSuggestOfferDTO struct {
+ // Идентификатор карточки товара на Маркете.
+ MarketSku *int64 `json:"marketSku,omitempty"`
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId *string `json:"offerId,omitempty" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Цены для продвижения.
+ PriceSuggestion []PriceSuggestDTO `json:"priceSuggestion,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PriceSuggestOfferDTO PriceSuggestOfferDTO
+
+// NewPriceSuggestOfferDTO instantiates a new PriceSuggestOfferDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPriceSuggestOfferDTO() *PriceSuggestOfferDTO {
+ this := PriceSuggestOfferDTO{}
+ return &this
+}
+
+// NewPriceSuggestOfferDTOWithDefaults instantiates a new PriceSuggestOfferDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPriceSuggestOfferDTOWithDefaults() *PriceSuggestOfferDTO {
+ this := PriceSuggestOfferDTO{}
+ return &this
+}
+
+// GetMarketSku returns the MarketSku field value if set, zero value otherwise.
+func (o *PriceSuggestOfferDTO) GetMarketSku() int64 {
+ if o == nil || IsNil(o.MarketSku) {
+ var ret int64
+ return ret
+ }
+ return *o.MarketSku
+}
+
+// GetMarketSkuOk returns a tuple with the MarketSku field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceSuggestOfferDTO) GetMarketSkuOk() (*int64, bool) {
+ if o == nil || IsNil(o.MarketSku) {
+ return nil, false
+ }
+ return o.MarketSku, true
+}
+
+// HasMarketSku returns a boolean if a field has been set.
+func (o *PriceSuggestOfferDTO) HasMarketSku() bool {
+ if o != nil && !IsNil(o.MarketSku) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarketSku gets a reference to the given int64 and assigns it to the MarketSku field.
+func (o *PriceSuggestOfferDTO) SetMarketSku(v int64) {
+ o.MarketSku = &v
+}
+
+// GetOfferId returns the OfferId field value if set, zero value otherwise.
+func (o *PriceSuggestOfferDTO) GetOfferId() string {
+ if o == nil || IsNil(o.OfferId) {
+ var ret string
+ return ret
+ }
+ return *o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceSuggestOfferDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil || IsNil(o.OfferId) {
+ return nil, false
+ }
+ return o.OfferId, true
+}
+
+// HasOfferId returns a boolean if a field has been set.
+func (o *PriceSuggestOfferDTO) HasOfferId() bool {
+ if o != nil && !IsNil(o.OfferId) {
+ return true
+ }
+
+ return false
+}
+
+// SetOfferId gets a reference to the given string and assigns it to the OfferId field.
+func (o *PriceSuggestOfferDTO) SetOfferId(v string) {
+ o.OfferId = &v
+}
+
+// GetPriceSuggestion returns the PriceSuggestion field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PriceSuggestOfferDTO) GetPriceSuggestion() []PriceSuggestDTO {
+ if o == nil {
+ var ret []PriceSuggestDTO
+ return ret
+ }
+ return o.PriceSuggestion
+}
+
+// GetPriceSuggestionOk returns a tuple with the PriceSuggestion field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PriceSuggestOfferDTO) GetPriceSuggestionOk() ([]PriceSuggestDTO, bool) {
+ if o == nil || IsNil(o.PriceSuggestion) {
+ return nil, false
+ }
+ return o.PriceSuggestion, true
+}
+
+// HasPriceSuggestion returns a boolean if a field has been set.
+func (o *PriceSuggestOfferDTO) HasPriceSuggestion() bool {
+ if o != nil && !IsNil(o.PriceSuggestion) {
+ return true
+ }
+
+ return false
+}
+
+// SetPriceSuggestion gets a reference to the given []PriceSuggestDTO and assigns it to the PriceSuggestion field.
+func (o *PriceSuggestOfferDTO) SetPriceSuggestion(v []PriceSuggestDTO) {
+ o.PriceSuggestion = v
+}
+
+func (o PriceSuggestOfferDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PriceSuggestOfferDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.MarketSku) {
+ toSerialize["marketSku"] = o.MarketSku
+ }
+ if !IsNil(o.OfferId) {
+ toSerialize["offerId"] = o.OfferId
+ }
+ if o.PriceSuggestion != nil {
+ toSerialize["priceSuggestion"] = o.PriceSuggestion
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PriceSuggestOfferDTO) UnmarshalJSON(data []byte) (err error) {
+ varPriceSuggestOfferDTO := _PriceSuggestOfferDTO{}
+
+ err = json.Unmarshal(data, &varPriceSuggestOfferDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PriceSuggestOfferDTO(varPriceSuggestOfferDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "marketSku")
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "priceSuggestion")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePriceSuggestOfferDTO struct {
+ value *PriceSuggestOfferDTO
+ isSet bool
+}
+
+func (v NullablePriceSuggestOfferDTO) Get() *PriceSuggestOfferDTO {
+ return v.value
+}
+
+func (v *NullablePriceSuggestOfferDTO) Set(val *PriceSuggestOfferDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceSuggestOfferDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceSuggestOfferDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceSuggestOfferDTO(val *PriceSuggestOfferDTO) *NullablePriceSuggestOfferDTO {
+ return &NullablePriceSuggestOfferDTO{value: val, isSet: true}
+}
+
+func (v NullablePriceSuggestOfferDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceSuggestOfferDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_suggest_type.go b/pkg/api/yandex/ymclient/model_price_suggest_type.go
new file mode 100644
index 0000000..7eff722
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_suggest_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PriceSuggestType Тип цены: * `BUYBOX` — самая низкая цена на товар, по которой он продается сейчас. Эта цена обновляется в режиме реального времени. Если вы установите цену ниже, начнет показываться ваше предложение. Если для этого значения в параметре `price` указана цена, которая совпадает с вашей, значит, ваш товар уже показывается на витрине. Если кроме вас этот товар продают другие продавцы по такой же цене, их предложения также будут отображаться вместе с вашими по очереди. * `DEFAULT_OFFER` — рекомендованная Маркетом цена, которая привлекает покупателей. Рассчитывается только для популярных на сервисе товаров и обновляется раз в четыре часа. * `MIN_PRICE_MARKET` — минимальная цена на Маркете. Самая низкая цена среди всех предложений товара на Маркете во всех регионах, включая те, которые не видны на витрине. Эта цена обновляется в режиме реального времени и обеспечивает большее количество показов на Маркете, чем самая низкая или рекомендованная цена.
+type PriceSuggestType string
+
+// List of PriceSuggestType
+const (
+ PRICESUGGESTTYPE_BUYBOX PriceSuggestType = "BUYBOX"
+ PRICESUGGESTTYPE_DEFAULT_OFFER PriceSuggestType = "DEFAULT_OFFER"
+ PRICESUGGESTTYPE_MIN_PRICE_MARKET PriceSuggestType = "MIN_PRICE_MARKET"
+)
+
+// All allowed values of PriceSuggestType enum
+var AllowedPriceSuggestTypeEnumValues = []PriceSuggestType{
+ "BUYBOX",
+ "DEFAULT_OFFER",
+ "MIN_PRICE_MARKET",
+}
+
+func (v *PriceSuggestType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PriceSuggestType(value)
+ for _, existing := range AllowedPriceSuggestTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PriceSuggestType", value)
+}
+
+// NewPriceSuggestTypeFromValue returns a pointer to a valid PriceSuggestType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPriceSuggestTypeFromValue(v string) (*PriceSuggestType, error) {
+ ev := PriceSuggestType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PriceSuggestType: valid values are %v", v, AllowedPriceSuggestTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PriceSuggestType) IsValid() bool {
+ for _, existing := range AllowedPriceSuggestTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PriceSuggestType value
+func (v PriceSuggestType) Ptr() *PriceSuggestType {
+ return &v
+}
+
+type NullablePriceSuggestType struct {
+ value *PriceSuggestType
+ isSet bool
+}
+
+func (v NullablePriceSuggestType) Get() *PriceSuggestType {
+ return v.value
+}
+
+func (v *NullablePriceSuggestType) Set(val *PriceSuggestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceSuggestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceSuggestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceSuggestType(val *PriceSuggestType) *NullablePriceSuggestType {
+ return &NullablePriceSuggestType{value: val, isSet: true}
+}
+
+func (v NullablePriceSuggestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceSuggestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_price_with_discount_dto.go b/pkg/api/yandex/ymclient/model_price_with_discount_dto.go
new file mode 100644
index 0000000..98035fd
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_price_with_discount_dto.go
@@ -0,0 +1,234 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PriceWithDiscountDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PriceWithDiscountDTO{}
+
+// PriceWithDiscountDTO Цена с указанием скидки.
+type PriceWithDiscountDTO struct {
+ // Цена товара.
+ Value float32 `json:"value"`
+ CurrencyId CurrencyType `json:"currencyId"`
+ // Зачеркнутая цена. Число должно быть целым. Вы можете указать цену со скидкой от 5 до 99%. Передавайте этот параметр при каждом обновлении цены, если предоставляете скидку на товар.
+ DiscountBase *float32 `json:"discountBase,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PriceWithDiscountDTO PriceWithDiscountDTO
+
+// NewPriceWithDiscountDTO instantiates a new PriceWithDiscountDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPriceWithDiscountDTO(value float32, currencyId CurrencyType) *PriceWithDiscountDTO {
+ this := PriceWithDiscountDTO{}
+ this.Value = value
+ this.CurrencyId = currencyId
+ return &this
+}
+
+// NewPriceWithDiscountDTOWithDefaults instantiates a new PriceWithDiscountDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPriceWithDiscountDTOWithDefaults() *PriceWithDiscountDTO {
+ this := PriceWithDiscountDTO{}
+ return &this
+}
+
+// GetValue returns the Value field value
+func (o *PriceWithDiscountDTO) GetValue() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value
+// and a boolean to check if the value has been set.
+func (o *PriceWithDiscountDTO) GetValueOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Value, true
+}
+
+// SetValue sets field value
+func (o *PriceWithDiscountDTO) SetValue(v float32) {
+ o.Value = v
+}
+
+// GetCurrencyId returns the CurrencyId field value
+func (o *PriceWithDiscountDTO) GetCurrencyId() CurrencyType {
+ if o == nil {
+ var ret CurrencyType
+ return ret
+ }
+
+ return o.CurrencyId
+}
+
+// GetCurrencyIdOk returns a tuple with the CurrencyId field value
+// and a boolean to check if the value has been set.
+func (o *PriceWithDiscountDTO) GetCurrencyIdOk() (*CurrencyType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CurrencyId, true
+}
+
+// SetCurrencyId sets field value
+func (o *PriceWithDiscountDTO) SetCurrencyId(v CurrencyType) {
+ o.CurrencyId = v
+}
+
+// GetDiscountBase returns the DiscountBase field value if set, zero value otherwise.
+func (o *PriceWithDiscountDTO) GetDiscountBase() float32 {
+ if o == nil || IsNil(o.DiscountBase) {
+ var ret float32
+ return ret
+ }
+ return *o.DiscountBase
+}
+
+// GetDiscountBaseOk returns a tuple with the DiscountBase field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PriceWithDiscountDTO) GetDiscountBaseOk() (*float32, bool) {
+ if o == nil || IsNil(o.DiscountBase) {
+ return nil, false
+ }
+ return o.DiscountBase, true
+}
+
+// HasDiscountBase returns a boolean if a field has been set.
+func (o *PriceWithDiscountDTO) HasDiscountBase() bool {
+ if o != nil && !IsNil(o.DiscountBase) {
+ return true
+ }
+
+ return false
+}
+
+// SetDiscountBase gets a reference to the given float32 and assigns it to the DiscountBase field.
+func (o *PriceWithDiscountDTO) SetDiscountBase(v float32) {
+ o.DiscountBase = &v
+}
+
+func (o PriceWithDiscountDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PriceWithDiscountDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["value"] = o.Value
+ toSerialize["currencyId"] = o.CurrencyId
+ if !IsNil(o.DiscountBase) {
+ toSerialize["discountBase"] = o.DiscountBase
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PriceWithDiscountDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "value",
+ "currencyId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPriceWithDiscountDTO := _PriceWithDiscountDTO{}
+
+ err = json.Unmarshal(data, &varPriceWithDiscountDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PriceWithDiscountDTO(varPriceWithDiscountDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "value")
+ delete(additionalProperties, "currencyId")
+ delete(additionalProperties, "discountBase")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePriceWithDiscountDTO struct {
+ value *PriceWithDiscountDTO
+ isSet bool
+}
+
+func (v NullablePriceWithDiscountDTO) Get() *PriceWithDiscountDTO {
+ return v.value
+}
+
+func (v *NullablePriceWithDiscountDTO) Set(val *PriceWithDiscountDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePriceWithDiscountDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePriceWithDiscountDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePriceWithDiscountDTO(val *PriceWithDiscountDTO) *NullablePriceWithDiscountDTO {
+ return &NullablePriceWithDiscountDTO{value: val, isSet: true}
+}
+
+func (v NullablePriceWithDiscountDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePriceWithDiscountDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_promo_offer_auto_participating_details_dto.go b/pkg/api/yandex/ymclient/model_promo_offer_auto_participating_details_dto.go
new file mode 100644
index 0000000..c8014e4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_promo_offer_auto_participating_details_dto.go
@@ -0,0 +1,155 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the PromoOfferAutoParticipatingDetailsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PromoOfferAutoParticipatingDetailsDTO{}
+
+// PromoOfferAutoParticipatingDetailsDTO Информация об автоматическом добавлении товара в акцию. Причины, по которым товар не был добавлен автоматически в других магазинах, можно узнать в кабинете продавца на Маркете на странице акции. Об автоматическом и ручном добавлении товаров в акцию читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/marketing/promos/market/index).
+type PromoOfferAutoParticipatingDetailsDTO struct {
+ // Идентификаторы кампаний тех магазинов, в которых товар добавлен в акцию автоматически. Возвращается, если статус товара в акции — `PARTIALLY_AUTO`.
+ CampaignIds []int64 `json:"campaignIds,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PromoOfferAutoParticipatingDetailsDTO PromoOfferAutoParticipatingDetailsDTO
+
+// NewPromoOfferAutoParticipatingDetailsDTO instantiates a new PromoOfferAutoParticipatingDetailsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPromoOfferAutoParticipatingDetailsDTO() *PromoOfferAutoParticipatingDetailsDTO {
+ this := PromoOfferAutoParticipatingDetailsDTO{}
+ return &this
+}
+
+// NewPromoOfferAutoParticipatingDetailsDTOWithDefaults instantiates a new PromoOfferAutoParticipatingDetailsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPromoOfferAutoParticipatingDetailsDTOWithDefaults() *PromoOfferAutoParticipatingDetailsDTO {
+ this := PromoOfferAutoParticipatingDetailsDTO{}
+ return &this
+}
+
+// GetCampaignIds returns the CampaignIds field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PromoOfferAutoParticipatingDetailsDTO) GetCampaignIds() []int64 {
+ if o == nil {
+ var ret []int64
+ return ret
+ }
+ return o.CampaignIds
+}
+
+// GetCampaignIdsOk returns a tuple with the CampaignIds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PromoOfferAutoParticipatingDetailsDTO) GetCampaignIdsOk() ([]int64, bool) {
+ if o == nil || IsNil(o.CampaignIds) {
+ return nil, false
+ }
+ return o.CampaignIds, true
+}
+
+// HasCampaignIds returns a boolean if a field has been set.
+func (o *PromoOfferAutoParticipatingDetailsDTO) HasCampaignIds() bool {
+ if o != nil && !IsNil(o.CampaignIds) {
+ return true
+ }
+
+ return false
+}
+
+// SetCampaignIds gets a reference to the given []int64 and assigns it to the CampaignIds field.
+func (o *PromoOfferAutoParticipatingDetailsDTO) SetCampaignIds(v []int64) {
+ o.CampaignIds = v
+}
+
+func (o PromoOfferAutoParticipatingDetailsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PromoOfferAutoParticipatingDetailsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if o.CampaignIds != nil {
+ toSerialize["campaignIds"] = o.CampaignIds
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PromoOfferAutoParticipatingDetailsDTO) UnmarshalJSON(data []byte) (err error) {
+ varPromoOfferAutoParticipatingDetailsDTO := _PromoOfferAutoParticipatingDetailsDTO{}
+
+ err = json.Unmarshal(data, &varPromoOfferAutoParticipatingDetailsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PromoOfferAutoParticipatingDetailsDTO(varPromoOfferAutoParticipatingDetailsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "campaignIds")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePromoOfferAutoParticipatingDetailsDTO struct {
+ value *PromoOfferAutoParticipatingDetailsDTO
+ isSet bool
+}
+
+func (v NullablePromoOfferAutoParticipatingDetailsDTO) Get() *PromoOfferAutoParticipatingDetailsDTO {
+ return v.value
+}
+
+func (v *NullablePromoOfferAutoParticipatingDetailsDTO) Set(val *PromoOfferAutoParticipatingDetailsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePromoOfferAutoParticipatingDetailsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePromoOfferAutoParticipatingDetailsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePromoOfferAutoParticipatingDetailsDTO(val *PromoOfferAutoParticipatingDetailsDTO) *NullablePromoOfferAutoParticipatingDetailsDTO {
+ return &NullablePromoOfferAutoParticipatingDetailsDTO{value: val, isSet: true}
+}
+
+func (v NullablePromoOfferAutoParticipatingDetailsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePromoOfferAutoParticipatingDetailsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_promo_offer_discount_params_dto.go b/pkg/api/yandex/ymclient/model_promo_offer_discount_params_dto.go
new file mode 100644
index 0000000..185467c
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_promo_offer_discount_params_dto.go
@@ -0,0 +1,243 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PromoOfferDiscountParamsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PromoOfferDiscountParamsDTO{}
+
+// PromoOfferDiscountParamsDTO Параметры товара в акции с типом `DIRECT_DISCOUNT` или `BLUE_FLASH`.
+type PromoOfferDiscountParamsDTO struct {
+ // Зачеркнутая цена — та, по которой товар продавался до акции. Указывается в рублях. Возвращается, только если товар участвует в акции.
+ Price *int64 `json:"price,omitempty"`
+ // Цена по акции — та, по которой вы хотите продавать товар. Указывается в рублях. Возвращается, только если товар участвует в акции.
+ PromoPrice *int64 `json:"promoPrice,omitempty"`
+ // Максимально возможная цена для участия в акции. Указывается в рублях. Возвращается для всех товаров.
+ MaxPromoPrice int64 `json:"maxPromoPrice"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PromoOfferDiscountParamsDTO PromoOfferDiscountParamsDTO
+
+// NewPromoOfferDiscountParamsDTO instantiates a new PromoOfferDiscountParamsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPromoOfferDiscountParamsDTO(maxPromoPrice int64) *PromoOfferDiscountParamsDTO {
+ this := PromoOfferDiscountParamsDTO{}
+ this.MaxPromoPrice = maxPromoPrice
+ return &this
+}
+
+// NewPromoOfferDiscountParamsDTOWithDefaults instantiates a new PromoOfferDiscountParamsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPromoOfferDiscountParamsDTOWithDefaults() *PromoOfferDiscountParamsDTO {
+ this := PromoOfferDiscountParamsDTO{}
+ return &this
+}
+
+// GetPrice returns the Price field value if set, zero value otherwise.
+func (o *PromoOfferDiscountParamsDTO) GetPrice() int64 {
+ if o == nil || IsNil(o.Price) {
+ var ret int64
+ return ret
+ }
+ return *o.Price
+}
+
+// GetPriceOk returns a tuple with the Price field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PromoOfferDiscountParamsDTO) GetPriceOk() (*int64, bool) {
+ if o == nil || IsNil(o.Price) {
+ return nil, false
+ }
+ return o.Price, true
+}
+
+// HasPrice returns a boolean if a field has been set.
+func (o *PromoOfferDiscountParamsDTO) HasPrice() bool {
+ if o != nil && !IsNil(o.Price) {
+ return true
+ }
+
+ return false
+}
+
+// SetPrice gets a reference to the given int64 and assigns it to the Price field.
+func (o *PromoOfferDiscountParamsDTO) SetPrice(v int64) {
+ o.Price = &v
+}
+
+// GetPromoPrice returns the PromoPrice field value if set, zero value otherwise.
+func (o *PromoOfferDiscountParamsDTO) GetPromoPrice() int64 {
+ if o == nil || IsNil(o.PromoPrice) {
+ var ret int64
+ return ret
+ }
+ return *o.PromoPrice
+}
+
+// GetPromoPriceOk returns a tuple with the PromoPrice field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PromoOfferDiscountParamsDTO) GetPromoPriceOk() (*int64, bool) {
+ if o == nil || IsNil(o.PromoPrice) {
+ return nil, false
+ }
+ return o.PromoPrice, true
+}
+
+// HasPromoPrice returns a boolean if a field has been set.
+func (o *PromoOfferDiscountParamsDTO) HasPromoPrice() bool {
+ if o != nil && !IsNil(o.PromoPrice) {
+ return true
+ }
+
+ return false
+}
+
+// SetPromoPrice gets a reference to the given int64 and assigns it to the PromoPrice field.
+func (o *PromoOfferDiscountParamsDTO) SetPromoPrice(v int64) {
+ o.PromoPrice = &v
+}
+
+// GetMaxPromoPrice returns the MaxPromoPrice field value
+func (o *PromoOfferDiscountParamsDTO) GetMaxPromoPrice() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.MaxPromoPrice
+}
+
+// GetMaxPromoPriceOk returns a tuple with the MaxPromoPrice field value
+// and a boolean to check if the value has been set.
+func (o *PromoOfferDiscountParamsDTO) GetMaxPromoPriceOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.MaxPromoPrice, true
+}
+
+// SetMaxPromoPrice sets field value
+func (o *PromoOfferDiscountParamsDTO) SetMaxPromoPrice(v int64) {
+ o.MaxPromoPrice = v
+}
+
+func (o PromoOfferDiscountParamsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PromoOfferDiscountParamsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Price) {
+ toSerialize["price"] = o.Price
+ }
+ if !IsNil(o.PromoPrice) {
+ toSerialize["promoPrice"] = o.PromoPrice
+ }
+ toSerialize["maxPromoPrice"] = o.MaxPromoPrice
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PromoOfferDiscountParamsDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "maxPromoPrice",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPromoOfferDiscountParamsDTO := _PromoOfferDiscountParamsDTO{}
+
+ err = json.Unmarshal(data, &varPromoOfferDiscountParamsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PromoOfferDiscountParamsDTO(varPromoOfferDiscountParamsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "price")
+ delete(additionalProperties, "promoPrice")
+ delete(additionalProperties, "maxPromoPrice")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePromoOfferDiscountParamsDTO struct {
+ value *PromoOfferDiscountParamsDTO
+ isSet bool
+}
+
+func (v NullablePromoOfferDiscountParamsDTO) Get() *PromoOfferDiscountParamsDTO {
+ return v.value
+}
+
+func (v *NullablePromoOfferDiscountParamsDTO) Set(val *PromoOfferDiscountParamsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePromoOfferDiscountParamsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePromoOfferDiscountParamsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePromoOfferDiscountParamsDTO(val *PromoOfferDiscountParamsDTO) *NullablePromoOfferDiscountParamsDTO {
+ return &NullablePromoOfferDiscountParamsDTO{value: val, isSet: true}
+}
+
+func (v NullablePromoOfferDiscountParamsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePromoOfferDiscountParamsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_promo_offer_params_dto.go b/pkg/api/yandex/ymclient/model_promo_offer_params_dto.go
new file mode 100644
index 0000000..5bb4bd8
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_promo_offer_params_dto.go
@@ -0,0 +1,153 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the PromoOfferParamsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PromoOfferParamsDTO{}
+
+// PromoOfferParamsDTO Параметры товара в акции. Возвращается параметр, который соответствует типу акции.
+type PromoOfferParamsDTO struct {
+ DiscountParams *PromoOfferDiscountParamsDTO `json:"discountParams,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PromoOfferParamsDTO PromoOfferParamsDTO
+
+// NewPromoOfferParamsDTO instantiates a new PromoOfferParamsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPromoOfferParamsDTO() *PromoOfferParamsDTO {
+ this := PromoOfferParamsDTO{}
+ return &this
+}
+
+// NewPromoOfferParamsDTOWithDefaults instantiates a new PromoOfferParamsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPromoOfferParamsDTOWithDefaults() *PromoOfferParamsDTO {
+ this := PromoOfferParamsDTO{}
+ return &this
+}
+
+// GetDiscountParams returns the DiscountParams field value if set, zero value otherwise.
+func (o *PromoOfferParamsDTO) GetDiscountParams() PromoOfferDiscountParamsDTO {
+ if o == nil || IsNil(o.DiscountParams) {
+ var ret PromoOfferDiscountParamsDTO
+ return ret
+ }
+ return *o.DiscountParams
+}
+
+// GetDiscountParamsOk returns a tuple with the DiscountParams field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PromoOfferParamsDTO) GetDiscountParamsOk() (*PromoOfferDiscountParamsDTO, bool) {
+ if o == nil || IsNil(o.DiscountParams) {
+ return nil, false
+ }
+ return o.DiscountParams, true
+}
+
+// HasDiscountParams returns a boolean if a field has been set.
+func (o *PromoOfferParamsDTO) HasDiscountParams() bool {
+ if o != nil && !IsNil(o.DiscountParams) {
+ return true
+ }
+
+ return false
+}
+
+// SetDiscountParams gets a reference to the given PromoOfferDiscountParamsDTO and assigns it to the DiscountParams field.
+func (o *PromoOfferParamsDTO) SetDiscountParams(v PromoOfferDiscountParamsDTO) {
+ o.DiscountParams = &v
+}
+
+func (o PromoOfferParamsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PromoOfferParamsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.DiscountParams) {
+ toSerialize["discountParams"] = o.DiscountParams
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PromoOfferParamsDTO) UnmarshalJSON(data []byte) (err error) {
+ varPromoOfferParamsDTO := _PromoOfferParamsDTO{}
+
+ err = json.Unmarshal(data, &varPromoOfferParamsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PromoOfferParamsDTO(varPromoOfferParamsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "discountParams")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePromoOfferParamsDTO struct {
+ value *PromoOfferParamsDTO
+ isSet bool
+}
+
+func (v NullablePromoOfferParamsDTO) Get() *PromoOfferParamsDTO {
+ return v.value
+}
+
+func (v *NullablePromoOfferParamsDTO) Set(val *PromoOfferParamsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePromoOfferParamsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePromoOfferParamsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePromoOfferParamsDTO(val *PromoOfferParamsDTO) *NullablePromoOfferParamsDTO {
+ return &NullablePromoOfferParamsDTO{value: val, isSet: true}
+}
+
+func (v NullablePromoOfferParamsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePromoOfferParamsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_promo_offer_participation_status_filter_type.go b/pkg/api/yandex/ymclient/model_promo_offer_participation_status_filter_type.go
new file mode 100644
index 0000000..cf4e30a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_promo_offer_participation_status_filter_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PromoOfferParticipationStatusFilterType Фильтр для товаров, которые добавлены в акцию вручную: * `MANUALLY_ADDED` — товары, которые добавлены вручную. * `NOT_MANUALLY_ADDED`— товары, которые не участвуют в акции и те, которые добавлены автоматически. Об автоматическом и ручном добавлении товаров в акцию читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/marketing/promos/market/index).
+type PromoOfferParticipationStatusFilterType string
+
+// List of PromoOfferParticipationStatusFilterType
+const (
+ PROMOOFFERPARTICIPATIONSTATUSFILTERTYPE_MANUALLY_ADDED PromoOfferParticipationStatusFilterType = "MANUALLY_ADDED"
+ PROMOOFFERPARTICIPATIONSTATUSFILTERTYPE_NOT_MANUALLY_ADDED PromoOfferParticipationStatusFilterType = "NOT_MANUALLY_ADDED"
+)
+
+// All allowed values of PromoOfferParticipationStatusFilterType enum
+var AllowedPromoOfferParticipationStatusFilterTypeEnumValues = []PromoOfferParticipationStatusFilterType{
+ "MANUALLY_ADDED",
+ "NOT_MANUALLY_ADDED",
+}
+
+func (v *PromoOfferParticipationStatusFilterType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PromoOfferParticipationStatusFilterType(value)
+ for _, existing := range AllowedPromoOfferParticipationStatusFilterTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PromoOfferParticipationStatusFilterType", value)
+}
+
+// NewPromoOfferParticipationStatusFilterTypeFromValue returns a pointer to a valid PromoOfferParticipationStatusFilterType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPromoOfferParticipationStatusFilterTypeFromValue(v string) (*PromoOfferParticipationStatusFilterType, error) {
+ ev := PromoOfferParticipationStatusFilterType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PromoOfferParticipationStatusFilterType: valid values are %v", v, AllowedPromoOfferParticipationStatusFilterTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PromoOfferParticipationStatusFilterType) IsValid() bool {
+ for _, existing := range AllowedPromoOfferParticipationStatusFilterTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PromoOfferParticipationStatusFilterType value
+func (v PromoOfferParticipationStatusFilterType) Ptr() *PromoOfferParticipationStatusFilterType {
+ return &v
+}
+
+type NullablePromoOfferParticipationStatusFilterType struct {
+ value *PromoOfferParticipationStatusFilterType
+ isSet bool
+}
+
+func (v NullablePromoOfferParticipationStatusFilterType) Get() *PromoOfferParticipationStatusFilterType {
+ return v.value
+}
+
+func (v *NullablePromoOfferParticipationStatusFilterType) Set(val *PromoOfferParticipationStatusFilterType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePromoOfferParticipationStatusFilterType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePromoOfferParticipationStatusFilterType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePromoOfferParticipationStatusFilterType(val *PromoOfferParticipationStatusFilterType) *NullablePromoOfferParticipationStatusFilterType {
+ return &NullablePromoOfferParticipationStatusFilterType{value: val, isSet: true}
+}
+
+func (v NullablePromoOfferParticipationStatusFilterType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePromoOfferParticipationStatusFilterType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_promo_offer_participation_status_multi_filter_type.go b/pkg/api/yandex/ymclient/model_promo_offer_participation_status_multi_filter_type.go
new file mode 100644
index 0000000..9c58c04
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_promo_offer_participation_status_multi_filter_type.go
@@ -0,0 +1,116 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PromoOfferParticipationStatusMultiFilterType Фильтр для товаров, которые могут участвовать в акции: * `MANUALLY_ADDED` — товары, которые добавлены вручную. * `RENEWED` — товары, которые добавлены автоматически из предыдущей акции «Бестселлеры Маркета». Только для акций «Бестселлеры Маркета». * `RENEW_FAILED` — товары, которые не получилось перенести из предыдущей акции «Бестселлеры Маркета». Только для акций «Бестселлеры Маркета». * `NOT_MANUALLY_ADDED` — товары, которые не участвуют в акции и те, которые добавлены автоматически. * `MINIMUM_FOR_PROMOS` — товары с [установленным минимумом по цене для акций](:no-translate[*minimumForBestseller]), который соответствует порогу `maxPromoPrice`. Такие товары участвуют в акции с ценой `maxPromoPrice`. Только для акций «Бестселлеры Маркета». Если не передать параметр `statuses`, вернутся все товары. Об автоматическом и ручном добавлении товаров в акцию читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/marketing/promos/market/index).
+type PromoOfferParticipationStatusMultiFilterType string
+
+// List of PromoOfferParticipationStatusMultiFilterType
+const (
+ PROMOOFFERPARTICIPATIONSTATUSMULTIFILTERTYPE_MANUALLY_ADDED PromoOfferParticipationStatusMultiFilterType = "MANUALLY_ADDED"
+ PROMOOFFERPARTICIPATIONSTATUSMULTIFILTERTYPE_RENEWED PromoOfferParticipationStatusMultiFilterType = "RENEWED"
+ PROMOOFFERPARTICIPATIONSTATUSMULTIFILTERTYPE_RENEW_FAILED PromoOfferParticipationStatusMultiFilterType = "RENEW_FAILED"
+ PROMOOFFERPARTICIPATIONSTATUSMULTIFILTERTYPE_NOT_MANUALLY_ADDED PromoOfferParticipationStatusMultiFilterType = "NOT_MANUALLY_ADDED"
+ PROMOOFFERPARTICIPATIONSTATUSMULTIFILTERTYPE_MINIMUM_FOR_PROMOS PromoOfferParticipationStatusMultiFilterType = "MINIMUM_FOR_PROMOS"
+)
+
+// All allowed values of PromoOfferParticipationStatusMultiFilterType enum
+var AllowedPromoOfferParticipationStatusMultiFilterTypeEnumValues = []PromoOfferParticipationStatusMultiFilterType{
+ "MANUALLY_ADDED",
+ "RENEWED",
+ "RENEW_FAILED",
+ "NOT_MANUALLY_ADDED",
+ "MINIMUM_FOR_PROMOS",
+}
+
+func (v *PromoOfferParticipationStatusMultiFilterType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PromoOfferParticipationStatusMultiFilterType(value)
+ for _, existing := range AllowedPromoOfferParticipationStatusMultiFilterTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PromoOfferParticipationStatusMultiFilterType", value)
+}
+
+// NewPromoOfferParticipationStatusMultiFilterTypeFromValue returns a pointer to a valid PromoOfferParticipationStatusMultiFilterType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPromoOfferParticipationStatusMultiFilterTypeFromValue(v string) (*PromoOfferParticipationStatusMultiFilterType, error) {
+ ev := PromoOfferParticipationStatusMultiFilterType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PromoOfferParticipationStatusMultiFilterType: valid values are %v", v, AllowedPromoOfferParticipationStatusMultiFilterTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PromoOfferParticipationStatusMultiFilterType) IsValid() bool {
+ for _, existing := range AllowedPromoOfferParticipationStatusMultiFilterTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PromoOfferParticipationStatusMultiFilterType value
+func (v PromoOfferParticipationStatusMultiFilterType) Ptr() *PromoOfferParticipationStatusMultiFilterType {
+ return &v
+}
+
+type NullablePromoOfferParticipationStatusMultiFilterType struct {
+ value *PromoOfferParticipationStatusMultiFilterType
+ isSet bool
+}
+
+func (v NullablePromoOfferParticipationStatusMultiFilterType) Get() *PromoOfferParticipationStatusMultiFilterType {
+ return v.value
+}
+
+func (v *NullablePromoOfferParticipationStatusMultiFilterType) Set(val *PromoOfferParticipationStatusMultiFilterType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePromoOfferParticipationStatusMultiFilterType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePromoOfferParticipationStatusMultiFilterType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePromoOfferParticipationStatusMultiFilterType(val *PromoOfferParticipationStatusMultiFilterType) *NullablePromoOfferParticipationStatusMultiFilterType {
+ return &NullablePromoOfferParticipationStatusMultiFilterType{value: val, isSet: true}
+}
+
+func (v NullablePromoOfferParticipationStatusMultiFilterType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePromoOfferParticipationStatusMultiFilterType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_promo_offer_participation_status_type.go b/pkg/api/yandex/ymclient/model_promo_offer_participation_status_type.go
new file mode 100644
index 0000000..500c8ce
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_promo_offer_participation_status_type.go
@@ -0,0 +1,120 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PromoOfferParticipationStatusType Статус товара в акции: * `AUTO` — добавлен автоматически во всех магазинах кабинета, в которых товар доступен для покупки. * `PARTIALLY_AUTO` — добавлен автоматически у части магазинов. * `MANUAL` — добавлен вручную. * `NOT_PARTICIPATING` — не участвует в акции. * `RENEWED` — успешно перенесен из предыдущей акции «Бестселлеры Маркета». Только для акций «Бестселлеры Маркета». * `RENEW_FAILED` — не получилось перенести из предыдущей акции «Бестселлеры Маркета». Только для акций «Бестселлеры Маркета». * `MINIMUM_FOR_PROMOS` — участвует в акции с ценой `maxPromoPrice` ([установлен минимум по цене для акций](*minimumForBestseller), который соответствует порогу `maxPromoPrice`). Только для акций «Бестселлеры Маркета». Об автоматическом и ручном добавлении товаров в акцию читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/marketing/promos/market/index).
+type PromoOfferParticipationStatusType string
+
+// List of PromoOfferParticipationStatusType
+const (
+ PROMOOFFERPARTICIPATIONSTATUSTYPE_AUTO PromoOfferParticipationStatusType = "AUTO"
+ PROMOOFFERPARTICIPATIONSTATUSTYPE_PARTIALLY_AUTO PromoOfferParticipationStatusType = "PARTIALLY_AUTO"
+ PROMOOFFERPARTICIPATIONSTATUSTYPE_MANUAL PromoOfferParticipationStatusType = "MANUAL"
+ PROMOOFFERPARTICIPATIONSTATUSTYPE_NOT_PARTICIPATING PromoOfferParticipationStatusType = "NOT_PARTICIPATING"
+ PROMOOFFERPARTICIPATIONSTATUSTYPE_RENEWED PromoOfferParticipationStatusType = "RENEWED"
+ PROMOOFFERPARTICIPATIONSTATUSTYPE_RENEW_FAILED PromoOfferParticipationStatusType = "RENEW_FAILED"
+ PROMOOFFERPARTICIPATIONSTATUSTYPE_MINIMUM_FOR_PROMOS PromoOfferParticipationStatusType = "MINIMUM_FOR_PROMOS"
+)
+
+// All allowed values of PromoOfferParticipationStatusType enum
+var AllowedPromoOfferParticipationStatusTypeEnumValues = []PromoOfferParticipationStatusType{
+ "AUTO",
+ "PARTIALLY_AUTO",
+ "MANUAL",
+ "NOT_PARTICIPATING",
+ "RENEWED",
+ "RENEW_FAILED",
+ "MINIMUM_FOR_PROMOS",
+}
+
+func (v *PromoOfferParticipationStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PromoOfferParticipationStatusType(value)
+ for _, existing := range AllowedPromoOfferParticipationStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PromoOfferParticipationStatusType", value)
+}
+
+// NewPromoOfferParticipationStatusTypeFromValue returns a pointer to a valid PromoOfferParticipationStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPromoOfferParticipationStatusTypeFromValue(v string) (*PromoOfferParticipationStatusType, error) {
+ ev := PromoOfferParticipationStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PromoOfferParticipationStatusType: valid values are %v", v, AllowedPromoOfferParticipationStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PromoOfferParticipationStatusType) IsValid() bool {
+ for _, existing := range AllowedPromoOfferParticipationStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PromoOfferParticipationStatusType value
+func (v PromoOfferParticipationStatusType) Ptr() *PromoOfferParticipationStatusType {
+ return &v
+}
+
+type NullablePromoOfferParticipationStatusType struct {
+ value *PromoOfferParticipationStatusType
+ isSet bool
+}
+
+func (v NullablePromoOfferParticipationStatusType) Get() *PromoOfferParticipationStatusType {
+ return v.value
+}
+
+func (v *NullablePromoOfferParticipationStatusType) Set(val *PromoOfferParticipationStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePromoOfferParticipationStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePromoOfferParticipationStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePromoOfferParticipationStatusType(val *PromoOfferParticipationStatusType) *NullablePromoOfferParticipationStatusType {
+ return &NullablePromoOfferParticipationStatusType{value: val, isSet: true}
+}
+
+func (v NullablePromoOfferParticipationStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePromoOfferParticipationStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_promo_offer_update_warning_code_type.go b/pkg/api/yandex/ymclient/model_promo_offer_update_warning_code_type.go
new file mode 100644
index 0000000..787264e
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_promo_offer_update_warning_code_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PromoOfferUpdateWarningCodeType Предупреждение, которое появилось при добавлении товара: * `DEEP_DISCOUNT_OFFER` — большая разница с ценой в каталоге. Проверьте, нет ли ошибки. * `CATALOG_PRICE_IS_LOWER_THAN_PROMO` — цена, которая действует во всех магазинах, ниже цены по акции. У товара не будет отображаться цена по акции. * `SHOP_PRICES_ARE_LOWER_THAN_PROMO` — цена в отдельном магазине ниже цены по акции. У товара в акции будет отображаться цена в магазине. Для остальных магазинов будет действовать цена по акции. * `SHOP_OFFER_NOT_ELIGIBLE_FOR_PROMO` — товар в отдельном магазине не подходит под условия акции.
+type PromoOfferUpdateWarningCodeType string
+
+// List of PromoOfferUpdateWarningCodeType
+const (
+ PROMOOFFERUPDATEWARNINGCODETYPE_DEEP_DISCOUNT_OFFER PromoOfferUpdateWarningCodeType = "DEEP_DISCOUNT_OFFER"
+ PROMOOFFERUPDATEWARNINGCODETYPE_CATALOG_PRICE_IS_LOWER_THAN_PROMO PromoOfferUpdateWarningCodeType = "CATALOG_PRICE_IS_LOWER_THAN_PROMO"
+ PROMOOFFERUPDATEWARNINGCODETYPE_SHOP_PRICES_ARE_LOWER_THAN_PROMO PromoOfferUpdateWarningCodeType = "SHOP_PRICES_ARE_LOWER_THAN_PROMO"
+ PROMOOFFERUPDATEWARNINGCODETYPE_SHOP_OFFER_NOT_ELIGIBLE_FOR_PROMO PromoOfferUpdateWarningCodeType = "SHOP_OFFER_NOT_ELIGIBLE_FOR_PROMO"
+)
+
+// All allowed values of PromoOfferUpdateWarningCodeType enum
+var AllowedPromoOfferUpdateWarningCodeTypeEnumValues = []PromoOfferUpdateWarningCodeType{
+ "DEEP_DISCOUNT_OFFER",
+ "CATALOG_PRICE_IS_LOWER_THAN_PROMO",
+ "SHOP_PRICES_ARE_LOWER_THAN_PROMO",
+ "SHOP_OFFER_NOT_ELIGIBLE_FOR_PROMO",
+}
+
+func (v *PromoOfferUpdateWarningCodeType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PromoOfferUpdateWarningCodeType(value)
+ for _, existing := range AllowedPromoOfferUpdateWarningCodeTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PromoOfferUpdateWarningCodeType", value)
+}
+
+// NewPromoOfferUpdateWarningCodeTypeFromValue returns a pointer to a valid PromoOfferUpdateWarningCodeType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPromoOfferUpdateWarningCodeTypeFromValue(v string) (*PromoOfferUpdateWarningCodeType, error) {
+ ev := PromoOfferUpdateWarningCodeType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PromoOfferUpdateWarningCodeType: valid values are %v", v, AllowedPromoOfferUpdateWarningCodeTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PromoOfferUpdateWarningCodeType) IsValid() bool {
+ for _, existing := range AllowedPromoOfferUpdateWarningCodeTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PromoOfferUpdateWarningCodeType value
+func (v PromoOfferUpdateWarningCodeType) Ptr() *PromoOfferUpdateWarningCodeType {
+ return &v
+}
+
+type NullablePromoOfferUpdateWarningCodeType struct {
+ value *PromoOfferUpdateWarningCodeType
+ isSet bool
+}
+
+func (v NullablePromoOfferUpdateWarningCodeType) Get() *PromoOfferUpdateWarningCodeType {
+ return v.value
+}
+
+func (v *NullablePromoOfferUpdateWarningCodeType) Set(val *PromoOfferUpdateWarningCodeType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePromoOfferUpdateWarningCodeType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePromoOfferUpdateWarningCodeType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePromoOfferUpdateWarningCodeType(val *PromoOfferUpdateWarningCodeType) *NullablePromoOfferUpdateWarningCodeType {
+ return &NullablePromoOfferUpdateWarningCodeType{value: val, isSet: true}
+}
+
+func (v NullablePromoOfferUpdateWarningCodeType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePromoOfferUpdateWarningCodeType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_promo_offer_update_warning_dto.go b/pkg/api/yandex/ymclient/model_promo_offer_update_warning_dto.go
new file mode 100644
index 0000000..d18613e
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_promo_offer_update_warning_dto.go
@@ -0,0 +1,205 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PromoOfferUpdateWarningDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PromoOfferUpdateWarningDTO{}
+
+// PromoOfferUpdateWarningDTO Предупреждение, которое появилось при добавлении товара в акцию или изменении его цен.
+type PromoOfferUpdateWarningDTO struct {
+ Code PromoOfferUpdateWarningCodeType `json:"code"`
+ // Идентификаторы кампаний тех магазинов, для которых получены предупреждения. Не возвращается, если предупреждения действуют для всех магазинов в кабинете.
+ CampaignIds []int64 `json:"campaignIds,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PromoOfferUpdateWarningDTO PromoOfferUpdateWarningDTO
+
+// NewPromoOfferUpdateWarningDTO instantiates a new PromoOfferUpdateWarningDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPromoOfferUpdateWarningDTO(code PromoOfferUpdateWarningCodeType) *PromoOfferUpdateWarningDTO {
+ this := PromoOfferUpdateWarningDTO{}
+ this.Code = code
+ return &this
+}
+
+// NewPromoOfferUpdateWarningDTOWithDefaults instantiates a new PromoOfferUpdateWarningDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPromoOfferUpdateWarningDTOWithDefaults() *PromoOfferUpdateWarningDTO {
+ this := PromoOfferUpdateWarningDTO{}
+ return &this
+}
+
+// GetCode returns the Code field value
+func (o *PromoOfferUpdateWarningDTO) GetCode() PromoOfferUpdateWarningCodeType {
+ if o == nil {
+ var ret PromoOfferUpdateWarningCodeType
+ return ret
+ }
+
+ return o.Code
+}
+
+// GetCodeOk returns a tuple with the Code field value
+// and a boolean to check if the value has been set.
+func (o *PromoOfferUpdateWarningDTO) GetCodeOk() (*PromoOfferUpdateWarningCodeType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Code, true
+}
+
+// SetCode sets field value
+func (o *PromoOfferUpdateWarningDTO) SetCode(v PromoOfferUpdateWarningCodeType) {
+ o.Code = v
+}
+
+// GetCampaignIds returns the CampaignIds field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PromoOfferUpdateWarningDTO) GetCampaignIds() []int64 {
+ if o == nil {
+ var ret []int64
+ return ret
+ }
+ return o.CampaignIds
+}
+
+// GetCampaignIdsOk returns a tuple with the CampaignIds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PromoOfferUpdateWarningDTO) GetCampaignIdsOk() ([]int64, bool) {
+ if o == nil || IsNil(o.CampaignIds) {
+ return nil, false
+ }
+ return o.CampaignIds, true
+}
+
+// HasCampaignIds returns a boolean if a field has been set.
+func (o *PromoOfferUpdateWarningDTO) HasCampaignIds() bool {
+ if o != nil && !IsNil(o.CampaignIds) {
+ return true
+ }
+
+ return false
+}
+
+// SetCampaignIds gets a reference to the given []int64 and assigns it to the CampaignIds field.
+func (o *PromoOfferUpdateWarningDTO) SetCampaignIds(v []int64) {
+ o.CampaignIds = v
+}
+
+func (o PromoOfferUpdateWarningDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PromoOfferUpdateWarningDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["code"] = o.Code
+ if o.CampaignIds != nil {
+ toSerialize["campaignIds"] = o.CampaignIds
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PromoOfferUpdateWarningDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "code",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPromoOfferUpdateWarningDTO := _PromoOfferUpdateWarningDTO{}
+
+ err = json.Unmarshal(data, &varPromoOfferUpdateWarningDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PromoOfferUpdateWarningDTO(varPromoOfferUpdateWarningDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "code")
+ delete(additionalProperties, "campaignIds")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePromoOfferUpdateWarningDTO struct {
+ value *PromoOfferUpdateWarningDTO
+ isSet bool
+}
+
+func (v NullablePromoOfferUpdateWarningDTO) Get() *PromoOfferUpdateWarningDTO {
+ return v.value
+}
+
+func (v *NullablePromoOfferUpdateWarningDTO) Set(val *PromoOfferUpdateWarningDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePromoOfferUpdateWarningDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePromoOfferUpdateWarningDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePromoOfferUpdateWarningDTO(val *PromoOfferUpdateWarningDTO) *NullablePromoOfferUpdateWarningDTO {
+ return &NullablePromoOfferUpdateWarningDTO{value: val, isSet: true}
+}
+
+func (v NullablePromoOfferUpdateWarningDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePromoOfferUpdateWarningDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_promo_participation_type.go b/pkg/api/yandex/ymclient/model_promo_participation_type.go
new file mode 100644
index 0000000..4b0a0c2
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_promo_participation_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PromoParticipationType Какие акции вернутся: * `PARTICIPATING_NOW` — текущие и будущие акции, в которых продавец участвует или может принять участие. * `PARTICIPATED` — завершенные акции, в которых продавец участвовал за последний год. Если за год их было меньше 15, в ответе придут 15 последних акций за все время.
+type PromoParticipationType string
+
+// List of PromoParticipationType
+const (
+ PROMOPARTICIPATIONTYPE_PARTICIPATING_NOW PromoParticipationType = "PARTICIPATING_NOW"
+ PROMOPARTICIPATIONTYPE_PARTICIPATED PromoParticipationType = "PARTICIPATED"
+)
+
+// All allowed values of PromoParticipationType enum
+var AllowedPromoParticipationTypeEnumValues = []PromoParticipationType{
+ "PARTICIPATING_NOW",
+ "PARTICIPATED",
+}
+
+func (v *PromoParticipationType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PromoParticipationType(value)
+ for _, existing := range AllowedPromoParticipationTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PromoParticipationType", value)
+}
+
+// NewPromoParticipationTypeFromValue returns a pointer to a valid PromoParticipationType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPromoParticipationTypeFromValue(v string) (*PromoParticipationType, error) {
+ ev := PromoParticipationType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PromoParticipationType: valid values are %v", v, AllowedPromoParticipationTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PromoParticipationType) IsValid() bool {
+ for _, existing := range AllowedPromoParticipationTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PromoParticipationType value
+func (v PromoParticipationType) Ptr() *PromoParticipationType {
+ return &v
+}
+
+type NullablePromoParticipationType struct {
+ value *PromoParticipationType
+ isSet bool
+}
+
+func (v NullablePromoParticipationType) Get() *PromoParticipationType {
+ return v.value
+}
+
+func (v *NullablePromoParticipationType) Set(val *PromoParticipationType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePromoParticipationType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePromoParticipationType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePromoParticipationType(val *PromoParticipationType) *NullablePromoParticipationType {
+ return &NullablePromoParticipationType{value: val, isSet: true}
+}
+
+func (v NullablePromoParticipationType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePromoParticipationType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_promo_period_dto.go b/pkg/api/yandex/ymclient/model_promo_period_dto.go
new file mode 100644
index 0000000..51e46d3
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_promo_period_dto.go
@@ -0,0 +1,198 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the PromoPeriodDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PromoPeriodDTO{}
+
+// PromoPeriodDTO Время проведения акции.
+type PromoPeriodDTO struct {
+ // Дата и время начала акции.
+ DateTimeFrom time.Time `json:"dateTimeFrom"`
+ // Дата и время окончания акции.
+ DateTimeTo time.Time `json:"dateTimeTo"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PromoPeriodDTO PromoPeriodDTO
+
+// NewPromoPeriodDTO instantiates a new PromoPeriodDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPromoPeriodDTO(dateTimeFrom time.Time, dateTimeTo time.Time) *PromoPeriodDTO {
+ this := PromoPeriodDTO{}
+ this.DateTimeFrom = dateTimeFrom
+ this.DateTimeTo = dateTimeTo
+ return &this
+}
+
+// NewPromoPeriodDTOWithDefaults instantiates a new PromoPeriodDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPromoPeriodDTOWithDefaults() *PromoPeriodDTO {
+ this := PromoPeriodDTO{}
+ return &this
+}
+
+// GetDateTimeFrom returns the DateTimeFrom field value
+func (o *PromoPeriodDTO) GetDateTimeFrom() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.DateTimeFrom
+}
+
+// GetDateTimeFromOk returns a tuple with the DateTimeFrom field value
+// and a boolean to check if the value has been set.
+func (o *PromoPeriodDTO) GetDateTimeFromOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DateTimeFrom, true
+}
+
+// SetDateTimeFrom sets field value
+func (o *PromoPeriodDTO) SetDateTimeFrom(v time.Time) {
+ o.DateTimeFrom = v
+}
+
+// GetDateTimeTo returns the DateTimeTo field value
+func (o *PromoPeriodDTO) GetDateTimeTo() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.DateTimeTo
+}
+
+// GetDateTimeToOk returns a tuple with the DateTimeTo field value
+// and a boolean to check if the value has been set.
+func (o *PromoPeriodDTO) GetDateTimeToOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DateTimeTo, true
+}
+
+// SetDateTimeTo sets field value
+func (o *PromoPeriodDTO) SetDateTimeTo(v time.Time) {
+ o.DateTimeTo = v
+}
+
+func (o PromoPeriodDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PromoPeriodDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["dateTimeFrom"] = o.DateTimeFrom
+ toSerialize["dateTimeTo"] = o.DateTimeTo
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PromoPeriodDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "dateTimeFrom",
+ "dateTimeTo",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPromoPeriodDTO := _PromoPeriodDTO{}
+
+ err = json.Unmarshal(data, &varPromoPeriodDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PromoPeriodDTO(varPromoPeriodDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "dateTimeFrom")
+ delete(additionalProperties, "dateTimeTo")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePromoPeriodDTO struct {
+ value *PromoPeriodDTO
+ isSet bool
+}
+
+func (v NullablePromoPeriodDTO) Get() *PromoPeriodDTO {
+ return v.value
+}
+
+func (v *NullablePromoPeriodDTO) Set(val *PromoPeriodDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePromoPeriodDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePromoPeriodDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePromoPeriodDTO(val *PromoPeriodDTO) *NullablePromoPeriodDTO {
+ return &NullablePromoPeriodDTO{value: val, isSet: true}
+}
+
+func (v NullablePromoPeriodDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePromoPeriodDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_provide_order_digital_codes_request.go b/pkg/api/yandex/ymclient/model_provide_order_digital_codes_request.go
new file mode 100644
index 0000000..db51838
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_provide_order_digital_codes_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ProvideOrderDigitalCodesRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ProvideOrderDigitalCodesRequest{}
+
+// ProvideOrderDigitalCodesRequest Запрос на передачу ключей цифровых товаров.
+type ProvideOrderDigitalCodesRequest struct {
+ // Список проданных товаров. Если в заказе есть несколько **одинаковых** товаров (например, несколько ключей к одной и той же подписке), передайте ключи в виде массива к этому товару. Параметр `id` у этих элементов должен быть один и тот же.
+ Items []OrderDigitalItemDTO `json:"items"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ProvideOrderDigitalCodesRequest ProvideOrderDigitalCodesRequest
+
+// NewProvideOrderDigitalCodesRequest instantiates a new ProvideOrderDigitalCodesRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewProvideOrderDigitalCodesRequest(items []OrderDigitalItemDTO) *ProvideOrderDigitalCodesRequest {
+ this := ProvideOrderDigitalCodesRequest{}
+ this.Items = items
+ return &this
+}
+
+// NewProvideOrderDigitalCodesRequestWithDefaults instantiates a new ProvideOrderDigitalCodesRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewProvideOrderDigitalCodesRequestWithDefaults() *ProvideOrderDigitalCodesRequest {
+ this := ProvideOrderDigitalCodesRequest{}
+ return &this
+}
+
+// GetItems returns the Items field value
+func (o *ProvideOrderDigitalCodesRequest) GetItems() []OrderDigitalItemDTO {
+ if o == nil {
+ var ret []OrderDigitalItemDTO
+ return ret
+ }
+
+ return o.Items
+}
+
+// GetItemsOk returns a tuple with the Items field value
+// and a boolean to check if the value has been set.
+func (o *ProvideOrderDigitalCodesRequest) GetItemsOk() ([]OrderDigitalItemDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Items, true
+}
+
+// SetItems sets field value
+func (o *ProvideOrderDigitalCodesRequest) SetItems(v []OrderDigitalItemDTO) {
+ o.Items = v
+}
+
+func (o ProvideOrderDigitalCodesRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ProvideOrderDigitalCodesRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["items"] = o.Items
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ProvideOrderDigitalCodesRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "items",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varProvideOrderDigitalCodesRequest := _ProvideOrderDigitalCodesRequest{}
+
+ err = json.Unmarshal(data, &varProvideOrderDigitalCodesRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ProvideOrderDigitalCodesRequest(varProvideOrderDigitalCodesRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "items")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableProvideOrderDigitalCodesRequest struct {
+ value *ProvideOrderDigitalCodesRequest
+ isSet bool
+}
+
+func (v NullableProvideOrderDigitalCodesRequest) Get() *ProvideOrderDigitalCodesRequest {
+ return v.value
+}
+
+func (v *NullableProvideOrderDigitalCodesRequest) Set(val *ProvideOrderDigitalCodesRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableProvideOrderDigitalCodesRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableProvideOrderDigitalCodesRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableProvideOrderDigitalCodesRequest(val *ProvideOrderDigitalCodesRequest) *NullableProvideOrderDigitalCodesRequest {
+ return &NullableProvideOrderDigitalCodesRequest{value: val, isSet: true}
+}
+
+func (v NullableProvideOrderDigitalCodesRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableProvideOrderDigitalCodesRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_provide_order_item_identifiers_request.go b/pkg/api/yandex/ymclient/model_provide_order_item_identifiers_request.go
new file mode 100644
index 0000000..c65b0ba
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_provide_order_item_identifiers_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ProvideOrderItemIdentifiersRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ProvideOrderItemIdentifiersRequest{}
+
+// ProvideOrderItemIdentifiersRequest struct for ProvideOrderItemIdentifiersRequest
+type ProvideOrderItemIdentifiersRequest struct {
+ // Список позиций, требующих маркировки.
+ Items []OrderItemInstanceModificationDTO `json:"items"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ProvideOrderItemIdentifiersRequest ProvideOrderItemIdentifiersRequest
+
+// NewProvideOrderItemIdentifiersRequest instantiates a new ProvideOrderItemIdentifiersRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewProvideOrderItemIdentifiersRequest(items []OrderItemInstanceModificationDTO) *ProvideOrderItemIdentifiersRequest {
+ this := ProvideOrderItemIdentifiersRequest{}
+ this.Items = items
+ return &this
+}
+
+// NewProvideOrderItemIdentifiersRequestWithDefaults instantiates a new ProvideOrderItemIdentifiersRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewProvideOrderItemIdentifiersRequestWithDefaults() *ProvideOrderItemIdentifiersRequest {
+ this := ProvideOrderItemIdentifiersRequest{}
+ return &this
+}
+
+// GetItems returns the Items field value
+func (o *ProvideOrderItemIdentifiersRequest) GetItems() []OrderItemInstanceModificationDTO {
+ if o == nil {
+ var ret []OrderItemInstanceModificationDTO
+ return ret
+ }
+
+ return o.Items
+}
+
+// GetItemsOk returns a tuple with the Items field value
+// and a boolean to check if the value has been set.
+func (o *ProvideOrderItemIdentifiersRequest) GetItemsOk() ([]OrderItemInstanceModificationDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Items, true
+}
+
+// SetItems sets field value
+func (o *ProvideOrderItemIdentifiersRequest) SetItems(v []OrderItemInstanceModificationDTO) {
+ o.Items = v
+}
+
+func (o ProvideOrderItemIdentifiersRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ProvideOrderItemIdentifiersRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["items"] = o.Items
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ProvideOrderItemIdentifiersRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "items",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varProvideOrderItemIdentifiersRequest := _ProvideOrderItemIdentifiersRequest{}
+
+ err = json.Unmarshal(data, &varProvideOrderItemIdentifiersRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ProvideOrderItemIdentifiersRequest(varProvideOrderItemIdentifiersRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "items")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableProvideOrderItemIdentifiersRequest struct {
+ value *ProvideOrderItemIdentifiersRequest
+ isSet bool
+}
+
+func (v NullableProvideOrderItemIdentifiersRequest) Get() *ProvideOrderItemIdentifiersRequest {
+ return v.value
+}
+
+func (v *NullableProvideOrderItemIdentifiersRequest) Set(val *ProvideOrderItemIdentifiersRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableProvideOrderItemIdentifiersRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableProvideOrderItemIdentifiersRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableProvideOrderItemIdentifiersRequest(val *ProvideOrderItemIdentifiersRequest) *NullableProvideOrderItemIdentifiersRequest {
+ return &NullableProvideOrderItemIdentifiersRequest{value: val, isSet: true}
+}
+
+func (v NullableProvideOrderItemIdentifiersRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableProvideOrderItemIdentifiersRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_provide_order_item_identifiers_response.go b/pkg/api/yandex/ymclient/model_provide_order_item_identifiers_response.go
new file mode 100644
index 0000000..c2ed119
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_provide_order_item_identifiers_response.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the ProvideOrderItemIdentifiersResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ProvideOrderItemIdentifiersResponse{}
+
+// ProvideOrderItemIdentifiersResponse struct for ProvideOrderItemIdentifiersResponse
+type ProvideOrderItemIdentifiersResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ Result *OrderItemsModificationResultDTO `json:"result,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ProvideOrderItemIdentifiersResponse ProvideOrderItemIdentifiersResponse
+
+// NewProvideOrderItemIdentifiersResponse instantiates a new ProvideOrderItemIdentifiersResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewProvideOrderItemIdentifiersResponse() *ProvideOrderItemIdentifiersResponse {
+ this := ProvideOrderItemIdentifiersResponse{}
+ return &this
+}
+
+// NewProvideOrderItemIdentifiersResponseWithDefaults instantiates a new ProvideOrderItemIdentifiersResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewProvideOrderItemIdentifiersResponseWithDefaults() *ProvideOrderItemIdentifiersResponse {
+ this := ProvideOrderItemIdentifiersResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *ProvideOrderItemIdentifiersResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ProvideOrderItemIdentifiersResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *ProvideOrderItemIdentifiersResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *ProvideOrderItemIdentifiersResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *ProvideOrderItemIdentifiersResponse) GetResult() OrderItemsModificationResultDTO {
+ if o == nil || IsNil(o.Result) {
+ var ret OrderItemsModificationResultDTO
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ProvideOrderItemIdentifiersResponse) GetResultOk() (*OrderItemsModificationResultDTO, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *ProvideOrderItemIdentifiersResponse) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given OrderItemsModificationResultDTO and assigns it to the Result field.
+func (o *ProvideOrderItemIdentifiersResponse) SetResult(v OrderItemsModificationResultDTO) {
+ o.Result = &v
+}
+
+func (o ProvideOrderItemIdentifiersResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ProvideOrderItemIdentifiersResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ProvideOrderItemIdentifiersResponse) UnmarshalJSON(data []byte) (err error) {
+ varProvideOrderItemIdentifiersResponse := _ProvideOrderItemIdentifiersResponse{}
+
+ err = json.Unmarshal(data, &varProvideOrderItemIdentifiersResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ProvideOrderItemIdentifiersResponse(varProvideOrderItemIdentifiersResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "result")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableProvideOrderItemIdentifiersResponse struct {
+ value *ProvideOrderItemIdentifiersResponse
+ isSet bool
+}
+
+func (v NullableProvideOrderItemIdentifiersResponse) Get() *ProvideOrderItemIdentifiersResponse {
+ return v.value
+}
+
+func (v *NullableProvideOrderItemIdentifiersResponse) Set(val *ProvideOrderItemIdentifiersResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableProvideOrderItemIdentifiersResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableProvideOrderItemIdentifiersResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableProvideOrderItemIdentifiersResponse(val *ProvideOrderItemIdentifiersResponse) *NullableProvideOrderItemIdentifiersResponse {
+ return &NullableProvideOrderItemIdentifiersResponse{value: val, isSet: true}
+}
+
+func (v NullableProvideOrderItemIdentifiersResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableProvideOrderItemIdentifiersResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_put_sku_bids_request.go b/pkg/api/yandex/ymclient/model_put_sku_bids_request.go
new file mode 100644
index 0000000..5ed8778
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_put_sku_bids_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PutSkuBidsRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PutSkuBidsRequest{}
+
+// PutSkuBidsRequest description.
+type PutSkuBidsRequest struct {
+ // Список товаров и ставки для продвижения, которые на них нужно установить.
+ Bids []SkuBidItemDTO `json:"bids"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PutSkuBidsRequest PutSkuBidsRequest
+
+// NewPutSkuBidsRequest instantiates a new PutSkuBidsRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPutSkuBidsRequest(bids []SkuBidItemDTO) *PutSkuBidsRequest {
+ this := PutSkuBidsRequest{}
+ this.Bids = bids
+ return &this
+}
+
+// NewPutSkuBidsRequestWithDefaults instantiates a new PutSkuBidsRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPutSkuBidsRequestWithDefaults() *PutSkuBidsRequest {
+ this := PutSkuBidsRequest{}
+ return &this
+}
+
+// GetBids returns the Bids field value
+func (o *PutSkuBidsRequest) GetBids() []SkuBidItemDTO {
+ if o == nil {
+ var ret []SkuBidItemDTO
+ return ret
+ }
+
+ return o.Bids
+}
+
+// GetBidsOk returns a tuple with the Bids field value
+// and a boolean to check if the value has been set.
+func (o *PutSkuBidsRequest) GetBidsOk() ([]SkuBidItemDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Bids, true
+}
+
+// SetBids sets field value
+func (o *PutSkuBidsRequest) SetBids(v []SkuBidItemDTO) {
+ o.Bids = v
+}
+
+func (o PutSkuBidsRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PutSkuBidsRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["bids"] = o.Bids
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PutSkuBidsRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "bids",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPutSkuBidsRequest := _PutSkuBidsRequest{}
+
+ err = json.Unmarshal(data, &varPutSkuBidsRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PutSkuBidsRequest(varPutSkuBidsRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "bids")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePutSkuBidsRequest struct {
+ value *PutSkuBidsRequest
+ isSet bool
+}
+
+func (v NullablePutSkuBidsRequest) Get() *PutSkuBidsRequest {
+ return v.value
+}
+
+func (v *NullablePutSkuBidsRequest) Set(val *PutSkuBidsRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePutSkuBidsRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePutSkuBidsRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePutSkuBidsRequest(val *PutSkuBidsRequest) *NullablePutSkuBidsRequest {
+ return &NullablePutSkuBidsRequest{value: val, isSet: true}
+}
+
+func (v NullablePutSkuBidsRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePutSkuBidsRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_quality_rating_affected_order_dto.go b/pkg/api/yandex/ymclient/model_quality_rating_affected_order_dto.go
new file mode 100644
index 0000000..f70e779
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_quality_rating_affected_order_dto.go
@@ -0,0 +1,226 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the QualityRatingAffectedOrderDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &QualityRatingAffectedOrderDTO{}
+
+// QualityRatingAffectedOrderDTO Информация о заказе, который повлиял на индекс качества.
+type QualityRatingAffectedOrderDTO struct {
+ // Идентификатор заказа.
+ OrderId int64 `json:"orderId"`
+ // Описание проблемы.
+ Description string `json:"description"`
+ ComponentType AffectedOrderQualityRatingComponentType `json:"componentType"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _QualityRatingAffectedOrderDTO QualityRatingAffectedOrderDTO
+
+// NewQualityRatingAffectedOrderDTO instantiates a new QualityRatingAffectedOrderDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewQualityRatingAffectedOrderDTO(orderId int64, description string, componentType AffectedOrderQualityRatingComponentType) *QualityRatingAffectedOrderDTO {
+ this := QualityRatingAffectedOrderDTO{}
+ this.OrderId = orderId
+ this.Description = description
+ this.ComponentType = componentType
+ return &this
+}
+
+// NewQualityRatingAffectedOrderDTOWithDefaults instantiates a new QualityRatingAffectedOrderDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewQualityRatingAffectedOrderDTOWithDefaults() *QualityRatingAffectedOrderDTO {
+ this := QualityRatingAffectedOrderDTO{}
+ return &this
+}
+
+// GetOrderId returns the OrderId field value
+func (o *QualityRatingAffectedOrderDTO) GetOrderId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.OrderId
+}
+
+// GetOrderIdOk returns a tuple with the OrderId field value
+// and a boolean to check if the value has been set.
+func (o *QualityRatingAffectedOrderDTO) GetOrderIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrderId, true
+}
+
+// SetOrderId sets field value
+func (o *QualityRatingAffectedOrderDTO) SetOrderId(v int64) {
+ o.OrderId = v
+}
+
+// GetDescription returns the Description field value
+func (o *QualityRatingAffectedOrderDTO) GetDescription() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value
+// and a boolean to check if the value has been set.
+func (o *QualityRatingAffectedOrderDTO) GetDescriptionOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Description, true
+}
+
+// SetDescription sets field value
+func (o *QualityRatingAffectedOrderDTO) SetDescription(v string) {
+ o.Description = v
+}
+
+// GetComponentType returns the ComponentType field value
+func (o *QualityRatingAffectedOrderDTO) GetComponentType() AffectedOrderQualityRatingComponentType {
+ if o == nil {
+ var ret AffectedOrderQualityRatingComponentType
+ return ret
+ }
+
+ return o.ComponentType
+}
+
+// GetComponentTypeOk returns a tuple with the ComponentType field value
+// and a boolean to check if the value has been set.
+func (o *QualityRatingAffectedOrderDTO) GetComponentTypeOk() (*AffectedOrderQualityRatingComponentType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ComponentType, true
+}
+
+// SetComponentType sets field value
+func (o *QualityRatingAffectedOrderDTO) SetComponentType(v AffectedOrderQualityRatingComponentType) {
+ o.ComponentType = v
+}
+
+func (o QualityRatingAffectedOrderDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o QualityRatingAffectedOrderDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["orderId"] = o.OrderId
+ toSerialize["description"] = o.Description
+ toSerialize["componentType"] = o.ComponentType
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *QualityRatingAffectedOrderDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "orderId",
+ "description",
+ "componentType",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varQualityRatingAffectedOrderDTO := _QualityRatingAffectedOrderDTO{}
+
+ err = json.Unmarshal(data, &varQualityRatingAffectedOrderDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = QualityRatingAffectedOrderDTO(varQualityRatingAffectedOrderDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "orderId")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "componentType")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableQualityRatingAffectedOrderDTO struct {
+ value *QualityRatingAffectedOrderDTO
+ isSet bool
+}
+
+func (v NullableQualityRatingAffectedOrderDTO) Get() *QualityRatingAffectedOrderDTO {
+ return v.value
+}
+
+func (v *NullableQualityRatingAffectedOrderDTO) Set(val *QualityRatingAffectedOrderDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableQualityRatingAffectedOrderDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableQualityRatingAffectedOrderDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableQualityRatingAffectedOrderDTO(val *QualityRatingAffectedOrderDTO) *NullableQualityRatingAffectedOrderDTO {
+ return &NullableQualityRatingAffectedOrderDTO{value: val, isSet: true}
+}
+
+func (v NullableQualityRatingAffectedOrderDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableQualityRatingAffectedOrderDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_quality_rating_component_dto.go b/pkg/api/yandex/ymclient/model_quality_rating_component_dto.go
new file mode 100644
index 0000000..a6e882b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_quality_rating_component_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the QualityRatingComponentDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &QualityRatingComponentDTO{}
+
+// QualityRatingComponentDTO Составляющая индекса качества.
+type QualityRatingComponentDTO struct {
+ // Значение составляющей в процентах.
+ Value float64 `json:"value"`
+ ComponentType QualityRatingComponentType `json:"componentType"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _QualityRatingComponentDTO QualityRatingComponentDTO
+
+// NewQualityRatingComponentDTO instantiates a new QualityRatingComponentDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewQualityRatingComponentDTO(value float64, componentType QualityRatingComponentType) *QualityRatingComponentDTO {
+ this := QualityRatingComponentDTO{}
+ this.Value = value
+ this.ComponentType = componentType
+ return &this
+}
+
+// NewQualityRatingComponentDTOWithDefaults instantiates a new QualityRatingComponentDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewQualityRatingComponentDTOWithDefaults() *QualityRatingComponentDTO {
+ this := QualityRatingComponentDTO{}
+ return &this
+}
+
+// GetValue returns the Value field value
+func (o *QualityRatingComponentDTO) GetValue() float64 {
+ if o == nil {
+ var ret float64
+ return ret
+ }
+
+ return o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value
+// and a boolean to check if the value has been set.
+func (o *QualityRatingComponentDTO) GetValueOk() (*float64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Value, true
+}
+
+// SetValue sets field value
+func (o *QualityRatingComponentDTO) SetValue(v float64) {
+ o.Value = v
+}
+
+// GetComponentType returns the ComponentType field value
+func (o *QualityRatingComponentDTO) GetComponentType() QualityRatingComponentType {
+ if o == nil {
+ var ret QualityRatingComponentType
+ return ret
+ }
+
+ return o.ComponentType
+}
+
+// GetComponentTypeOk returns a tuple with the ComponentType field value
+// and a boolean to check if the value has been set.
+func (o *QualityRatingComponentDTO) GetComponentTypeOk() (*QualityRatingComponentType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ComponentType, true
+}
+
+// SetComponentType sets field value
+func (o *QualityRatingComponentDTO) SetComponentType(v QualityRatingComponentType) {
+ o.ComponentType = v
+}
+
+func (o QualityRatingComponentDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o QualityRatingComponentDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["value"] = o.Value
+ toSerialize["componentType"] = o.ComponentType
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *QualityRatingComponentDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "value",
+ "componentType",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varQualityRatingComponentDTO := _QualityRatingComponentDTO{}
+
+ err = json.Unmarshal(data, &varQualityRatingComponentDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = QualityRatingComponentDTO(varQualityRatingComponentDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "value")
+ delete(additionalProperties, "componentType")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableQualityRatingComponentDTO struct {
+ value *QualityRatingComponentDTO
+ isSet bool
+}
+
+func (v NullableQualityRatingComponentDTO) Get() *QualityRatingComponentDTO {
+ return v.value
+}
+
+func (v *NullableQualityRatingComponentDTO) Set(val *QualityRatingComponentDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableQualityRatingComponentDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableQualityRatingComponentDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableQualityRatingComponentDTO(val *QualityRatingComponentDTO) *NullableQualityRatingComponentDTO {
+ return &NullableQualityRatingComponentDTO{value: val, isSet: true}
+}
+
+func (v NullableQualityRatingComponentDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableQualityRatingComponentDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_quality_rating_component_type.go b/pkg/api/yandex/ymclient/model_quality_rating_component_type.go
new file mode 100644
index 0000000..a2cb626
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_quality_rating_component_type.go
@@ -0,0 +1,122 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// QualityRatingComponentType Составляющие индекса качества. **Для модели :no-translate[DBS]:** * `DBS_CANCELLATION_RATE` — доля отмененных товаров. * `DBS_LATE_DELIVERY_RATE` — доля заказов, доставленных после плановой даты. **Для моделей :no-translate[FBS] и Экспресс:** * `FBS_CANCELLATION_RATE` — доля отмененных товаров. * `FBS_LATE_SHIP_RATE` — доля не вовремя отгруженных заказов. **Для модели :no-translate[FBY]:** * `FBY_LATE_DELIVERY_RATE` — доля товаров, которые приехали на склад с опозданием. * `FBY_CANCELLATION_RATE` — доля отмененных или недоставленных товаров. * `FBY_DELIVERY_DIFF_RATE` — доля товаров, которые не прибыли вместе с поставкой или которые не приняли. * `FBY_LATE_EDITING_RATE` — доля товаров, которые поздно убрали из заявки.
+type QualityRatingComponentType string
+
+// List of QualityRatingComponentType
+const (
+ QUALITYRATINGCOMPONENTTYPE_DBS_CANCELLATION_RATE QualityRatingComponentType = "DBS_CANCELLATION_RATE"
+ QUALITYRATINGCOMPONENTTYPE_DBS_LATE_DELIVERY_RATE QualityRatingComponentType = "DBS_LATE_DELIVERY_RATE"
+ QUALITYRATINGCOMPONENTTYPE_FBS_CANCELLATION_RATE QualityRatingComponentType = "FBS_CANCELLATION_RATE"
+ QUALITYRATINGCOMPONENTTYPE_FBS_LATE_SHIP_RATE QualityRatingComponentType = "FBS_LATE_SHIP_RATE"
+ QUALITYRATINGCOMPONENTTYPE_FBY_LATE_DELIVERY_RATE QualityRatingComponentType = "FBY_LATE_DELIVERY_RATE"
+ QUALITYRATINGCOMPONENTTYPE_FBY_CANCELLATION_RATE QualityRatingComponentType = "FBY_CANCELLATION_RATE"
+ QUALITYRATINGCOMPONENTTYPE_FBY_DELIVERY_DIFF_RATE QualityRatingComponentType = "FBY_DELIVERY_DIFF_RATE"
+ QUALITYRATINGCOMPONENTTYPE_FBY_LATE_EDITING_RATE QualityRatingComponentType = "FBY_LATE_EDITING_RATE"
+)
+
+// All allowed values of QualityRatingComponentType enum
+var AllowedQualityRatingComponentTypeEnumValues = []QualityRatingComponentType{
+ "DBS_CANCELLATION_RATE",
+ "DBS_LATE_DELIVERY_RATE",
+ "FBS_CANCELLATION_RATE",
+ "FBS_LATE_SHIP_RATE",
+ "FBY_LATE_DELIVERY_RATE",
+ "FBY_CANCELLATION_RATE",
+ "FBY_DELIVERY_DIFF_RATE",
+ "FBY_LATE_EDITING_RATE",
+}
+
+func (v *QualityRatingComponentType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := QualityRatingComponentType(value)
+ for _, existing := range AllowedQualityRatingComponentTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid QualityRatingComponentType", value)
+}
+
+// NewQualityRatingComponentTypeFromValue returns a pointer to a valid QualityRatingComponentType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewQualityRatingComponentTypeFromValue(v string) (*QualityRatingComponentType, error) {
+ ev := QualityRatingComponentType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for QualityRatingComponentType: valid values are %v", v, AllowedQualityRatingComponentTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v QualityRatingComponentType) IsValid() bool {
+ for _, existing := range AllowedQualityRatingComponentTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to QualityRatingComponentType value
+func (v QualityRatingComponentType) Ptr() *QualityRatingComponentType {
+ return &v
+}
+
+type NullableQualityRatingComponentType struct {
+ value *QualityRatingComponentType
+ isSet bool
+}
+
+func (v NullableQualityRatingComponentType) Get() *QualityRatingComponentType {
+ return v.value
+}
+
+func (v *NullableQualityRatingComponentType) Set(val *QualityRatingComponentType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableQualityRatingComponentType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableQualityRatingComponentType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableQualityRatingComponentType(val *QualityRatingComponentType) *NullableQualityRatingComponentType {
+ return &NullableQualityRatingComponentType{value: val, isSet: true}
+}
+
+func (v NullableQualityRatingComponentType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableQualityRatingComponentType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_quality_rating_details_dto.go b/pkg/api/yandex/ymclient/model_quality_rating_details_dto.go
new file mode 100644
index 0000000..ba9c65a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_quality_rating_details_dto.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the QualityRatingDetailsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &QualityRatingDetailsDTO{}
+
+// QualityRatingDetailsDTO Информация о заказах, которые повлияли на индекс качества.
+type QualityRatingDetailsDTO struct {
+ // Список заказов, которые повлияли на индекс качества.
+ AffectedOrders []QualityRatingAffectedOrderDTO `json:"affectedOrders"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _QualityRatingDetailsDTO QualityRatingDetailsDTO
+
+// NewQualityRatingDetailsDTO instantiates a new QualityRatingDetailsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewQualityRatingDetailsDTO(affectedOrders []QualityRatingAffectedOrderDTO) *QualityRatingDetailsDTO {
+ this := QualityRatingDetailsDTO{}
+ this.AffectedOrders = affectedOrders
+ return &this
+}
+
+// NewQualityRatingDetailsDTOWithDefaults instantiates a new QualityRatingDetailsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewQualityRatingDetailsDTOWithDefaults() *QualityRatingDetailsDTO {
+ this := QualityRatingDetailsDTO{}
+ return &this
+}
+
+// GetAffectedOrders returns the AffectedOrders field value
+func (o *QualityRatingDetailsDTO) GetAffectedOrders() []QualityRatingAffectedOrderDTO {
+ if o == nil {
+ var ret []QualityRatingAffectedOrderDTO
+ return ret
+ }
+
+ return o.AffectedOrders
+}
+
+// GetAffectedOrdersOk returns a tuple with the AffectedOrders field value
+// and a boolean to check if the value has been set.
+func (o *QualityRatingDetailsDTO) GetAffectedOrdersOk() ([]QualityRatingAffectedOrderDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.AffectedOrders, true
+}
+
+// SetAffectedOrders sets field value
+func (o *QualityRatingDetailsDTO) SetAffectedOrders(v []QualityRatingAffectedOrderDTO) {
+ o.AffectedOrders = v
+}
+
+func (o QualityRatingDetailsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o QualityRatingDetailsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["affectedOrders"] = o.AffectedOrders
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *QualityRatingDetailsDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "affectedOrders",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varQualityRatingDetailsDTO := _QualityRatingDetailsDTO{}
+
+ err = json.Unmarshal(data, &varQualityRatingDetailsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = QualityRatingDetailsDTO(varQualityRatingDetailsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "affectedOrders")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableQualityRatingDetailsDTO struct {
+ value *QualityRatingDetailsDTO
+ isSet bool
+}
+
+func (v NullableQualityRatingDetailsDTO) Get() *QualityRatingDetailsDTO {
+ return v.value
+}
+
+func (v *NullableQualityRatingDetailsDTO) Set(val *QualityRatingDetailsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableQualityRatingDetailsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableQualityRatingDetailsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableQualityRatingDetailsDTO(val *QualityRatingDetailsDTO) *NullableQualityRatingDetailsDTO {
+ return &NullableQualityRatingDetailsDTO{value: val, isSet: true}
+}
+
+func (v NullableQualityRatingDetailsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableQualityRatingDetailsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_quality_rating_dto.go b/pkg/api/yandex/ymclient/model_quality_rating_dto.go
new file mode 100644
index 0000000..0ee40bc
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_quality_rating_dto.go
@@ -0,0 +1,227 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the QualityRatingDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &QualityRatingDTO{}
+
+// QualityRatingDTO Информация об индексе качества.
+type QualityRatingDTO struct {
+ // Значение индекса качества.
+ Rating int64 `json:"rating"`
+ // Дата вычисления. Формат даты: `ГГГГ‑ММ‑ДД`.
+ CalculationDate string `json:"calculationDate"`
+ // Составляющие индекса качества.
+ Components []QualityRatingComponentDTO `json:"components"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _QualityRatingDTO QualityRatingDTO
+
+// NewQualityRatingDTO instantiates a new QualityRatingDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewQualityRatingDTO(rating int64, calculationDate string, components []QualityRatingComponentDTO) *QualityRatingDTO {
+ this := QualityRatingDTO{}
+ this.Rating = rating
+ this.CalculationDate = calculationDate
+ this.Components = components
+ return &this
+}
+
+// NewQualityRatingDTOWithDefaults instantiates a new QualityRatingDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewQualityRatingDTOWithDefaults() *QualityRatingDTO {
+ this := QualityRatingDTO{}
+ return &this
+}
+
+// GetRating returns the Rating field value
+func (o *QualityRatingDTO) GetRating() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Rating
+}
+
+// GetRatingOk returns a tuple with the Rating field value
+// and a boolean to check if the value has been set.
+func (o *QualityRatingDTO) GetRatingOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Rating, true
+}
+
+// SetRating sets field value
+func (o *QualityRatingDTO) SetRating(v int64) {
+ o.Rating = v
+}
+
+// GetCalculationDate returns the CalculationDate field value
+func (o *QualityRatingDTO) GetCalculationDate() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.CalculationDate
+}
+
+// GetCalculationDateOk returns a tuple with the CalculationDate field value
+// and a boolean to check if the value has been set.
+func (o *QualityRatingDTO) GetCalculationDateOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CalculationDate, true
+}
+
+// SetCalculationDate sets field value
+func (o *QualityRatingDTO) SetCalculationDate(v string) {
+ o.CalculationDate = v
+}
+
+// GetComponents returns the Components field value
+func (o *QualityRatingDTO) GetComponents() []QualityRatingComponentDTO {
+ if o == nil {
+ var ret []QualityRatingComponentDTO
+ return ret
+ }
+
+ return o.Components
+}
+
+// GetComponentsOk returns a tuple with the Components field value
+// and a boolean to check if the value has been set.
+func (o *QualityRatingDTO) GetComponentsOk() ([]QualityRatingComponentDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Components, true
+}
+
+// SetComponents sets field value
+func (o *QualityRatingDTO) SetComponents(v []QualityRatingComponentDTO) {
+ o.Components = v
+}
+
+func (o QualityRatingDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o QualityRatingDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["rating"] = o.Rating
+ toSerialize["calculationDate"] = o.CalculationDate
+ toSerialize["components"] = o.Components
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *QualityRatingDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "rating",
+ "calculationDate",
+ "components",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varQualityRatingDTO := _QualityRatingDTO{}
+
+ err = json.Unmarshal(data, &varQualityRatingDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = QualityRatingDTO(varQualityRatingDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "rating")
+ delete(additionalProperties, "calculationDate")
+ delete(additionalProperties, "components")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableQualityRatingDTO struct {
+ value *QualityRatingDTO
+ isSet bool
+}
+
+func (v NullableQualityRatingDTO) Get() *QualityRatingDTO {
+ return v.value
+}
+
+func (v *NullableQualityRatingDTO) Set(val *QualityRatingDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableQualityRatingDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableQualityRatingDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableQualityRatingDTO(val *QualityRatingDTO) *NullableQualityRatingDTO {
+ return &NullableQualityRatingDTO{value: val, isSet: true}
+}
+
+func (v NullableQualityRatingDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableQualityRatingDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_quantum_dto.go b/pkg/api/yandex/ymclient/model_quantum_dto.go
new file mode 100644
index 0000000..cce72f4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_quantum_dto.go
@@ -0,0 +1,192 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the QuantumDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &QuantumDTO{}
+
+// QuantumDTO Настройка продажи квантами. Чтобы сбросить установленные ранее значения, передайте пустой параметр `quantum`. {% cut \"Пример\" %} ```json translate=no { \"offers\": [ { \"offerId\": \"08e35dc1-89a2-11e3-8055-0015e9b8c48d\", \"quantum\": {} } ] } ``` {% endcut %}
+type QuantumDTO struct {
+ // Минимальное количество единиц товара в заказе. Например, если указать 10, покупатель сможет добавить в корзину не меньше 10 единиц. ⚠️ Если количество товара на складе меньше заданного, ограничение не сработает и покупатель сможет его заказать.
+ MinQuantity *int32 `json:"minQuantity,omitempty"`
+ // На сколько единиц покупатель сможет увеличить количество товара в корзине. Например, если задать 5, покупатель сможет добавить к заказу только 5, 10, 15, ... единиц товара. ⚠️ Если количество товара на складе не дотягивает до кванта, ограничение не сработает и покупатель сможет заказать количество, не кратное кванту.
+ StepQuantity *int32 `json:"stepQuantity,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _QuantumDTO QuantumDTO
+
+// NewQuantumDTO instantiates a new QuantumDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewQuantumDTO() *QuantumDTO {
+ this := QuantumDTO{}
+ return &this
+}
+
+// NewQuantumDTOWithDefaults instantiates a new QuantumDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewQuantumDTOWithDefaults() *QuantumDTO {
+ this := QuantumDTO{}
+ return &this
+}
+
+// GetMinQuantity returns the MinQuantity field value if set, zero value otherwise.
+func (o *QuantumDTO) GetMinQuantity() int32 {
+ if o == nil || IsNil(o.MinQuantity) {
+ var ret int32
+ return ret
+ }
+ return *o.MinQuantity
+}
+
+// GetMinQuantityOk returns a tuple with the MinQuantity field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *QuantumDTO) GetMinQuantityOk() (*int32, bool) {
+ if o == nil || IsNil(o.MinQuantity) {
+ return nil, false
+ }
+ return o.MinQuantity, true
+}
+
+// HasMinQuantity returns a boolean if a field has been set.
+func (o *QuantumDTO) HasMinQuantity() bool {
+ if o != nil && !IsNil(o.MinQuantity) {
+ return true
+ }
+
+ return false
+}
+
+// SetMinQuantity gets a reference to the given int32 and assigns it to the MinQuantity field.
+func (o *QuantumDTO) SetMinQuantity(v int32) {
+ o.MinQuantity = &v
+}
+
+// GetStepQuantity returns the StepQuantity field value if set, zero value otherwise.
+func (o *QuantumDTO) GetStepQuantity() int32 {
+ if o == nil || IsNil(o.StepQuantity) {
+ var ret int32
+ return ret
+ }
+ return *o.StepQuantity
+}
+
+// GetStepQuantityOk returns a tuple with the StepQuantity field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *QuantumDTO) GetStepQuantityOk() (*int32, bool) {
+ if o == nil || IsNil(o.StepQuantity) {
+ return nil, false
+ }
+ return o.StepQuantity, true
+}
+
+// HasStepQuantity returns a boolean if a field has been set.
+func (o *QuantumDTO) HasStepQuantity() bool {
+ if o != nil && !IsNil(o.StepQuantity) {
+ return true
+ }
+
+ return false
+}
+
+// SetStepQuantity gets a reference to the given int32 and assigns it to the StepQuantity field.
+func (o *QuantumDTO) SetStepQuantity(v int32) {
+ o.StepQuantity = &v
+}
+
+func (o QuantumDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o QuantumDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.MinQuantity) {
+ toSerialize["minQuantity"] = o.MinQuantity
+ }
+ if !IsNil(o.StepQuantity) {
+ toSerialize["stepQuantity"] = o.StepQuantity
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *QuantumDTO) UnmarshalJSON(data []byte) (err error) {
+ varQuantumDTO := _QuantumDTO{}
+
+ err = json.Unmarshal(data, &varQuantumDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = QuantumDTO(varQuantumDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "minQuantity")
+ delete(additionalProperties, "stepQuantity")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableQuantumDTO struct {
+ value *QuantumDTO
+ isSet bool
+}
+
+func (v NullableQuantumDTO) Get() *QuantumDTO {
+ return v.value
+}
+
+func (v *NullableQuantumDTO) Set(val *QuantumDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableQuantumDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableQuantumDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableQuantumDTO(val *QuantumDTO) *NullableQuantumDTO {
+ return &NullableQuantumDTO{value: val, isSet: true}
+}
+
+func (v NullableQuantumDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableQuantumDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_quarantine_offer_dto.go b/pkg/api/yandex/ymclient/model_quarantine_offer_dto.go
new file mode 100644
index 0000000..19ffd44
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_quarantine_offer_dto.go
@@ -0,0 +1,267 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the QuarantineOfferDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &QuarantineOfferDTO{}
+
+// QuarantineOfferDTO Товар в карантине.
+type QuarantineOfferDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId *string `json:"offerId,omitempty" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ CurrentPrice *BasePriceDTO `json:"currentPrice,omitempty"`
+ LastValidPrice *BasePriceDTO `json:"lastValidPrice,omitempty"`
+ // Причины попадания товара в карантин.
+ Verdicts []PriceQuarantineVerdictDTO `json:"verdicts,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _QuarantineOfferDTO QuarantineOfferDTO
+
+// NewQuarantineOfferDTO instantiates a new QuarantineOfferDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewQuarantineOfferDTO() *QuarantineOfferDTO {
+ this := QuarantineOfferDTO{}
+ return &this
+}
+
+// NewQuarantineOfferDTOWithDefaults instantiates a new QuarantineOfferDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewQuarantineOfferDTOWithDefaults() *QuarantineOfferDTO {
+ this := QuarantineOfferDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value if set, zero value otherwise.
+func (o *QuarantineOfferDTO) GetOfferId() string {
+ if o == nil || IsNil(o.OfferId) {
+ var ret string
+ return ret
+ }
+ return *o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *QuarantineOfferDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil || IsNil(o.OfferId) {
+ return nil, false
+ }
+ return o.OfferId, true
+}
+
+// HasOfferId returns a boolean if a field has been set.
+func (o *QuarantineOfferDTO) HasOfferId() bool {
+ if o != nil && !IsNil(o.OfferId) {
+ return true
+ }
+
+ return false
+}
+
+// SetOfferId gets a reference to the given string and assigns it to the OfferId field.
+func (o *QuarantineOfferDTO) SetOfferId(v string) {
+ o.OfferId = &v
+}
+
+// GetCurrentPrice returns the CurrentPrice field value if set, zero value otherwise.
+func (o *QuarantineOfferDTO) GetCurrentPrice() BasePriceDTO {
+ if o == nil || IsNil(o.CurrentPrice) {
+ var ret BasePriceDTO
+ return ret
+ }
+ return *o.CurrentPrice
+}
+
+// GetCurrentPriceOk returns a tuple with the CurrentPrice field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *QuarantineOfferDTO) GetCurrentPriceOk() (*BasePriceDTO, bool) {
+ if o == nil || IsNil(o.CurrentPrice) {
+ return nil, false
+ }
+ return o.CurrentPrice, true
+}
+
+// HasCurrentPrice returns a boolean if a field has been set.
+func (o *QuarantineOfferDTO) HasCurrentPrice() bool {
+ if o != nil && !IsNil(o.CurrentPrice) {
+ return true
+ }
+
+ return false
+}
+
+// SetCurrentPrice gets a reference to the given BasePriceDTO and assigns it to the CurrentPrice field.
+func (o *QuarantineOfferDTO) SetCurrentPrice(v BasePriceDTO) {
+ o.CurrentPrice = &v
+}
+
+// GetLastValidPrice returns the LastValidPrice field value if set, zero value otherwise.
+func (o *QuarantineOfferDTO) GetLastValidPrice() BasePriceDTO {
+ if o == nil || IsNil(o.LastValidPrice) {
+ var ret BasePriceDTO
+ return ret
+ }
+ return *o.LastValidPrice
+}
+
+// GetLastValidPriceOk returns a tuple with the LastValidPrice field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *QuarantineOfferDTO) GetLastValidPriceOk() (*BasePriceDTO, bool) {
+ if o == nil || IsNil(o.LastValidPrice) {
+ return nil, false
+ }
+ return o.LastValidPrice, true
+}
+
+// HasLastValidPrice returns a boolean if a field has been set.
+func (o *QuarantineOfferDTO) HasLastValidPrice() bool {
+ if o != nil && !IsNil(o.LastValidPrice) {
+ return true
+ }
+
+ return false
+}
+
+// SetLastValidPrice gets a reference to the given BasePriceDTO and assigns it to the LastValidPrice field.
+func (o *QuarantineOfferDTO) SetLastValidPrice(v BasePriceDTO) {
+ o.LastValidPrice = &v
+}
+
+// GetVerdicts returns the Verdicts field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *QuarantineOfferDTO) GetVerdicts() []PriceQuarantineVerdictDTO {
+ if o == nil {
+ var ret []PriceQuarantineVerdictDTO
+ return ret
+ }
+ return o.Verdicts
+}
+
+// GetVerdictsOk returns a tuple with the Verdicts field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *QuarantineOfferDTO) GetVerdictsOk() ([]PriceQuarantineVerdictDTO, bool) {
+ if o == nil || IsNil(o.Verdicts) {
+ return nil, false
+ }
+ return o.Verdicts, true
+}
+
+// HasVerdicts returns a boolean if a field has been set.
+func (o *QuarantineOfferDTO) HasVerdicts() bool {
+ if o != nil && !IsNil(o.Verdicts) {
+ return true
+ }
+
+ return false
+}
+
+// SetVerdicts gets a reference to the given []PriceQuarantineVerdictDTO and assigns it to the Verdicts field.
+func (o *QuarantineOfferDTO) SetVerdicts(v []PriceQuarantineVerdictDTO) {
+ o.Verdicts = v
+}
+
+func (o QuarantineOfferDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o QuarantineOfferDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.OfferId) {
+ toSerialize["offerId"] = o.OfferId
+ }
+ if !IsNil(o.CurrentPrice) {
+ toSerialize["currentPrice"] = o.CurrentPrice
+ }
+ if !IsNil(o.LastValidPrice) {
+ toSerialize["lastValidPrice"] = o.LastValidPrice
+ }
+ if o.Verdicts != nil {
+ toSerialize["verdicts"] = o.Verdicts
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *QuarantineOfferDTO) UnmarshalJSON(data []byte) (err error) {
+ varQuarantineOfferDTO := _QuarantineOfferDTO{}
+
+ err = json.Unmarshal(data, &varQuarantineOfferDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = QuarantineOfferDTO(varQuarantineOfferDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "currentPrice")
+ delete(additionalProperties, "lastValidPrice")
+ delete(additionalProperties, "verdicts")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableQuarantineOfferDTO struct {
+ value *QuarantineOfferDTO
+ isSet bool
+}
+
+func (v NullableQuarantineOfferDTO) Get() *QuarantineOfferDTO {
+ return v.value
+}
+
+func (v *NullableQuarantineOfferDTO) Set(val *QuarantineOfferDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableQuarantineOfferDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableQuarantineOfferDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableQuarantineOfferDTO(val *QuarantineOfferDTO) *NullableQuarantineOfferDTO {
+ return &NullableQuarantineOfferDTO{value: val, isSet: true}
+}
+
+func (v NullableQuarantineOfferDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableQuarantineOfferDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_recipient_type.go b/pkg/api/yandex/ymclient/model_recipient_type.go
new file mode 100644
index 0000000..9e85249
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_recipient_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// RecipientType Способ возврата товара покупателем: * `SHOP` — в точку возврата магазина. * `DELIVERY_SERVICE` — отправить курьером. * `POST` — почта.
+type RecipientType string
+
+// List of RecipientType
+const (
+ RECIPIENTTYPE_SHOP RecipientType = "SHOP"
+ RECIPIENTTYPE_DELIVERY_SERVICE RecipientType = "DELIVERY_SERVICE"
+ RECIPIENTTYPE_POST RecipientType = "POST"
+)
+
+// All allowed values of RecipientType enum
+var AllowedRecipientTypeEnumValues = []RecipientType{
+ "SHOP",
+ "DELIVERY_SERVICE",
+ "POST",
+}
+
+func (v *RecipientType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := RecipientType(value)
+ for _, existing := range AllowedRecipientTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid RecipientType", value)
+}
+
+// NewRecipientTypeFromValue returns a pointer to a valid RecipientType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewRecipientTypeFromValue(v string) (*RecipientType, error) {
+ ev := RecipientType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for RecipientType: valid values are %v", v, AllowedRecipientTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v RecipientType) IsValid() bool {
+ for _, existing := range AllowedRecipientTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to RecipientType value
+func (v RecipientType) Ptr() *RecipientType {
+ return &v
+}
+
+type NullableRecipientType struct {
+ value *RecipientType
+ isSet bool
+}
+
+func (v NullableRecipientType) Get() *RecipientType {
+ return v.value
+}
+
+func (v *NullableRecipientType) Set(val *RecipientType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRecipientType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRecipientType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRecipientType(val *RecipientType) *NullableRecipientType {
+ return &NullableRecipientType{value: val, isSet: true}
+}
+
+func (v NullableRecipientType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRecipientType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_refund_status_type.go b/pkg/api/yandex/ymclient/model_refund_status_type.go
new file mode 100644
index 0000000..eaf3e9b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_refund_status_type.go
@@ -0,0 +1,138 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// RefundStatusType Статус возврата денег: * `STARTED_BY_USER` — создан клиентом из личного кабинета. * `REFUND_IN_PROGRESS` — ждет решение о возврате денег. * `REFUNDED` — деньги возвращены. * `FAILED` — невозможно провести возврат покупателю. * `WAITING_FOR_DECISION` — ожидает решения (:no-translate[DBS]). * `DECISION_MADE` — по возврату принято решение (:no-translate[DBS]). * `REFUNDED_WITH_BONUSES` — возврат осуществлен баллами Плюса или промокодом. * `REFUNDED_BY_SHOP` — магазин сделал самостоятельно возврат денег. * `COMPLETE_WITHOUT_REFUND` — возврат денег не требуется. * `CANCELLED` — возврат отменен. * `REJECTED` — возврат отклонен модерацией или в ПВЗ. * `PREMODERATION_DISPUTE` — по возврату открыт спор (:no-translate[FBS] и Экспресс). * `PREMODERATION_DECISION_WAITING` — ожидает решения (:no-translate[FBS] и Экспресс). * `PREMODERATION_DECISION_MADE` — по возврату принято решение (:no-translate[FBS] и Экспресс). * `PREMODERATION_SELECT_DELIVERY` — пользователь выбирает способ доставки (:no-translate[FBS] и Экспресс). * `UNKNOWN` — неизвестный статус.
+type RefundStatusType string
+
+// List of RefundStatusType
+const (
+ REFUNDSTATUSTYPE_STARTED_BY_USER RefundStatusType = "STARTED_BY_USER"
+ REFUNDSTATUSTYPE_REFUND_IN_PROGRESS RefundStatusType = "REFUND_IN_PROGRESS"
+ REFUNDSTATUSTYPE_REFUNDED RefundStatusType = "REFUNDED"
+ REFUNDSTATUSTYPE_FAILED RefundStatusType = "FAILED"
+ REFUNDSTATUSTYPE_WAITING_FOR_DECISION RefundStatusType = "WAITING_FOR_DECISION"
+ REFUNDSTATUSTYPE_DECISION_MADE RefundStatusType = "DECISION_MADE"
+ REFUNDSTATUSTYPE_REFUNDED_WITH_BONUSES RefundStatusType = "REFUNDED_WITH_BONUSES"
+ REFUNDSTATUSTYPE_REFUNDED_BY_SHOP RefundStatusType = "REFUNDED_BY_SHOP"
+ REFUNDSTATUSTYPE_CANCELLED RefundStatusType = "CANCELLED"
+ REFUNDSTATUSTYPE_REJECTED RefundStatusType = "REJECTED"
+ REFUNDSTATUSTYPE_COMPLETE_WITHOUT_REFUND RefundStatusType = "COMPLETE_WITHOUT_REFUND"
+ REFUNDSTATUSTYPE_PREMODERATION_DISPUTE RefundStatusType = "PREMODERATION_DISPUTE"
+ REFUNDSTATUSTYPE_PREMODERATION_DECISION_WAITING RefundStatusType = "PREMODERATION_DECISION_WAITING"
+ REFUNDSTATUSTYPE_PREMODERATION_DECISION_MADE RefundStatusType = "PREMODERATION_DECISION_MADE"
+ REFUNDSTATUSTYPE_PREMODERATION_SELECT_DELIVERY RefundStatusType = "PREMODERATION_SELECT_DELIVERY"
+ REFUNDSTATUSTYPE_UNKNOWN RefundStatusType = "UNKNOWN"
+)
+
+// All allowed values of RefundStatusType enum
+var AllowedRefundStatusTypeEnumValues = []RefundStatusType{
+ "STARTED_BY_USER",
+ "REFUND_IN_PROGRESS",
+ "REFUNDED",
+ "FAILED",
+ "WAITING_FOR_DECISION",
+ "DECISION_MADE",
+ "REFUNDED_WITH_BONUSES",
+ "REFUNDED_BY_SHOP",
+ "CANCELLED",
+ "REJECTED",
+ "COMPLETE_WITHOUT_REFUND",
+ "PREMODERATION_DISPUTE",
+ "PREMODERATION_DECISION_WAITING",
+ "PREMODERATION_DECISION_MADE",
+ "PREMODERATION_SELECT_DELIVERY",
+ "UNKNOWN",
+}
+
+func (v *RefundStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := RefundStatusType(value)
+ for _, existing := range AllowedRefundStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid RefundStatusType", value)
+}
+
+// NewRefundStatusTypeFromValue returns a pointer to a valid RefundStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewRefundStatusTypeFromValue(v string) (*RefundStatusType, error) {
+ ev := RefundStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for RefundStatusType: valid values are %v", v, AllowedRefundStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v RefundStatusType) IsValid() bool {
+ for _, existing := range AllowedRefundStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to RefundStatusType value
+func (v RefundStatusType) Ptr() *RefundStatusType {
+ return &v
+}
+
+type NullableRefundStatusType struct {
+ value *RefundStatusType
+ isSet bool
+}
+
+func (v NullableRefundStatusType) Get() *RefundStatusType {
+ return v.value
+}
+
+func (v *NullableRefundStatusType) Set(val *RefundStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRefundStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRefundStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRefundStatusType(val *RefundStatusType) *NullableRefundStatusType {
+ return &NullableRefundStatusType{value: val, isSet: true}
+}
+
+func (v NullableRefundStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRefundStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_region_dto.go b/pkg/api/yandex/ymclient/model_region_dto.go
new file mode 100644
index 0000000..e2df24d
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_region_dto.go
@@ -0,0 +1,302 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the RegionDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &RegionDTO{}
+
+// RegionDTO Регион доставки.
+type RegionDTO struct {
+ // Идентификатор региона.
+ Id int64 `json:"id"`
+ // Название региона.
+ Name string `json:"name"`
+ Type RegionType `json:"type"`
+ Parent *RegionDTO `json:"parent,omitempty"`
+ // Дочерние регионы.
+ Children []RegionDTO `json:"children,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _RegionDTO RegionDTO
+
+// NewRegionDTO instantiates a new RegionDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewRegionDTO(id int64, name string, type_ RegionType) *RegionDTO {
+ this := RegionDTO{}
+ this.Id = id
+ this.Name = name
+ this.Type = type_
+ return &this
+}
+
+// NewRegionDTOWithDefaults instantiates a new RegionDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewRegionDTOWithDefaults() *RegionDTO {
+ this := RegionDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *RegionDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *RegionDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *RegionDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetName returns the Name field value
+func (o *RegionDTO) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *RegionDTO) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *RegionDTO) SetName(v string) {
+ o.Name = v
+}
+
+// GetType returns the Type field value
+func (o *RegionDTO) GetType() RegionType {
+ if o == nil {
+ var ret RegionType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *RegionDTO) GetTypeOk() (*RegionType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *RegionDTO) SetType(v RegionType) {
+ o.Type = v
+}
+
+// GetParent returns the Parent field value if set, zero value otherwise.
+func (o *RegionDTO) GetParent() RegionDTO {
+ if o == nil || IsNil(o.Parent) {
+ var ret RegionDTO
+ return ret
+ }
+ return *o.Parent
+}
+
+// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RegionDTO) GetParentOk() (*RegionDTO, bool) {
+ if o == nil || IsNil(o.Parent) {
+ return nil, false
+ }
+ return o.Parent, true
+}
+
+// HasParent returns a boolean if a field has been set.
+func (o *RegionDTO) HasParent() bool {
+ if o != nil && !IsNil(o.Parent) {
+ return true
+ }
+
+ return false
+}
+
+// SetParent gets a reference to the given RegionDTO and assigns it to the Parent field.
+func (o *RegionDTO) SetParent(v RegionDTO) {
+ o.Parent = &v
+}
+
+// GetChildren returns the Children field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *RegionDTO) GetChildren() []RegionDTO {
+ if o == nil {
+ var ret []RegionDTO
+ return ret
+ }
+ return o.Children
+}
+
+// GetChildrenOk returns a tuple with the Children field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *RegionDTO) GetChildrenOk() ([]RegionDTO, bool) {
+ if o == nil || IsNil(o.Children) {
+ return nil, false
+ }
+ return o.Children, true
+}
+
+// HasChildren returns a boolean if a field has been set.
+func (o *RegionDTO) HasChildren() bool {
+ if o != nil && !IsNil(o.Children) {
+ return true
+ }
+
+ return false
+}
+
+// SetChildren gets a reference to the given []RegionDTO and assigns it to the Children field.
+func (o *RegionDTO) SetChildren(v []RegionDTO) {
+ o.Children = v
+}
+
+func (o RegionDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o RegionDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["name"] = o.Name
+ toSerialize["type"] = o.Type
+ if !IsNil(o.Parent) {
+ toSerialize["parent"] = o.Parent
+ }
+ if o.Children != nil {
+ toSerialize["children"] = o.Children
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *RegionDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "name",
+ "type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varRegionDTO := _RegionDTO{}
+
+ err = json.Unmarshal(data, &varRegionDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = RegionDTO(varRegionDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "parent")
+ delete(additionalProperties, "children")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableRegionDTO struct {
+ value *RegionDTO
+ isSet bool
+}
+
+func (v NullableRegionDTO) Get() *RegionDTO {
+ return v.value
+}
+
+func (v *NullableRegionDTO) Set(val *RegionDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRegionDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRegionDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRegionDTO(val *RegionDTO) *NullableRegionDTO {
+ return &NullableRegionDTO{value: val, isSet: true}
+}
+
+func (v NullableRegionDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRegionDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_region_type.go b/pkg/api/yandex/ymclient/model_region_type.go
new file mode 100644
index 0000000..b0921aa
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_region_type.go
@@ -0,0 +1,128 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// RegionType Тип региона. Возможные значения: * `CITY_DISTRICT` — район города. * `CITY` — крупный город. * `CONTINENT` — континент. * `COUNTRY_DISTRICT` — область. * `COUNTRY` — страна. * `REGION` — регион. * `REPUBLIC_AREA` — район субъекта федерации. * `REPUBLIC` — субъект федерации. * `SUBWAY_STATION` — станция метро. * `VILLAGE` — город. * `OTHER` — неизвестный регион.
+type RegionType string
+
+// List of RegionType
+const (
+ REGIONTYPE_OTHER RegionType = "OTHER"
+ REGIONTYPE_CONTINENT RegionType = "CONTINENT"
+ REGIONTYPE_REGION RegionType = "REGION"
+ REGIONTYPE_COUNTRY RegionType = "COUNTRY"
+ REGIONTYPE_COUNTRY_DISTRICT RegionType = "COUNTRY_DISTRICT"
+ REGIONTYPE_REPUBLIC RegionType = "REPUBLIC"
+ REGIONTYPE_CITY RegionType = "CITY"
+ REGIONTYPE_VILLAGE RegionType = "VILLAGE"
+ REGIONTYPE_CITY_DISTRICT RegionType = "CITY_DISTRICT"
+ REGIONTYPE_SUBWAY_STATION RegionType = "SUBWAY_STATION"
+ REGIONTYPE_REPUBLIC_AREA RegionType = "REPUBLIC_AREA"
+)
+
+// All allowed values of RegionType enum
+var AllowedRegionTypeEnumValues = []RegionType{
+ "OTHER",
+ "CONTINENT",
+ "REGION",
+ "COUNTRY",
+ "COUNTRY_DISTRICT",
+ "REPUBLIC",
+ "CITY",
+ "VILLAGE",
+ "CITY_DISTRICT",
+ "SUBWAY_STATION",
+ "REPUBLIC_AREA",
+}
+
+func (v *RegionType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := RegionType(value)
+ for _, existing := range AllowedRegionTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid RegionType", value)
+}
+
+// NewRegionTypeFromValue returns a pointer to a valid RegionType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewRegionTypeFromValue(v string) (*RegionType, error) {
+ ev := RegionType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for RegionType: valid values are %v", v, AllowedRegionTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v RegionType) IsValid() bool {
+ for _, existing := range AllowedRegionTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to RegionType value
+func (v RegionType) Ptr() *RegionType {
+ return &v
+}
+
+type NullableRegionType struct {
+ value *RegionType
+ isSet bool
+}
+
+func (v NullableRegionType) Get() *RegionType {
+ return v.value
+}
+
+func (v *NullableRegionType) Set(val *RegionType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRegionType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRegionType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRegionType(val *RegionType) *NullableRegionType {
+ return &NullableRegionType{value: val, isSet: true}
+}
+
+func (v NullableRegionType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRegionType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_regional_model_info_dto.go b/pkg/api/yandex/ymclient/model_regional_model_info_dto.go
new file mode 100644
index 0000000..f6cf503
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_regional_model_info_dto.go
@@ -0,0 +1,191 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the RegionalModelInfoDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &RegionalModelInfoDTO{}
+
+// RegionalModelInfoDTO Региональная информация.
+type RegionalModelInfoDTO struct {
+ Currency *CurrencyType `json:"currency,omitempty"`
+ // Идентификатор региона, для которого выводится информация о предложениях модели (доставляемых в этот регион). Информацию о регионе по идентификатору можно получить с помощью запроса [GET regions/{regionId}](../../reference/regions/searchRegionsById.md).
+ RegionId *int64 `json:"regionId,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _RegionalModelInfoDTO RegionalModelInfoDTO
+
+// NewRegionalModelInfoDTO instantiates a new RegionalModelInfoDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewRegionalModelInfoDTO() *RegionalModelInfoDTO {
+ this := RegionalModelInfoDTO{}
+ return &this
+}
+
+// NewRegionalModelInfoDTOWithDefaults instantiates a new RegionalModelInfoDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewRegionalModelInfoDTOWithDefaults() *RegionalModelInfoDTO {
+ this := RegionalModelInfoDTO{}
+ return &this
+}
+
+// GetCurrency returns the Currency field value if set, zero value otherwise.
+func (o *RegionalModelInfoDTO) GetCurrency() CurrencyType {
+ if o == nil || IsNil(o.Currency) {
+ var ret CurrencyType
+ return ret
+ }
+ return *o.Currency
+}
+
+// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RegionalModelInfoDTO) GetCurrencyOk() (*CurrencyType, bool) {
+ if o == nil || IsNil(o.Currency) {
+ return nil, false
+ }
+ return o.Currency, true
+}
+
+// HasCurrency returns a boolean if a field has been set.
+func (o *RegionalModelInfoDTO) HasCurrency() bool {
+ if o != nil && !IsNil(o.Currency) {
+ return true
+ }
+
+ return false
+}
+
+// SetCurrency gets a reference to the given CurrencyType and assigns it to the Currency field.
+func (o *RegionalModelInfoDTO) SetCurrency(v CurrencyType) {
+ o.Currency = &v
+}
+
+// GetRegionId returns the RegionId field value if set, zero value otherwise.
+func (o *RegionalModelInfoDTO) GetRegionId() int64 {
+ if o == nil || IsNil(o.RegionId) {
+ var ret int64
+ return ret
+ }
+ return *o.RegionId
+}
+
+// GetRegionIdOk returns a tuple with the RegionId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RegionalModelInfoDTO) GetRegionIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.RegionId) {
+ return nil, false
+ }
+ return o.RegionId, true
+}
+
+// HasRegionId returns a boolean if a field has been set.
+func (o *RegionalModelInfoDTO) HasRegionId() bool {
+ if o != nil && !IsNil(o.RegionId) {
+ return true
+ }
+
+ return false
+}
+
+// SetRegionId gets a reference to the given int64 and assigns it to the RegionId field.
+func (o *RegionalModelInfoDTO) SetRegionId(v int64) {
+ o.RegionId = &v
+}
+
+func (o RegionalModelInfoDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o RegionalModelInfoDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Currency) {
+ toSerialize["currency"] = o.Currency
+ }
+ if !IsNil(o.RegionId) {
+ toSerialize["regionId"] = o.RegionId
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *RegionalModelInfoDTO) UnmarshalJSON(data []byte) (err error) {
+ varRegionalModelInfoDTO := _RegionalModelInfoDTO{}
+
+ err = json.Unmarshal(data, &varRegionalModelInfoDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = RegionalModelInfoDTO(varRegionalModelInfoDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "currency")
+ delete(additionalProperties, "regionId")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableRegionalModelInfoDTO struct {
+ value *RegionalModelInfoDTO
+ isSet bool
+}
+
+func (v NullableRegionalModelInfoDTO) Get() *RegionalModelInfoDTO {
+ return v.value
+}
+
+func (v *NullableRegionalModelInfoDTO) Set(val *RegionalModelInfoDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRegionalModelInfoDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRegionalModelInfoDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRegionalModelInfoDTO(val *RegionalModelInfoDTO) *NullableRegionalModelInfoDTO {
+ return &NullableRegionalModelInfoDTO{value: val, isSet: true}
+}
+
+func (v NullableRegionalModelInfoDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRegionalModelInfoDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_rejected_promo_offer_delete_dto.go b/pkg/api/yandex/ymclient/model_rejected_promo_offer_delete_dto.go
new file mode 100644
index 0000000..77692da
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_rejected_promo_offer_delete_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the RejectedPromoOfferDeleteDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &RejectedPromoOfferDeleteDTO{}
+
+// RejectedPromoOfferDeleteDTO Информация о товаре и ошибки, которые появились при его удалении.
+type RejectedPromoOfferDeleteDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ Reason RejectedPromoOfferDeleteReasonType `json:"reason"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _RejectedPromoOfferDeleteDTO RejectedPromoOfferDeleteDTO
+
+// NewRejectedPromoOfferDeleteDTO instantiates a new RejectedPromoOfferDeleteDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewRejectedPromoOfferDeleteDTO(offerId string, reason RejectedPromoOfferDeleteReasonType) *RejectedPromoOfferDeleteDTO {
+ this := RejectedPromoOfferDeleteDTO{}
+ this.OfferId = offerId
+ this.Reason = reason
+ return &this
+}
+
+// NewRejectedPromoOfferDeleteDTOWithDefaults instantiates a new RejectedPromoOfferDeleteDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewRejectedPromoOfferDeleteDTOWithDefaults() *RejectedPromoOfferDeleteDTO {
+ this := RejectedPromoOfferDeleteDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value
+func (o *RejectedPromoOfferDeleteDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *RejectedPromoOfferDeleteDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *RejectedPromoOfferDeleteDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetReason returns the Reason field value
+func (o *RejectedPromoOfferDeleteDTO) GetReason() RejectedPromoOfferDeleteReasonType {
+ if o == nil {
+ var ret RejectedPromoOfferDeleteReasonType
+ return ret
+ }
+
+ return o.Reason
+}
+
+// GetReasonOk returns a tuple with the Reason field value
+// and a boolean to check if the value has been set.
+func (o *RejectedPromoOfferDeleteDTO) GetReasonOk() (*RejectedPromoOfferDeleteReasonType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Reason, true
+}
+
+// SetReason sets field value
+func (o *RejectedPromoOfferDeleteDTO) SetReason(v RejectedPromoOfferDeleteReasonType) {
+ o.Reason = v
+}
+
+func (o RejectedPromoOfferDeleteDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o RejectedPromoOfferDeleteDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerId"] = o.OfferId
+ toSerialize["reason"] = o.Reason
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *RejectedPromoOfferDeleteDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerId",
+ "reason",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varRejectedPromoOfferDeleteDTO := _RejectedPromoOfferDeleteDTO{}
+
+ err = json.Unmarshal(data, &varRejectedPromoOfferDeleteDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = RejectedPromoOfferDeleteDTO(varRejectedPromoOfferDeleteDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "reason")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableRejectedPromoOfferDeleteDTO struct {
+ value *RejectedPromoOfferDeleteDTO
+ isSet bool
+}
+
+func (v NullableRejectedPromoOfferDeleteDTO) Get() *RejectedPromoOfferDeleteDTO {
+ return v.value
+}
+
+func (v *NullableRejectedPromoOfferDeleteDTO) Set(val *RejectedPromoOfferDeleteDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRejectedPromoOfferDeleteDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRejectedPromoOfferDeleteDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRejectedPromoOfferDeleteDTO(val *RejectedPromoOfferDeleteDTO) *NullableRejectedPromoOfferDeleteDTO {
+ return &NullableRejectedPromoOfferDeleteDTO{value: val, isSet: true}
+}
+
+func (v NullableRejectedPromoOfferDeleteDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRejectedPromoOfferDeleteDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_rejected_promo_offer_delete_reason_type.go b/pkg/api/yandex/ymclient/model_rejected_promo_offer_delete_reason_type.go
new file mode 100644
index 0000000..024b4a2
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_rejected_promo_offer_delete_reason_type.go
@@ -0,0 +1,108 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// RejectedPromoOfferDeleteReasonType Описание ошибки: * `OFFER_DOES_NOT_EXIST` — в кабинете нет товара с таким :no-translate[SKU].
+type RejectedPromoOfferDeleteReasonType string
+
+// List of RejectedPromoOfferDeleteReasonType
+const (
+ REJECTEDPROMOOFFERDELETEREASONTYPE_OFFER_DOES_NOT_EXIST RejectedPromoOfferDeleteReasonType = "OFFER_DOES_NOT_EXIST"
+)
+
+// All allowed values of RejectedPromoOfferDeleteReasonType enum
+var AllowedRejectedPromoOfferDeleteReasonTypeEnumValues = []RejectedPromoOfferDeleteReasonType{
+ "OFFER_DOES_NOT_EXIST",
+}
+
+func (v *RejectedPromoOfferDeleteReasonType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := RejectedPromoOfferDeleteReasonType(value)
+ for _, existing := range AllowedRejectedPromoOfferDeleteReasonTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid RejectedPromoOfferDeleteReasonType", value)
+}
+
+// NewRejectedPromoOfferDeleteReasonTypeFromValue returns a pointer to a valid RejectedPromoOfferDeleteReasonType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewRejectedPromoOfferDeleteReasonTypeFromValue(v string) (*RejectedPromoOfferDeleteReasonType, error) {
+ ev := RejectedPromoOfferDeleteReasonType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for RejectedPromoOfferDeleteReasonType: valid values are %v", v, AllowedRejectedPromoOfferDeleteReasonTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v RejectedPromoOfferDeleteReasonType) IsValid() bool {
+ for _, existing := range AllowedRejectedPromoOfferDeleteReasonTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to RejectedPromoOfferDeleteReasonType value
+func (v RejectedPromoOfferDeleteReasonType) Ptr() *RejectedPromoOfferDeleteReasonType {
+ return &v
+}
+
+type NullableRejectedPromoOfferDeleteReasonType struct {
+ value *RejectedPromoOfferDeleteReasonType
+ isSet bool
+}
+
+func (v NullableRejectedPromoOfferDeleteReasonType) Get() *RejectedPromoOfferDeleteReasonType {
+ return v.value
+}
+
+func (v *NullableRejectedPromoOfferDeleteReasonType) Set(val *RejectedPromoOfferDeleteReasonType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRejectedPromoOfferDeleteReasonType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRejectedPromoOfferDeleteReasonType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRejectedPromoOfferDeleteReasonType(val *RejectedPromoOfferDeleteReasonType) *NullableRejectedPromoOfferDeleteReasonType {
+ return &NullableRejectedPromoOfferDeleteReasonType{value: val, isSet: true}
+}
+
+func (v NullableRejectedPromoOfferDeleteReasonType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRejectedPromoOfferDeleteReasonType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_rejected_promo_offer_update_dto.go b/pkg/api/yandex/ymclient/model_rejected_promo_offer_update_dto.go
new file mode 100644
index 0000000..02f4876
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_rejected_promo_offer_update_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the RejectedPromoOfferUpdateDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &RejectedPromoOfferUpdateDTO{}
+
+// RejectedPromoOfferUpdateDTO Описание отклоненного изменения.
+type RejectedPromoOfferUpdateDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ Reason RejectedPromoOfferUpdateReasonType `json:"reason"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _RejectedPromoOfferUpdateDTO RejectedPromoOfferUpdateDTO
+
+// NewRejectedPromoOfferUpdateDTO instantiates a new RejectedPromoOfferUpdateDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewRejectedPromoOfferUpdateDTO(offerId string, reason RejectedPromoOfferUpdateReasonType) *RejectedPromoOfferUpdateDTO {
+ this := RejectedPromoOfferUpdateDTO{}
+ this.OfferId = offerId
+ this.Reason = reason
+ return &this
+}
+
+// NewRejectedPromoOfferUpdateDTOWithDefaults instantiates a new RejectedPromoOfferUpdateDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewRejectedPromoOfferUpdateDTOWithDefaults() *RejectedPromoOfferUpdateDTO {
+ this := RejectedPromoOfferUpdateDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value
+func (o *RejectedPromoOfferUpdateDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *RejectedPromoOfferUpdateDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *RejectedPromoOfferUpdateDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetReason returns the Reason field value
+func (o *RejectedPromoOfferUpdateDTO) GetReason() RejectedPromoOfferUpdateReasonType {
+ if o == nil {
+ var ret RejectedPromoOfferUpdateReasonType
+ return ret
+ }
+
+ return o.Reason
+}
+
+// GetReasonOk returns a tuple with the Reason field value
+// and a boolean to check if the value has been set.
+func (o *RejectedPromoOfferUpdateDTO) GetReasonOk() (*RejectedPromoOfferUpdateReasonType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Reason, true
+}
+
+// SetReason sets field value
+func (o *RejectedPromoOfferUpdateDTO) SetReason(v RejectedPromoOfferUpdateReasonType) {
+ o.Reason = v
+}
+
+func (o RejectedPromoOfferUpdateDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o RejectedPromoOfferUpdateDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerId"] = o.OfferId
+ toSerialize["reason"] = o.Reason
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *RejectedPromoOfferUpdateDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerId",
+ "reason",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varRejectedPromoOfferUpdateDTO := _RejectedPromoOfferUpdateDTO{}
+
+ err = json.Unmarshal(data, &varRejectedPromoOfferUpdateDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = RejectedPromoOfferUpdateDTO(varRejectedPromoOfferUpdateDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "reason")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableRejectedPromoOfferUpdateDTO struct {
+ value *RejectedPromoOfferUpdateDTO
+ isSet bool
+}
+
+func (v NullableRejectedPromoOfferUpdateDTO) Get() *RejectedPromoOfferUpdateDTO {
+ return v.value
+}
+
+func (v *NullableRejectedPromoOfferUpdateDTO) Set(val *RejectedPromoOfferUpdateDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRejectedPromoOfferUpdateDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRejectedPromoOfferUpdateDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRejectedPromoOfferUpdateDTO(val *RejectedPromoOfferUpdateDTO) *NullableRejectedPromoOfferUpdateDTO {
+ return &NullableRejectedPromoOfferUpdateDTO{value: val, isSet: true}
+}
+
+func (v NullableRejectedPromoOfferUpdateDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRejectedPromoOfferUpdateDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_rejected_promo_offer_update_reason_type.go b/pkg/api/yandex/ymclient/model_rejected_promo_offer_update_reason_type.go
new file mode 100644
index 0000000..3653627
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_rejected_promo_offer_update_reason_type.go
@@ -0,0 +1,126 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// RejectedPromoOfferUpdateReasonType Причина отклонения изменения: * `OFFER_DOES_NOT_EXIST` — в кабинете нет товара с таким SKU. * `OFFER_DUPLICATION` — один и тот же товар передан несколько раз. * `OFFER_NOT_ELIGIBLE_FOR_PROMO` — товар не подходит под условия акции. * `OFFER_PROMOS_MAX_BYTE_SIZE_EXCEEDED` — товар не добавлен в акцию по техническим причинам. * `DEADLINE_FOR_FOCUS_PROMOS_EXCEEDED` — истек срок добавления товаров в акцию. * `EMPTY_OLD_PRICE` — не указана зачеркнутая цена. * `EMPTY_PROMO_PRICE` — не указана цена по акции. * `MAX_PROMO_PRICE_EXCEEDED` — цена по акции превышает максимально возможную цену для участия в акции. * `PROMO_PRICE_BIGGER_THAN_MAX` — цена по акции больше 95% от зачеркнутой цены. * `PROMO_PRICE_SMALLER_THAN_MIN` — цена по акции меньше 1% от зачеркнутой цены.
+type RejectedPromoOfferUpdateReasonType string
+
+// List of RejectedPromoOfferUpdateReasonType
+const (
+ REJECTEDPROMOOFFERUPDATEREASONTYPE_OFFER_DOES_NOT_EXIST RejectedPromoOfferUpdateReasonType = "OFFER_DOES_NOT_EXIST"
+ REJECTEDPROMOOFFERUPDATEREASONTYPE_OFFER_DUPLICATION RejectedPromoOfferUpdateReasonType = "OFFER_DUPLICATION"
+ REJECTEDPROMOOFFERUPDATEREASONTYPE_OFFER_NOT_ELIGIBLE_FOR_PROMO RejectedPromoOfferUpdateReasonType = "OFFER_NOT_ELIGIBLE_FOR_PROMO"
+ REJECTEDPROMOOFFERUPDATEREASONTYPE_OFFER_PROMOS_MAX_BYTE_SIZE_EXCEEDED RejectedPromoOfferUpdateReasonType = "OFFER_PROMOS_MAX_BYTE_SIZE_EXCEEDED"
+ REJECTEDPROMOOFFERUPDATEREASONTYPE_DEADLINE_FOR_FOCUS_PROMOS_EXCEEDED RejectedPromoOfferUpdateReasonType = "DEADLINE_FOR_FOCUS_PROMOS_EXCEEDED"
+ REJECTEDPROMOOFFERUPDATEREASONTYPE_EMPTY_OLD_PRICE RejectedPromoOfferUpdateReasonType = "EMPTY_OLD_PRICE"
+ REJECTEDPROMOOFFERUPDATEREASONTYPE_EMPTY_PROMO_PRICE RejectedPromoOfferUpdateReasonType = "EMPTY_PROMO_PRICE"
+ REJECTEDPROMOOFFERUPDATEREASONTYPE_MAX_PROMO_PRICE_EXCEEDED RejectedPromoOfferUpdateReasonType = "MAX_PROMO_PRICE_EXCEEDED"
+ REJECTEDPROMOOFFERUPDATEREASONTYPE_PROMO_PRICE_BIGGER_THAN_MAX RejectedPromoOfferUpdateReasonType = "PROMO_PRICE_BIGGER_THAN_MAX"
+ REJECTEDPROMOOFFERUPDATEREASONTYPE_PROMO_PRICE_SMALLER_THAN_MIN RejectedPromoOfferUpdateReasonType = "PROMO_PRICE_SMALLER_THAN_MIN"
+)
+
+// All allowed values of RejectedPromoOfferUpdateReasonType enum
+var AllowedRejectedPromoOfferUpdateReasonTypeEnumValues = []RejectedPromoOfferUpdateReasonType{
+ "OFFER_DOES_NOT_EXIST",
+ "OFFER_DUPLICATION",
+ "OFFER_NOT_ELIGIBLE_FOR_PROMO",
+ "OFFER_PROMOS_MAX_BYTE_SIZE_EXCEEDED",
+ "DEADLINE_FOR_FOCUS_PROMOS_EXCEEDED",
+ "EMPTY_OLD_PRICE",
+ "EMPTY_PROMO_PRICE",
+ "MAX_PROMO_PRICE_EXCEEDED",
+ "PROMO_PRICE_BIGGER_THAN_MAX",
+ "PROMO_PRICE_SMALLER_THAN_MIN",
+}
+
+func (v *RejectedPromoOfferUpdateReasonType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := RejectedPromoOfferUpdateReasonType(value)
+ for _, existing := range AllowedRejectedPromoOfferUpdateReasonTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid RejectedPromoOfferUpdateReasonType", value)
+}
+
+// NewRejectedPromoOfferUpdateReasonTypeFromValue returns a pointer to a valid RejectedPromoOfferUpdateReasonType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewRejectedPromoOfferUpdateReasonTypeFromValue(v string) (*RejectedPromoOfferUpdateReasonType, error) {
+ ev := RejectedPromoOfferUpdateReasonType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for RejectedPromoOfferUpdateReasonType: valid values are %v", v, AllowedRejectedPromoOfferUpdateReasonTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v RejectedPromoOfferUpdateReasonType) IsValid() bool {
+ for _, existing := range AllowedRejectedPromoOfferUpdateReasonTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to RejectedPromoOfferUpdateReasonType value
+func (v RejectedPromoOfferUpdateReasonType) Ptr() *RejectedPromoOfferUpdateReasonType {
+ return &v
+}
+
+type NullableRejectedPromoOfferUpdateReasonType struct {
+ value *RejectedPromoOfferUpdateReasonType
+ isSet bool
+}
+
+func (v NullableRejectedPromoOfferUpdateReasonType) Get() *RejectedPromoOfferUpdateReasonType {
+ return v.value
+}
+
+func (v *NullableRejectedPromoOfferUpdateReasonType) Set(val *RejectedPromoOfferUpdateReasonType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRejectedPromoOfferUpdateReasonType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRejectedPromoOfferUpdateReasonType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRejectedPromoOfferUpdateReasonType(val *RejectedPromoOfferUpdateReasonType) *NullableRejectedPromoOfferUpdateReasonType {
+ return &NullableRejectedPromoOfferUpdateReasonType{value: val, isSet: true}
+}
+
+func (v NullableRejectedPromoOfferUpdateReasonType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRejectedPromoOfferUpdateReasonType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_report_format_type.go b/pkg/api/yandex/ymclient/model_report_format_type.go
new file mode 100644
index 0000000..6e6d1fa
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_report_format_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReportFormatType Формат отчета: * `FILE` — файл с электронной таблицей (:no-translate[XLSX]). * `CSV` — ZIP-архив с CSV-файлами на каждый лист отчета. * `JSON` — ZIP-архив с JSON-файлами на каждый лист отчета.
+type ReportFormatType string
+
+// List of ReportFormatType
+const (
+ REPORTFORMATTYPE_FILE ReportFormatType = "FILE"
+ REPORTFORMATTYPE_CSV ReportFormatType = "CSV"
+ REPORTFORMATTYPE_JSON ReportFormatType = "JSON"
+)
+
+// All allowed values of ReportFormatType enum
+var AllowedReportFormatTypeEnumValues = []ReportFormatType{
+ "FILE",
+ "CSV",
+ "JSON",
+}
+
+func (v *ReportFormatType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReportFormatType(value)
+ for _, existing := range AllowedReportFormatTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReportFormatType", value)
+}
+
+// NewReportFormatTypeFromValue returns a pointer to a valid ReportFormatType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReportFormatTypeFromValue(v string) (*ReportFormatType, error) {
+ ev := ReportFormatType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReportFormatType: valid values are %v", v, AllowedReportFormatTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReportFormatType) IsValid() bool {
+ for _, existing := range AllowedReportFormatTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReportFormatType value
+func (v ReportFormatType) Ptr() *ReportFormatType {
+ return &v
+}
+
+type NullableReportFormatType struct {
+ value *ReportFormatType
+ isSet bool
+}
+
+func (v NullableReportFormatType) Get() *ReportFormatType {
+ return v.value
+}
+
+func (v *NullableReportFormatType) Set(val *ReportFormatType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReportFormatType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReportFormatType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReportFormatType(val *ReportFormatType) *NullableReportFormatType {
+ return &NullableReportFormatType{value: val, isSet: true}
+}
+
+func (v NullableReportFormatType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReportFormatType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_report_info_dto.go b/pkg/api/yandex/ymclient/model_report_info_dto.go
new file mode 100644
index 0000000..e3e9ca3
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_report_info_dto.go
@@ -0,0 +1,348 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the ReportInfoDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ReportInfoDTO{}
+
+// ReportInfoDTO Статус генерации и ссылка на готовый отчет или документ.
+type ReportInfoDTO struct {
+ Status ReportStatusType `json:"status"`
+ SubStatus *ReportSubStatusType `json:"subStatus,omitempty"`
+ // Дата и время запроса на генерацию.
+ GenerationRequestedAt time.Time `json:"generationRequestedAt"`
+ // Дата и время завершения генерации.
+ GenerationFinishedAt *time.Time `json:"generationFinishedAt,omitempty"`
+ // Ссылка на готовый отчет или документ.
+ File *string `json:"file,omitempty"`
+ // Ожидаемая продолжительность генерации в миллисекундах.
+ EstimatedGenerationTime *int64 `json:"estimatedGenerationTime,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ReportInfoDTO ReportInfoDTO
+
+// NewReportInfoDTO instantiates a new ReportInfoDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewReportInfoDTO(status ReportStatusType, generationRequestedAt time.Time) *ReportInfoDTO {
+ this := ReportInfoDTO{}
+ this.Status = status
+ this.GenerationRequestedAt = generationRequestedAt
+ return &this
+}
+
+// NewReportInfoDTOWithDefaults instantiates a new ReportInfoDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewReportInfoDTOWithDefaults() *ReportInfoDTO {
+ this := ReportInfoDTO{}
+ return &this
+}
+
+// GetStatus returns the Status field value
+func (o *ReportInfoDTO) GetStatus() ReportStatusType {
+ if o == nil {
+ var ret ReportStatusType
+ return ret
+ }
+
+ return o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value
+// and a boolean to check if the value has been set.
+func (o *ReportInfoDTO) GetStatusOk() (*ReportStatusType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Status, true
+}
+
+// SetStatus sets field value
+func (o *ReportInfoDTO) SetStatus(v ReportStatusType) {
+ o.Status = v
+}
+
+// GetSubStatus returns the SubStatus field value if set, zero value otherwise.
+func (o *ReportInfoDTO) GetSubStatus() ReportSubStatusType {
+ if o == nil || IsNil(o.SubStatus) {
+ var ret ReportSubStatusType
+ return ret
+ }
+ return *o.SubStatus
+}
+
+// GetSubStatusOk returns a tuple with the SubStatus field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReportInfoDTO) GetSubStatusOk() (*ReportSubStatusType, bool) {
+ if o == nil || IsNil(o.SubStatus) {
+ return nil, false
+ }
+ return o.SubStatus, true
+}
+
+// HasSubStatus returns a boolean if a field has been set.
+func (o *ReportInfoDTO) HasSubStatus() bool {
+ if o != nil && !IsNil(o.SubStatus) {
+ return true
+ }
+
+ return false
+}
+
+// SetSubStatus gets a reference to the given ReportSubStatusType and assigns it to the SubStatus field.
+func (o *ReportInfoDTO) SetSubStatus(v ReportSubStatusType) {
+ o.SubStatus = &v
+}
+
+// GetGenerationRequestedAt returns the GenerationRequestedAt field value
+func (o *ReportInfoDTO) GetGenerationRequestedAt() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.GenerationRequestedAt
+}
+
+// GetGenerationRequestedAtOk returns a tuple with the GenerationRequestedAt field value
+// and a boolean to check if the value has been set.
+func (o *ReportInfoDTO) GetGenerationRequestedAtOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.GenerationRequestedAt, true
+}
+
+// SetGenerationRequestedAt sets field value
+func (o *ReportInfoDTO) SetGenerationRequestedAt(v time.Time) {
+ o.GenerationRequestedAt = v
+}
+
+// GetGenerationFinishedAt returns the GenerationFinishedAt field value if set, zero value otherwise.
+func (o *ReportInfoDTO) GetGenerationFinishedAt() time.Time {
+ if o == nil || IsNil(o.GenerationFinishedAt) {
+ var ret time.Time
+ return ret
+ }
+ return *o.GenerationFinishedAt
+}
+
+// GetGenerationFinishedAtOk returns a tuple with the GenerationFinishedAt field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReportInfoDTO) GetGenerationFinishedAtOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.GenerationFinishedAt) {
+ return nil, false
+ }
+ return o.GenerationFinishedAt, true
+}
+
+// HasGenerationFinishedAt returns a boolean if a field has been set.
+func (o *ReportInfoDTO) HasGenerationFinishedAt() bool {
+ if o != nil && !IsNil(o.GenerationFinishedAt) {
+ return true
+ }
+
+ return false
+}
+
+// SetGenerationFinishedAt gets a reference to the given time.Time and assigns it to the GenerationFinishedAt field.
+func (o *ReportInfoDTO) SetGenerationFinishedAt(v time.Time) {
+ o.GenerationFinishedAt = &v
+}
+
+// GetFile returns the File field value if set, zero value otherwise.
+func (o *ReportInfoDTO) GetFile() string {
+ if o == nil || IsNil(o.File) {
+ var ret string
+ return ret
+ }
+ return *o.File
+}
+
+// GetFileOk returns a tuple with the File field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReportInfoDTO) GetFileOk() (*string, bool) {
+ if o == nil || IsNil(o.File) {
+ return nil, false
+ }
+ return o.File, true
+}
+
+// HasFile returns a boolean if a field has been set.
+func (o *ReportInfoDTO) HasFile() bool {
+ if o != nil && !IsNil(o.File) {
+ return true
+ }
+
+ return false
+}
+
+// SetFile gets a reference to the given string and assigns it to the File field.
+func (o *ReportInfoDTO) SetFile(v string) {
+ o.File = &v
+}
+
+// GetEstimatedGenerationTime returns the EstimatedGenerationTime field value if set, zero value otherwise.
+func (o *ReportInfoDTO) GetEstimatedGenerationTime() int64 {
+ if o == nil || IsNil(o.EstimatedGenerationTime) {
+ var ret int64
+ return ret
+ }
+ return *o.EstimatedGenerationTime
+}
+
+// GetEstimatedGenerationTimeOk returns a tuple with the EstimatedGenerationTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReportInfoDTO) GetEstimatedGenerationTimeOk() (*int64, bool) {
+ if o == nil || IsNil(o.EstimatedGenerationTime) {
+ return nil, false
+ }
+ return o.EstimatedGenerationTime, true
+}
+
+// HasEstimatedGenerationTime returns a boolean if a field has been set.
+func (o *ReportInfoDTO) HasEstimatedGenerationTime() bool {
+ if o != nil && !IsNil(o.EstimatedGenerationTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetEstimatedGenerationTime gets a reference to the given int64 and assigns it to the EstimatedGenerationTime field.
+func (o *ReportInfoDTO) SetEstimatedGenerationTime(v int64) {
+ o.EstimatedGenerationTime = &v
+}
+
+func (o ReportInfoDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ReportInfoDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["status"] = o.Status
+ if !IsNil(o.SubStatus) {
+ toSerialize["subStatus"] = o.SubStatus
+ }
+ toSerialize["generationRequestedAt"] = o.GenerationRequestedAt
+ if !IsNil(o.GenerationFinishedAt) {
+ toSerialize["generationFinishedAt"] = o.GenerationFinishedAt
+ }
+ if !IsNil(o.File) {
+ toSerialize["file"] = o.File
+ }
+ if !IsNil(o.EstimatedGenerationTime) {
+ toSerialize["estimatedGenerationTime"] = o.EstimatedGenerationTime
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ReportInfoDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "status",
+ "generationRequestedAt",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varReportInfoDTO := _ReportInfoDTO{}
+
+ err = json.Unmarshal(data, &varReportInfoDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ReportInfoDTO(varReportInfoDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "subStatus")
+ delete(additionalProperties, "generationRequestedAt")
+ delete(additionalProperties, "generationFinishedAt")
+ delete(additionalProperties, "file")
+ delete(additionalProperties, "estimatedGenerationTime")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableReportInfoDTO struct {
+ value *ReportInfoDTO
+ isSet bool
+}
+
+func (v NullableReportInfoDTO) Get() *ReportInfoDTO {
+ return v.value
+}
+
+func (v *NullableReportInfoDTO) Set(val *ReportInfoDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReportInfoDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReportInfoDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReportInfoDTO(val *ReportInfoDTO) *NullableReportInfoDTO {
+ return &NullableReportInfoDTO{value: val, isSet: true}
+}
+
+func (v NullableReportInfoDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReportInfoDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_report_language_type.go b/pkg/api/yandex/ymclient/model_report_language_type.go
new file mode 100644
index 0000000..c2388d6
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_report_language_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReportLanguageType Язык отчета: * `RU` — русский язык. * `EN` — английский язык.
+type ReportLanguageType string
+
+// List of ReportLanguageType
+const (
+ REPORTLANGUAGETYPE_RU ReportLanguageType = "RU"
+ REPORTLANGUAGETYPE_EN ReportLanguageType = "EN"
+)
+
+// All allowed values of ReportLanguageType enum
+var AllowedReportLanguageTypeEnumValues = []ReportLanguageType{
+ "RU",
+ "EN",
+}
+
+func (v *ReportLanguageType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReportLanguageType(value)
+ for _, existing := range AllowedReportLanguageTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReportLanguageType", value)
+}
+
+// NewReportLanguageTypeFromValue returns a pointer to a valid ReportLanguageType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReportLanguageTypeFromValue(v string) (*ReportLanguageType, error) {
+ ev := ReportLanguageType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReportLanguageType: valid values are %v", v, AllowedReportLanguageTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReportLanguageType) IsValid() bool {
+ for _, existing := range AllowedReportLanguageTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReportLanguageType value
+func (v ReportLanguageType) Ptr() *ReportLanguageType {
+ return &v
+}
+
+type NullableReportLanguageType struct {
+ value *ReportLanguageType
+ isSet bool
+}
+
+func (v NullableReportLanguageType) Get() *ReportLanguageType {
+ return v.value
+}
+
+func (v *NullableReportLanguageType) Set(val *ReportLanguageType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReportLanguageType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReportLanguageType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReportLanguageType(val *ReportLanguageType) *NullableReportLanguageType {
+ return &NullableReportLanguageType{value: val, isSet: true}
+}
+
+func (v NullableReportLanguageType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReportLanguageType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_report_status_type.go b/pkg/api/yandex/ymclient/model_report_status_type.go
new file mode 100644
index 0000000..b175650
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_report_status_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReportStatusType Статус генерации: * `PENDING` — ожидает генерации. * `PROCESSING` — генерируется. * `FAILED` — во время генерации произошла ошибка. * `DONE` — отчет или документ готов.
+type ReportStatusType string
+
+// List of ReportStatusType
+const (
+ REPORTSTATUSTYPE_PENDING ReportStatusType = "PENDING"
+ REPORTSTATUSTYPE_PROCESSING ReportStatusType = "PROCESSING"
+ REPORTSTATUSTYPE_FAILED ReportStatusType = "FAILED"
+ REPORTSTATUSTYPE_DONE ReportStatusType = "DONE"
+)
+
+// All allowed values of ReportStatusType enum
+var AllowedReportStatusTypeEnumValues = []ReportStatusType{
+ "PENDING",
+ "PROCESSING",
+ "FAILED",
+ "DONE",
+}
+
+func (v *ReportStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReportStatusType(value)
+ for _, existing := range AllowedReportStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReportStatusType", value)
+}
+
+// NewReportStatusTypeFromValue returns a pointer to a valid ReportStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReportStatusTypeFromValue(v string) (*ReportStatusType, error) {
+ ev := ReportStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReportStatusType: valid values are %v", v, AllowedReportStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReportStatusType) IsValid() bool {
+ for _, existing := range AllowedReportStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReportStatusType value
+func (v ReportStatusType) Ptr() *ReportStatusType {
+ return &v
+}
+
+type NullableReportStatusType struct {
+ value *ReportStatusType
+ isSet bool
+}
+
+func (v NullableReportStatusType) Get() *ReportStatusType {
+ return v.value
+}
+
+func (v *NullableReportStatusType) Set(val *ReportStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReportStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReportStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReportStatusType(val *ReportStatusType) *NullableReportStatusType {
+ return &NullableReportStatusType{value: val, isSet: true}
+}
+
+func (v NullableReportStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReportStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_report_sub_status_type.go b/pkg/api/yandex/ymclient/model_report_sub_status_type.go
new file mode 100644
index 0000000..1b61ee4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_report_sub_status_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReportSubStatusType Подстатус генерации: * `NO_DATA` — для такого отчета или документа нет данных. * `TOO_LARGE` — отчет или документ превысил допустимый размер — укажите меньший период времени или уточните условия запроса. * `RESOURCE_NOT_FOUND` — для такого отчета или документа не удалось найти часть сущностей.
+type ReportSubStatusType string
+
+// List of ReportSubStatusType
+const (
+ REPORTSUBSTATUSTYPE_NO_DATA ReportSubStatusType = "NO_DATA"
+ REPORTSUBSTATUSTYPE_TOO_LARGE ReportSubStatusType = "TOO_LARGE"
+ REPORTSUBSTATUSTYPE_RESOURCE_NOT_FOUND ReportSubStatusType = "RESOURCE_NOT_FOUND"
+)
+
+// All allowed values of ReportSubStatusType enum
+var AllowedReportSubStatusTypeEnumValues = []ReportSubStatusType{
+ "NO_DATA",
+ "TOO_LARGE",
+ "RESOURCE_NOT_FOUND",
+}
+
+func (v *ReportSubStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReportSubStatusType(value)
+ for _, existing := range AllowedReportSubStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReportSubStatusType", value)
+}
+
+// NewReportSubStatusTypeFromValue returns a pointer to a valid ReportSubStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReportSubStatusTypeFromValue(v string) (*ReportSubStatusType, error) {
+ ev := ReportSubStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReportSubStatusType: valid values are %v", v, AllowedReportSubStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReportSubStatusType) IsValid() bool {
+ for _, existing := range AllowedReportSubStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReportSubStatusType value
+func (v ReportSubStatusType) Ptr() *ReportSubStatusType {
+ return &v
+}
+
+type NullableReportSubStatusType struct {
+ value *ReportSubStatusType
+ isSet bool
+}
+
+func (v NullableReportSubStatusType) Get() *ReportSubStatusType {
+ return v.value
+}
+
+func (v *NullableReportSubStatusType) Set(val *ReportSubStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReportSubStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReportSubStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReportSubStatusType(val *ReportSubStatusType) *NullableReportSubStatusType {
+ return &NullableReportSubStatusType{value: val, isSet: true}
+}
+
+func (v NullableReportSubStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReportSubStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_decision_dto.go b/pkg/api/yandex/ymclient/model_return_decision_dto.go
new file mode 100644
index 0000000..1448cea
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_decision_dto.go
@@ -0,0 +1,538 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the ReturnDecisionDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ReturnDecisionDTO{}
+
+// ReturnDecisionDTO Решения по возвратам.
+type ReturnDecisionDTO struct {
+ // Идентификатор товара в возврате.
+ ReturnItemId *int64 `json:"returnItemId,omitempty"`
+ // Количество единиц товара.
+ Count *int32 `json:"count,omitempty"`
+ // Комментарий.
+ Comment *string `json:"comment,omitempty"`
+ ReasonType *ReturnDecisionReasonType `json:"reasonType,omitempty"`
+ SubreasonType *ReturnDecisionSubreasonType `json:"subreasonType,omitempty"`
+ DecisionType *ReturnDecisionType `json:"decisionType,omitempty"`
+ // {% note warning \"Вместо него используйте `amount`.\" %} {% endnote %} Сумма возврата в копейках.
+ // Deprecated
+ RefundAmount *int64 `json:"refundAmount,omitempty"`
+ Amount *CurrencyValueDTO `json:"amount,omitempty"`
+ // {% note warning \"Вместо него используйте `partnerCompensationAmount`.\" %} {% endnote %} Компенсация за обратную доставку в копейках.
+ // Deprecated
+ PartnerCompensation *int64 `json:"partnerCompensation,omitempty"`
+ PartnerCompensationAmount *CurrencyValueDTO `json:"partnerCompensationAmount,omitempty"`
+ // Список хеш-кодов фотографий товара от покупателя.
+ Images []string `json:"images,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ReturnDecisionDTO ReturnDecisionDTO
+
+// NewReturnDecisionDTO instantiates a new ReturnDecisionDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewReturnDecisionDTO() *ReturnDecisionDTO {
+ this := ReturnDecisionDTO{}
+ return &this
+}
+
+// NewReturnDecisionDTOWithDefaults instantiates a new ReturnDecisionDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewReturnDecisionDTOWithDefaults() *ReturnDecisionDTO {
+ this := ReturnDecisionDTO{}
+ return &this
+}
+
+// GetReturnItemId returns the ReturnItemId field value if set, zero value otherwise.
+func (o *ReturnDecisionDTO) GetReturnItemId() int64 {
+ if o == nil || IsNil(o.ReturnItemId) {
+ var ret int64
+ return ret
+ }
+ return *o.ReturnItemId
+}
+
+// GetReturnItemIdOk returns a tuple with the ReturnItemId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDecisionDTO) GetReturnItemIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.ReturnItemId) {
+ return nil, false
+ }
+ return o.ReturnItemId, true
+}
+
+// HasReturnItemId returns a boolean if a field has been set.
+func (o *ReturnDecisionDTO) HasReturnItemId() bool {
+ if o != nil && !IsNil(o.ReturnItemId) {
+ return true
+ }
+
+ return false
+}
+
+// SetReturnItemId gets a reference to the given int64 and assigns it to the ReturnItemId field.
+func (o *ReturnDecisionDTO) SetReturnItemId(v int64) {
+ o.ReturnItemId = &v
+}
+
+// GetCount returns the Count field value if set, zero value otherwise.
+func (o *ReturnDecisionDTO) GetCount() int32 {
+ if o == nil || IsNil(o.Count) {
+ var ret int32
+ return ret
+ }
+ return *o.Count
+}
+
+// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDecisionDTO) GetCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.Count) {
+ return nil, false
+ }
+ return o.Count, true
+}
+
+// HasCount returns a boolean if a field has been set.
+func (o *ReturnDecisionDTO) HasCount() bool {
+ if o != nil && !IsNil(o.Count) {
+ return true
+ }
+
+ return false
+}
+
+// SetCount gets a reference to the given int32 and assigns it to the Count field.
+func (o *ReturnDecisionDTO) SetCount(v int32) {
+ o.Count = &v
+}
+
+// GetComment returns the Comment field value if set, zero value otherwise.
+func (o *ReturnDecisionDTO) GetComment() string {
+ if o == nil || IsNil(o.Comment) {
+ var ret string
+ return ret
+ }
+ return *o.Comment
+}
+
+// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDecisionDTO) GetCommentOk() (*string, bool) {
+ if o == nil || IsNil(o.Comment) {
+ return nil, false
+ }
+ return o.Comment, true
+}
+
+// HasComment returns a boolean if a field has been set.
+func (o *ReturnDecisionDTO) HasComment() bool {
+ if o != nil && !IsNil(o.Comment) {
+ return true
+ }
+
+ return false
+}
+
+// SetComment gets a reference to the given string and assigns it to the Comment field.
+func (o *ReturnDecisionDTO) SetComment(v string) {
+ o.Comment = &v
+}
+
+// GetReasonType returns the ReasonType field value if set, zero value otherwise.
+func (o *ReturnDecisionDTO) GetReasonType() ReturnDecisionReasonType {
+ if o == nil || IsNil(o.ReasonType) {
+ var ret ReturnDecisionReasonType
+ return ret
+ }
+ return *o.ReasonType
+}
+
+// GetReasonTypeOk returns a tuple with the ReasonType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDecisionDTO) GetReasonTypeOk() (*ReturnDecisionReasonType, bool) {
+ if o == nil || IsNil(o.ReasonType) {
+ return nil, false
+ }
+ return o.ReasonType, true
+}
+
+// HasReasonType returns a boolean if a field has been set.
+func (o *ReturnDecisionDTO) HasReasonType() bool {
+ if o != nil && !IsNil(o.ReasonType) {
+ return true
+ }
+
+ return false
+}
+
+// SetReasonType gets a reference to the given ReturnDecisionReasonType and assigns it to the ReasonType field.
+func (o *ReturnDecisionDTO) SetReasonType(v ReturnDecisionReasonType) {
+ o.ReasonType = &v
+}
+
+// GetSubreasonType returns the SubreasonType field value if set, zero value otherwise.
+func (o *ReturnDecisionDTO) GetSubreasonType() ReturnDecisionSubreasonType {
+ if o == nil || IsNil(o.SubreasonType) {
+ var ret ReturnDecisionSubreasonType
+ return ret
+ }
+ return *o.SubreasonType
+}
+
+// GetSubreasonTypeOk returns a tuple with the SubreasonType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDecisionDTO) GetSubreasonTypeOk() (*ReturnDecisionSubreasonType, bool) {
+ if o == nil || IsNil(o.SubreasonType) {
+ return nil, false
+ }
+ return o.SubreasonType, true
+}
+
+// HasSubreasonType returns a boolean if a field has been set.
+func (o *ReturnDecisionDTO) HasSubreasonType() bool {
+ if o != nil && !IsNil(o.SubreasonType) {
+ return true
+ }
+
+ return false
+}
+
+// SetSubreasonType gets a reference to the given ReturnDecisionSubreasonType and assigns it to the SubreasonType field.
+func (o *ReturnDecisionDTO) SetSubreasonType(v ReturnDecisionSubreasonType) {
+ o.SubreasonType = &v
+}
+
+// GetDecisionType returns the DecisionType field value if set, zero value otherwise.
+func (o *ReturnDecisionDTO) GetDecisionType() ReturnDecisionType {
+ if o == nil || IsNil(o.DecisionType) {
+ var ret ReturnDecisionType
+ return ret
+ }
+ return *o.DecisionType
+}
+
+// GetDecisionTypeOk returns a tuple with the DecisionType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDecisionDTO) GetDecisionTypeOk() (*ReturnDecisionType, bool) {
+ if o == nil || IsNil(o.DecisionType) {
+ return nil, false
+ }
+ return o.DecisionType, true
+}
+
+// HasDecisionType returns a boolean if a field has been set.
+func (o *ReturnDecisionDTO) HasDecisionType() bool {
+ if o != nil && !IsNil(o.DecisionType) {
+ return true
+ }
+
+ return false
+}
+
+// SetDecisionType gets a reference to the given ReturnDecisionType and assigns it to the DecisionType field.
+func (o *ReturnDecisionDTO) SetDecisionType(v ReturnDecisionType) {
+ o.DecisionType = &v
+}
+
+// GetRefundAmount returns the RefundAmount field value if set, zero value otherwise.
+// Deprecated
+func (o *ReturnDecisionDTO) GetRefundAmount() int64 {
+ if o == nil || IsNil(o.RefundAmount) {
+ var ret int64
+ return ret
+ }
+ return *o.RefundAmount
+}
+
+// GetRefundAmountOk returns a tuple with the RefundAmount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *ReturnDecisionDTO) GetRefundAmountOk() (*int64, bool) {
+ if o == nil || IsNil(o.RefundAmount) {
+ return nil, false
+ }
+ return o.RefundAmount, true
+}
+
+// HasRefundAmount returns a boolean if a field has been set.
+func (o *ReturnDecisionDTO) HasRefundAmount() bool {
+ if o != nil && !IsNil(o.RefundAmount) {
+ return true
+ }
+
+ return false
+}
+
+// SetRefundAmount gets a reference to the given int64 and assigns it to the RefundAmount field.
+// Deprecated
+func (o *ReturnDecisionDTO) SetRefundAmount(v int64) {
+ o.RefundAmount = &v
+}
+
+// GetAmount returns the Amount field value if set, zero value otherwise.
+func (o *ReturnDecisionDTO) GetAmount() CurrencyValueDTO {
+ if o == nil || IsNil(o.Amount) {
+ var ret CurrencyValueDTO
+ return ret
+ }
+ return *o.Amount
+}
+
+// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDecisionDTO) GetAmountOk() (*CurrencyValueDTO, bool) {
+ if o == nil || IsNil(o.Amount) {
+ return nil, false
+ }
+ return o.Amount, true
+}
+
+// HasAmount returns a boolean if a field has been set.
+func (o *ReturnDecisionDTO) HasAmount() bool {
+ if o != nil && !IsNil(o.Amount) {
+ return true
+ }
+
+ return false
+}
+
+// SetAmount gets a reference to the given CurrencyValueDTO and assigns it to the Amount field.
+func (o *ReturnDecisionDTO) SetAmount(v CurrencyValueDTO) {
+ o.Amount = &v
+}
+
+// GetPartnerCompensation returns the PartnerCompensation field value if set, zero value otherwise.
+// Deprecated
+func (o *ReturnDecisionDTO) GetPartnerCompensation() int64 {
+ if o == nil || IsNil(o.PartnerCompensation) {
+ var ret int64
+ return ret
+ }
+ return *o.PartnerCompensation
+}
+
+// GetPartnerCompensationOk returns a tuple with the PartnerCompensation field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *ReturnDecisionDTO) GetPartnerCompensationOk() (*int64, bool) {
+ if o == nil || IsNil(o.PartnerCompensation) {
+ return nil, false
+ }
+ return o.PartnerCompensation, true
+}
+
+// HasPartnerCompensation returns a boolean if a field has been set.
+func (o *ReturnDecisionDTO) HasPartnerCompensation() bool {
+ if o != nil && !IsNil(o.PartnerCompensation) {
+ return true
+ }
+
+ return false
+}
+
+// SetPartnerCompensation gets a reference to the given int64 and assigns it to the PartnerCompensation field.
+// Deprecated
+func (o *ReturnDecisionDTO) SetPartnerCompensation(v int64) {
+ o.PartnerCompensation = &v
+}
+
+// GetPartnerCompensationAmount returns the PartnerCompensationAmount field value if set, zero value otherwise.
+func (o *ReturnDecisionDTO) GetPartnerCompensationAmount() CurrencyValueDTO {
+ if o == nil || IsNil(o.PartnerCompensationAmount) {
+ var ret CurrencyValueDTO
+ return ret
+ }
+ return *o.PartnerCompensationAmount
+}
+
+// GetPartnerCompensationAmountOk returns a tuple with the PartnerCompensationAmount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDecisionDTO) GetPartnerCompensationAmountOk() (*CurrencyValueDTO, bool) {
+ if o == nil || IsNil(o.PartnerCompensationAmount) {
+ return nil, false
+ }
+ return o.PartnerCompensationAmount, true
+}
+
+// HasPartnerCompensationAmount returns a boolean if a field has been set.
+func (o *ReturnDecisionDTO) HasPartnerCompensationAmount() bool {
+ if o != nil && !IsNil(o.PartnerCompensationAmount) {
+ return true
+ }
+
+ return false
+}
+
+// SetPartnerCompensationAmount gets a reference to the given CurrencyValueDTO and assigns it to the PartnerCompensationAmount field.
+func (o *ReturnDecisionDTO) SetPartnerCompensationAmount(v CurrencyValueDTO) {
+ o.PartnerCompensationAmount = &v
+}
+
+// GetImages returns the Images field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ReturnDecisionDTO) GetImages() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Images
+}
+
+// GetImagesOk returns a tuple with the Images field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ReturnDecisionDTO) GetImagesOk() ([]string, bool) {
+ if o == nil || IsNil(o.Images) {
+ return nil, false
+ }
+ return o.Images, true
+}
+
+// HasImages returns a boolean if a field has been set.
+func (o *ReturnDecisionDTO) HasImages() bool {
+ if o != nil && !IsNil(o.Images) {
+ return true
+ }
+
+ return false
+}
+
+// SetImages gets a reference to the given []string and assigns it to the Images field.
+func (o *ReturnDecisionDTO) SetImages(v []string) {
+ o.Images = v
+}
+
+func (o ReturnDecisionDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ReturnDecisionDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.ReturnItemId) {
+ toSerialize["returnItemId"] = o.ReturnItemId
+ }
+ if !IsNil(o.Count) {
+ toSerialize["count"] = o.Count
+ }
+ if !IsNil(o.Comment) {
+ toSerialize["comment"] = o.Comment
+ }
+ if !IsNil(o.ReasonType) {
+ toSerialize["reasonType"] = o.ReasonType
+ }
+ if !IsNil(o.SubreasonType) {
+ toSerialize["subreasonType"] = o.SubreasonType
+ }
+ if !IsNil(o.DecisionType) {
+ toSerialize["decisionType"] = o.DecisionType
+ }
+ if !IsNil(o.RefundAmount) {
+ toSerialize["refundAmount"] = o.RefundAmount
+ }
+ if !IsNil(o.Amount) {
+ toSerialize["amount"] = o.Amount
+ }
+ if !IsNil(o.PartnerCompensation) {
+ toSerialize["partnerCompensation"] = o.PartnerCompensation
+ }
+ if !IsNil(o.PartnerCompensationAmount) {
+ toSerialize["partnerCompensationAmount"] = o.PartnerCompensationAmount
+ }
+ if o.Images != nil {
+ toSerialize["images"] = o.Images
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ReturnDecisionDTO) UnmarshalJSON(data []byte) (err error) {
+ varReturnDecisionDTO := _ReturnDecisionDTO{}
+
+ err = json.Unmarshal(data, &varReturnDecisionDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ReturnDecisionDTO(varReturnDecisionDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "returnItemId")
+ delete(additionalProperties, "count")
+ delete(additionalProperties, "comment")
+ delete(additionalProperties, "reasonType")
+ delete(additionalProperties, "subreasonType")
+ delete(additionalProperties, "decisionType")
+ delete(additionalProperties, "refundAmount")
+ delete(additionalProperties, "amount")
+ delete(additionalProperties, "partnerCompensation")
+ delete(additionalProperties, "partnerCompensationAmount")
+ delete(additionalProperties, "images")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableReturnDecisionDTO struct {
+ value *ReturnDecisionDTO
+ isSet bool
+}
+
+func (v NullableReturnDecisionDTO) Get() *ReturnDecisionDTO {
+ return v.value
+}
+
+func (v *NullableReturnDecisionDTO) Set(val *ReturnDecisionDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnDecisionDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnDecisionDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnDecisionDTO(val *ReturnDecisionDTO) *NullableReturnDecisionDTO {
+ return &NullableReturnDecisionDTO{value: val, isSet: true}
+}
+
+func (v NullableReturnDecisionDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnDecisionDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_decision_reason_type.go b/pkg/api/yandex/ymclient/model_return_decision_reason_type.go
new file mode 100644
index 0000000..9e96636
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_decision_reason_type.go
@@ -0,0 +1,122 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReturnDecisionReasonType Причины возврата: * `BAD_QUALITY` — бракованный товар (есть недостатки). * `DOES_NOT_FIT` — товар не подошел. * `WRONG_ITEM` — привезли не тот товар. * `DAMAGE_DELIVERY` — товар поврежден при доставке. * `LOYALTY_FAIL` — невозможно установить виновного в браке/пересорте. * `CONTENT_FAIL` — ошибочное описание товара по вине Маркета. * `DELIVERY_FAIL` — товар не привезли. * `UNKNOWN` — причина не известна.
+type ReturnDecisionReasonType string
+
+// List of ReturnDecisionReasonType
+const (
+ RETURNDECISIONREASONTYPE_BAD_QUALITY ReturnDecisionReasonType = "BAD_QUALITY"
+ RETURNDECISIONREASONTYPE_DOES_NOT_FIT ReturnDecisionReasonType = "DOES_NOT_FIT"
+ RETURNDECISIONREASONTYPE_WRONG_ITEM ReturnDecisionReasonType = "WRONG_ITEM"
+ RETURNDECISIONREASONTYPE_DAMAGE_DELIVERY ReturnDecisionReasonType = "DAMAGE_DELIVERY"
+ RETURNDECISIONREASONTYPE_LOYALTY_FAIL ReturnDecisionReasonType = "LOYALTY_FAIL"
+ RETURNDECISIONREASONTYPE_CONTENT_FAIL ReturnDecisionReasonType = "CONTENT_FAIL"
+ RETURNDECISIONREASONTYPE_DELIVERY_FAIL ReturnDecisionReasonType = "DELIVERY_FAIL"
+ RETURNDECISIONREASONTYPE_UNKNOWN ReturnDecisionReasonType = "UNKNOWN"
+)
+
+// All allowed values of ReturnDecisionReasonType enum
+var AllowedReturnDecisionReasonTypeEnumValues = []ReturnDecisionReasonType{
+ "BAD_QUALITY",
+ "DOES_NOT_FIT",
+ "WRONG_ITEM",
+ "DAMAGE_DELIVERY",
+ "LOYALTY_FAIL",
+ "CONTENT_FAIL",
+ "DELIVERY_FAIL",
+ "UNKNOWN",
+}
+
+func (v *ReturnDecisionReasonType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReturnDecisionReasonType(value)
+ for _, existing := range AllowedReturnDecisionReasonTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReturnDecisionReasonType", value)
+}
+
+// NewReturnDecisionReasonTypeFromValue returns a pointer to a valid ReturnDecisionReasonType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReturnDecisionReasonTypeFromValue(v string) (*ReturnDecisionReasonType, error) {
+ ev := ReturnDecisionReasonType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReturnDecisionReasonType: valid values are %v", v, AllowedReturnDecisionReasonTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReturnDecisionReasonType) IsValid() bool {
+ for _, existing := range AllowedReturnDecisionReasonTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReturnDecisionReasonType value
+func (v ReturnDecisionReasonType) Ptr() *ReturnDecisionReasonType {
+ return &v
+}
+
+type NullableReturnDecisionReasonType struct {
+ value *ReturnDecisionReasonType
+ isSet bool
+}
+
+func (v NullableReturnDecisionReasonType) Get() *ReturnDecisionReasonType {
+ return v.value
+}
+
+func (v *NullableReturnDecisionReasonType) Set(val *ReturnDecisionReasonType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnDecisionReasonType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnDecisionReasonType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnDecisionReasonType(val *ReturnDecisionReasonType) *NullableReturnDecisionReasonType {
+ return &NullableReturnDecisionReasonType{value: val, isSet: true}
+}
+
+func (v NullableReturnDecisionReasonType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnDecisionReasonType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_decision_subreason_type.go b/pkg/api/yandex/ymclient/model_return_decision_subreason_type.go
new file mode 100644
index 0000000..bdab18d
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_decision_subreason_type.go
@@ -0,0 +1,144 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReturnDecisionSubreasonType Детали причин возврата: * `DOES_NOT_FIT`: * `USER_DID_NOT_LIKE` — товар не понравился. * `USER_CHANGED_MIND` — передумал покупать. * `DELIVERED_TOO_LONG` — передумал покупать из-за длительного срока доставки. * `BAD_QUALITY`: * `BAD_PACKAGE` — заводская упаковка повреждена. * `DAMAGED` — царапины, сколы. * `NOT_WORKING` — не включается, не работает. * `INCOMPLETENESS` — некомплект (не хватает детали в наборе, к товару). * `WRAPPING_DAMAGED` — транспортная упаковка повреждена. * `ITEM_WAS_USED` — следы использования на товаре. * `BROKEN` — товар разбит. * `BAD_FLOWERS` — некачественные цветы. * `WRONG_ITEM`: * `WRONG_ITEM` — не тот товар. * `WRONG_COLOR` — цвет не соответствует заявленному. * `DID_NOT_MATCH_DESCRIPTION` — описание или характеристики не соответствуют заявленным. * `WRONG_ORDER` — доставили чужой заказ. * `WRONG_AMOUNT_DELIVERED` — неверное количество товара. * `PARCEL_MISSING` — часть заказа отсутствует. * `INCOMPLETE` — заказ не привезли полностью. * `UNKNOWN` — детали причины не указаны.
+type ReturnDecisionSubreasonType string
+
+// List of ReturnDecisionSubreasonType
+const (
+ RETURNDECISIONSUBREASONTYPE_USER_DID_NOT_LIKE ReturnDecisionSubreasonType = "USER_DID_NOT_LIKE"
+ RETURNDECISIONSUBREASONTYPE_USER_CHANGED_MIND ReturnDecisionSubreasonType = "USER_CHANGED_MIND"
+ RETURNDECISIONSUBREASONTYPE_DELIVERED_TOO_LONG ReturnDecisionSubreasonType = "DELIVERED_TOO_LONG"
+ RETURNDECISIONSUBREASONTYPE_BAD_PACKAGE ReturnDecisionSubreasonType = "BAD_PACKAGE"
+ RETURNDECISIONSUBREASONTYPE_DAMAGED ReturnDecisionSubreasonType = "DAMAGED"
+ RETURNDECISIONSUBREASONTYPE_NOT_WORKING ReturnDecisionSubreasonType = "NOT_WORKING"
+ RETURNDECISIONSUBREASONTYPE_INCOMPLETENESS ReturnDecisionSubreasonType = "INCOMPLETENESS"
+ RETURNDECISIONSUBREASONTYPE_WRONG_ITEM ReturnDecisionSubreasonType = "WRONG_ITEM"
+ RETURNDECISIONSUBREASONTYPE_WRONG_COLOR ReturnDecisionSubreasonType = "WRONG_COLOR"
+ RETURNDECISIONSUBREASONTYPE_DID_NOT_MATCH_DESCRIPTION ReturnDecisionSubreasonType = "DID_NOT_MATCH_DESCRIPTION"
+ RETURNDECISIONSUBREASONTYPE_WRONG_ORDER ReturnDecisionSubreasonType = "WRONG_ORDER"
+ RETURNDECISIONSUBREASONTYPE_WRONG_AMOUNT_DELIVERED ReturnDecisionSubreasonType = "WRONG_AMOUNT_DELIVERED"
+ RETURNDECISIONSUBREASONTYPE_WRAPPING_DAMAGED ReturnDecisionSubreasonType = "WRAPPING_DAMAGED"
+ RETURNDECISIONSUBREASONTYPE_ITEM_WAS_USED ReturnDecisionSubreasonType = "ITEM_WAS_USED"
+ RETURNDECISIONSUBREASONTYPE_BROKEN ReturnDecisionSubreasonType = "BROKEN"
+ RETURNDECISIONSUBREASONTYPE_BAD_FLOWERS ReturnDecisionSubreasonType = "BAD_FLOWERS"
+ RETURNDECISIONSUBREASONTYPE_PARCEL_MISSING ReturnDecisionSubreasonType = "PARCEL_MISSING"
+ RETURNDECISIONSUBREASONTYPE_INCOMPLETE ReturnDecisionSubreasonType = "INCOMPLETE"
+ RETURNDECISIONSUBREASONTYPE_UNKNOWN ReturnDecisionSubreasonType = "UNKNOWN"
+)
+
+// All allowed values of ReturnDecisionSubreasonType enum
+var AllowedReturnDecisionSubreasonTypeEnumValues = []ReturnDecisionSubreasonType{
+ "USER_DID_NOT_LIKE",
+ "USER_CHANGED_MIND",
+ "DELIVERED_TOO_LONG",
+ "BAD_PACKAGE",
+ "DAMAGED",
+ "NOT_WORKING",
+ "INCOMPLETENESS",
+ "WRONG_ITEM",
+ "WRONG_COLOR",
+ "DID_NOT_MATCH_DESCRIPTION",
+ "WRONG_ORDER",
+ "WRONG_AMOUNT_DELIVERED",
+ "WRAPPING_DAMAGED",
+ "ITEM_WAS_USED",
+ "BROKEN",
+ "BAD_FLOWERS",
+ "PARCEL_MISSING",
+ "INCOMPLETE",
+ "UNKNOWN",
+}
+
+func (v *ReturnDecisionSubreasonType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReturnDecisionSubreasonType(value)
+ for _, existing := range AllowedReturnDecisionSubreasonTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReturnDecisionSubreasonType", value)
+}
+
+// NewReturnDecisionSubreasonTypeFromValue returns a pointer to a valid ReturnDecisionSubreasonType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReturnDecisionSubreasonTypeFromValue(v string) (*ReturnDecisionSubreasonType, error) {
+ ev := ReturnDecisionSubreasonType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReturnDecisionSubreasonType: valid values are %v", v, AllowedReturnDecisionSubreasonTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReturnDecisionSubreasonType) IsValid() bool {
+ for _, existing := range AllowedReturnDecisionSubreasonTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReturnDecisionSubreasonType value
+func (v ReturnDecisionSubreasonType) Ptr() *ReturnDecisionSubreasonType {
+ return &v
+}
+
+type NullableReturnDecisionSubreasonType struct {
+ value *ReturnDecisionSubreasonType
+ isSet bool
+}
+
+func (v NullableReturnDecisionSubreasonType) Get() *ReturnDecisionSubreasonType {
+ return v.value
+}
+
+func (v *NullableReturnDecisionSubreasonType) Set(val *ReturnDecisionSubreasonType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnDecisionSubreasonType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnDecisionSubreasonType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnDecisionSubreasonType(val *ReturnDecisionSubreasonType) *NullableReturnDecisionSubreasonType {
+ return &NullableReturnDecisionSubreasonType{value: val, isSet: true}
+}
+
+func (v NullableReturnDecisionSubreasonType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnDecisionSubreasonType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_decision_type.go b/pkg/api/yandex/ymclient/model_return_decision_type.go
new file mode 100644
index 0000000..c429a28
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_decision_type.go
@@ -0,0 +1,124 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReturnDecisionType Решение по возврату: * `FAST_REFUND_MONEY` — вернуть покупателю деньги без возврата товара. * `REFUND_MONEY` — вернуть покупателю деньги за товар. * `REFUND_MONEY_INCLUDING_SHIPMENT` — вернуть покупателю деньги за товар и обратную пересылку. * `REPAIR` — отремонтировать товар. * `REPLACE` — заменить товар. * `SEND_TO_EXAMINATION` — взять товар на экспертизу. * `DECLINE_REFUND` — отказать в возврате. * `OTHER_DECISION` — другое решение. * `UNKNOWN` — не указано.
+type ReturnDecisionType string
+
+// List of ReturnDecisionType
+const (
+ RETURNDECISIONTYPE_FAST_REFUND_MONEY ReturnDecisionType = "FAST_REFUND_MONEY"
+ RETURNDECISIONTYPE_REFUND_MONEY ReturnDecisionType = "REFUND_MONEY"
+ RETURNDECISIONTYPE_REFUND_MONEY_INCLUDING_SHIPMENT ReturnDecisionType = "REFUND_MONEY_INCLUDING_SHIPMENT"
+ RETURNDECISIONTYPE_REPAIR ReturnDecisionType = "REPAIR"
+ RETURNDECISIONTYPE_REPLACE ReturnDecisionType = "REPLACE"
+ RETURNDECISIONTYPE_SEND_TO_EXAMINATION ReturnDecisionType = "SEND_TO_EXAMINATION"
+ RETURNDECISIONTYPE_DECLINE_REFUND ReturnDecisionType = "DECLINE_REFUND"
+ RETURNDECISIONTYPE_OTHER_DECISION ReturnDecisionType = "OTHER_DECISION"
+ RETURNDECISIONTYPE_UNKNOWN ReturnDecisionType = "UNKNOWN"
+)
+
+// All allowed values of ReturnDecisionType enum
+var AllowedReturnDecisionTypeEnumValues = []ReturnDecisionType{
+ "FAST_REFUND_MONEY",
+ "REFUND_MONEY",
+ "REFUND_MONEY_INCLUDING_SHIPMENT",
+ "REPAIR",
+ "REPLACE",
+ "SEND_TO_EXAMINATION",
+ "DECLINE_REFUND",
+ "OTHER_DECISION",
+ "UNKNOWN",
+}
+
+func (v *ReturnDecisionType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReturnDecisionType(value)
+ for _, existing := range AllowedReturnDecisionTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReturnDecisionType", value)
+}
+
+// NewReturnDecisionTypeFromValue returns a pointer to a valid ReturnDecisionType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReturnDecisionTypeFromValue(v string) (*ReturnDecisionType, error) {
+ ev := ReturnDecisionType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReturnDecisionType: valid values are %v", v, AllowedReturnDecisionTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReturnDecisionType) IsValid() bool {
+ for _, existing := range AllowedReturnDecisionTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReturnDecisionType value
+func (v ReturnDecisionType) Ptr() *ReturnDecisionType {
+ return &v
+}
+
+type NullableReturnDecisionType struct {
+ value *ReturnDecisionType
+ isSet bool
+}
+
+func (v NullableReturnDecisionType) Get() *ReturnDecisionType {
+ return v.value
+}
+
+func (v *NullableReturnDecisionType) Set(val *ReturnDecisionType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnDecisionType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnDecisionType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnDecisionType(val *ReturnDecisionType) *NullableReturnDecisionType {
+ return &NullableReturnDecisionType{value: val, isSet: true}
+}
+
+func (v NullableReturnDecisionType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnDecisionType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_dto.go b/pkg/api/yandex/ymclient/model_return_dto.go
new file mode 100644
index 0000000..5654fb3
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_dto.go
@@ -0,0 +1,598 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the ReturnDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ReturnDTO{}
+
+// ReturnDTO Невыкуп или возврат в заказе. Параметров `logisticPickupPoint`, `shipmentRecipientType` и `shipmentStatus` может не быть в случае возврата: * С опцией **Быстрый возврат денег за дешевый брак**, когда товар остается у покупателя (`fastReturn=true`). * По заказу от бизнеса, если: * статус возврата `STARTED_BY_USER` или `WAITING_FOR_DECISION`; * возврат отменен до передачи товара. Статус возврата денег `refundStatus` актуален только для `returnType=RETURN`.
+type ReturnDTO struct {
+ // Идентификатор невыкупа или возврата.
+ Id int64 `json:"id"`
+ // Номер заказа.
+ OrderId int64 `json:"orderId"`
+ // Дата создания невыкупа или возврата клиентом. Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC].
+ CreationDate *time.Time `json:"creationDate,omitempty"`
+ // Дата обновления невыкупа или возврата. Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC].
+ UpdateDate *time.Time `json:"updateDate,omitempty"`
+ RefundStatus *RefundStatusType `json:"refundStatus,omitempty"`
+ LogisticPickupPoint *LogisticPickupPointDTO `json:"logisticPickupPoint,omitempty"`
+ ShipmentRecipientType *RecipientType `json:"shipmentRecipientType,omitempty"`
+ ShipmentStatus *ReturnShipmentStatusType `json:"shipmentStatus,omitempty"`
+ // {% note warning \"Вместо него используйте `amount`.\" %} {% endnote %} Сумма возврата в копейках.
+ // Deprecated
+ RefundAmount *int64 `json:"refundAmount,omitempty"`
+ Amount *CurrencyValueDTO `json:"amount,omitempty"`
+ // Список товаров в невыкупе или возврате.
+ Items []ReturnItemDTO `json:"items"`
+ ReturnType ReturnType `json:"returnType"`
+ // Используется ли опция **Быстрый возврат денег за дешевый брак**. Актуально только для `returnType=RETURN`.
+ FastReturn *bool `json:"fastReturn,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ReturnDTO ReturnDTO
+
+// NewReturnDTO instantiates a new ReturnDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewReturnDTO(id int64, orderId int64, items []ReturnItemDTO, returnType ReturnType) *ReturnDTO {
+ this := ReturnDTO{}
+ this.Id = id
+ this.OrderId = orderId
+ this.Items = items
+ this.ReturnType = returnType
+ return &this
+}
+
+// NewReturnDTOWithDefaults instantiates a new ReturnDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewReturnDTOWithDefaults() *ReturnDTO {
+ this := ReturnDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *ReturnDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *ReturnDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetOrderId returns the OrderId field value
+func (o *ReturnDTO) GetOrderId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.OrderId
+}
+
+// GetOrderIdOk returns a tuple with the OrderId field value
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetOrderIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrderId, true
+}
+
+// SetOrderId sets field value
+func (o *ReturnDTO) SetOrderId(v int64) {
+ o.OrderId = v
+}
+
+// GetCreationDate returns the CreationDate field value if set, zero value otherwise.
+func (o *ReturnDTO) GetCreationDate() time.Time {
+ if o == nil || IsNil(o.CreationDate) {
+ var ret time.Time
+ return ret
+ }
+ return *o.CreationDate
+}
+
+// GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetCreationDateOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.CreationDate) {
+ return nil, false
+ }
+ return o.CreationDate, true
+}
+
+// HasCreationDate returns a boolean if a field has been set.
+func (o *ReturnDTO) HasCreationDate() bool {
+ if o != nil && !IsNil(o.CreationDate) {
+ return true
+ }
+
+ return false
+}
+
+// SetCreationDate gets a reference to the given time.Time and assigns it to the CreationDate field.
+func (o *ReturnDTO) SetCreationDate(v time.Time) {
+ o.CreationDate = &v
+}
+
+// GetUpdateDate returns the UpdateDate field value if set, zero value otherwise.
+func (o *ReturnDTO) GetUpdateDate() time.Time {
+ if o == nil || IsNil(o.UpdateDate) {
+ var ret time.Time
+ return ret
+ }
+ return *o.UpdateDate
+}
+
+// GetUpdateDateOk returns a tuple with the UpdateDate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetUpdateDateOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.UpdateDate) {
+ return nil, false
+ }
+ return o.UpdateDate, true
+}
+
+// HasUpdateDate returns a boolean if a field has been set.
+func (o *ReturnDTO) HasUpdateDate() bool {
+ if o != nil && !IsNil(o.UpdateDate) {
+ return true
+ }
+
+ return false
+}
+
+// SetUpdateDate gets a reference to the given time.Time and assigns it to the UpdateDate field.
+func (o *ReturnDTO) SetUpdateDate(v time.Time) {
+ o.UpdateDate = &v
+}
+
+// GetRefundStatus returns the RefundStatus field value if set, zero value otherwise.
+func (o *ReturnDTO) GetRefundStatus() RefundStatusType {
+ if o == nil || IsNil(o.RefundStatus) {
+ var ret RefundStatusType
+ return ret
+ }
+ return *o.RefundStatus
+}
+
+// GetRefundStatusOk returns a tuple with the RefundStatus field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetRefundStatusOk() (*RefundStatusType, bool) {
+ if o == nil || IsNil(o.RefundStatus) {
+ return nil, false
+ }
+ return o.RefundStatus, true
+}
+
+// HasRefundStatus returns a boolean if a field has been set.
+func (o *ReturnDTO) HasRefundStatus() bool {
+ if o != nil && !IsNil(o.RefundStatus) {
+ return true
+ }
+
+ return false
+}
+
+// SetRefundStatus gets a reference to the given RefundStatusType and assigns it to the RefundStatus field.
+func (o *ReturnDTO) SetRefundStatus(v RefundStatusType) {
+ o.RefundStatus = &v
+}
+
+// GetLogisticPickupPoint returns the LogisticPickupPoint field value if set, zero value otherwise.
+func (o *ReturnDTO) GetLogisticPickupPoint() LogisticPickupPointDTO {
+ if o == nil || IsNil(o.LogisticPickupPoint) {
+ var ret LogisticPickupPointDTO
+ return ret
+ }
+ return *o.LogisticPickupPoint
+}
+
+// GetLogisticPickupPointOk returns a tuple with the LogisticPickupPoint field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetLogisticPickupPointOk() (*LogisticPickupPointDTO, bool) {
+ if o == nil || IsNil(o.LogisticPickupPoint) {
+ return nil, false
+ }
+ return o.LogisticPickupPoint, true
+}
+
+// HasLogisticPickupPoint returns a boolean if a field has been set.
+func (o *ReturnDTO) HasLogisticPickupPoint() bool {
+ if o != nil && !IsNil(o.LogisticPickupPoint) {
+ return true
+ }
+
+ return false
+}
+
+// SetLogisticPickupPoint gets a reference to the given LogisticPickupPointDTO and assigns it to the LogisticPickupPoint field.
+func (o *ReturnDTO) SetLogisticPickupPoint(v LogisticPickupPointDTO) {
+ o.LogisticPickupPoint = &v
+}
+
+// GetShipmentRecipientType returns the ShipmentRecipientType field value if set, zero value otherwise.
+func (o *ReturnDTO) GetShipmentRecipientType() RecipientType {
+ if o == nil || IsNil(o.ShipmentRecipientType) {
+ var ret RecipientType
+ return ret
+ }
+ return *o.ShipmentRecipientType
+}
+
+// GetShipmentRecipientTypeOk returns a tuple with the ShipmentRecipientType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetShipmentRecipientTypeOk() (*RecipientType, bool) {
+ if o == nil || IsNil(o.ShipmentRecipientType) {
+ return nil, false
+ }
+ return o.ShipmentRecipientType, true
+}
+
+// HasShipmentRecipientType returns a boolean if a field has been set.
+func (o *ReturnDTO) HasShipmentRecipientType() bool {
+ if o != nil && !IsNil(o.ShipmentRecipientType) {
+ return true
+ }
+
+ return false
+}
+
+// SetShipmentRecipientType gets a reference to the given RecipientType and assigns it to the ShipmentRecipientType field.
+func (o *ReturnDTO) SetShipmentRecipientType(v RecipientType) {
+ o.ShipmentRecipientType = &v
+}
+
+// GetShipmentStatus returns the ShipmentStatus field value if set, zero value otherwise.
+func (o *ReturnDTO) GetShipmentStatus() ReturnShipmentStatusType {
+ if o == nil || IsNil(o.ShipmentStatus) {
+ var ret ReturnShipmentStatusType
+ return ret
+ }
+ return *o.ShipmentStatus
+}
+
+// GetShipmentStatusOk returns a tuple with the ShipmentStatus field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetShipmentStatusOk() (*ReturnShipmentStatusType, bool) {
+ if o == nil || IsNil(o.ShipmentStatus) {
+ return nil, false
+ }
+ return o.ShipmentStatus, true
+}
+
+// HasShipmentStatus returns a boolean if a field has been set.
+func (o *ReturnDTO) HasShipmentStatus() bool {
+ if o != nil && !IsNil(o.ShipmentStatus) {
+ return true
+ }
+
+ return false
+}
+
+// SetShipmentStatus gets a reference to the given ReturnShipmentStatusType and assigns it to the ShipmentStatus field.
+func (o *ReturnDTO) SetShipmentStatus(v ReturnShipmentStatusType) {
+ o.ShipmentStatus = &v
+}
+
+// GetRefundAmount returns the RefundAmount field value if set, zero value otherwise.
+// Deprecated
+func (o *ReturnDTO) GetRefundAmount() int64 {
+ if o == nil || IsNil(o.RefundAmount) {
+ var ret int64
+ return ret
+ }
+ return *o.RefundAmount
+}
+
+// GetRefundAmountOk returns a tuple with the RefundAmount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *ReturnDTO) GetRefundAmountOk() (*int64, bool) {
+ if o == nil || IsNil(o.RefundAmount) {
+ return nil, false
+ }
+ return o.RefundAmount, true
+}
+
+// HasRefundAmount returns a boolean if a field has been set.
+func (o *ReturnDTO) HasRefundAmount() bool {
+ if o != nil && !IsNil(o.RefundAmount) {
+ return true
+ }
+
+ return false
+}
+
+// SetRefundAmount gets a reference to the given int64 and assigns it to the RefundAmount field.
+// Deprecated
+func (o *ReturnDTO) SetRefundAmount(v int64) {
+ o.RefundAmount = &v
+}
+
+// GetAmount returns the Amount field value if set, zero value otherwise.
+func (o *ReturnDTO) GetAmount() CurrencyValueDTO {
+ if o == nil || IsNil(o.Amount) {
+ var ret CurrencyValueDTO
+ return ret
+ }
+ return *o.Amount
+}
+
+// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetAmountOk() (*CurrencyValueDTO, bool) {
+ if o == nil || IsNil(o.Amount) {
+ return nil, false
+ }
+ return o.Amount, true
+}
+
+// HasAmount returns a boolean if a field has been set.
+func (o *ReturnDTO) HasAmount() bool {
+ if o != nil && !IsNil(o.Amount) {
+ return true
+ }
+
+ return false
+}
+
+// SetAmount gets a reference to the given CurrencyValueDTO and assigns it to the Amount field.
+func (o *ReturnDTO) SetAmount(v CurrencyValueDTO) {
+ o.Amount = &v
+}
+
+// GetItems returns the Items field value
+func (o *ReturnDTO) GetItems() []ReturnItemDTO {
+ if o == nil {
+ var ret []ReturnItemDTO
+ return ret
+ }
+
+ return o.Items
+}
+
+// GetItemsOk returns a tuple with the Items field value
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetItemsOk() ([]ReturnItemDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Items, true
+}
+
+// SetItems sets field value
+func (o *ReturnDTO) SetItems(v []ReturnItemDTO) {
+ o.Items = v
+}
+
+// GetReturnType returns the ReturnType field value
+func (o *ReturnDTO) GetReturnType() ReturnType {
+ if o == nil {
+ var ret ReturnType
+ return ret
+ }
+
+ return o.ReturnType
+}
+
+// GetReturnTypeOk returns a tuple with the ReturnType field value
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetReturnTypeOk() (*ReturnType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ReturnType, true
+}
+
+// SetReturnType sets field value
+func (o *ReturnDTO) SetReturnType(v ReturnType) {
+ o.ReturnType = v
+}
+
+// GetFastReturn returns the FastReturn field value if set, zero value otherwise.
+func (o *ReturnDTO) GetFastReturn() bool {
+ if o == nil || IsNil(o.FastReturn) {
+ var ret bool
+ return ret
+ }
+ return *o.FastReturn
+}
+
+// GetFastReturnOk returns a tuple with the FastReturn field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnDTO) GetFastReturnOk() (*bool, bool) {
+ if o == nil || IsNil(o.FastReturn) {
+ return nil, false
+ }
+ return o.FastReturn, true
+}
+
+// HasFastReturn returns a boolean if a field has been set.
+func (o *ReturnDTO) HasFastReturn() bool {
+ if o != nil && !IsNil(o.FastReturn) {
+ return true
+ }
+
+ return false
+}
+
+// SetFastReturn gets a reference to the given bool and assigns it to the FastReturn field.
+func (o *ReturnDTO) SetFastReturn(v bool) {
+ o.FastReturn = &v
+}
+
+func (o ReturnDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ReturnDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["orderId"] = o.OrderId
+ if !IsNil(o.CreationDate) {
+ toSerialize["creationDate"] = o.CreationDate
+ }
+ if !IsNil(o.UpdateDate) {
+ toSerialize["updateDate"] = o.UpdateDate
+ }
+ if !IsNil(o.RefundStatus) {
+ toSerialize["refundStatus"] = o.RefundStatus
+ }
+ if !IsNil(o.LogisticPickupPoint) {
+ toSerialize["logisticPickupPoint"] = o.LogisticPickupPoint
+ }
+ if !IsNil(o.ShipmentRecipientType) {
+ toSerialize["shipmentRecipientType"] = o.ShipmentRecipientType
+ }
+ if !IsNil(o.ShipmentStatus) {
+ toSerialize["shipmentStatus"] = o.ShipmentStatus
+ }
+ if !IsNil(o.RefundAmount) {
+ toSerialize["refundAmount"] = o.RefundAmount
+ }
+ if !IsNil(o.Amount) {
+ toSerialize["amount"] = o.Amount
+ }
+ toSerialize["items"] = o.Items
+ toSerialize["returnType"] = o.ReturnType
+ if !IsNil(o.FastReturn) {
+ toSerialize["fastReturn"] = o.FastReturn
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ReturnDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "orderId",
+ "items",
+ "returnType",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varReturnDTO := _ReturnDTO{}
+
+ err = json.Unmarshal(data, &varReturnDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ReturnDTO(varReturnDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "orderId")
+ delete(additionalProperties, "creationDate")
+ delete(additionalProperties, "updateDate")
+ delete(additionalProperties, "refundStatus")
+ delete(additionalProperties, "logisticPickupPoint")
+ delete(additionalProperties, "shipmentRecipientType")
+ delete(additionalProperties, "shipmentStatus")
+ delete(additionalProperties, "refundAmount")
+ delete(additionalProperties, "amount")
+ delete(additionalProperties, "items")
+ delete(additionalProperties, "returnType")
+ delete(additionalProperties, "fastReturn")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableReturnDTO struct {
+ value *ReturnDTO
+ isSet bool
+}
+
+func (v NullableReturnDTO) Get() *ReturnDTO {
+ return v.value
+}
+
+func (v *NullableReturnDTO) Set(val *ReturnDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnDTO(val *ReturnDTO) *NullableReturnDTO {
+ return &NullableReturnDTO{value: val, isSet: true}
+}
+
+func (v NullableReturnDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_instance_dto.go b/pkg/api/yandex/ymclient/model_return_instance_dto.go
new file mode 100644
index 0000000..7e87c8a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_instance_dto.go
@@ -0,0 +1,266 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the ReturnInstanceDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ReturnInstanceDTO{}
+
+// ReturnInstanceDTO Логистическая информация по возврату.
+type ReturnInstanceDTO struct {
+ StockType *ReturnInstanceStockType `json:"stockType,omitempty"`
+ Status *ReturnInstanceStatusType `json:"status,omitempty"`
+ // Код идентификации единицы товара в системе [:no-translate[«Честный ЗНАК»]](https://честныйзнак.рф/) или [:no-translate[«ASL BELGISI»]](https://aslbelgisi.uz) (для продавцов :no-translate[Market Yandex Go]).
+ Cis *string `json:"cis,omitempty"`
+ // Международный идентификатор мобильного оборудования.
+ Imei *string `json:"imei,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ReturnInstanceDTO ReturnInstanceDTO
+
+// NewReturnInstanceDTO instantiates a new ReturnInstanceDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewReturnInstanceDTO() *ReturnInstanceDTO {
+ this := ReturnInstanceDTO{}
+ return &this
+}
+
+// NewReturnInstanceDTOWithDefaults instantiates a new ReturnInstanceDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewReturnInstanceDTOWithDefaults() *ReturnInstanceDTO {
+ this := ReturnInstanceDTO{}
+ return &this
+}
+
+// GetStockType returns the StockType field value if set, zero value otherwise.
+func (o *ReturnInstanceDTO) GetStockType() ReturnInstanceStockType {
+ if o == nil || IsNil(o.StockType) {
+ var ret ReturnInstanceStockType
+ return ret
+ }
+ return *o.StockType
+}
+
+// GetStockTypeOk returns a tuple with the StockType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnInstanceDTO) GetStockTypeOk() (*ReturnInstanceStockType, bool) {
+ if o == nil || IsNil(o.StockType) {
+ return nil, false
+ }
+ return o.StockType, true
+}
+
+// HasStockType returns a boolean if a field has been set.
+func (o *ReturnInstanceDTO) HasStockType() bool {
+ if o != nil && !IsNil(o.StockType) {
+ return true
+ }
+
+ return false
+}
+
+// SetStockType gets a reference to the given ReturnInstanceStockType and assigns it to the StockType field.
+func (o *ReturnInstanceDTO) SetStockType(v ReturnInstanceStockType) {
+ o.StockType = &v
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *ReturnInstanceDTO) GetStatus() ReturnInstanceStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ReturnInstanceStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnInstanceDTO) GetStatusOk() (*ReturnInstanceStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *ReturnInstanceDTO) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ReturnInstanceStatusType and assigns it to the Status field.
+func (o *ReturnInstanceDTO) SetStatus(v ReturnInstanceStatusType) {
+ o.Status = &v
+}
+
+// GetCis returns the Cis field value if set, zero value otherwise.
+func (o *ReturnInstanceDTO) GetCis() string {
+ if o == nil || IsNil(o.Cis) {
+ var ret string
+ return ret
+ }
+ return *o.Cis
+}
+
+// GetCisOk returns a tuple with the Cis field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnInstanceDTO) GetCisOk() (*string, bool) {
+ if o == nil || IsNil(o.Cis) {
+ return nil, false
+ }
+ return o.Cis, true
+}
+
+// HasCis returns a boolean if a field has been set.
+func (o *ReturnInstanceDTO) HasCis() bool {
+ if o != nil && !IsNil(o.Cis) {
+ return true
+ }
+
+ return false
+}
+
+// SetCis gets a reference to the given string and assigns it to the Cis field.
+func (o *ReturnInstanceDTO) SetCis(v string) {
+ o.Cis = &v
+}
+
+// GetImei returns the Imei field value if set, zero value otherwise.
+func (o *ReturnInstanceDTO) GetImei() string {
+ if o == nil || IsNil(o.Imei) {
+ var ret string
+ return ret
+ }
+ return *o.Imei
+}
+
+// GetImeiOk returns a tuple with the Imei field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnInstanceDTO) GetImeiOk() (*string, bool) {
+ if o == nil || IsNil(o.Imei) {
+ return nil, false
+ }
+ return o.Imei, true
+}
+
+// HasImei returns a boolean if a field has been set.
+func (o *ReturnInstanceDTO) HasImei() bool {
+ if o != nil && !IsNil(o.Imei) {
+ return true
+ }
+
+ return false
+}
+
+// SetImei gets a reference to the given string and assigns it to the Imei field.
+func (o *ReturnInstanceDTO) SetImei(v string) {
+ o.Imei = &v
+}
+
+func (o ReturnInstanceDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ReturnInstanceDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.StockType) {
+ toSerialize["stockType"] = o.StockType
+ }
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Cis) {
+ toSerialize["cis"] = o.Cis
+ }
+ if !IsNil(o.Imei) {
+ toSerialize["imei"] = o.Imei
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ReturnInstanceDTO) UnmarshalJSON(data []byte) (err error) {
+ varReturnInstanceDTO := _ReturnInstanceDTO{}
+
+ err = json.Unmarshal(data, &varReturnInstanceDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ReturnInstanceDTO(varReturnInstanceDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "stockType")
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "cis")
+ delete(additionalProperties, "imei")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableReturnInstanceDTO struct {
+ value *ReturnInstanceDTO
+ isSet bool
+}
+
+func (v NullableReturnInstanceDTO) Get() *ReturnInstanceDTO {
+ return v.value
+}
+
+func (v *NullableReturnInstanceDTO) Set(val *ReturnInstanceDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnInstanceDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnInstanceDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnInstanceDTO(val *ReturnInstanceDTO) *NullableReturnInstanceDTO {
+ return &NullableReturnInstanceDTO{value: val, isSet: true}
+}
+
+func (v NullableReturnInstanceDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnInstanceDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_instance_status_type.go b/pkg/api/yandex/ymclient/model_return_instance_status_type.go
new file mode 100644
index 0000000..b0224b9
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_instance_status_type.go
@@ -0,0 +1,130 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReturnInstanceStatusType Логистический статус конкретного товара: * `CREATED` — возврат создан. * `RECEIVED` — возврат принят у отправителя. * `IN_TRANSIT` — возврат в пути. * `READY_FOR_PICKUP` — возврат готов к выдаче магазину. * `PICKED` — возврат выдан магазину. * `RECEIVED_ON_FULFILLMENT` — возврат принят на складе Маркета. * `CANCELLED` — возврат отменен. * `LOST` — возврат утерян. * `UTILIZED` — возврат утилизирован. * `PREPARED_FOR_UTILIZATION` — возврат готов к утилизации. * `EXPROPRIATED` — товары в возврате направлены на перепродажу. * `NOT_IN_DEMAND` — возврат не забрали с почты.
+type ReturnInstanceStatusType string
+
+// List of ReturnInstanceStatusType
+const (
+ RETURNINSTANCESTATUSTYPE_CREATED ReturnInstanceStatusType = "CREATED"
+ RETURNINSTANCESTATUSTYPE_RECEIVED ReturnInstanceStatusType = "RECEIVED"
+ RETURNINSTANCESTATUSTYPE_IN_TRANSIT ReturnInstanceStatusType = "IN_TRANSIT"
+ RETURNINSTANCESTATUSTYPE_READY_FOR_PICKUP ReturnInstanceStatusType = "READY_FOR_PICKUP"
+ RETURNINSTANCESTATUSTYPE_PICKED ReturnInstanceStatusType = "PICKED"
+ RETURNINSTANCESTATUSTYPE_RECEIVED_ON_FULFILLMENT ReturnInstanceStatusType = "RECEIVED_ON_FULFILLMENT"
+ RETURNINSTANCESTATUSTYPE_CANCELLED ReturnInstanceStatusType = "CANCELLED"
+ RETURNINSTANCESTATUSTYPE_LOST ReturnInstanceStatusType = "LOST"
+ RETURNINSTANCESTATUSTYPE_UTILIZED ReturnInstanceStatusType = "UTILIZED"
+ RETURNINSTANCESTATUSTYPE_PREPARED_FOR_UTILIZATION ReturnInstanceStatusType = "PREPARED_FOR_UTILIZATION"
+ RETURNINSTANCESTATUSTYPE_EXPROPRIATED ReturnInstanceStatusType = "EXPROPRIATED"
+ RETURNINSTANCESTATUSTYPE_NOT_IN_DEMAND ReturnInstanceStatusType = "NOT_IN_DEMAND"
+)
+
+// All allowed values of ReturnInstanceStatusType enum
+var AllowedReturnInstanceStatusTypeEnumValues = []ReturnInstanceStatusType{
+ "CREATED",
+ "RECEIVED",
+ "IN_TRANSIT",
+ "READY_FOR_PICKUP",
+ "PICKED",
+ "RECEIVED_ON_FULFILLMENT",
+ "CANCELLED",
+ "LOST",
+ "UTILIZED",
+ "PREPARED_FOR_UTILIZATION",
+ "EXPROPRIATED",
+ "NOT_IN_DEMAND",
+}
+
+func (v *ReturnInstanceStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReturnInstanceStatusType(value)
+ for _, existing := range AllowedReturnInstanceStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReturnInstanceStatusType", value)
+}
+
+// NewReturnInstanceStatusTypeFromValue returns a pointer to a valid ReturnInstanceStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReturnInstanceStatusTypeFromValue(v string) (*ReturnInstanceStatusType, error) {
+ ev := ReturnInstanceStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReturnInstanceStatusType: valid values are %v", v, AllowedReturnInstanceStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReturnInstanceStatusType) IsValid() bool {
+ for _, existing := range AllowedReturnInstanceStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReturnInstanceStatusType value
+func (v ReturnInstanceStatusType) Ptr() *ReturnInstanceStatusType {
+ return &v
+}
+
+type NullableReturnInstanceStatusType struct {
+ value *ReturnInstanceStatusType
+ isSet bool
+}
+
+func (v NullableReturnInstanceStatusType) Get() *ReturnInstanceStatusType {
+ return v.value
+}
+
+func (v *NullableReturnInstanceStatusType) Set(val *ReturnInstanceStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnInstanceStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnInstanceStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnInstanceStatusType(val *ReturnInstanceStatusType) *NullableReturnInstanceStatusType {
+ return &NullableReturnInstanceStatusType{value: val, isSet: true}
+}
+
+func (v NullableReturnInstanceStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnInstanceStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_instance_stock_type.go b/pkg/api/yandex/ymclient/model_return_instance_stock_type.go
new file mode 100644
index 0000000..97b99dd
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_instance_stock_type.go
@@ -0,0 +1,144 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReturnInstanceStockType Тип остатка на складе: * `FIT` — годный. * `DEFECT` — бракованный. * `ANOMALY` — аномалия. * `SURPLUS` — лишний. * `EXPIRED` — просроченный. * `MISGRADING` — пересортица. * `UNDEFINED` — с неизвестным статусом. * `INCORRECT_IMEI` — товар с некорректным [:no-translate[IMEI]](https://ru.wikipedia.org/wiki/IMEI). * `INCORRECT_SERIAL_NUMBER` — товар с некорректным серийным номером. * `INCORRECT_CIS` — товар с некорректным кодом идентификации единицы товара в системе [:no-translate[«Честный ЗНАК»]](https://честныйзнак.рф/) или [:no-translate[«ASL BELGISI»]](https://aslbelgisi.uz) (для продавцов :no-translate[Market Yandex Go]). * `PART_MISSING` — недостача. * `NON_COMPLIENT` — товар с множественными несоответствиями. * `NOT_ACCEPTABLE` — товар, который Маркет не принимает. * `SERVICE` — сервисный сток. * `MARKDOWN` — уценка. * `DEMO` — демо. * `REPAIR` — ремонт. * `FIRMWARE` — прошивка. * `UNKNOWN` — неизвестный тип товара.
+type ReturnInstanceStockType string
+
+// List of ReturnInstanceStockType
+const (
+ RETURNINSTANCESTOCKTYPE_FIT ReturnInstanceStockType = "FIT"
+ RETURNINSTANCESTOCKTYPE_DEFECT ReturnInstanceStockType = "DEFECT"
+ RETURNINSTANCESTOCKTYPE_ANOMALY ReturnInstanceStockType = "ANOMALY"
+ RETURNINSTANCESTOCKTYPE_SURPLUS ReturnInstanceStockType = "SURPLUS"
+ RETURNINSTANCESTOCKTYPE_EXPIRED ReturnInstanceStockType = "EXPIRED"
+ RETURNINSTANCESTOCKTYPE_MISGRADING ReturnInstanceStockType = "MISGRADING"
+ RETURNINSTANCESTOCKTYPE_UNDEFINED ReturnInstanceStockType = "UNDEFINED"
+ RETURNINSTANCESTOCKTYPE_INCORRECT_IMEI ReturnInstanceStockType = "INCORRECT_IMEI"
+ RETURNINSTANCESTOCKTYPE_INCORRECT_SERIAL_NUMBER ReturnInstanceStockType = "INCORRECT_SERIAL_NUMBER"
+ RETURNINSTANCESTOCKTYPE_INCORRECT_CIS ReturnInstanceStockType = "INCORRECT_CIS"
+ RETURNINSTANCESTOCKTYPE_PART_MISSING ReturnInstanceStockType = "PART_MISSING"
+ RETURNINSTANCESTOCKTYPE_NON_COMPLIENT ReturnInstanceStockType = "NON_COMPLIENT"
+ RETURNINSTANCESTOCKTYPE_NOT_ACCEPTABLE ReturnInstanceStockType = "NOT_ACCEPTABLE"
+ RETURNINSTANCESTOCKTYPE_SERVICE ReturnInstanceStockType = "SERVICE"
+ RETURNINSTANCESTOCKTYPE_MARKDOWN ReturnInstanceStockType = "MARKDOWN"
+ RETURNINSTANCESTOCKTYPE_DEMO ReturnInstanceStockType = "DEMO"
+ RETURNINSTANCESTOCKTYPE_REPAIR ReturnInstanceStockType = "REPAIR"
+ RETURNINSTANCESTOCKTYPE_FIRMWARE ReturnInstanceStockType = "FIRMWARE"
+ RETURNINSTANCESTOCKTYPE_UNKNOWN ReturnInstanceStockType = "UNKNOWN"
+)
+
+// All allowed values of ReturnInstanceStockType enum
+var AllowedReturnInstanceStockTypeEnumValues = []ReturnInstanceStockType{
+ "FIT",
+ "DEFECT",
+ "ANOMALY",
+ "SURPLUS",
+ "EXPIRED",
+ "MISGRADING",
+ "UNDEFINED",
+ "INCORRECT_IMEI",
+ "INCORRECT_SERIAL_NUMBER",
+ "INCORRECT_CIS",
+ "PART_MISSING",
+ "NON_COMPLIENT",
+ "NOT_ACCEPTABLE",
+ "SERVICE",
+ "MARKDOWN",
+ "DEMO",
+ "REPAIR",
+ "FIRMWARE",
+ "UNKNOWN",
+}
+
+func (v *ReturnInstanceStockType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReturnInstanceStockType(value)
+ for _, existing := range AllowedReturnInstanceStockTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReturnInstanceStockType", value)
+}
+
+// NewReturnInstanceStockTypeFromValue returns a pointer to a valid ReturnInstanceStockType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReturnInstanceStockTypeFromValue(v string) (*ReturnInstanceStockType, error) {
+ ev := ReturnInstanceStockType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReturnInstanceStockType: valid values are %v", v, AllowedReturnInstanceStockTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReturnInstanceStockType) IsValid() bool {
+ for _, existing := range AllowedReturnInstanceStockTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReturnInstanceStockType value
+func (v ReturnInstanceStockType) Ptr() *ReturnInstanceStockType {
+ return &v
+}
+
+type NullableReturnInstanceStockType struct {
+ value *ReturnInstanceStockType
+ isSet bool
+}
+
+func (v NullableReturnInstanceStockType) Get() *ReturnInstanceStockType {
+ return v.value
+}
+
+func (v *NullableReturnInstanceStockType) Set(val *ReturnInstanceStockType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnInstanceStockType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnInstanceStockType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnInstanceStockType(val *ReturnInstanceStockType) *NullableReturnInstanceStockType {
+ return &NullableReturnInstanceStockType{value: val, isSet: true}
+}
+
+func (v NullableReturnInstanceStockType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnInstanceStockType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_item_decision_dto.go b/pkg/api/yandex/ymclient/model_return_item_decision_dto.go
new file mode 100644
index 0000000..d46f60f
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_item_decision_dto.go
@@ -0,0 +1,271 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ReturnItemDecisionDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ReturnItemDecisionDTO{}
+
+// ReturnItemDecisionDTO Решения по товару в возврате.
+type ReturnItemDecisionDTO struct {
+ // Идентификатор товара в возврате.
+ ReturnItemId int64 `json:"returnItemId"`
+ DecisionType ReturnRequestDecisionType `json:"decisionType"`
+ DecisionReasonType *ReturnRequestDecisionReasonType `json:"decisionReasonType,omitempty"`
+ // Комментарий к решению. Укажите: * для `REFUND_MONEY_INCLUDING_SHIPMENT`— стоимость обратной пересылки. * для `REPAIR` — когда вы устраните недостатки товара. * для `DECLINE_REFUND` — причину отказа. * для `OTHER_DECISION` — какое решение вы предлагаете.
+ Comment *string `json:"comment,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ReturnItemDecisionDTO ReturnItemDecisionDTO
+
+// NewReturnItemDecisionDTO instantiates a new ReturnItemDecisionDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewReturnItemDecisionDTO(returnItemId int64, decisionType ReturnRequestDecisionType) *ReturnItemDecisionDTO {
+ this := ReturnItemDecisionDTO{}
+ this.ReturnItemId = returnItemId
+ this.DecisionType = decisionType
+ return &this
+}
+
+// NewReturnItemDecisionDTOWithDefaults instantiates a new ReturnItemDecisionDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewReturnItemDecisionDTOWithDefaults() *ReturnItemDecisionDTO {
+ this := ReturnItemDecisionDTO{}
+ return &this
+}
+
+// GetReturnItemId returns the ReturnItemId field value
+func (o *ReturnItemDecisionDTO) GetReturnItemId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.ReturnItemId
+}
+
+// GetReturnItemIdOk returns a tuple with the ReturnItemId field value
+// and a boolean to check if the value has been set.
+func (o *ReturnItemDecisionDTO) GetReturnItemIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ReturnItemId, true
+}
+
+// SetReturnItemId sets field value
+func (o *ReturnItemDecisionDTO) SetReturnItemId(v int64) {
+ o.ReturnItemId = v
+}
+
+// GetDecisionType returns the DecisionType field value
+func (o *ReturnItemDecisionDTO) GetDecisionType() ReturnRequestDecisionType {
+ if o == nil {
+ var ret ReturnRequestDecisionType
+ return ret
+ }
+
+ return o.DecisionType
+}
+
+// GetDecisionTypeOk returns a tuple with the DecisionType field value
+// and a boolean to check if the value has been set.
+func (o *ReturnItemDecisionDTO) GetDecisionTypeOk() (*ReturnRequestDecisionType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DecisionType, true
+}
+
+// SetDecisionType sets field value
+func (o *ReturnItemDecisionDTO) SetDecisionType(v ReturnRequestDecisionType) {
+ o.DecisionType = v
+}
+
+// GetDecisionReasonType returns the DecisionReasonType field value if set, zero value otherwise.
+func (o *ReturnItemDecisionDTO) GetDecisionReasonType() ReturnRequestDecisionReasonType {
+ if o == nil || IsNil(o.DecisionReasonType) {
+ var ret ReturnRequestDecisionReasonType
+ return ret
+ }
+ return *o.DecisionReasonType
+}
+
+// GetDecisionReasonTypeOk returns a tuple with the DecisionReasonType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnItemDecisionDTO) GetDecisionReasonTypeOk() (*ReturnRequestDecisionReasonType, bool) {
+ if o == nil || IsNil(o.DecisionReasonType) {
+ return nil, false
+ }
+ return o.DecisionReasonType, true
+}
+
+// HasDecisionReasonType returns a boolean if a field has been set.
+func (o *ReturnItemDecisionDTO) HasDecisionReasonType() bool {
+ if o != nil && !IsNil(o.DecisionReasonType) {
+ return true
+ }
+
+ return false
+}
+
+// SetDecisionReasonType gets a reference to the given ReturnRequestDecisionReasonType and assigns it to the DecisionReasonType field.
+func (o *ReturnItemDecisionDTO) SetDecisionReasonType(v ReturnRequestDecisionReasonType) {
+ o.DecisionReasonType = &v
+}
+
+// GetComment returns the Comment field value if set, zero value otherwise.
+func (o *ReturnItemDecisionDTO) GetComment() string {
+ if o == nil || IsNil(o.Comment) {
+ var ret string
+ return ret
+ }
+ return *o.Comment
+}
+
+// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnItemDecisionDTO) GetCommentOk() (*string, bool) {
+ if o == nil || IsNil(o.Comment) {
+ return nil, false
+ }
+ return o.Comment, true
+}
+
+// HasComment returns a boolean if a field has been set.
+func (o *ReturnItemDecisionDTO) HasComment() bool {
+ if o != nil && !IsNil(o.Comment) {
+ return true
+ }
+
+ return false
+}
+
+// SetComment gets a reference to the given string and assigns it to the Comment field.
+func (o *ReturnItemDecisionDTO) SetComment(v string) {
+ o.Comment = &v
+}
+
+func (o ReturnItemDecisionDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ReturnItemDecisionDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["returnItemId"] = o.ReturnItemId
+ toSerialize["decisionType"] = o.DecisionType
+ if !IsNil(o.DecisionReasonType) {
+ toSerialize["decisionReasonType"] = o.DecisionReasonType
+ }
+ if !IsNil(o.Comment) {
+ toSerialize["comment"] = o.Comment
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ReturnItemDecisionDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "returnItemId",
+ "decisionType",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varReturnItemDecisionDTO := _ReturnItemDecisionDTO{}
+
+ err = json.Unmarshal(data, &varReturnItemDecisionDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ReturnItemDecisionDTO(varReturnItemDecisionDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "returnItemId")
+ delete(additionalProperties, "decisionType")
+ delete(additionalProperties, "decisionReasonType")
+ delete(additionalProperties, "comment")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableReturnItemDecisionDTO struct {
+ value *ReturnItemDecisionDTO
+ isSet bool
+}
+
+func (v NullableReturnItemDecisionDTO) Get() *ReturnItemDecisionDTO {
+ return v.value
+}
+
+func (v *NullableReturnItemDecisionDTO) Set(val *ReturnItemDecisionDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnItemDecisionDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnItemDecisionDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnItemDecisionDTO(val *ReturnItemDecisionDTO) *NullableReturnItemDecisionDTO {
+ return &NullableReturnItemDecisionDTO{value: val, isSet: true}
+}
+
+func (v NullableReturnItemDecisionDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnItemDecisionDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_item_dto.go b/pkg/api/yandex/ymclient/model_return_item_dto.go
new file mode 100644
index 0000000..edbcc82
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_item_dto.go
@@ -0,0 +1,352 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ReturnItemDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ReturnItemDTO{}
+
+// ReturnItemDTO Список товаров в невыкупе или возврате.
+type ReturnItemDTO struct {
+ // Идентификатор карточки товара на Маркете.
+ MarketSku *int64 `json:"marketSku,omitempty"`
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ ShopSku string `json:"shopSku" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Количество единиц товара.
+ Count int64 `json:"count"`
+ // Список решений по возврату.
+ Decisions []ReturnDecisionDTO `json:"decisions,omitempty"`
+ // Список логистических позиций возврата.
+ Instances []ReturnInstanceDTO `json:"instances,omitempty"`
+ // Список трек-кодов для почтовых отправлений.
+ Tracks []TrackDTO `json:"tracks,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ReturnItemDTO ReturnItemDTO
+
+// NewReturnItemDTO instantiates a new ReturnItemDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewReturnItemDTO(shopSku string, count int64) *ReturnItemDTO {
+ this := ReturnItemDTO{}
+ this.ShopSku = shopSku
+ this.Count = count
+ return &this
+}
+
+// NewReturnItemDTOWithDefaults instantiates a new ReturnItemDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewReturnItemDTOWithDefaults() *ReturnItemDTO {
+ this := ReturnItemDTO{}
+ return &this
+}
+
+// GetMarketSku returns the MarketSku field value if set, zero value otherwise.
+func (o *ReturnItemDTO) GetMarketSku() int64 {
+ if o == nil || IsNil(o.MarketSku) {
+ var ret int64
+ return ret
+ }
+ return *o.MarketSku
+}
+
+// GetMarketSkuOk returns a tuple with the MarketSku field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ReturnItemDTO) GetMarketSkuOk() (*int64, bool) {
+ if o == nil || IsNil(o.MarketSku) {
+ return nil, false
+ }
+ return o.MarketSku, true
+}
+
+// HasMarketSku returns a boolean if a field has been set.
+func (o *ReturnItemDTO) HasMarketSku() bool {
+ if o != nil && !IsNil(o.MarketSku) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarketSku gets a reference to the given int64 and assigns it to the MarketSku field.
+func (o *ReturnItemDTO) SetMarketSku(v int64) {
+ o.MarketSku = &v
+}
+
+// GetShopSku returns the ShopSku field value
+func (o *ReturnItemDTO) GetShopSku() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ShopSku
+}
+
+// GetShopSkuOk returns a tuple with the ShopSku field value
+// and a boolean to check if the value has been set.
+func (o *ReturnItemDTO) GetShopSkuOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ShopSku, true
+}
+
+// SetShopSku sets field value
+func (o *ReturnItemDTO) SetShopSku(v string) {
+ o.ShopSku = v
+}
+
+// GetCount returns the Count field value
+func (o *ReturnItemDTO) GetCount() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Count
+}
+
+// GetCountOk returns a tuple with the Count field value
+// and a boolean to check if the value has been set.
+func (o *ReturnItemDTO) GetCountOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Count, true
+}
+
+// SetCount sets field value
+func (o *ReturnItemDTO) SetCount(v int64) {
+ o.Count = v
+}
+
+// GetDecisions returns the Decisions field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ReturnItemDTO) GetDecisions() []ReturnDecisionDTO {
+ if o == nil {
+ var ret []ReturnDecisionDTO
+ return ret
+ }
+ return o.Decisions
+}
+
+// GetDecisionsOk returns a tuple with the Decisions field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ReturnItemDTO) GetDecisionsOk() ([]ReturnDecisionDTO, bool) {
+ if o == nil || IsNil(o.Decisions) {
+ return nil, false
+ }
+ return o.Decisions, true
+}
+
+// HasDecisions returns a boolean if a field has been set.
+func (o *ReturnItemDTO) HasDecisions() bool {
+ if o != nil && !IsNil(o.Decisions) {
+ return true
+ }
+
+ return false
+}
+
+// SetDecisions gets a reference to the given []ReturnDecisionDTO and assigns it to the Decisions field.
+func (o *ReturnItemDTO) SetDecisions(v []ReturnDecisionDTO) {
+ o.Decisions = v
+}
+
+// GetInstances returns the Instances field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ReturnItemDTO) GetInstances() []ReturnInstanceDTO {
+ if o == nil {
+ var ret []ReturnInstanceDTO
+ return ret
+ }
+ return o.Instances
+}
+
+// GetInstancesOk returns a tuple with the Instances field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ReturnItemDTO) GetInstancesOk() ([]ReturnInstanceDTO, bool) {
+ if o == nil || IsNil(o.Instances) {
+ return nil, false
+ }
+ return o.Instances, true
+}
+
+// HasInstances returns a boolean if a field has been set.
+func (o *ReturnItemDTO) HasInstances() bool {
+ if o != nil && !IsNil(o.Instances) {
+ return true
+ }
+
+ return false
+}
+
+// SetInstances gets a reference to the given []ReturnInstanceDTO and assigns it to the Instances field.
+func (o *ReturnItemDTO) SetInstances(v []ReturnInstanceDTO) {
+ o.Instances = v
+}
+
+// GetTracks returns the Tracks field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ReturnItemDTO) GetTracks() []TrackDTO {
+ if o == nil {
+ var ret []TrackDTO
+ return ret
+ }
+ return o.Tracks
+}
+
+// GetTracksOk returns a tuple with the Tracks field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ReturnItemDTO) GetTracksOk() ([]TrackDTO, bool) {
+ if o == nil || IsNil(o.Tracks) {
+ return nil, false
+ }
+ return o.Tracks, true
+}
+
+// HasTracks returns a boolean if a field has been set.
+func (o *ReturnItemDTO) HasTracks() bool {
+ if o != nil && !IsNil(o.Tracks) {
+ return true
+ }
+
+ return false
+}
+
+// SetTracks gets a reference to the given []TrackDTO and assigns it to the Tracks field.
+func (o *ReturnItemDTO) SetTracks(v []TrackDTO) {
+ o.Tracks = v
+}
+
+func (o ReturnItemDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ReturnItemDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.MarketSku) {
+ toSerialize["marketSku"] = o.MarketSku
+ }
+ toSerialize["shopSku"] = o.ShopSku
+ toSerialize["count"] = o.Count
+ if o.Decisions != nil {
+ toSerialize["decisions"] = o.Decisions
+ }
+ if o.Instances != nil {
+ toSerialize["instances"] = o.Instances
+ }
+ if o.Tracks != nil {
+ toSerialize["tracks"] = o.Tracks
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ReturnItemDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "shopSku",
+ "count",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varReturnItemDTO := _ReturnItemDTO{}
+
+ err = json.Unmarshal(data, &varReturnItemDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ReturnItemDTO(varReturnItemDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "marketSku")
+ delete(additionalProperties, "shopSku")
+ delete(additionalProperties, "count")
+ delete(additionalProperties, "decisions")
+ delete(additionalProperties, "instances")
+ delete(additionalProperties, "tracks")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableReturnItemDTO struct {
+ value *ReturnItemDTO
+ isSet bool
+}
+
+func (v NullableReturnItemDTO) Get() *ReturnItemDTO {
+ return v.value
+}
+
+func (v *NullableReturnItemDTO) Set(val *ReturnItemDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnItemDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnItemDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnItemDTO(val *ReturnItemDTO) *NullableReturnItemDTO {
+ return &NullableReturnItemDTO{value: val, isSet: true}
+}
+
+func (v NullableReturnItemDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnItemDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_request_decision_reason_type.go b/pkg/api/yandex/ymclient/model_return_request_decision_reason_type.go
new file mode 100644
index 0000000..be4f418
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_request_decision_reason_type.go
@@ -0,0 +1,120 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReturnRequestDecisionReasonType Причина отказа: * `ISSUE_WITH_THE_PRODUCT_WAS_NOT_CONFIRMED` — проблема с товаром не подтвердилась. * `MECHANICAL_DAMAGE` — есть механические повреждения товара. * `WARRANTY_PERIOD_HAS_EXPIRED` — истек гарантийный срок. * `CONFIGURATION_OR_PACKAGING_COMPROMISED` — нарушена комплектация или упаковка. * `PRODUCT_APPEARANCE_COMPROMISED` — нарушен товарный вид. * `WARRANTY_TERMS_VIOLATED` — нарушены условия гарантии. * `DEVICE_ACTIVATED` — устройство активировано.
+type ReturnRequestDecisionReasonType string
+
+// List of ReturnRequestDecisionReasonType
+const (
+ RETURNREQUESTDECISIONREASONTYPE_ISSUE_WITH_THE_PRODUCT_WAS_NOT_CONFIRMED ReturnRequestDecisionReasonType = "ISSUE_WITH_THE_PRODUCT_WAS_NOT_CONFIRMED"
+ RETURNREQUESTDECISIONREASONTYPE_MECHANICAL_DAMAGE ReturnRequestDecisionReasonType = "MECHANICAL_DAMAGE"
+ RETURNREQUESTDECISIONREASONTYPE_WARRANTY_PERIOD_HAS_EXPIRED ReturnRequestDecisionReasonType = "WARRANTY_PERIOD_HAS_EXPIRED"
+ RETURNREQUESTDECISIONREASONTYPE_CONFIGURATION_OR_PACKAGING_COMPROMISED ReturnRequestDecisionReasonType = "CONFIGURATION_OR_PACKAGING_COMPROMISED"
+ RETURNREQUESTDECISIONREASONTYPE_PRODUCT_APPEARANCE_COMPROMISED ReturnRequestDecisionReasonType = "PRODUCT_APPEARANCE_COMPROMISED"
+ RETURNREQUESTDECISIONREASONTYPE_WARRANTY_TERMS_VIOLATED ReturnRequestDecisionReasonType = "WARRANTY_TERMS_VIOLATED"
+ RETURNREQUESTDECISIONREASONTYPE_DEVICE_ACTIVATED ReturnRequestDecisionReasonType = "DEVICE_ACTIVATED"
+)
+
+// All allowed values of ReturnRequestDecisionReasonType enum
+var AllowedReturnRequestDecisionReasonTypeEnumValues = []ReturnRequestDecisionReasonType{
+ "ISSUE_WITH_THE_PRODUCT_WAS_NOT_CONFIRMED",
+ "MECHANICAL_DAMAGE",
+ "WARRANTY_PERIOD_HAS_EXPIRED",
+ "CONFIGURATION_OR_PACKAGING_COMPROMISED",
+ "PRODUCT_APPEARANCE_COMPROMISED",
+ "WARRANTY_TERMS_VIOLATED",
+ "DEVICE_ACTIVATED",
+}
+
+func (v *ReturnRequestDecisionReasonType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReturnRequestDecisionReasonType(value)
+ for _, existing := range AllowedReturnRequestDecisionReasonTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReturnRequestDecisionReasonType", value)
+}
+
+// NewReturnRequestDecisionReasonTypeFromValue returns a pointer to a valid ReturnRequestDecisionReasonType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReturnRequestDecisionReasonTypeFromValue(v string) (*ReturnRequestDecisionReasonType, error) {
+ ev := ReturnRequestDecisionReasonType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReturnRequestDecisionReasonType: valid values are %v", v, AllowedReturnRequestDecisionReasonTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReturnRequestDecisionReasonType) IsValid() bool {
+ for _, existing := range AllowedReturnRequestDecisionReasonTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReturnRequestDecisionReasonType value
+func (v ReturnRequestDecisionReasonType) Ptr() *ReturnRequestDecisionReasonType {
+ return &v
+}
+
+type NullableReturnRequestDecisionReasonType struct {
+ value *ReturnRequestDecisionReasonType
+ isSet bool
+}
+
+func (v NullableReturnRequestDecisionReasonType) Get() *ReturnRequestDecisionReasonType {
+ return v.value
+}
+
+func (v *NullableReturnRequestDecisionReasonType) Set(val *ReturnRequestDecisionReasonType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnRequestDecisionReasonType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnRequestDecisionReasonType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnRequestDecisionReasonType(val *ReturnRequestDecisionReasonType) *NullableReturnRequestDecisionReasonType {
+ return &NullableReturnRequestDecisionReasonType{value: val, isSet: true}
+}
+
+func (v NullableReturnRequestDecisionReasonType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnRequestDecisionReasonType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_request_decision_type.go b/pkg/api/yandex/ymclient/model_return_request_decision_type.go
new file mode 100644
index 0000000..bc3c389
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_request_decision_type.go
@@ -0,0 +1,122 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReturnRequestDecisionType Решение по возврату: * `FAST_REFUND_MONEY` — вернуть покупателю деньги без возврата товара. * `REFUND_MONEY` — вернуть покупателю деньги за товар. * `REFUND_MONEY_INCLUDING_SHIPMENT` — вернуть покупателю деньги за товар и обратную пересылку. * `REPAIR` — отремонтировать товар. * `REPLACE` — заменить товар. * `SEND_TO_EXAMINATION` — взять товар на экспертизу. * `DECLINE_REFUND` — отказать в возврате. * `OTHER_DECISION` — другое решение.
+type ReturnRequestDecisionType string
+
+// List of ReturnRequestDecisionType
+const (
+ RETURNREQUESTDECISIONTYPE_FAST_REFUND_MONEY ReturnRequestDecisionType = "FAST_REFUND_MONEY"
+ RETURNREQUESTDECISIONTYPE_REFUND_MONEY ReturnRequestDecisionType = "REFUND_MONEY"
+ RETURNREQUESTDECISIONTYPE_REFUND_MONEY_INCLUDING_SHIPMENT ReturnRequestDecisionType = "REFUND_MONEY_INCLUDING_SHIPMENT"
+ RETURNREQUESTDECISIONTYPE_REPAIR ReturnRequestDecisionType = "REPAIR"
+ RETURNREQUESTDECISIONTYPE_REPLACE ReturnRequestDecisionType = "REPLACE"
+ RETURNREQUESTDECISIONTYPE_SEND_TO_EXAMINATION ReturnRequestDecisionType = "SEND_TO_EXAMINATION"
+ RETURNREQUESTDECISIONTYPE_DECLINE_REFUND ReturnRequestDecisionType = "DECLINE_REFUND"
+ RETURNREQUESTDECISIONTYPE_OTHER_DECISION ReturnRequestDecisionType = "OTHER_DECISION"
+)
+
+// All allowed values of ReturnRequestDecisionType enum
+var AllowedReturnRequestDecisionTypeEnumValues = []ReturnRequestDecisionType{
+ "FAST_REFUND_MONEY",
+ "REFUND_MONEY",
+ "REFUND_MONEY_INCLUDING_SHIPMENT",
+ "REPAIR",
+ "REPLACE",
+ "SEND_TO_EXAMINATION",
+ "DECLINE_REFUND",
+ "OTHER_DECISION",
+}
+
+func (v *ReturnRequestDecisionType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReturnRequestDecisionType(value)
+ for _, existing := range AllowedReturnRequestDecisionTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReturnRequestDecisionType", value)
+}
+
+// NewReturnRequestDecisionTypeFromValue returns a pointer to a valid ReturnRequestDecisionType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReturnRequestDecisionTypeFromValue(v string) (*ReturnRequestDecisionType, error) {
+ ev := ReturnRequestDecisionType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReturnRequestDecisionType: valid values are %v", v, AllowedReturnRequestDecisionTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReturnRequestDecisionType) IsValid() bool {
+ for _, existing := range AllowedReturnRequestDecisionTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReturnRequestDecisionType value
+func (v ReturnRequestDecisionType) Ptr() *ReturnRequestDecisionType {
+ return &v
+}
+
+type NullableReturnRequestDecisionType struct {
+ value *ReturnRequestDecisionType
+ isSet bool
+}
+
+func (v NullableReturnRequestDecisionType) Get() *ReturnRequestDecisionType {
+ return v.value
+}
+
+func (v *NullableReturnRequestDecisionType) Set(val *ReturnRequestDecisionType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnRequestDecisionType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnRequestDecisionType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnRequestDecisionType(val *ReturnRequestDecisionType) *NullableReturnRequestDecisionType {
+ return &NullableReturnRequestDecisionType{value: val, isSet: true}
+}
+
+func (v NullableReturnRequestDecisionType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnRequestDecisionType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_shipment_status_type.go b/pkg/api/yandex/ymclient/model_return_shipment_status_type.go
new file mode 100644
index 0000000..89ff1ce
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_shipment_status_type.go
@@ -0,0 +1,136 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReturnShipmentStatusType Статус передачи возврата: * `CREATED` — возврат создан. * `RECEIVED` — принят у покупателя. * `IN_TRANSIT` — возврат в пути. * `READY_FOR_PICKUP` — возврат готов к выдаче магазину. * `PICKED` — возврат выдан магазину. * `LOST` — возврат утерян при транспортировке. * `EXPIRED` — покупатель не принес товар на возврат вовремя. * `CANCELLED` — возврат отменен. * `FULFILMENT_RECEIVED` — возврат принят на складе Маркета. * `PREPARED_FOR_UTILIZATION` — возврат передан в утилизацию. * `NOT_IN_DEMAND` — возврат не забрали с почты. * `UTILIZED` — возврат утилизирован. * `READY_FOR_EXPROPRIATION` — товары в возврате направлены на перепродажу. * `RECEIVED_FOR_EXPROPRIATION` — товары в возврате приняты для перепродажи. * `UNKNOWN` — неизвестный статус.
+type ReturnShipmentStatusType string
+
+// List of ReturnShipmentStatusType
+const (
+ RETURNSHIPMENTSTATUSTYPE_CREATED ReturnShipmentStatusType = "CREATED"
+ RETURNSHIPMENTSTATUSTYPE_RECEIVED ReturnShipmentStatusType = "RECEIVED"
+ RETURNSHIPMENTSTATUSTYPE_IN_TRANSIT ReturnShipmentStatusType = "IN_TRANSIT"
+ RETURNSHIPMENTSTATUSTYPE_READY_FOR_PICKUP ReturnShipmentStatusType = "READY_FOR_PICKUP"
+ RETURNSHIPMENTSTATUSTYPE_PICKED ReturnShipmentStatusType = "PICKED"
+ RETURNSHIPMENTSTATUSTYPE_LOST ReturnShipmentStatusType = "LOST"
+ RETURNSHIPMENTSTATUSTYPE_EXPIRED ReturnShipmentStatusType = "EXPIRED"
+ RETURNSHIPMENTSTATUSTYPE_CANCELLED ReturnShipmentStatusType = "CANCELLED"
+ RETURNSHIPMENTSTATUSTYPE_FULFILMENT_RECEIVED ReturnShipmentStatusType = "FULFILMENT_RECEIVED"
+ RETURNSHIPMENTSTATUSTYPE_PREPARED_FOR_UTILIZATION ReturnShipmentStatusType = "PREPARED_FOR_UTILIZATION"
+ RETURNSHIPMENTSTATUSTYPE_NOT_IN_DEMAND ReturnShipmentStatusType = "NOT_IN_DEMAND"
+ RETURNSHIPMENTSTATUSTYPE_UTILIZED ReturnShipmentStatusType = "UTILIZED"
+ RETURNSHIPMENTSTATUSTYPE_READY_FOR_EXPROPRIATION ReturnShipmentStatusType = "READY_FOR_EXPROPRIATION"
+ RETURNSHIPMENTSTATUSTYPE_RECEIVED_FOR_EXPROPRIATION ReturnShipmentStatusType = "RECEIVED_FOR_EXPROPRIATION"
+ RETURNSHIPMENTSTATUSTYPE_UNKNOWN ReturnShipmentStatusType = "UNKNOWN"
+)
+
+// All allowed values of ReturnShipmentStatusType enum
+var AllowedReturnShipmentStatusTypeEnumValues = []ReturnShipmentStatusType{
+ "CREATED",
+ "RECEIVED",
+ "IN_TRANSIT",
+ "READY_FOR_PICKUP",
+ "PICKED",
+ "LOST",
+ "EXPIRED",
+ "CANCELLED",
+ "FULFILMENT_RECEIVED",
+ "PREPARED_FOR_UTILIZATION",
+ "NOT_IN_DEMAND",
+ "UTILIZED",
+ "READY_FOR_EXPROPRIATION",
+ "RECEIVED_FOR_EXPROPRIATION",
+ "UNKNOWN",
+}
+
+func (v *ReturnShipmentStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReturnShipmentStatusType(value)
+ for _, existing := range AllowedReturnShipmentStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReturnShipmentStatusType", value)
+}
+
+// NewReturnShipmentStatusTypeFromValue returns a pointer to a valid ReturnShipmentStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReturnShipmentStatusTypeFromValue(v string) (*ReturnShipmentStatusType, error) {
+ ev := ReturnShipmentStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReturnShipmentStatusType: valid values are %v", v, AllowedReturnShipmentStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReturnShipmentStatusType) IsValid() bool {
+ for _, existing := range AllowedReturnShipmentStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReturnShipmentStatusType value
+func (v ReturnShipmentStatusType) Ptr() *ReturnShipmentStatusType {
+ return &v
+}
+
+type NullableReturnShipmentStatusType struct {
+ value *ReturnShipmentStatusType
+ isSet bool
+}
+
+func (v NullableReturnShipmentStatusType) Get() *ReturnShipmentStatusType {
+ return v.value
+}
+
+func (v *NullableReturnShipmentStatusType) Set(val *ReturnShipmentStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnShipmentStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnShipmentStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnShipmentStatusType(val *ReturnShipmentStatusType) *NullableReturnShipmentStatusType {
+ return &NullableReturnShipmentStatusType{value: val, isSet: true}
+}
+
+func (v NullableReturnShipmentStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnShipmentStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_return_type.go b/pkg/api/yandex/ymclient/model_return_type.go
new file mode 100644
index 0000000..7a56d1a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_return_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ReturnType Тип заказа для фильтрации: * `UNREDEEMED` — невыкуп. * `RETURN` — возврат. Если не указывать, в ответе будут и невыкупы, и возвраты.
+type ReturnType string
+
+// List of ReturnType
+const (
+ RETURNTYPE_UNREDEEMED ReturnType = "UNREDEEMED"
+ RETURNTYPE_RETURN ReturnType = "RETURN"
+)
+
+// All allowed values of ReturnType enum
+var AllowedReturnTypeEnumValues = []ReturnType{
+ "UNREDEEMED",
+ "RETURN",
+}
+
+func (v *ReturnType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ReturnType(value)
+ for _, existing := range AllowedReturnTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ReturnType", value)
+}
+
+// NewReturnTypeFromValue returns a pointer to a valid ReturnType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewReturnTypeFromValue(v string) (*ReturnType, error) {
+ ev := ReturnType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ReturnType: valid values are %v", v, AllowedReturnTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ReturnType) IsValid() bool {
+ for _, existing := range AllowedReturnTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ReturnType value
+func (v ReturnType) Ptr() *ReturnType {
+ return &v
+}
+
+type NullableReturnType struct {
+ value *ReturnType
+ isSet bool
+}
+
+func (v NullableReturnType) Get() *ReturnType {
+ return v.value
+}
+
+func (v *NullableReturnType) Set(val *ReturnType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReturnType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReturnType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReturnType(val *ReturnType) *NullableReturnType {
+ return &NullableReturnType{value: val, isSet: true}
+}
+
+func (v NullableReturnType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReturnType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_scrolling_pager_dto.go b/pkg/api/yandex/ymclient/model_scrolling_pager_dto.go
new file mode 100644
index 0000000..c444f71
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_scrolling_pager_dto.go
@@ -0,0 +1,192 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the ScrollingPagerDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ScrollingPagerDTO{}
+
+// ScrollingPagerDTO Информация о страницах результатов.
+type ScrollingPagerDTO struct {
+ // Идентификатор следующей страницы результатов.
+ NextPageToken *string `json:"nextPageToken,omitempty"`
+ // Идентификатор предыдущей страницы результатов.
+ PrevPageToken *string `json:"prevPageToken,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ScrollingPagerDTO ScrollingPagerDTO
+
+// NewScrollingPagerDTO instantiates a new ScrollingPagerDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewScrollingPagerDTO() *ScrollingPagerDTO {
+ this := ScrollingPagerDTO{}
+ return &this
+}
+
+// NewScrollingPagerDTOWithDefaults instantiates a new ScrollingPagerDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewScrollingPagerDTOWithDefaults() *ScrollingPagerDTO {
+ this := ScrollingPagerDTO{}
+ return &this
+}
+
+// GetNextPageToken returns the NextPageToken field value if set, zero value otherwise.
+func (o *ScrollingPagerDTO) GetNextPageToken() string {
+ if o == nil || IsNil(o.NextPageToken) {
+ var ret string
+ return ret
+ }
+ return *o.NextPageToken
+}
+
+// GetNextPageTokenOk returns a tuple with the NextPageToken field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ScrollingPagerDTO) GetNextPageTokenOk() (*string, bool) {
+ if o == nil || IsNil(o.NextPageToken) {
+ return nil, false
+ }
+ return o.NextPageToken, true
+}
+
+// HasNextPageToken returns a boolean if a field has been set.
+func (o *ScrollingPagerDTO) HasNextPageToken() bool {
+ if o != nil && !IsNil(o.NextPageToken) {
+ return true
+ }
+
+ return false
+}
+
+// SetNextPageToken gets a reference to the given string and assigns it to the NextPageToken field.
+func (o *ScrollingPagerDTO) SetNextPageToken(v string) {
+ o.NextPageToken = &v
+}
+
+// GetPrevPageToken returns the PrevPageToken field value if set, zero value otherwise.
+func (o *ScrollingPagerDTO) GetPrevPageToken() string {
+ if o == nil || IsNil(o.PrevPageToken) {
+ var ret string
+ return ret
+ }
+ return *o.PrevPageToken
+}
+
+// GetPrevPageTokenOk returns a tuple with the PrevPageToken field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ScrollingPagerDTO) GetPrevPageTokenOk() (*string, bool) {
+ if o == nil || IsNil(o.PrevPageToken) {
+ return nil, false
+ }
+ return o.PrevPageToken, true
+}
+
+// HasPrevPageToken returns a boolean if a field has been set.
+func (o *ScrollingPagerDTO) HasPrevPageToken() bool {
+ if o != nil && !IsNil(o.PrevPageToken) {
+ return true
+ }
+
+ return false
+}
+
+// SetPrevPageToken gets a reference to the given string and assigns it to the PrevPageToken field.
+func (o *ScrollingPagerDTO) SetPrevPageToken(v string) {
+ o.PrevPageToken = &v
+}
+
+func (o ScrollingPagerDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ScrollingPagerDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.NextPageToken) {
+ toSerialize["nextPageToken"] = o.NextPageToken
+ }
+ if !IsNil(o.PrevPageToken) {
+ toSerialize["prevPageToken"] = o.PrevPageToken
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ScrollingPagerDTO) UnmarshalJSON(data []byte) (err error) {
+ varScrollingPagerDTO := _ScrollingPagerDTO{}
+
+ err = json.Unmarshal(data, &varScrollingPagerDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ScrollingPagerDTO(varScrollingPagerDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "nextPageToken")
+ delete(additionalProperties, "prevPageToken")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableScrollingPagerDTO struct {
+ value *ScrollingPagerDTO
+ isSet bool
+}
+
+func (v NullableScrollingPagerDTO) Get() *ScrollingPagerDTO {
+ return v.value
+}
+
+func (v *NullableScrollingPagerDTO) Set(val *ScrollingPagerDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableScrollingPagerDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableScrollingPagerDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableScrollingPagerDTO(val *ScrollingPagerDTO) *NullableScrollingPagerDTO {
+ return &NullableScrollingPagerDTO{value: val, isSet: true}
+}
+
+func (v NullableScrollingPagerDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableScrollingPagerDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_search_models_response.go b/pkg/api/yandex/ymclient/model_search_models_response.go
new file mode 100644
index 0000000..ff02541
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_search_models_response.go
@@ -0,0 +1,279 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SearchModelsResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SearchModelsResponse{}
+
+// SearchModelsResponse struct for SearchModelsResponse
+type SearchModelsResponse struct {
+ // Список моделей товаров.
+ Models []ModelDTO `json:"models"`
+ Currency *CurrencyType `json:"currency,omitempty"`
+ // Идентификатор региона, для которого выводится информация о предложениях модели (доставляемых в этот регион). Информацию о регионе по идентификатору можно получить с помощью запроса [GET regions/{regionId}](../../reference/regions/searchRegionsById.md).
+ RegionId *int64 `json:"regionId,omitempty"`
+ Pager *FlippingPagerDTO `json:"pager,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SearchModelsResponse SearchModelsResponse
+
+// NewSearchModelsResponse instantiates a new SearchModelsResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSearchModelsResponse(models []ModelDTO) *SearchModelsResponse {
+ this := SearchModelsResponse{}
+ this.Models = models
+ return &this
+}
+
+// NewSearchModelsResponseWithDefaults instantiates a new SearchModelsResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSearchModelsResponseWithDefaults() *SearchModelsResponse {
+ this := SearchModelsResponse{}
+ return &this
+}
+
+// GetModels returns the Models field value
+func (o *SearchModelsResponse) GetModels() []ModelDTO {
+ if o == nil {
+ var ret []ModelDTO
+ return ret
+ }
+
+ return o.Models
+}
+
+// GetModelsOk returns a tuple with the Models field value
+// and a boolean to check if the value has been set.
+func (o *SearchModelsResponse) GetModelsOk() ([]ModelDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Models, true
+}
+
+// SetModels sets field value
+func (o *SearchModelsResponse) SetModels(v []ModelDTO) {
+ o.Models = v
+}
+
+// GetCurrency returns the Currency field value if set, zero value otherwise.
+func (o *SearchModelsResponse) GetCurrency() CurrencyType {
+ if o == nil || IsNil(o.Currency) {
+ var ret CurrencyType
+ return ret
+ }
+ return *o.Currency
+}
+
+// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SearchModelsResponse) GetCurrencyOk() (*CurrencyType, bool) {
+ if o == nil || IsNil(o.Currency) {
+ return nil, false
+ }
+ return o.Currency, true
+}
+
+// HasCurrency returns a boolean if a field has been set.
+func (o *SearchModelsResponse) HasCurrency() bool {
+ if o != nil && !IsNil(o.Currency) {
+ return true
+ }
+
+ return false
+}
+
+// SetCurrency gets a reference to the given CurrencyType and assigns it to the Currency field.
+func (o *SearchModelsResponse) SetCurrency(v CurrencyType) {
+ o.Currency = &v
+}
+
+// GetRegionId returns the RegionId field value if set, zero value otherwise.
+func (o *SearchModelsResponse) GetRegionId() int64 {
+ if o == nil || IsNil(o.RegionId) {
+ var ret int64
+ return ret
+ }
+ return *o.RegionId
+}
+
+// GetRegionIdOk returns a tuple with the RegionId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SearchModelsResponse) GetRegionIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.RegionId) {
+ return nil, false
+ }
+ return o.RegionId, true
+}
+
+// HasRegionId returns a boolean if a field has been set.
+func (o *SearchModelsResponse) HasRegionId() bool {
+ if o != nil && !IsNil(o.RegionId) {
+ return true
+ }
+
+ return false
+}
+
+// SetRegionId gets a reference to the given int64 and assigns it to the RegionId field.
+func (o *SearchModelsResponse) SetRegionId(v int64) {
+ o.RegionId = &v
+}
+
+// GetPager returns the Pager field value if set, zero value otherwise.
+func (o *SearchModelsResponse) GetPager() FlippingPagerDTO {
+ if o == nil || IsNil(o.Pager) {
+ var ret FlippingPagerDTO
+ return ret
+ }
+ return *o.Pager
+}
+
+// GetPagerOk returns a tuple with the Pager field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SearchModelsResponse) GetPagerOk() (*FlippingPagerDTO, bool) {
+ if o == nil || IsNil(o.Pager) {
+ return nil, false
+ }
+ return o.Pager, true
+}
+
+// HasPager returns a boolean if a field has been set.
+func (o *SearchModelsResponse) HasPager() bool {
+ if o != nil && !IsNil(o.Pager) {
+ return true
+ }
+
+ return false
+}
+
+// SetPager gets a reference to the given FlippingPagerDTO and assigns it to the Pager field.
+func (o *SearchModelsResponse) SetPager(v FlippingPagerDTO) {
+ o.Pager = &v
+}
+
+func (o SearchModelsResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SearchModelsResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["models"] = o.Models
+ if !IsNil(o.Currency) {
+ toSerialize["currency"] = o.Currency
+ }
+ if !IsNil(o.RegionId) {
+ toSerialize["regionId"] = o.RegionId
+ }
+ if !IsNil(o.Pager) {
+ toSerialize["pager"] = o.Pager
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SearchModelsResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "models",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSearchModelsResponse := _SearchModelsResponse{}
+
+ err = json.Unmarshal(data, &varSearchModelsResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SearchModelsResponse(varSearchModelsResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "models")
+ delete(additionalProperties, "currency")
+ delete(additionalProperties, "regionId")
+ delete(additionalProperties, "pager")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSearchModelsResponse struct {
+ value *SearchModelsResponse
+ isSet bool
+}
+
+func (v NullableSearchModelsResponse) Get() *SearchModelsResponse {
+ return v.value
+}
+
+func (v *NullableSearchModelsResponse) Set(val *SearchModelsResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSearchModelsResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSearchModelsResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSearchModelsResponse(val *SearchModelsResponse) *NullableSearchModelsResponse {
+ return &NullableSearchModelsResponse{value: val, isSet: true}
+}
+
+func (v NullableSearchModelsResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSearchModelsResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_search_shipments_request.go b/pkg/api/yandex/ymclient/model_search_shipments_request.go
new file mode 100644
index 0000000..734bdcf
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_search_shipments_request.go
@@ -0,0 +1,317 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SearchShipmentsRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SearchShipmentsRequest{}
+
+// SearchShipmentsRequest Запрос информации об отгрузках.
+type SearchShipmentsRequest struct {
+ // Начальная дата для фильтрации по дате отгрузки (включительно). Формат даты: `ДД-ММ-ГГГГ`.
+ DateFrom string `json:"dateFrom"`
+ // Конечная дата для фильтрации по дате отгрузки (включительно). Формат даты: `ДД-ММ-ГГГГ`.
+ DateTo string `json:"dateTo"`
+ // Список статусов отгрузок.
+ Statuses []ShipmentStatusType `json:"statuses,omitempty"`
+ // Список идентификаторов заказов из отгрузок.
+ OrderIds []int64 `json:"orderIds,omitempty"`
+ // Возвращать ли отмененные заказы. Значение по умолчанию: `true`. Если возвращать отмененные заказы не нужно, передайте значение `false`.
+ CancelledOrders *bool `json:"cancelledOrders,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SearchShipmentsRequest SearchShipmentsRequest
+
+// NewSearchShipmentsRequest instantiates a new SearchShipmentsRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSearchShipmentsRequest(dateFrom string, dateTo string) *SearchShipmentsRequest {
+ this := SearchShipmentsRequest{}
+ this.DateFrom = dateFrom
+ this.DateTo = dateTo
+ var cancelledOrders bool = true
+ this.CancelledOrders = &cancelledOrders
+ return &this
+}
+
+// NewSearchShipmentsRequestWithDefaults instantiates a new SearchShipmentsRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSearchShipmentsRequestWithDefaults() *SearchShipmentsRequest {
+ this := SearchShipmentsRequest{}
+ var cancelledOrders bool = true
+ this.CancelledOrders = &cancelledOrders
+ return &this
+}
+
+// GetDateFrom returns the DateFrom field value
+func (o *SearchShipmentsRequest) GetDateFrom() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.DateFrom
+}
+
+// GetDateFromOk returns a tuple with the DateFrom field value
+// and a boolean to check if the value has been set.
+func (o *SearchShipmentsRequest) GetDateFromOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DateFrom, true
+}
+
+// SetDateFrom sets field value
+func (o *SearchShipmentsRequest) SetDateFrom(v string) {
+ o.DateFrom = v
+}
+
+// GetDateTo returns the DateTo field value
+func (o *SearchShipmentsRequest) GetDateTo() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.DateTo
+}
+
+// GetDateToOk returns a tuple with the DateTo field value
+// and a boolean to check if the value has been set.
+func (o *SearchShipmentsRequest) GetDateToOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DateTo, true
+}
+
+// SetDateTo sets field value
+func (o *SearchShipmentsRequest) SetDateTo(v string) {
+ o.DateTo = v
+}
+
+// GetStatuses returns the Statuses field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *SearchShipmentsRequest) GetStatuses() []ShipmentStatusType {
+ if o == nil {
+ var ret []ShipmentStatusType
+ return ret
+ }
+ return o.Statuses
+}
+
+// GetStatusesOk returns a tuple with the Statuses field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *SearchShipmentsRequest) GetStatusesOk() ([]ShipmentStatusType, bool) {
+ if o == nil || IsNil(o.Statuses) {
+ return nil, false
+ }
+ return o.Statuses, true
+}
+
+// HasStatuses returns a boolean if a field has been set.
+func (o *SearchShipmentsRequest) HasStatuses() bool {
+ if o != nil && !IsNil(o.Statuses) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatuses gets a reference to the given []ShipmentStatusType and assigns it to the Statuses field.
+func (o *SearchShipmentsRequest) SetStatuses(v []ShipmentStatusType) {
+ o.Statuses = v
+}
+
+// GetOrderIds returns the OrderIds field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *SearchShipmentsRequest) GetOrderIds() []int64 {
+ if o == nil {
+ var ret []int64
+ return ret
+ }
+ return o.OrderIds
+}
+
+// GetOrderIdsOk returns a tuple with the OrderIds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *SearchShipmentsRequest) GetOrderIdsOk() ([]int64, bool) {
+ if o == nil || IsNil(o.OrderIds) {
+ return nil, false
+ }
+ return o.OrderIds, true
+}
+
+// HasOrderIds returns a boolean if a field has been set.
+func (o *SearchShipmentsRequest) HasOrderIds() bool {
+ if o != nil && !IsNil(o.OrderIds) {
+ return true
+ }
+
+ return false
+}
+
+// SetOrderIds gets a reference to the given []int64 and assigns it to the OrderIds field.
+func (o *SearchShipmentsRequest) SetOrderIds(v []int64) {
+ o.OrderIds = v
+}
+
+// GetCancelledOrders returns the CancelledOrders field value if set, zero value otherwise.
+func (o *SearchShipmentsRequest) GetCancelledOrders() bool {
+ if o == nil || IsNil(o.CancelledOrders) {
+ var ret bool
+ return ret
+ }
+ return *o.CancelledOrders
+}
+
+// GetCancelledOrdersOk returns a tuple with the CancelledOrders field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SearchShipmentsRequest) GetCancelledOrdersOk() (*bool, bool) {
+ if o == nil || IsNil(o.CancelledOrders) {
+ return nil, false
+ }
+ return o.CancelledOrders, true
+}
+
+// HasCancelledOrders returns a boolean if a field has been set.
+func (o *SearchShipmentsRequest) HasCancelledOrders() bool {
+ if o != nil && !IsNil(o.CancelledOrders) {
+ return true
+ }
+
+ return false
+}
+
+// SetCancelledOrders gets a reference to the given bool and assigns it to the CancelledOrders field.
+func (o *SearchShipmentsRequest) SetCancelledOrders(v bool) {
+ o.CancelledOrders = &v
+}
+
+func (o SearchShipmentsRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SearchShipmentsRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["dateFrom"] = o.DateFrom
+ toSerialize["dateTo"] = o.DateTo
+ if o.Statuses != nil {
+ toSerialize["statuses"] = o.Statuses
+ }
+ if o.OrderIds != nil {
+ toSerialize["orderIds"] = o.OrderIds
+ }
+ if !IsNil(o.CancelledOrders) {
+ toSerialize["cancelledOrders"] = o.CancelledOrders
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SearchShipmentsRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "dateFrom",
+ "dateTo",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSearchShipmentsRequest := _SearchShipmentsRequest{}
+
+ err = json.Unmarshal(data, &varSearchShipmentsRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SearchShipmentsRequest(varSearchShipmentsRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "dateFrom")
+ delete(additionalProperties, "dateTo")
+ delete(additionalProperties, "statuses")
+ delete(additionalProperties, "orderIds")
+ delete(additionalProperties, "cancelledOrders")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSearchShipmentsRequest struct {
+ value *SearchShipmentsRequest
+ isSet bool
+}
+
+func (v NullableSearchShipmentsRequest) Get() *SearchShipmentsRequest {
+ return v.value
+}
+
+func (v *NullableSearchShipmentsRequest) Set(val *SearchShipmentsRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSearchShipmentsRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSearchShipmentsRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSearchShipmentsRequest(val *SearchShipmentsRequest) *NullableSearchShipmentsRequest {
+ return &NullableSearchShipmentsRequest{value: val, isSet: true}
+}
+
+func (v NullableSearchShipmentsRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSearchShipmentsRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_search_shipments_response.go b/pkg/api/yandex/ymclient/model_search_shipments_response.go
new file mode 100644
index 0000000..724a7e5
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_search_shipments_response.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the SearchShipmentsResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SearchShipmentsResponse{}
+
+// SearchShipmentsResponse Ответ на запрос информации об отгрузках.
+type SearchShipmentsResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ Result *SearchShipmentsResponseDTO `json:"result,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SearchShipmentsResponse SearchShipmentsResponse
+
+// NewSearchShipmentsResponse instantiates a new SearchShipmentsResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSearchShipmentsResponse() *SearchShipmentsResponse {
+ this := SearchShipmentsResponse{}
+ return &this
+}
+
+// NewSearchShipmentsResponseWithDefaults instantiates a new SearchShipmentsResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSearchShipmentsResponseWithDefaults() *SearchShipmentsResponse {
+ this := SearchShipmentsResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *SearchShipmentsResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SearchShipmentsResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *SearchShipmentsResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *SearchShipmentsResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *SearchShipmentsResponse) GetResult() SearchShipmentsResponseDTO {
+ if o == nil || IsNil(o.Result) {
+ var ret SearchShipmentsResponseDTO
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SearchShipmentsResponse) GetResultOk() (*SearchShipmentsResponseDTO, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *SearchShipmentsResponse) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given SearchShipmentsResponseDTO and assigns it to the Result field.
+func (o *SearchShipmentsResponse) SetResult(v SearchShipmentsResponseDTO) {
+ o.Result = &v
+}
+
+func (o SearchShipmentsResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SearchShipmentsResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SearchShipmentsResponse) UnmarshalJSON(data []byte) (err error) {
+ varSearchShipmentsResponse := _SearchShipmentsResponse{}
+
+ err = json.Unmarshal(data, &varSearchShipmentsResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SearchShipmentsResponse(varSearchShipmentsResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "result")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSearchShipmentsResponse struct {
+ value *SearchShipmentsResponse
+ isSet bool
+}
+
+func (v NullableSearchShipmentsResponse) Get() *SearchShipmentsResponse {
+ return v.value
+}
+
+func (v *NullableSearchShipmentsResponse) Set(val *SearchShipmentsResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSearchShipmentsResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSearchShipmentsResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSearchShipmentsResponse(val *SearchShipmentsResponse) *NullableSearchShipmentsResponse {
+ return &NullableSearchShipmentsResponse{value: val, isSet: true}
+}
+
+func (v NullableSearchShipmentsResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSearchShipmentsResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_search_shipments_response_dto.go b/pkg/api/yandex/ymclient/model_search_shipments_response_dto.go
new file mode 100644
index 0000000..0db15cb
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_search_shipments_response_dto.go
@@ -0,0 +1,204 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SearchShipmentsResponseDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SearchShipmentsResponseDTO{}
+
+// SearchShipmentsResponseDTO Информация об отгрузках.
+type SearchShipmentsResponseDTO struct {
+ // Список с информацией об отгрузках.
+ Shipments []ShipmentInfoDTO `json:"shipments"`
+ Paging *ForwardScrollingPagerDTO `json:"paging,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SearchShipmentsResponseDTO SearchShipmentsResponseDTO
+
+// NewSearchShipmentsResponseDTO instantiates a new SearchShipmentsResponseDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSearchShipmentsResponseDTO(shipments []ShipmentInfoDTO) *SearchShipmentsResponseDTO {
+ this := SearchShipmentsResponseDTO{}
+ this.Shipments = shipments
+ return &this
+}
+
+// NewSearchShipmentsResponseDTOWithDefaults instantiates a new SearchShipmentsResponseDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSearchShipmentsResponseDTOWithDefaults() *SearchShipmentsResponseDTO {
+ this := SearchShipmentsResponseDTO{}
+ return &this
+}
+
+// GetShipments returns the Shipments field value
+func (o *SearchShipmentsResponseDTO) GetShipments() []ShipmentInfoDTO {
+ if o == nil {
+ var ret []ShipmentInfoDTO
+ return ret
+ }
+
+ return o.Shipments
+}
+
+// GetShipmentsOk returns a tuple with the Shipments field value
+// and a boolean to check if the value has been set.
+func (o *SearchShipmentsResponseDTO) GetShipmentsOk() ([]ShipmentInfoDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Shipments, true
+}
+
+// SetShipments sets field value
+func (o *SearchShipmentsResponseDTO) SetShipments(v []ShipmentInfoDTO) {
+ o.Shipments = v
+}
+
+// GetPaging returns the Paging field value if set, zero value otherwise.
+func (o *SearchShipmentsResponseDTO) GetPaging() ForwardScrollingPagerDTO {
+ if o == nil || IsNil(o.Paging) {
+ var ret ForwardScrollingPagerDTO
+ return ret
+ }
+ return *o.Paging
+}
+
+// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SearchShipmentsResponseDTO) GetPagingOk() (*ForwardScrollingPagerDTO, bool) {
+ if o == nil || IsNil(o.Paging) {
+ return nil, false
+ }
+ return o.Paging, true
+}
+
+// HasPaging returns a boolean if a field has been set.
+func (o *SearchShipmentsResponseDTO) HasPaging() bool {
+ if o != nil && !IsNil(o.Paging) {
+ return true
+ }
+
+ return false
+}
+
+// SetPaging gets a reference to the given ForwardScrollingPagerDTO and assigns it to the Paging field.
+func (o *SearchShipmentsResponseDTO) SetPaging(v ForwardScrollingPagerDTO) {
+ o.Paging = &v
+}
+
+func (o SearchShipmentsResponseDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SearchShipmentsResponseDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["shipments"] = o.Shipments
+ if !IsNil(o.Paging) {
+ toSerialize["paging"] = o.Paging
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SearchShipmentsResponseDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "shipments",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSearchShipmentsResponseDTO := _SearchShipmentsResponseDTO{}
+
+ err = json.Unmarshal(data, &varSearchShipmentsResponseDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SearchShipmentsResponseDTO(varSearchShipmentsResponseDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "shipments")
+ delete(additionalProperties, "paging")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSearchShipmentsResponseDTO struct {
+ value *SearchShipmentsResponseDTO
+ isSet bool
+}
+
+func (v NullableSearchShipmentsResponseDTO) Get() *SearchShipmentsResponseDTO {
+ return v.value
+}
+
+func (v *NullableSearchShipmentsResponseDTO) Set(val *SearchShipmentsResponseDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSearchShipmentsResponseDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSearchShipmentsResponseDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSearchShipmentsResponseDTO(val *SearchShipmentsResponseDTO) *NullableSearchShipmentsResponseDTO {
+ return &NullableSearchShipmentsResponseDTO{value: val, isSet: true}
+}
+
+func (v NullableSearchShipmentsResponseDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSearchShipmentsResponseDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_selling_program_type.go b/pkg/api/yandex/ymclient/model_selling_program_type.go
new file mode 100644
index 0000000..587ac47
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_selling_program_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// SellingProgramType Модель размещения: * `FBY` — FBY. * `FBS` — FBS. * `DBS` — DBS. * `EXPRESS` — Экспресс.
+type SellingProgramType string
+
+// List of SellingProgramType
+const (
+ SELLINGPROGRAMTYPE_FBY SellingProgramType = "FBY"
+ SELLINGPROGRAMTYPE_FBS SellingProgramType = "FBS"
+ SELLINGPROGRAMTYPE_DBS SellingProgramType = "DBS"
+ SELLINGPROGRAMTYPE_EXPRESS SellingProgramType = "EXPRESS"
+)
+
+// All allowed values of SellingProgramType enum
+var AllowedSellingProgramTypeEnumValues = []SellingProgramType{
+ "FBY",
+ "FBS",
+ "DBS",
+ "EXPRESS",
+}
+
+func (v *SellingProgramType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SellingProgramType(value)
+ for _, existing := range AllowedSellingProgramTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid SellingProgramType", value)
+}
+
+// NewSellingProgramTypeFromValue returns a pointer to a valid SellingProgramType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSellingProgramTypeFromValue(v string) (*SellingProgramType, error) {
+ ev := SellingProgramType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SellingProgramType: valid values are %v", v, AllowedSellingProgramTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SellingProgramType) IsValid() bool {
+ for _, existing := range AllowedSellingProgramTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to SellingProgramType value
+func (v SellingProgramType) Ptr() *SellingProgramType {
+ return &v
+}
+
+type NullableSellingProgramType struct {
+ value *SellingProgramType
+ isSet bool
+}
+
+func (v NullableSellingProgramType) Get() *SellingProgramType {
+ return v.value
+}
+
+func (v *NullableSellingProgramType) Set(val *SellingProgramType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSellingProgramType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSellingProgramType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSellingProgramType(val *SellingProgramType) *NullableSellingProgramType {
+ return &NullableSellingProgramType{value: val, isSet: true}
+}
+
+func (v NullableSellingProgramType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSellingProgramType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_send_message_to_chat_request.go b/pkg/api/yandex/ymclient/model_send_message_to_chat_request.go
new file mode 100644
index 0000000..e017afd
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_send_message_to_chat_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SendMessageToChatRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SendMessageToChatRequest{}
+
+// SendMessageToChatRequest В какой чат нужно отправить сообщение и текст сообщения.
+type SendMessageToChatRequest struct {
+ // Текст сообщения.
+ Message string `json:"message"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SendMessageToChatRequest SendMessageToChatRequest
+
+// NewSendMessageToChatRequest instantiates a new SendMessageToChatRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSendMessageToChatRequest(message string) *SendMessageToChatRequest {
+ this := SendMessageToChatRequest{}
+ this.Message = message
+ return &this
+}
+
+// NewSendMessageToChatRequestWithDefaults instantiates a new SendMessageToChatRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSendMessageToChatRequestWithDefaults() *SendMessageToChatRequest {
+ this := SendMessageToChatRequest{}
+ return &this
+}
+
+// GetMessage returns the Message field value
+func (o *SendMessageToChatRequest) GetMessage() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value
+// and a boolean to check if the value has been set.
+func (o *SendMessageToChatRequest) GetMessageOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Message, true
+}
+
+// SetMessage sets field value
+func (o *SendMessageToChatRequest) SetMessage(v string) {
+ o.Message = v
+}
+
+func (o SendMessageToChatRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SendMessageToChatRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["message"] = o.Message
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SendMessageToChatRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "message",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSendMessageToChatRequest := _SendMessageToChatRequest{}
+
+ err = json.Unmarshal(data, &varSendMessageToChatRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SendMessageToChatRequest(varSendMessageToChatRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "message")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSendMessageToChatRequest struct {
+ value *SendMessageToChatRequest
+ isSet bool
+}
+
+func (v NullableSendMessageToChatRequest) Get() *SendMessageToChatRequest {
+ return v.value
+}
+
+func (v *NullableSendMessageToChatRequest) Set(val *SendMessageToChatRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSendMessageToChatRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSendMessageToChatRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSendMessageToChatRequest(val *SendMessageToChatRequest) *NullableSendMessageToChatRequest {
+ return &NullableSendMessageToChatRequest{value: val, isSet: true}
+}
+
+func (v NullableSendMessageToChatRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSendMessageToChatRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_set_order_box_layout_request.go b/pkg/api/yandex/ymclient/model_set_order_box_layout_request.go
new file mode 100644
index 0000000..b646cb7
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_set_order_box_layout_request.go
@@ -0,0 +1,209 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SetOrderBoxLayoutRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SetOrderBoxLayoutRequest{}
+
+// SetOrderBoxLayoutRequest struct for SetOrderBoxLayoutRequest
+type SetOrderBoxLayoutRequest struct {
+ // Список коробок.
+ Boxes []OrderBoxLayoutDTO `json:"boxes"`
+ // Передайте `true`, если вы собираетесь удалить часть товаров из заказа.
+ AllowRemove *bool `json:"allowRemove,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SetOrderBoxLayoutRequest SetOrderBoxLayoutRequest
+
+// NewSetOrderBoxLayoutRequest instantiates a new SetOrderBoxLayoutRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSetOrderBoxLayoutRequest(boxes []OrderBoxLayoutDTO) *SetOrderBoxLayoutRequest {
+ this := SetOrderBoxLayoutRequest{}
+ this.Boxes = boxes
+ var allowRemove bool = false
+ this.AllowRemove = &allowRemove
+ return &this
+}
+
+// NewSetOrderBoxLayoutRequestWithDefaults instantiates a new SetOrderBoxLayoutRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSetOrderBoxLayoutRequestWithDefaults() *SetOrderBoxLayoutRequest {
+ this := SetOrderBoxLayoutRequest{}
+ var allowRemove bool = false
+ this.AllowRemove = &allowRemove
+ return &this
+}
+
+// GetBoxes returns the Boxes field value
+func (o *SetOrderBoxLayoutRequest) GetBoxes() []OrderBoxLayoutDTO {
+ if o == nil {
+ var ret []OrderBoxLayoutDTO
+ return ret
+ }
+
+ return o.Boxes
+}
+
+// GetBoxesOk returns a tuple with the Boxes field value
+// and a boolean to check if the value has been set.
+func (o *SetOrderBoxLayoutRequest) GetBoxesOk() ([]OrderBoxLayoutDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Boxes, true
+}
+
+// SetBoxes sets field value
+func (o *SetOrderBoxLayoutRequest) SetBoxes(v []OrderBoxLayoutDTO) {
+ o.Boxes = v
+}
+
+// GetAllowRemove returns the AllowRemove field value if set, zero value otherwise.
+func (o *SetOrderBoxLayoutRequest) GetAllowRemove() bool {
+ if o == nil || IsNil(o.AllowRemove) {
+ var ret bool
+ return ret
+ }
+ return *o.AllowRemove
+}
+
+// GetAllowRemoveOk returns a tuple with the AllowRemove field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SetOrderBoxLayoutRequest) GetAllowRemoveOk() (*bool, bool) {
+ if o == nil || IsNil(o.AllowRemove) {
+ return nil, false
+ }
+ return o.AllowRemove, true
+}
+
+// HasAllowRemove returns a boolean if a field has been set.
+func (o *SetOrderBoxLayoutRequest) HasAllowRemove() bool {
+ if o != nil && !IsNil(o.AllowRemove) {
+ return true
+ }
+
+ return false
+}
+
+// SetAllowRemove gets a reference to the given bool and assigns it to the AllowRemove field.
+func (o *SetOrderBoxLayoutRequest) SetAllowRemove(v bool) {
+ o.AllowRemove = &v
+}
+
+func (o SetOrderBoxLayoutRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SetOrderBoxLayoutRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["boxes"] = o.Boxes
+ if !IsNil(o.AllowRemove) {
+ toSerialize["allowRemove"] = o.AllowRemove
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SetOrderBoxLayoutRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "boxes",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSetOrderBoxLayoutRequest := _SetOrderBoxLayoutRequest{}
+
+ err = json.Unmarshal(data, &varSetOrderBoxLayoutRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SetOrderBoxLayoutRequest(varSetOrderBoxLayoutRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "boxes")
+ delete(additionalProperties, "allowRemove")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSetOrderBoxLayoutRequest struct {
+ value *SetOrderBoxLayoutRequest
+ isSet bool
+}
+
+func (v NullableSetOrderBoxLayoutRequest) Get() *SetOrderBoxLayoutRequest {
+ return v.value
+}
+
+func (v *NullableSetOrderBoxLayoutRequest) Set(val *SetOrderBoxLayoutRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSetOrderBoxLayoutRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSetOrderBoxLayoutRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSetOrderBoxLayoutRequest(val *SetOrderBoxLayoutRequest) *NullableSetOrderBoxLayoutRequest {
+ return &NullableSetOrderBoxLayoutRequest{value: val, isSet: true}
+}
+
+func (v NullableSetOrderBoxLayoutRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSetOrderBoxLayoutRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_set_order_box_layout_response.go b/pkg/api/yandex/ymclient/model_set_order_box_layout_response.go
new file mode 100644
index 0000000..609a535
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_set_order_box_layout_response.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the SetOrderBoxLayoutResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SetOrderBoxLayoutResponse{}
+
+// SetOrderBoxLayoutResponse struct for SetOrderBoxLayoutResponse
+type SetOrderBoxLayoutResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ Result *OrderBoxesLayoutDTO `json:"result,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SetOrderBoxLayoutResponse SetOrderBoxLayoutResponse
+
+// NewSetOrderBoxLayoutResponse instantiates a new SetOrderBoxLayoutResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSetOrderBoxLayoutResponse() *SetOrderBoxLayoutResponse {
+ this := SetOrderBoxLayoutResponse{}
+ return &this
+}
+
+// NewSetOrderBoxLayoutResponseWithDefaults instantiates a new SetOrderBoxLayoutResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSetOrderBoxLayoutResponseWithDefaults() *SetOrderBoxLayoutResponse {
+ this := SetOrderBoxLayoutResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *SetOrderBoxLayoutResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SetOrderBoxLayoutResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *SetOrderBoxLayoutResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *SetOrderBoxLayoutResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *SetOrderBoxLayoutResponse) GetResult() OrderBoxesLayoutDTO {
+ if o == nil || IsNil(o.Result) {
+ var ret OrderBoxesLayoutDTO
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SetOrderBoxLayoutResponse) GetResultOk() (*OrderBoxesLayoutDTO, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *SetOrderBoxLayoutResponse) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given OrderBoxesLayoutDTO and assigns it to the Result field.
+func (o *SetOrderBoxLayoutResponse) SetResult(v OrderBoxesLayoutDTO) {
+ o.Result = &v
+}
+
+func (o SetOrderBoxLayoutResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SetOrderBoxLayoutResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SetOrderBoxLayoutResponse) UnmarshalJSON(data []byte) (err error) {
+ varSetOrderBoxLayoutResponse := _SetOrderBoxLayoutResponse{}
+
+ err = json.Unmarshal(data, &varSetOrderBoxLayoutResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SetOrderBoxLayoutResponse(varSetOrderBoxLayoutResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "result")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSetOrderBoxLayoutResponse struct {
+ value *SetOrderBoxLayoutResponse
+ isSet bool
+}
+
+func (v NullableSetOrderBoxLayoutResponse) Get() *SetOrderBoxLayoutResponse {
+ return v.value
+}
+
+func (v *NullableSetOrderBoxLayoutResponse) Set(val *SetOrderBoxLayoutResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSetOrderBoxLayoutResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSetOrderBoxLayoutResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSetOrderBoxLayoutResponse(val *SetOrderBoxLayoutResponse) *NullableSetOrderBoxLayoutResponse {
+ return &NullableSetOrderBoxLayoutResponse{value: val, isSet: true}
+}
+
+func (v NullableSetOrderBoxLayoutResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSetOrderBoxLayoutResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_set_order_delivery_date_request.go b/pkg/api/yandex/ymclient/model_set_order_delivery_date_request.go
new file mode 100644
index 0000000..f2c85a5
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_set_order_delivery_date_request.go
@@ -0,0 +1,195 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SetOrderDeliveryDateRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SetOrderDeliveryDateRequest{}
+
+// SetOrderDeliveryDateRequest struct for SetOrderDeliveryDateRequest
+type SetOrderDeliveryDateRequest struct {
+ Dates OrderDeliveryDateDTO `json:"dates"`
+ Reason OrderDeliveryDateReasonType `json:"reason"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SetOrderDeliveryDateRequest SetOrderDeliveryDateRequest
+
+// NewSetOrderDeliveryDateRequest instantiates a new SetOrderDeliveryDateRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSetOrderDeliveryDateRequest(dates OrderDeliveryDateDTO, reason OrderDeliveryDateReasonType) *SetOrderDeliveryDateRequest {
+ this := SetOrderDeliveryDateRequest{}
+ this.Dates = dates
+ this.Reason = reason
+ return &this
+}
+
+// NewSetOrderDeliveryDateRequestWithDefaults instantiates a new SetOrderDeliveryDateRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSetOrderDeliveryDateRequestWithDefaults() *SetOrderDeliveryDateRequest {
+ this := SetOrderDeliveryDateRequest{}
+ return &this
+}
+
+// GetDates returns the Dates field value
+func (o *SetOrderDeliveryDateRequest) GetDates() OrderDeliveryDateDTO {
+ if o == nil {
+ var ret OrderDeliveryDateDTO
+ return ret
+ }
+
+ return o.Dates
+}
+
+// GetDatesOk returns a tuple with the Dates field value
+// and a boolean to check if the value has been set.
+func (o *SetOrderDeliveryDateRequest) GetDatesOk() (*OrderDeliveryDateDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Dates, true
+}
+
+// SetDates sets field value
+func (o *SetOrderDeliveryDateRequest) SetDates(v OrderDeliveryDateDTO) {
+ o.Dates = v
+}
+
+// GetReason returns the Reason field value
+func (o *SetOrderDeliveryDateRequest) GetReason() OrderDeliveryDateReasonType {
+ if o == nil {
+ var ret OrderDeliveryDateReasonType
+ return ret
+ }
+
+ return o.Reason
+}
+
+// GetReasonOk returns a tuple with the Reason field value
+// and a boolean to check if the value has been set.
+func (o *SetOrderDeliveryDateRequest) GetReasonOk() (*OrderDeliveryDateReasonType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Reason, true
+}
+
+// SetReason sets field value
+func (o *SetOrderDeliveryDateRequest) SetReason(v OrderDeliveryDateReasonType) {
+ o.Reason = v
+}
+
+func (o SetOrderDeliveryDateRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SetOrderDeliveryDateRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["dates"] = o.Dates
+ toSerialize["reason"] = o.Reason
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SetOrderDeliveryDateRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "dates",
+ "reason",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSetOrderDeliveryDateRequest := _SetOrderDeliveryDateRequest{}
+
+ err = json.Unmarshal(data, &varSetOrderDeliveryDateRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SetOrderDeliveryDateRequest(varSetOrderDeliveryDateRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "dates")
+ delete(additionalProperties, "reason")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSetOrderDeliveryDateRequest struct {
+ value *SetOrderDeliveryDateRequest
+ isSet bool
+}
+
+func (v NullableSetOrderDeliveryDateRequest) Get() *SetOrderDeliveryDateRequest {
+ return v.value
+}
+
+func (v *NullableSetOrderDeliveryDateRequest) Set(val *SetOrderDeliveryDateRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSetOrderDeliveryDateRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSetOrderDeliveryDateRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSetOrderDeliveryDateRequest(val *SetOrderDeliveryDateRequest) *NullableSetOrderDeliveryDateRequest {
+ return &NullableSetOrderDeliveryDateRequest{value: val, isSet: true}
+}
+
+func (v NullableSetOrderDeliveryDateRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSetOrderDeliveryDateRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_set_order_delivery_track_code_request.go b/pkg/api/yandex/ymclient/model_set_order_delivery_track_code_request.go
new file mode 100644
index 0000000..8c0f965
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_set_order_delivery_track_code_request.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SetOrderDeliveryTrackCodeRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SetOrderDeliveryTrackCodeRequest{}
+
+// SetOrderDeliveryTrackCodeRequest struct for SetOrderDeliveryTrackCodeRequest
+type SetOrderDeliveryTrackCodeRequest struct {
+ // Трек‑номер посылки.
+ TrackCode string `json:"trackCode"`
+ // Идентификатор службы доставки. Информацию о службе доставки можно получить с помощью запроса [GET delivery/services](../../reference/orders/getDeliveryServices.md).
+ DeliveryServiceId int64 `json:"deliveryServiceId"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SetOrderDeliveryTrackCodeRequest SetOrderDeliveryTrackCodeRequest
+
+// NewSetOrderDeliveryTrackCodeRequest instantiates a new SetOrderDeliveryTrackCodeRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSetOrderDeliveryTrackCodeRequest(trackCode string, deliveryServiceId int64) *SetOrderDeliveryTrackCodeRequest {
+ this := SetOrderDeliveryTrackCodeRequest{}
+ this.TrackCode = trackCode
+ this.DeliveryServiceId = deliveryServiceId
+ return &this
+}
+
+// NewSetOrderDeliveryTrackCodeRequestWithDefaults instantiates a new SetOrderDeliveryTrackCodeRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSetOrderDeliveryTrackCodeRequestWithDefaults() *SetOrderDeliveryTrackCodeRequest {
+ this := SetOrderDeliveryTrackCodeRequest{}
+ return &this
+}
+
+// GetTrackCode returns the TrackCode field value
+func (o *SetOrderDeliveryTrackCodeRequest) GetTrackCode() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.TrackCode
+}
+
+// GetTrackCodeOk returns a tuple with the TrackCode field value
+// and a boolean to check if the value has been set.
+func (o *SetOrderDeliveryTrackCodeRequest) GetTrackCodeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TrackCode, true
+}
+
+// SetTrackCode sets field value
+func (o *SetOrderDeliveryTrackCodeRequest) SetTrackCode(v string) {
+ o.TrackCode = v
+}
+
+// GetDeliveryServiceId returns the DeliveryServiceId field value
+func (o *SetOrderDeliveryTrackCodeRequest) GetDeliveryServiceId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.DeliveryServiceId
+}
+
+// GetDeliveryServiceIdOk returns a tuple with the DeliveryServiceId field value
+// and a boolean to check if the value has been set.
+func (o *SetOrderDeliveryTrackCodeRequest) GetDeliveryServiceIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DeliveryServiceId, true
+}
+
+// SetDeliveryServiceId sets field value
+func (o *SetOrderDeliveryTrackCodeRequest) SetDeliveryServiceId(v int64) {
+ o.DeliveryServiceId = v
+}
+
+func (o SetOrderDeliveryTrackCodeRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SetOrderDeliveryTrackCodeRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["trackCode"] = o.TrackCode
+ toSerialize["deliveryServiceId"] = o.DeliveryServiceId
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SetOrderDeliveryTrackCodeRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "trackCode",
+ "deliveryServiceId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSetOrderDeliveryTrackCodeRequest := _SetOrderDeliveryTrackCodeRequest{}
+
+ err = json.Unmarshal(data, &varSetOrderDeliveryTrackCodeRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SetOrderDeliveryTrackCodeRequest(varSetOrderDeliveryTrackCodeRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "trackCode")
+ delete(additionalProperties, "deliveryServiceId")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSetOrderDeliveryTrackCodeRequest struct {
+ value *SetOrderDeliveryTrackCodeRequest
+ isSet bool
+}
+
+func (v NullableSetOrderDeliveryTrackCodeRequest) Get() *SetOrderDeliveryTrackCodeRequest {
+ return v.value
+}
+
+func (v *NullableSetOrderDeliveryTrackCodeRequest) Set(val *SetOrderDeliveryTrackCodeRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSetOrderDeliveryTrackCodeRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSetOrderDeliveryTrackCodeRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSetOrderDeliveryTrackCodeRequest(val *SetOrderDeliveryTrackCodeRequest) *NullableSetOrderDeliveryTrackCodeRequest {
+ return &NullableSetOrderDeliveryTrackCodeRequest{value: val, isSet: true}
+}
+
+func (v NullableSetOrderDeliveryTrackCodeRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSetOrderDeliveryTrackCodeRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_set_order_shipment_boxes_request.go b/pkg/api/yandex/ymclient/model_set_order_shipment_boxes_request.go
new file mode 100644
index 0000000..ccc156b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_set_order_shipment_boxes_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SetOrderShipmentBoxesRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SetOrderShipmentBoxesRequest{}
+
+// SetOrderShipmentBoxesRequest struct for SetOrderShipmentBoxesRequest
+type SetOrderShipmentBoxesRequest struct {
+ // Список грузовых мест. По его длине Маркет определяет количество мест.
+ Boxes []ParcelBoxRequestDTO `json:"boxes"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SetOrderShipmentBoxesRequest SetOrderShipmentBoxesRequest
+
+// NewSetOrderShipmentBoxesRequest instantiates a new SetOrderShipmentBoxesRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSetOrderShipmentBoxesRequest(boxes []ParcelBoxRequestDTO) *SetOrderShipmentBoxesRequest {
+ this := SetOrderShipmentBoxesRequest{}
+ this.Boxes = boxes
+ return &this
+}
+
+// NewSetOrderShipmentBoxesRequestWithDefaults instantiates a new SetOrderShipmentBoxesRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSetOrderShipmentBoxesRequestWithDefaults() *SetOrderShipmentBoxesRequest {
+ this := SetOrderShipmentBoxesRequest{}
+ return &this
+}
+
+// GetBoxes returns the Boxes field value
+func (o *SetOrderShipmentBoxesRequest) GetBoxes() []ParcelBoxRequestDTO {
+ if o == nil {
+ var ret []ParcelBoxRequestDTO
+ return ret
+ }
+
+ return o.Boxes
+}
+
+// GetBoxesOk returns a tuple with the Boxes field value
+// and a boolean to check if the value has been set.
+func (o *SetOrderShipmentBoxesRequest) GetBoxesOk() ([]ParcelBoxRequestDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Boxes, true
+}
+
+// SetBoxes sets field value
+func (o *SetOrderShipmentBoxesRequest) SetBoxes(v []ParcelBoxRequestDTO) {
+ o.Boxes = v
+}
+
+func (o SetOrderShipmentBoxesRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SetOrderShipmentBoxesRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["boxes"] = o.Boxes
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SetOrderShipmentBoxesRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "boxes",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSetOrderShipmentBoxesRequest := _SetOrderShipmentBoxesRequest{}
+
+ err = json.Unmarshal(data, &varSetOrderShipmentBoxesRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SetOrderShipmentBoxesRequest(varSetOrderShipmentBoxesRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "boxes")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSetOrderShipmentBoxesRequest struct {
+ value *SetOrderShipmentBoxesRequest
+ isSet bool
+}
+
+func (v NullableSetOrderShipmentBoxesRequest) Get() *SetOrderShipmentBoxesRequest {
+ return v.value
+}
+
+func (v *NullableSetOrderShipmentBoxesRequest) Set(val *SetOrderShipmentBoxesRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSetOrderShipmentBoxesRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSetOrderShipmentBoxesRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSetOrderShipmentBoxesRequest(val *SetOrderShipmentBoxesRequest) *NullableSetOrderShipmentBoxesRequest {
+ return &NullableSetOrderShipmentBoxesRequest{value: val, isSet: true}
+}
+
+func (v NullableSetOrderShipmentBoxesRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSetOrderShipmentBoxesRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_set_order_shipment_boxes_response.go b/pkg/api/yandex/ymclient/model_set_order_shipment_boxes_response.go
new file mode 100644
index 0000000..2c2ff69
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_set_order_shipment_boxes_response.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the SetOrderShipmentBoxesResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SetOrderShipmentBoxesResponse{}
+
+// SetOrderShipmentBoxesResponse struct for SetOrderShipmentBoxesResponse
+type SetOrderShipmentBoxesResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ Result *ShipmentBoxesDTO `json:"result,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SetOrderShipmentBoxesResponse SetOrderShipmentBoxesResponse
+
+// NewSetOrderShipmentBoxesResponse instantiates a new SetOrderShipmentBoxesResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSetOrderShipmentBoxesResponse() *SetOrderShipmentBoxesResponse {
+ this := SetOrderShipmentBoxesResponse{}
+ return &this
+}
+
+// NewSetOrderShipmentBoxesResponseWithDefaults instantiates a new SetOrderShipmentBoxesResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSetOrderShipmentBoxesResponseWithDefaults() *SetOrderShipmentBoxesResponse {
+ this := SetOrderShipmentBoxesResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *SetOrderShipmentBoxesResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SetOrderShipmentBoxesResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *SetOrderShipmentBoxesResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *SetOrderShipmentBoxesResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *SetOrderShipmentBoxesResponse) GetResult() ShipmentBoxesDTO {
+ if o == nil || IsNil(o.Result) {
+ var ret ShipmentBoxesDTO
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SetOrderShipmentBoxesResponse) GetResultOk() (*ShipmentBoxesDTO, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *SetOrderShipmentBoxesResponse) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given ShipmentBoxesDTO and assigns it to the Result field.
+func (o *SetOrderShipmentBoxesResponse) SetResult(v ShipmentBoxesDTO) {
+ o.Result = &v
+}
+
+func (o SetOrderShipmentBoxesResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SetOrderShipmentBoxesResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SetOrderShipmentBoxesResponse) UnmarshalJSON(data []byte) (err error) {
+ varSetOrderShipmentBoxesResponse := _SetOrderShipmentBoxesResponse{}
+
+ err = json.Unmarshal(data, &varSetOrderShipmentBoxesResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SetOrderShipmentBoxesResponse(varSetOrderShipmentBoxesResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "result")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSetOrderShipmentBoxesResponse struct {
+ value *SetOrderShipmentBoxesResponse
+ isSet bool
+}
+
+func (v NullableSetOrderShipmentBoxesResponse) Get() *SetOrderShipmentBoxesResponse {
+ return v.value
+}
+
+func (v *NullableSetOrderShipmentBoxesResponse) Set(val *SetOrderShipmentBoxesResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSetOrderShipmentBoxesResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSetOrderShipmentBoxesResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSetOrderShipmentBoxesResponse(val *SetOrderShipmentBoxesResponse) *NullableSetOrderShipmentBoxesResponse {
+ return &NullableSetOrderShipmentBoxesResponse{value: val, isSet: true}
+}
+
+func (v NullableSetOrderShipmentBoxesResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSetOrderShipmentBoxesResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_set_return_decision_request.go b/pkg/api/yandex/ymclient/model_set_return_decision_request.go
new file mode 100644
index 0000000..b5813ad
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_set_return_decision_request.go
@@ -0,0 +1,234 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SetReturnDecisionRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SetReturnDecisionRequest{}
+
+// SetReturnDecisionRequest Решения по товару в возврате.
+type SetReturnDecisionRequest struct {
+ // Идентификатор товара в возврате.
+ ReturnItemId int64 `json:"returnItemId"`
+ DecisionType ReturnRequestDecisionType `json:"decisionType"`
+ // Комментарий к решению. Укажите: * для `REFUND_MONEY_INCLUDING_SHIPMENT`— стоимость обратной пересылки. * для `REPAIR` — когда вы устраните недостатки товара. * для `DECLINE_REFUND` — причину отказа. * для `OTHER_DECISION` — какое решение вы предлагаете.
+ Comment *string `json:"comment,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SetReturnDecisionRequest SetReturnDecisionRequest
+
+// NewSetReturnDecisionRequest instantiates a new SetReturnDecisionRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSetReturnDecisionRequest(returnItemId int64, decisionType ReturnRequestDecisionType) *SetReturnDecisionRequest {
+ this := SetReturnDecisionRequest{}
+ this.ReturnItemId = returnItemId
+ this.DecisionType = decisionType
+ return &this
+}
+
+// NewSetReturnDecisionRequestWithDefaults instantiates a new SetReturnDecisionRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSetReturnDecisionRequestWithDefaults() *SetReturnDecisionRequest {
+ this := SetReturnDecisionRequest{}
+ return &this
+}
+
+// GetReturnItemId returns the ReturnItemId field value
+func (o *SetReturnDecisionRequest) GetReturnItemId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.ReturnItemId
+}
+
+// GetReturnItemIdOk returns a tuple with the ReturnItemId field value
+// and a boolean to check if the value has been set.
+func (o *SetReturnDecisionRequest) GetReturnItemIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ReturnItemId, true
+}
+
+// SetReturnItemId sets field value
+func (o *SetReturnDecisionRequest) SetReturnItemId(v int64) {
+ o.ReturnItemId = v
+}
+
+// GetDecisionType returns the DecisionType field value
+func (o *SetReturnDecisionRequest) GetDecisionType() ReturnRequestDecisionType {
+ if o == nil {
+ var ret ReturnRequestDecisionType
+ return ret
+ }
+
+ return o.DecisionType
+}
+
+// GetDecisionTypeOk returns a tuple with the DecisionType field value
+// and a boolean to check if the value has been set.
+func (o *SetReturnDecisionRequest) GetDecisionTypeOk() (*ReturnRequestDecisionType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DecisionType, true
+}
+
+// SetDecisionType sets field value
+func (o *SetReturnDecisionRequest) SetDecisionType(v ReturnRequestDecisionType) {
+ o.DecisionType = v
+}
+
+// GetComment returns the Comment field value if set, zero value otherwise.
+func (o *SetReturnDecisionRequest) GetComment() string {
+ if o == nil || IsNil(o.Comment) {
+ var ret string
+ return ret
+ }
+ return *o.Comment
+}
+
+// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SetReturnDecisionRequest) GetCommentOk() (*string, bool) {
+ if o == nil || IsNil(o.Comment) {
+ return nil, false
+ }
+ return o.Comment, true
+}
+
+// HasComment returns a boolean if a field has been set.
+func (o *SetReturnDecisionRequest) HasComment() bool {
+ if o != nil && !IsNil(o.Comment) {
+ return true
+ }
+
+ return false
+}
+
+// SetComment gets a reference to the given string and assigns it to the Comment field.
+func (o *SetReturnDecisionRequest) SetComment(v string) {
+ o.Comment = &v
+}
+
+func (o SetReturnDecisionRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SetReturnDecisionRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["returnItemId"] = o.ReturnItemId
+ toSerialize["decisionType"] = o.DecisionType
+ if !IsNil(o.Comment) {
+ toSerialize["comment"] = o.Comment
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SetReturnDecisionRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "returnItemId",
+ "decisionType",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSetReturnDecisionRequest := _SetReturnDecisionRequest{}
+
+ err = json.Unmarshal(data, &varSetReturnDecisionRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SetReturnDecisionRequest(varSetReturnDecisionRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "returnItemId")
+ delete(additionalProperties, "decisionType")
+ delete(additionalProperties, "comment")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSetReturnDecisionRequest struct {
+ value *SetReturnDecisionRequest
+ isSet bool
+}
+
+func (v NullableSetReturnDecisionRequest) Get() *SetReturnDecisionRequest {
+ return v.value
+}
+
+func (v *NullableSetReturnDecisionRequest) Set(val *SetReturnDecisionRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSetReturnDecisionRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSetReturnDecisionRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSetReturnDecisionRequest(val *SetReturnDecisionRequest) *NullableSetReturnDecisionRequest {
+ return &NullableSetReturnDecisionRequest{value: val, isSet: true}
+}
+
+func (v NullableSetReturnDecisionRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSetReturnDecisionRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_set_shipment_pallets_count_request.go b/pkg/api/yandex/ymclient/model_set_shipment_pallets_count_request.go
new file mode 100644
index 0000000..c8a9963
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_set_shipment_pallets_count_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SetShipmentPalletsCountRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SetShipmentPalletsCountRequest{}
+
+// SetShipmentPalletsCountRequest Запрос на передачу количества упаковок в отгрузке.
+type SetShipmentPalletsCountRequest struct {
+ // Количество упаковок в отгрузке.
+ PlacesCount int32 `json:"placesCount"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SetShipmentPalletsCountRequest SetShipmentPalletsCountRequest
+
+// NewSetShipmentPalletsCountRequest instantiates a new SetShipmentPalletsCountRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSetShipmentPalletsCountRequest(placesCount int32) *SetShipmentPalletsCountRequest {
+ this := SetShipmentPalletsCountRequest{}
+ this.PlacesCount = placesCount
+ return &this
+}
+
+// NewSetShipmentPalletsCountRequestWithDefaults instantiates a new SetShipmentPalletsCountRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSetShipmentPalletsCountRequestWithDefaults() *SetShipmentPalletsCountRequest {
+ this := SetShipmentPalletsCountRequest{}
+ return &this
+}
+
+// GetPlacesCount returns the PlacesCount field value
+func (o *SetShipmentPalletsCountRequest) GetPlacesCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.PlacesCount
+}
+
+// GetPlacesCountOk returns a tuple with the PlacesCount field value
+// and a boolean to check if the value has been set.
+func (o *SetShipmentPalletsCountRequest) GetPlacesCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PlacesCount, true
+}
+
+// SetPlacesCount sets field value
+func (o *SetShipmentPalletsCountRequest) SetPlacesCount(v int32) {
+ o.PlacesCount = v
+}
+
+func (o SetShipmentPalletsCountRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SetShipmentPalletsCountRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["placesCount"] = o.PlacesCount
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SetShipmentPalletsCountRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "placesCount",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSetShipmentPalletsCountRequest := _SetShipmentPalletsCountRequest{}
+
+ err = json.Unmarshal(data, &varSetShipmentPalletsCountRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SetShipmentPalletsCountRequest(varSetShipmentPalletsCountRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "placesCount")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSetShipmentPalletsCountRequest struct {
+ value *SetShipmentPalletsCountRequest
+ isSet bool
+}
+
+func (v NullableSetShipmentPalletsCountRequest) Get() *SetShipmentPalletsCountRequest {
+ return v.value
+}
+
+func (v *NullableSetShipmentPalletsCountRequest) Set(val *SetShipmentPalletsCountRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSetShipmentPalletsCountRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSetShipmentPalletsCountRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSetShipmentPalletsCountRequest(val *SetShipmentPalletsCountRequest) *NullableSetShipmentPalletsCountRequest {
+ return &NullableSetShipmentPalletsCountRequest{value: val, isSet: true}
+}
+
+func (v NullableSetShipmentPalletsCountRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSetShipmentPalletsCountRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_shipment_action_type.go b/pkg/api/yandex/ymclient/model_shipment_action_type.go
new file mode 100644
index 0000000..e29af0e
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_shipment_action_type.go
@@ -0,0 +1,118 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ShipmentActionType Действия с отгрузкой: * `CONFIRM` — подтвердить отгрузку. * `DOWNLOAD_ACT` — скачать акт приема-передачи отгрузки. * `DOWNLOAD_INBOUND_ACT` — скачать список принятых заказов. * `DOWNLOAD_DISCREPANCY_ACT` — скачать акт расхождений. * `DOWNLOAD_TRANSPORTATION_WAYBILL` — скачать транспортную накладную. * `CHANGE_PALLETS_COUNT` — указать количество палет.
+type ShipmentActionType string
+
+// List of ShipmentActionType
+const (
+ SHIPMENTACTIONTYPE_CONFIRM ShipmentActionType = "CONFIRM"
+ SHIPMENTACTIONTYPE_DOWNLOAD_ACT ShipmentActionType = "DOWNLOAD_ACT"
+ SHIPMENTACTIONTYPE_DOWNLOAD_INBOUND_ACT ShipmentActionType = "DOWNLOAD_INBOUND_ACT"
+ SHIPMENTACTIONTYPE_DOWNLOAD_DISCREPANCY_ACT ShipmentActionType = "DOWNLOAD_DISCREPANCY_ACT"
+ SHIPMENTACTIONTYPE_DOWNLOAD_TRANSPORTATION_WAYBILL ShipmentActionType = "DOWNLOAD_TRANSPORTATION_WAYBILL"
+ SHIPMENTACTIONTYPE_CHANGE_PALLETS_COUNT ShipmentActionType = "CHANGE_PALLETS_COUNT"
+)
+
+// All allowed values of ShipmentActionType enum
+var AllowedShipmentActionTypeEnumValues = []ShipmentActionType{
+ "CONFIRM",
+ "DOWNLOAD_ACT",
+ "DOWNLOAD_INBOUND_ACT",
+ "DOWNLOAD_DISCREPANCY_ACT",
+ "DOWNLOAD_TRANSPORTATION_WAYBILL",
+ "CHANGE_PALLETS_COUNT",
+}
+
+func (v *ShipmentActionType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ShipmentActionType(value)
+ for _, existing := range AllowedShipmentActionTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ShipmentActionType", value)
+}
+
+// NewShipmentActionTypeFromValue returns a pointer to a valid ShipmentActionType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewShipmentActionTypeFromValue(v string) (*ShipmentActionType, error) {
+ ev := ShipmentActionType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ShipmentActionType: valid values are %v", v, AllowedShipmentActionTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ShipmentActionType) IsValid() bool {
+ for _, existing := range AllowedShipmentActionTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ShipmentActionType value
+func (v ShipmentActionType) Ptr() *ShipmentActionType {
+ return &v
+}
+
+type NullableShipmentActionType struct {
+ value *ShipmentActionType
+ isSet bool
+}
+
+func (v NullableShipmentActionType) Get() *ShipmentActionType {
+ return v.value
+}
+
+func (v *NullableShipmentActionType) Set(val *ShipmentActionType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableShipmentActionType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableShipmentActionType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableShipmentActionType(val *ShipmentActionType) *NullableShipmentActionType {
+ return &NullableShipmentActionType{value: val, isSet: true}
+}
+
+func (v NullableShipmentActionType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableShipmentActionType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_shipment_boxes_dto.go b/pkg/api/yandex/ymclient/model_shipment_boxes_dto.go
new file mode 100644
index 0000000..ea5f36a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_shipment_boxes_dto.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ShipmentBoxesDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ShipmentBoxesDTO{}
+
+// ShipmentBoxesDTO В ответе Маркет возвращает переданный вами список грузовых мест. Не обращайте на это поле внимания.
+type ShipmentBoxesDTO struct {
+ // Список грузовых мест. По его длине Маркет определил количество мест.
+ Boxes []ParcelBoxDTO `json:"boxes"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ShipmentBoxesDTO ShipmentBoxesDTO
+
+// NewShipmentBoxesDTO instantiates a new ShipmentBoxesDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewShipmentBoxesDTO(boxes []ParcelBoxDTO) *ShipmentBoxesDTO {
+ this := ShipmentBoxesDTO{}
+ this.Boxes = boxes
+ return &this
+}
+
+// NewShipmentBoxesDTOWithDefaults instantiates a new ShipmentBoxesDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewShipmentBoxesDTOWithDefaults() *ShipmentBoxesDTO {
+ this := ShipmentBoxesDTO{}
+ return &this
+}
+
+// GetBoxes returns the Boxes field value
+func (o *ShipmentBoxesDTO) GetBoxes() []ParcelBoxDTO {
+ if o == nil {
+ var ret []ParcelBoxDTO
+ return ret
+ }
+
+ return o.Boxes
+}
+
+// GetBoxesOk returns a tuple with the Boxes field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentBoxesDTO) GetBoxesOk() ([]ParcelBoxDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Boxes, true
+}
+
+// SetBoxes sets field value
+func (o *ShipmentBoxesDTO) SetBoxes(v []ParcelBoxDTO) {
+ o.Boxes = v
+}
+
+func (o ShipmentBoxesDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ShipmentBoxesDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["boxes"] = o.Boxes
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ShipmentBoxesDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "boxes",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varShipmentBoxesDTO := _ShipmentBoxesDTO{}
+
+ err = json.Unmarshal(data, &varShipmentBoxesDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ShipmentBoxesDTO(varShipmentBoxesDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "boxes")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableShipmentBoxesDTO struct {
+ value *ShipmentBoxesDTO
+ isSet bool
+}
+
+func (v NullableShipmentBoxesDTO) Get() *ShipmentBoxesDTO {
+ return v.value
+}
+
+func (v *NullableShipmentBoxesDTO) Set(val *ShipmentBoxesDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableShipmentBoxesDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableShipmentBoxesDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableShipmentBoxesDTO(val *ShipmentBoxesDTO) *NullableShipmentBoxesDTO {
+ return &NullableShipmentBoxesDTO{value: val, isSet: true}
+}
+
+func (v NullableShipmentBoxesDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableShipmentBoxesDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_shipment_dto.go b/pkg/api/yandex/ymclient/model_shipment_dto.go
new file mode 100644
index 0000000..bdfa4f6
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_shipment_dto.go
@@ -0,0 +1,667 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the ShipmentDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ShipmentDTO{}
+
+// ShipmentDTO Информация об отгрузке.
+type ShipmentDTO struct {
+ // Идентификатор отгрузки.
+ Id int64 `json:"id"`
+ // Начало планового интервала отгрузки. Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC].
+ PlanIntervalFrom time.Time `json:"planIntervalFrom"`
+ // Конец планового интервала отгрузки. Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC.
+ PlanIntervalTo time.Time `json:"planIntervalTo"`
+ ShipmentType *ShipmentType `json:"shipmentType,omitempty"`
+ Warehouse *PartnerShipmentWarehouseDTO `json:"warehouse,omitempty"`
+ WarehouseTo *PartnerShipmentWarehouseDTO `json:"warehouseTo,omitempty"`
+ // Идентификатор отгрузки в вашей системе. Если вы еще не передавали идентификатор, вернется идентификатор из параметра `id`.
+ ExternalId *string `json:"externalId,omitempty"`
+ DeliveryService *DeliveryServiceDTO `json:"deliveryService,omitempty"`
+ PalletsCount *PalletsCountDTO `json:"palletsCount,omitempty"`
+ // Идентификаторы заказов в отгрузке.
+ OrderIds []int64 `json:"orderIds"`
+ // Количество заказов, которое Маркет запланировал к отгрузке.
+ DraftCount int32 `json:"draftCount"`
+ // Количество заказов, которое Маркет подтвердил к отгрузке.
+ PlannedCount int32 `json:"plannedCount"`
+ // Количество заказов, принятых в сортировочном центре или пункте приема.
+ FactCount int32 `json:"factCount"`
+ Signature SignatureDTO `json:"signature"`
+ CurrentStatus *ShipmentStatusChangeDTO `json:"currentStatus,omitempty"`
+ // Доступные действия над отгрузкой.
+ AvailableActions []ShipmentActionType `json:"availableActions"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ShipmentDTO ShipmentDTO
+
+// NewShipmentDTO instantiates a new ShipmentDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewShipmentDTO(id int64, planIntervalFrom time.Time, planIntervalTo time.Time, orderIds []int64, draftCount int32, plannedCount int32, factCount int32, signature SignatureDTO, availableActions []ShipmentActionType) *ShipmentDTO {
+ this := ShipmentDTO{}
+ this.Id = id
+ this.PlanIntervalFrom = planIntervalFrom
+ this.PlanIntervalTo = planIntervalTo
+ this.OrderIds = orderIds
+ this.DraftCount = draftCount
+ this.PlannedCount = plannedCount
+ this.FactCount = factCount
+ this.Signature = signature
+ this.AvailableActions = availableActions
+ return &this
+}
+
+// NewShipmentDTOWithDefaults instantiates a new ShipmentDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewShipmentDTOWithDefaults() *ShipmentDTO {
+ this := ShipmentDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *ShipmentDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *ShipmentDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetPlanIntervalFrom returns the PlanIntervalFrom field value
+func (o *ShipmentDTO) GetPlanIntervalFrom() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.PlanIntervalFrom
+}
+
+// GetPlanIntervalFromOk returns a tuple with the PlanIntervalFrom field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetPlanIntervalFromOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PlanIntervalFrom, true
+}
+
+// SetPlanIntervalFrom sets field value
+func (o *ShipmentDTO) SetPlanIntervalFrom(v time.Time) {
+ o.PlanIntervalFrom = v
+}
+
+// GetPlanIntervalTo returns the PlanIntervalTo field value
+func (o *ShipmentDTO) GetPlanIntervalTo() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.PlanIntervalTo
+}
+
+// GetPlanIntervalToOk returns a tuple with the PlanIntervalTo field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetPlanIntervalToOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PlanIntervalTo, true
+}
+
+// SetPlanIntervalTo sets field value
+func (o *ShipmentDTO) SetPlanIntervalTo(v time.Time) {
+ o.PlanIntervalTo = v
+}
+
+// GetShipmentType returns the ShipmentType field value if set, zero value otherwise.
+func (o *ShipmentDTO) GetShipmentType() ShipmentType {
+ if o == nil || IsNil(o.ShipmentType) {
+ var ret ShipmentType
+ return ret
+ }
+ return *o.ShipmentType
+}
+
+// GetShipmentTypeOk returns a tuple with the ShipmentType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetShipmentTypeOk() (*ShipmentType, bool) {
+ if o == nil || IsNil(o.ShipmentType) {
+ return nil, false
+ }
+ return o.ShipmentType, true
+}
+
+// HasShipmentType returns a boolean if a field has been set.
+func (o *ShipmentDTO) HasShipmentType() bool {
+ if o != nil && !IsNil(o.ShipmentType) {
+ return true
+ }
+
+ return false
+}
+
+// SetShipmentType gets a reference to the given ShipmentType and assigns it to the ShipmentType field.
+func (o *ShipmentDTO) SetShipmentType(v ShipmentType) {
+ o.ShipmentType = &v
+}
+
+// GetWarehouse returns the Warehouse field value if set, zero value otherwise.
+func (o *ShipmentDTO) GetWarehouse() PartnerShipmentWarehouseDTO {
+ if o == nil || IsNil(o.Warehouse) {
+ var ret PartnerShipmentWarehouseDTO
+ return ret
+ }
+ return *o.Warehouse
+}
+
+// GetWarehouseOk returns a tuple with the Warehouse field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetWarehouseOk() (*PartnerShipmentWarehouseDTO, bool) {
+ if o == nil || IsNil(o.Warehouse) {
+ return nil, false
+ }
+ return o.Warehouse, true
+}
+
+// HasWarehouse returns a boolean if a field has been set.
+func (o *ShipmentDTO) HasWarehouse() bool {
+ if o != nil && !IsNil(o.Warehouse) {
+ return true
+ }
+
+ return false
+}
+
+// SetWarehouse gets a reference to the given PartnerShipmentWarehouseDTO and assigns it to the Warehouse field.
+func (o *ShipmentDTO) SetWarehouse(v PartnerShipmentWarehouseDTO) {
+ o.Warehouse = &v
+}
+
+// GetWarehouseTo returns the WarehouseTo field value if set, zero value otherwise.
+func (o *ShipmentDTO) GetWarehouseTo() PartnerShipmentWarehouseDTO {
+ if o == nil || IsNil(o.WarehouseTo) {
+ var ret PartnerShipmentWarehouseDTO
+ return ret
+ }
+ return *o.WarehouseTo
+}
+
+// GetWarehouseToOk returns a tuple with the WarehouseTo field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetWarehouseToOk() (*PartnerShipmentWarehouseDTO, bool) {
+ if o == nil || IsNil(o.WarehouseTo) {
+ return nil, false
+ }
+ return o.WarehouseTo, true
+}
+
+// HasWarehouseTo returns a boolean if a field has been set.
+func (o *ShipmentDTO) HasWarehouseTo() bool {
+ if o != nil && !IsNil(o.WarehouseTo) {
+ return true
+ }
+
+ return false
+}
+
+// SetWarehouseTo gets a reference to the given PartnerShipmentWarehouseDTO and assigns it to the WarehouseTo field.
+func (o *ShipmentDTO) SetWarehouseTo(v PartnerShipmentWarehouseDTO) {
+ o.WarehouseTo = &v
+}
+
+// GetExternalId returns the ExternalId field value if set, zero value otherwise.
+func (o *ShipmentDTO) GetExternalId() string {
+ if o == nil || IsNil(o.ExternalId) {
+ var ret string
+ return ret
+ }
+ return *o.ExternalId
+}
+
+// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetExternalIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ExternalId) {
+ return nil, false
+ }
+ return o.ExternalId, true
+}
+
+// HasExternalId returns a boolean if a field has been set.
+func (o *ShipmentDTO) HasExternalId() bool {
+ if o != nil && !IsNil(o.ExternalId) {
+ return true
+ }
+
+ return false
+}
+
+// SetExternalId gets a reference to the given string and assigns it to the ExternalId field.
+func (o *ShipmentDTO) SetExternalId(v string) {
+ o.ExternalId = &v
+}
+
+// GetDeliveryService returns the DeliveryService field value if set, zero value otherwise.
+func (o *ShipmentDTO) GetDeliveryService() DeliveryServiceDTO {
+ if o == nil || IsNil(o.DeliveryService) {
+ var ret DeliveryServiceDTO
+ return ret
+ }
+ return *o.DeliveryService
+}
+
+// GetDeliveryServiceOk returns a tuple with the DeliveryService field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetDeliveryServiceOk() (*DeliveryServiceDTO, bool) {
+ if o == nil || IsNil(o.DeliveryService) {
+ return nil, false
+ }
+ return o.DeliveryService, true
+}
+
+// HasDeliveryService returns a boolean if a field has been set.
+func (o *ShipmentDTO) HasDeliveryService() bool {
+ if o != nil && !IsNil(o.DeliveryService) {
+ return true
+ }
+
+ return false
+}
+
+// SetDeliveryService gets a reference to the given DeliveryServiceDTO and assigns it to the DeliveryService field.
+func (o *ShipmentDTO) SetDeliveryService(v DeliveryServiceDTO) {
+ o.DeliveryService = &v
+}
+
+// GetPalletsCount returns the PalletsCount field value if set, zero value otherwise.
+func (o *ShipmentDTO) GetPalletsCount() PalletsCountDTO {
+ if o == nil || IsNil(o.PalletsCount) {
+ var ret PalletsCountDTO
+ return ret
+ }
+ return *o.PalletsCount
+}
+
+// GetPalletsCountOk returns a tuple with the PalletsCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetPalletsCountOk() (*PalletsCountDTO, bool) {
+ if o == nil || IsNil(o.PalletsCount) {
+ return nil, false
+ }
+ return o.PalletsCount, true
+}
+
+// HasPalletsCount returns a boolean if a field has been set.
+func (o *ShipmentDTO) HasPalletsCount() bool {
+ if o != nil && !IsNil(o.PalletsCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetPalletsCount gets a reference to the given PalletsCountDTO and assigns it to the PalletsCount field.
+func (o *ShipmentDTO) SetPalletsCount(v PalletsCountDTO) {
+ o.PalletsCount = &v
+}
+
+// GetOrderIds returns the OrderIds field value
+func (o *ShipmentDTO) GetOrderIds() []int64 {
+ if o == nil {
+ var ret []int64
+ return ret
+ }
+
+ return o.OrderIds
+}
+
+// GetOrderIdsOk returns a tuple with the OrderIds field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetOrderIdsOk() ([]int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OrderIds, true
+}
+
+// SetOrderIds sets field value
+func (o *ShipmentDTO) SetOrderIds(v []int64) {
+ o.OrderIds = v
+}
+
+// GetDraftCount returns the DraftCount field value
+func (o *ShipmentDTO) GetDraftCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.DraftCount
+}
+
+// GetDraftCountOk returns a tuple with the DraftCount field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetDraftCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DraftCount, true
+}
+
+// SetDraftCount sets field value
+func (o *ShipmentDTO) SetDraftCount(v int32) {
+ o.DraftCount = v
+}
+
+// GetPlannedCount returns the PlannedCount field value
+func (o *ShipmentDTO) GetPlannedCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.PlannedCount
+}
+
+// GetPlannedCountOk returns a tuple with the PlannedCount field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetPlannedCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PlannedCount, true
+}
+
+// SetPlannedCount sets field value
+func (o *ShipmentDTO) SetPlannedCount(v int32) {
+ o.PlannedCount = v
+}
+
+// GetFactCount returns the FactCount field value
+func (o *ShipmentDTO) GetFactCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.FactCount
+}
+
+// GetFactCountOk returns a tuple with the FactCount field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetFactCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FactCount, true
+}
+
+// SetFactCount sets field value
+func (o *ShipmentDTO) SetFactCount(v int32) {
+ o.FactCount = v
+}
+
+// GetSignature returns the Signature field value
+func (o *ShipmentDTO) GetSignature() SignatureDTO {
+ if o == nil {
+ var ret SignatureDTO
+ return ret
+ }
+
+ return o.Signature
+}
+
+// GetSignatureOk returns a tuple with the Signature field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetSignatureOk() (*SignatureDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Signature, true
+}
+
+// SetSignature sets field value
+func (o *ShipmentDTO) SetSignature(v SignatureDTO) {
+ o.Signature = v
+}
+
+// GetCurrentStatus returns the CurrentStatus field value if set, zero value otherwise.
+func (o *ShipmentDTO) GetCurrentStatus() ShipmentStatusChangeDTO {
+ if o == nil || IsNil(o.CurrentStatus) {
+ var ret ShipmentStatusChangeDTO
+ return ret
+ }
+ return *o.CurrentStatus
+}
+
+// GetCurrentStatusOk returns a tuple with the CurrentStatus field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetCurrentStatusOk() (*ShipmentStatusChangeDTO, bool) {
+ if o == nil || IsNil(o.CurrentStatus) {
+ return nil, false
+ }
+ return o.CurrentStatus, true
+}
+
+// HasCurrentStatus returns a boolean if a field has been set.
+func (o *ShipmentDTO) HasCurrentStatus() bool {
+ if o != nil && !IsNil(o.CurrentStatus) {
+ return true
+ }
+
+ return false
+}
+
+// SetCurrentStatus gets a reference to the given ShipmentStatusChangeDTO and assigns it to the CurrentStatus field.
+func (o *ShipmentDTO) SetCurrentStatus(v ShipmentStatusChangeDTO) {
+ o.CurrentStatus = &v
+}
+
+// GetAvailableActions returns the AvailableActions field value
+func (o *ShipmentDTO) GetAvailableActions() []ShipmentActionType {
+ if o == nil {
+ var ret []ShipmentActionType
+ return ret
+ }
+
+ return o.AvailableActions
+}
+
+// GetAvailableActionsOk returns a tuple with the AvailableActions field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentDTO) GetAvailableActionsOk() ([]ShipmentActionType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.AvailableActions, true
+}
+
+// SetAvailableActions sets field value
+func (o *ShipmentDTO) SetAvailableActions(v []ShipmentActionType) {
+ o.AvailableActions = v
+}
+
+func (o ShipmentDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ShipmentDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["planIntervalFrom"] = o.PlanIntervalFrom
+ toSerialize["planIntervalTo"] = o.PlanIntervalTo
+ if !IsNil(o.ShipmentType) {
+ toSerialize["shipmentType"] = o.ShipmentType
+ }
+ if !IsNil(o.Warehouse) {
+ toSerialize["warehouse"] = o.Warehouse
+ }
+ if !IsNil(o.WarehouseTo) {
+ toSerialize["warehouseTo"] = o.WarehouseTo
+ }
+ if !IsNil(o.ExternalId) {
+ toSerialize["externalId"] = o.ExternalId
+ }
+ if !IsNil(o.DeliveryService) {
+ toSerialize["deliveryService"] = o.DeliveryService
+ }
+ if !IsNil(o.PalletsCount) {
+ toSerialize["palletsCount"] = o.PalletsCount
+ }
+ toSerialize["orderIds"] = o.OrderIds
+ toSerialize["draftCount"] = o.DraftCount
+ toSerialize["plannedCount"] = o.PlannedCount
+ toSerialize["factCount"] = o.FactCount
+ toSerialize["signature"] = o.Signature
+ if !IsNil(o.CurrentStatus) {
+ toSerialize["currentStatus"] = o.CurrentStatus
+ }
+ toSerialize["availableActions"] = o.AvailableActions
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ShipmentDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "planIntervalFrom",
+ "planIntervalTo",
+ "orderIds",
+ "draftCount",
+ "plannedCount",
+ "factCount",
+ "signature",
+ "availableActions",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varShipmentDTO := _ShipmentDTO{}
+
+ err = json.Unmarshal(data, &varShipmentDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ShipmentDTO(varShipmentDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "planIntervalFrom")
+ delete(additionalProperties, "planIntervalTo")
+ delete(additionalProperties, "shipmentType")
+ delete(additionalProperties, "warehouse")
+ delete(additionalProperties, "warehouseTo")
+ delete(additionalProperties, "externalId")
+ delete(additionalProperties, "deliveryService")
+ delete(additionalProperties, "palletsCount")
+ delete(additionalProperties, "orderIds")
+ delete(additionalProperties, "draftCount")
+ delete(additionalProperties, "plannedCount")
+ delete(additionalProperties, "factCount")
+ delete(additionalProperties, "signature")
+ delete(additionalProperties, "currentStatus")
+ delete(additionalProperties, "availableActions")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableShipmentDTO struct {
+ value *ShipmentDTO
+ isSet bool
+}
+
+func (v NullableShipmentDTO) Get() *ShipmentDTO {
+ return v.value
+}
+
+func (v *NullableShipmentDTO) Set(val *ShipmentDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableShipmentDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableShipmentDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableShipmentDTO(val *ShipmentDTO) *NullableShipmentDTO {
+ return &NullableShipmentDTO{value: val, isSet: true}
+}
+
+func (v NullableShipmentDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableShipmentDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_shipment_info_dto.go b/pkg/api/yandex/ymclient/model_shipment_info_dto.go
new file mode 100644
index 0000000..86c2e2d
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_shipment_info_dto.go
@@ -0,0 +1,713 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the ShipmentInfoDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ShipmentInfoDTO{}
+
+// ShipmentInfoDTO Список с информацией об отгрузках.
+type ShipmentInfoDTO struct {
+ // Идентификатор отгрузки.
+ Id int64 `json:"id"`
+ // Начало планового интервала отгрузки. Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC].
+ PlanIntervalFrom time.Time `json:"planIntervalFrom"`
+ // Конец планового интервала отгрузки. Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC.
+ PlanIntervalTo time.Time `json:"planIntervalTo"`
+ ShipmentType *ShipmentType `json:"shipmentType,omitempty"`
+ Warehouse *PartnerShipmentWarehouseDTO `json:"warehouse,omitempty"`
+ WarehouseTo *PartnerShipmentWarehouseDTO `json:"warehouseTo,omitempty"`
+ // Идентификатор отгрузки в вашей системе. Если вы еще не передавали идентификатор, вернется идентификатор из параметра `id`.
+ ExternalId *string `json:"externalId,omitempty"`
+ DeliveryService *DeliveryServiceDTO `json:"deliveryService,omitempty"`
+ PalletsCount *PalletsCountDTO `json:"palletsCount,omitempty"`
+ // Идентификаторы заказов в отгрузке.
+ OrderIds []int64 `json:"orderIds"`
+ // Количество заказов, которое Маркет запланировал к отгрузке.
+ DraftCount int32 `json:"draftCount"`
+ // Количество заказов, которое Маркет подтвердил к отгрузке.
+ PlannedCount int32 `json:"plannedCount"`
+ // Количество заказов, принятых в сортировочном центре или пункте приема.
+ FactCount int32 `json:"factCount"`
+ Signature SignatureDTO `json:"signature"`
+ Status *ShipmentStatusType `json:"status,omitempty"`
+ // Описание статуса отгрузки.
+ StatusDescription *string `json:"statusDescription,omitempty"`
+ // Время последнего изменения статуса отгрузки Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC].
+ StatusUpdateTime *time.Time `json:"statusUpdateTime,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ShipmentInfoDTO ShipmentInfoDTO
+
+// NewShipmentInfoDTO instantiates a new ShipmentInfoDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewShipmentInfoDTO(id int64, planIntervalFrom time.Time, planIntervalTo time.Time, orderIds []int64, draftCount int32, plannedCount int32, factCount int32, signature SignatureDTO) *ShipmentInfoDTO {
+ this := ShipmentInfoDTO{}
+ this.Id = id
+ this.PlanIntervalFrom = planIntervalFrom
+ this.PlanIntervalTo = planIntervalTo
+ this.OrderIds = orderIds
+ this.DraftCount = draftCount
+ this.PlannedCount = plannedCount
+ this.FactCount = factCount
+ this.Signature = signature
+ return &this
+}
+
+// NewShipmentInfoDTOWithDefaults instantiates a new ShipmentInfoDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewShipmentInfoDTOWithDefaults() *ShipmentInfoDTO {
+ this := ShipmentInfoDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *ShipmentInfoDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *ShipmentInfoDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetPlanIntervalFrom returns the PlanIntervalFrom field value
+func (o *ShipmentInfoDTO) GetPlanIntervalFrom() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.PlanIntervalFrom
+}
+
+// GetPlanIntervalFromOk returns a tuple with the PlanIntervalFrom field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetPlanIntervalFromOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PlanIntervalFrom, true
+}
+
+// SetPlanIntervalFrom sets field value
+func (o *ShipmentInfoDTO) SetPlanIntervalFrom(v time.Time) {
+ o.PlanIntervalFrom = v
+}
+
+// GetPlanIntervalTo returns the PlanIntervalTo field value
+func (o *ShipmentInfoDTO) GetPlanIntervalTo() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.PlanIntervalTo
+}
+
+// GetPlanIntervalToOk returns a tuple with the PlanIntervalTo field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetPlanIntervalToOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PlanIntervalTo, true
+}
+
+// SetPlanIntervalTo sets field value
+func (o *ShipmentInfoDTO) SetPlanIntervalTo(v time.Time) {
+ o.PlanIntervalTo = v
+}
+
+// GetShipmentType returns the ShipmentType field value if set, zero value otherwise.
+func (o *ShipmentInfoDTO) GetShipmentType() ShipmentType {
+ if o == nil || IsNil(o.ShipmentType) {
+ var ret ShipmentType
+ return ret
+ }
+ return *o.ShipmentType
+}
+
+// GetShipmentTypeOk returns a tuple with the ShipmentType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetShipmentTypeOk() (*ShipmentType, bool) {
+ if o == nil || IsNil(o.ShipmentType) {
+ return nil, false
+ }
+ return o.ShipmentType, true
+}
+
+// HasShipmentType returns a boolean if a field has been set.
+func (o *ShipmentInfoDTO) HasShipmentType() bool {
+ if o != nil && !IsNil(o.ShipmentType) {
+ return true
+ }
+
+ return false
+}
+
+// SetShipmentType gets a reference to the given ShipmentType and assigns it to the ShipmentType field.
+func (o *ShipmentInfoDTO) SetShipmentType(v ShipmentType) {
+ o.ShipmentType = &v
+}
+
+// GetWarehouse returns the Warehouse field value if set, zero value otherwise.
+func (o *ShipmentInfoDTO) GetWarehouse() PartnerShipmentWarehouseDTO {
+ if o == nil || IsNil(o.Warehouse) {
+ var ret PartnerShipmentWarehouseDTO
+ return ret
+ }
+ return *o.Warehouse
+}
+
+// GetWarehouseOk returns a tuple with the Warehouse field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetWarehouseOk() (*PartnerShipmentWarehouseDTO, bool) {
+ if o == nil || IsNil(o.Warehouse) {
+ return nil, false
+ }
+ return o.Warehouse, true
+}
+
+// HasWarehouse returns a boolean if a field has been set.
+func (o *ShipmentInfoDTO) HasWarehouse() bool {
+ if o != nil && !IsNil(o.Warehouse) {
+ return true
+ }
+
+ return false
+}
+
+// SetWarehouse gets a reference to the given PartnerShipmentWarehouseDTO and assigns it to the Warehouse field.
+func (o *ShipmentInfoDTO) SetWarehouse(v PartnerShipmentWarehouseDTO) {
+ o.Warehouse = &v
+}
+
+// GetWarehouseTo returns the WarehouseTo field value if set, zero value otherwise.
+func (o *ShipmentInfoDTO) GetWarehouseTo() PartnerShipmentWarehouseDTO {
+ if o == nil || IsNil(o.WarehouseTo) {
+ var ret PartnerShipmentWarehouseDTO
+ return ret
+ }
+ return *o.WarehouseTo
+}
+
+// GetWarehouseToOk returns a tuple with the WarehouseTo field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetWarehouseToOk() (*PartnerShipmentWarehouseDTO, bool) {
+ if o == nil || IsNil(o.WarehouseTo) {
+ return nil, false
+ }
+ return o.WarehouseTo, true
+}
+
+// HasWarehouseTo returns a boolean if a field has been set.
+func (o *ShipmentInfoDTO) HasWarehouseTo() bool {
+ if o != nil && !IsNil(o.WarehouseTo) {
+ return true
+ }
+
+ return false
+}
+
+// SetWarehouseTo gets a reference to the given PartnerShipmentWarehouseDTO and assigns it to the WarehouseTo field.
+func (o *ShipmentInfoDTO) SetWarehouseTo(v PartnerShipmentWarehouseDTO) {
+ o.WarehouseTo = &v
+}
+
+// GetExternalId returns the ExternalId field value if set, zero value otherwise.
+func (o *ShipmentInfoDTO) GetExternalId() string {
+ if o == nil || IsNil(o.ExternalId) {
+ var ret string
+ return ret
+ }
+ return *o.ExternalId
+}
+
+// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetExternalIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ExternalId) {
+ return nil, false
+ }
+ return o.ExternalId, true
+}
+
+// HasExternalId returns a boolean if a field has been set.
+func (o *ShipmentInfoDTO) HasExternalId() bool {
+ if o != nil && !IsNil(o.ExternalId) {
+ return true
+ }
+
+ return false
+}
+
+// SetExternalId gets a reference to the given string and assigns it to the ExternalId field.
+func (o *ShipmentInfoDTO) SetExternalId(v string) {
+ o.ExternalId = &v
+}
+
+// GetDeliveryService returns the DeliveryService field value if set, zero value otherwise.
+func (o *ShipmentInfoDTO) GetDeliveryService() DeliveryServiceDTO {
+ if o == nil || IsNil(o.DeliveryService) {
+ var ret DeliveryServiceDTO
+ return ret
+ }
+ return *o.DeliveryService
+}
+
+// GetDeliveryServiceOk returns a tuple with the DeliveryService field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetDeliveryServiceOk() (*DeliveryServiceDTO, bool) {
+ if o == nil || IsNil(o.DeliveryService) {
+ return nil, false
+ }
+ return o.DeliveryService, true
+}
+
+// HasDeliveryService returns a boolean if a field has been set.
+func (o *ShipmentInfoDTO) HasDeliveryService() bool {
+ if o != nil && !IsNil(o.DeliveryService) {
+ return true
+ }
+
+ return false
+}
+
+// SetDeliveryService gets a reference to the given DeliveryServiceDTO and assigns it to the DeliveryService field.
+func (o *ShipmentInfoDTO) SetDeliveryService(v DeliveryServiceDTO) {
+ o.DeliveryService = &v
+}
+
+// GetPalletsCount returns the PalletsCount field value if set, zero value otherwise.
+func (o *ShipmentInfoDTO) GetPalletsCount() PalletsCountDTO {
+ if o == nil || IsNil(o.PalletsCount) {
+ var ret PalletsCountDTO
+ return ret
+ }
+ return *o.PalletsCount
+}
+
+// GetPalletsCountOk returns a tuple with the PalletsCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetPalletsCountOk() (*PalletsCountDTO, bool) {
+ if o == nil || IsNil(o.PalletsCount) {
+ return nil, false
+ }
+ return o.PalletsCount, true
+}
+
+// HasPalletsCount returns a boolean if a field has been set.
+func (o *ShipmentInfoDTO) HasPalletsCount() bool {
+ if o != nil && !IsNil(o.PalletsCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetPalletsCount gets a reference to the given PalletsCountDTO and assigns it to the PalletsCount field.
+func (o *ShipmentInfoDTO) SetPalletsCount(v PalletsCountDTO) {
+ o.PalletsCount = &v
+}
+
+// GetOrderIds returns the OrderIds field value
+func (o *ShipmentInfoDTO) GetOrderIds() []int64 {
+ if o == nil {
+ var ret []int64
+ return ret
+ }
+
+ return o.OrderIds
+}
+
+// GetOrderIdsOk returns a tuple with the OrderIds field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetOrderIdsOk() ([]int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OrderIds, true
+}
+
+// SetOrderIds sets field value
+func (o *ShipmentInfoDTO) SetOrderIds(v []int64) {
+ o.OrderIds = v
+}
+
+// GetDraftCount returns the DraftCount field value
+func (o *ShipmentInfoDTO) GetDraftCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.DraftCount
+}
+
+// GetDraftCountOk returns a tuple with the DraftCount field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetDraftCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DraftCount, true
+}
+
+// SetDraftCount sets field value
+func (o *ShipmentInfoDTO) SetDraftCount(v int32) {
+ o.DraftCount = v
+}
+
+// GetPlannedCount returns the PlannedCount field value
+func (o *ShipmentInfoDTO) GetPlannedCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.PlannedCount
+}
+
+// GetPlannedCountOk returns a tuple with the PlannedCount field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetPlannedCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PlannedCount, true
+}
+
+// SetPlannedCount sets field value
+func (o *ShipmentInfoDTO) SetPlannedCount(v int32) {
+ o.PlannedCount = v
+}
+
+// GetFactCount returns the FactCount field value
+func (o *ShipmentInfoDTO) GetFactCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.FactCount
+}
+
+// GetFactCountOk returns a tuple with the FactCount field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetFactCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FactCount, true
+}
+
+// SetFactCount sets field value
+func (o *ShipmentInfoDTO) SetFactCount(v int32) {
+ o.FactCount = v
+}
+
+// GetSignature returns the Signature field value
+func (o *ShipmentInfoDTO) GetSignature() SignatureDTO {
+ if o == nil {
+ var ret SignatureDTO
+ return ret
+ }
+
+ return o.Signature
+}
+
+// GetSignatureOk returns a tuple with the Signature field value
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetSignatureOk() (*SignatureDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Signature, true
+}
+
+// SetSignature sets field value
+func (o *ShipmentInfoDTO) SetSignature(v SignatureDTO) {
+ o.Signature = v
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *ShipmentInfoDTO) GetStatus() ShipmentStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ShipmentStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetStatusOk() (*ShipmentStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *ShipmentInfoDTO) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ShipmentStatusType and assigns it to the Status field.
+func (o *ShipmentInfoDTO) SetStatus(v ShipmentStatusType) {
+ o.Status = &v
+}
+
+// GetStatusDescription returns the StatusDescription field value if set, zero value otherwise.
+func (o *ShipmentInfoDTO) GetStatusDescription() string {
+ if o == nil || IsNil(o.StatusDescription) {
+ var ret string
+ return ret
+ }
+ return *o.StatusDescription
+}
+
+// GetStatusDescriptionOk returns a tuple with the StatusDescription field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetStatusDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.StatusDescription) {
+ return nil, false
+ }
+ return o.StatusDescription, true
+}
+
+// HasStatusDescription returns a boolean if a field has been set.
+func (o *ShipmentInfoDTO) HasStatusDescription() bool {
+ if o != nil && !IsNil(o.StatusDescription) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatusDescription gets a reference to the given string and assigns it to the StatusDescription field.
+func (o *ShipmentInfoDTO) SetStatusDescription(v string) {
+ o.StatusDescription = &v
+}
+
+// GetStatusUpdateTime returns the StatusUpdateTime field value if set, zero value otherwise.
+func (o *ShipmentInfoDTO) GetStatusUpdateTime() time.Time {
+ if o == nil || IsNil(o.StatusUpdateTime) {
+ var ret time.Time
+ return ret
+ }
+ return *o.StatusUpdateTime
+}
+
+// GetStatusUpdateTimeOk returns a tuple with the StatusUpdateTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentInfoDTO) GetStatusUpdateTimeOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.StatusUpdateTime) {
+ return nil, false
+ }
+ return o.StatusUpdateTime, true
+}
+
+// HasStatusUpdateTime returns a boolean if a field has been set.
+func (o *ShipmentInfoDTO) HasStatusUpdateTime() bool {
+ if o != nil && !IsNil(o.StatusUpdateTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatusUpdateTime gets a reference to the given time.Time and assigns it to the StatusUpdateTime field.
+func (o *ShipmentInfoDTO) SetStatusUpdateTime(v time.Time) {
+ o.StatusUpdateTime = &v
+}
+
+func (o ShipmentInfoDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ShipmentInfoDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["planIntervalFrom"] = o.PlanIntervalFrom
+ toSerialize["planIntervalTo"] = o.PlanIntervalTo
+ if !IsNil(o.ShipmentType) {
+ toSerialize["shipmentType"] = o.ShipmentType
+ }
+ if !IsNil(o.Warehouse) {
+ toSerialize["warehouse"] = o.Warehouse
+ }
+ if !IsNil(o.WarehouseTo) {
+ toSerialize["warehouseTo"] = o.WarehouseTo
+ }
+ if !IsNil(o.ExternalId) {
+ toSerialize["externalId"] = o.ExternalId
+ }
+ if !IsNil(o.DeliveryService) {
+ toSerialize["deliveryService"] = o.DeliveryService
+ }
+ if !IsNil(o.PalletsCount) {
+ toSerialize["palletsCount"] = o.PalletsCount
+ }
+ toSerialize["orderIds"] = o.OrderIds
+ toSerialize["draftCount"] = o.DraftCount
+ toSerialize["plannedCount"] = o.PlannedCount
+ toSerialize["factCount"] = o.FactCount
+ toSerialize["signature"] = o.Signature
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.StatusDescription) {
+ toSerialize["statusDescription"] = o.StatusDescription
+ }
+ if !IsNil(o.StatusUpdateTime) {
+ toSerialize["statusUpdateTime"] = o.StatusUpdateTime
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ShipmentInfoDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "planIntervalFrom",
+ "planIntervalTo",
+ "orderIds",
+ "draftCount",
+ "plannedCount",
+ "factCount",
+ "signature",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varShipmentInfoDTO := _ShipmentInfoDTO{}
+
+ err = json.Unmarshal(data, &varShipmentInfoDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ShipmentInfoDTO(varShipmentInfoDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "planIntervalFrom")
+ delete(additionalProperties, "planIntervalTo")
+ delete(additionalProperties, "shipmentType")
+ delete(additionalProperties, "warehouse")
+ delete(additionalProperties, "warehouseTo")
+ delete(additionalProperties, "externalId")
+ delete(additionalProperties, "deliveryService")
+ delete(additionalProperties, "palletsCount")
+ delete(additionalProperties, "orderIds")
+ delete(additionalProperties, "draftCount")
+ delete(additionalProperties, "plannedCount")
+ delete(additionalProperties, "factCount")
+ delete(additionalProperties, "signature")
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "statusDescription")
+ delete(additionalProperties, "statusUpdateTime")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableShipmentInfoDTO struct {
+ value *ShipmentInfoDTO
+ isSet bool
+}
+
+func (v NullableShipmentInfoDTO) Get() *ShipmentInfoDTO {
+ return v.value
+}
+
+func (v *NullableShipmentInfoDTO) Set(val *ShipmentInfoDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableShipmentInfoDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableShipmentInfoDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableShipmentInfoDTO(val *ShipmentInfoDTO) *NullableShipmentInfoDTO {
+ return &NullableShipmentInfoDTO{value: val, isSet: true}
+}
+
+func (v NullableShipmentInfoDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableShipmentInfoDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_shipment_pallet_label_page_format_type.go b/pkg/api/yandex/ymclient/model_shipment_pallet_label_page_format_type.go
new file mode 100644
index 0000000..cbdb862
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_shipment_pallet_label_page_format_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ShipmentPalletLabelPageFormatType Формат страницы: * `A4` — формат страницы :no-translate[A4]. * `A8` — формат страницы :no-translate[A8].
+type ShipmentPalletLabelPageFormatType string
+
+// List of ShipmentPalletLabelPageFormatType
+const (
+ SHIPMENTPALLETLABELPAGEFORMATTYPE_A4 ShipmentPalletLabelPageFormatType = "A4"
+ SHIPMENTPALLETLABELPAGEFORMATTYPE_A8 ShipmentPalletLabelPageFormatType = "A8"
+)
+
+// All allowed values of ShipmentPalletLabelPageFormatType enum
+var AllowedShipmentPalletLabelPageFormatTypeEnumValues = []ShipmentPalletLabelPageFormatType{
+ "A4",
+ "A8",
+}
+
+func (v *ShipmentPalletLabelPageFormatType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ShipmentPalletLabelPageFormatType(value)
+ for _, existing := range AllowedShipmentPalletLabelPageFormatTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ShipmentPalletLabelPageFormatType", value)
+}
+
+// NewShipmentPalletLabelPageFormatTypeFromValue returns a pointer to a valid ShipmentPalletLabelPageFormatType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewShipmentPalletLabelPageFormatTypeFromValue(v string) (*ShipmentPalletLabelPageFormatType, error) {
+ ev := ShipmentPalletLabelPageFormatType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ShipmentPalletLabelPageFormatType: valid values are %v", v, AllowedShipmentPalletLabelPageFormatTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ShipmentPalletLabelPageFormatType) IsValid() bool {
+ for _, existing := range AllowedShipmentPalletLabelPageFormatTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ShipmentPalletLabelPageFormatType value
+func (v ShipmentPalletLabelPageFormatType) Ptr() *ShipmentPalletLabelPageFormatType {
+ return &v
+}
+
+type NullableShipmentPalletLabelPageFormatType struct {
+ value *ShipmentPalletLabelPageFormatType
+ isSet bool
+}
+
+func (v NullableShipmentPalletLabelPageFormatType) Get() *ShipmentPalletLabelPageFormatType {
+ return v.value
+}
+
+func (v *NullableShipmentPalletLabelPageFormatType) Set(val *ShipmentPalletLabelPageFormatType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableShipmentPalletLabelPageFormatType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableShipmentPalletLabelPageFormatType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableShipmentPalletLabelPageFormatType(val *ShipmentPalletLabelPageFormatType) *NullableShipmentPalletLabelPageFormatType {
+ return &NullableShipmentPalletLabelPageFormatType{value: val, isSet: true}
+}
+
+func (v NullableShipmentPalletLabelPageFormatType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableShipmentPalletLabelPageFormatType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_shipment_status_change_dto.go b/pkg/api/yandex/ymclient/model_shipment_status_change_dto.go
new file mode 100644
index 0000000..5ede3e4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_shipment_status_change_dto.go
@@ -0,0 +1,230 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "time"
+)
+
+// checks if the ShipmentStatusChangeDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ShipmentStatusChangeDTO{}
+
+// ShipmentStatusChangeDTO Статус отгрузки.
+type ShipmentStatusChangeDTO struct {
+ Status *ShipmentStatusType `json:"status,omitempty"`
+ // Описание статуса отгрузки.
+ Description *string `json:"description,omitempty"`
+ // Время последнего изменения статуса отгрузки. Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC].
+ UpdateTime *time.Time `json:"updateTime,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ShipmentStatusChangeDTO ShipmentStatusChangeDTO
+
+// NewShipmentStatusChangeDTO instantiates a new ShipmentStatusChangeDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewShipmentStatusChangeDTO() *ShipmentStatusChangeDTO {
+ this := ShipmentStatusChangeDTO{}
+ return &this
+}
+
+// NewShipmentStatusChangeDTOWithDefaults instantiates a new ShipmentStatusChangeDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewShipmentStatusChangeDTOWithDefaults() *ShipmentStatusChangeDTO {
+ this := ShipmentStatusChangeDTO{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *ShipmentStatusChangeDTO) GetStatus() ShipmentStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ShipmentStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentStatusChangeDTO) GetStatusOk() (*ShipmentStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *ShipmentStatusChangeDTO) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ShipmentStatusType and assigns it to the Status field.
+func (o *ShipmentStatusChangeDTO) SetStatus(v ShipmentStatusType) {
+ o.Status = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *ShipmentStatusChangeDTO) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
+ return ret
+ }
+ return *o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentStatusChangeDTO) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
+ return nil, false
+ }
+ return o.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (o *ShipmentStatusChangeDTO) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *ShipmentStatusChangeDTO) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetUpdateTime returns the UpdateTime field value if set, zero value otherwise.
+func (o *ShipmentStatusChangeDTO) GetUpdateTime() time.Time {
+ if o == nil || IsNil(o.UpdateTime) {
+ var ret time.Time
+ return ret
+ }
+ return *o.UpdateTime
+}
+
+// GetUpdateTimeOk returns a tuple with the UpdateTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ShipmentStatusChangeDTO) GetUpdateTimeOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.UpdateTime) {
+ return nil, false
+ }
+ return o.UpdateTime, true
+}
+
+// HasUpdateTime returns a boolean if a field has been set.
+func (o *ShipmentStatusChangeDTO) HasUpdateTime() bool {
+ if o != nil && !IsNil(o.UpdateTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetUpdateTime gets a reference to the given time.Time and assigns it to the UpdateTime field.
+func (o *ShipmentStatusChangeDTO) SetUpdateTime(v time.Time) {
+ o.UpdateTime = &v
+}
+
+func (o ShipmentStatusChangeDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ShipmentStatusChangeDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.UpdateTime) {
+ toSerialize["updateTime"] = o.UpdateTime
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ShipmentStatusChangeDTO) UnmarshalJSON(data []byte) (err error) {
+ varShipmentStatusChangeDTO := _ShipmentStatusChangeDTO{}
+
+ err = json.Unmarshal(data, &varShipmentStatusChangeDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ShipmentStatusChangeDTO(varShipmentStatusChangeDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "updateTime")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableShipmentStatusChangeDTO struct {
+ value *ShipmentStatusChangeDTO
+ isSet bool
+}
+
+func (v NullableShipmentStatusChangeDTO) Get() *ShipmentStatusChangeDTO {
+ return v.value
+}
+
+func (v *NullableShipmentStatusChangeDTO) Set(val *ShipmentStatusChangeDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableShipmentStatusChangeDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableShipmentStatusChangeDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableShipmentStatusChangeDTO(val *ShipmentStatusChangeDTO) *NullableShipmentStatusChangeDTO {
+ return &NullableShipmentStatusChangeDTO{value: val, isSet: true}
+}
+
+func (v NullableShipmentStatusChangeDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableShipmentStatusChangeDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_shipment_status_type.go b/pkg/api/yandex/ymclient/model_shipment_status_type.go
new file mode 100644
index 0000000..a0a6f17
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_shipment_status_type.go
@@ -0,0 +1,122 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ShipmentStatusType Статус отгрузки: * `OUTBOUND_CREATED` — формируется. * `OUTBOUND_READY_FOR_CONFIRMATION` — можно обрабатывать. * `OUTBOUND_CONFIRMED` — подтверждена и готова к отправке. * `OUTBOUND_SIGNED` — по ней подписан электронный акт приема-передачи. * `ACCEPTED` — принята в сортировочном центре или пункте приема. * `ACCEPTED_WITH_DISCREPANCIES` — принята с расхождениями. * `FINISHED` — завершена. * `ERROR` — отменена из-за ошибки.
+type ShipmentStatusType string
+
+// List of ShipmentStatusType
+const (
+ SHIPMENTSTATUSTYPE_OUTBOUND_CREATED ShipmentStatusType = "OUTBOUND_CREATED"
+ SHIPMENTSTATUSTYPE_OUTBOUND_READY_FOR_CONFIRMATION ShipmentStatusType = "OUTBOUND_READY_FOR_CONFIRMATION"
+ SHIPMENTSTATUSTYPE_OUTBOUND_CONFIRMED ShipmentStatusType = "OUTBOUND_CONFIRMED"
+ SHIPMENTSTATUSTYPE_OUTBOUND_SIGNED ShipmentStatusType = "OUTBOUND_SIGNED"
+ SHIPMENTSTATUSTYPE_FINISHED ShipmentStatusType = "FINISHED"
+ SHIPMENTSTATUSTYPE_ACCEPTED ShipmentStatusType = "ACCEPTED"
+ SHIPMENTSTATUSTYPE_ACCEPTED_WITH_DISCREPANCIES ShipmentStatusType = "ACCEPTED_WITH_DISCREPANCIES"
+ SHIPMENTSTATUSTYPE_ERROR ShipmentStatusType = "ERROR"
+)
+
+// All allowed values of ShipmentStatusType enum
+var AllowedShipmentStatusTypeEnumValues = []ShipmentStatusType{
+ "OUTBOUND_CREATED",
+ "OUTBOUND_READY_FOR_CONFIRMATION",
+ "OUTBOUND_CONFIRMED",
+ "OUTBOUND_SIGNED",
+ "FINISHED",
+ "ACCEPTED",
+ "ACCEPTED_WITH_DISCREPANCIES",
+ "ERROR",
+}
+
+func (v *ShipmentStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ShipmentStatusType(value)
+ for _, existing := range AllowedShipmentStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ShipmentStatusType", value)
+}
+
+// NewShipmentStatusTypeFromValue returns a pointer to a valid ShipmentStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewShipmentStatusTypeFromValue(v string) (*ShipmentStatusType, error) {
+ ev := ShipmentStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ShipmentStatusType: valid values are %v", v, AllowedShipmentStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ShipmentStatusType) IsValid() bool {
+ for _, existing := range AllowedShipmentStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ShipmentStatusType value
+func (v ShipmentStatusType) Ptr() *ShipmentStatusType {
+ return &v
+}
+
+type NullableShipmentStatusType struct {
+ value *ShipmentStatusType
+ isSet bool
+}
+
+func (v NullableShipmentStatusType) Get() *ShipmentStatusType {
+ return v.value
+}
+
+func (v *NullableShipmentStatusType) Set(val *ShipmentStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableShipmentStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableShipmentStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableShipmentStatusType(val *ShipmentStatusType) *NullableShipmentStatusType {
+ return &NullableShipmentStatusType{value: val, isSet: true}
+}
+
+func (v NullableShipmentStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableShipmentStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_shipment_type.go b/pkg/api/yandex/ymclient/model_shipment_type.go
new file mode 100644
index 0000000..06010fb
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_shipment_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ShipmentType Способ отгрузки заказов: * `IMPORT` — вы самостоятельно привозите заказы в выбранный сортировочный центр или пункт приема заказов. * `WITHDRAW` — вы отгружаете заказы со своего склада курьерам Яндекс Маркета.
+type ShipmentType string
+
+// List of ShipmentType
+const (
+ SHIPMENTTYPE_IMPORT ShipmentType = "IMPORT"
+ SHIPMENTTYPE_WITHDRAW ShipmentType = "WITHDRAW"
+)
+
+// All allowed values of ShipmentType enum
+var AllowedShipmentTypeEnumValues = []ShipmentType{
+ "IMPORT",
+ "WITHDRAW",
+}
+
+func (v *ShipmentType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ShipmentType(value)
+ for _, existing := range AllowedShipmentTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ShipmentType", value)
+}
+
+// NewShipmentTypeFromValue returns a pointer to a valid ShipmentType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewShipmentTypeFromValue(v string) (*ShipmentType, error) {
+ ev := ShipmentType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ShipmentType: valid values are %v", v, AllowedShipmentTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ShipmentType) IsValid() bool {
+ for _, existing := range AllowedShipmentTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ShipmentType value
+func (v ShipmentType) Ptr() *ShipmentType {
+ return &v
+}
+
+type NullableShipmentType struct {
+ value *ShipmentType
+ isSet bool
+}
+
+func (v NullableShipmentType) Get() *ShipmentType {
+ return v.value
+}
+
+func (v *NullableShipmentType) Set(val *ShipmentType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableShipmentType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableShipmentType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableShipmentType(val *ShipmentType) *NullableShipmentType {
+ return &NullableShipmentType{value: val, isSet: true}
+}
+
+func (v NullableShipmentType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableShipmentType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_showcase_type.go b/pkg/api/yandex/ymclient/model_showcase_type.go
new file mode 100644
index 0000000..d24358c
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_showcase_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ShowcaseType Тип витрины: * `B2B` — [Яндекс Маркет для бизнеса](https://business.market.yandex.ru/) (товары для юридических лиц и ИП). Подробнее о сервисе читайте в [Справке](https://yandex.ru/support/market-for-enterprise/ru/). * `B2C` — [основная витрина Маркета](https://market.yandex.ru/) (товары для физических лиц).
+type ShowcaseType string
+
+// List of ShowcaseType
+const (
+ SHOWCASETYPE_B2_B ShowcaseType = "B2B"
+ SHOWCASETYPE_B2_C ShowcaseType = "B2C"
+)
+
+// All allowed values of ShowcaseType enum
+var AllowedShowcaseTypeEnumValues = []ShowcaseType{
+ "B2B",
+ "B2C",
+}
+
+func (v *ShowcaseType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ShowcaseType(value)
+ for _, existing := range AllowedShowcaseTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ShowcaseType", value)
+}
+
+// NewShowcaseTypeFromValue returns a pointer to a valid ShowcaseType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewShowcaseTypeFromValue(v string) (*ShowcaseType, error) {
+ ev := ShowcaseType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ShowcaseType: valid values are %v", v, AllowedShowcaseTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ShowcaseType) IsValid() bool {
+ for _, existing := range AllowedShowcaseTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ShowcaseType value
+func (v ShowcaseType) Ptr() *ShowcaseType {
+ return &v
+}
+
+type NullableShowcaseType struct {
+ value *ShowcaseType
+ isSet bool
+}
+
+func (v NullableShowcaseType) Get() *ShowcaseType {
+ return v.value
+}
+
+func (v *NullableShowcaseType) Set(val *ShowcaseType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableShowcaseType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableShowcaseType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableShowcaseType(val *ShowcaseType) *NullableShowcaseType {
+ return &NullableShowcaseType{value: val, isSet: true}
+}
+
+func (v NullableShowcaseType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableShowcaseType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_showcase_url_dto.go b/pkg/api/yandex/ymclient/model_showcase_url_dto.go
new file mode 100644
index 0000000..7682287
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_showcase_url_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ShowcaseUrlDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ShowcaseUrlDTO{}
+
+// ShowcaseUrlDTO Ссылка на товар на витрине и ее тип.
+type ShowcaseUrlDTO struct {
+ ShowcaseType ShowcaseType `json:"showcaseType"`
+ // Ссылка на товар.
+ ShowcaseUrl string `json:"showcaseUrl"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ShowcaseUrlDTO ShowcaseUrlDTO
+
+// NewShowcaseUrlDTO instantiates a new ShowcaseUrlDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewShowcaseUrlDTO(showcaseType ShowcaseType, showcaseUrl string) *ShowcaseUrlDTO {
+ this := ShowcaseUrlDTO{}
+ this.ShowcaseType = showcaseType
+ this.ShowcaseUrl = showcaseUrl
+ return &this
+}
+
+// NewShowcaseUrlDTOWithDefaults instantiates a new ShowcaseUrlDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewShowcaseUrlDTOWithDefaults() *ShowcaseUrlDTO {
+ this := ShowcaseUrlDTO{}
+ return &this
+}
+
+// GetShowcaseType returns the ShowcaseType field value
+func (o *ShowcaseUrlDTO) GetShowcaseType() ShowcaseType {
+ if o == nil {
+ var ret ShowcaseType
+ return ret
+ }
+
+ return o.ShowcaseType
+}
+
+// GetShowcaseTypeOk returns a tuple with the ShowcaseType field value
+// and a boolean to check if the value has been set.
+func (o *ShowcaseUrlDTO) GetShowcaseTypeOk() (*ShowcaseType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ShowcaseType, true
+}
+
+// SetShowcaseType sets field value
+func (o *ShowcaseUrlDTO) SetShowcaseType(v ShowcaseType) {
+ o.ShowcaseType = v
+}
+
+// GetShowcaseUrl returns the ShowcaseUrl field value
+func (o *ShowcaseUrlDTO) GetShowcaseUrl() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ShowcaseUrl
+}
+
+// GetShowcaseUrlOk returns a tuple with the ShowcaseUrl field value
+// and a boolean to check if the value has been set.
+func (o *ShowcaseUrlDTO) GetShowcaseUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ShowcaseUrl, true
+}
+
+// SetShowcaseUrl sets field value
+func (o *ShowcaseUrlDTO) SetShowcaseUrl(v string) {
+ o.ShowcaseUrl = v
+}
+
+func (o ShowcaseUrlDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ShowcaseUrlDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["showcaseType"] = o.ShowcaseType
+ toSerialize["showcaseUrl"] = o.ShowcaseUrl
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ShowcaseUrlDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "showcaseType",
+ "showcaseUrl",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varShowcaseUrlDTO := _ShowcaseUrlDTO{}
+
+ err = json.Unmarshal(data, &varShowcaseUrlDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ShowcaseUrlDTO(varShowcaseUrlDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "showcaseType")
+ delete(additionalProperties, "showcaseUrl")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableShowcaseUrlDTO struct {
+ value *ShowcaseUrlDTO
+ isSet bool
+}
+
+func (v NullableShowcaseUrlDTO) Get() *ShowcaseUrlDTO {
+ return v.value
+}
+
+func (v *NullableShowcaseUrlDTO) Set(val *ShowcaseUrlDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableShowcaseUrlDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableShowcaseUrlDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableShowcaseUrlDTO(val *ShowcaseUrlDTO) *NullableShowcaseUrlDTO {
+ return &NullableShowcaseUrlDTO{value: val, isSet: true}
+}
+
+func (v NullableShowcaseUrlDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableShowcaseUrlDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_shows_sales_grouping_type.go b/pkg/api/yandex/ymclient/model_shows_sales_grouping_type.go
new file mode 100644
index 0000000..8915901
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_shows_sales_grouping_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ShowsSalesGroupingType Группировка данных отчета. Возможные значения: * `CATEGORIES` — группировка по категориям. * `OFFERS` — группировка по товарам.
+type ShowsSalesGroupingType string
+
+// List of ShowsSalesGroupingType
+const (
+ SHOWSSALESGROUPINGTYPE_CATEGORIES ShowsSalesGroupingType = "CATEGORIES"
+ SHOWSSALESGROUPINGTYPE_OFFERS ShowsSalesGroupingType = "OFFERS"
+)
+
+// All allowed values of ShowsSalesGroupingType enum
+var AllowedShowsSalesGroupingTypeEnumValues = []ShowsSalesGroupingType{
+ "CATEGORIES",
+ "OFFERS",
+}
+
+func (v *ShowsSalesGroupingType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ShowsSalesGroupingType(value)
+ for _, existing := range AllowedShowsSalesGroupingTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ShowsSalesGroupingType", value)
+}
+
+// NewShowsSalesGroupingTypeFromValue returns a pointer to a valid ShowsSalesGroupingType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewShowsSalesGroupingTypeFromValue(v string) (*ShowsSalesGroupingType, error) {
+ ev := ShowsSalesGroupingType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ShowsSalesGroupingType: valid values are %v", v, AllowedShowsSalesGroupingTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ShowsSalesGroupingType) IsValid() bool {
+ for _, existing := range AllowedShowsSalesGroupingTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ShowsSalesGroupingType value
+func (v ShowsSalesGroupingType) Ptr() *ShowsSalesGroupingType {
+ return &v
+}
+
+type NullableShowsSalesGroupingType struct {
+ value *ShowsSalesGroupingType
+ isSet bool
+}
+
+func (v NullableShowsSalesGroupingType) Get() *ShowsSalesGroupingType {
+ return v.value
+}
+
+func (v *NullableShowsSalesGroupingType) Set(val *ShowsSalesGroupingType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableShowsSalesGroupingType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableShowsSalesGroupingType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableShowsSalesGroupingType(val *ShowsSalesGroupingType) *NullableShowsSalesGroupingType {
+ return &NullableShowsSalesGroupingType{value: val, isSet: true}
+}
+
+func (v NullableShowsSalesGroupingType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableShowsSalesGroupingType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_signature_dto.go b/pkg/api/yandex/ymclient/model_signature_dto.go
new file mode 100644
index 0000000..863ce7d
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_signature_dto.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SignatureDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SignatureDTO{}
+
+// SignatureDTO Информация о подписи акта приема-передачи.
+type SignatureDTO struct {
+ // Подписан ли акт приема-передачи.
+ Signed bool `json:"signed"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SignatureDTO SignatureDTO
+
+// NewSignatureDTO instantiates a new SignatureDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSignatureDTO(signed bool) *SignatureDTO {
+ this := SignatureDTO{}
+ this.Signed = signed
+ return &this
+}
+
+// NewSignatureDTOWithDefaults instantiates a new SignatureDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSignatureDTOWithDefaults() *SignatureDTO {
+ this := SignatureDTO{}
+ return &this
+}
+
+// GetSigned returns the Signed field value
+func (o *SignatureDTO) GetSigned() bool {
+ if o == nil {
+ var ret bool
+ return ret
+ }
+
+ return o.Signed
+}
+
+// GetSignedOk returns a tuple with the Signed field value
+// and a boolean to check if the value has been set.
+func (o *SignatureDTO) GetSignedOk() (*bool, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Signed, true
+}
+
+// SetSigned sets field value
+func (o *SignatureDTO) SetSigned(v bool) {
+ o.Signed = v
+}
+
+func (o SignatureDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SignatureDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["signed"] = o.Signed
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SignatureDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "signed",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSignatureDTO := _SignatureDTO{}
+
+ err = json.Unmarshal(data, &varSignatureDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SignatureDTO(varSignatureDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "signed")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSignatureDTO struct {
+ value *SignatureDTO
+ isSet bool
+}
+
+func (v NullableSignatureDTO) Get() *SignatureDTO {
+ return v.value
+}
+
+func (v *NullableSignatureDTO) Set(val *SignatureDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSignatureDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSignatureDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSignatureDTO(val *SignatureDTO) *NullableSignatureDTO {
+ return &NullableSignatureDTO{value: val, isSet: true}
+}
+
+func (v NullableSignatureDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSignatureDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_skip_goods_feedback_reaction_request.go b/pkg/api/yandex/ymclient/model_skip_goods_feedback_reaction_request.go
new file mode 100644
index 0000000..2884707
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_skip_goods_feedback_reaction_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SkipGoodsFeedbackReactionRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SkipGoodsFeedbackReactionRequest{}
+
+// SkipGoodsFeedbackReactionRequest Идентификаторы отзывов.
+type SkipGoodsFeedbackReactionRequest struct {
+ // Список идентификаторов отзывов, на которые магазин не будет отвечать.
+ FeedbackIds []int64 `json:"feedbackIds"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SkipGoodsFeedbackReactionRequest SkipGoodsFeedbackReactionRequest
+
+// NewSkipGoodsFeedbackReactionRequest instantiates a new SkipGoodsFeedbackReactionRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSkipGoodsFeedbackReactionRequest(feedbackIds []int64) *SkipGoodsFeedbackReactionRequest {
+ this := SkipGoodsFeedbackReactionRequest{}
+ this.FeedbackIds = feedbackIds
+ return &this
+}
+
+// NewSkipGoodsFeedbackReactionRequestWithDefaults instantiates a new SkipGoodsFeedbackReactionRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSkipGoodsFeedbackReactionRequestWithDefaults() *SkipGoodsFeedbackReactionRequest {
+ this := SkipGoodsFeedbackReactionRequest{}
+ return &this
+}
+
+// GetFeedbackIds returns the FeedbackIds field value
+func (o *SkipGoodsFeedbackReactionRequest) GetFeedbackIds() []int64 {
+ if o == nil {
+ var ret []int64
+ return ret
+ }
+
+ return o.FeedbackIds
+}
+
+// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value
+// and a boolean to check if the value has been set.
+func (o *SkipGoodsFeedbackReactionRequest) GetFeedbackIdsOk() ([]int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.FeedbackIds, true
+}
+
+// SetFeedbackIds sets field value
+func (o *SkipGoodsFeedbackReactionRequest) SetFeedbackIds(v []int64) {
+ o.FeedbackIds = v
+}
+
+func (o SkipGoodsFeedbackReactionRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SkipGoodsFeedbackReactionRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["feedbackIds"] = o.FeedbackIds
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SkipGoodsFeedbackReactionRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "feedbackIds",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSkipGoodsFeedbackReactionRequest := _SkipGoodsFeedbackReactionRequest{}
+
+ err = json.Unmarshal(data, &varSkipGoodsFeedbackReactionRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SkipGoodsFeedbackReactionRequest(varSkipGoodsFeedbackReactionRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "feedbackIds")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSkipGoodsFeedbackReactionRequest struct {
+ value *SkipGoodsFeedbackReactionRequest
+ isSet bool
+}
+
+func (v NullableSkipGoodsFeedbackReactionRequest) Get() *SkipGoodsFeedbackReactionRequest {
+ return v.value
+}
+
+func (v *NullableSkipGoodsFeedbackReactionRequest) Set(val *SkipGoodsFeedbackReactionRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSkipGoodsFeedbackReactionRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSkipGoodsFeedbackReactionRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSkipGoodsFeedbackReactionRequest(val *SkipGoodsFeedbackReactionRequest) *NullableSkipGoodsFeedbackReactionRequest {
+ return &NullableSkipGoodsFeedbackReactionRequest{value: val, isSet: true}
+}
+
+func (v NullableSkipGoodsFeedbackReactionRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSkipGoodsFeedbackReactionRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_sku_bid_item_dto.go b/pkg/api/yandex/ymclient/model_sku_bid_item_dto.go
new file mode 100644
index 0000000..110cafa
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_sku_bid_item_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SkuBidItemDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SkuBidItemDTO{}
+
+// SkuBidItemDTO Список товаров и ставок на них.
+type SkuBidItemDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ Sku string `json:"sku" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Значение ставки.
+ Bid int32 `json:"bid"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SkuBidItemDTO SkuBidItemDTO
+
+// NewSkuBidItemDTO instantiates a new SkuBidItemDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSkuBidItemDTO(sku string, bid int32) *SkuBidItemDTO {
+ this := SkuBidItemDTO{}
+ this.Sku = sku
+ this.Bid = bid
+ return &this
+}
+
+// NewSkuBidItemDTOWithDefaults instantiates a new SkuBidItemDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSkuBidItemDTOWithDefaults() *SkuBidItemDTO {
+ this := SkuBidItemDTO{}
+ return &this
+}
+
+// GetSku returns the Sku field value
+func (o *SkuBidItemDTO) GetSku() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Sku
+}
+
+// GetSkuOk returns a tuple with the Sku field value
+// and a boolean to check if the value has been set.
+func (o *SkuBidItemDTO) GetSkuOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Sku, true
+}
+
+// SetSku sets field value
+func (o *SkuBidItemDTO) SetSku(v string) {
+ o.Sku = v
+}
+
+// GetBid returns the Bid field value
+func (o *SkuBidItemDTO) GetBid() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Bid
+}
+
+// GetBidOk returns a tuple with the Bid field value
+// and a boolean to check if the value has been set.
+func (o *SkuBidItemDTO) GetBidOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Bid, true
+}
+
+// SetBid sets field value
+func (o *SkuBidItemDTO) SetBid(v int32) {
+ o.Bid = v
+}
+
+func (o SkuBidItemDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SkuBidItemDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["sku"] = o.Sku
+ toSerialize["bid"] = o.Bid
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SkuBidItemDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "sku",
+ "bid",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSkuBidItemDTO := _SkuBidItemDTO{}
+
+ err = json.Unmarshal(data, &varSkuBidItemDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SkuBidItemDTO(varSkuBidItemDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "sku")
+ delete(additionalProperties, "bid")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSkuBidItemDTO struct {
+ value *SkuBidItemDTO
+ isSet bool
+}
+
+func (v NullableSkuBidItemDTO) Get() *SkuBidItemDTO {
+ return v.value
+}
+
+func (v *NullableSkuBidItemDTO) Set(val *SkuBidItemDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSkuBidItemDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSkuBidItemDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSkuBidItemDTO(val *SkuBidItemDTO) *NullableSkuBidItemDTO {
+ return &NullableSkuBidItemDTO{value: val, isSet: true}
+}
+
+func (v NullableSkuBidItemDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSkuBidItemDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_sku_bid_recommendation_item_dto.go b/pkg/api/yandex/ymclient/model_sku_bid_recommendation_item_dto.go
new file mode 100644
index 0000000..da3c857
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_sku_bid_recommendation_item_dto.go
@@ -0,0 +1,279 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SkuBidRecommendationItemDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SkuBidRecommendationItemDTO{}
+
+// SkuBidRecommendationItemDTO Список товаров с рекомендованными ставками.
+type SkuBidRecommendationItemDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ Sku string `json:"sku" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Значение ставки.
+ Bid int32 `json:"bid"`
+ // Список рекомендованных ставок с соответствующими долями показов и доступными дополнительными инструментами продвижения. Чем больше ставка, тем большую долю показов она помогает получить и тем больше дополнительных инструментов продвижения доступно.
+ BidRecommendations []BidRecommendationItemDTO `json:"bidRecommendations,omitempty"`
+ // Рекомендованные цены.
+ // Deprecated
+ PriceRecommendations []PriceRecommendationItemDTO `json:"priceRecommendations,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SkuBidRecommendationItemDTO SkuBidRecommendationItemDTO
+
+// NewSkuBidRecommendationItemDTO instantiates a new SkuBidRecommendationItemDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSkuBidRecommendationItemDTO(sku string, bid int32) *SkuBidRecommendationItemDTO {
+ this := SkuBidRecommendationItemDTO{}
+ this.Sku = sku
+ this.Bid = bid
+ return &this
+}
+
+// NewSkuBidRecommendationItemDTOWithDefaults instantiates a new SkuBidRecommendationItemDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSkuBidRecommendationItemDTOWithDefaults() *SkuBidRecommendationItemDTO {
+ this := SkuBidRecommendationItemDTO{}
+ return &this
+}
+
+// GetSku returns the Sku field value
+func (o *SkuBidRecommendationItemDTO) GetSku() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Sku
+}
+
+// GetSkuOk returns a tuple with the Sku field value
+// and a boolean to check if the value has been set.
+func (o *SkuBidRecommendationItemDTO) GetSkuOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Sku, true
+}
+
+// SetSku sets field value
+func (o *SkuBidRecommendationItemDTO) SetSku(v string) {
+ o.Sku = v
+}
+
+// GetBid returns the Bid field value
+func (o *SkuBidRecommendationItemDTO) GetBid() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Bid
+}
+
+// GetBidOk returns a tuple with the Bid field value
+// and a boolean to check if the value has been set.
+func (o *SkuBidRecommendationItemDTO) GetBidOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Bid, true
+}
+
+// SetBid sets field value
+func (o *SkuBidRecommendationItemDTO) SetBid(v int32) {
+ o.Bid = v
+}
+
+// GetBidRecommendations returns the BidRecommendations field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *SkuBidRecommendationItemDTO) GetBidRecommendations() []BidRecommendationItemDTO {
+ if o == nil {
+ var ret []BidRecommendationItemDTO
+ return ret
+ }
+ return o.BidRecommendations
+}
+
+// GetBidRecommendationsOk returns a tuple with the BidRecommendations field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *SkuBidRecommendationItemDTO) GetBidRecommendationsOk() ([]BidRecommendationItemDTO, bool) {
+ if o == nil || IsNil(o.BidRecommendations) {
+ return nil, false
+ }
+ return o.BidRecommendations, true
+}
+
+// HasBidRecommendations returns a boolean if a field has been set.
+func (o *SkuBidRecommendationItemDTO) HasBidRecommendations() bool {
+ if o != nil && !IsNil(o.BidRecommendations) {
+ return true
+ }
+
+ return false
+}
+
+// SetBidRecommendations gets a reference to the given []BidRecommendationItemDTO and assigns it to the BidRecommendations field.
+func (o *SkuBidRecommendationItemDTO) SetBidRecommendations(v []BidRecommendationItemDTO) {
+ o.BidRecommendations = v
+}
+
+// GetPriceRecommendations returns the PriceRecommendations field value if set, zero value otherwise (both if not set or set to explicit null).
+// Deprecated
+func (o *SkuBidRecommendationItemDTO) GetPriceRecommendations() []PriceRecommendationItemDTO {
+ if o == nil {
+ var ret []PriceRecommendationItemDTO
+ return ret
+ }
+ return o.PriceRecommendations
+}
+
+// GetPriceRecommendationsOk returns a tuple with the PriceRecommendations field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+// Deprecated
+func (o *SkuBidRecommendationItemDTO) GetPriceRecommendationsOk() ([]PriceRecommendationItemDTO, bool) {
+ if o == nil || IsNil(o.PriceRecommendations) {
+ return nil, false
+ }
+ return o.PriceRecommendations, true
+}
+
+// HasPriceRecommendations returns a boolean if a field has been set.
+func (o *SkuBidRecommendationItemDTO) HasPriceRecommendations() bool {
+ if o != nil && !IsNil(o.PriceRecommendations) {
+ return true
+ }
+
+ return false
+}
+
+// SetPriceRecommendations gets a reference to the given []PriceRecommendationItemDTO and assigns it to the PriceRecommendations field.
+// Deprecated
+func (o *SkuBidRecommendationItemDTO) SetPriceRecommendations(v []PriceRecommendationItemDTO) {
+ o.PriceRecommendations = v
+}
+
+func (o SkuBidRecommendationItemDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SkuBidRecommendationItemDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["sku"] = o.Sku
+ toSerialize["bid"] = o.Bid
+ if o.BidRecommendations != nil {
+ toSerialize["bidRecommendations"] = o.BidRecommendations
+ }
+ if o.PriceRecommendations != nil {
+ toSerialize["priceRecommendations"] = o.PriceRecommendations
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SkuBidRecommendationItemDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "sku",
+ "bid",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSkuBidRecommendationItemDTO := _SkuBidRecommendationItemDTO{}
+
+ err = json.Unmarshal(data, &varSkuBidRecommendationItemDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SkuBidRecommendationItemDTO(varSkuBidRecommendationItemDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "sku")
+ delete(additionalProperties, "bid")
+ delete(additionalProperties, "bidRecommendations")
+ delete(additionalProperties, "priceRecommendations")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSkuBidRecommendationItemDTO struct {
+ value *SkuBidRecommendationItemDTO
+ isSet bool
+}
+
+func (v NullableSkuBidRecommendationItemDTO) Get() *SkuBidRecommendationItemDTO {
+ return v.value
+}
+
+func (v *NullableSkuBidRecommendationItemDTO) Set(val *SkuBidRecommendationItemDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSkuBidRecommendationItemDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSkuBidRecommendationItemDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSkuBidRecommendationItemDTO(val *SkuBidRecommendationItemDTO) *NullableSkuBidRecommendationItemDTO {
+ return &NullableSkuBidRecommendationItemDTO{value: val, isSet: true}
+}
+
+func (v NullableSkuBidRecommendationItemDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSkuBidRecommendationItemDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_sort_order_type.go b/pkg/api/yandex/ymclient/model_sort_order_type.go
new file mode 100644
index 0000000..f9bea3a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_sort_order_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// SortOrderType Направление сортировки: - `ASC` — сортировка по возрастанию. - `DESC` — сортировка по убыванию.
+type SortOrderType string
+
+// List of SortOrderType
+const (
+ SORTORDERTYPE_ASC SortOrderType = "ASC"
+ SORTORDERTYPE_DESC SortOrderType = "DESC"
+)
+
+// All allowed values of SortOrderType enum
+var AllowedSortOrderTypeEnumValues = []SortOrderType{
+ "ASC",
+ "DESC",
+}
+
+func (v *SortOrderType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SortOrderType(value)
+ for _, existing := range AllowedSortOrderTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid SortOrderType", value)
+}
+
+// NewSortOrderTypeFromValue returns a pointer to a valid SortOrderType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSortOrderTypeFromValue(v string) (*SortOrderType, error) {
+ ev := SortOrderType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SortOrderType: valid values are %v", v, AllowedSortOrderTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SortOrderType) IsValid() bool {
+ for _, existing := range AllowedSortOrderTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to SortOrderType value
+func (v SortOrderType) Ptr() *SortOrderType {
+ return &v
+}
+
+type NullableSortOrderType struct {
+ value *SortOrderType
+ isSet bool
+}
+
+func (v NullableSortOrderType) Get() *SortOrderType {
+ return v.value
+}
+
+func (v *NullableSortOrderType) Set(val *SortOrderType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSortOrderType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSortOrderType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSortOrderType(val *SortOrderType) *NullableSortOrderType {
+ return &NullableSortOrderType{value: val, isSet: true}
+}
+
+func (v NullableSortOrderType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSortOrderType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_statistics_attribution_type.go b/pkg/api/yandex/ymclient/model_statistics_attribution_type.go
new file mode 100644
index 0000000..ce7f67c
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_statistics_attribution_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// StatisticsAttributionType Тип атрибуции: * `CLICKS` — по кликам. * `SHOWS` — по показам.
О том, какие данные в отчете зависят и не зависят от типа атрибуции, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/marketing/shelf#stats).
+type StatisticsAttributionType string
+
+// List of StatisticsAttributionType
+const (
+ STATISTICSATTRIBUTIONTYPE_CLICKS StatisticsAttributionType = "CLICKS"
+ STATISTICSATTRIBUTIONTYPE_SHOWS StatisticsAttributionType = "SHOWS"
+)
+
+// All allowed values of StatisticsAttributionType enum
+var AllowedStatisticsAttributionTypeEnumValues = []StatisticsAttributionType{
+ "CLICKS",
+ "SHOWS",
+}
+
+func (v *StatisticsAttributionType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := StatisticsAttributionType(value)
+ for _, existing := range AllowedStatisticsAttributionTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid StatisticsAttributionType", value)
+}
+
+// NewStatisticsAttributionTypeFromValue returns a pointer to a valid StatisticsAttributionType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewStatisticsAttributionTypeFromValue(v string) (*StatisticsAttributionType, error) {
+ ev := StatisticsAttributionType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for StatisticsAttributionType: valid values are %v", v, AllowedStatisticsAttributionTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v StatisticsAttributionType) IsValid() bool {
+ for _, existing := range AllowedStatisticsAttributionTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to StatisticsAttributionType value
+func (v StatisticsAttributionType) Ptr() *StatisticsAttributionType {
+ return &v
+}
+
+type NullableStatisticsAttributionType struct {
+ value *StatisticsAttributionType
+ isSet bool
+}
+
+func (v NullableStatisticsAttributionType) Get() *StatisticsAttributionType {
+ return v.value
+}
+
+func (v *NullableStatisticsAttributionType) Set(val *StatisticsAttributionType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableStatisticsAttributionType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableStatisticsAttributionType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableStatisticsAttributionType(val *StatisticsAttributionType) *NullableStatisticsAttributionType {
+ return &NullableStatisticsAttributionType{value: val, isSet: true}
+}
+
+func (v NullableStatisticsAttributionType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableStatisticsAttributionType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_submit_return_decision_request.go b/pkg/api/yandex/ymclient/model_submit_return_decision_request.go
new file mode 100644
index 0000000..8c7c386
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_submit_return_decision_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SubmitReturnDecisionRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SubmitReturnDecisionRequest{}
+
+// SubmitReturnDecisionRequest Запрос на подтверждение решения по возврату.
+type SubmitReturnDecisionRequest struct {
+ // Решения по товарам в возврате.
+ ReturnItemDecisions []ReturnItemDecisionDTO `json:"returnItemDecisions"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SubmitReturnDecisionRequest SubmitReturnDecisionRequest
+
+// NewSubmitReturnDecisionRequest instantiates a new SubmitReturnDecisionRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSubmitReturnDecisionRequest(returnItemDecisions []ReturnItemDecisionDTO) *SubmitReturnDecisionRequest {
+ this := SubmitReturnDecisionRequest{}
+ this.ReturnItemDecisions = returnItemDecisions
+ return &this
+}
+
+// NewSubmitReturnDecisionRequestWithDefaults instantiates a new SubmitReturnDecisionRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSubmitReturnDecisionRequestWithDefaults() *SubmitReturnDecisionRequest {
+ this := SubmitReturnDecisionRequest{}
+ return &this
+}
+
+// GetReturnItemDecisions returns the ReturnItemDecisions field value
+func (o *SubmitReturnDecisionRequest) GetReturnItemDecisions() []ReturnItemDecisionDTO {
+ if o == nil {
+ var ret []ReturnItemDecisionDTO
+ return ret
+ }
+
+ return o.ReturnItemDecisions
+}
+
+// GetReturnItemDecisionsOk returns a tuple with the ReturnItemDecisions field value
+// and a boolean to check if the value has been set.
+func (o *SubmitReturnDecisionRequest) GetReturnItemDecisionsOk() ([]ReturnItemDecisionDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ReturnItemDecisions, true
+}
+
+// SetReturnItemDecisions sets field value
+func (o *SubmitReturnDecisionRequest) SetReturnItemDecisions(v []ReturnItemDecisionDTO) {
+ o.ReturnItemDecisions = v
+}
+
+func (o SubmitReturnDecisionRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SubmitReturnDecisionRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["returnItemDecisions"] = o.ReturnItemDecisions
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SubmitReturnDecisionRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "returnItemDecisions",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSubmitReturnDecisionRequest := _SubmitReturnDecisionRequest{}
+
+ err = json.Unmarshal(data, &varSubmitReturnDecisionRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SubmitReturnDecisionRequest(varSubmitReturnDecisionRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "returnItemDecisions")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSubmitReturnDecisionRequest struct {
+ value *SubmitReturnDecisionRequest
+ isSet bool
+}
+
+func (v NullableSubmitReturnDecisionRequest) Get() *SubmitReturnDecisionRequest {
+ return v.value
+}
+
+func (v *NullableSubmitReturnDecisionRequest) Set(val *SubmitReturnDecisionRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSubmitReturnDecisionRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSubmitReturnDecisionRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSubmitReturnDecisionRequest(val *SubmitReturnDecisionRequest) *NullableSubmitReturnDecisionRequest {
+ return &NullableSubmitReturnDecisionRequest{value: val, isSet: true}
+}
+
+func (v NullableSubmitReturnDecisionRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSubmitReturnDecisionRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_suggest_offer_price_dto.go b/pkg/api/yandex/ymclient/model_suggest_offer_price_dto.go
new file mode 100644
index 0000000..0a7e6a8
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_suggest_offer_price_dto.go
@@ -0,0 +1,192 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the SuggestOfferPriceDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SuggestOfferPriceDTO{}
+
+// SuggestOfferPriceDTO Товар, для которого требуется получить цены для продвижения.
+type SuggestOfferPriceDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId *string `json:"offerId,omitempty" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Идентификатор карточки товара на Маркете.
+ MarketSku *int64 `json:"marketSku,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SuggestOfferPriceDTO SuggestOfferPriceDTO
+
+// NewSuggestOfferPriceDTO instantiates a new SuggestOfferPriceDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSuggestOfferPriceDTO() *SuggestOfferPriceDTO {
+ this := SuggestOfferPriceDTO{}
+ return &this
+}
+
+// NewSuggestOfferPriceDTOWithDefaults instantiates a new SuggestOfferPriceDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSuggestOfferPriceDTOWithDefaults() *SuggestOfferPriceDTO {
+ this := SuggestOfferPriceDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value if set, zero value otherwise.
+func (o *SuggestOfferPriceDTO) GetOfferId() string {
+ if o == nil || IsNil(o.OfferId) {
+ var ret string
+ return ret
+ }
+ return *o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestOfferPriceDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil || IsNil(o.OfferId) {
+ return nil, false
+ }
+ return o.OfferId, true
+}
+
+// HasOfferId returns a boolean if a field has been set.
+func (o *SuggestOfferPriceDTO) HasOfferId() bool {
+ if o != nil && !IsNil(o.OfferId) {
+ return true
+ }
+
+ return false
+}
+
+// SetOfferId gets a reference to the given string and assigns it to the OfferId field.
+func (o *SuggestOfferPriceDTO) SetOfferId(v string) {
+ o.OfferId = &v
+}
+
+// GetMarketSku returns the MarketSku field value if set, zero value otherwise.
+func (o *SuggestOfferPriceDTO) GetMarketSku() int64 {
+ if o == nil || IsNil(o.MarketSku) {
+ var ret int64
+ return ret
+ }
+ return *o.MarketSku
+}
+
+// GetMarketSkuOk returns a tuple with the MarketSku field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestOfferPriceDTO) GetMarketSkuOk() (*int64, bool) {
+ if o == nil || IsNil(o.MarketSku) {
+ return nil, false
+ }
+ return o.MarketSku, true
+}
+
+// HasMarketSku returns a boolean if a field has been set.
+func (o *SuggestOfferPriceDTO) HasMarketSku() bool {
+ if o != nil && !IsNil(o.MarketSku) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarketSku gets a reference to the given int64 and assigns it to the MarketSku field.
+func (o *SuggestOfferPriceDTO) SetMarketSku(v int64) {
+ o.MarketSku = &v
+}
+
+func (o SuggestOfferPriceDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SuggestOfferPriceDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.OfferId) {
+ toSerialize["offerId"] = o.OfferId
+ }
+ if !IsNil(o.MarketSku) {
+ toSerialize["marketSku"] = o.MarketSku
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SuggestOfferPriceDTO) UnmarshalJSON(data []byte) (err error) {
+ varSuggestOfferPriceDTO := _SuggestOfferPriceDTO{}
+
+ err = json.Unmarshal(data, &varSuggestOfferPriceDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SuggestOfferPriceDTO(varSuggestOfferPriceDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "marketSku")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSuggestOfferPriceDTO struct {
+ value *SuggestOfferPriceDTO
+ isSet bool
+}
+
+func (v NullableSuggestOfferPriceDTO) Get() *SuggestOfferPriceDTO {
+ return v.value
+}
+
+func (v *NullableSuggestOfferPriceDTO) Set(val *SuggestOfferPriceDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSuggestOfferPriceDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSuggestOfferPriceDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSuggestOfferPriceDTO(val *SuggestOfferPriceDTO) *NullableSuggestOfferPriceDTO {
+ return &NullableSuggestOfferPriceDTO{value: val, isSet: true}
+}
+
+func (v NullableSuggestOfferPriceDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSuggestOfferPriceDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_suggest_prices_request.go b/pkg/api/yandex/ymclient/model_suggest_prices_request.go
new file mode 100644
index 0000000..ab06d06
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_suggest_prices_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SuggestPricesRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SuggestPricesRequest{}
+
+// SuggestPricesRequest Запрос на получение списка цен для продвижения.
+type SuggestPricesRequest struct {
+ // Список товаров.
+ Offers []SuggestOfferPriceDTO `json:"offers"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SuggestPricesRequest SuggestPricesRequest
+
+// NewSuggestPricesRequest instantiates a new SuggestPricesRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSuggestPricesRequest(offers []SuggestOfferPriceDTO) *SuggestPricesRequest {
+ this := SuggestPricesRequest{}
+ this.Offers = offers
+ return &this
+}
+
+// NewSuggestPricesRequestWithDefaults instantiates a new SuggestPricesRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSuggestPricesRequestWithDefaults() *SuggestPricesRequest {
+ this := SuggestPricesRequest{}
+ return &this
+}
+
+// GetOffers returns the Offers field value
+func (o *SuggestPricesRequest) GetOffers() []SuggestOfferPriceDTO {
+ if o == nil {
+ var ret []SuggestOfferPriceDTO
+ return ret
+ }
+
+ return o.Offers
+}
+
+// GetOffersOk returns a tuple with the Offers field value
+// and a boolean to check if the value has been set.
+func (o *SuggestPricesRequest) GetOffersOk() ([]SuggestOfferPriceDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Offers, true
+}
+
+// SetOffers sets field value
+func (o *SuggestPricesRequest) SetOffers(v []SuggestOfferPriceDTO) {
+ o.Offers = v
+}
+
+func (o SuggestPricesRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SuggestPricesRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offers"] = o.Offers
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SuggestPricesRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offers",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSuggestPricesRequest := _SuggestPricesRequest{}
+
+ err = json.Unmarshal(data, &varSuggestPricesRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SuggestPricesRequest(varSuggestPricesRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offers")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSuggestPricesRequest struct {
+ value *SuggestPricesRequest
+ isSet bool
+}
+
+func (v NullableSuggestPricesRequest) Get() *SuggestPricesRequest {
+ return v.value
+}
+
+func (v *NullableSuggestPricesRequest) Set(val *SuggestPricesRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSuggestPricesRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSuggestPricesRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSuggestPricesRequest(val *SuggestPricesRequest) *NullableSuggestPricesRequest {
+ return &NullableSuggestPricesRequest{value: val, isSet: true}
+}
+
+func (v NullableSuggestPricesRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSuggestPricesRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_suggest_prices_response.go b/pkg/api/yandex/ymclient/model_suggest_prices_response.go
new file mode 100644
index 0000000..24d722a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_suggest_prices_response.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the SuggestPricesResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SuggestPricesResponse{}
+
+// SuggestPricesResponse Ответ на запрос списка цен для продвижения.
+type SuggestPricesResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ Result *SuggestPricesResultDTO `json:"result,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SuggestPricesResponse SuggestPricesResponse
+
+// NewSuggestPricesResponse instantiates a new SuggestPricesResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSuggestPricesResponse() *SuggestPricesResponse {
+ this := SuggestPricesResponse{}
+ return &this
+}
+
+// NewSuggestPricesResponseWithDefaults instantiates a new SuggestPricesResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSuggestPricesResponseWithDefaults() *SuggestPricesResponse {
+ this := SuggestPricesResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *SuggestPricesResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestPricesResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *SuggestPricesResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *SuggestPricesResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *SuggestPricesResponse) GetResult() SuggestPricesResultDTO {
+ if o == nil || IsNil(o.Result) {
+ var ret SuggestPricesResultDTO
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestPricesResponse) GetResultOk() (*SuggestPricesResultDTO, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *SuggestPricesResponse) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given SuggestPricesResultDTO and assigns it to the Result field.
+func (o *SuggestPricesResponse) SetResult(v SuggestPricesResultDTO) {
+ o.Result = &v
+}
+
+func (o SuggestPricesResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SuggestPricesResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SuggestPricesResponse) UnmarshalJSON(data []byte) (err error) {
+ varSuggestPricesResponse := _SuggestPricesResponse{}
+
+ err = json.Unmarshal(data, &varSuggestPricesResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SuggestPricesResponse(varSuggestPricesResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "result")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSuggestPricesResponse struct {
+ value *SuggestPricesResponse
+ isSet bool
+}
+
+func (v NullableSuggestPricesResponse) Get() *SuggestPricesResponse {
+ return v.value
+}
+
+func (v *NullableSuggestPricesResponse) Set(val *SuggestPricesResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSuggestPricesResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSuggestPricesResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSuggestPricesResponse(val *SuggestPricesResponse) *NullableSuggestPricesResponse {
+ return &NullableSuggestPricesResponse{value: val, isSet: true}
+}
+
+func (v NullableSuggestPricesResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSuggestPricesResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_suggest_prices_result_dto.go b/pkg/api/yandex/ymclient/model_suggest_prices_result_dto.go
new file mode 100644
index 0000000..cf5bbed
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_suggest_prices_result_dto.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SuggestPricesResultDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SuggestPricesResultDTO{}
+
+// SuggestPricesResultDTO Результат запроса цен для продвижения.
+type SuggestPricesResultDTO struct {
+ // Список товаров с ценами для продвижения.
+ Offers []PriceSuggestOfferDTO `json:"offers"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SuggestPricesResultDTO SuggestPricesResultDTO
+
+// NewSuggestPricesResultDTO instantiates a new SuggestPricesResultDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSuggestPricesResultDTO(offers []PriceSuggestOfferDTO) *SuggestPricesResultDTO {
+ this := SuggestPricesResultDTO{}
+ this.Offers = offers
+ return &this
+}
+
+// NewSuggestPricesResultDTOWithDefaults instantiates a new SuggestPricesResultDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSuggestPricesResultDTOWithDefaults() *SuggestPricesResultDTO {
+ this := SuggestPricesResultDTO{}
+ return &this
+}
+
+// GetOffers returns the Offers field value
+func (o *SuggestPricesResultDTO) GetOffers() []PriceSuggestOfferDTO {
+ if o == nil {
+ var ret []PriceSuggestOfferDTO
+ return ret
+ }
+
+ return o.Offers
+}
+
+// GetOffersOk returns a tuple with the Offers field value
+// and a boolean to check if the value has been set.
+func (o *SuggestPricesResultDTO) GetOffersOk() ([]PriceSuggestOfferDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Offers, true
+}
+
+// SetOffers sets field value
+func (o *SuggestPricesResultDTO) SetOffers(v []PriceSuggestOfferDTO) {
+ o.Offers = v
+}
+
+func (o SuggestPricesResultDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SuggestPricesResultDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offers"] = o.Offers
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SuggestPricesResultDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offers",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSuggestPricesResultDTO := _SuggestPricesResultDTO{}
+
+ err = json.Unmarshal(data, &varSuggestPricesResultDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SuggestPricesResultDTO(varSuggestPricesResultDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offers")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSuggestPricesResultDTO struct {
+ value *SuggestPricesResultDTO
+ isSet bool
+}
+
+func (v NullableSuggestPricesResultDTO) Get() *SuggestPricesResultDTO {
+ return v.value
+}
+
+func (v *NullableSuggestPricesResultDTO) Set(val *SuggestPricesResultDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSuggestPricesResultDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSuggestPricesResultDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSuggestPricesResultDTO(val *SuggestPricesResultDTO) *NullableSuggestPricesResultDTO {
+ return &NullableSuggestPricesResultDTO{value: val, isSet: true}
+}
+
+func (v NullableSuggestPricesResultDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSuggestPricesResultDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_suggested_offer_dto.go b/pkg/api/yandex/ymclient/model_suggested_offer_dto.go
new file mode 100644
index 0000000..90d796c
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_suggested_offer_dto.go
@@ -0,0 +1,424 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the SuggestedOfferDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SuggestedOfferDTO{}
+
+// SuggestedOfferDTO Информация о товаре.
+type SuggestedOfferDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId *string `json:"offerId,omitempty" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Составляйте название по схеме: тип + бренд или производитель + модель + особенности, если есть (например, цвет, размер или вес) и количество в упаковке. Не включайте в название условия продажи (например, «скидка», «бесплатная доставка» и т. д.), эмоциональные характеристики («хит», «супер» и т. д.). Не пишите слова большими буквами — кроме устоявшихся названий брендов и моделей. Оптимальная длина — 50–60 символов. [Рекомендации и правила](https://yandex.ru/support/marketplace/assortment/fields/title.html)
+ Name *string `json:"name,omitempty"`
+ // {% note warning \"Вместо него используйте `marketCategoryId`.\" %} {% endnote %} Категория товара в вашем магазине.
+ // Deprecated
+ Category *string `json:"category,omitempty"`
+ // Название бренда или производителя. Должно быть записано так, как его пишет сам бренд.
+ Vendor *string `json:"vendor,omitempty"`
+ // Указывайте в виде последовательности цифр. Подойдут коды :no-translate[EAN-13, EAN-8, UPC-A, UPC-E] или :no-translate[Code 128]. Для книг указывайте :no-translate[ISBN]. Для товаров [определенных категорий и торговых марок](https://yastatic.net/s3/doc-binary/src/support/market/ru/yandex-market-list-for-gtin.xlsx) штрихкод должен быть действительным кодом :no-translate[GTIN]. Обратите внимание: внутренние штрихкоды, начинающиеся на 2 или 02, и коды формата :no-translate[Code 128] не являются :no-translate[GTIN]. [Что такое :no-translate[GTIN]](:no-translate[*gtin])
+ Barcodes []string `json:"barcodes,omitempty"`
+ // Подробное описание товара: например, его преимущества и особенности. Не давайте в описании инструкций по установке и сборке. Не используйте слова «скидка», «распродажа», «дешевый», «подарок» (кроме подарочных категорий), «бесплатно», «акция», «специальная цена», «новинка», «new», «аналог», «заказ», «хит». Не указывайте никакой контактной информации и не давайте ссылок. Для форматирования текста можно использовать теги HTML: * \\
, \\, \\ и так далее — для заголовков; * \\
и \\
— для переноса строки; * \\
— для нумерованного списка; * \\ — для маркированного списка; * \\- — для создания элементов списка (должен находиться внутри \\
или \\); * \\ — поддерживается, но не влияет на отображение текста. Оптимальная длина — 400–600 символов. [Рекомендации и правила](https://yandex.ru/support/marketplace/assortment/fields/description.html)
+ Description *string `json:"description,omitempty"`
+ // Артикул товара от производителя.
+ VendorCode *string `json:"vendorCode,omitempty"`
+ BasicPrice *BasePriceDTO `json:"basicPrice,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SuggestedOfferDTO SuggestedOfferDTO
+
+// NewSuggestedOfferDTO instantiates a new SuggestedOfferDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSuggestedOfferDTO() *SuggestedOfferDTO {
+ this := SuggestedOfferDTO{}
+ return &this
+}
+
+// NewSuggestedOfferDTOWithDefaults instantiates a new SuggestedOfferDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSuggestedOfferDTOWithDefaults() *SuggestedOfferDTO {
+ this := SuggestedOfferDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value if set, zero value otherwise.
+func (o *SuggestedOfferDTO) GetOfferId() string {
+ if o == nil || IsNil(o.OfferId) {
+ var ret string
+ return ret
+ }
+ return *o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestedOfferDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil || IsNil(o.OfferId) {
+ return nil, false
+ }
+ return o.OfferId, true
+}
+
+// HasOfferId returns a boolean if a field has been set.
+func (o *SuggestedOfferDTO) HasOfferId() bool {
+ if o != nil && !IsNil(o.OfferId) {
+ return true
+ }
+
+ return false
+}
+
+// SetOfferId gets a reference to the given string and assigns it to the OfferId field.
+func (o *SuggestedOfferDTO) SetOfferId(v string) {
+ o.OfferId = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *SuggestedOfferDTO) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestedOfferDTO) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *SuggestedOfferDTO) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *SuggestedOfferDTO) SetName(v string) {
+ o.Name = &v
+}
+
+// GetCategory returns the Category field value if set, zero value otherwise.
+// Deprecated
+func (o *SuggestedOfferDTO) GetCategory() string {
+ if o == nil || IsNil(o.Category) {
+ var ret string
+ return ret
+ }
+ return *o.Category
+}
+
+// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *SuggestedOfferDTO) GetCategoryOk() (*string, bool) {
+ if o == nil || IsNil(o.Category) {
+ return nil, false
+ }
+ return o.Category, true
+}
+
+// HasCategory returns a boolean if a field has been set.
+func (o *SuggestedOfferDTO) HasCategory() bool {
+ if o != nil && !IsNil(o.Category) {
+ return true
+ }
+
+ return false
+}
+
+// SetCategory gets a reference to the given string and assigns it to the Category field.
+// Deprecated
+func (o *SuggestedOfferDTO) SetCategory(v string) {
+ o.Category = &v
+}
+
+// GetVendor returns the Vendor field value if set, zero value otherwise.
+func (o *SuggestedOfferDTO) GetVendor() string {
+ if o == nil || IsNil(o.Vendor) {
+ var ret string
+ return ret
+ }
+ return *o.Vendor
+}
+
+// GetVendorOk returns a tuple with the Vendor field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestedOfferDTO) GetVendorOk() (*string, bool) {
+ if o == nil || IsNil(o.Vendor) {
+ return nil, false
+ }
+ return o.Vendor, true
+}
+
+// HasVendor returns a boolean if a field has been set.
+func (o *SuggestedOfferDTO) HasVendor() bool {
+ if o != nil && !IsNil(o.Vendor) {
+ return true
+ }
+
+ return false
+}
+
+// SetVendor gets a reference to the given string and assigns it to the Vendor field.
+func (o *SuggestedOfferDTO) SetVendor(v string) {
+ o.Vendor = &v
+}
+
+// GetBarcodes returns the Barcodes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *SuggestedOfferDTO) GetBarcodes() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Barcodes
+}
+
+// GetBarcodesOk returns a tuple with the Barcodes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *SuggestedOfferDTO) GetBarcodesOk() ([]string, bool) {
+ if o == nil || IsNil(o.Barcodes) {
+ return nil, false
+ }
+ return o.Barcodes, true
+}
+
+// HasBarcodes returns a boolean if a field has been set.
+func (o *SuggestedOfferDTO) HasBarcodes() bool {
+ if o != nil && !IsNil(o.Barcodes) {
+ return true
+ }
+
+ return false
+}
+
+// SetBarcodes gets a reference to the given []string and assigns it to the Barcodes field.
+func (o *SuggestedOfferDTO) SetBarcodes(v []string) {
+ o.Barcodes = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *SuggestedOfferDTO) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
+ return ret
+ }
+ return *o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestedOfferDTO) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
+ return nil, false
+ }
+ return o.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (o *SuggestedOfferDTO) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *SuggestedOfferDTO) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetVendorCode returns the VendorCode field value if set, zero value otherwise.
+func (o *SuggestedOfferDTO) GetVendorCode() string {
+ if o == nil || IsNil(o.VendorCode) {
+ var ret string
+ return ret
+ }
+ return *o.VendorCode
+}
+
+// GetVendorCodeOk returns a tuple with the VendorCode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestedOfferDTO) GetVendorCodeOk() (*string, bool) {
+ if o == nil || IsNil(o.VendorCode) {
+ return nil, false
+ }
+ return o.VendorCode, true
+}
+
+// HasVendorCode returns a boolean if a field has been set.
+func (o *SuggestedOfferDTO) HasVendorCode() bool {
+ if o != nil && !IsNil(o.VendorCode) {
+ return true
+ }
+
+ return false
+}
+
+// SetVendorCode gets a reference to the given string and assigns it to the VendorCode field.
+func (o *SuggestedOfferDTO) SetVendorCode(v string) {
+ o.VendorCode = &v
+}
+
+// GetBasicPrice returns the BasicPrice field value if set, zero value otherwise.
+func (o *SuggestedOfferDTO) GetBasicPrice() BasePriceDTO {
+ if o == nil || IsNil(o.BasicPrice) {
+ var ret BasePriceDTO
+ return ret
+ }
+ return *o.BasicPrice
+}
+
+// GetBasicPriceOk returns a tuple with the BasicPrice field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestedOfferDTO) GetBasicPriceOk() (*BasePriceDTO, bool) {
+ if o == nil || IsNil(o.BasicPrice) {
+ return nil, false
+ }
+ return o.BasicPrice, true
+}
+
+// HasBasicPrice returns a boolean if a field has been set.
+func (o *SuggestedOfferDTO) HasBasicPrice() bool {
+ if o != nil && !IsNil(o.BasicPrice) {
+ return true
+ }
+
+ return false
+}
+
+// SetBasicPrice gets a reference to the given BasePriceDTO and assigns it to the BasicPrice field.
+func (o *SuggestedOfferDTO) SetBasicPrice(v BasePriceDTO) {
+ o.BasicPrice = &v
+}
+
+func (o SuggestedOfferDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SuggestedOfferDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.OfferId) {
+ toSerialize["offerId"] = o.OfferId
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Category) {
+ toSerialize["category"] = o.Category
+ }
+ if !IsNil(o.Vendor) {
+ toSerialize["vendor"] = o.Vendor
+ }
+ if o.Barcodes != nil {
+ toSerialize["barcodes"] = o.Barcodes
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.VendorCode) {
+ toSerialize["vendorCode"] = o.VendorCode
+ }
+ if !IsNil(o.BasicPrice) {
+ toSerialize["basicPrice"] = o.BasicPrice
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SuggestedOfferDTO) UnmarshalJSON(data []byte) (err error) {
+ varSuggestedOfferDTO := _SuggestedOfferDTO{}
+
+ err = json.Unmarshal(data, &varSuggestedOfferDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SuggestedOfferDTO(varSuggestedOfferDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "category")
+ delete(additionalProperties, "vendor")
+ delete(additionalProperties, "barcodes")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "vendorCode")
+ delete(additionalProperties, "basicPrice")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSuggestedOfferDTO struct {
+ value *SuggestedOfferDTO
+ isSet bool
+}
+
+func (v NullableSuggestedOfferDTO) Get() *SuggestedOfferDTO {
+ return v.value
+}
+
+func (v *NullableSuggestedOfferDTO) Set(val *SuggestedOfferDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSuggestedOfferDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSuggestedOfferDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSuggestedOfferDTO(val *SuggestedOfferDTO) *NullableSuggestedOfferDTO {
+ return &NullableSuggestedOfferDTO{value: val, isSet: true}
+}
+
+func (v NullableSuggestedOfferDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSuggestedOfferDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_suggested_offer_mapping_dto.go b/pkg/api/yandex/ymclient/model_suggested_offer_mapping_dto.go
new file mode 100644
index 0000000..b1208cc
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_suggested_offer_mapping_dto.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the SuggestedOfferMappingDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SuggestedOfferMappingDTO{}
+
+// SuggestedOfferMappingDTO Товар с соответствующей карточкой на Маркете.
+type SuggestedOfferMappingDTO struct {
+ Offer *SuggestedOfferDTO `json:"offer,omitempty"`
+ Mapping *GetMappingDTO `json:"mapping,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SuggestedOfferMappingDTO SuggestedOfferMappingDTO
+
+// NewSuggestedOfferMappingDTO instantiates a new SuggestedOfferMappingDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSuggestedOfferMappingDTO() *SuggestedOfferMappingDTO {
+ this := SuggestedOfferMappingDTO{}
+ return &this
+}
+
+// NewSuggestedOfferMappingDTOWithDefaults instantiates a new SuggestedOfferMappingDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSuggestedOfferMappingDTOWithDefaults() *SuggestedOfferMappingDTO {
+ this := SuggestedOfferMappingDTO{}
+ return &this
+}
+
+// GetOffer returns the Offer field value if set, zero value otherwise.
+func (o *SuggestedOfferMappingDTO) GetOffer() SuggestedOfferDTO {
+ if o == nil || IsNil(o.Offer) {
+ var ret SuggestedOfferDTO
+ return ret
+ }
+ return *o.Offer
+}
+
+// GetOfferOk returns a tuple with the Offer field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestedOfferMappingDTO) GetOfferOk() (*SuggestedOfferDTO, bool) {
+ if o == nil || IsNil(o.Offer) {
+ return nil, false
+ }
+ return o.Offer, true
+}
+
+// HasOffer returns a boolean if a field has been set.
+func (o *SuggestedOfferMappingDTO) HasOffer() bool {
+ if o != nil && !IsNil(o.Offer) {
+ return true
+ }
+
+ return false
+}
+
+// SetOffer gets a reference to the given SuggestedOfferDTO and assigns it to the Offer field.
+func (o *SuggestedOfferMappingDTO) SetOffer(v SuggestedOfferDTO) {
+ o.Offer = &v
+}
+
+// GetMapping returns the Mapping field value if set, zero value otherwise.
+func (o *SuggestedOfferMappingDTO) GetMapping() GetMappingDTO {
+ if o == nil || IsNil(o.Mapping) {
+ var ret GetMappingDTO
+ return ret
+ }
+ return *o.Mapping
+}
+
+// GetMappingOk returns a tuple with the Mapping field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SuggestedOfferMappingDTO) GetMappingOk() (*GetMappingDTO, bool) {
+ if o == nil || IsNil(o.Mapping) {
+ return nil, false
+ }
+ return o.Mapping, true
+}
+
+// HasMapping returns a boolean if a field has been set.
+func (o *SuggestedOfferMappingDTO) HasMapping() bool {
+ if o != nil && !IsNil(o.Mapping) {
+ return true
+ }
+
+ return false
+}
+
+// SetMapping gets a reference to the given GetMappingDTO and assigns it to the Mapping field.
+func (o *SuggestedOfferMappingDTO) SetMapping(v GetMappingDTO) {
+ o.Mapping = &v
+}
+
+func (o SuggestedOfferMappingDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SuggestedOfferMappingDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Offer) {
+ toSerialize["offer"] = o.Offer
+ }
+ if !IsNil(o.Mapping) {
+ toSerialize["mapping"] = o.Mapping
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SuggestedOfferMappingDTO) UnmarshalJSON(data []byte) (err error) {
+ varSuggestedOfferMappingDTO := _SuggestedOfferMappingDTO{}
+
+ err = json.Unmarshal(data, &varSuggestedOfferMappingDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SuggestedOfferMappingDTO(varSuggestedOfferMappingDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offer")
+ delete(additionalProperties, "mapping")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSuggestedOfferMappingDTO struct {
+ value *SuggestedOfferMappingDTO
+ isSet bool
+}
+
+func (v NullableSuggestedOfferMappingDTO) Get() *SuggestedOfferMappingDTO {
+ return v.value
+}
+
+func (v *NullableSuggestedOfferMappingDTO) Set(val *SuggestedOfferMappingDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSuggestedOfferMappingDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSuggestedOfferMappingDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSuggestedOfferMappingDTO(val *SuggestedOfferMappingDTO) *NullableSuggestedOfferMappingDTO {
+ return &NullableSuggestedOfferMappingDTO{value: val, isSet: true}
+}
+
+func (v NullableSuggestedOfferMappingDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSuggestedOfferMappingDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_counters_dto.go b/pkg/api/yandex/ymclient/model_supply_request_counters_dto.go
new file mode 100644
index 0000000..16fce58
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_counters_dto.go
@@ -0,0 +1,496 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the SupplyRequestCountersDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SupplyRequestCountersDTO{}
+
+// SupplyRequestCountersDTO Количество товаров, коробок и палет в заявке.
+type SupplyRequestCountersDTO struct {
+ // Количество товаров в заявке на поставку.
+ PlanCount *int32 `json:"planCount,omitempty"`
+ // Количество товаров, которые приняты на складе.
+ FactCount *int32 `json:"factCount,omitempty"`
+ // Количество непринятых товаров.
+ UndefinedCount *int32 `json:"undefinedCount,omitempty"`
+ // Количество лишних товаров.
+ SurplusCount *int32 `json:"surplusCount,omitempty"`
+ // Количество товаров с недостатками.
+ ShortageCount *int32 `json:"shortageCount,omitempty"`
+ // Количество товаров с браком.
+ DefectCount *int32 `json:"defectCount,omitempty"`
+ // Количество товаров, которые можно привезти дополнительно.
+ AcceptableCount *int32 `json:"acceptableCount,omitempty"`
+ // Количество товаров, которые нельзя привезти дополнительно.
+ UnacceptableCount *int32 `json:"unacceptableCount,omitempty"`
+ // Количество палет, которые приняты на складе.
+ ActualPalletsCount *int32 `json:"actualPalletsCount,omitempty"`
+ // Количество коробок, которые приняты на складе.
+ ActualBoxCount *int32 `json:"actualBoxCount,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SupplyRequestCountersDTO SupplyRequestCountersDTO
+
+// NewSupplyRequestCountersDTO instantiates a new SupplyRequestCountersDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSupplyRequestCountersDTO() *SupplyRequestCountersDTO {
+ this := SupplyRequestCountersDTO{}
+ return &this
+}
+
+// NewSupplyRequestCountersDTOWithDefaults instantiates a new SupplyRequestCountersDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSupplyRequestCountersDTOWithDefaults() *SupplyRequestCountersDTO {
+ this := SupplyRequestCountersDTO{}
+ return &this
+}
+
+// GetPlanCount returns the PlanCount field value if set, zero value otherwise.
+func (o *SupplyRequestCountersDTO) GetPlanCount() int32 {
+ if o == nil || IsNil(o.PlanCount) {
+ var ret int32
+ return ret
+ }
+ return *o.PlanCount
+}
+
+// GetPlanCountOk returns a tuple with the PlanCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestCountersDTO) GetPlanCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.PlanCount) {
+ return nil, false
+ }
+ return o.PlanCount, true
+}
+
+// HasPlanCount returns a boolean if a field has been set.
+func (o *SupplyRequestCountersDTO) HasPlanCount() bool {
+ if o != nil && !IsNil(o.PlanCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetPlanCount gets a reference to the given int32 and assigns it to the PlanCount field.
+func (o *SupplyRequestCountersDTO) SetPlanCount(v int32) {
+ o.PlanCount = &v
+}
+
+// GetFactCount returns the FactCount field value if set, zero value otherwise.
+func (o *SupplyRequestCountersDTO) GetFactCount() int32 {
+ if o == nil || IsNil(o.FactCount) {
+ var ret int32
+ return ret
+ }
+ return *o.FactCount
+}
+
+// GetFactCountOk returns a tuple with the FactCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestCountersDTO) GetFactCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.FactCount) {
+ return nil, false
+ }
+ return o.FactCount, true
+}
+
+// HasFactCount returns a boolean if a field has been set.
+func (o *SupplyRequestCountersDTO) HasFactCount() bool {
+ if o != nil && !IsNil(o.FactCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetFactCount gets a reference to the given int32 and assigns it to the FactCount field.
+func (o *SupplyRequestCountersDTO) SetFactCount(v int32) {
+ o.FactCount = &v
+}
+
+// GetUndefinedCount returns the UndefinedCount field value if set, zero value otherwise.
+func (o *SupplyRequestCountersDTO) GetUndefinedCount() int32 {
+ if o == nil || IsNil(o.UndefinedCount) {
+ var ret int32
+ return ret
+ }
+ return *o.UndefinedCount
+}
+
+// GetUndefinedCountOk returns a tuple with the UndefinedCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestCountersDTO) GetUndefinedCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.UndefinedCount) {
+ return nil, false
+ }
+ return o.UndefinedCount, true
+}
+
+// HasUndefinedCount returns a boolean if a field has been set.
+func (o *SupplyRequestCountersDTO) HasUndefinedCount() bool {
+ if o != nil && !IsNil(o.UndefinedCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetUndefinedCount gets a reference to the given int32 and assigns it to the UndefinedCount field.
+func (o *SupplyRequestCountersDTO) SetUndefinedCount(v int32) {
+ o.UndefinedCount = &v
+}
+
+// GetSurplusCount returns the SurplusCount field value if set, zero value otherwise.
+func (o *SupplyRequestCountersDTO) GetSurplusCount() int32 {
+ if o == nil || IsNil(o.SurplusCount) {
+ var ret int32
+ return ret
+ }
+ return *o.SurplusCount
+}
+
+// GetSurplusCountOk returns a tuple with the SurplusCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestCountersDTO) GetSurplusCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.SurplusCount) {
+ return nil, false
+ }
+ return o.SurplusCount, true
+}
+
+// HasSurplusCount returns a boolean if a field has been set.
+func (o *SupplyRequestCountersDTO) HasSurplusCount() bool {
+ if o != nil && !IsNil(o.SurplusCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetSurplusCount gets a reference to the given int32 and assigns it to the SurplusCount field.
+func (o *SupplyRequestCountersDTO) SetSurplusCount(v int32) {
+ o.SurplusCount = &v
+}
+
+// GetShortageCount returns the ShortageCount field value if set, zero value otherwise.
+func (o *SupplyRequestCountersDTO) GetShortageCount() int32 {
+ if o == nil || IsNil(o.ShortageCount) {
+ var ret int32
+ return ret
+ }
+ return *o.ShortageCount
+}
+
+// GetShortageCountOk returns a tuple with the ShortageCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestCountersDTO) GetShortageCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.ShortageCount) {
+ return nil, false
+ }
+ return o.ShortageCount, true
+}
+
+// HasShortageCount returns a boolean if a field has been set.
+func (o *SupplyRequestCountersDTO) HasShortageCount() bool {
+ if o != nil && !IsNil(o.ShortageCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetShortageCount gets a reference to the given int32 and assigns it to the ShortageCount field.
+func (o *SupplyRequestCountersDTO) SetShortageCount(v int32) {
+ o.ShortageCount = &v
+}
+
+// GetDefectCount returns the DefectCount field value if set, zero value otherwise.
+func (o *SupplyRequestCountersDTO) GetDefectCount() int32 {
+ if o == nil || IsNil(o.DefectCount) {
+ var ret int32
+ return ret
+ }
+ return *o.DefectCount
+}
+
+// GetDefectCountOk returns a tuple with the DefectCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestCountersDTO) GetDefectCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.DefectCount) {
+ return nil, false
+ }
+ return o.DefectCount, true
+}
+
+// HasDefectCount returns a boolean if a field has been set.
+func (o *SupplyRequestCountersDTO) HasDefectCount() bool {
+ if o != nil && !IsNil(o.DefectCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetDefectCount gets a reference to the given int32 and assigns it to the DefectCount field.
+func (o *SupplyRequestCountersDTO) SetDefectCount(v int32) {
+ o.DefectCount = &v
+}
+
+// GetAcceptableCount returns the AcceptableCount field value if set, zero value otherwise.
+func (o *SupplyRequestCountersDTO) GetAcceptableCount() int32 {
+ if o == nil || IsNil(o.AcceptableCount) {
+ var ret int32
+ return ret
+ }
+ return *o.AcceptableCount
+}
+
+// GetAcceptableCountOk returns a tuple with the AcceptableCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestCountersDTO) GetAcceptableCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.AcceptableCount) {
+ return nil, false
+ }
+ return o.AcceptableCount, true
+}
+
+// HasAcceptableCount returns a boolean if a field has been set.
+func (o *SupplyRequestCountersDTO) HasAcceptableCount() bool {
+ if o != nil && !IsNil(o.AcceptableCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetAcceptableCount gets a reference to the given int32 and assigns it to the AcceptableCount field.
+func (o *SupplyRequestCountersDTO) SetAcceptableCount(v int32) {
+ o.AcceptableCount = &v
+}
+
+// GetUnacceptableCount returns the UnacceptableCount field value if set, zero value otherwise.
+func (o *SupplyRequestCountersDTO) GetUnacceptableCount() int32 {
+ if o == nil || IsNil(o.UnacceptableCount) {
+ var ret int32
+ return ret
+ }
+ return *o.UnacceptableCount
+}
+
+// GetUnacceptableCountOk returns a tuple with the UnacceptableCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestCountersDTO) GetUnacceptableCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.UnacceptableCount) {
+ return nil, false
+ }
+ return o.UnacceptableCount, true
+}
+
+// HasUnacceptableCount returns a boolean if a field has been set.
+func (o *SupplyRequestCountersDTO) HasUnacceptableCount() bool {
+ if o != nil && !IsNil(o.UnacceptableCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetUnacceptableCount gets a reference to the given int32 and assigns it to the UnacceptableCount field.
+func (o *SupplyRequestCountersDTO) SetUnacceptableCount(v int32) {
+ o.UnacceptableCount = &v
+}
+
+// GetActualPalletsCount returns the ActualPalletsCount field value if set, zero value otherwise.
+func (o *SupplyRequestCountersDTO) GetActualPalletsCount() int32 {
+ if o == nil || IsNil(o.ActualPalletsCount) {
+ var ret int32
+ return ret
+ }
+ return *o.ActualPalletsCount
+}
+
+// GetActualPalletsCountOk returns a tuple with the ActualPalletsCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestCountersDTO) GetActualPalletsCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.ActualPalletsCount) {
+ return nil, false
+ }
+ return o.ActualPalletsCount, true
+}
+
+// HasActualPalletsCount returns a boolean if a field has been set.
+func (o *SupplyRequestCountersDTO) HasActualPalletsCount() bool {
+ if o != nil && !IsNil(o.ActualPalletsCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetActualPalletsCount gets a reference to the given int32 and assigns it to the ActualPalletsCount field.
+func (o *SupplyRequestCountersDTO) SetActualPalletsCount(v int32) {
+ o.ActualPalletsCount = &v
+}
+
+// GetActualBoxCount returns the ActualBoxCount field value if set, zero value otherwise.
+func (o *SupplyRequestCountersDTO) GetActualBoxCount() int32 {
+ if o == nil || IsNil(o.ActualBoxCount) {
+ var ret int32
+ return ret
+ }
+ return *o.ActualBoxCount
+}
+
+// GetActualBoxCountOk returns a tuple with the ActualBoxCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestCountersDTO) GetActualBoxCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.ActualBoxCount) {
+ return nil, false
+ }
+ return o.ActualBoxCount, true
+}
+
+// HasActualBoxCount returns a boolean if a field has been set.
+func (o *SupplyRequestCountersDTO) HasActualBoxCount() bool {
+ if o != nil && !IsNil(o.ActualBoxCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetActualBoxCount gets a reference to the given int32 and assigns it to the ActualBoxCount field.
+func (o *SupplyRequestCountersDTO) SetActualBoxCount(v int32) {
+ o.ActualBoxCount = &v
+}
+
+func (o SupplyRequestCountersDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SupplyRequestCountersDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.PlanCount) {
+ toSerialize["planCount"] = o.PlanCount
+ }
+ if !IsNil(o.FactCount) {
+ toSerialize["factCount"] = o.FactCount
+ }
+ if !IsNil(o.UndefinedCount) {
+ toSerialize["undefinedCount"] = o.UndefinedCount
+ }
+ if !IsNil(o.SurplusCount) {
+ toSerialize["surplusCount"] = o.SurplusCount
+ }
+ if !IsNil(o.ShortageCount) {
+ toSerialize["shortageCount"] = o.ShortageCount
+ }
+ if !IsNil(o.DefectCount) {
+ toSerialize["defectCount"] = o.DefectCount
+ }
+ if !IsNil(o.AcceptableCount) {
+ toSerialize["acceptableCount"] = o.AcceptableCount
+ }
+ if !IsNil(o.UnacceptableCount) {
+ toSerialize["unacceptableCount"] = o.UnacceptableCount
+ }
+ if !IsNil(o.ActualPalletsCount) {
+ toSerialize["actualPalletsCount"] = o.ActualPalletsCount
+ }
+ if !IsNil(o.ActualBoxCount) {
+ toSerialize["actualBoxCount"] = o.ActualBoxCount
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SupplyRequestCountersDTO) UnmarshalJSON(data []byte) (err error) {
+ varSupplyRequestCountersDTO := _SupplyRequestCountersDTO{}
+
+ err = json.Unmarshal(data, &varSupplyRequestCountersDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SupplyRequestCountersDTO(varSupplyRequestCountersDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "planCount")
+ delete(additionalProperties, "factCount")
+ delete(additionalProperties, "undefinedCount")
+ delete(additionalProperties, "surplusCount")
+ delete(additionalProperties, "shortageCount")
+ delete(additionalProperties, "defectCount")
+ delete(additionalProperties, "acceptableCount")
+ delete(additionalProperties, "unacceptableCount")
+ delete(additionalProperties, "actualPalletsCount")
+ delete(additionalProperties, "actualBoxCount")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSupplyRequestCountersDTO struct {
+ value *SupplyRequestCountersDTO
+ isSet bool
+}
+
+func (v NullableSupplyRequestCountersDTO) Get() *SupplyRequestCountersDTO {
+ return v.value
+}
+
+func (v *NullableSupplyRequestCountersDTO) Set(val *SupplyRequestCountersDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestCountersDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestCountersDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestCountersDTO(val *SupplyRequestCountersDTO) *NullableSupplyRequestCountersDTO {
+ return &NullableSupplyRequestCountersDTO{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestCountersDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestCountersDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_document_dto.go b/pkg/api/yandex/ymclient/model_supply_request_document_dto.go
new file mode 100644
index 0000000..910bb33
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_document_dto.go
@@ -0,0 +1,226 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the SupplyRequestDocumentDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SupplyRequestDocumentDTO{}
+
+// SupplyRequestDocumentDTO Документ по заявке.
+type SupplyRequestDocumentDTO struct {
+ Type SupplyRequestDocumentType `json:"type"`
+ Url string `json:"url"`
+ // Дата и время создания документа.
+ CreatedAt time.Time `json:"createdAt"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SupplyRequestDocumentDTO SupplyRequestDocumentDTO
+
+// NewSupplyRequestDocumentDTO instantiates a new SupplyRequestDocumentDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSupplyRequestDocumentDTO(type_ SupplyRequestDocumentType, url string, createdAt time.Time) *SupplyRequestDocumentDTO {
+ this := SupplyRequestDocumentDTO{}
+ this.Type = type_
+ this.Url = url
+ this.CreatedAt = createdAt
+ return &this
+}
+
+// NewSupplyRequestDocumentDTOWithDefaults instantiates a new SupplyRequestDocumentDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSupplyRequestDocumentDTOWithDefaults() *SupplyRequestDocumentDTO {
+ this := SupplyRequestDocumentDTO{}
+ return &this
+}
+
+// GetType returns the Type field value
+func (o *SupplyRequestDocumentDTO) GetType() SupplyRequestDocumentType {
+ if o == nil {
+ var ret SupplyRequestDocumentType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDocumentDTO) GetTypeOk() (*SupplyRequestDocumentType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *SupplyRequestDocumentDTO) SetType(v SupplyRequestDocumentType) {
+ o.Type = v
+}
+
+// GetUrl returns the Url field value
+func (o *SupplyRequestDocumentDTO) GetUrl() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Url
+}
+
+// GetUrlOk returns a tuple with the Url field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDocumentDTO) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *SupplyRequestDocumentDTO) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetCreatedAt returns the CreatedAt field value
+func (o *SupplyRequestDocumentDTO) GetCreatedAt() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.CreatedAt
+}
+
+// GetCreatedAtOk returns a tuple with the CreatedAt field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDocumentDTO) GetCreatedAtOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreatedAt, true
+}
+
+// SetCreatedAt sets field value
+func (o *SupplyRequestDocumentDTO) SetCreatedAt(v time.Time) {
+ o.CreatedAt = v
+}
+
+func (o SupplyRequestDocumentDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SupplyRequestDocumentDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["type"] = o.Type
+ toSerialize["url"] = o.Url
+ toSerialize["createdAt"] = o.CreatedAt
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SupplyRequestDocumentDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "type",
+ "url",
+ "createdAt",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSupplyRequestDocumentDTO := _SupplyRequestDocumentDTO{}
+
+ err = json.Unmarshal(data, &varSupplyRequestDocumentDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SupplyRequestDocumentDTO(varSupplyRequestDocumentDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "createdAt")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSupplyRequestDocumentDTO struct {
+ value *SupplyRequestDocumentDTO
+ isSet bool
+}
+
+func (v NullableSupplyRequestDocumentDTO) Get() *SupplyRequestDocumentDTO {
+ return v.value
+}
+
+func (v *NullableSupplyRequestDocumentDTO) Set(val *SupplyRequestDocumentDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestDocumentDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestDocumentDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestDocumentDTO(val *SupplyRequestDocumentDTO) *NullableSupplyRequestDocumentDTO {
+ return &NullableSupplyRequestDocumentDTO{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestDocumentDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestDocumentDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_document_type.go b/pkg/api/yandex/ymclient/model_supply_request_document_type.go
new file mode 100644
index 0000000..358c19b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_document_type.go
@@ -0,0 +1,152 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// SupplyRequestDocumentType Тип документа: * **Документы, которые загружает магазин** * `SUPPLY` — список товаров. * `ADDITIONAL_SUPPLY` — список товаров в дополнительной поставке. * `VIRTUAL_DISTRIBUTION_CENTER_SUPPLY` — список товаров в [мультипоставке](:no-translate[*multisupply]). * `TRANSFER` — список товаров для утилизации. * `WITHDRAW` — список товаров для вывоза. * **Поставка товаров** * `VALIDATION_ERRORS` — ошибки по товарам в поставке. * `CARGO_UNITS` — ярлыки для грузомест. * **Дополнительная поставка и непринятые товары** * `ADDITIONAL_SUPPLY_ACCEPTABLE_GOODS` — товары, которые подходят для дополнительной поставки. * `ADDITIONAL_SUPPLY_UNACCEPTABLE_GOODS` — вывоз непринятых товаров. * **Маркировка товаров** * `INBOUND_UTD` — входящий УПД. * `OUTBOUND_UTD` — исходящий УПД. * `IDENTIFIERS` — коды маркировки товаров. * `CIS_FACT` — принятые товары с кодами маркировки. * `ITEMS_WITH_CISES` — товары, для которых нужна маркировка. * `REPORT_OF_WITHDRAW_WITH_CISES` — маркированные товары для вывоза со склада. * `SECONDARY_ACCEPTANCE_CISES` — маркированные товары, которые приняты после вторичной приемки. * `RNPT_FACT` — принятые товары с регистрационным номером партии товара (РНПТ). * **Акты** * `ACT_OF_WITHDRAW` — акт возврата. * `ANOMALY_CONTAINERS_WITHDRAW_ACT` — акт изъятия непринятого товара. * `ACT_OF_WITHDRAW_FROM_STORAGE` — акт списания с ответственного хранения. * `ACT_OF_RECEPTION_TRANSFER` — акт приема-передачи. * `ACT_OF_DISCREPANCY` — акт о расхождениях. * `SECONDARY_RECEPTION_ACT` — акт вторичной приемки.
+type SupplyRequestDocumentType string
+
+// List of SupplyRequestDocumentType
+const (
+ SUPPLYREQUESTDOCUMENTTYPE_SUPPLY SupplyRequestDocumentType = "SUPPLY"
+ SUPPLYREQUESTDOCUMENTTYPE_ADDITIONAL_SUPPLY SupplyRequestDocumentType = "ADDITIONAL_SUPPLY"
+ SUPPLYREQUESTDOCUMENTTYPE_VIRTUAL_DISTRIBUTION_CENTER_SUPPLY SupplyRequestDocumentType = "VIRTUAL_DISTRIBUTION_CENTER_SUPPLY"
+ SUPPLYREQUESTDOCUMENTTYPE_TRANSFER SupplyRequestDocumentType = "TRANSFER"
+ SUPPLYREQUESTDOCUMENTTYPE_INBOUND_UTD SupplyRequestDocumentType = "INBOUND_UTD"
+ SUPPLYREQUESTDOCUMENTTYPE_OUTBOUND_UTD SupplyRequestDocumentType = "OUTBOUND_UTD"
+ SUPPLYREQUESTDOCUMENTTYPE_ADDITIONAL_SUPPLY_ACCEPTABLE_GOODS SupplyRequestDocumentType = "ADDITIONAL_SUPPLY_ACCEPTABLE_GOODS"
+ SUPPLYREQUESTDOCUMENTTYPE_ADDITIONAL_SUPPLY_UNACCEPTABLE_GOODS SupplyRequestDocumentType = "ADDITIONAL_SUPPLY_UNACCEPTABLE_GOODS"
+ SUPPLYREQUESTDOCUMENTTYPE_VALIDATION_ERRORS SupplyRequestDocumentType = "VALIDATION_ERRORS"
+ SUPPLYREQUESTDOCUMENTTYPE_WITHDRAW SupplyRequestDocumentType = "WITHDRAW"
+ SUPPLYREQUESTDOCUMENTTYPE_ACT_OF_WITHDRAW SupplyRequestDocumentType = "ACT_OF_WITHDRAW"
+ SUPPLYREQUESTDOCUMENTTYPE_ANOMALY_CONTAINERS_WITHDRAW_ACT SupplyRequestDocumentType = "ANOMALY_CONTAINERS_WITHDRAW_ACT"
+ SUPPLYREQUESTDOCUMENTTYPE_ACT_OF_WITHDRAW_FROM_STORAGE SupplyRequestDocumentType = "ACT_OF_WITHDRAW_FROM_STORAGE"
+ SUPPLYREQUESTDOCUMENTTYPE_ACT_OF_RECEPTION_TRANSFER SupplyRequestDocumentType = "ACT_OF_RECEPTION_TRANSFER"
+ SUPPLYREQUESTDOCUMENTTYPE_ACT_OF_DISCREPANCY SupplyRequestDocumentType = "ACT_OF_DISCREPANCY"
+ SUPPLYREQUESTDOCUMENTTYPE_SECONDARY_RECEPTION_ACT SupplyRequestDocumentType = "SECONDARY_RECEPTION_ACT"
+ SUPPLYREQUESTDOCUMENTTYPE_CARGO_UNITS SupplyRequestDocumentType = "CARGO_UNITS"
+ SUPPLYREQUESTDOCUMENTTYPE_IDENTIFIERS SupplyRequestDocumentType = "IDENTIFIERS"
+ SUPPLYREQUESTDOCUMENTTYPE_CIS_FACT SupplyRequestDocumentType = "CIS_FACT"
+ SUPPLYREQUESTDOCUMENTTYPE_ITEMS_WITH_CISES SupplyRequestDocumentType = "ITEMS_WITH_CISES"
+ SUPPLYREQUESTDOCUMENTTYPE_REPORT_OF_WITHDRAW_WITH_CISES SupplyRequestDocumentType = "REPORT_OF_WITHDRAW_WITH_CISES"
+ SUPPLYREQUESTDOCUMENTTYPE_SECONDARY_ACCEPTANCE_CISES SupplyRequestDocumentType = "SECONDARY_ACCEPTANCE_CISES"
+ SUPPLYREQUESTDOCUMENTTYPE_RNPT_FACT SupplyRequestDocumentType = "RNPT_FACT"
+)
+
+// All allowed values of SupplyRequestDocumentType enum
+var AllowedSupplyRequestDocumentTypeEnumValues = []SupplyRequestDocumentType{
+ "SUPPLY",
+ "ADDITIONAL_SUPPLY",
+ "VIRTUAL_DISTRIBUTION_CENTER_SUPPLY",
+ "TRANSFER",
+ "INBOUND_UTD",
+ "OUTBOUND_UTD",
+ "ADDITIONAL_SUPPLY_ACCEPTABLE_GOODS",
+ "ADDITIONAL_SUPPLY_UNACCEPTABLE_GOODS",
+ "VALIDATION_ERRORS",
+ "WITHDRAW",
+ "ACT_OF_WITHDRAW",
+ "ANOMALY_CONTAINERS_WITHDRAW_ACT",
+ "ACT_OF_WITHDRAW_FROM_STORAGE",
+ "ACT_OF_RECEPTION_TRANSFER",
+ "ACT_OF_DISCREPANCY",
+ "SECONDARY_RECEPTION_ACT",
+ "CARGO_UNITS",
+ "IDENTIFIERS",
+ "CIS_FACT",
+ "ITEMS_WITH_CISES",
+ "REPORT_OF_WITHDRAW_WITH_CISES",
+ "SECONDARY_ACCEPTANCE_CISES",
+ "RNPT_FACT",
+}
+
+func (v *SupplyRequestDocumentType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SupplyRequestDocumentType(value)
+ for _, existing := range AllowedSupplyRequestDocumentTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid SupplyRequestDocumentType", value)
+}
+
+// NewSupplyRequestDocumentTypeFromValue returns a pointer to a valid SupplyRequestDocumentType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSupplyRequestDocumentTypeFromValue(v string) (*SupplyRequestDocumentType, error) {
+ ev := SupplyRequestDocumentType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SupplyRequestDocumentType: valid values are %v", v, AllowedSupplyRequestDocumentTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SupplyRequestDocumentType) IsValid() bool {
+ for _, existing := range AllowedSupplyRequestDocumentTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to SupplyRequestDocumentType value
+func (v SupplyRequestDocumentType) Ptr() *SupplyRequestDocumentType {
+ return &v
+}
+
+type NullableSupplyRequestDocumentType struct {
+ value *SupplyRequestDocumentType
+ isSet bool
+}
+
+func (v NullableSupplyRequestDocumentType) Get() *SupplyRequestDocumentType {
+ return v.value
+}
+
+func (v *NullableSupplyRequestDocumentType) Set(val *SupplyRequestDocumentType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestDocumentType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestDocumentType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestDocumentType(val *SupplyRequestDocumentType) *NullableSupplyRequestDocumentType {
+ return &NullableSupplyRequestDocumentType{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestDocumentType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestDocumentType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_dto.go b/pkg/api/yandex/ymclient/model_supply_request_dto.go
new file mode 100644
index 0000000..bf5cd63
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_dto.go
@@ -0,0 +1,455 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the SupplyRequestDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SupplyRequestDTO{}
+
+// SupplyRequestDTO Информация о заявке на поставку, вывоз или утилизацию.
+type SupplyRequestDTO struct {
+ Id SupplyRequestIdDTO `json:"id"`
+ Type SupplyRequestType `json:"type"`
+ Subtype SupplyRequestSubType `json:"subtype"`
+ Status SupplyRequestStatusType `json:"status"`
+ // Дата и время последнего обновления заявки.
+ UpdatedAt time.Time `json:"updatedAt"`
+ Counters SupplyRequestCountersDTO `json:"counters"`
+ ParentLink *SupplyRequestReferenceDTO `json:"parentLink,omitempty"`
+ // Ссылки на дочерние заявки.
+ ChildrenLinks []SupplyRequestReferenceDTO `json:"childrenLinks,omitempty"`
+ TargetLocation SupplyRequestLocationDTO `json:"targetLocation"`
+ TransitLocation *SupplyRequestLocationDTO `json:"transitLocation,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SupplyRequestDTO SupplyRequestDTO
+
+// NewSupplyRequestDTO instantiates a new SupplyRequestDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSupplyRequestDTO(id SupplyRequestIdDTO, type_ SupplyRequestType, subtype SupplyRequestSubType, status SupplyRequestStatusType, updatedAt time.Time, counters SupplyRequestCountersDTO, targetLocation SupplyRequestLocationDTO) *SupplyRequestDTO {
+ this := SupplyRequestDTO{}
+ this.Id = id
+ this.Type = type_
+ this.Subtype = subtype
+ this.Status = status
+ this.UpdatedAt = updatedAt
+ this.Counters = counters
+ this.TargetLocation = targetLocation
+ return &this
+}
+
+// NewSupplyRequestDTOWithDefaults instantiates a new SupplyRequestDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSupplyRequestDTOWithDefaults() *SupplyRequestDTO {
+ this := SupplyRequestDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *SupplyRequestDTO) GetId() SupplyRequestIdDTO {
+ if o == nil {
+ var ret SupplyRequestIdDTO
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDTO) GetIdOk() (*SupplyRequestIdDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *SupplyRequestDTO) SetId(v SupplyRequestIdDTO) {
+ o.Id = v
+}
+
+// GetType returns the Type field value
+func (o *SupplyRequestDTO) GetType() SupplyRequestType {
+ if o == nil {
+ var ret SupplyRequestType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDTO) GetTypeOk() (*SupplyRequestType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *SupplyRequestDTO) SetType(v SupplyRequestType) {
+ o.Type = v
+}
+
+// GetSubtype returns the Subtype field value
+func (o *SupplyRequestDTO) GetSubtype() SupplyRequestSubType {
+ if o == nil {
+ var ret SupplyRequestSubType
+ return ret
+ }
+
+ return o.Subtype
+}
+
+// GetSubtypeOk returns a tuple with the Subtype field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDTO) GetSubtypeOk() (*SupplyRequestSubType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Subtype, true
+}
+
+// SetSubtype sets field value
+func (o *SupplyRequestDTO) SetSubtype(v SupplyRequestSubType) {
+ o.Subtype = v
+}
+
+// GetStatus returns the Status field value
+func (o *SupplyRequestDTO) GetStatus() SupplyRequestStatusType {
+ if o == nil {
+ var ret SupplyRequestStatusType
+ return ret
+ }
+
+ return o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDTO) GetStatusOk() (*SupplyRequestStatusType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Status, true
+}
+
+// SetStatus sets field value
+func (o *SupplyRequestDTO) SetStatus(v SupplyRequestStatusType) {
+ o.Status = v
+}
+
+// GetUpdatedAt returns the UpdatedAt field value
+func (o *SupplyRequestDTO) GetUpdatedAt() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.UpdatedAt
+}
+
+// GetUpdatedAtOk returns a tuple with the UpdatedAt field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDTO) GetUpdatedAtOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdatedAt, true
+}
+
+// SetUpdatedAt sets field value
+func (o *SupplyRequestDTO) SetUpdatedAt(v time.Time) {
+ o.UpdatedAt = v
+}
+
+// GetCounters returns the Counters field value
+func (o *SupplyRequestDTO) GetCounters() SupplyRequestCountersDTO {
+ if o == nil {
+ var ret SupplyRequestCountersDTO
+ return ret
+ }
+
+ return o.Counters
+}
+
+// GetCountersOk returns a tuple with the Counters field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDTO) GetCountersOk() (*SupplyRequestCountersDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Counters, true
+}
+
+// SetCounters sets field value
+func (o *SupplyRequestDTO) SetCounters(v SupplyRequestCountersDTO) {
+ o.Counters = v
+}
+
+// GetParentLink returns the ParentLink field value if set, zero value otherwise.
+func (o *SupplyRequestDTO) GetParentLink() SupplyRequestReferenceDTO {
+ if o == nil || IsNil(o.ParentLink) {
+ var ret SupplyRequestReferenceDTO
+ return ret
+ }
+ return *o.ParentLink
+}
+
+// GetParentLinkOk returns a tuple with the ParentLink field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDTO) GetParentLinkOk() (*SupplyRequestReferenceDTO, bool) {
+ if o == nil || IsNil(o.ParentLink) {
+ return nil, false
+ }
+ return o.ParentLink, true
+}
+
+// HasParentLink returns a boolean if a field has been set.
+func (o *SupplyRequestDTO) HasParentLink() bool {
+ if o != nil && !IsNil(o.ParentLink) {
+ return true
+ }
+
+ return false
+}
+
+// SetParentLink gets a reference to the given SupplyRequestReferenceDTO and assigns it to the ParentLink field.
+func (o *SupplyRequestDTO) SetParentLink(v SupplyRequestReferenceDTO) {
+ o.ParentLink = &v
+}
+
+// GetChildrenLinks returns the ChildrenLinks field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *SupplyRequestDTO) GetChildrenLinks() []SupplyRequestReferenceDTO {
+ if o == nil {
+ var ret []SupplyRequestReferenceDTO
+ return ret
+ }
+ return o.ChildrenLinks
+}
+
+// GetChildrenLinksOk returns a tuple with the ChildrenLinks field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *SupplyRequestDTO) GetChildrenLinksOk() ([]SupplyRequestReferenceDTO, bool) {
+ if o == nil || IsNil(o.ChildrenLinks) {
+ return nil, false
+ }
+ return o.ChildrenLinks, true
+}
+
+// HasChildrenLinks returns a boolean if a field has been set.
+func (o *SupplyRequestDTO) HasChildrenLinks() bool {
+ if o != nil && !IsNil(o.ChildrenLinks) {
+ return true
+ }
+
+ return false
+}
+
+// SetChildrenLinks gets a reference to the given []SupplyRequestReferenceDTO and assigns it to the ChildrenLinks field.
+func (o *SupplyRequestDTO) SetChildrenLinks(v []SupplyRequestReferenceDTO) {
+ o.ChildrenLinks = v
+}
+
+// GetTargetLocation returns the TargetLocation field value
+func (o *SupplyRequestDTO) GetTargetLocation() SupplyRequestLocationDTO {
+ if o == nil {
+ var ret SupplyRequestLocationDTO
+ return ret
+ }
+
+ return o.TargetLocation
+}
+
+// GetTargetLocationOk returns a tuple with the TargetLocation field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDTO) GetTargetLocationOk() (*SupplyRequestLocationDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TargetLocation, true
+}
+
+// SetTargetLocation sets field value
+func (o *SupplyRequestDTO) SetTargetLocation(v SupplyRequestLocationDTO) {
+ o.TargetLocation = v
+}
+
+// GetTransitLocation returns the TransitLocation field value if set, zero value otherwise.
+func (o *SupplyRequestDTO) GetTransitLocation() SupplyRequestLocationDTO {
+ if o == nil || IsNil(o.TransitLocation) {
+ var ret SupplyRequestLocationDTO
+ return ret
+ }
+ return *o.TransitLocation
+}
+
+// GetTransitLocationOk returns a tuple with the TransitLocation field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestDTO) GetTransitLocationOk() (*SupplyRequestLocationDTO, bool) {
+ if o == nil || IsNil(o.TransitLocation) {
+ return nil, false
+ }
+ return o.TransitLocation, true
+}
+
+// HasTransitLocation returns a boolean if a field has been set.
+func (o *SupplyRequestDTO) HasTransitLocation() bool {
+ if o != nil && !IsNil(o.TransitLocation) {
+ return true
+ }
+
+ return false
+}
+
+// SetTransitLocation gets a reference to the given SupplyRequestLocationDTO and assigns it to the TransitLocation field.
+func (o *SupplyRequestDTO) SetTransitLocation(v SupplyRequestLocationDTO) {
+ o.TransitLocation = &v
+}
+
+func (o SupplyRequestDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SupplyRequestDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["type"] = o.Type
+ toSerialize["subtype"] = o.Subtype
+ toSerialize["status"] = o.Status
+ toSerialize["updatedAt"] = o.UpdatedAt
+ toSerialize["counters"] = o.Counters
+ if !IsNil(o.ParentLink) {
+ toSerialize["parentLink"] = o.ParentLink
+ }
+ if o.ChildrenLinks != nil {
+ toSerialize["childrenLinks"] = o.ChildrenLinks
+ }
+ toSerialize["targetLocation"] = o.TargetLocation
+ if !IsNil(o.TransitLocation) {
+ toSerialize["transitLocation"] = o.TransitLocation
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SupplyRequestDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "type",
+ "subtype",
+ "status",
+ "updatedAt",
+ "counters",
+ "targetLocation",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSupplyRequestDTO := _SupplyRequestDTO{}
+
+ err = json.Unmarshal(data, &varSupplyRequestDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SupplyRequestDTO(varSupplyRequestDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "subtype")
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "updatedAt")
+ delete(additionalProperties, "counters")
+ delete(additionalProperties, "parentLink")
+ delete(additionalProperties, "childrenLinks")
+ delete(additionalProperties, "targetLocation")
+ delete(additionalProperties, "transitLocation")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSupplyRequestDTO struct {
+ value *SupplyRequestDTO
+ isSet bool
+}
+
+func (v NullableSupplyRequestDTO) Get() *SupplyRequestDTO {
+ return v.value
+}
+
+func (v *NullableSupplyRequestDTO) Set(val *SupplyRequestDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestDTO(val *SupplyRequestDTO) *NullableSupplyRequestDTO {
+ return &NullableSupplyRequestDTO{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_id_dto.go b/pkg/api/yandex/ymclient/model_supply_request_id_dto.go
new file mode 100644
index 0000000..e1a55cb
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_id_dto.go
@@ -0,0 +1,243 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SupplyRequestIdDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SupplyRequestIdDTO{}
+
+// SupplyRequestIdDTO Идентификатор и номера заявки.
+type SupplyRequestIdDTO struct {
+ // Идентификатор заявки. {% note warning \"Используется только в :no-translate[API]\" %} По нему не получится найти заявки в кабинете продавца на Маркете. Для этого используйте `marketplaceRequestId` или `warehouseRequestId`. {% endnote %}
+ Id int64 `json:"id"`
+ // Номер заявки на маркетплейсе. Также указывается в кабинете продавца на Маркете.
+ MarketplaceRequestId *string `json:"marketplaceRequestId,omitempty"`
+ // Номер заявки на складе. Также указывается в кабинете продавца на Маркете.
+ WarehouseRequestId *string `json:"warehouseRequestId,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SupplyRequestIdDTO SupplyRequestIdDTO
+
+// NewSupplyRequestIdDTO instantiates a new SupplyRequestIdDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSupplyRequestIdDTO(id int64) *SupplyRequestIdDTO {
+ this := SupplyRequestIdDTO{}
+ this.Id = id
+ return &this
+}
+
+// NewSupplyRequestIdDTOWithDefaults instantiates a new SupplyRequestIdDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSupplyRequestIdDTOWithDefaults() *SupplyRequestIdDTO {
+ this := SupplyRequestIdDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *SupplyRequestIdDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestIdDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *SupplyRequestIdDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetMarketplaceRequestId returns the MarketplaceRequestId field value if set, zero value otherwise.
+func (o *SupplyRequestIdDTO) GetMarketplaceRequestId() string {
+ if o == nil || IsNil(o.MarketplaceRequestId) {
+ var ret string
+ return ret
+ }
+ return *o.MarketplaceRequestId
+}
+
+// GetMarketplaceRequestIdOk returns a tuple with the MarketplaceRequestId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestIdDTO) GetMarketplaceRequestIdOk() (*string, bool) {
+ if o == nil || IsNil(o.MarketplaceRequestId) {
+ return nil, false
+ }
+ return o.MarketplaceRequestId, true
+}
+
+// HasMarketplaceRequestId returns a boolean if a field has been set.
+func (o *SupplyRequestIdDTO) HasMarketplaceRequestId() bool {
+ if o != nil && !IsNil(o.MarketplaceRequestId) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarketplaceRequestId gets a reference to the given string and assigns it to the MarketplaceRequestId field.
+func (o *SupplyRequestIdDTO) SetMarketplaceRequestId(v string) {
+ o.MarketplaceRequestId = &v
+}
+
+// GetWarehouseRequestId returns the WarehouseRequestId field value if set, zero value otherwise.
+func (o *SupplyRequestIdDTO) GetWarehouseRequestId() string {
+ if o == nil || IsNil(o.WarehouseRequestId) {
+ var ret string
+ return ret
+ }
+ return *o.WarehouseRequestId
+}
+
+// GetWarehouseRequestIdOk returns a tuple with the WarehouseRequestId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestIdDTO) GetWarehouseRequestIdOk() (*string, bool) {
+ if o == nil || IsNil(o.WarehouseRequestId) {
+ return nil, false
+ }
+ return o.WarehouseRequestId, true
+}
+
+// HasWarehouseRequestId returns a boolean if a field has been set.
+func (o *SupplyRequestIdDTO) HasWarehouseRequestId() bool {
+ if o != nil && !IsNil(o.WarehouseRequestId) {
+ return true
+ }
+
+ return false
+}
+
+// SetWarehouseRequestId gets a reference to the given string and assigns it to the WarehouseRequestId field.
+func (o *SupplyRequestIdDTO) SetWarehouseRequestId(v string) {
+ o.WarehouseRequestId = &v
+}
+
+func (o SupplyRequestIdDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SupplyRequestIdDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ if !IsNil(o.MarketplaceRequestId) {
+ toSerialize["marketplaceRequestId"] = o.MarketplaceRequestId
+ }
+ if !IsNil(o.WarehouseRequestId) {
+ toSerialize["warehouseRequestId"] = o.WarehouseRequestId
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SupplyRequestIdDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSupplyRequestIdDTO := _SupplyRequestIdDTO{}
+
+ err = json.Unmarshal(data, &varSupplyRequestIdDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SupplyRequestIdDTO(varSupplyRequestIdDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "marketplaceRequestId")
+ delete(additionalProperties, "warehouseRequestId")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSupplyRequestIdDTO struct {
+ value *SupplyRequestIdDTO
+ isSet bool
+}
+
+func (v NullableSupplyRequestIdDTO) Get() *SupplyRequestIdDTO {
+ return v.value
+}
+
+func (v *NullableSupplyRequestIdDTO) Set(val *SupplyRequestIdDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestIdDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestIdDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestIdDTO(val *SupplyRequestIdDTO) *NullableSupplyRequestIdDTO {
+ return &NullableSupplyRequestIdDTO{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestIdDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestIdDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_item_counters_dto.go b/pkg/api/yandex/ymclient/model_supply_request_item_counters_dto.go
new file mode 100644
index 0000000..dc166e8
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_item_counters_dto.go
@@ -0,0 +1,306 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the SupplyRequestItemCountersDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SupplyRequestItemCountersDTO{}
+
+// SupplyRequestItemCountersDTO Количество товаров в заявке.
+type SupplyRequestItemCountersDTO struct {
+ // Количество товаров в заявке на поставку.
+ PlanCount *int32 `json:"planCount,omitempty"`
+ // Количество товаров, которые приняты на складе.
+ FactCount *int32 `json:"factCount,omitempty"`
+ // Количество лишних товаров.
+ SurplusCount *int32 `json:"surplusCount,omitempty"`
+ // Количество товаров с недостатками.
+ ShortageCount *int32 `json:"shortageCount,omitempty"`
+ // Количество товаров с браком.
+ DefectCount *int32 `json:"defectCount,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SupplyRequestItemCountersDTO SupplyRequestItemCountersDTO
+
+// NewSupplyRequestItemCountersDTO instantiates a new SupplyRequestItemCountersDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSupplyRequestItemCountersDTO() *SupplyRequestItemCountersDTO {
+ this := SupplyRequestItemCountersDTO{}
+ return &this
+}
+
+// NewSupplyRequestItemCountersDTOWithDefaults instantiates a new SupplyRequestItemCountersDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSupplyRequestItemCountersDTOWithDefaults() *SupplyRequestItemCountersDTO {
+ this := SupplyRequestItemCountersDTO{}
+ return &this
+}
+
+// GetPlanCount returns the PlanCount field value if set, zero value otherwise.
+func (o *SupplyRequestItemCountersDTO) GetPlanCount() int32 {
+ if o == nil || IsNil(o.PlanCount) {
+ var ret int32
+ return ret
+ }
+ return *o.PlanCount
+}
+
+// GetPlanCountOk returns a tuple with the PlanCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestItemCountersDTO) GetPlanCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.PlanCount) {
+ return nil, false
+ }
+ return o.PlanCount, true
+}
+
+// HasPlanCount returns a boolean if a field has been set.
+func (o *SupplyRequestItemCountersDTO) HasPlanCount() bool {
+ if o != nil && !IsNil(o.PlanCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetPlanCount gets a reference to the given int32 and assigns it to the PlanCount field.
+func (o *SupplyRequestItemCountersDTO) SetPlanCount(v int32) {
+ o.PlanCount = &v
+}
+
+// GetFactCount returns the FactCount field value if set, zero value otherwise.
+func (o *SupplyRequestItemCountersDTO) GetFactCount() int32 {
+ if o == nil || IsNil(o.FactCount) {
+ var ret int32
+ return ret
+ }
+ return *o.FactCount
+}
+
+// GetFactCountOk returns a tuple with the FactCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestItemCountersDTO) GetFactCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.FactCount) {
+ return nil, false
+ }
+ return o.FactCount, true
+}
+
+// HasFactCount returns a boolean if a field has been set.
+func (o *SupplyRequestItemCountersDTO) HasFactCount() bool {
+ if o != nil && !IsNil(o.FactCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetFactCount gets a reference to the given int32 and assigns it to the FactCount field.
+func (o *SupplyRequestItemCountersDTO) SetFactCount(v int32) {
+ o.FactCount = &v
+}
+
+// GetSurplusCount returns the SurplusCount field value if set, zero value otherwise.
+func (o *SupplyRequestItemCountersDTO) GetSurplusCount() int32 {
+ if o == nil || IsNil(o.SurplusCount) {
+ var ret int32
+ return ret
+ }
+ return *o.SurplusCount
+}
+
+// GetSurplusCountOk returns a tuple with the SurplusCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestItemCountersDTO) GetSurplusCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.SurplusCount) {
+ return nil, false
+ }
+ return o.SurplusCount, true
+}
+
+// HasSurplusCount returns a boolean if a field has been set.
+func (o *SupplyRequestItemCountersDTO) HasSurplusCount() bool {
+ if o != nil && !IsNil(o.SurplusCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetSurplusCount gets a reference to the given int32 and assigns it to the SurplusCount field.
+func (o *SupplyRequestItemCountersDTO) SetSurplusCount(v int32) {
+ o.SurplusCount = &v
+}
+
+// GetShortageCount returns the ShortageCount field value if set, zero value otherwise.
+func (o *SupplyRequestItemCountersDTO) GetShortageCount() int32 {
+ if o == nil || IsNil(o.ShortageCount) {
+ var ret int32
+ return ret
+ }
+ return *o.ShortageCount
+}
+
+// GetShortageCountOk returns a tuple with the ShortageCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestItemCountersDTO) GetShortageCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.ShortageCount) {
+ return nil, false
+ }
+ return o.ShortageCount, true
+}
+
+// HasShortageCount returns a boolean if a field has been set.
+func (o *SupplyRequestItemCountersDTO) HasShortageCount() bool {
+ if o != nil && !IsNil(o.ShortageCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetShortageCount gets a reference to the given int32 and assigns it to the ShortageCount field.
+func (o *SupplyRequestItemCountersDTO) SetShortageCount(v int32) {
+ o.ShortageCount = &v
+}
+
+// GetDefectCount returns the DefectCount field value if set, zero value otherwise.
+func (o *SupplyRequestItemCountersDTO) GetDefectCount() int32 {
+ if o == nil || IsNil(o.DefectCount) {
+ var ret int32
+ return ret
+ }
+ return *o.DefectCount
+}
+
+// GetDefectCountOk returns a tuple with the DefectCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestItemCountersDTO) GetDefectCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.DefectCount) {
+ return nil, false
+ }
+ return o.DefectCount, true
+}
+
+// HasDefectCount returns a boolean if a field has been set.
+func (o *SupplyRequestItemCountersDTO) HasDefectCount() bool {
+ if o != nil && !IsNil(o.DefectCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetDefectCount gets a reference to the given int32 and assigns it to the DefectCount field.
+func (o *SupplyRequestItemCountersDTO) SetDefectCount(v int32) {
+ o.DefectCount = &v
+}
+
+func (o SupplyRequestItemCountersDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SupplyRequestItemCountersDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.PlanCount) {
+ toSerialize["planCount"] = o.PlanCount
+ }
+ if !IsNil(o.FactCount) {
+ toSerialize["factCount"] = o.FactCount
+ }
+ if !IsNil(o.SurplusCount) {
+ toSerialize["surplusCount"] = o.SurplusCount
+ }
+ if !IsNil(o.ShortageCount) {
+ toSerialize["shortageCount"] = o.ShortageCount
+ }
+ if !IsNil(o.DefectCount) {
+ toSerialize["defectCount"] = o.DefectCount
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SupplyRequestItemCountersDTO) UnmarshalJSON(data []byte) (err error) {
+ varSupplyRequestItemCountersDTO := _SupplyRequestItemCountersDTO{}
+
+ err = json.Unmarshal(data, &varSupplyRequestItemCountersDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SupplyRequestItemCountersDTO(varSupplyRequestItemCountersDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "planCount")
+ delete(additionalProperties, "factCount")
+ delete(additionalProperties, "surplusCount")
+ delete(additionalProperties, "shortageCount")
+ delete(additionalProperties, "defectCount")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSupplyRequestItemCountersDTO struct {
+ value *SupplyRequestItemCountersDTO
+ isSet bool
+}
+
+func (v NullableSupplyRequestItemCountersDTO) Get() *SupplyRequestItemCountersDTO {
+ return v.value
+}
+
+func (v *NullableSupplyRequestItemCountersDTO) Set(val *SupplyRequestItemCountersDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestItemCountersDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestItemCountersDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestItemCountersDTO(val *SupplyRequestItemCountersDTO) *NullableSupplyRequestItemCountersDTO {
+ return &NullableSupplyRequestItemCountersDTO{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestItemCountersDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestItemCountersDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_item_dto.go b/pkg/api/yandex/ymclient/model_supply_request_item_dto.go
new file mode 100644
index 0000000..68233dd
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_item_dto.go
@@ -0,0 +1,263 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SupplyRequestItemDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SupplyRequestItemDTO{}
+
+// SupplyRequestItemDTO Информация о товаре в заявке.
+type SupplyRequestItemDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Название товара.
+ Name string `json:"name"`
+ Price *CurrencyValueDTO `json:"price,omitempty"`
+ Counters SupplyRequestItemCountersDTO `json:"counters"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SupplyRequestItemDTO SupplyRequestItemDTO
+
+// NewSupplyRequestItemDTO instantiates a new SupplyRequestItemDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSupplyRequestItemDTO(offerId string, name string, counters SupplyRequestItemCountersDTO) *SupplyRequestItemDTO {
+ this := SupplyRequestItemDTO{}
+ this.OfferId = offerId
+ this.Name = name
+ this.Counters = counters
+ return &this
+}
+
+// NewSupplyRequestItemDTOWithDefaults instantiates a new SupplyRequestItemDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSupplyRequestItemDTOWithDefaults() *SupplyRequestItemDTO {
+ this := SupplyRequestItemDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value
+func (o *SupplyRequestItemDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestItemDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *SupplyRequestItemDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetName returns the Name field value
+func (o *SupplyRequestItemDTO) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestItemDTO) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *SupplyRequestItemDTO) SetName(v string) {
+ o.Name = v
+}
+
+// GetPrice returns the Price field value if set, zero value otherwise.
+func (o *SupplyRequestItemDTO) GetPrice() CurrencyValueDTO {
+ if o == nil || IsNil(o.Price) {
+ var ret CurrencyValueDTO
+ return ret
+ }
+ return *o.Price
+}
+
+// GetPriceOk returns a tuple with the Price field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestItemDTO) GetPriceOk() (*CurrencyValueDTO, bool) {
+ if o == nil || IsNil(o.Price) {
+ return nil, false
+ }
+ return o.Price, true
+}
+
+// HasPrice returns a boolean if a field has been set.
+func (o *SupplyRequestItemDTO) HasPrice() bool {
+ if o != nil && !IsNil(o.Price) {
+ return true
+ }
+
+ return false
+}
+
+// SetPrice gets a reference to the given CurrencyValueDTO and assigns it to the Price field.
+func (o *SupplyRequestItemDTO) SetPrice(v CurrencyValueDTO) {
+ o.Price = &v
+}
+
+// GetCounters returns the Counters field value
+func (o *SupplyRequestItemDTO) GetCounters() SupplyRequestItemCountersDTO {
+ if o == nil {
+ var ret SupplyRequestItemCountersDTO
+ return ret
+ }
+
+ return o.Counters
+}
+
+// GetCountersOk returns a tuple with the Counters field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestItemDTO) GetCountersOk() (*SupplyRequestItemCountersDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Counters, true
+}
+
+// SetCounters sets field value
+func (o *SupplyRequestItemDTO) SetCounters(v SupplyRequestItemCountersDTO) {
+ o.Counters = v
+}
+
+func (o SupplyRequestItemDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SupplyRequestItemDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerId"] = o.OfferId
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Price) {
+ toSerialize["price"] = o.Price
+ }
+ toSerialize["counters"] = o.Counters
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SupplyRequestItemDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerId",
+ "name",
+ "counters",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSupplyRequestItemDTO := _SupplyRequestItemDTO{}
+
+ err = json.Unmarshal(data, &varSupplyRequestItemDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SupplyRequestItemDTO(varSupplyRequestItemDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "price")
+ delete(additionalProperties, "counters")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSupplyRequestItemDTO struct {
+ value *SupplyRequestItemDTO
+ isSet bool
+}
+
+func (v NullableSupplyRequestItemDTO) Get() *SupplyRequestItemDTO {
+ return v.value
+}
+
+func (v *NullableSupplyRequestItemDTO) Set(val *SupplyRequestItemDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestItemDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestItemDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestItemDTO(val *SupplyRequestItemDTO) *NullableSupplyRequestItemDTO {
+ return &NullableSupplyRequestItemDTO{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestItemDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestItemDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_location_address_dto.go b/pkg/api/yandex/ymclient/model_supply_request_location_address_dto.go
new file mode 100644
index 0000000..bed4e07
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_location_address_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SupplyRequestLocationAddressDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SupplyRequestLocationAddressDTO{}
+
+// SupplyRequestLocationAddressDTO Адрес склада или ПВЗ.
+type SupplyRequestLocationAddressDTO struct {
+ // Полный адрес склада или ПВЗ.
+ FullAddress string `json:"fullAddress"`
+ Gps GpsDTO `json:"gps"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SupplyRequestLocationAddressDTO SupplyRequestLocationAddressDTO
+
+// NewSupplyRequestLocationAddressDTO instantiates a new SupplyRequestLocationAddressDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSupplyRequestLocationAddressDTO(fullAddress string, gps GpsDTO) *SupplyRequestLocationAddressDTO {
+ this := SupplyRequestLocationAddressDTO{}
+ this.FullAddress = fullAddress
+ this.Gps = gps
+ return &this
+}
+
+// NewSupplyRequestLocationAddressDTOWithDefaults instantiates a new SupplyRequestLocationAddressDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSupplyRequestLocationAddressDTOWithDefaults() *SupplyRequestLocationAddressDTO {
+ this := SupplyRequestLocationAddressDTO{}
+ return &this
+}
+
+// GetFullAddress returns the FullAddress field value
+func (o *SupplyRequestLocationAddressDTO) GetFullAddress() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.FullAddress
+}
+
+// GetFullAddressOk returns a tuple with the FullAddress field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestLocationAddressDTO) GetFullAddressOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FullAddress, true
+}
+
+// SetFullAddress sets field value
+func (o *SupplyRequestLocationAddressDTO) SetFullAddress(v string) {
+ o.FullAddress = v
+}
+
+// GetGps returns the Gps field value
+func (o *SupplyRequestLocationAddressDTO) GetGps() GpsDTO {
+ if o == nil {
+ var ret GpsDTO
+ return ret
+ }
+
+ return o.Gps
+}
+
+// GetGpsOk returns a tuple with the Gps field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestLocationAddressDTO) GetGpsOk() (*GpsDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Gps, true
+}
+
+// SetGps sets field value
+func (o *SupplyRequestLocationAddressDTO) SetGps(v GpsDTO) {
+ o.Gps = v
+}
+
+func (o SupplyRequestLocationAddressDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SupplyRequestLocationAddressDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["fullAddress"] = o.FullAddress
+ toSerialize["gps"] = o.Gps
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SupplyRequestLocationAddressDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "fullAddress",
+ "gps",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSupplyRequestLocationAddressDTO := _SupplyRequestLocationAddressDTO{}
+
+ err = json.Unmarshal(data, &varSupplyRequestLocationAddressDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SupplyRequestLocationAddressDTO(varSupplyRequestLocationAddressDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "fullAddress")
+ delete(additionalProperties, "gps")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSupplyRequestLocationAddressDTO struct {
+ value *SupplyRequestLocationAddressDTO
+ isSet bool
+}
+
+func (v NullableSupplyRequestLocationAddressDTO) Get() *SupplyRequestLocationAddressDTO {
+ return v.value
+}
+
+func (v *NullableSupplyRequestLocationAddressDTO) Set(val *SupplyRequestLocationAddressDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestLocationAddressDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestLocationAddressDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestLocationAddressDTO(val *SupplyRequestLocationAddressDTO) *NullableSupplyRequestLocationAddressDTO {
+ return &NullableSupplyRequestLocationAddressDTO{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestLocationAddressDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestLocationAddressDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_location_dto.go b/pkg/api/yandex/ymclient/model_supply_request_location_dto.go
new file mode 100644
index 0000000..e711149
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_location_dto.go
@@ -0,0 +1,294 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the SupplyRequestLocationDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SupplyRequestLocationDTO{}
+
+// SupplyRequestLocationDTO Информации о складе или ПВЗ в заявке.
+type SupplyRequestLocationDTO struct {
+ // Дата и время поставки на склад или в ПВЗ.
+ RequestedDate *time.Time `json:"requestedDate,omitempty"`
+ // Идентификатор склада или логистического партнера ПВЗ.
+ ServiceId int64 `json:"serviceId"`
+ // Название склада или ПВЗ.
+ Name string `json:"name"`
+ Address SupplyRequestLocationAddressDTO `json:"address"`
+ Type SupplyRequestLocationType `json:"type"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SupplyRequestLocationDTO SupplyRequestLocationDTO
+
+// NewSupplyRequestLocationDTO instantiates a new SupplyRequestLocationDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSupplyRequestLocationDTO(serviceId int64, name string, address SupplyRequestLocationAddressDTO, type_ SupplyRequestLocationType) *SupplyRequestLocationDTO {
+ this := SupplyRequestLocationDTO{}
+ this.ServiceId = serviceId
+ this.Name = name
+ this.Address = address
+ this.Type = type_
+ return &this
+}
+
+// NewSupplyRequestLocationDTOWithDefaults instantiates a new SupplyRequestLocationDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSupplyRequestLocationDTOWithDefaults() *SupplyRequestLocationDTO {
+ this := SupplyRequestLocationDTO{}
+ return &this
+}
+
+// GetRequestedDate returns the RequestedDate field value if set, zero value otherwise.
+func (o *SupplyRequestLocationDTO) GetRequestedDate() time.Time {
+ if o == nil || IsNil(o.RequestedDate) {
+ var ret time.Time
+ return ret
+ }
+ return *o.RequestedDate
+}
+
+// GetRequestedDateOk returns a tuple with the RequestedDate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestLocationDTO) GetRequestedDateOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.RequestedDate) {
+ return nil, false
+ }
+ return o.RequestedDate, true
+}
+
+// HasRequestedDate returns a boolean if a field has been set.
+func (o *SupplyRequestLocationDTO) HasRequestedDate() bool {
+ if o != nil && !IsNil(o.RequestedDate) {
+ return true
+ }
+
+ return false
+}
+
+// SetRequestedDate gets a reference to the given time.Time and assigns it to the RequestedDate field.
+func (o *SupplyRequestLocationDTO) SetRequestedDate(v time.Time) {
+ o.RequestedDate = &v
+}
+
+// GetServiceId returns the ServiceId field value
+func (o *SupplyRequestLocationDTO) GetServiceId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.ServiceId
+}
+
+// GetServiceIdOk returns a tuple with the ServiceId field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestLocationDTO) GetServiceIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ServiceId, true
+}
+
+// SetServiceId sets field value
+func (o *SupplyRequestLocationDTO) SetServiceId(v int64) {
+ o.ServiceId = v
+}
+
+// GetName returns the Name field value
+func (o *SupplyRequestLocationDTO) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestLocationDTO) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *SupplyRequestLocationDTO) SetName(v string) {
+ o.Name = v
+}
+
+// GetAddress returns the Address field value
+func (o *SupplyRequestLocationDTO) GetAddress() SupplyRequestLocationAddressDTO {
+ if o == nil {
+ var ret SupplyRequestLocationAddressDTO
+ return ret
+ }
+
+ return o.Address
+}
+
+// GetAddressOk returns a tuple with the Address field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestLocationDTO) GetAddressOk() (*SupplyRequestLocationAddressDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Address, true
+}
+
+// SetAddress sets field value
+func (o *SupplyRequestLocationDTO) SetAddress(v SupplyRequestLocationAddressDTO) {
+ o.Address = v
+}
+
+// GetType returns the Type field value
+func (o *SupplyRequestLocationDTO) GetType() SupplyRequestLocationType {
+ if o == nil {
+ var ret SupplyRequestLocationType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestLocationDTO) GetTypeOk() (*SupplyRequestLocationType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *SupplyRequestLocationDTO) SetType(v SupplyRequestLocationType) {
+ o.Type = v
+}
+
+func (o SupplyRequestLocationDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SupplyRequestLocationDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.RequestedDate) {
+ toSerialize["requestedDate"] = o.RequestedDate
+ }
+ toSerialize["serviceId"] = o.ServiceId
+ toSerialize["name"] = o.Name
+ toSerialize["address"] = o.Address
+ toSerialize["type"] = o.Type
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SupplyRequestLocationDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "serviceId",
+ "name",
+ "address",
+ "type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSupplyRequestLocationDTO := _SupplyRequestLocationDTO{}
+
+ err = json.Unmarshal(data, &varSupplyRequestLocationDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SupplyRequestLocationDTO(varSupplyRequestLocationDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "requestedDate")
+ delete(additionalProperties, "serviceId")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "address")
+ delete(additionalProperties, "type")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSupplyRequestLocationDTO struct {
+ value *SupplyRequestLocationDTO
+ isSet bool
+}
+
+func (v NullableSupplyRequestLocationDTO) Get() *SupplyRequestLocationDTO {
+ return v.value
+}
+
+func (v *NullableSupplyRequestLocationDTO) Set(val *SupplyRequestLocationDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestLocationDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestLocationDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestLocationDTO(val *SupplyRequestLocationDTO) *NullableSupplyRequestLocationDTO {
+ return &NullableSupplyRequestLocationDTO{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestLocationDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestLocationDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_location_type.go b/pkg/api/yandex/ymclient/model_supply_request_location_type.go
new file mode 100644
index 0000000..0181969
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_location_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// SupplyRequestLocationType Тип склада или ПВЗ: * `FULFILLMENT` — склад хранения. * `XDOC` — транзитный склад. * `PICKUP_POINT` — ПВЗ.
+type SupplyRequestLocationType string
+
+// List of SupplyRequestLocationType
+const (
+ SUPPLYREQUESTLOCATIONTYPE_FULFILLMENT SupplyRequestLocationType = "FULFILLMENT"
+ SUPPLYREQUESTLOCATIONTYPE_XDOC SupplyRequestLocationType = "XDOC"
+ SUPPLYREQUESTLOCATIONTYPE_PICKUP_POINT SupplyRequestLocationType = "PICKUP_POINT"
+)
+
+// All allowed values of SupplyRequestLocationType enum
+var AllowedSupplyRequestLocationTypeEnumValues = []SupplyRequestLocationType{
+ "FULFILLMENT",
+ "XDOC",
+ "PICKUP_POINT",
+}
+
+func (v *SupplyRequestLocationType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SupplyRequestLocationType(value)
+ for _, existing := range AllowedSupplyRequestLocationTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid SupplyRequestLocationType", value)
+}
+
+// NewSupplyRequestLocationTypeFromValue returns a pointer to a valid SupplyRequestLocationType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSupplyRequestLocationTypeFromValue(v string) (*SupplyRequestLocationType, error) {
+ ev := SupplyRequestLocationType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SupplyRequestLocationType: valid values are %v", v, AllowedSupplyRequestLocationTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SupplyRequestLocationType) IsValid() bool {
+ for _, existing := range AllowedSupplyRequestLocationTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to SupplyRequestLocationType value
+func (v SupplyRequestLocationType) Ptr() *SupplyRequestLocationType {
+ return &v
+}
+
+type NullableSupplyRequestLocationType struct {
+ value *SupplyRequestLocationType
+ isSet bool
+}
+
+func (v NullableSupplyRequestLocationType) Get() *SupplyRequestLocationType {
+ return v.value
+}
+
+func (v *NullableSupplyRequestLocationType) Set(val *SupplyRequestLocationType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestLocationType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestLocationType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestLocationType(val *SupplyRequestLocationType) *NullableSupplyRequestLocationType {
+ return &NullableSupplyRequestLocationType{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestLocationType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestLocationType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_reference_dto.go b/pkg/api/yandex/ymclient/model_supply_request_reference_dto.go
new file mode 100644
index 0000000..e3d6384
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_reference_dto.go
@@ -0,0 +1,195 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SupplyRequestReferenceDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SupplyRequestReferenceDTO{}
+
+// SupplyRequestReferenceDTO Информация о связанных заявках.
+type SupplyRequestReferenceDTO struct {
+ Id SupplyRequestIdDTO `json:"id"`
+ Type SupplyRequestReferenceType `json:"type"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SupplyRequestReferenceDTO SupplyRequestReferenceDTO
+
+// NewSupplyRequestReferenceDTO instantiates a new SupplyRequestReferenceDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSupplyRequestReferenceDTO(id SupplyRequestIdDTO, type_ SupplyRequestReferenceType) *SupplyRequestReferenceDTO {
+ this := SupplyRequestReferenceDTO{}
+ this.Id = id
+ this.Type = type_
+ return &this
+}
+
+// NewSupplyRequestReferenceDTOWithDefaults instantiates a new SupplyRequestReferenceDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSupplyRequestReferenceDTOWithDefaults() *SupplyRequestReferenceDTO {
+ this := SupplyRequestReferenceDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *SupplyRequestReferenceDTO) GetId() SupplyRequestIdDTO {
+ if o == nil {
+ var ret SupplyRequestIdDTO
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestReferenceDTO) GetIdOk() (*SupplyRequestIdDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *SupplyRequestReferenceDTO) SetId(v SupplyRequestIdDTO) {
+ o.Id = v
+}
+
+// GetType returns the Type field value
+func (o *SupplyRequestReferenceDTO) GetType() SupplyRequestReferenceType {
+ if o == nil {
+ var ret SupplyRequestReferenceType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestReferenceDTO) GetTypeOk() (*SupplyRequestReferenceType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *SupplyRequestReferenceDTO) SetType(v SupplyRequestReferenceType) {
+ o.Type = v
+}
+
+func (o SupplyRequestReferenceDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SupplyRequestReferenceDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["type"] = o.Type
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SupplyRequestReferenceDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSupplyRequestReferenceDTO := _SupplyRequestReferenceDTO{}
+
+ err = json.Unmarshal(data, &varSupplyRequestReferenceDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SupplyRequestReferenceDTO(varSupplyRequestReferenceDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "type")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSupplyRequestReferenceDTO struct {
+ value *SupplyRequestReferenceDTO
+ isSet bool
+}
+
+func (v NullableSupplyRequestReferenceDTO) Get() *SupplyRequestReferenceDTO {
+ return v.value
+}
+
+func (v *NullableSupplyRequestReferenceDTO) Set(val *SupplyRequestReferenceDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestReferenceDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestReferenceDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestReferenceDTO(val *SupplyRequestReferenceDTO) *NullableSupplyRequestReferenceDTO {
+ return &NullableSupplyRequestReferenceDTO{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestReferenceDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestReferenceDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_reference_type.go b/pkg/api/yandex/ymclient/model_supply_request_reference_type.go
new file mode 100644
index 0000000..ea3ea64
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_reference_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// SupplyRequestReferenceType Тип связи между двумя заявками: * `VIRTUAL_DISTRIBUTION` — [мультипоставка](:no-translate[*multisupply]). * `WITHDRAW` — вывоз непринятых товаров. Подтипы заявки: `DEFAULT`, `XDOC`, `VIRTUAL_DISTRIBUTION_CENTER_CHILD` и `ANOMALY_WITHDRAW`. * `UTILIZATION` — утилизация непринятых товаров. Подтипы заявки: `DEFAULT`, `XDOC`, `VIRTUAL_DISTRIBUTION_CENTER_CHILD` и `FORCE_PLAN_ANOMALY_PER_SUPPLY`. * `ADDITIONAL_SUPPLY` — дополнительная поставка. Подтипы заявки: `DEFAULT`, `XDOC`, `VIRTUAL_DISTRIBUTION_CENTER_CHILD` и `ADDITIONAL_SUPPLY`.
+type SupplyRequestReferenceType string
+
+// List of SupplyRequestReferenceType
+const (
+ SUPPLYREQUESTREFERENCETYPE_VIRTUAL_DISTRIBUTION SupplyRequestReferenceType = "VIRTUAL_DISTRIBUTION"
+ SUPPLYREQUESTREFERENCETYPE_WITHDRAW SupplyRequestReferenceType = "WITHDRAW"
+ SUPPLYREQUESTREFERENCETYPE_UTILIZATION SupplyRequestReferenceType = "UTILIZATION"
+ SUPPLYREQUESTREFERENCETYPE_ADDITIONAL_SUPPLY SupplyRequestReferenceType = "ADDITIONAL_SUPPLY"
+)
+
+// All allowed values of SupplyRequestReferenceType enum
+var AllowedSupplyRequestReferenceTypeEnumValues = []SupplyRequestReferenceType{
+ "VIRTUAL_DISTRIBUTION",
+ "WITHDRAW",
+ "UTILIZATION",
+ "ADDITIONAL_SUPPLY",
+}
+
+func (v *SupplyRequestReferenceType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SupplyRequestReferenceType(value)
+ for _, existing := range AllowedSupplyRequestReferenceTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid SupplyRequestReferenceType", value)
+}
+
+// NewSupplyRequestReferenceTypeFromValue returns a pointer to a valid SupplyRequestReferenceType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSupplyRequestReferenceTypeFromValue(v string) (*SupplyRequestReferenceType, error) {
+ ev := SupplyRequestReferenceType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SupplyRequestReferenceType: valid values are %v", v, AllowedSupplyRequestReferenceTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SupplyRequestReferenceType) IsValid() bool {
+ for _, existing := range AllowedSupplyRequestReferenceTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to SupplyRequestReferenceType value
+func (v SupplyRequestReferenceType) Ptr() *SupplyRequestReferenceType {
+ return &v
+}
+
+type NullableSupplyRequestReferenceType struct {
+ value *SupplyRequestReferenceType
+ isSet bool
+}
+
+func (v NullableSupplyRequestReferenceType) Get() *SupplyRequestReferenceType {
+ return v.value
+}
+
+func (v *NullableSupplyRequestReferenceType) Set(val *SupplyRequestReferenceType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestReferenceType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestReferenceType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestReferenceType(val *SupplyRequestReferenceType) *NullableSupplyRequestReferenceType {
+ return &NullableSupplyRequestReferenceType{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestReferenceType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestReferenceType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_sort_attribute_type.go b/pkg/api/yandex/ymclient/model_supply_request_sort_attribute_type.go
new file mode 100644
index 0000000..351d7ec
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_sort_attribute_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// SupplyRequestSortAttributeType По какому параметру сортировать заявки: * `ID` — идентификатор заявки. * `REQUESTED_DATE` — дата поставки на склад хранения. Если товары проходили через транзитный склад, сортирует по датам поставки на оба склада. * `UPDATED_AT` — время обновления заявки. * `STATUS` — статус заявки.
+type SupplyRequestSortAttributeType string
+
+// List of SupplyRequestSortAttributeType
+const (
+ SUPPLYREQUESTSORTATTRIBUTETYPE_ID SupplyRequestSortAttributeType = "ID"
+ SUPPLYREQUESTSORTATTRIBUTETYPE_REQUESTED_DATE SupplyRequestSortAttributeType = "REQUESTED_DATE"
+ SUPPLYREQUESTSORTATTRIBUTETYPE_UPDATED_AT SupplyRequestSortAttributeType = "UPDATED_AT"
+ SUPPLYREQUESTSORTATTRIBUTETYPE_STATUS SupplyRequestSortAttributeType = "STATUS"
+)
+
+// All allowed values of SupplyRequestSortAttributeType enum
+var AllowedSupplyRequestSortAttributeTypeEnumValues = []SupplyRequestSortAttributeType{
+ "ID",
+ "REQUESTED_DATE",
+ "UPDATED_AT",
+ "STATUS",
+}
+
+func (v *SupplyRequestSortAttributeType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SupplyRequestSortAttributeType(value)
+ for _, existing := range AllowedSupplyRequestSortAttributeTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid SupplyRequestSortAttributeType", value)
+}
+
+// NewSupplyRequestSortAttributeTypeFromValue returns a pointer to a valid SupplyRequestSortAttributeType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSupplyRequestSortAttributeTypeFromValue(v string) (*SupplyRequestSortAttributeType, error) {
+ ev := SupplyRequestSortAttributeType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SupplyRequestSortAttributeType: valid values are %v", v, AllowedSupplyRequestSortAttributeTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SupplyRequestSortAttributeType) IsValid() bool {
+ for _, existing := range AllowedSupplyRequestSortAttributeTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to SupplyRequestSortAttributeType value
+func (v SupplyRequestSortAttributeType) Ptr() *SupplyRequestSortAttributeType {
+ return &v
+}
+
+type NullableSupplyRequestSortAttributeType struct {
+ value *SupplyRequestSortAttributeType
+ isSet bool
+}
+
+func (v NullableSupplyRequestSortAttributeType) Get() *SupplyRequestSortAttributeType {
+ return v.value
+}
+
+func (v *NullableSupplyRequestSortAttributeType) Set(val *SupplyRequestSortAttributeType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestSortAttributeType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestSortAttributeType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestSortAttributeType(val *SupplyRequestSortAttributeType) *NullableSupplyRequestSortAttributeType {
+ return &NullableSupplyRequestSortAttributeType{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestSortAttributeType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestSortAttributeType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_sorting_dto.go b/pkg/api/yandex/ymclient/model_supply_request_sorting_dto.go
new file mode 100644
index 0000000..7287082
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_sorting_dto.go
@@ -0,0 +1,195 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the SupplyRequestSortingDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SupplyRequestSortingDTO{}
+
+// SupplyRequestSortingDTO Параметры сортировки.
+type SupplyRequestSortingDTO struct {
+ Direction SortOrderType `json:"direction"`
+ Attribute SupplyRequestSortAttributeType `json:"attribute"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _SupplyRequestSortingDTO SupplyRequestSortingDTO
+
+// NewSupplyRequestSortingDTO instantiates a new SupplyRequestSortingDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSupplyRequestSortingDTO(direction SortOrderType, attribute SupplyRequestSortAttributeType) *SupplyRequestSortingDTO {
+ this := SupplyRequestSortingDTO{}
+ this.Direction = direction
+ this.Attribute = attribute
+ return &this
+}
+
+// NewSupplyRequestSortingDTOWithDefaults instantiates a new SupplyRequestSortingDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSupplyRequestSortingDTOWithDefaults() *SupplyRequestSortingDTO {
+ this := SupplyRequestSortingDTO{}
+ return &this
+}
+
+// GetDirection returns the Direction field value
+func (o *SupplyRequestSortingDTO) GetDirection() SortOrderType {
+ if o == nil {
+ var ret SortOrderType
+ return ret
+ }
+
+ return o.Direction
+}
+
+// GetDirectionOk returns a tuple with the Direction field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestSortingDTO) GetDirectionOk() (*SortOrderType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Direction, true
+}
+
+// SetDirection sets field value
+func (o *SupplyRequestSortingDTO) SetDirection(v SortOrderType) {
+ o.Direction = v
+}
+
+// GetAttribute returns the Attribute field value
+func (o *SupplyRequestSortingDTO) GetAttribute() SupplyRequestSortAttributeType {
+ if o == nil {
+ var ret SupplyRequestSortAttributeType
+ return ret
+ }
+
+ return o.Attribute
+}
+
+// GetAttributeOk returns a tuple with the Attribute field value
+// and a boolean to check if the value has been set.
+func (o *SupplyRequestSortingDTO) GetAttributeOk() (*SupplyRequestSortAttributeType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Attribute, true
+}
+
+// SetAttribute sets field value
+func (o *SupplyRequestSortingDTO) SetAttribute(v SupplyRequestSortAttributeType) {
+ o.Attribute = v
+}
+
+func (o SupplyRequestSortingDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SupplyRequestSortingDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["direction"] = o.Direction
+ toSerialize["attribute"] = o.Attribute
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *SupplyRequestSortingDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "direction",
+ "attribute",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSupplyRequestSortingDTO := _SupplyRequestSortingDTO{}
+
+ err = json.Unmarshal(data, &varSupplyRequestSortingDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SupplyRequestSortingDTO(varSupplyRequestSortingDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "direction")
+ delete(additionalProperties, "attribute")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableSupplyRequestSortingDTO struct {
+ value *SupplyRequestSortingDTO
+ isSet bool
+}
+
+func (v NullableSupplyRequestSortingDTO) Get() *SupplyRequestSortingDTO {
+ return v.value
+}
+
+func (v *NullableSupplyRequestSortingDTO) Set(val *SupplyRequestSortingDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestSortingDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestSortingDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestSortingDTO(val *SupplyRequestSortingDTO) *NullableSupplyRequestSortingDTO {
+ return &NullableSupplyRequestSortingDTO{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestSortingDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestSortingDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_status_type.go b/pkg/api/yandex/ymclient/model_supply_request_status_type.go
new file mode 100644
index 0000000..6aa5685
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_status_type.go
@@ -0,0 +1,140 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// SupplyRequestStatusType Статус заявки на поставку: * `CREATED` — создан черновик заявки. * `FINISHED` — заявка завершена, товары: * приняты на складе; * переданы на другой склад при перемещении; * переданы продавцу при вывозе; * утилизированы. * `CANCELLED` — заявка отменена. * `INVALID` — ошибка обработки. * `VALIDATED` — заявка в обработке. * `PUBLISHED` — создана заявка. * `ARRIVED_TO_SERVICE` — поставка прибыла на склад хранения. * `ARRIVED_TO_XDOC_SERVICE` — поставка прибыла на транзитный склад. * `SHIPPED_TO_SERVICE` — поставка отправлена с транзитного склада на склад хранения. * `CANCELLATION_REQUESTED` — запрошена отмена заявки. * `CANCELLATION_REJECTED` — заявка не будет отменена. * `REGISTERED_IN_ELECTRONIC_QUEUE` — поставка зарегистрирована в электронной очереди. * `READY_FOR_UTILIZATION` — товары готовы к утилизации. * `TRANSIT_MOVING` — перемещение товаров на склад вывоза. * `WAREHOUSE_HANDLING` — вторичная приемка товаров или их сборка для вывоза или утилизации. * `ACCEPTED_BY_WAREHOUSE_SYSTEM` — информация о заявке направлена на склад. * `READY_TO_WITHDRAW` — товары готовы к выдаче.
+type SupplyRequestStatusType string
+
+// List of SupplyRequestStatusType
+const (
+ SUPPLYREQUESTSTATUSTYPE_CREATED SupplyRequestStatusType = "CREATED"
+ SUPPLYREQUESTSTATUSTYPE_FINISHED SupplyRequestStatusType = "FINISHED"
+ SUPPLYREQUESTSTATUSTYPE_CANCELLED SupplyRequestStatusType = "CANCELLED"
+ SUPPLYREQUESTSTATUSTYPE_INVALID SupplyRequestStatusType = "INVALID"
+ SUPPLYREQUESTSTATUSTYPE_VALIDATED SupplyRequestStatusType = "VALIDATED"
+ SUPPLYREQUESTSTATUSTYPE_PUBLISHED SupplyRequestStatusType = "PUBLISHED"
+ SUPPLYREQUESTSTATUSTYPE_ARRIVED_TO_SERVICE SupplyRequestStatusType = "ARRIVED_TO_SERVICE"
+ SUPPLYREQUESTSTATUSTYPE_ARRIVED_TO_XDOC_SERVICE SupplyRequestStatusType = "ARRIVED_TO_XDOC_SERVICE"
+ SUPPLYREQUESTSTATUSTYPE_SHIPPED_TO_SERVICE SupplyRequestStatusType = "SHIPPED_TO_SERVICE"
+ SUPPLYREQUESTSTATUSTYPE_CANCELLATION_REQUESTED SupplyRequestStatusType = "CANCELLATION_REQUESTED"
+ SUPPLYREQUESTSTATUSTYPE_CANCELLATION_REJECTED SupplyRequestStatusType = "CANCELLATION_REJECTED"
+ SUPPLYREQUESTSTATUSTYPE_REGISTERED_IN_ELECTRONIC_QUEUE SupplyRequestStatusType = "REGISTERED_IN_ELECTRONIC_QUEUE"
+ SUPPLYREQUESTSTATUSTYPE_READY_FOR_UTILIZATION SupplyRequestStatusType = "READY_FOR_UTILIZATION"
+ SUPPLYREQUESTSTATUSTYPE_TRANSIT_MOVING SupplyRequestStatusType = "TRANSIT_MOVING"
+ SUPPLYREQUESTSTATUSTYPE_WAREHOUSE_HANDLING SupplyRequestStatusType = "WAREHOUSE_HANDLING"
+ SUPPLYREQUESTSTATUSTYPE_ACCEPTED_BY_WAREHOUSE_SYSTEM SupplyRequestStatusType = "ACCEPTED_BY_WAREHOUSE_SYSTEM"
+ SUPPLYREQUESTSTATUSTYPE_READY_TO_WITHDRAW SupplyRequestStatusType = "READY_TO_WITHDRAW"
+)
+
+// All allowed values of SupplyRequestStatusType enum
+var AllowedSupplyRequestStatusTypeEnumValues = []SupplyRequestStatusType{
+ "CREATED",
+ "FINISHED",
+ "CANCELLED",
+ "INVALID",
+ "VALIDATED",
+ "PUBLISHED",
+ "ARRIVED_TO_SERVICE",
+ "ARRIVED_TO_XDOC_SERVICE",
+ "SHIPPED_TO_SERVICE",
+ "CANCELLATION_REQUESTED",
+ "CANCELLATION_REJECTED",
+ "REGISTERED_IN_ELECTRONIC_QUEUE",
+ "READY_FOR_UTILIZATION",
+ "TRANSIT_MOVING",
+ "WAREHOUSE_HANDLING",
+ "ACCEPTED_BY_WAREHOUSE_SYSTEM",
+ "READY_TO_WITHDRAW",
+}
+
+func (v *SupplyRequestStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SupplyRequestStatusType(value)
+ for _, existing := range AllowedSupplyRequestStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid SupplyRequestStatusType", value)
+}
+
+// NewSupplyRequestStatusTypeFromValue returns a pointer to a valid SupplyRequestStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSupplyRequestStatusTypeFromValue(v string) (*SupplyRequestStatusType, error) {
+ ev := SupplyRequestStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SupplyRequestStatusType: valid values are %v", v, AllowedSupplyRequestStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SupplyRequestStatusType) IsValid() bool {
+ for _, existing := range AllowedSupplyRequestStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to SupplyRequestStatusType value
+func (v SupplyRequestStatusType) Ptr() *SupplyRequestStatusType {
+ return &v
+}
+
+type NullableSupplyRequestStatusType struct {
+ value *SupplyRequestStatusType
+ isSet bool
+}
+
+func (v NullableSupplyRequestStatusType) Get() *SupplyRequestStatusType {
+ return v.value
+}
+
+func (v *NullableSupplyRequestStatusType) Set(val *SupplyRequestStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestStatusType(val *SupplyRequestStatusType) *NullableSupplyRequestStatusType {
+ return &NullableSupplyRequestStatusType{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_sub_type.go b/pkg/api/yandex/ymclient/model_supply_request_sub_type.go
new file mode 100644
index 0000000..0e22a7b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_sub_type.go
@@ -0,0 +1,142 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// SupplyRequestSubType Подтип заявки: * `DEFAULT` — поставка товаров на склад хранения или вывоз с него. * `XDOC` — поставка товаров через транзитный склад или вывоз с него. * `INVENTORYING_SUPPLY` — инвентаризация на складе по запросу магазина. * `INVENTORYING_SUPPLY_WAREHOUSE_BASED_PER_SUPPLIER` — инвентаризация на складе по запросу склада. * `MOVEMENT_SUPPLY` — входящее перемещение между складами. При перемещении между складами создаются 2 заявки — `MOVEMENT_SUPPLY` и `MOVEMENT_WITHDRAW`. * `ADDITIONAL_SUPPLY` — дополнительная поставка непринятых товаров. * `VIRTUAL_DISTRIBUTION_CENTER` — родительская заявка при поставке товаров на склад хранения или [мультипоставке](:no-translate[*multisupply]). * `VIRTUAL_DISTRIBUTION_CENTER_CHILD` — дочерняя заявка при поставке товаров на склад хранения или [мультипоставке](:no-translate[*multisupply]). Для нее не возвращается `transitLocation`. * `FORCE_PLAN` — автоматическая утилизация по запросу склада. * `FORCE_PLAN_ANOMALY_PER_SUPPLY` — утилизация непринятых товаров. * `PLAN_BY_SUPPLIER` — утилизация по запросу магазина. * `ANOMALY_WITHDRAW` — вывоз непринятых товаров. * `FIX_LOST_INVENTORYING` — товары, которые не нашли после второй инвентаризации. * `OPER_LOST_INVENTORYING` — товары, которые не нашли после первой инвентаризации. * `MOVEMENT_WITHDRAW` — исходящее перемещение между складами. При перемещении между складами создаются 2 заявки — `MOVEMENT_SUPPLY` и `MOVEMENT_WITHDRAW`. * `MISGRADING_SUPPLY` — пересортица в большую сторону. * `MISGRADING_WITHDRAW` — пересортица в меньшую сторону. * `MAN_UTIL` — ручная утилизация по запросу склада.
+type SupplyRequestSubType string
+
+// List of SupplyRequestSubType
+const (
+ SUPPLYREQUESTSUBTYPE_DEFAULT SupplyRequestSubType = "DEFAULT"
+ SUPPLYREQUESTSUBTYPE_XDOC SupplyRequestSubType = "XDOC"
+ SUPPLYREQUESTSUBTYPE_INVENTORYING_SUPPLY SupplyRequestSubType = "INVENTORYING_SUPPLY"
+ SUPPLYREQUESTSUBTYPE_INVENTORYING_SUPPLY_WAREHOUSE_BASED_PER_SUPPLIER SupplyRequestSubType = "INVENTORYING_SUPPLY_WAREHOUSE_BASED_PER_SUPPLIER"
+ SUPPLYREQUESTSUBTYPE_MOVEMENT_SUPPLY SupplyRequestSubType = "MOVEMENT_SUPPLY"
+ SUPPLYREQUESTSUBTYPE_ADDITIONAL_SUPPLY SupplyRequestSubType = "ADDITIONAL_SUPPLY"
+ SUPPLYREQUESTSUBTYPE_VIRTUAL_DISTRIBUTION_CENTER SupplyRequestSubType = "VIRTUAL_DISTRIBUTION_CENTER"
+ SUPPLYREQUESTSUBTYPE_VIRTUAL_DISTRIBUTION_CENTER_CHILD SupplyRequestSubType = "VIRTUAL_DISTRIBUTION_CENTER_CHILD"
+ SUPPLYREQUESTSUBTYPE_FORCE_PLAN SupplyRequestSubType = "FORCE_PLAN"
+ SUPPLYREQUESTSUBTYPE_FORCE_PLAN_ANOMALY_PER_SUPPLY SupplyRequestSubType = "FORCE_PLAN_ANOMALY_PER_SUPPLY"
+ SUPPLYREQUESTSUBTYPE_PLAN_BY_SUPPLIER SupplyRequestSubType = "PLAN_BY_SUPPLIER"
+ SUPPLYREQUESTSUBTYPE_ANOMALY_WITHDRAW SupplyRequestSubType = "ANOMALY_WITHDRAW"
+ SUPPLYREQUESTSUBTYPE_FIX_LOST_INVENTORYING SupplyRequestSubType = "FIX_LOST_INVENTORYING"
+ SUPPLYREQUESTSUBTYPE_OPER_LOST_INVENTORYING SupplyRequestSubType = "OPER_LOST_INVENTORYING"
+ SUPPLYREQUESTSUBTYPE_MOVEMENT_WITHDRAW SupplyRequestSubType = "MOVEMENT_WITHDRAW"
+ SUPPLYREQUESTSUBTYPE_MISGRADING_SUPPLY SupplyRequestSubType = "MISGRADING_SUPPLY"
+ SUPPLYREQUESTSUBTYPE_MISGRADING_WITHDRAW SupplyRequestSubType = "MISGRADING_WITHDRAW"
+ SUPPLYREQUESTSUBTYPE_MAN_UTIL SupplyRequestSubType = "MAN_UTIL"
+)
+
+// All allowed values of SupplyRequestSubType enum
+var AllowedSupplyRequestSubTypeEnumValues = []SupplyRequestSubType{
+ "DEFAULT",
+ "XDOC",
+ "INVENTORYING_SUPPLY",
+ "INVENTORYING_SUPPLY_WAREHOUSE_BASED_PER_SUPPLIER",
+ "MOVEMENT_SUPPLY",
+ "ADDITIONAL_SUPPLY",
+ "VIRTUAL_DISTRIBUTION_CENTER",
+ "VIRTUAL_DISTRIBUTION_CENTER_CHILD",
+ "FORCE_PLAN",
+ "FORCE_PLAN_ANOMALY_PER_SUPPLY",
+ "PLAN_BY_SUPPLIER",
+ "ANOMALY_WITHDRAW",
+ "FIX_LOST_INVENTORYING",
+ "OPER_LOST_INVENTORYING",
+ "MOVEMENT_WITHDRAW",
+ "MISGRADING_SUPPLY",
+ "MISGRADING_WITHDRAW",
+ "MAN_UTIL",
+}
+
+func (v *SupplyRequestSubType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SupplyRequestSubType(value)
+ for _, existing := range AllowedSupplyRequestSubTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid SupplyRequestSubType", value)
+}
+
+// NewSupplyRequestSubTypeFromValue returns a pointer to a valid SupplyRequestSubType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSupplyRequestSubTypeFromValue(v string) (*SupplyRequestSubType, error) {
+ ev := SupplyRequestSubType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SupplyRequestSubType: valid values are %v", v, AllowedSupplyRequestSubTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SupplyRequestSubType) IsValid() bool {
+ for _, existing := range AllowedSupplyRequestSubTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to SupplyRequestSubType value
+func (v SupplyRequestSubType) Ptr() *SupplyRequestSubType {
+ return &v
+}
+
+type NullableSupplyRequestSubType struct {
+ value *SupplyRequestSubType
+ isSet bool
+}
+
+func (v NullableSupplyRequestSubType) Get() *SupplyRequestSubType {
+ return v.value
+}
+
+func (v *NullableSupplyRequestSubType) Set(val *SupplyRequestSubType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestSubType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestSubType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestSubType(val *SupplyRequestSubType) *NullableSupplyRequestSubType {
+ return &NullableSupplyRequestSubType{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestSubType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestSubType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_supply_request_type.go b/pkg/api/yandex/ymclient/model_supply_request_type.go
new file mode 100644
index 0000000..ad7da4c
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_supply_request_type.go
@@ -0,0 +1,112 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// SupplyRequestType Тип заявки: * `SUPPLY` — поставка товаров. * `WITHDRAW` — вывоз товаров. * `UTILIZATION` — утилизация товаров.
+type SupplyRequestType string
+
+// List of SupplyRequestType
+const (
+ SUPPLYREQUESTTYPE_SUPPLY SupplyRequestType = "SUPPLY"
+ SUPPLYREQUESTTYPE_WITHDRAW SupplyRequestType = "WITHDRAW"
+ SUPPLYREQUESTTYPE_UTILIZATION SupplyRequestType = "UTILIZATION"
+)
+
+// All allowed values of SupplyRequestType enum
+var AllowedSupplyRequestTypeEnumValues = []SupplyRequestType{
+ "SUPPLY",
+ "WITHDRAW",
+ "UTILIZATION",
+}
+
+func (v *SupplyRequestType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SupplyRequestType(value)
+ for _, existing := range AllowedSupplyRequestTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid SupplyRequestType", value)
+}
+
+// NewSupplyRequestTypeFromValue returns a pointer to a valid SupplyRequestType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSupplyRequestTypeFromValue(v string) (*SupplyRequestType, error) {
+ ev := SupplyRequestType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SupplyRequestType: valid values are %v", v, AllowedSupplyRequestTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SupplyRequestType) IsValid() bool {
+ for _, existing := range AllowedSupplyRequestTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to SupplyRequestType value
+func (v SupplyRequestType) Ptr() *SupplyRequestType {
+ return &v
+}
+
+type NullableSupplyRequestType struct {
+ value *SupplyRequestType
+ isSet bool
+}
+
+func (v NullableSupplyRequestType) Get() *SupplyRequestType {
+ return v.value
+}
+
+func (v *NullableSupplyRequestType) Set(val *SupplyRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSupplyRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSupplyRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSupplyRequestType(val *SupplyRequestType) *NullableSupplyRequestType {
+ return &NullableSupplyRequestType{value: val, isSet: true}
+}
+
+func (v NullableSupplyRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSupplyRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_tariff_dto.go b/pkg/api/yandex/ymclient/model_tariff_dto.go
new file mode 100644
index 0000000..4c53f01
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_tariff_dto.go
@@ -0,0 +1,297 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the TariffDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TariffDTO{}
+
+// TariffDTO Информация о тарифах, по которым нужно заплатить за услуги Маркета.
+type TariffDTO struct {
+ Type TariffType `json:"type"`
+ // Значение тарифа в процентах.
+ // Deprecated
+ Percent *float32 `json:"percent,omitempty"`
+ // Значение тарифа.
+ Amount float32 `json:"amount"`
+ Currency CurrencyType `json:"currency"`
+ // Параметры расчета тарифа.
+ Parameters []TariffParameterDTO `json:"parameters"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TariffDTO TariffDTO
+
+// NewTariffDTO instantiates a new TariffDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTariffDTO(type_ TariffType, amount float32, currency CurrencyType, parameters []TariffParameterDTO) *TariffDTO {
+ this := TariffDTO{}
+ this.Type = type_
+ this.Amount = amount
+ this.Currency = currency
+ this.Parameters = parameters
+ return &this
+}
+
+// NewTariffDTOWithDefaults instantiates a new TariffDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTariffDTOWithDefaults() *TariffDTO {
+ this := TariffDTO{}
+ return &this
+}
+
+// GetType returns the Type field value
+func (o *TariffDTO) GetType() TariffType {
+ if o == nil {
+ var ret TariffType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *TariffDTO) GetTypeOk() (*TariffType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *TariffDTO) SetType(v TariffType) {
+ o.Type = v
+}
+
+// GetPercent returns the Percent field value if set, zero value otherwise.
+// Deprecated
+func (o *TariffDTO) GetPercent() float32 {
+ if o == nil || IsNil(o.Percent) {
+ var ret float32
+ return ret
+ }
+ return *o.Percent
+}
+
+// GetPercentOk returns a tuple with the Percent field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *TariffDTO) GetPercentOk() (*float32, bool) {
+ if o == nil || IsNil(o.Percent) {
+ return nil, false
+ }
+ return o.Percent, true
+}
+
+// HasPercent returns a boolean if a field has been set.
+func (o *TariffDTO) HasPercent() bool {
+ if o != nil && !IsNil(o.Percent) {
+ return true
+ }
+
+ return false
+}
+
+// SetPercent gets a reference to the given float32 and assigns it to the Percent field.
+// Deprecated
+func (o *TariffDTO) SetPercent(v float32) {
+ o.Percent = &v
+}
+
+// GetAmount returns the Amount field value
+func (o *TariffDTO) GetAmount() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Amount
+}
+
+// GetAmountOk returns a tuple with the Amount field value
+// and a boolean to check if the value has been set.
+func (o *TariffDTO) GetAmountOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Amount, true
+}
+
+// SetAmount sets field value
+func (o *TariffDTO) SetAmount(v float32) {
+ o.Amount = v
+}
+
+// GetCurrency returns the Currency field value
+func (o *TariffDTO) GetCurrency() CurrencyType {
+ if o == nil {
+ var ret CurrencyType
+ return ret
+ }
+
+ return o.Currency
+}
+
+// GetCurrencyOk returns a tuple with the Currency field value
+// and a boolean to check if the value has been set.
+func (o *TariffDTO) GetCurrencyOk() (*CurrencyType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Currency, true
+}
+
+// SetCurrency sets field value
+func (o *TariffDTO) SetCurrency(v CurrencyType) {
+ o.Currency = v
+}
+
+// GetParameters returns the Parameters field value
+func (o *TariffDTO) GetParameters() []TariffParameterDTO {
+ if o == nil {
+ var ret []TariffParameterDTO
+ return ret
+ }
+
+ return o.Parameters
+}
+
+// GetParametersOk returns a tuple with the Parameters field value
+// and a boolean to check if the value has been set.
+func (o *TariffDTO) GetParametersOk() ([]TariffParameterDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Parameters, true
+}
+
+// SetParameters sets field value
+func (o *TariffDTO) SetParameters(v []TariffParameterDTO) {
+ o.Parameters = v
+}
+
+func (o TariffDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TariffDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["type"] = o.Type
+ if !IsNil(o.Percent) {
+ toSerialize["percent"] = o.Percent
+ }
+ toSerialize["amount"] = o.Amount
+ toSerialize["currency"] = o.Currency
+ toSerialize["parameters"] = o.Parameters
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TariffDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "type",
+ "amount",
+ "currency",
+ "parameters",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTariffDTO := _TariffDTO{}
+
+ err = json.Unmarshal(data, &varTariffDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TariffDTO(varTariffDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "percent")
+ delete(additionalProperties, "amount")
+ delete(additionalProperties, "currency")
+ delete(additionalProperties, "parameters")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTariffDTO struct {
+ value *TariffDTO
+ isSet bool
+}
+
+func (v NullableTariffDTO) Get() *TariffDTO {
+ return v.value
+}
+
+func (v *NullableTariffDTO) Set(val *TariffDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTariffDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTariffDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTariffDTO(val *TariffDTO) *NullableTariffDTO {
+ return &NullableTariffDTO{value: val, isSet: true}
+}
+
+func (v NullableTariffDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTariffDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_tariff_parameter_dto.go b/pkg/api/yandex/ymclient/model_tariff_parameter_dto.go
new file mode 100644
index 0000000..b5ca280
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_tariff_parameter_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the TariffParameterDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TariffParameterDTO{}
+
+// TariffParameterDTO Детали расчета конкретной услуги Маркета.
+type TariffParameterDTO struct {
+ // Название параметра.
+ Name string `json:"name"`
+ // Значение параметра.
+ Value string `json:"value"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TariffParameterDTO TariffParameterDTO
+
+// NewTariffParameterDTO instantiates a new TariffParameterDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTariffParameterDTO(name string, value string) *TariffParameterDTO {
+ this := TariffParameterDTO{}
+ this.Name = name
+ this.Value = value
+ return &this
+}
+
+// NewTariffParameterDTOWithDefaults instantiates a new TariffParameterDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTariffParameterDTOWithDefaults() *TariffParameterDTO {
+ this := TariffParameterDTO{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *TariffParameterDTO) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *TariffParameterDTO) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *TariffParameterDTO) SetName(v string) {
+ o.Name = v
+}
+
+// GetValue returns the Value field value
+func (o *TariffParameterDTO) GetValue() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value
+// and a boolean to check if the value has been set.
+func (o *TariffParameterDTO) GetValueOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Value, true
+}
+
+// SetValue sets field value
+func (o *TariffParameterDTO) SetValue(v string) {
+ o.Value = v
+}
+
+func (o TariffParameterDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TariffParameterDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ toSerialize["value"] = o.Value
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TariffParameterDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ "value",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTariffParameterDTO := _TariffParameterDTO{}
+
+ err = json.Unmarshal(data, &varTariffParameterDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TariffParameterDTO(varTariffParameterDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "value")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTariffParameterDTO struct {
+ value *TariffParameterDTO
+ isSet bool
+}
+
+func (v NullableTariffParameterDTO) Get() *TariffParameterDTO {
+ return v.value
+}
+
+func (v *NullableTariffParameterDTO) Set(val *TariffParameterDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTariffParameterDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTariffParameterDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTariffParameterDTO(val *TariffParameterDTO) *NullableTariffParameterDTO {
+ return &NullableTariffParameterDTO{value: val, isSet: true}
+}
+
+func (v NullableTariffParameterDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTariffParameterDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_tariff_type.go b/pkg/api/yandex/ymclient/model_tariff_type.go
new file mode 100644
index 0000000..9180ef8
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_tariff_type.go
@@ -0,0 +1,156 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// TariffType Услуга Маркета или дополнительный тариф к услуге размещения: * `AGENCY_COMMISSION` — прием платежа покупателя. * `PAYMENT_TRANSFER` — перевод платежа покупателя. * `STORAGE` — хранение товара на складе Маркета в течение суток. * `SURPLUS` — хранение излишков на складе Маркета. * `WITHDRAW` — вывоз товара со склада Маркета. * `FEE` — размещение товара на Маркете. * `DELIVERY_TO_CUSTOMER` — доставка покупателю. * `CROSSREGIONAL_DELIVERY` — доставка в федеральный округ, город или населенный пункт. * `CROSSREGIONAL_DELIVERY_RETURN` — доставка невыкупов и возвратов. * `DISPOSAL` — утилизация. * `SORTING_CENTER_STORAGE` — хранение невыкупов и возвратов. * `EXPRESS_DELIVERY` — экспресс-доставка покупателю. * `FF_XDOC_SUPPLY_BOX` — поставка товара через транзитный склад (за короб). * `FF_XDOC_SUPPLY_PALLET` — поставка товара через транзитный склад (за палету). * `SORTING` — обработка заказа. * `MIDDLE_MILE` — средняя миля. * `RETURN_PROCESSING` — обработка невыкупов и возвратов. * `EXPRESS_CANCELLED_BY_PARTNER` — отмена заказа с экспресс-доставкой. * `CROSSBORDER_DELIVERY` — доставка из-за рубежа. * `INTAKE_SORTING_BULKY_CARGO` — сортировка заказов с крупногабаритными товарами, которые Маркет забрал со склада продавца. * `INTAKE_SORTING_SMALL_GOODS` — сортировка заказов с малогабаритными товарами, которые Маркет забрал со склада продавца. * `INTAKE_SORTING_DAILY` — организация забора заказов со склада продавца. * `FF_STORAGE_BILLING` — хранения товаров на складе. * `CANCELLED_ORDER_FEE_QI` — отмена заказа по вине продавца. * `LATE_ORDER_EXECUTION_FEE_QI` — несвоевременная отгрузка или доставка. Подробнее об услугах Маркета читайте [в Справке Маркета для продавцов](https://yandex.ru/support/marketplace/introduction/rates/index.html).
+type TariffType string
+
+// List of TariffType
+const (
+ TARIFFTYPE_AGENCY_COMMISSION TariffType = "AGENCY_COMMISSION"
+ TARIFFTYPE_PAYMENT_TRANSFER TariffType = "PAYMENT_TRANSFER"
+ TARIFFTYPE_STORAGE TariffType = "STORAGE"
+ TARIFFTYPE_WITHDRAW TariffType = "WITHDRAW"
+ TARIFFTYPE_SURPLUS TariffType = "SURPLUS"
+ TARIFFTYPE_FEE TariffType = "FEE"
+ TARIFFTYPE_DELIVERY_TO_CUSTOMER TariffType = "DELIVERY_TO_CUSTOMER"
+ TARIFFTYPE_CROSSREGIONAL_DELIVERY TariffType = "CROSSREGIONAL_DELIVERY"
+ TARIFFTYPE_CROSSREGIONAL_DELIVERY_RETURN TariffType = "CROSSREGIONAL_DELIVERY_RETURN"
+ TARIFFTYPE_DISPOSAL TariffType = "DISPOSAL"
+ TARIFFTYPE_SORTING_CENTER_STORAGE TariffType = "SORTING_CENTER_STORAGE"
+ TARIFFTYPE_EXPRESS_DELIVERY TariffType = "EXPRESS_DELIVERY"
+ TARIFFTYPE_FF_XDOC_SUPPLY_BOX TariffType = "FF_XDOC_SUPPLY_BOX"
+ TARIFFTYPE_FF_XDOC_SUPPLY_PALLET TariffType = "FF_XDOC_SUPPLY_PALLET"
+ TARIFFTYPE_SORTING TariffType = "SORTING"
+ TARIFFTYPE_MIDDLE_MILE TariffType = "MIDDLE_MILE"
+ TARIFFTYPE_RETURN_PROCESSING TariffType = "RETURN_PROCESSING"
+ TARIFFTYPE_EXPRESS_CANCELLED_BY_PARTNER TariffType = "EXPRESS_CANCELLED_BY_PARTNER"
+ TARIFFTYPE_CROSSBORDER_DELIVERY TariffType = "CROSSBORDER_DELIVERY"
+ TARIFFTYPE_INTAKE_SORTING_BULKY_CARGO TariffType = "INTAKE_SORTING_BULKY_CARGO"
+ TARIFFTYPE_INTAKE_SORTING_SMALL_GOODS TariffType = "INTAKE_SORTING_SMALL_GOODS"
+ TARIFFTYPE_INTAKE_SORTING_DAILY TariffType = "INTAKE_SORTING_DAILY"
+ TARIFFTYPE_FF_STORAGE_BILLING TariffType = "FF_STORAGE_BILLING"
+ TARIFFTYPE_CANCELLED_ORDER_FEE_QI TariffType = "CANCELLED_ORDER_FEE_QI"
+ TARIFFTYPE_LATE_ORDER_EXECUTION_FEE_QI TariffType = "LATE_ORDER_EXECUTION_FEE_QI"
+)
+
+// All allowed values of TariffType enum
+var AllowedTariffTypeEnumValues = []TariffType{
+ "AGENCY_COMMISSION",
+ "PAYMENT_TRANSFER",
+ "STORAGE",
+ "WITHDRAW",
+ "SURPLUS",
+ "FEE",
+ "DELIVERY_TO_CUSTOMER",
+ "CROSSREGIONAL_DELIVERY",
+ "CROSSREGIONAL_DELIVERY_RETURN",
+ "DISPOSAL",
+ "SORTING_CENTER_STORAGE",
+ "EXPRESS_DELIVERY",
+ "FF_XDOC_SUPPLY_BOX",
+ "FF_XDOC_SUPPLY_PALLET",
+ "SORTING",
+ "MIDDLE_MILE",
+ "RETURN_PROCESSING",
+ "EXPRESS_CANCELLED_BY_PARTNER",
+ "CROSSBORDER_DELIVERY",
+ "INTAKE_SORTING_BULKY_CARGO",
+ "INTAKE_SORTING_SMALL_GOODS",
+ "INTAKE_SORTING_DAILY",
+ "FF_STORAGE_BILLING",
+ "CANCELLED_ORDER_FEE_QI",
+ "LATE_ORDER_EXECUTION_FEE_QI",
+}
+
+func (v *TariffType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := TariffType(value)
+ for _, existing := range AllowedTariffTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid TariffType", value)
+}
+
+// NewTariffTypeFromValue returns a pointer to a valid TariffType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewTariffTypeFromValue(v string) (*TariffType, error) {
+ ev := TariffType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for TariffType: valid values are %v", v, AllowedTariffTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v TariffType) IsValid() bool {
+ for _, existing := range AllowedTariffTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to TariffType value
+func (v TariffType) Ptr() *TariffType {
+ return &v
+}
+
+type NullableTariffType struct {
+ value *TariffType
+ isSet bool
+}
+
+func (v NullableTariffType) Get() *TariffType {
+ return v.value
+}
+
+func (v *NullableTariffType) Set(val *TariffType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTariffType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTariffType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTariffType(val *TariffType) *NullableTariffType {
+ return &NullableTariffType{value: val, isSet: true}
+}
+
+func (v NullableTariffType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTariffType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_time_period_dto.go b/pkg/api/yandex/ymclient/model_time_period_dto.go
new file mode 100644
index 0000000..9499087
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_time_period_dto.go
@@ -0,0 +1,234 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the TimePeriodDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TimePeriodDTO{}
+
+// TimePeriodDTO Временной отрезок с комментарием. Требования к содержанию комментария зависят от контекста использования параметра и указаны в описании поля, которое его содержит.
+type TimePeriodDTO struct {
+ // Продолжительность в указанных единицах.
+ TimePeriod int32 `json:"timePeriod"`
+ TimeUnit TimeUnitType `json:"timeUnit"`
+ // Комментарий.
+ Comment *string `json:"comment,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TimePeriodDTO TimePeriodDTO
+
+// NewTimePeriodDTO instantiates a new TimePeriodDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTimePeriodDTO(timePeriod int32, timeUnit TimeUnitType) *TimePeriodDTO {
+ this := TimePeriodDTO{}
+ this.TimePeriod = timePeriod
+ this.TimeUnit = timeUnit
+ return &this
+}
+
+// NewTimePeriodDTOWithDefaults instantiates a new TimePeriodDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTimePeriodDTOWithDefaults() *TimePeriodDTO {
+ this := TimePeriodDTO{}
+ return &this
+}
+
+// GetTimePeriod returns the TimePeriod field value
+func (o *TimePeriodDTO) GetTimePeriod() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.TimePeriod
+}
+
+// GetTimePeriodOk returns a tuple with the TimePeriod field value
+// and a boolean to check if the value has been set.
+func (o *TimePeriodDTO) GetTimePeriodOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TimePeriod, true
+}
+
+// SetTimePeriod sets field value
+func (o *TimePeriodDTO) SetTimePeriod(v int32) {
+ o.TimePeriod = v
+}
+
+// GetTimeUnit returns the TimeUnit field value
+func (o *TimePeriodDTO) GetTimeUnit() TimeUnitType {
+ if o == nil {
+ var ret TimeUnitType
+ return ret
+ }
+
+ return o.TimeUnit
+}
+
+// GetTimeUnitOk returns a tuple with the TimeUnit field value
+// and a boolean to check if the value has been set.
+func (o *TimePeriodDTO) GetTimeUnitOk() (*TimeUnitType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TimeUnit, true
+}
+
+// SetTimeUnit sets field value
+func (o *TimePeriodDTO) SetTimeUnit(v TimeUnitType) {
+ o.TimeUnit = v
+}
+
+// GetComment returns the Comment field value if set, zero value otherwise.
+func (o *TimePeriodDTO) GetComment() string {
+ if o == nil || IsNil(o.Comment) {
+ var ret string
+ return ret
+ }
+ return *o.Comment
+}
+
+// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TimePeriodDTO) GetCommentOk() (*string, bool) {
+ if o == nil || IsNil(o.Comment) {
+ return nil, false
+ }
+ return o.Comment, true
+}
+
+// HasComment returns a boolean if a field has been set.
+func (o *TimePeriodDTO) HasComment() bool {
+ if o != nil && !IsNil(o.Comment) {
+ return true
+ }
+
+ return false
+}
+
+// SetComment gets a reference to the given string and assigns it to the Comment field.
+func (o *TimePeriodDTO) SetComment(v string) {
+ o.Comment = &v
+}
+
+func (o TimePeriodDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TimePeriodDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["timePeriod"] = o.TimePeriod
+ toSerialize["timeUnit"] = o.TimeUnit
+ if !IsNil(o.Comment) {
+ toSerialize["comment"] = o.Comment
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TimePeriodDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "timePeriod",
+ "timeUnit",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTimePeriodDTO := _TimePeriodDTO{}
+
+ err = json.Unmarshal(data, &varTimePeriodDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TimePeriodDTO(varTimePeriodDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "timePeriod")
+ delete(additionalProperties, "timeUnit")
+ delete(additionalProperties, "comment")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTimePeriodDTO struct {
+ value *TimePeriodDTO
+ isSet bool
+}
+
+func (v NullableTimePeriodDTO) Get() *TimePeriodDTO {
+ return v.value
+}
+
+func (v *NullableTimePeriodDTO) Set(val *TimePeriodDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTimePeriodDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTimePeriodDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTimePeriodDTO(val *TimePeriodDTO) *NullableTimePeriodDTO {
+ return &NullableTimePeriodDTO{value: val, isSet: true}
+}
+
+func (v NullableTimePeriodDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTimePeriodDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_time_unit_type.go b/pkg/api/yandex/ymclient/model_time_unit_type.go
new file mode 100644
index 0000000..a8a52d4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_time_unit_type.go
@@ -0,0 +1,116 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// TimeUnitType Единица измерения времени: * `HOUR` — час. * `DAY` — сутки. * `WEEK` — неделя. * `MONTH` — месяц. * `YEAR` — год.
+type TimeUnitType string
+
+// List of TimeUnitType
+const (
+ TIMEUNITTYPE_HOUR TimeUnitType = "HOUR"
+ TIMEUNITTYPE_DAY TimeUnitType = "DAY"
+ TIMEUNITTYPE_WEEK TimeUnitType = "WEEK"
+ TIMEUNITTYPE_MONTH TimeUnitType = "MONTH"
+ TIMEUNITTYPE_YEAR TimeUnitType = "YEAR"
+)
+
+// All allowed values of TimeUnitType enum
+var AllowedTimeUnitTypeEnumValues = []TimeUnitType{
+ "HOUR",
+ "DAY",
+ "WEEK",
+ "MONTH",
+ "YEAR",
+}
+
+func (v *TimeUnitType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := TimeUnitType(value)
+ for _, existing := range AllowedTimeUnitTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid TimeUnitType", value)
+}
+
+// NewTimeUnitTypeFromValue returns a pointer to a valid TimeUnitType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewTimeUnitTypeFromValue(v string) (*TimeUnitType, error) {
+ ev := TimeUnitType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for TimeUnitType: valid values are %v", v, AllowedTimeUnitTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v TimeUnitType) IsValid() bool {
+ for _, existing := range AllowedTimeUnitTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to TimeUnitType value
+func (v TimeUnitType) Ptr() *TimeUnitType {
+ return &v
+}
+
+type NullableTimeUnitType struct {
+ value *TimeUnitType
+ isSet bool
+}
+
+func (v NullableTimeUnitType) Get() *TimeUnitType {
+ return v.value
+}
+
+func (v *NullableTimeUnitType) Set(val *TimeUnitType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTimeUnitType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTimeUnitType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTimeUnitType(val *TimeUnitType) *NullableTimeUnitType {
+ return &NullableTimeUnitType{value: val, isSet: true}
+}
+
+func (v NullableTimeUnitType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTimeUnitType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_token_dto.go b/pkg/api/yandex/ymclient/model_token_dto.go
new file mode 100644
index 0000000..d88b771
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_token_dto.go
@@ -0,0 +1,166 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the TokenDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TokenDTO{}
+
+// TokenDTO Информация об авторизационном токене.
+type TokenDTO struct {
+ ApiKey ApiKeyDTO `json:"apiKey"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TokenDTO TokenDTO
+
+// NewTokenDTO instantiates a new TokenDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTokenDTO(apiKey ApiKeyDTO) *TokenDTO {
+ this := TokenDTO{}
+ this.ApiKey = apiKey
+ return &this
+}
+
+// NewTokenDTOWithDefaults instantiates a new TokenDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTokenDTOWithDefaults() *TokenDTO {
+ this := TokenDTO{}
+ return &this
+}
+
+// GetApiKey returns the ApiKey field value
+func (o *TokenDTO) GetApiKey() ApiKeyDTO {
+ if o == nil {
+ var ret ApiKeyDTO
+ return ret
+ }
+
+ return o.ApiKey
+}
+
+// GetApiKeyOk returns a tuple with the ApiKey field value
+// and a boolean to check if the value has been set.
+func (o *TokenDTO) GetApiKeyOk() (*ApiKeyDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ApiKey, true
+}
+
+// SetApiKey sets field value
+func (o *TokenDTO) SetApiKey(v ApiKeyDTO) {
+ o.ApiKey = v
+}
+
+func (o TokenDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TokenDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["apiKey"] = o.ApiKey
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TokenDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "apiKey",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTokenDTO := _TokenDTO{}
+
+ err = json.Unmarshal(data, &varTokenDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TokenDTO(varTokenDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "apiKey")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTokenDTO struct {
+ value *TokenDTO
+ isSet bool
+}
+
+func (v NullableTokenDTO) Get() *TokenDTO {
+ return v.value
+}
+
+func (v *NullableTokenDTO) Set(val *TokenDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTokenDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTokenDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTokenDTO(val *TokenDTO) *NullableTokenDTO {
+ return &NullableTokenDTO{value: val, isSet: true}
+}
+
+func (v NullableTokenDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTokenDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_track_dto.go b/pkg/api/yandex/ymclient/model_track_dto.go
new file mode 100644
index 0000000..9e8006d
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_track_dto.go
@@ -0,0 +1,154 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the TrackDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TrackDTO{}
+
+// TrackDTO Информация о трек-номерах.
+type TrackDTO struct {
+ // Трек-код почтового отправления.
+ TrackCode *string `json:"trackCode,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TrackDTO TrackDTO
+
+// NewTrackDTO instantiates a new TrackDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTrackDTO() *TrackDTO {
+ this := TrackDTO{}
+ return &this
+}
+
+// NewTrackDTOWithDefaults instantiates a new TrackDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTrackDTOWithDefaults() *TrackDTO {
+ this := TrackDTO{}
+ return &this
+}
+
+// GetTrackCode returns the TrackCode field value if set, zero value otherwise.
+func (o *TrackDTO) GetTrackCode() string {
+ if o == nil || IsNil(o.TrackCode) {
+ var ret string
+ return ret
+ }
+ return *o.TrackCode
+}
+
+// GetTrackCodeOk returns a tuple with the TrackCode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TrackDTO) GetTrackCodeOk() (*string, bool) {
+ if o == nil || IsNil(o.TrackCode) {
+ return nil, false
+ }
+ return o.TrackCode, true
+}
+
+// HasTrackCode returns a boolean if a field has been set.
+func (o *TrackDTO) HasTrackCode() bool {
+ if o != nil && !IsNil(o.TrackCode) {
+ return true
+ }
+
+ return false
+}
+
+// SetTrackCode gets a reference to the given string and assigns it to the TrackCode field.
+func (o *TrackDTO) SetTrackCode(v string) {
+ o.TrackCode = &v
+}
+
+func (o TrackDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TrackDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.TrackCode) {
+ toSerialize["trackCode"] = o.TrackCode
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TrackDTO) UnmarshalJSON(data []byte) (err error) {
+ varTrackDTO := _TrackDTO{}
+
+ err = json.Unmarshal(data, &varTrackDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TrackDTO(varTrackDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "trackCode")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTrackDTO struct {
+ value *TrackDTO
+ isSet bool
+}
+
+func (v NullableTrackDTO) Get() *TrackDTO {
+ return v.value
+}
+
+func (v *NullableTrackDTO) Set(val *TrackDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTrackDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTrackDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTrackDTO(val *TrackDTO) *NullableTrackDTO {
+ return &NullableTrackDTO{value: val, isSet: true}
+}
+
+func (v NullableTrackDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTrackDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_transfer_orders_from_shipment_request.go b/pkg/api/yandex/ymclient/model_transfer_orders_from_shipment_request.go
new file mode 100644
index 0000000..8281b66
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_transfer_orders_from_shipment_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the TransferOrdersFromShipmentRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TransferOrdersFromShipmentRequest{}
+
+// TransferOrdersFromShipmentRequest Запрос переноса заказов из отгрузки.
+type TransferOrdersFromShipmentRequest struct {
+ // Список заказов, которые вы не успеваете подготовить.
+ OrderIds []int64 `json:"orderIds"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TransferOrdersFromShipmentRequest TransferOrdersFromShipmentRequest
+
+// NewTransferOrdersFromShipmentRequest instantiates a new TransferOrdersFromShipmentRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTransferOrdersFromShipmentRequest(orderIds []int64) *TransferOrdersFromShipmentRequest {
+ this := TransferOrdersFromShipmentRequest{}
+ this.OrderIds = orderIds
+ return &this
+}
+
+// NewTransferOrdersFromShipmentRequestWithDefaults instantiates a new TransferOrdersFromShipmentRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTransferOrdersFromShipmentRequestWithDefaults() *TransferOrdersFromShipmentRequest {
+ this := TransferOrdersFromShipmentRequest{}
+ return &this
+}
+
+// GetOrderIds returns the OrderIds field value
+func (o *TransferOrdersFromShipmentRequest) GetOrderIds() []int64 {
+ if o == nil {
+ var ret []int64
+ return ret
+ }
+
+ return o.OrderIds
+}
+
+// GetOrderIdsOk returns a tuple with the OrderIds field value
+// and a boolean to check if the value has been set.
+func (o *TransferOrdersFromShipmentRequest) GetOrderIdsOk() ([]int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OrderIds, true
+}
+
+// SetOrderIds sets field value
+func (o *TransferOrdersFromShipmentRequest) SetOrderIds(v []int64) {
+ o.OrderIds = v
+}
+
+func (o TransferOrdersFromShipmentRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TransferOrdersFromShipmentRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["orderIds"] = o.OrderIds
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TransferOrdersFromShipmentRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "orderIds",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTransferOrdersFromShipmentRequest := _TransferOrdersFromShipmentRequest{}
+
+ err = json.Unmarshal(data, &varTransferOrdersFromShipmentRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TransferOrdersFromShipmentRequest(varTransferOrdersFromShipmentRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "orderIds")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTransferOrdersFromShipmentRequest struct {
+ value *TransferOrdersFromShipmentRequest
+ isSet bool
+}
+
+func (v NullableTransferOrdersFromShipmentRequest) Get() *TransferOrdersFromShipmentRequest {
+ return v.value
+}
+
+func (v *NullableTransferOrdersFromShipmentRequest) Set(val *TransferOrdersFromShipmentRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTransferOrdersFromShipmentRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTransferOrdersFromShipmentRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTransferOrdersFromShipmentRequest(val *TransferOrdersFromShipmentRequest) *NullableTransferOrdersFromShipmentRequest {
+ return &NullableTransferOrdersFromShipmentRequest{value: val, isSet: true}
+}
+
+func (v NullableTransferOrdersFromShipmentRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTransferOrdersFromShipmentRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_turnover_dto.go b/pkg/api/yandex/ymclient/model_turnover_dto.go
new file mode 100644
index 0000000..207ed45
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_turnover_dto.go
@@ -0,0 +1,204 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the TurnoverDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TurnoverDTO{}
+
+// TurnoverDTO Информация об оборачиваемости товара. Подробнее о хранении и оборачиваемости товаров читайте в [Справке Маркета для продавцов](https://yandex.ru/support/marketplace/ru/storage/logistics#turnover).
+type TurnoverDTO struct {
+ Turnover TurnoverType `json:"turnover"`
+ // Значение в днях.
+ TurnoverDays *float64 `json:"turnoverDays,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TurnoverDTO TurnoverDTO
+
+// NewTurnoverDTO instantiates a new TurnoverDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTurnoverDTO(turnover TurnoverType) *TurnoverDTO {
+ this := TurnoverDTO{}
+ this.Turnover = turnover
+ return &this
+}
+
+// NewTurnoverDTOWithDefaults instantiates a new TurnoverDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTurnoverDTOWithDefaults() *TurnoverDTO {
+ this := TurnoverDTO{}
+ return &this
+}
+
+// GetTurnover returns the Turnover field value
+func (o *TurnoverDTO) GetTurnover() TurnoverType {
+ if o == nil {
+ var ret TurnoverType
+ return ret
+ }
+
+ return o.Turnover
+}
+
+// GetTurnoverOk returns a tuple with the Turnover field value
+// and a boolean to check if the value has been set.
+func (o *TurnoverDTO) GetTurnoverOk() (*TurnoverType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Turnover, true
+}
+
+// SetTurnover sets field value
+func (o *TurnoverDTO) SetTurnover(v TurnoverType) {
+ o.Turnover = v
+}
+
+// GetTurnoverDays returns the TurnoverDays field value if set, zero value otherwise.
+func (o *TurnoverDTO) GetTurnoverDays() float64 {
+ if o == nil || IsNil(o.TurnoverDays) {
+ var ret float64
+ return ret
+ }
+ return *o.TurnoverDays
+}
+
+// GetTurnoverDaysOk returns a tuple with the TurnoverDays field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TurnoverDTO) GetTurnoverDaysOk() (*float64, bool) {
+ if o == nil || IsNil(o.TurnoverDays) {
+ return nil, false
+ }
+ return o.TurnoverDays, true
+}
+
+// HasTurnoverDays returns a boolean if a field has been set.
+func (o *TurnoverDTO) HasTurnoverDays() bool {
+ if o != nil && !IsNil(o.TurnoverDays) {
+ return true
+ }
+
+ return false
+}
+
+// SetTurnoverDays gets a reference to the given float64 and assigns it to the TurnoverDays field.
+func (o *TurnoverDTO) SetTurnoverDays(v float64) {
+ o.TurnoverDays = &v
+}
+
+func (o TurnoverDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TurnoverDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["turnover"] = o.Turnover
+ if !IsNil(o.TurnoverDays) {
+ toSerialize["turnoverDays"] = o.TurnoverDays
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TurnoverDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "turnover",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTurnoverDTO := _TurnoverDTO{}
+
+ err = json.Unmarshal(data, &varTurnoverDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TurnoverDTO(varTurnoverDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "turnover")
+ delete(additionalProperties, "turnoverDays")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTurnoverDTO struct {
+ value *TurnoverDTO
+ isSet bool
+}
+
+func (v NullableTurnoverDTO) Get() *TurnoverDTO {
+ return v.value
+}
+
+func (v *NullableTurnoverDTO) Set(val *TurnoverDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTurnoverDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTurnoverDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTurnoverDTO(val *TurnoverDTO) *NullableTurnoverDTO {
+ return &NullableTurnoverDTO{value: val, isSet: true}
+}
+
+func (v NullableTurnoverDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTurnoverDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_turnover_type.go b/pkg/api/yandex/ymclient/model_turnover_type.go
new file mode 100644
index 0000000..96fb9f2
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_turnover_type.go
@@ -0,0 +1,118 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// TurnoverType Оценка оборачиваемости. |enum|Диапазон оборачиваемости|Комментарий| |-|-|-| |`LOW`|`turnoverDays` ≥ 120|| |`ALMOST_LOW`|100 ≤ `turnoverDays` < 120|| |`HIGH`|45 ≤ `turnoverDays` < 100|| |`VERY_HIGH`|0 ≤ `turnoverDays` < 45|| |`NO_SALES`|—|Продаж нет.| |`FREE_STORE`|Любое значение.|Платить за хранение товаров этой категории не требуется.|
+type TurnoverType string
+
+// List of TurnoverType
+const (
+ TURNOVERTYPE_LOW TurnoverType = "LOW"
+ TURNOVERTYPE_ALMOST_LOW TurnoverType = "ALMOST_LOW"
+ TURNOVERTYPE_HIGH TurnoverType = "HIGH"
+ TURNOVERTYPE_VERY_HIGH TurnoverType = "VERY_HIGH"
+ TURNOVERTYPE_NO_SALES TurnoverType = "NO_SALES"
+ TURNOVERTYPE_FREE_STORE TurnoverType = "FREE_STORE"
+)
+
+// All allowed values of TurnoverType enum
+var AllowedTurnoverTypeEnumValues = []TurnoverType{
+ "LOW",
+ "ALMOST_LOW",
+ "HIGH",
+ "VERY_HIGH",
+ "NO_SALES",
+ "FREE_STORE",
+}
+
+func (v *TurnoverType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := TurnoverType(value)
+ for _, existing := range AllowedTurnoverTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid TurnoverType", value)
+}
+
+// NewTurnoverTypeFromValue returns a pointer to a valid TurnoverType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewTurnoverTypeFromValue(v string) (*TurnoverType, error) {
+ ev := TurnoverType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for TurnoverType: valid values are %v", v, AllowedTurnoverTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v TurnoverType) IsValid() bool {
+ for _, existing := range AllowedTurnoverTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to TurnoverType value
+func (v TurnoverType) Ptr() *TurnoverType {
+ return &v
+}
+
+type NullableTurnoverType struct {
+ value *TurnoverType
+ isSet bool
+}
+
+func (v NullableTurnoverType) Get() *TurnoverType {
+ return v.value
+}
+
+func (v *NullableTurnoverType) Set(val *TurnoverType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTurnoverType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTurnoverType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTurnoverType(val *TurnoverType) *NullableTurnoverType {
+ return &NullableTurnoverType{value: val, isSet: true}
+}
+
+func (v NullableTurnoverType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTurnoverType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_uin_dto.go b/pkg/api/yandex/ymclient/model_uin_dto.go
new file mode 100644
index 0000000..2fadc45
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_uin_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UinDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UinDTO{}
+
+// UinDTO Статус проверки УИНа.
+type UinDTO struct {
+ // УИН товара.
+ Value string `json:"value"`
+ Status UinStatusType `json:"status"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UinDTO UinDTO
+
+// NewUinDTO instantiates a new UinDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUinDTO(value string, status UinStatusType) *UinDTO {
+ this := UinDTO{}
+ this.Value = value
+ this.Status = status
+ return &this
+}
+
+// NewUinDTOWithDefaults instantiates a new UinDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUinDTOWithDefaults() *UinDTO {
+ this := UinDTO{}
+ return &this
+}
+
+// GetValue returns the Value field value
+func (o *UinDTO) GetValue() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value
+// and a boolean to check if the value has been set.
+func (o *UinDTO) GetValueOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Value, true
+}
+
+// SetValue sets field value
+func (o *UinDTO) SetValue(v string) {
+ o.Value = v
+}
+
+// GetStatus returns the Status field value
+func (o *UinDTO) GetStatus() UinStatusType {
+ if o == nil {
+ var ret UinStatusType
+ return ret
+ }
+
+ return o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value
+// and a boolean to check if the value has been set.
+func (o *UinDTO) GetStatusOk() (*UinStatusType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Status, true
+}
+
+// SetStatus sets field value
+func (o *UinDTO) SetStatus(v UinStatusType) {
+ o.Status = v
+}
+
+func (o UinDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UinDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["value"] = o.Value
+ toSerialize["status"] = o.Status
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UinDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "value",
+ "status",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUinDTO := _UinDTO{}
+
+ err = json.Unmarshal(data, &varUinDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UinDTO(varUinDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "value")
+ delete(additionalProperties, "status")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUinDTO struct {
+ value *UinDTO
+ isSet bool
+}
+
+func (v NullableUinDTO) Get() *UinDTO {
+ return v.value
+}
+
+func (v *NullableUinDTO) Set(val *UinDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUinDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUinDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUinDTO(val *UinDTO) *NullableUinDTO {
+ return &NullableUinDTO{value: val, isSet: true}
+}
+
+func (v NullableUinDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUinDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_uin_status_type.go b/pkg/api/yandex/ymclient/model_uin_status_type.go
new file mode 100644
index 0000000..b0e4324
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_uin_status_type.go
@@ -0,0 +1,114 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// UinStatusType Статус проверки УИНа: * `FAILED` — не прошел проверку. * `IN_PROGRESS` — в процессе проверки. * `NOT_ON_VALIDATION` — УИН не отправлен на проверку или переданы не все УИНы в заказе. * `OK` — проверка успешно пройдена.
+type UinStatusType string
+
+// List of UinStatusType
+const (
+ UINSTATUSTYPE_OK UinStatusType = "OK"
+ UINSTATUSTYPE_IN_PROGRESS UinStatusType = "IN_PROGRESS"
+ UINSTATUSTYPE_FAILED UinStatusType = "FAILED"
+ UINSTATUSTYPE_NOT_ON_VALIDATION UinStatusType = "NOT_ON_VALIDATION"
+)
+
+// All allowed values of UinStatusType enum
+var AllowedUinStatusTypeEnumValues = []UinStatusType{
+ "OK",
+ "IN_PROGRESS",
+ "FAILED",
+ "NOT_ON_VALIDATION",
+}
+
+func (v *UinStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := UinStatusType(value)
+ for _, existing := range AllowedUinStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid UinStatusType", value)
+}
+
+// NewUinStatusTypeFromValue returns a pointer to a valid UinStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewUinStatusTypeFromValue(v string) (*UinStatusType, error) {
+ ev := UinStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for UinStatusType: valid values are %v", v, AllowedUinStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v UinStatusType) IsValid() bool {
+ for _, existing := range AllowedUinStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to UinStatusType value
+func (v UinStatusType) Ptr() *UinStatusType {
+ return &v
+}
+
+type NullableUinStatusType struct {
+ value *UinStatusType
+ isSet bool
+}
+
+func (v NullableUinStatusType) Get() *UinStatusType {
+ return v.value
+}
+
+func (v *NullableUinStatusType) Set(val *UinStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUinStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUinStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUinStatusType(val *UinStatusType) *NullableUinStatusType {
+ return &NullableUinStatusType{value: val, isSet: true}
+}
+
+func (v NullableUinStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUinStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_unit_dto.go b/pkg/api/yandex/ymclient/model_unit_dto.go
new file mode 100644
index 0000000..b4392a2
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_unit_dto.go
@@ -0,0 +1,227 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UnitDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UnitDTO{}
+
+// UnitDTO Единица измерения.
+type UnitDTO struct {
+ // Идентификатор единицы измерения.
+ Id int64 `json:"id"`
+ // Сокращенное название единицы измерения.
+ Name string `json:"name"`
+ // Полное название единицы измерения.
+ FullName string `json:"fullName"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UnitDTO UnitDTO
+
+// NewUnitDTO instantiates a new UnitDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUnitDTO(id int64, name string, fullName string) *UnitDTO {
+ this := UnitDTO{}
+ this.Id = id
+ this.Name = name
+ this.FullName = fullName
+ return &this
+}
+
+// NewUnitDTOWithDefaults instantiates a new UnitDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUnitDTOWithDefaults() *UnitDTO {
+ this := UnitDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *UnitDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *UnitDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *UnitDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetName returns the Name field value
+func (o *UnitDTO) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *UnitDTO) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *UnitDTO) SetName(v string) {
+ o.Name = v
+}
+
+// GetFullName returns the FullName field value
+func (o *UnitDTO) GetFullName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.FullName
+}
+
+// GetFullNameOk returns a tuple with the FullName field value
+// and a boolean to check if the value has been set.
+func (o *UnitDTO) GetFullNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FullName, true
+}
+
+// SetFullName sets field value
+func (o *UnitDTO) SetFullName(v string) {
+ o.FullName = v
+}
+
+func (o UnitDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UnitDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["name"] = o.Name
+ toSerialize["fullName"] = o.FullName
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UnitDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "name",
+ "fullName",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUnitDTO := _UnitDTO{}
+
+ err = json.Unmarshal(data, &varUnitDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UnitDTO(varUnitDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "fullName")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUnitDTO struct {
+ value *UnitDTO
+ isSet bool
+}
+
+func (v NullableUnitDTO) Get() *UnitDTO {
+ return v.value
+}
+
+func (v *NullableUnitDTO) Set(val *UnitDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUnitDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUnitDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUnitDTO(val *UnitDTO) *NullableUnitDTO {
+ return &NullableUnitDTO{value: val, isSet: true}
+}
+
+func (v NullableUnitDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUnitDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_business_offer_price_dto.go b/pkg/api/yandex/ymclient/model_update_business_offer_price_dto.go
new file mode 100644
index 0000000..793cbc2
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_business_offer_price_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateBusinessOfferPriceDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateBusinessOfferPriceDTO{}
+
+// UpdateBusinessOfferPriceDTO Товар с новой ценой.
+type UpdateBusinessOfferPriceDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ Price UpdateBusinessPricesDTO `json:"price"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateBusinessOfferPriceDTO UpdateBusinessOfferPriceDTO
+
+// NewUpdateBusinessOfferPriceDTO instantiates a new UpdateBusinessOfferPriceDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateBusinessOfferPriceDTO(offerId string, price UpdateBusinessPricesDTO) *UpdateBusinessOfferPriceDTO {
+ this := UpdateBusinessOfferPriceDTO{}
+ this.OfferId = offerId
+ this.Price = price
+ return &this
+}
+
+// NewUpdateBusinessOfferPriceDTOWithDefaults instantiates a new UpdateBusinessOfferPriceDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateBusinessOfferPriceDTOWithDefaults() *UpdateBusinessOfferPriceDTO {
+ this := UpdateBusinessOfferPriceDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value
+func (o *UpdateBusinessOfferPriceDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *UpdateBusinessOfferPriceDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *UpdateBusinessOfferPriceDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetPrice returns the Price field value
+func (o *UpdateBusinessOfferPriceDTO) GetPrice() UpdateBusinessPricesDTO {
+ if o == nil {
+ var ret UpdateBusinessPricesDTO
+ return ret
+ }
+
+ return o.Price
+}
+
+// GetPriceOk returns a tuple with the Price field value
+// and a boolean to check if the value has been set.
+func (o *UpdateBusinessOfferPriceDTO) GetPriceOk() (*UpdateBusinessPricesDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Price, true
+}
+
+// SetPrice sets field value
+func (o *UpdateBusinessOfferPriceDTO) SetPrice(v UpdateBusinessPricesDTO) {
+ o.Price = v
+}
+
+func (o UpdateBusinessOfferPriceDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateBusinessOfferPriceDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerId"] = o.OfferId
+ toSerialize["price"] = o.Price
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateBusinessOfferPriceDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerId",
+ "price",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateBusinessOfferPriceDTO := _UpdateBusinessOfferPriceDTO{}
+
+ err = json.Unmarshal(data, &varUpdateBusinessOfferPriceDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateBusinessOfferPriceDTO(varUpdateBusinessOfferPriceDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "price")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateBusinessOfferPriceDTO struct {
+ value *UpdateBusinessOfferPriceDTO
+ isSet bool
+}
+
+func (v NullableUpdateBusinessOfferPriceDTO) Get() *UpdateBusinessOfferPriceDTO {
+ return v.value
+}
+
+func (v *NullableUpdateBusinessOfferPriceDTO) Set(val *UpdateBusinessOfferPriceDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateBusinessOfferPriceDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateBusinessOfferPriceDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateBusinessOfferPriceDTO(val *UpdateBusinessOfferPriceDTO) *NullableUpdateBusinessOfferPriceDTO {
+ return &NullableUpdateBusinessOfferPriceDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateBusinessOfferPriceDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateBusinessOfferPriceDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_business_prices_dto.go b/pkg/api/yandex/ymclient/model_update_business_prices_dto.go
new file mode 100644
index 0000000..84e52ad
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_business_prices_dto.go
@@ -0,0 +1,272 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateBusinessPricesDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateBusinessPricesDTO{}
+
+// UpdateBusinessPricesDTO Цены.
+type UpdateBusinessPricesDTO struct {
+ // Цена товара.
+ Value float32 `json:"value"`
+ CurrencyId CurrencyType `json:"currencyId"`
+ // Зачеркнутая цена. Число должно быть целым. Вы можете указать цену со скидкой от 5 до 99%. Передавайте этот параметр при каждом обновлении цены, если предоставляете скидку на товар.
+ DiscountBase *float32 `json:"discountBase,omitempty"`
+ // Минимальная цена товара для попадания в акцию «Бестселлеры Маркета». Подробнее об этом способе участия читайте [в Справке Маркета для продавцов](https://yandex.ru/support/marketplace/ru/marketing/promos/market/bestsellers#minimum). При передаче цены ориентируйтесь на значение параметра `maxPromoPrice` (максимально возможная цена для участия в акции) в методе [POST businesses/{businessId}/promos/offers](../../reference/promos/getPromoOffers.md). Товар не попадет в акцию с помощью этого способа, если: * Не передать этот параметр. Удалится значение, которое вы указали ранее. * В методе [POST businesses/{businessId}/offer-prices](../../reference/prices/getDefaultPrices.md) для этого товара возвращается параметр `excludedFromBestsellers` со значением `true`. Но товар по-прежнему сможет попасть в акцию через [автоматическое участие](:no-translate[*auto]) или [ручное добавление](:no-translate[*updatePromoOffers]).
+ MinimumForBestseller *float32 `json:"minimumForBestseller,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateBusinessPricesDTO UpdateBusinessPricesDTO
+
+// NewUpdateBusinessPricesDTO instantiates a new UpdateBusinessPricesDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateBusinessPricesDTO(value float32, currencyId CurrencyType) *UpdateBusinessPricesDTO {
+ this := UpdateBusinessPricesDTO{}
+ this.Value = value
+ this.CurrencyId = currencyId
+ return &this
+}
+
+// NewUpdateBusinessPricesDTOWithDefaults instantiates a new UpdateBusinessPricesDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateBusinessPricesDTOWithDefaults() *UpdateBusinessPricesDTO {
+ this := UpdateBusinessPricesDTO{}
+ return &this
+}
+
+// GetValue returns the Value field value
+func (o *UpdateBusinessPricesDTO) GetValue() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value
+// and a boolean to check if the value has been set.
+func (o *UpdateBusinessPricesDTO) GetValueOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Value, true
+}
+
+// SetValue sets field value
+func (o *UpdateBusinessPricesDTO) SetValue(v float32) {
+ o.Value = v
+}
+
+// GetCurrencyId returns the CurrencyId field value
+func (o *UpdateBusinessPricesDTO) GetCurrencyId() CurrencyType {
+ if o == nil {
+ var ret CurrencyType
+ return ret
+ }
+
+ return o.CurrencyId
+}
+
+// GetCurrencyIdOk returns a tuple with the CurrencyId field value
+// and a boolean to check if the value has been set.
+func (o *UpdateBusinessPricesDTO) GetCurrencyIdOk() (*CurrencyType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CurrencyId, true
+}
+
+// SetCurrencyId sets field value
+func (o *UpdateBusinessPricesDTO) SetCurrencyId(v CurrencyType) {
+ o.CurrencyId = v
+}
+
+// GetDiscountBase returns the DiscountBase field value if set, zero value otherwise.
+func (o *UpdateBusinessPricesDTO) GetDiscountBase() float32 {
+ if o == nil || IsNil(o.DiscountBase) {
+ var ret float32
+ return ret
+ }
+ return *o.DiscountBase
+}
+
+// GetDiscountBaseOk returns a tuple with the DiscountBase field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateBusinessPricesDTO) GetDiscountBaseOk() (*float32, bool) {
+ if o == nil || IsNil(o.DiscountBase) {
+ return nil, false
+ }
+ return o.DiscountBase, true
+}
+
+// HasDiscountBase returns a boolean if a field has been set.
+func (o *UpdateBusinessPricesDTO) HasDiscountBase() bool {
+ if o != nil && !IsNil(o.DiscountBase) {
+ return true
+ }
+
+ return false
+}
+
+// SetDiscountBase gets a reference to the given float32 and assigns it to the DiscountBase field.
+func (o *UpdateBusinessPricesDTO) SetDiscountBase(v float32) {
+ o.DiscountBase = &v
+}
+
+// GetMinimumForBestseller returns the MinimumForBestseller field value if set, zero value otherwise.
+func (o *UpdateBusinessPricesDTO) GetMinimumForBestseller() float32 {
+ if o == nil || IsNil(o.MinimumForBestseller) {
+ var ret float32
+ return ret
+ }
+ return *o.MinimumForBestseller
+}
+
+// GetMinimumForBestsellerOk returns a tuple with the MinimumForBestseller field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateBusinessPricesDTO) GetMinimumForBestsellerOk() (*float32, bool) {
+ if o == nil || IsNil(o.MinimumForBestseller) {
+ return nil, false
+ }
+ return o.MinimumForBestseller, true
+}
+
+// HasMinimumForBestseller returns a boolean if a field has been set.
+func (o *UpdateBusinessPricesDTO) HasMinimumForBestseller() bool {
+ if o != nil && !IsNil(o.MinimumForBestseller) {
+ return true
+ }
+
+ return false
+}
+
+// SetMinimumForBestseller gets a reference to the given float32 and assigns it to the MinimumForBestseller field.
+func (o *UpdateBusinessPricesDTO) SetMinimumForBestseller(v float32) {
+ o.MinimumForBestseller = &v
+}
+
+func (o UpdateBusinessPricesDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateBusinessPricesDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["value"] = o.Value
+ toSerialize["currencyId"] = o.CurrencyId
+ if !IsNil(o.DiscountBase) {
+ toSerialize["discountBase"] = o.DiscountBase
+ }
+ if !IsNil(o.MinimumForBestseller) {
+ toSerialize["minimumForBestseller"] = o.MinimumForBestseller
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateBusinessPricesDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "value",
+ "currencyId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateBusinessPricesDTO := _UpdateBusinessPricesDTO{}
+
+ err = json.Unmarshal(data, &varUpdateBusinessPricesDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateBusinessPricesDTO(varUpdateBusinessPricesDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "value")
+ delete(additionalProperties, "currencyId")
+ delete(additionalProperties, "discountBase")
+ delete(additionalProperties, "minimumForBestseller")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateBusinessPricesDTO struct {
+ value *UpdateBusinessPricesDTO
+ isSet bool
+}
+
+func (v NullableUpdateBusinessPricesDTO) Get() *UpdateBusinessPricesDTO {
+ return v.value
+}
+
+func (v *NullableUpdateBusinessPricesDTO) Set(val *UpdateBusinessPricesDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateBusinessPricesDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateBusinessPricesDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateBusinessPricesDTO(val *UpdateBusinessPricesDTO) *NullableUpdateBusinessPricesDTO {
+ return &NullableUpdateBusinessPricesDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateBusinessPricesDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateBusinessPricesDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_business_prices_request.go b/pkg/api/yandex/ymclient/model_update_business_prices_request.go
new file mode 100644
index 0000000..c8bc693
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_business_prices_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateBusinessPricesRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateBusinessPricesRequest{}
+
+// UpdateBusinessPricesRequest Запрос на установку цен, которые действуют во всех магазинах.
+type UpdateBusinessPricesRequest struct {
+ // Список товаров с ценами.
+ Offers []UpdateBusinessOfferPriceDTO `json:"offers"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateBusinessPricesRequest UpdateBusinessPricesRequest
+
+// NewUpdateBusinessPricesRequest instantiates a new UpdateBusinessPricesRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateBusinessPricesRequest(offers []UpdateBusinessOfferPriceDTO) *UpdateBusinessPricesRequest {
+ this := UpdateBusinessPricesRequest{}
+ this.Offers = offers
+ return &this
+}
+
+// NewUpdateBusinessPricesRequestWithDefaults instantiates a new UpdateBusinessPricesRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateBusinessPricesRequestWithDefaults() *UpdateBusinessPricesRequest {
+ this := UpdateBusinessPricesRequest{}
+ return &this
+}
+
+// GetOffers returns the Offers field value
+func (o *UpdateBusinessPricesRequest) GetOffers() []UpdateBusinessOfferPriceDTO {
+ if o == nil {
+ var ret []UpdateBusinessOfferPriceDTO
+ return ret
+ }
+
+ return o.Offers
+}
+
+// GetOffersOk returns a tuple with the Offers field value
+// and a boolean to check if the value has been set.
+func (o *UpdateBusinessPricesRequest) GetOffersOk() ([]UpdateBusinessOfferPriceDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Offers, true
+}
+
+// SetOffers sets field value
+func (o *UpdateBusinessPricesRequest) SetOffers(v []UpdateBusinessOfferPriceDTO) {
+ o.Offers = v
+}
+
+func (o UpdateBusinessPricesRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateBusinessPricesRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offers"] = o.Offers
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateBusinessPricesRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offers",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateBusinessPricesRequest := _UpdateBusinessPricesRequest{}
+
+ err = json.Unmarshal(data, &varUpdateBusinessPricesRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateBusinessPricesRequest(varUpdateBusinessPricesRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offers")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateBusinessPricesRequest struct {
+ value *UpdateBusinessPricesRequest
+ isSet bool
+}
+
+func (v NullableUpdateBusinessPricesRequest) Get() *UpdateBusinessPricesRequest {
+ return v.value
+}
+
+func (v *NullableUpdateBusinessPricesRequest) Set(val *UpdateBusinessPricesRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateBusinessPricesRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateBusinessPricesRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateBusinessPricesRequest(val *UpdateBusinessPricesRequest) *NullableUpdateBusinessPricesRequest {
+ return &NullableUpdateBusinessPricesRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateBusinessPricesRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateBusinessPricesRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_campaign_offer_dto.go b/pkg/api/yandex/ymclient/model_update_campaign_offer_dto.go
new file mode 100644
index 0000000..c924dfd
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_campaign_offer_dto.go
@@ -0,0 +1,288 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateCampaignOfferDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateCampaignOfferDTO{}
+
+// UpdateCampaignOfferDTO Параметры размещения товара в магазине.
+type UpdateCampaignOfferDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Deprecated
+ Quantum *QuantumDTO `json:"quantum,omitempty"`
+ // {% note warning \"Вместо него используйте методы скрытия товаров с витрины\" %} * [GET campaigns/{campaignId}/hidden-offers](../../reference/assortment/getHiddenOffers.md) — просмотр скрытых товаров; * [POST campaigns/{campaignId}/hidden-offers](../../reference/assortment/addHiddenOffers.md) — скрытие товаров; * [POST campaigns/{campaignId}/hidden-offers/delete](../../reference/assortment/deleteHiddenOffers.md) — возобновление показа. {% endnote %} Есть ли товар в продаже.
+ // Deprecated
+ Available *bool `json:"available,omitempty"`
+ // Идентификатор НДС, применяемый для товара: * `2` — НДС 10%. Например, используется при реализации отдельных продовольственных и медицинских товаров. * `5` — НДС 0%. Например, используется при продаже товаров, вывезенных в таможенной процедуре экспорта, или при оказании услуг по международной перевозке товаров. * `6` — НДС не облагается, используется только для отдельных видов услуг. * `7` — НДС 20%. Основной НДС с 2019 года. * `10` — НДС 5%. НДС для упрощенной системы налогообложения (УСН). * `11` — НДС 7%. НДС для упрощенной системы налогообложения (УСН). Если параметр не указан, используется НДС, установленный в кабинете. **Для продавцов :no-translate[Market Yandex Go]** недоступна передача и получение НДС.
+ Vat *int32 `json:"vat,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateCampaignOfferDTO UpdateCampaignOfferDTO
+
+// NewUpdateCampaignOfferDTO instantiates a new UpdateCampaignOfferDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateCampaignOfferDTO(offerId string) *UpdateCampaignOfferDTO {
+ this := UpdateCampaignOfferDTO{}
+ this.OfferId = offerId
+ return &this
+}
+
+// NewUpdateCampaignOfferDTOWithDefaults instantiates a new UpdateCampaignOfferDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateCampaignOfferDTOWithDefaults() *UpdateCampaignOfferDTO {
+ this := UpdateCampaignOfferDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value
+func (o *UpdateCampaignOfferDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *UpdateCampaignOfferDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *UpdateCampaignOfferDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetQuantum returns the Quantum field value if set, zero value otherwise.
+// Deprecated
+func (o *UpdateCampaignOfferDTO) GetQuantum() QuantumDTO {
+ if o == nil || IsNil(o.Quantum) {
+ var ret QuantumDTO
+ return ret
+ }
+ return *o.Quantum
+}
+
+// GetQuantumOk returns a tuple with the Quantum field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *UpdateCampaignOfferDTO) GetQuantumOk() (*QuantumDTO, bool) {
+ if o == nil || IsNil(o.Quantum) {
+ return nil, false
+ }
+ return o.Quantum, true
+}
+
+// HasQuantum returns a boolean if a field has been set.
+func (o *UpdateCampaignOfferDTO) HasQuantum() bool {
+ if o != nil && !IsNil(o.Quantum) {
+ return true
+ }
+
+ return false
+}
+
+// SetQuantum gets a reference to the given QuantumDTO and assigns it to the Quantum field.
+// Deprecated
+func (o *UpdateCampaignOfferDTO) SetQuantum(v QuantumDTO) {
+ o.Quantum = &v
+}
+
+// GetAvailable returns the Available field value if set, zero value otherwise.
+// Deprecated
+func (o *UpdateCampaignOfferDTO) GetAvailable() bool {
+ if o == nil || IsNil(o.Available) {
+ var ret bool
+ return ret
+ }
+ return *o.Available
+}
+
+// GetAvailableOk returns a tuple with the Available field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *UpdateCampaignOfferDTO) GetAvailableOk() (*bool, bool) {
+ if o == nil || IsNil(o.Available) {
+ return nil, false
+ }
+ return o.Available, true
+}
+
+// HasAvailable returns a boolean if a field has been set.
+func (o *UpdateCampaignOfferDTO) HasAvailable() bool {
+ if o != nil && !IsNil(o.Available) {
+ return true
+ }
+
+ return false
+}
+
+// SetAvailable gets a reference to the given bool and assigns it to the Available field.
+// Deprecated
+func (o *UpdateCampaignOfferDTO) SetAvailable(v bool) {
+ o.Available = &v
+}
+
+// GetVat returns the Vat field value if set, zero value otherwise.
+func (o *UpdateCampaignOfferDTO) GetVat() int32 {
+ if o == nil || IsNil(o.Vat) {
+ var ret int32
+ return ret
+ }
+ return *o.Vat
+}
+
+// GetVatOk returns a tuple with the Vat field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateCampaignOfferDTO) GetVatOk() (*int32, bool) {
+ if o == nil || IsNil(o.Vat) {
+ return nil, false
+ }
+ return o.Vat, true
+}
+
+// HasVat returns a boolean if a field has been set.
+func (o *UpdateCampaignOfferDTO) HasVat() bool {
+ if o != nil && !IsNil(o.Vat) {
+ return true
+ }
+
+ return false
+}
+
+// SetVat gets a reference to the given int32 and assigns it to the Vat field.
+func (o *UpdateCampaignOfferDTO) SetVat(v int32) {
+ o.Vat = &v
+}
+
+func (o UpdateCampaignOfferDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateCampaignOfferDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerId"] = o.OfferId
+ if !IsNil(o.Quantum) {
+ toSerialize["quantum"] = o.Quantum
+ }
+ if !IsNil(o.Available) {
+ toSerialize["available"] = o.Available
+ }
+ if !IsNil(o.Vat) {
+ toSerialize["vat"] = o.Vat
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateCampaignOfferDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateCampaignOfferDTO := _UpdateCampaignOfferDTO{}
+
+ err = json.Unmarshal(data, &varUpdateCampaignOfferDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateCampaignOfferDTO(varUpdateCampaignOfferDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "quantum")
+ delete(additionalProperties, "available")
+ delete(additionalProperties, "vat")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateCampaignOfferDTO struct {
+ value *UpdateCampaignOfferDTO
+ isSet bool
+}
+
+func (v NullableUpdateCampaignOfferDTO) Get() *UpdateCampaignOfferDTO {
+ return v.value
+}
+
+func (v *NullableUpdateCampaignOfferDTO) Set(val *UpdateCampaignOfferDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateCampaignOfferDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateCampaignOfferDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateCampaignOfferDTO(val *UpdateCampaignOfferDTO) *NullableUpdateCampaignOfferDTO {
+ return &NullableUpdateCampaignOfferDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateCampaignOfferDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateCampaignOfferDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_campaign_offers_request.go b/pkg/api/yandex/ymclient/model_update_campaign_offers_request.go
new file mode 100644
index 0000000..2b4b35a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_campaign_offers_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateCampaignOffersRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateCampaignOffersRequest{}
+
+// UpdateCampaignOffersRequest Запрос на обновление предложений товаров магазина.
+type UpdateCampaignOffersRequest struct {
+ // Параметры размещения товаров в заданном магазине.
+ Offers []UpdateCampaignOfferDTO `json:"offers"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateCampaignOffersRequest UpdateCampaignOffersRequest
+
+// NewUpdateCampaignOffersRequest instantiates a new UpdateCampaignOffersRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateCampaignOffersRequest(offers []UpdateCampaignOfferDTO) *UpdateCampaignOffersRequest {
+ this := UpdateCampaignOffersRequest{}
+ this.Offers = offers
+ return &this
+}
+
+// NewUpdateCampaignOffersRequestWithDefaults instantiates a new UpdateCampaignOffersRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateCampaignOffersRequestWithDefaults() *UpdateCampaignOffersRequest {
+ this := UpdateCampaignOffersRequest{}
+ return &this
+}
+
+// GetOffers returns the Offers field value
+func (o *UpdateCampaignOffersRequest) GetOffers() []UpdateCampaignOfferDTO {
+ if o == nil {
+ var ret []UpdateCampaignOfferDTO
+ return ret
+ }
+
+ return o.Offers
+}
+
+// GetOffersOk returns a tuple with the Offers field value
+// and a boolean to check if the value has been set.
+func (o *UpdateCampaignOffersRequest) GetOffersOk() ([]UpdateCampaignOfferDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Offers, true
+}
+
+// SetOffers sets field value
+func (o *UpdateCampaignOffersRequest) SetOffers(v []UpdateCampaignOfferDTO) {
+ o.Offers = v
+}
+
+func (o UpdateCampaignOffersRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateCampaignOffersRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offers"] = o.Offers
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateCampaignOffersRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offers",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateCampaignOffersRequest := _UpdateCampaignOffersRequest{}
+
+ err = json.Unmarshal(data, &varUpdateCampaignOffersRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateCampaignOffersRequest(varUpdateCampaignOffersRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offers")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateCampaignOffersRequest struct {
+ value *UpdateCampaignOffersRequest
+ isSet bool
+}
+
+func (v NullableUpdateCampaignOffersRequest) Get() *UpdateCampaignOffersRequest {
+ return v.value
+}
+
+func (v *NullableUpdateCampaignOffersRequest) Set(val *UpdateCampaignOffersRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateCampaignOffersRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateCampaignOffersRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateCampaignOffersRequest(val *UpdateCampaignOffersRequest) *NullableUpdateCampaignOffersRequest {
+ return &NullableUpdateCampaignOffersRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateCampaignOffersRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateCampaignOffersRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_external_order_id_request.go b/pkg/api/yandex/ymclient/model_update_external_order_id_request.go
new file mode 100644
index 0000000..ae90bbc
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_external_order_id_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateExternalOrderIdRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateExternalOrderIdRequest{}
+
+// UpdateExternalOrderIdRequest Список заказов.
+type UpdateExternalOrderIdRequest struct {
+ // Внешний идентификатор заказа.
+ ExternalOrderId string `json:"externalOrderId"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateExternalOrderIdRequest UpdateExternalOrderIdRequest
+
+// NewUpdateExternalOrderIdRequest instantiates a new UpdateExternalOrderIdRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateExternalOrderIdRequest(externalOrderId string) *UpdateExternalOrderIdRequest {
+ this := UpdateExternalOrderIdRequest{}
+ this.ExternalOrderId = externalOrderId
+ return &this
+}
+
+// NewUpdateExternalOrderIdRequestWithDefaults instantiates a new UpdateExternalOrderIdRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateExternalOrderIdRequestWithDefaults() *UpdateExternalOrderIdRequest {
+ this := UpdateExternalOrderIdRequest{}
+ return &this
+}
+
+// GetExternalOrderId returns the ExternalOrderId field value
+func (o *UpdateExternalOrderIdRequest) GetExternalOrderId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ExternalOrderId
+}
+
+// GetExternalOrderIdOk returns a tuple with the ExternalOrderId field value
+// and a boolean to check if the value has been set.
+func (o *UpdateExternalOrderIdRequest) GetExternalOrderIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ExternalOrderId, true
+}
+
+// SetExternalOrderId sets field value
+func (o *UpdateExternalOrderIdRequest) SetExternalOrderId(v string) {
+ o.ExternalOrderId = v
+}
+
+func (o UpdateExternalOrderIdRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateExternalOrderIdRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["externalOrderId"] = o.ExternalOrderId
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateExternalOrderIdRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "externalOrderId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateExternalOrderIdRequest := _UpdateExternalOrderIdRequest{}
+
+ err = json.Unmarshal(data, &varUpdateExternalOrderIdRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateExternalOrderIdRequest(varUpdateExternalOrderIdRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "externalOrderId")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateExternalOrderIdRequest struct {
+ value *UpdateExternalOrderIdRequest
+ isSet bool
+}
+
+func (v NullableUpdateExternalOrderIdRequest) Get() *UpdateExternalOrderIdRequest {
+ return v.value
+}
+
+func (v *NullableUpdateExternalOrderIdRequest) Set(val *UpdateExternalOrderIdRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateExternalOrderIdRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateExternalOrderIdRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateExternalOrderIdRequest(val *UpdateExternalOrderIdRequest) *NullableUpdateExternalOrderIdRequest {
+ return &NullableUpdateExternalOrderIdRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateExternalOrderIdRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateExternalOrderIdRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_goods_feedback_comment_dto.go b/pkg/api/yandex/ymclient/model_update_goods_feedback_comment_dto.go
new file mode 100644
index 0000000..4788cca
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_goods_feedback_comment_dto.go
@@ -0,0 +1,243 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateGoodsFeedbackCommentDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateGoodsFeedbackCommentDTO{}
+
+// UpdateGoodsFeedbackCommentDTO Комментарий к отзыву или другому комментарию.
+type UpdateGoodsFeedbackCommentDTO struct {
+ // Идентификатор комментария к отзыву.
+ Id *int64 `json:"id,omitempty"`
+ // Идентификатор комментария к отзыву.
+ ParentId *int64 `json:"parentId,omitempty"`
+ // Текст комментария.
+ Text string `json:"text"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateGoodsFeedbackCommentDTO UpdateGoodsFeedbackCommentDTO
+
+// NewUpdateGoodsFeedbackCommentDTO instantiates a new UpdateGoodsFeedbackCommentDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateGoodsFeedbackCommentDTO(text string) *UpdateGoodsFeedbackCommentDTO {
+ this := UpdateGoodsFeedbackCommentDTO{}
+ this.Text = text
+ return &this
+}
+
+// NewUpdateGoodsFeedbackCommentDTOWithDefaults instantiates a new UpdateGoodsFeedbackCommentDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateGoodsFeedbackCommentDTOWithDefaults() *UpdateGoodsFeedbackCommentDTO {
+ this := UpdateGoodsFeedbackCommentDTO{}
+ return &this
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *UpdateGoodsFeedbackCommentDTO) GetId() int64 {
+ if o == nil || IsNil(o.Id) {
+ var ret int64
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateGoodsFeedbackCommentDTO) GetIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *UpdateGoodsFeedbackCommentDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given int64 and assigns it to the Id field.
+func (o *UpdateGoodsFeedbackCommentDTO) SetId(v int64) {
+ o.Id = &v
+}
+
+// GetParentId returns the ParentId field value if set, zero value otherwise.
+func (o *UpdateGoodsFeedbackCommentDTO) GetParentId() int64 {
+ if o == nil || IsNil(o.ParentId) {
+ var ret int64
+ return ret
+ }
+ return *o.ParentId
+}
+
+// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateGoodsFeedbackCommentDTO) GetParentIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.ParentId) {
+ return nil, false
+ }
+ return o.ParentId, true
+}
+
+// HasParentId returns a boolean if a field has been set.
+func (o *UpdateGoodsFeedbackCommentDTO) HasParentId() bool {
+ if o != nil && !IsNil(o.ParentId) {
+ return true
+ }
+
+ return false
+}
+
+// SetParentId gets a reference to the given int64 and assigns it to the ParentId field.
+func (o *UpdateGoodsFeedbackCommentDTO) SetParentId(v int64) {
+ o.ParentId = &v
+}
+
+// GetText returns the Text field value
+func (o *UpdateGoodsFeedbackCommentDTO) GetText() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Text
+}
+
+// GetTextOk returns a tuple with the Text field value
+// and a boolean to check if the value has been set.
+func (o *UpdateGoodsFeedbackCommentDTO) GetTextOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Text, true
+}
+
+// SetText sets field value
+func (o *UpdateGoodsFeedbackCommentDTO) SetText(v string) {
+ o.Text = v
+}
+
+func (o UpdateGoodsFeedbackCommentDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateGoodsFeedbackCommentDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+ if !IsNil(o.ParentId) {
+ toSerialize["parentId"] = o.ParentId
+ }
+ toSerialize["text"] = o.Text
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateGoodsFeedbackCommentDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "text",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateGoodsFeedbackCommentDTO := _UpdateGoodsFeedbackCommentDTO{}
+
+ err = json.Unmarshal(data, &varUpdateGoodsFeedbackCommentDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateGoodsFeedbackCommentDTO(varUpdateGoodsFeedbackCommentDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "parentId")
+ delete(additionalProperties, "text")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateGoodsFeedbackCommentDTO struct {
+ value *UpdateGoodsFeedbackCommentDTO
+ isSet bool
+}
+
+func (v NullableUpdateGoodsFeedbackCommentDTO) Get() *UpdateGoodsFeedbackCommentDTO {
+ return v.value
+}
+
+func (v *NullableUpdateGoodsFeedbackCommentDTO) Set(val *UpdateGoodsFeedbackCommentDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateGoodsFeedbackCommentDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateGoodsFeedbackCommentDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateGoodsFeedbackCommentDTO(val *UpdateGoodsFeedbackCommentDTO) *NullableUpdateGoodsFeedbackCommentDTO {
+ return &NullableUpdateGoodsFeedbackCommentDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateGoodsFeedbackCommentDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateGoodsFeedbackCommentDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_goods_feedback_comment_request.go b/pkg/api/yandex/ymclient/model_update_goods_feedback_comment_request.go
new file mode 100644
index 0000000..22b9061
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_goods_feedback_comment_request.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateGoodsFeedbackCommentRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateGoodsFeedbackCommentRequest{}
+
+// UpdateGoodsFeedbackCommentRequest Комментарий к отзыву.
+type UpdateGoodsFeedbackCommentRequest struct {
+ // Идентификатор отзыва.
+ FeedbackId int64 `json:"feedbackId"`
+ Comment UpdateGoodsFeedbackCommentDTO `json:"comment"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateGoodsFeedbackCommentRequest UpdateGoodsFeedbackCommentRequest
+
+// NewUpdateGoodsFeedbackCommentRequest instantiates a new UpdateGoodsFeedbackCommentRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateGoodsFeedbackCommentRequest(feedbackId int64, comment UpdateGoodsFeedbackCommentDTO) *UpdateGoodsFeedbackCommentRequest {
+ this := UpdateGoodsFeedbackCommentRequest{}
+ this.FeedbackId = feedbackId
+ this.Comment = comment
+ return &this
+}
+
+// NewUpdateGoodsFeedbackCommentRequestWithDefaults instantiates a new UpdateGoodsFeedbackCommentRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateGoodsFeedbackCommentRequestWithDefaults() *UpdateGoodsFeedbackCommentRequest {
+ this := UpdateGoodsFeedbackCommentRequest{}
+ return &this
+}
+
+// GetFeedbackId returns the FeedbackId field value
+func (o *UpdateGoodsFeedbackCommentRequest) GetFeedbackId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.FeedbackId
+}
+
+// GetFeedbackIdOk returns a tuple with the FeedbackId field value
+// and a boolean to check if the value has been set.
+func (o *UpdateGoodsFeedbackCommentRequest) GetFeedbackIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FeedbackId, true
+}
+
+// SetFeedbackId sets field value
+func (o *UpdateGoodsFeedbackCommentRequest) SetFeedbackId(v int64) {
+ o.FeedbackId = v
+}
+
+// GetComment returns the Comment field value
+func (o *UpdateGoodsFeedbackCommentRequest) GetComment() UpdateGoodsFeedbackCommentDTO {
+ if o == nil {
+ var ret UpdateGoodsFeedbackCommentDTO
+ return ret
+ }
+
+ return o.Comment
+}
+
+// GetCommentOk returns a tuple with the Comment field value
+// and a boolean to check if the value has been set.
+func (o *UpdateGoodsFeedbackCommentRequest) GetCommentOk() (*UpdateGoodsFeedbackCommentDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Comment, true
+}
+
+// SetComment sets field value
+func (o *UpdateGoodsFeedbackCommentRequest) SetComment(v UpdateGoodsFeedbackCommentDTO) {
+ o.Comment = v
+}
+
+func (o UpdateGoodsFeedbackCommentRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateGoodsFeedbackCommentRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["feedbackId"] = o.FeedbackId
+ toSerialize["comment"] = o.Comment
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateGoodsFeedbackCommentRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "feedbackId",
+ "comment",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateGoodsFeedbackCommentRequest := _UpdateGoodsFeedbackCommentRequest{}
+
+ err = json.Unmarshal(data, &varUpdateGoodsFeedbackCommentRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateGoodsFeedbackCommentRequest(varUpdateGoodsFeedbackCommentRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "feedbackId")
+ delete(additionalProperties, "comment")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateGoodsFeedbackCommentRequest struct {
+ value *UpdateGoodsFeedbackCommentRequest
+ isSet bool
+}
+
+func (v NullableUpdateGoodsFeedbackCommentRequest) Get() *UpdateGoodsFeedbackCommentRequest {
+ return v.value
+}
+
+func (v *NullableUpdateGoodsFeedbackCommentRequest) Set(val *UpdateGoodsFeedbackCommentRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateGoodsFeedbackCommentRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateGoodsFeedbackCommentRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateGoodsFeedbackCommentRequest(val *UpdateGoodsFeedbackCommentRequest) *NullableUpdateGoodsFeedbackCommentRequest {
+ return &NullableUpdateGoodsFeedbackCommentRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateGoodsFeedbackCommentRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateGoodsFeedbackCommentRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_goods_feedback_comment_response.go b/pkg/api/yandex/ymclient/model_update_goods_feedback_comment_response.go
new file mode 100644
index 0000000..a2f9f6b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_goods_feedback_comment_response.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdateGoodsFeedbackCommentResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateGoodsFeedbackCommentResponse{}
+
+// UpdateGoodsFeedbackCommentResponse struct for UpdateGoodsFeedbackCommentResponse
+type UpdateGoodsFeedbackCommentResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ Result *GoodsFeedbackCommentDTO `json:"result,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateGoodsFeedbackCommentResponse UpdateGoodsFeedbackCommentResponse
+
+// NewUpdateGoodsFeedbackCommentResponse instantiates a new UpdateGoodsFeedbackCommentResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateGoodsFeedbackCommentResponse() *UpdateGoodsFeedbackCommentResponse {
+ this := UpdateGoodsFeedbackCommentResponse{}
+ return &this
+}
+
+// NewUpdateGoodsFeedbackCommentResponseWithDefaults instantiates a new UpdateGoodsFeedbackCommentResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateGoodsFeedbackCommentResponseWithDefaults() *UpdateGoodsFeedbackCommentResponse {
+ this := UpdateGoodsFeedbackCommentResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *UpdateGoodsFeedbackCommentResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateGoodsFeedbackCommentResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *UpdateGoodsFeedbackCommentResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *UpdateGoodsFeedbackCommentResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *UpdateGoodsFeedbackCommentResponse) GetResult() GoodsFeedbackCommentDTO {
+ if o == nil || IsNil(o.Result) {
+ var ret GoodsFeedbackCommentDTO
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateGoodsFeedbackCommentResponse) GetResultOk() (*GoodsFeedbackCommentDTO, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *UpdateGoodsFeedbackCommentResponse) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given GoodsFeedbackCommentDTO and assigns it to the Result field.
+func (o *UpdateGoodsFeedbackCommentResponse) SetResult(v GoodsFeedbackCommentDTO) {
+ o.Result = &v
+}
+
+func (o UpdateGoodsFeedbackCommentResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateGoodsFeedbackCommentResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateGoodsFeedbackCommentResponse) UnmarshalJSON(data []byte) (err error) {
+ varUpdateGoodsFeedbackCommentResponse := _UpdateGoodsFeedbackCommentResponse{}
+
+ err = json.Unmarshal(data, &varUpdateGoodsFeedbackCommentResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateGoodsFeedbackCommentResponse(varUpdateGoodsFeedbackCommentResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "result")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateGoodsFeedbackCommentResponse struct {
+ value *UpdateGoodsFeedbackCommentResponse
+ isSet bool
+}
+
+func (v NullableUpdateGoodsFeedbackCommentResponse) Get() *UpdateGoodsFeedbackCommentResponse {
+ return v.value
+}
+
+func (v *NullableUpdateGoodsFeedbackCommentResponse) Set(val *UpdateGoodsFeedbackCommentResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateGoodsFeedbackCommentResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateGoodsFeedbackCommentResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateGoodsFeedbackCommentResponse(val *UpdateGoodsFeedbackCommentResponse) *NullableUpdateGoodsFeedbackCommentResponse {
+ return &NullableUpdateGoodsFeedbackCommentResponse{value: val, isSet: true}
+}
+
+func (v NullableUpdateGoodsFeedbackCommentResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateGoodsFeedbackCommentResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_mapping_dto.go b/pkg/api/yandex/ymclient/model_update_mapping_dto.go
new file mode 100644
index 0000000..6c23cf2
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_mapping_dto.go
@@ -0,0 +1,154 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdateMappingDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateMappingDTO{}
+
+// UpdateMappingDTO Карточка на Маркете, которая, с вашей точки зрения, подходит товару. Чтобы определить идентификатор подходящей карточки, воспользуйтесь поиском в кабинете (**Товары** → **Каталог** → **Загрузить товары**). По результатам проверки Маркет может привязать товар к более подходящей карточке.
+type UpdateMappingDTO struct {
+ // Идентификатор карточки товара на Маркете.
+ MarketSku *int64 `json:"marketSku,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateMappingDTO UpdateMappingDTO
+
+// NewUpdateMappingDTO instantiates a new UpdateMappingDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateMappingDTO() *UpdateMappingDTO {
+ this := UpdateMappingDTO{}
+ return &this
+}
+
+// NewUpdateMappingDTOWithDefaults instantiates a new UpdateMappingDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateMappingDTOWithDefaults() *UpdateMappingDTO {
+ this := UpdateMappingDTO{}
+ return &this
+}
+
+// GetMarketSku returns the MarketSku field value if set, zero value otherwise.
+func (o *UpdateMappingDTO) GetMarketSku() int64 {
+ if o == nil || IsNil(o.MarketSku) {
+ var ret int64
+ return ret
+ }
+ return *o.MarketSku
+}
+
+// GetMarketSkuOk returns a tuple with the MarketSku field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingDTO) GetMarketSkuOk() (*int64, bool) {
+ if o == nil || IsNil(o.MarketSku) {
+ return nil, false
+ }
+ return o.MarketSku, true
+}
+
+// HasMarketSku returns a boolean if a field has been set.
+func (o *UpdateMappingDTO) HasMarketSku() bool {
+ if o != nil && !IsNil(o.MarketSku) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarketSku gets a reference to the given int64 and assigns it to the MarketSku field.
+func (o *UpdateMappingDTO) SetMarketSku(v int64) {
+ o.MarketSku = &v
+}
+
+func (o UpdateMappingDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateMappingDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.MarketSku) {
+ toSerialize["marketSku"] = o.MarketSku
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateMappingDTO) UnmarshalJSON(data []byte) (err error) {
+ varUpdateMappingDTO := _UpdateMappingDTO{}
+
+ err = json.Unmarshal(data, &varUpdateMappingDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateMappingDTO(varUpdateMappingDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "marketSku")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateMappingDTO struct {
+ value *UpdateMappingDTO
+ isSet bool
+}
+
+func (v NullableUpdateMappingDTO) Get() *UpdateMappingDTO {
+ return v.value
+}
+
+func (v *NullableUpdateMappingDTO) Set(val *UpdateMappingDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateMappingDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateMappingDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateMappingDTO(val *UpdateMappingDTO) *NullableUpdateMappingDTO {
+ return &NullableUpdateMappingDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateMappingDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateMappingDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_mappings_offer_dto.go b/pkg/api/yandex/ymclient/model_update_mappings_offer_dto.go
new file mode 100644
index 0000000..62861ec
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_mappings_offer_dto.go
@@ -0,0 +1,1272 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdateMappingsOfferDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateMappingsOfferDTO{}
+
+// UpdateMappingsOfferDTO Информация о товарах в каталоге.
+type UpdateMappingsOfferDTO struct {
+ // Составляйте название по схеме: тип + бренд или производитель + модель + особенности, если есть (например, цвет, размер или вес) и количество в упаковке. Не включайте в название условия продажи (например, «скидка», «бесплатная доставка» и т. д.), эмоциональные характеристики («хит», «супер» и т. д.). Не пишите слова большими буквами — кроме устоявшихся названий брендов и моделей. Оптимальная длина — 50–60 символов. [Рекомендации и правила](https://yandex.ru/support/marketplace/assortment/fields/title.html)
+ Name *string `json:"name,omitempty"`
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ ShopSku *string `json:"shopSku,omitempty" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // {% note warning \"Вместо него используйте `marketCategoryId`.\" %} {% endnote %} Категория товара в вашем магазине.
+ // Deprecated
+ Category *string `json:"category,omitempty"`
+ // Название бренда или производителя. Должно быть записано так, как его пишет сам бренд.
+ Vendor *string `json:"vendor,omitempty"`
+ // Артикул товара от производителя.
+ VendorCode *string `json:"vendorCode,omitempty"`
+ // Подробное описание товара: например, его преимущества и особенности. Не давайте в описании инструкций по установке и сборке. Не используйте слова «скидка», «распродажа», «дешевый», «подарок» (кроме подарочных категорий), «бесплатно», «акция», «специальная цена», «новинка», «new», «аналог», «заказ», «хит». Не указывайте никакой контактной информации и не давайте ссылок. Для форматирования текста можно использовать теги HTML: * \\
, \\, \\ и так далее — для заголовков; * \\
и \\
— для переноса строки; * \\
— для нумерованного списка; * \\ — для маркированного списка; * \\- — для создания элементов списка (должен находиться внутри \\
или \\); * \\ — поддерживается, но не влияет на отображение текста. Оптимальная длина — 400–600 символов. [Рекомендации и правила](https://yandex.ru/support/marketplace/assortment/fields/description.html)
+ Description *string `json:"description,omitempty"`
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ Id *string `json:"id,omitempty" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Идентификатор фида.
+ FeedId *int64 `json:"feedId,omitempty"`
+ // Указывайте в виде последовательности цифр. Подойдут коды :no-translate[EAN-13, EAN-8, UPC-A, UPC-E] или :no-translate[Code 128]. Для книг указывайте :no-translate[ISBN]. Для товаров [определенных категорий и торговых марок](https://yastatic.net/s3/doc-binary/src/support/market/ru/yandex-market-list-for-gtin.xlsx) штрихкод должен быть действительным кодом :no-translate[GTIN]. Обратите внимание: внутренние штрихкоды, начинающиеся на 2 или 02, и коды формата :no-translate[Code 128] не являются :no-translate[GTIN]. [Что такое :no-translate[GTIN]](:no-translate[*gtin])
+ Barcodes []string `json:"barcodes,omitempty"`
+ // URL фотографии товара или страницы с описанием на вашем сайте. Переданные данные не будут отображаться на витрине, но они помогут специалистам Маркета найти карточку для вашего товара. Должен содержать один вложенный параметр `url`.
+ Urls []string `json:"urls,omitempty"`
+ // Ссылки (:no-translate[URL]) изображений товара в хорошем качестве. Можно указать до 30 ссылок. При этом изображение по первой ссылке будет основным. Оно используется в качестве изображения товара в поиске Маркета и на карточке товара. Другие изображения товара доступны в режиме просмотра увеличенных изображений.
+ Pictures []string `json:"pictures,omitempty"`
+ // Изготовитель товара: компания, которая произвела товар, ее адрес и регистрационный номер (если есть). Необязательный параметр.
+ Manufacturer *string `json:"manufacturer,omitempty"`
+ // Список стран, в которых произведен товар. Обязательный параметр. Должен содержать хотя бы одну, но не больше 5 стран.
+ ManufacturerCountries []string `json:"manufacturerCountries,omitempty"`
+ // Минимальное количество единиц товара, которое вы поставляете на склад. Например, если вы поставляете детское питание партиями минимум по 10 коробок, а в каждой коробке по 6 баночек, укажите значение 60.
+ MinShipment *int32 `json:"minShipment,omitempty"`
+ // Количество единиц товара в одной упаковке, которую вы поставляете на склад. Например, если вы поставляете детское питание коробками по 6 баночек, укажите значение 6.
+ TransportUnitSize *int32 `json:"transportUnitSize,omitempty"`
+ // Добавочная партия: по сколько единиц товара можно добавлять к минимальному количеству `minShipment`. Например, если вы поставляете детское питание партиями минимум по 10 коробок и хотите добавлять к минимальной партии по 2 коробки, а в каждой коробке по 6 баночек, укажите значение 12.
+ // Deprecated
+ QuantumOfSupply *int32 `json:"quantumOfSupply,omitempty"`
+ // Срок, за который продавец поставляет товары на склад, в днях.
+ DeliveryDurationDays *int32 `json:"deliveryDurationDays,omitempty"`
+ // Сколько мест (если больше одного) занимает товар. Параметр указывается, только если товар занимает больше одного места (например, кондиционер занимает два места: внешний и внутренний блоки в двух коробках). Если товар занимает одно место, не указывайте этот параметр.
+ BoxCount *int32 `json:"boxCount,omitempty"`
+ // Список кодов товара в единой Товарной номенклатуре внешнеэкономической деятельности (ТН ВЭД). Обязательный параметр, если товар подлежит особому учету (например, в системе «Меркурий» как продукция животного происхождения или в системе «Честный ЗНАК»). Может содержать только один вложенный код ТН ВЭД.
+ CustomsCommodityCodes []string `json:"customsCommodityCodes,omitempty"`
+ WeightDimensions *OfferWeightDimensionsDTO `json:"weightDimensions,omitempty"`
+ // Дни недели, в которые продавец поставляет товары на склад.
+ SupplyScheduleDays []DayOfWeekType `json:"supplyScheduleDays,omitempty"`
+ // {% note warning \"Вместо него используйте `shelfLife`. Совместное использование обоих параметров приведет к ошибке.\" %} {% endnote %} Срок годности: через сколько дней товар станет непригоден для использования.
+ // Deprecated
+ ShelfLifeDays *int32 `json:"shelfLifeDays,omitempty"`
+ // {% note warning \"Вместо него используйте `lifeTime`. Совместное использование обоих параметров приведет к ошибке.\" %} {% endnote %} Срок службы: сколько дней товар будет исправно выполнять свою функцию, а изготовитель — нести ответственность за его существенные недостатки.
+ // Deprecated
+ LifeTimeDays *int32 `json:"lifeTimeDays,omitempty"`
+ // Гарантийный срок товара: сколько дней возможно обслуживание и ремонт товара или возврат денег, а изготовитель или продавец будет нести ответственность за недостатки товара.
+ GuaranteePeriodDays *int32 `json:"guaranteePeriodDays,omitempty"`
+ ProcessingState *OfferProcessingStateDTO `json:"processingState,omitempty"`
+ Availability *OfferAvailabilityStatusType `json:"availability,omitempty"`
+ ShelfLife *TimePeriodDTO `json:"shelfLife,omitempty"`
+ LifeTime *TimePeriodDTO `json:"lifeTime,omitempty"`
+ GuaranteePeriod *TimePeriodDTO `json:"guaranteePeriod,omitempty"`
+ // Номер документа на товар. Перед указанием номера документ нужно загрузить в кабинете продавца на Маркете. [Инструкция](https://yandex.ru/support/marketplace/assortment/restrictions/certificates.html)
+ Certificate *string `json:"certificate,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateMappingsOfferDTO UpdateMappingsOfferDTO
+
+// NewUpdateMappingsOfferDTO instantiates a new UpdateMappingsOfferDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateMappingsOfferDTO() *UpdateMappingsOfferDTO {
+ this := UpdateMappingsOfferDTO{}
+ return &this
+}
+
+// NewUpdateMappingsOfferDTOWithDefaults instantiates a new UpdateMappingsOfferDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateMappingsOfferDTOWithDefaults() *UpdateMappingsOfferDTO {
+ this := UpdateMappingsOfferDTO{}
+ return &this
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *UpdateMappingsOfferDTO) SetName(v string) {
+ o.Name = &v
+}
+
+// GetShopSku returns the ShopSku field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetShopSku() string {
+ if o == nil || IsNil(o.ShopSku) {
+ var ret string
+ return ret
+ }
+ return *o.ShopSku
+}
+
+// GetShopSkuOk returns a tuple with the ShopSku field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetShopSkuOk() (*string, bool) {
+ if o == nil || IsNil(o.ShopSku) {
+ return nil, false
+ }
+ return o.ShopSku, true
+}
+
+// HasShopSku returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasShopSku() bool {
+ if o != nil && !IsNil(o.ShopSku) {
+ return true
+ }
+
+ return false
+}
+
+// SetShopSku gets a reference to the given string and assigns it to the ShopSku field.
+func (o *UpdateMappingsOfferDTO) SetShopSku(v string) {
+ o.ShopSku = &v
+}
+
+// GetCategory returns the Category field value if set, zero value otherwise.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) GetCategory() string {
+ if o == nil || IsNil(o.Category) {
+ var ret string
+ return ret
+ }
+ return *o.Category
+}
+
+// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) GetCategoryOk() (*string, bool) {
+ if o == nil || IsNil(o.Category) {
+ return nil, false
+ }
+ return o.Category, true
+}
+
+// HasCategory returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasCategory() bool {
+ if o != nil && !IsNil(o.Category) {
+ return true
+ }
+
+ return false
+}
+
+// SetCategory gets a reference to the given string and assigns it to the Category field.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) SetCategory(v string) {
+ o.Category = &v
+}
+
+// GetVendor returns the Vendor field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetVendor() string {
+ if o == nil || IsNil(o.Vendor) {
+ var ret string
+ return ret
+ }
+ return *o.Vendor
+}
+
+// GetVendorOk returns a tuple with the Vendor field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetVendorOk() (*string, bool) {
+ if o == nil || IsNil(o.Vendor) {
+ return nil, false
+ }
+ return o.Vendor, true
+}
+
+// HasVendor returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasVendor() bool {
+ if o != nil && !IsNil(o.Vendor) {
+ return true
+ }
+
+ return false
+}
+
+// SetVendor gets a reference to the given string and assigns it to the Vendor field.
+func (o *UpdateMappingsOfferDTO) SetVendor(v string) {
+ o.Vendor = &v
+}
+
+// GetVendorCode returns the VendorCode field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetVendorCode() string {
+ if o == nil || IsNil(o.VendorCode) {
+ var ret string
+ return ret
+ }
+ return *o.VendorCode
+}
+
+// GetVendorCodeOk returns a tuple with the VendorCode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetVendorCodeOk() (*string, bool) {
+ if o == nil || IsNil(o.VendorCode) {
+ return nil, false
+ }
+ return o.VendorCode, true
+}
+
+// HasVendorCode returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasVendorCode() bool {
+ if o != nil && !IsNil(o.VendorCode) {
+ return true
+ }
+
+ return false
+}
+
+// SetVendorCode gets a reference to the given string and assigns it to the VendorCode field.
+func (o *UpdateMappingsOfferDTO) SetVendorCode(v string) {
+ o.VendorCode = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
+ return ret
+ }
+ return *o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
+ return nil, false
+ }
+ return o.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *UpdateMappingsOfferDTO) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetId() string {
+ if o == nil || IsNil(o.Id) {
+ var ret string
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetIdOk() (*string, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given string and assigns it to the Id field.
+func (o *UpdateMappingsOfferDTO) SetId(v string) {
+ o.Id = &v
+}
+
+// GetFeedId returns the FeedId field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetFeedId() int64 {
+ if o == nil || IsNil(o.FeedId) {
+ var ret int64
+ return ret
+ }
+ return *o.FeedId
+}
+
+// GetFeedIdOk returns a tuple with the FeedId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetFeedIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.FeedId) {
+ return nil, false
+ }
+ return o.FeedId, true
+}
+
+// HasFeedId returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasFeedId() bool {
+ if o != nil && !IsNil(o.FeedId) {
+ return true
+ }
+
+ return false
+}
+
+// SetFeedId gets a reference to the given int64 and assigns it to the FeedId field.
+func (o *UpdateMappingsOfferDTO) SetFeedId(v int64) {
+ o.FeedId = &v
+}
+
+// GetBarcodes returns the Barcodes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateMappingsOfferDTO) GetBarcodes() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Barcodes
+}
+
+// GetBarcodesOk returns a tuple with the Barcodes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateMappingsOfferDTO) GetBarcodesOk() ([]string, bool) {
+ if o == nil || IsNil(o.Barcodes) {
+ return nil, false
+ }
+ return o.Barcodes, true
+}
+
+// HasBarcodes returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasBarcodes() bool {
+ if o != nil && !IsNil(o.Barcodes) {
+ return true
+ }
+
+ return false
+}
+
+// SetBarcodes gets a reference to the given []string and assigns it to the Barcodes field.
+func (o *UpdateMappingsOfferDTO) SetBarcodes(v []string) {
+ o.Barcodes = v
+}
+
+// GetUrls returns the Urls field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateMappingsOfferDTO) GetUrls() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Urls
+}
+
+// GetUrlsOk returns a tuple with the Urls field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateMappingsOfferDTO) GetUrlsOk() ([]string, bool) {
+ if o == nil || IsNil(o.Urls) {
+ return nil, false
+ }
+ return o.Urls, true
+}
+
+// HasUrls returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasUrls() bool {
+ if o != nil && !IsNil(o.Urls) {
+ return true
+ }
+
+ return false
+}
+
+// SetUrls gets a reference to the given []string and assigns it to the Urls field.
+func (o *UpdateMappingsOfferDTO) SetUrls(v []string) {
+ o.Urls = v
+}
+
+// GetPictures returns the Pictures field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateMappingsOfferDTO) GetPictures() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Pictures
+}
+
+// GetPicturesOk returns a tuple with the Pictures field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateMappingsOfferDTO) GetPicturesOk() ([]string, bool) {
+ if o == nil || IsNil(o.Pictures) {
+ return nil, false
+ }
+ return o.Pictures, true
+}
+
+// HasPictures returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasPictures() bool {
+ if o != nil && !IsNil(o.Pictures) {
+ return true
+ }
+
+ return false
+}
+
+// SetPictures gets a reference to the given []string and assigns it to the Pictures field.
+func (o *UpdateMappingsOfferDTO) SetPictures(v []string) {
+ o.Pictures = v
+}
+
+// GetManufacturer returns the Manufacturer field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetManufacturer() string {
+ if o == nil || IsNil(o.Manufacturer) {
+ var ret string
+ return ret
+ }
+ return *o.Manufacturer
+}
+
+// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetManufacturerOk() (*string, bool) {
+ if o == nil || IsNil(o.Manufacturer) {
+ return nil, false
+ }
+ return o.Manufacturer, true
+}
+
+// HasManufacturer returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasManufacturer() bool {
+ if o != nil && !IsNil(o.Manufacturer) {
+ return true
+ }
+
+ return false
+}
+
+// SetManufacturer gets a reference to the given string and assigns it to the Manufacturer field.
+func (o *UpdateMappingsOfferDTO) SetManufacturer(v string) {
+ o.Manufacturer = &v
+}
+
+// GetManufacturerCountries returns the ManufacturerCountries field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateMappingsOfferDTO) GetManufacturerCountries() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.ManufacturerCountries
+}
+
+// GetManufacturerCountriesOk returns a tuple with the ManufacturerCountries field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateMappingsOfferDTO) GetManufacturerCountriesOk() ([]string, bool) {
+ if o == nil || IsNil(o.ManufacturerCountries) {
+ return nil, false
+ }
+ return o.ManufacturerCountries, true
+}
+
+// HasManufacturerCountries returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasManufacturerCountries() bool {
+ if o != nil && !IsNil(o.ManufacturerCountries) {
+ return true
+ }
+
+ return false
+}
+
+// SetManufacturerCountries gets a reference to the given []string and assigns it to the ManufacturerCountries field.
+func (o *UpdateMappingsOfferDTO) SetManufacturerCountries(v []string) {
+ o.ManufacturerCountries = v
+}
+
+// GetMinShipment returns the MinShipment field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetMinShipment() int32 {
+ if o == nil || IsNil(o.MinShipment) {
+ var ret int32
+ return ret
+ }
+ return *o.MinShipment
+}
+
+// GetMinShipmentOk returns a tuple with the MinShipment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetMinShipmentOk() (*int32, bool) {
+ if o == nil || IsNil(o.MinShipment) {
+ return nil, false
+ }
+ return o.MinShipment, true
+}
+
+// HasMinShipment returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasMinShipment() bool {
+ if o != nil && !IsNil(o.MinShipment) {
+ return true
+ }
+
+ return false
+}
+
+// SetMinShipment gets a reference to the given int32 and assigns it to the MinShipment field.
+func (o *UpdateMappingsOfferDTO) SetMinShipment(v int32) {
+ o.MinShipment = &v
+}
+
+// GetTransportUnitSize returns the TransportUnitSize field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetTransportUnitSize() int32 {
+ if o == nil || IsNil(o.TransportUnitSize) {
+ var ret int32
+ return ret
+ }
+ return *o.TransportUnitSize
+}
+
+// GetTransportUnitSizeOk returns a tuple with the TransportUnitSize field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetTransportUnitSizeOk() (*int32, bool) {
+ if o == nil || IsNil(o.TransportUnitSize) {
+ return nil, false
+ }
+ return o.TransportUnitSize, true
+}
+
+// HasTransportUnitSize returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasTransportUnitSize() bool {
+ if o != nil && !IsNil(o.TransportUnitSize) {
+ return true
+ }
+
+ return false
+}
+
+// SetTransportUnitSize gets a reference to the given int32 and assigns it to the TransportUnitSize field.
+func (o *UpdateMappingsOfferDTO) SetTransportUnitSize(v int32) {
+ o.TransportUnitSize = &v
+}
+
+// GetQuantumOfSupply returns the QuantumOfSupply field value if set, zero value otherwise.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) GetQuantumOfSupply() int32 {
+ if o == nil || IsNil(o.QuantumOfSupply) {
+ var ret int32
+ return ret
+ }
+ return *o.QuantumOfSupply
+}
+
+// GetQuantumOfSupplyOk returns a tuple with the QuantumOfSupply field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) GetQuantumOfSupplyOk() (*int32, bool) {
+ if o == nil || IsNil(o.QuantumOfSupply) {
+ return nil, false
+ }
+ return o.QuantumOfSupply, true
+}
+
+// HasQuantumOfSupply returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasQuantumOfSupply() bool {
+ if o != nil && !IsNil(o.QuantumOfSupply) {
+ return true
+ }
+
+ return false
+}
+
+// SetQuantumOfSupply gets a reference to the given int32 and assigns it to the QuantumOfSupply field.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) SetQuantumOfSupply(v int32) {
+ o.QuantumOfSupply = &v
+}
+
+// GetDeliveryDurationDays returns the DeliveryDurationDays field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetDeliveryDurationDays() int32 {
+ if o == nil || IsNil(o.DeliveryDurationDays) {
+ var ret int32
+ return ret
+ }
+ return *o.DeliveryDurationDays
+}
+
+// GetDeliveryDurationDaysOk returns a tuple with the DeliveryDurationDays field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetDeliveryDurationDaysOk() (*int32, bool) {
+ if o == nil || IsNil(o.DeliveryDurationDays) {
+ return nil, false
+ }
+ return o.DeliveryDurationDays, true
+}
+
+// HasDeliveryDurationDays returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasDeliveryDurationDays() bool {
+ if o != nil && !IsNil(o.DeliveryDurationDays) {
+ return true
+ }
+
+ return false
+}
+
+// SetDeliveryDurationDays gets a reference to the given int32 and assigns it to the DeliveryDurationDays field.
+func (o *UpdateMappingsOfferDTO) SetDeliveryDurationDays(v int32) {
+ o.DeliveryDurationDays = &v
+}
+
+// GetBoxCount returns the BoxCount field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetBoxCount() int32 {
+ if o == nil || IsNil(o.BoxCount) {
+ var ret int32
+ return ret
+ }
+ return *o.BoxCount
+}
+
+// GetBoxCountOk returns a tuple with the BoxCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetBoxCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.BoxCount) {
+ return nil, false
+ }
+ return o.BoxCount, true
+}
+
+// HasBoxCount returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasBoxCount() bool {
+ if o != nil && !IsNil(o.BoxCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetBoxCount gets a reference to the given int32 and assigns it to the BoxCount field.
+func (o *UpdateMappingsOfferDTO) SetBoxCount(v int32) {
+ o.BoxCount = &v
+}
+
+// GetCustomsCommodityCodes returns the CustomsCommodityCodes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateMappingsOfferDTO) GetCustomsCommodityCodes() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.CustomsCommodityCodes
+}
+
+// GetCustomsCommodityCodesOk returns a tuple with the CustomsCommodityCodes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateMappingsOfferDTO) GetCustomsCommodityCodesOk() ([]string, bool) {
+ if o == nil || IsNil(o.CustomsCommodityCodes) {
+ return nil, false
+ }
+ return o.CustomsCommodityCodes, true
+}
+
+// HasCustomsCommodityCodes returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasCustomsCommodityCodes() bool {
+ if o != nil && !IsNil(o.CustomsCommodityCodes) {
+ return true
+ }
+
+ return false
+}
+
+// SetCustomsCommodityCodes gets a reference to the given []string and assigns it to the CustomsCommodityCodes field.
+func (o *UpdateMappingsOfferDTO) SetCustomsCommodityCodes(v []string) {
+ o.CustomsCommodityCodes = v
+}
+
+// GetWeightDimensions returns the WeightDimensions field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetWeightDimensions() OfferWeightDimensionsDTO {
+ if o == nil || IsNil(o.WeightDimensions) {
+ var ret OfferWeightDimensionsDTO
+ return ret
+ }
+ return *o.WeightDimensions
+}
+
+// GetWeightDimensionsOk returns a tuple with the WeightDimensions field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetWeightDimensionsOk() (*OfferWeightDimensionsDTO, bool) {
+ if o == nil || IsNil(o.WeightDimensions) {
+ return nil, false
+ }
+ return o.WeightDimensions, true
+}
+
+// HasWeightDimensions returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasWeightDimensions() bool {
+ if o != nil && !IsNil(o.WeightDimensions) {
+ return true
+ }
+
+ return false
+}
+
+// SetWeightDimensions gets a reference to the given OfferWeightDimensionsDTO and assigns it to the WeightDimensions field.
+func (o *UpdateMappingsOfferDTO) SetWeightDimensions(v OfferWeightDimensionsDTO) {
+ o.WeightDimensions = &v
+}
+
+// GetSupplyScheduleDays returns the SupplyScheduleDays field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateMappingsOfferDTO) GetSupplyScheduleDays() []DayOfWeekType {
+ if o == nil {
+ var ret []DayOfWeekType
+ return ret
+ }
+ return o.SupplyScheduleDays
+}
+
+// GetSupplyScheduleDaysOk returns a tuple with the SupplyScheduleDays field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateMappingsOfferDTO) GetSupplyScheduleDaysOk() ([]DayOfWeekType, bool) {
+ if o == nil || IsNil(o.SupplyScheduleDays) {
+ return nil, false
+ }
+ return o.SupplyScheduleDays, true
+}
+
+// HasSupplyScheduleDays returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasSupplyScheduleDays() bool {
+ if o != nil && !IsNil(o.SupplyScheduleDays) {
+ return true
+ }
+
+ return false
+}
+
+// SetSupplyScheduleDays gets a reference to the given []DayOfWeekType and assigns it to the SupplyScheduleDays field.
+func (o *UpdateMappingsOfferDTO) SetSupplyScheduleDays(v []DayOfWeekType) {
+ o.SupplyScheduleDays = v
+}
+
+// GetShelfLifeDays returns the ShelfLifeDays field value if set, zero value otherwise.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) GetShelfLifeDays() int32 {
+ if o == nil || IsNil(o.ShelfLifeDays) {
+ var ret int32
+ return ret
+ }
+ return *o.ShelfLifeDays
+}
+
+// GetShelfLifeDaysOk returns a tuple with the ShelfLifeDays field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) GetShelfLifeDaysOk() (*int32, bool) {
+ if o == nil || IsNil(o.ShelfLifeDays) {
+ return nil, false
+ }
+ return o.ShelfLifeDays, true
+}
+
+// HasShelfLifeDays returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasShelfLifeDays() bool {
+ if o != nil && !IsNil(o.ShelfLifeDays) {
+ return true
+ }
+
+ return false
+}
+
+// SetShelfLifeDays gets a reference to the given int32 and assigns it to the ShelfLifeDays field.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) SetShelfLifeDays(v int32) {
+ o.ShelfLifeDays = &v
+}
+
+// GetLifeTimeDays returns the LifeTimeDays field value if set, zero value otherwise.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) GetLifeTimeDays() int32 {
+ if o == nil || IsNil(o.LifeTimeDays) {
+ var ret int32
+ return ret
+ }
+ return *o.LifeTimeDays
+}
+
+// GetLifeTimeDaysOk returns a tuple with the LifeTimeDays field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) GetLifeTimeDaysOk() (*int32, bool) {
+ if o == nil || IsNil(o.LifeTimeDays) {
+ return nil, false
+ }
+ return o.LifeTimeDays, true
+}
+
+// HasLifeTimeDays returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasLifeTimeDays() bool {
+ if o != nil && !IsNil(o.LifeTimeDays) {
+ return true
+ }
+
+ return false
+}
+
+// SetLifeTimeDays gets a reference to the given int32 and assigns it to the LifeTimeDays field.
+// Deprecated
+func (o *UpdateMappingsOfferDTO) SetLifeTimeDays(v int32) {
+ o.LifeTimeDays = &v
+}
+
+// GetGuaranteePeriodDays returns the GuaranteePeriodDays field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetGuaranteePeriodDays() int32 {
+ if o == nil || IsNil(o.GuaranteePeriodDays) {
+ var ret int32
+ return ret
+ }
+ return *o.GuaranteePeriodDays
+}
+
+// GetGuaranteePeriodDaysOk returns a tuple with the GuaranteePeriodDays field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetGuaranteePeriodDaysOk() (*int32, bool) {
+ if o == nil || IsNil(o.GuaranteePeriodDays) {
+ return nil, false
+ }
+ return o.GuaranteePeriodDays, true
+}
+
+// HasGuaranteePeriodDays returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasGuaranteePeriodDays() bool {
+ if o != nil && !IsNil(o.GuaranteePeriodDays) {
+ return true
+ }
+
+ return false
+}
+
+// SetGuaranteePeriodDays gets a reference to the given int32 and assigns it to the GuaranteePeriodDays field.
+func (o *UpdateMappingsOfferDTO) SetGuaranteePeriodDays(v int32) {
+ o.GuaranteePeriodDays = &v
+}
+
+// GetProcessingState returns the ProcessingState field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetProcessingState() OfferProcessingStateDTO {
+ if o == nil || IsNil(o.ProcessingState) {
+ var ret OfferProcessingStateDTO
+ return ret
+ }
+ return *o.ProcessingState
+}
+
+// GetProcessingStateOk returns a tuple with the ProcessingState field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetProcessingStateOk() (*OfferProcessingStateDTO, bool) {
+ if o == nil || IsNil(o.ProcessingState) {
+ return nil, false
+ }
+ return o.ProcessingState, true
+}
+
+// HasProcessingState returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasProcessingState() bool {
+ if o != nil && !IsNil(o.ProcessingState) {
+ return true
+ }
+
+ return false
+}
+
+// SetProcessingState gets a reference to the given OfferProcessingStateDTO and assigns it to the ProcessingState field.
+func (o *UpdateMappingsOfferDTO) SetProcessingState(v OfferProcessingStateDTO) {
+ o.ProcessingState = &v
+}
+
+// GetAvailability returns the Availability field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetAvailability() OfferAvailabilityStatusType {
+ if o == nil || IsNil(o.Availability) {
+ var ret OfferAvailabilityStatusType
+ return ret
+ }
+ return *o.Availability
+}
+
+// GetAvailabilityOk returns a tuple with the Availability field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetAvailabilityOk() (*OfferAvailabilityStatusType, bool) {
+ if o == nil || IsNil(o.Availability) {
+ return nil, false
+ }
+ return o.Availability, true
+}
+
+// HasAvailability returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasAvailability() bool {
+ if o != nil && !IsNil(o.Availability) {
+ return true
+ }
+
+ return false
+}
+
+// SetAvailability gets a reference to the given OfferAvailabilityStatusType and assigns it to the Availability field.
+func (o *UpdateMappingsOfferDTO) SetAvailability(v OfferAvailabilityStatusType) {
+ o.Availability = &v
+}
+
+// GetShelfLife returns the ShelfLife field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetShelfLife() TimePeriodDTO {
+ if o == nil || IsNil(o.ShelfLife) {
+ var ret TimePeriodDTO
+ return ret
+ }
+ return *o.ShelfLife
+}
+
+// GetShelfLifeOk returns a tuple with the ShelfLife field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetShelfLifeOk() (*TimePeriodDTO, bool) {
+ if o == nil || IsNil(o.ShelfLife) {
+ return nil, false
+ }
+ return o.ShelfLife, true
+}
+
+// HasShelfLife returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasShelfLife() bool {
+ if o != nil && !IsNil(o.ShelfLife) {
+ return true
+ }
+
+ return false
+}
+
+// SetShelfLife gets a reference to the given TimePeriodDTO and assigns it to the ShelfLife field.
+func (o *UpdateMappingsOfferDTO) SetShelfLife(v TimePeriodDTO) {
+ o.ShelfLife = &v
+}
+
+// GetLifeTime returns the LifeTime field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetLifeTime() TimePeriodDTO {
+ if o == nil || IsNil(o.LifeTime) {
+ var ret TimePeriodDTO
+ return ret
+ }
+ return *o.LifeTime
+}
+
+// GetLifeTimeOk returns a tuple with the LifeTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetLifeTimeOk() (*TimePeriodDTO, bool) {
+ if o == nil || IsNil(o.LifeTime) {
+ return nil, false
+ }
+ return o.LifeTime, true
+}
+
+// HasLifeTime returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasLifeTime() bool {
+ if o != nil && !IsNil(o.LifeTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetLifeTime gets a reference to the given TimePeriodDTO and assigns it to the LifeTime field.
+func (o *UpdateMappingsOfferDTO) SetLifeTime(v TimePeriodDTO) {
+ o.LifeTime = &v
+}
+
+// GetGuaranteePeriod returns the GuaranteePeriod field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetGuaranteePeriod() TimePeriodDTO {
+ if o == nil || IsNil(o.GuaranteePeriod) {
+ var ret TimePeriodDTO
+ return ret
+ }
+ return *o.GuaranteePeriod
+}
+
+// GetGuaranteePeriodOk returns a tuple with the GuaranteePeriod field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetGuaranteePeriodOk() (*TimePeriodDTO, bool) {
+ if o == nil || IsNil(o.GuaranteePeriod) {
+ return nil, false
+ }
+ return o.GuaranteePeriod, true
+}
+
+// HasGuaranteePeriod returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasGuaranteePeriod() bool {
+ if o != nil && !IsNil(o.GuaranteePeriod) {
+ return true
+ }
+
+ return false
+}
+
+// SetGuaranteePeriod gets a reference to the given TimePeriodDTO and assigns it to the GuaranteePeriod field.
+func (o *UpdateMappingsOfferDTO) SetGuaranteePeriod(v TimePeriodDTO) {
+ o.GuaranteePeriod = &v
+}
+
+// GetCertificate returns the Certificate field value if set, zero value otherwise.
+func (o *UpdateMappingsOfferDTO) GetCertificate() string {
+ if o == nil || IsNil(o.Certificate) {
+ var ret string
+ return ret
+ }
+ return *o.Certificate
+}
+
+// GetCertificateOk returns a tuple with the Certificate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateMappingsOfferDTO) GetCertificateOk() (*string, bool) {
+ if o == nil || IsNil(o.Certificate) {
+ return nil, false
+ }
+ return o.Certificate, true
+}
+
+// HasCertificate returns a boolean if a field has been set.
+func (o *UpdateMappingsOfferDTO) HasCertificate() bool {
+ if o != nil && !IsNil(o.Certificate) {
+ return true
+ }
+
+ return false
+}
+
+// SetCertificate gets a reference to the given string and assigns it to the Certificate field.
+func (o *UpdateMappingsOfferDTO) SetCertificate(v string) {
+ o.Certificate = &v
+}
+
+func (o UpdateMappingsOfferDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateMappingsOfferDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.ShopSku) {
+ toSerialize["shopSku"] = o.ShopSku
+ }
+ if !IsNil(o.Category) {
+ toSerialize["category"] = o.Category
+ }
+ if !IsNil(o.Vendor) {
+ toSerialize["vendor"] = o.Vendor
+ }
+ if !IsNil(o.VendorCode) {
+ toSerialize["vendorCode"] = o.VendorCode
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+ if !IsNil(o.FeedId) {
+ toSerialize["feedId"] = o.FeedId
+ }
+ if o.Barcodes != nil {
+ toSerialize["barcodes"] = o.Barcodes
+ }
+ if o.Urls != nil {
+ toSerialize["urls"] = o.Urls
+ }
+ if o.Pictures != nil {
+ toSerialize["pictures"] = o.Pictures
+ }
+ if !IsNil(o.Manufacturer) {
+ toSerialize["manufacturer"] = o.Manufacturer
+ }
+ if o.ManufacturerCountries != nil {
+ toSerialize["manufacturerCountries"] = o.ManufacturerCountries
+ }
+ if !IsNil(o.MinShipment) {
+ toSerialize["minShipment"] = o.MinShipment
+ }
+ if !IsNil(o.TransportUnitSize) {
+ toSerialize["transportUnitSize"] = o.TransportUnitSize
+ }
+ if !IsNil(o.QuantumOfSupply) {
+ toSerialize["quantumOfSupply"] = o.QuantumOfSupply
+ }
+ if !IsNil(o.DeliveryDurationDays) {
+ toSerialize["deliveryDurationDays"] = o.DeliveryDurationDays
+ }
+ if !IsNil(o.BoxCount) {
+ toSerialize["boxCount"] = o.BoxCount
+ }
+ if o.CustomsCommodityCodes != nil {
+ toSerialize["customsCommodityCodes"] = o.CustomsCommodityCodes
+ }
+ if !IsNil(o.WeightDimensions) {
+ toSerialize["weightDimensions"] = o.WeightDimensions
+ }
+ if o.SupplyScheduleDays != nil {
+ toSerialize["supplyScheduleDays"] = o.SupplyScheduleDays
+ }
+ if !IsNil(o.ShelfLifeDays) {
+ toSerialize["shelfLifeDays"] = o.ShelfLifeDays
+ }
+ if !IsNil(o.LifeTimeDays) {
+ toSerialize["lifeTimeDays"] = o.LifeTimeDays
+ }
+ if !IsNil(o.GuaranteePeriodDays) {
+ toSerialize["guaranteePeriodDays"] = o.GuaranteePeriodDays
+ }
+ if !IsNil(o.ProcessingState) {
+ toSerialize["processingState"] = o.ProcessingState
+ }
+ if !IsNil(o.Availability) {
+ toSerialize["availability"] = o.Availability
+ }
+ if !IsNil(o.ShelfLife) {
+ toSerialize["shelfLife"] = o.ShelfLife
+ }
+ if !IsNil(o.LifeTime) {
+ toSerialize["lifeTime"] = o.LifeTime
+ }
+ if !IsNil(o.GuaranteePeriod) {
+ toSerialize["guaranteePeriod"] = o.GuaranteePeriod
+ }
+ if !IsNil(o.Certificate) {
+ toSerialize["certificate"] = o.Certificate
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateMappingsOfferDTO) UnmarshalJSON(data []byte) (err error) {
+ varUpdateMappingsOfferDTO := _UpdateMappingsOfferDTO{}
+
+ err = json.Unmarshal(data, &varUpdateMappingsOfferDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateMappingsOfferDTO(varUpdateMappingsOfferDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "shopSku")
+ delete(additionalProperties, "category")
+ delete(additionalProperties, "vendor")
+ delete(additionalProperties, "vendorCode")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "feedId")
+ delete(additionalProperties, "barcodes")
+ delete(additionalProperties, "urls")
+ delete(additionalProperties, "pictures")
+ delete(additionalProperties, "manufacturer")
+ delete(additionalProperties, "manufacturerCountries")
+ delete(additionalProperties, "minShipment")
+ delete(additionalProperties, "transportUnitSize")
+ delete(additionalProperties, "quantumOfSupply")
+ delete(additionalProperties, "deliveryDurationDays")
+ delete(additionalProperties, "boxCount")
+ delete(additionalProperties, "customsCommodityCodes")
+ delete(additionalProperties, "weightDimensions")
+ delete(additionalProperties, "supplyScheduleDays")
+ delete(additionalProperties, "shelfLifeDays")
+ delete(additionalProperties, "lifeTimeDays")
+ delete(additionalProperties, "guaranteePeriodDays")
+ delete(additionalProperties, "processingState")
+ delete(additionalProperties, "availability")
+ delete(additionalProperties, "shelfLife")
+ delete(additionalProperties, "lifeTime")
+ delete(additionalProperties, "guaranteePeriod")
+ delete(additionalProperties, "certificate")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateMappingsOfferDTO struct {
+ value *UpdateMappingsOfferDTO
+ isSet bool
+}
+
+func (v NullableUpdateMappingsOfferDTO) Get() *UpdateMappingsOfferDTO {
+ return v.value
+}
+
+func (v *NullableUpdateMappingsOfferDTO) Set(val *UpdateMappingsOfferDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateMappingsOfferDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateMappingsOfferDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateMappingsOfferDTO(val *UpdateMappingsOfferDTO) *NullableUpdateMappingsOfferDTO {
+ return &NullableUpdateMappingsOfferDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateMappingsOfferDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateMappingsOfferDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_offer_content_request.go b/pkg/api/yandex/ymclient/model_update_offer_content_request.go
new file mode 100644
index 0000000..f7a47e4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_offer_content_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOfferContentRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOfferContentRequest{}
+
+// UpdateOfferContentRequest Запрос на установку новых значений для параметров.
+type UpdateOfferContentRequest struct {
+ // Список товаров с указанными характеристиками.
+ OffersContent []OfferContentDTO `json:"offersContent"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOfferContentRequest UpdateOfferContentRequest
+
+// NewUpdateOfferContentRequest instantiates a new UpdateOfferContentRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOfferContentRequest(offersContent []OfferContentDTO) *UpdateOfferContentRequest {
+ this := UpdateOfferContentRequest{}
+ this.OffersContent = offersContent
+ return &this
+}
+
+// NewUpdateOfferContentRequestWithDefaults instantiates a new UpdateOfferContentRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOfferContentRequestWithDefaults() *UpdateOfferContentRequest {
+ this := UpdateOfferContentRequest{}
+ return &this
+}
+
+// GetOffersContent returns the OffersContent field value
+func (o *UpdateOfferContentRequest) GetOffersContent() []OfferContentDTO {
+ if o == nil {
+ var ret []OfferContentDTO
+ return ret
+ }
+
+ return o.OffersContent
+}
+
+// GetOffersContentOk returns a tuple with the OffersContent field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferContentRequest) GetOffersContentOk() ([]OfferContentDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OffersContent, true
+}
+
+// SetOffersContent sets field value
+func (o *UpdateOfferContentRequest) SetOffersContent(v []OfferContentDTO) {
+ o.OffersContent = v
+}
+
+func (o UpdateOfferContentRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOfferContentRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offersContent"] = o.OffersContent
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOfferContentRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offersContent",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOfferContentRequest := _UpdateOfferContentRequest{}
+
+ err = json.Unmarshal(data, &varUpdateOfferContentRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOfferContentRequest(varUpdateOfferContentRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offersContent")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOfferContentRequest struct {
+ value *UpdateOfferContentRequest
+ isSet bool
+}
+
+func (v NullableUpdateOfferContentRequest) Get() *UpdateOfferContentRequest {
+ return v.value
+}
+
+func (v *NullableUpdateOfferContentRequest) Set(val *UpdateOfferContentRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOfferContentRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOfferContentRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOfferContentRequest(val *UpdateOfferContentRequest) *NullableUpdateOfferContentRequest {
+ return &NullableUpdateOfferContentRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateOfferContentRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOfferContentRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_offer_content_response.go b/pkg/api/yandex/ymclient/model_update_offer_content_response.go
new file mode 100644
index 0000000..8ae1e0e
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_offer_content_response.go
@@ -0,0 +1,192 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdateOfferContentResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOfferContentResponse{}
+
+// UpdateOfferContentResponse Описывает проблемы, которые появились при сохранении товара.
+type UpdateOfferContentResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ // Ошибки и предупреждения, которые появились при обработке переданных значений. Каждый элемент списка соответствует одному товару. Если ошибок и предупреждений нет, поле не передается.
+ Results []UpdateOfferContentResultDTO `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOfferContentResponse UpdateOfferContentResponse
+
+// NewUpdateOfferContentResponse instantiates a new UpdateOfferContentResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOfferContentResponse() *UpdateOfferContentResponse {
+ this := UpdateOfferContentResponse{}
+ return &this
+}
+
+// NewUpdateOfferContentResponseWithDefaults instantiates a new UpdateOfferContentResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOfferContentResponseWithDefaults() *UpdateOfferContentResponse {
+ this := UpdateOfferContentResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *UpdateOfferContentResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferContentResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *UpdateOfferContentResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *UpdateOfferContentResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferContentResponse) GetResults() []UpdateOfferContentResultDTO {
+ if o == nil {
+ var ret []UpdateOfferContentResultDTO
+ return ret
+ }
+ return o.Results
+}
+
+// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferContentResponse) GetResultsOk() ([]UpdateOfferContentResultDTO, bool) {
+ if o == nil || IsNil(o.Results) {
+ return nil, false
+ }
+ return o.Results, true
+}
+
+// HasResults returns a boolean if a field has been set.
+func (o *UpdateOfferContentResponse) HasResults() bool {
+ if o != nil && !IsNil(o.Results) {
+ return true
+ }
+
+ return false
+}
+
+// SetResults gets a reference to the given []UpdateOfferContentResultDTO and assigns it to the Results field.
+func (o *UpdateOfferContentResponse) SetResults(v []UpdateOfferContentResultDTO) {
+ o.Results = v
+}
+
+func (o UpdateOfferContentResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOfferContentResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if o.Results != nil {
+ toSerialize["results"] = o.Results
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOfferContentResponse) UnmarshalJSON(data []byte) (err error) {
+ varUpdateOfferContentResponse := _UpdateOfferContentResponse{}
+
+ err = json.Unmarshal(data, &varUpdateOfferContentResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOfferContentResponse(varUpdateOfferContentResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "results")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOfferContentResponse struct {
+ value *UpdateOfferContentResponse
+ isSet bool
+}
+
+func (v NullableUpdateOfferContentResponse) Get() *UpdateOfferContentResponse {
+ return v.value
+}
+
+func (v *NullableUpdateOfferContentResponse) Set(val *UpdateOfferContentResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOfferContentResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOfferContentResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOfferContentResponse(val *UpdateOfferContentResponse) *NullableUpdateOfferContentResponse {
+ return &NullableUpdateOfferContentResponse{value: val, isSet: true}
+}
+
+func (v NullableUpdateOfferContentResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOfferContentResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_offer_content_result_dto.go b/pkg/api/yandex/ymclient/model_update_offer_content_result_dto.go
new file mode 100644
index 0000000..fa33f95
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_offer_content_result_dto.go
@@ -0,0 +1,245 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOfferContentResultDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOfferContentResultDTO{}
+
+// UpdateOfferContentResultDTO Ошибки и предупреждения, которые появились из-за переданных характеристик.
+type UpdateOfferContentResultDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Ошибки. Если хотя бы по одному товару есть ошибка, информация в каталоге не обновится по всем переданным товарам.
+ Errors []OfferContentErrorDTO `json:"errors,omitempty"`
+ // Предупреждения. Информация в каталоге обновится.
+ Warnings []OfferContentErrorDTO `json:"warnings,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOfferContentResultDTO UpdateOfferContentResultDTO
+
+// NewUpdateOfferContentResultDTO instantiates a new UpdateOfferContentResultDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOfferContentResultDTO(offerId string) *UpdateOfferContentResultDTO {
+ this := UpdateOfferContentResultDTO{}
+ this.OfferId = offerId
+ return &this
+}
+
+// NewUpdateOfferContentResultDTOWithDefaults instantiates a new UpdateOfferContentResultDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOfferContentResultDTOWithDefaults() *UpdateOfferContentResultDTO {
+ this := UpdateOfferContentResultDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value
+func (o *UpdateOfferContentResultDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferContentResultDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *UpdateOfferContentResultDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetErrors returns the Errors field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferContentResultDTO) GetErrors() []OfferContentErrorDTO {
+ if o == nil {
+ var ret []OfferContentErrorDTO
+ return ret
+ }
+ return o.Errors
+}
+
+// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferContentResultDTO) GetErrorsOk() ([]OfferContentErrorDTO, bool) {
+ if o == nil || IsNil(o.Errors) {
+ return nil, false
+ }
+ return o.Errors, true
+}
+
+// HasErrors returns a boolean if a field has been set.
+func (o *UpdateOfferContentResultDTO) HasErrors() bool {
+ if o != nil && !IsNil(o.Errors) {
+ return true
+ }
+
+ return false
+}
+
+// SetErrors gets a reference to the given []OfferContentErrorDTO and assigns it to the Errors field.
+func (o *UpdateOfferContentResultDTO) SetErrors(v []OfferContentErrorDTO) {
+ o.Errors = v
+}
+
+// GetWarnings returns the Warnings field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferContentResultDTO) GetWarnings() []OfferContentErrorDTO {
+ if o == nil {
+ var ret []OfferContentErrorDTO
+ return ret
+ }
+ return o.Warnings
+}
+
+// GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferContentResultDTO) GetWarningsOk() ([]OfferContentErrorDTO, bool) {
+ if o == nil || IsNil(o.Warnings) {
+ return nil, false
+ }
+ return o.Warnings, true
+}
+
+// HasWarnings returns a boolean if a field has been set.
+func (o *UpdateOfferContentResultDTO) HasWarnings() bool {
+ if o != nil && !IsNil(o.Warnings) {
+ return true
+ }
+
+ return false
+}
+
+// SetWarnings gets a reference to the given []OfferContentErrorDTO and assigns it to the Warnings field.
+func (o *UpdateOfferContentResultDTO) SetWarnings(v []OfferContentErrorDTO) {
+ o.Warnings = v
+}
+
+func (o UpdateOfferContentResultDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOfferContentResultDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerId"] = o.OfferId
+ if o.Errors != nil {
+ toSerialize["errors"] = o.Errors
+ }
+ if o.Warnings != nil {
+ toSerialize["warnings"] = o.Warnings
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOfferContentResultDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOfferContentResultDTO := _UpdateOfferContentResultDTO{}
+
+ err = json.Unmarshal(data, &varUpdateOfferContentResultDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOfferContentResultDTO(varUpdateOfferContentResultDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "errors")
+ delete(additionalProperties, "warnings")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOfferContentResultDTO struct {
+ value *UpdateOfferContentResultDTO
+ isSet bool
+}
+
+func (v NullableUpdateOfferContentResultDTO) Get() *UpdateOfferContentResultDTO {
+ return v.value
+}
+
+func (v *NullableUpdateOfferContentResultDTO) Set(val *UpdateOfferContentResultDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOfferContentResultDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOfferContentResultDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOfferContentResultDTO(val *UpdateOfferContentResultDTO) *NullableUpdateOfferContentResultDTO {
+ return &NullableUpdateOfferContentResultDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateOfferContentResultDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOfferContentResultDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_offer_dto.go b/pkg/api/yandex/ymclient/model_update_offer_dto.go
new file mode 100644
index 0000000..5d13f0a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_offer_dto.go
@@ -0,0 +1,1400 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOfferDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOfferDTO{}
+
+// UpdateOfferDTO Параметры товара.
+type UpdateOfferDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Составляйте название по схеме: тип + бренд или производитель + модель + особенности, если есть (например, цвет, размер или вес) и количество в упаковке. Не включайте в название условия продажи (например, «скидка», «бесплатная доставка» и т. д.), эмоциональные характеристики («хит», «супер» и т. д.). Не пишите слова большими буквами — кроме устоявшихся названий брендов и моделей. Оптимальная длина — 50–60 символов. [Рекомендации и правила](https://yandex.ru/support/marketplace/assortment/fields/title.html)
+ Name *string `json:"name,omitempty"`
+ // Идентификатор категории на Маркете, к которой вы относите свой товар. {% note warning \"Всегда указывайте, когда передаете `parameterValues`\" %} Если при изменении характеристик передать `parameterValues` и не указать `marketCategoryId`, характеристики обновятся, но в ответе придет предупреждение (параметр `warnings`). Если не передать их оба, будет использована информация из устаревших параметров `params` и `category`, а `marketCategoryId` будет определен автоматически. {% endnote %} При изменении категории убедитесь, что характеристики товара и их значения в параметре `parameterValues` вы передаете для новой категории. Список категорий Маркета можно получить с помощью запроса [POST categories/tree](../../reference/categories/getCategoriesTree.md).
+ MarketCategoryId *int64 `json:"marketCategoryId,omitempty"`
+ // {% note warning \"Вместо него используйте `marketCategoryId`.\" %} {% endnote %} Категория товара в вашем магазине.
+ // Deprecated
+ Category *string `json:"category,omitempty"`
+ // Ссылки на изображения товара. Изображение по первой ссылке считается основным, остальные дополнительными. **Требования к ссылкам** * Указывайте ссылку целиком, включая протокол http или https. * Русские буквы в URL можно. * Можно использовать прямые ссылки на изображения и на Яндекс Диск. Ссылки на Яндекс Диске нужно копировать с помощью функции **Поделиться**. Относительные ссылки и ссылки на другие облачные хранилища — не работают. ✅ `https://example-shop.ru/images/sku12345.jpg` ✅ `https://yadi.sk/i/NaBoRsimVOLov` ❌ `/images/sku12345.jpg` ❌ `https://www.dropbox.com/s/818f/tovar.jpg` Ссылки на изображение должны быть постоянными. Нельзя использовать динамические ссылки, меняющиеся от выгрузки к выгрузке. Если нужно заменить изображение, выложите новое изображение по новой ссылке, а ссылку на старое удалите. Если просто заменить изображение по старой ссылке, оно не обновится. [Требования к изображениям](https://yandex.ru/support/marketplace/assortment/fields/images.html)
+ Pictures []string `json:"pictures,omitempty"`
+ // Ссылки (URL) на видео товара. **Требования к ссылке** * Указывайте ссылку целиком, включая протокол http или https. * Русские буквы в URL можно. * Можно использовать прямые ссылки на видео и на Яндекс Диск. Ссылки на Яндекс Диске нужно копировать с помощью функции **Поделиться**. Относительные ссылки и ссылки на другие облачные хранилища — не работают. ✅ `https://example-shop.ru/video/sku12345.avi` ✅ `https://yadi.sk/i/NaBoRsimVOLov` ❌ `/video/sku12345.avi` ❌ `https://www.dropbox.com/s/818f/super-tovar.avi` Ссылки на видео должны быть постоянными. Нельзя использовать динамические ссылки, меняющиеся от выгрузки к выгрузке. Если нужно заменить видео, выложите новое видео по новой ссылке, а ссылку на старое удалите. Если просто заменить видео по старой ссылке, оно не обновится. [Требования к видео](https://yandex.ru/support/marketplace/assortment/fields/video.html)
+ Videos []string `json:"videos,omitempty"`
+ // Список инструкций по использованию товара.
+ Manuals []OfferManualDTO `json:"manuals,omitempty"`
+ // Название бренда или производителя. Должно быть записано так, как его пишет сам бренд.
+ Vendor *string `json:"vendor,omitempty"`
+ // Указывайте в виде последовательности цифр. Подойдут коды :no-translate[EAN-13, EAN-8, UPC-A, UPC-E] или :no-translate[Code 128]. Для книг указывайте :no-translate[ISBN]. Для товаров [определенных категорий и торговых марок](https://yastatic.net/s3/doc-binary/src/support/market/ru/yandex-market-list-for-gtin.xlsx) штрихкод должен быть действительным кодом :no-translate[GTIN]. Обратите внимание: внутренние штрихкоды, начинающиеся на 2 или 02, и коды формата :no-translate[Code 128] не являются :no-translate[GTIN]. [Что такое :no-translate[GTIN]](:no-translate[*gtin])
+ Barcodes []string `json:"barcodes,omitempty"`
+ // Подробное описание товара: например, его преимущества и особенности. Не давайте в описании инструкций по установке и сборке. Не используйте слова «скидка», «распродажа», «дешевый», «подарок» (кроме подарочных категорий), «бесплатно», «акция», «специальная цена», «новинка», «new», «аналог», «заказ», «хит». Не указывайте никакой контактной информации и не давайте ссылок. Для форматирования текста можно использовать теги HTML: * \\
, \\, \\ и так далее — для заголовков; * \\
и \\
— для переноса строки; * \\
— для нумерованного списка; * \\ — для маркированного списка; * \\- — для создания элементов списка (должен находиться внутри \\
или \\); * \\ — поддерживается, но не влияет на отображение текста. Оптимальная длина — 400–600 символов. [Рекомендации и правила](https://yandex.ru/support/marketplace/assortment/fields/description.html)
+ Description *string `json:"description,omitempty"`
+ // Страна, где был произведен товар. Записывайте названия стран так, как они записаны в [списке](https://yastatic.net/s3/doc-binary/src/support/market/ru/countries.xlsx).
+ ManufacturerCountries []string `json:"manufacturerCountries,omitempty"`
+ WeightDimensions *OfferWeightDimensionsDTO `json:"weightDimensions,omitempty"`
+ // Артикул товара от производителя.
+ VendorCode *string `json:"vendorCode,omitempty"`
+ // Метки товара, которые использует магазин. Покупателям теги не видны. По тегам можно группировать и фильтровать разные товары в каталоге — например, товары одной серии, коллекции или линейки. Максимальная длина тега — 20 символов. У одного товара может быть максимум 10 тегов.
+ Tags []string `json:"tags,omitempty"`
+ ShelfLife *TimePeriodDTO `json:"shelfLife,omitempty"`
+ LifeTime *TimePeriodDTO `json:"lifeTime,omitempty"`
+ GuaranteePeriod *TimePeriodDTO `json:"guaranteePeriod,omitempty"`
+ // {% note warning \"Вместо него используйте `commodityCodes` с типом `CUSTOMS_COMMODITY_CODE`.\" %} {% endnote %} Код товара в единой Товарной номенклатуре внешнеэкономической деятельности (ТН ВЭД) — 10 или 14 цифр без пробелов. Обязательно укажите, если он есть.
+ // Deprecated
+ CustomsCommodityCode *string `json:"customsCommodityCode,omitempty"`
+ // Товарные коды.
+ CommodityCodes []CommodityCodeDTO `json:"commodityCodes,omitempty"`
+ // Номера документов на товар: сертификата, декларации соответствия и т. п. Передавать можно только номера документов, сканы которого загружены в кабинете продавца по [инструкции](https://yandex.ru/support/marketplace/assortment/restrictions/certificates.html).
+ Certificates []string `json:"certificates,omitempty"`
+ // Количество грузовых мест. Параметр используется, если товар представляет собой несколько коробок, упаковок и так далее. Например, кондиционер занимает два места — внешний и внутренний блоки в двух коробках. Для товаров, занимающих одно место, не передавайте этот параметр.
+ BoxCount *int32 `json:"boxCount,omitempty"`
+ Condition *OfferConditionDTO `json:"condition,omitempty"`
+ Type *OfferType `json:"type,omitempty"`
+ // Признак цифрового товара. Укажите `true`, если товар доставляется по электронной почте. [Как работать с цифровыми товарами](../../step-by-step/digital.md)
+ Downloadable *bool `json:"downloadable,omitempty"`
+ // Параметр включает для товара пометку 18+. Устанавливайте ее только для товаров, которые относятся к удовлетворению сексуальных потребностей.
+ Adult *bool `json:"adult,omitempty"`
+ Age *AgeDTO `json:"age,omitempty"`
+ // {% note warning \"При передаче характеристик используйте `parameterValues`.\" %} {% endnote %} Характеристики, которые есть только у товаров конкретной категории — например, диаметр колес велосипеда или материал подошвы обуви.
+ // Deprecated
+ Params []OfferParamDTO `json:"params,omitempty"`
+ // Список характеристик с их значениями. {% note warning \"Всегда передавайте вместе с `marketCategoryId`\" %} Если не передать `marketCategoryId` при изменении характеристик, они обновятся, но в ответе придет предупреждение (параметр `warnings`). Если не передать их оба, будет использована информация из устаревших параметров `params` и `category`, а `marketCategoryId` будет определен автоматически. {% endnote %} При **изменении** характеристик передавайте только те, значение которых нужно обновить. Если в `marketCategoryId` вы меняете категорию, значения общих характеристик для старой и новой категории сохранятся, передавать их не нужно. Чтобы **удалить** значение заданной характеристики, передайте ее `parameterId` с пустым `value`.
+ ParameterValues []ParameterValueDTO `json:"parameterValues,omitempty"`
+ BasicPrice *PriceWithDiscountDTO `json:"basicPrice,omitempty"`
+ PurchasePrice *BasePriceDTO `json:"purchasePrice,omitempty"`
+ AdditionalExpenses *BasePriceDTO `json:"additionalExpenses,omitempty"`
+ // Использовать первое видео в карточке как видеообложку. Передайте `true`, чтобы первое видео использовалось как видеообложка, или `false`, чтобы видеообложка не отображалась в карточке товара.
+ // Deprecated
+ FirstVideoAsCover *bool `json:"firstVideoAsCover,omitempty"`
+ // Параметры, которые вы ранее передали в `UpdateOfferDTO`, а теперь хотите удалить. Если передать `adult`, `downloadable` и `firstVideoAsCover`, они не удалятся — их значение изменится на `false`. Можно передать сразу несколько значений. Не используйте вместе с соответствующим параметром в `UpdateOfferDTO`. Это приведет к ошибке `400`.
+ DeleteParameters []DeleteOfferParameterType `json:"deleteParameters,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOfferDTO UpdateOfferDTO
+
+// NewUpdateOfferDTO instantiates a new UpdateOfferDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOfferDTO(offerId string) *UpdateOfferDTO {
+ this := UpdateOfferDTO{}
+ this.OfferId = offerId
+ return &this
+}
+
+// NewUpdateOfferDTOWithDefaults instantiates a new UpdateOfferDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOfferDTOWithDefaults() *UpdateOfferDTO {
+ this := UpdateOfferDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value
+func (o *UpdateOfferDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *UpdateOfferDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *UpdateOfferDTO) SetName(v string) {
+ o.Name = &v
+}
+
+// GetMarketCategoryId returns the MarketCategoryId field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetMarketCategoryId() int64 {
+ if o == nil || IsNil(o.MarketCategoryId) {
+ var ret int64
+ return ret
+ }
+ return *o.MarketCategoryId
+}
+
+// GetMarketCategoryIdOk returns a tuple with the MarketCategoryId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetMarketCategoryIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.MarketCategoryId) {
+ return nil, false
+ }
+ return o.MarketCategoryId, true
+}
+
+// HasMarketCategoryId returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasMarketCategoryId() bool {
+ if o != nil && !IsNil(o.MarketCategoryId) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarketCategoryId gets a reference to the given int64 and assigns it to the MarketCategoryId field.
+func (o *UpdateOfferDTO) SetMarketCategoryId(v int64) {
+ o.MarketCategoryId = &v
+}
+
+// GetCategory returns the Category field value if set, zero value otherwise.
+// Deprecated
+func (o *UpdateOfferDTO) GetCategory() string {
+ if o == nil || IsNil(o.Category) {
+ var ret string
+ return ret
+ }
+ return *o.Category
+}
+
+// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *UpdateOfferDTO) GetCategoryOk() (*string, bool) {
+ if o == nil || IsNil(o.Category) {
+ return nil, false
+ }
+ return o.Category, true
+}
+
+// HasCategory returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasCategory() bool {
+ if o != nil && !IsNil(o.Category) {
+ return true
+ }
+
+ return false
+}
+
+// SetCategory gets a reference to the given string and assigns it to the Category field.
+// Deprecated
+func (o *UpdateOfferDTO) SetCategory(v string) {
+ o.Category = &v
+}
+
+// GetPictures returns the Pictures field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferDTO) GetPictures() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Pictures
+}
+
+// GetPicturesOk returns a tuple with the Pictures field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferDTO) GetPicturesOk() ([]string, bool) {
+ if o == nil || IsNil(o.Pictures) {
+ return nil, false
+ }
+ return o.Pictures, true
+}
+
+// HasPictures returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasPictures() bool {
+ if o != nil && !IsNil(o.Pictures) {
+ return true
+ }
+
+ return false
+}
+
+// SetPictures gets a reference to the given []string and assigns it to the Pictures field.
+func (o *UpdateOfferDTO) SetPictures(v []string) {
+ o.Pictures = v
+}
+
+// GetVideos returns the Videos field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferDTO) GetVideos() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Videos
+}
+
+// GetVideosOk returns a tuple with the Videos field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferDTO) GetVideosOk() ([]string, bool) {
+ if o == nil || IsNil(o.Videos) {
+ return nil, false
+ }
+ return o.Videos, true
+}
+
+// HasVideos returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasVideos() bool {
+ if o != nil && !IsNil(o.Videos) {
+ return true
+ }
+
+ return false
+}
+
+// SetVideos gets a reference to the given []string and assigns it to the Videos field.
+func (o *UpdateOfferDTO) SetVideos(v []string) {
+ o.Videos = v
+}
+
+// GetManuals returns the Manuals field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferDTO) GetManuals() []OfferManualDTO {
+ if o == nil {
+ var ret []OfferManualDTO
+ return ret
+ }
+ return o.Manuals
+}
+
+// GetManualsOk returns a tuple with the Manuals field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferDTO) GetManualsOk() ([]OfferManualDTO, bool) {
+ if o == nil || IsNil(o.Manuals) {
+ return nil, false
+ }
+ return o.Manuals, true
+}
+
+// HasManuals returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasManuals() bool {
+ if o != nil && !IsNil(o.Manuals) {
+ return true
+ }
+
+ return false
+}
+
+// SetManuals gets a reference to the given []OfferManualDTO and assigns it to the Manuals field.
+func (o *UpdateOfferDTO) SetManuals(v []OfferManualDTO) {
+ o.Manuals = v
+}
+
+// GetVendor returns the Vendor field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetVendor() string {
+ if o == nil || IsNil(o.Vendor) {
+ var ret string
+ return ret
+ }
+ return *o.Vendor
+}
+
+// GetVendorOk returns a tuple with the Vendor field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetVendorOk() (*string, bool) {
+ if o == nil || IsNil(o.Vendor) {
+ return nil, false
+ }
+ return o.Vendor, true
+}
+
+// HasVendor returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasVendor() bool {
+ if o != nil && !IsNil(o.Vendor) {
+ return true
+ }
+
+ return false
+}
+
+// SetVendor gets a reference to the given string and assigns it to the Vendor field.
+func (o *UpdateOfferDTO) SetVendor(v string) {
+ o.Vendor = &v
+}
+
+// GetBarcodes returns the Barcodes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferDTO) GetBarcodes() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Barcodes
+}
+
+// GetBarcodesOk returns a tuple with the Barcodes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferDTO) GetBarcodesOk() ([]string, bool) {
+ if o == nil || IsNil(o.Barcodes) {
+ return nil, false
+ }
+ return o.Barcodes, true
+}
+
+// HasBarcodes returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasBarcodes() bool {
+ if o != nil && !IsNil(o.Barcodes) {
+ return true
+ }
+
+ return false
+}
+
+// SetBarcodes gets a reference to the given []string and assigns it to the Barcodes field.
+func (o *UpdateOfferDTO) SetBarcodes(v []string) {
+ o.Barcodes = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
+ return ret
+ }
+ return *o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
+ return nil, false
+ }
+ return o.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *UpdateOfferDTO) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetManufacturerCountries returns the ManufacturerCountries field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferDTO) GetManufacturerCountries() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.ManufacturerCountries
+}
+
+// GetManufacturerCountriesOk returns a tuple with the ManufacturerCountries field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferDTO) GetManufacturerCountriesOk() ([]string, bool) {
+ if o == nil || IsNil(o.ManufacturerCountries) {
+ return nil, false
+ }
+ return o.ManufacturerCountries, true
+}
+
+// HasManufacturerCountries returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasManufacturerCountries() bool {
+ if o != nil && !IsNil(o.ManufacturerCountries) {
+ return true
+ }
+
+ return false
+}
+
+// SetManufacturerCountries gets a reference to the given []string and assigns it to the ManufacturerCountries field.
+func (o *UpdateOfferDTO) SetManufacturerCountries(v []string) {
+ o.ManufacturerCountries = v
+}
+
+// GetWeightDimensions returns the WeightDimensions field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetWeightDimensions() OfferWeightDimensionsDTO {
+ if o == nil || IsNil(o.WeightDimensions) {
+ var ret OfferWeightDimensionsDTO
+ return ret
+ }
+ return *o.WeightDimensions
+}
+
+// GetWeightDimensionsOk returns a tuple with the WeightDimensions field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetWeightDimensionsOk() (*OfferWeightDimensionsDTO, bool) {
+ if o == nil || IsNil(o.WeightDimensions) {
+ return nil, false
+ }
+ return o.WeightDimensions, true
+}
+
+// HasWeightDimensions returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasWeightDimensions() bool {
+ if o != nil && !IsNil(o.WeightDimensions) {
+ return true
+ }
+
+ return false
+}
+
+// SetWeightDimensions gets a reference to the given OfferWeightDimensionsDTO and assigns it to the WeightDimensions field.
+func (o *UpdateOfferDTO) SetWeightDimensions(v OfferWeightDimensionsDTO) {
+ o.WeightDimensions = &v
+}
+
+// GetVendorCode returns the VendorCode field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetVendorCode() string {
+ if o == nil || IsNil(o.VendorCode) {
+ var ret string
+ return ret
+ }
+ return *o.VendorCode
+}
+
+// GetVendorCodeOk returns a tuple with the VendorCode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetVendorCodeOk() (*string, bool) {
+ if o == nil || IsNil(o.VendorCode) {
+ return nil, false
+ }
+ return o.VendorCode, true
+}
+
+// HasVendorCode returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasVendorCode() bool {
+ if o != nil && !IsNil(o.VendorCode) {
+ return true
+ }
+
+ return false
+}
+
+// SetVendorCode gets a reference to the given string and assigns it to the VendorCode field.
+func (o *UpdateOfferDTO) SetVendorCode(v string) {
+ o.VendorCode = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferDTO) GetTags() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Tags
+}
+
+// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferDTO) GetTagsOk() ([]string, bool) {
+ if o == nil || IsNil(o.Tags) {
+ return nil, false
+ }
+ return o.Tags, true
+}
+
+// HasTags returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasTags() bool {
+ if o != nil && !IsNil(o.Tags) {
+ return true
+ }
+
+ return false
+}
+
+// SetTags gets a reference to the given []string and assigns it to the Tags field.
+func (o *UpdateOfferDTO) SetTags(v []string) {
+ o.Tags = v
+}
+
+// GetShelfLife returns the ShelfLife field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetShelfLife() TimePeriodDTO {
+ if o == nil || IsNil(o.ShelfLife) {
+ var ret TimePeriodDTO
+ return ret
+ }
+ return *o.ShelfLife
+}
+
+// GetShelfLifeOk returns a tuple with the ShelfLife field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetShelfLifeOk() (*TimePeriodDTO, bool) {
+ if o == nil || IsNil(o.ShelfLife) {
+ return nil, false
+ }
+ return o.ShelfLife, true
+}
+
+// HasShelfLife returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasShelfLife() bool {
+ if o != nil && !IsNil(o.ShelfLife) {
+ return true
+ }
+
+ return false
+}
+
+// SetShelfLife gets a reference to the given TimePeriodDTO and assigns it to the ShelfLife field.
+func (o *UpdateOfferDTO) SetShelfLife(v TimePeriodDTO) {
+ o.ShelfLife = &v
+}
+
+// GetLifeTime returns the LifeTime field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetLifeTime() TimePeriodDTO {
+ if o == nil || IsNil(o.LifeTime) {
+ var ret TimePeriodDTO
+ return ret
+ }
+ return *o.LifeTime
+}
+
+// GetLifeTimeOk returns a tuple with the LifeTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetLifeTimeOk() (*TimePeriodDTO, bool) {
+ if o == nil || IsNil(o.LifeTime) {
+ return nil, false
+ }
+ return o.LifeTime, true
+}
+
+// HasLifeTime returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasLifeTime() bool {
+ if o != nil && !IsNil(o.LifeTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetLifeTime gets a reference to the given TimePeriodDTO and assigns it to the LifeTime field.
+func (o *UpdateOfferDTO) SetLifeTime(v TimePeriodDTO) {
+ o.LifeTime = &v
+}
+
+// GetGuaranteePeriod returns the GuaranteePeriod field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetGuaranteePeriod() TimePeriodDTO {
+ if o == nil || IsNil(o.GuaranteePeriod) {
+ var ret TimePeriodDTO
+ return ret
+ }
+ return *o.GuaranteePeriod
+}
+
+// GetGuaranteePeriodOk returns a tuple with the GuaranteePeriod field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetGuaranteePeriodOk() (*TimePeriodDTO, bool) {
+ if o == nil || IsNil(o.GuaranteePeriod) {
+ return nil, false
+ }
+ return o.GuaranteePeriod, true
+}
+
+// HasGuaranteePeriod returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasGuaranteePeriod() bool {
+ if o != nil && !IsNil(o.GuaranteePeriod) {
+ return true
+ }
+
+ return false
+}
+
+// SetGuaranteePeriod gets a reference to the given TimePeriodDTO and assigns it to the GuaranteePeriod field.
+func (o *UpdateOfferDTO) SetGuaranteePeriod(v TimePeriodDTO) {
+ o.GuaranteePeriod = &v
+}
+
+// GetCustomsCommodityCode returns the CustomsCommodityCode field value if set, zero value otherwise.
+// Deprecated
+func (o *UpdateOfferDTO) GetCustomsCommodityCode() string {
+ if o == nil || IsNil(o.CustomsCommodityCode) {
+ var ret string
+ return ret
+ }
+ return *o.CustomsCommodityCode
+}
+
+// GetCustomsCommodityCodeOk returns a tuple with the CustomsCommodityCode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *UpdateOfferDTO) GetCustomsCommodityCodeOk() (*string, bool) {
+ if o == nil || IsNil(o.CustomsCommodityCode) {
+ return nil, false
+ }
+ return o.CustomsCommodityCode, true
+}
+
+// HasCustomsCommodityCode returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasCustomsCommodityCode() bool {
+ if o != nil && !IsNil(o.CustomsCommodityCode) {
+ return true
+ }
+
+ return false
+}
+
+// SetCustomsCommodityCode gets a reference to the given string and assigns it to the CustomsCommodityCode field.
+// Deprecated
+func (o *UpdateOfferDTO) SetCustomsCommodityCode(v string) {
+ o.CustomsCommodityCode = &v
+}
+
+// GetCommodityCodes returns the CommodityCodes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferDTO) GetCommodityCodes() []CommodityCodeDTO {
+ if o == nil {
+ var ret []CommodityCodeDTO
+ return ret
+ }
+ return o.CommodityCodes
+}
+
+// GetCommodityCodesOk returns a tuple with the CommodityCodes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferDTO) GetCommodityCodesOk() ([]CommodityCodeDTO, bool) {
+ if o == nil || IsNil(o.CommodityCodes) {
+ return nil, false
+ }
+ return o.CommodityCodes, true
+}
+
+// HasCommodityCodes returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasCommodityCodes() bool {
+ if o != nil && !IsNil(o.CommodityCodes) {
+ return true
+ }
+
+ return false
+}
+
+// SetCommodityCodes gets a reference to the given []CommodityCodeDTO and assigns it to the CommodityCodes field.
+func (o *UpdateOfferDTO) SetCommodityCodes(v []CommodityCodeDTO) {
+ o.CommodityCodes = v
+}
+
+// GetCertificates returns the Certificates field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferDTO) GetCertificates() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Certificates
+}
+
+// GetCertificatesOk returns a tuple with the Certificates field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferDTO) GetCertificatesOk() ([]string, bool) {
+ if o == nil || IsNil(o.Certificates) {
+ return nil, false
+ }
+ return o.Certificates, true
+}
+
+// HasCertificates returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasCertificates() bool {
+ if o != nil && !IsNil(o.Certificates) {
+ return true
+ }
+
+ return false
+}
+
+// SetCertificates gets a reference to the given []string and assigns it to the Certificates field.
+func (o *UpdateOfferDTO) SetCertificates(v []string) {
+ o.Certificates = v
+}
+
+// GetBoxCount returns the BoxCount field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetBoxCount() int32 {
+ if o == nil || IsNil(o.BoxCount) {
+ var ret int32
+ return ret
+ }
+ return *o.BoxCount
+}
+
+// GetBoxCountOk returns a tuple with the BoxCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetBoxCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.BoxCount) {
+ return nil, false
+ }
+ return o.BoxCount, true
+}
+
+// HasBoxCount returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasBoxCount() bool {
+ if o != nil && !IsNil(o.BoxCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetBoxCount gets a reference to the given int32 and assigns it to the BoxCount field.
+func (o *UpdateOfferDTO) SetBoxCount(v int32) {
+ o.BoxCount = &v
+}
+
+// GetCondition returns the Condition field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetCondition() OfferConditionDTO {
+ if o == nil || IsNil(o.Condition) {
+ var ret OfferConditionDTO
+ return ret
+ }
+ return *o.Condition
+}
+
+// GetConditionOk returns a tuple with the Condition field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetConditionOk() (*OfferConditionDTO, bool) {
+ if o == nil || IsNil(o.Condition) {
+ return nil, false
+ }
+ return o.Condition, true
+}
+
+// HasCondition returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasCondition() bool {
+ if o != nil && !IsNil(o.Condition) {
+ return true
+ }
+
+ return false
+}
+
+// SetCondition gets a reference to the given OfferConditionDTO and assigns it to the Condition field.
+func (o *UpdateOfferDTO) SetCondition(v OfferConditionDTO) {
+ o.Condition = &v
+}
+
+// GetType returns the Type field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetType() OfferType {
+ if o == nil || IsNil(o.Type) {
+ var ret OfferType
+ return ret
+ }
+ return *o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetTypeOk() (*OfferType, bool) {
+ if o == nil || IsNil(o.Type) {
+ return nil, false
+ }
+ return o.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasType() bool {
+ if o != nil && !IsNil(o.Type) {
+ return true
+ }
+
+ return false
+}
+
+// SetType gets a reference to the given OfferType and assigns it to the Type field.
+func (o *UpdateOfferDTO) SetType(v OfferType) {
+ o.Type = &v
+}
+
+// GetDownloadable returns the Downloadable field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetDownloadable() bool {
+ if o == nil || IsNil(o.Downloadable) {
+ var ret bool
+ return ret
+ }
+ return *o.Downloadable
+}
+
+// GetDownloadableOk returns a tuple with the Downloadable field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetDownloadableOk() (*bool, bool) {
+ if o == nil || IsNil(o.Downloadable) {
+ return nil, false
+ }
+ return o.Downloadable, true
+}
+
+// HasDownloadable returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasDownloadable() bool {
+ if o != nil && !IsNil(o.Downloadable) {
+ return true
+ }
+
+ return false
+}
+
+// SetDownloadable gets a reference to the given bool and assigns it to the Downloadable field.
+func (o *UpdateOfferDTO) SetDownloadable(v bool) {
+ o.Downloadable = &v
+}
+
+// GetAdult returns the Adult field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetAdult() bool {
+ if o == nil || IsNil(o.Adult) {
+ var ret bool
+ return ret
+ }
+ return *o.Adult
+}
+
+// GetAdultOk returns a tuple with the Adult field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetAdultOk() (*bool, bool) {
+ if o == nil || IsNil(o.Adult) {
+ return nil, false
+ }
+ return o.Adult, true
+}
+
+// HasAdult returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasAdult() bool {
+ if o != nil && !IsNil(o.Adult) {
+ return true
+ }
+
+ return false
+}
+
+// SetAdult gets a reference to the given bool and assigns it to the Adult field.
+func (o *UpdateOfferDTO) SetAdult(v bool) {
+ o.Adult = &v
+}
+
+// GetAge returns the Age field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetAge() AgeDTO {
+ if o == nil || IsNil(o.Age) {
+ var ret AgeDTO
+ return ret
+ }
+ return *o.Age
+}
+
+// GetAgeOk returns a tuple with the Age field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetAgeOk() (*AgeDTO, bool) {
+ if o == nil || IsNil(o.Age) {
+ return nil, false
+ }
+ return o.Age, true
+}
+
+// HasAge returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasAge() bool {
+ if o != nil && !IsNil(o.Age) {
+ return true
+ }
+
+ return false
+}
+
+// SetAge gets a reference to the given AgeDTO and assigns it to the Age field.
+func (o *UpdateOfferDTO) SetAge(v AgeDTO) {
+ o.Age = &v
+}
+
+// GetParams returns the Params field value if set, zero value otherwise (both if not set or set to explicit null).
+// Deprecated
+func (o *UpdateOfferDTO) GetParams() []OfferParamDTO {
+ if o == nil {
+ var ret []OfferParamDTO
+ return ret
+ }
+ return o.Params
+}
+
+// GetParamsOk returns a tuple with the Params field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+// Deprecated
+func (o *UpdateOfferDTO) GetParamsOk() ([]OfferParamDTO, bool) {
+ if o == nil || IsNil(o.Params) {
+ return nil, false
+ }
+ return o.Params, true
+}
+
+// HasParams returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasParams() bool {
+ if o != nil && !IsNil(o.Params) {
+ return true
+ }
+
+ return false
+}
+
+// SetParams gets a reference to the given []OfferParamDTO and assigns it to the Params field.
+// Deprecated
+func (o *UpdateOfferDTO) SetParams(v []OfferParamDTO) {
+ o.Params = v
+}
+
+// GetParameterValues returns the ParameterValues field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferDTO) GetParameterValues() []ParameterValueDTO {
+ if o == nil {
+ var ret []ParameterValueDTO
+ return ret
+ }
+ return o.ParameterValues
+}
+
+// GetParameterValuesOk returns a tuple with the ParameterValues field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferDTO) GetParameterValuesOk() ([]ParameterValueDTO, bool) {
+ if o == nil || IsNil(o.ParameterValues) {
+ return nil, false
+ }
+ return o.ParameterValues, true
+}
+
+// HasParameterValues returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasParameterValues() bool {
+ if o != nil && !IsNil(o.ParameterValues) {
+ return true
+ }
+
+ return false
+}
+
+// SetParameterValues gets a reference to the given []ParameterValueDTO and assigns it to the ParameterValues field.
+func (o *UpdateOfferDTO) SetParameterValues(v []ParameterValueDTO) {
+ o.ParameterValues = v
+}
+
+// GetBasicPrice returns the BasicPrice field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetBasicPrice() PriceWithDiscountDTO {
+ if o == nil || IsNil(o.BasicPrice) {
+ var ret PriceWithDiscountDTO
+ return ret
+ }
+ return *o.BasicPrice
+}
+
+// GetBasicPriceOk returns a tuple with the BasicPrice field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetBasicPriceOk() (*PriceWithDiscountDTO, bool) {
+ if o == nil || IsNil(o.BasicPrice) {
+ return nil, false
+ }
+ return o.BasicPrice, true
+}
+
+// HasBasicPrice returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasBasicPrice() bool {
+ if o != nil && !IsNil(o.BasicPrice) {
+ return true
+ }
+
+ return false
+}
+
+// SetBasicPrice gets a reference to the given PriceWithDiscountDTO and assigns it to the BasicPrice field.
+func (o *UpdateOfferDTO) SetBasicPrice(v PriceWithDiscountDTO) {
+ o.BasicPrice = &v
+}
+
+// GetPurchasePrice returns the PurchasePrice field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetPurchasePrice() BasePriceDTO {
+ if o == nil || IsNil(o.PurchasePrice) {
+ var ret BasePriceDTO
+ return ret
+ }
+ return *o.PurchasePrice
+}
+
+// GetPurchasePriceOk returns a tuple with the PurchasePrice field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetPurchasePriceOk() (*BasePriceDTO, bool) {
+ if o == nil || IsNil(o.PurchasePrice) {
+ return nil, false
+ }
+ return o.PurchasePrice, true
+}
+
+// HasPurchasePrice returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasPurchasePrice() bool {
+ if o != nil && !IsNil(o.PurchasePrice) {
+ return true
+ }
+
+ return false
+}
+
+// SetPurchasePrice gets a reference to the given BasePriceDTO and assigns it to the PurchasePrice field.
+func (o *UpdateOfferDTO) SetPurchasePrice(v BasePriceDTO) {
+ o.PurchasePrice = &v
+}
+
+// GetAdditionalExpenses returns the AdditionalExpenses field value if set, zero value otherwise.
+func (o *UpdateOfferDTO) GetAdditionalExpenses() BasePriceDTO {
+ if o == nil || IsNil(o.AdditionalExpenses) {
+ var ret BasePriceDTO
+ return ret
+ }
+ return *o.AdditionalExpenses
+}
+
+// GetAdditionalExpensesOk returns a tuple with the AdditionalExpenses field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferDTO) GetAdditionalExpensesOk() (*BasePriceDTO, bool) {
+ if o == nil || IsNil(o.AdditionalExpenses) {
+ return nil, false
+ }
+ return o.AdditionalExpenses, true
+}
+
+// HasAdditionalExpenses returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasAdditionalExpenses() bool {
+ if o != nil && !IsNil(o.AdditionalExpenses) {
+ return true
+ }
+
+ return false
+}
+
+// SetAdditionalExpenses gets a reference to the given BasePriceDTO and assigns it to the AdditionalExpenses field.
+func (o *UpdateOfferDTO) SetAdditionalExpenses(v BasePriceDTO) {
+ o.AdditionalExpenses = &v
+}
+
+// GetFirstVideoAsCover returns the FirstVideoAsCover field value if set, zero value otherwise.
+// Deprecated
+func (o *UpdateOfferDTO) GetFirstVideoAsCover() bool {
+ if o == nil || IsNil(o.FirstVideoAsCover) {
+ var ret bool
+ return ret
+ }
+ return *o.FirstVideoAsCover
+}
+
+// GetFirstVideoAsCoverOk returns a tuple with the FirstVideoAsCover field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// Deprecated
+func (o *UpdateOfferDTO) GetFirstVideoAsCoverOk() (*bool, bool) {
+ if o == nil || IsNil(o.FirstVideoAsCover) {
+ return nil, false
+ }
+ return o.FirstVideoAsCover, true
+}
+
+// HasFirstVideoAsCover returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasFirstVideoAsCover() bool {
+ if o != nil && !IsNil(o.FirstVideoAsCover) {
+ return true
+ }
+
+ return false
+}
+
+// SetFirstVideoAsCover gets a reference to the given bool and assigns it to the FirstVideoAsCover field.
+// Deprecated
+func (o *UpdateOfferDTO) SetFirstVideoAsCover(v bool) {
+ o.FirstVideoAsCover = &v
+}
+
+// GetDeleteParameters returns the DeleteParameters field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferDTO) GetDeleteParameters() []DeleteOfferParameterType {
+ if o == nil {
+ var ret []DeleteOfferParameterType
+ return ret
+ }
+ return o.DeleteParameters
+}
+
+// GetDeleteParametersOk returns a tuple with the DeleteParameters field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferDTO) GetDeleteParametersOk() ([]DeleteOfferParameterType, bool) {
+ if o == nil || IsNil(o.DeleteParameters) {
+ return nil, false
+ }
+ return o.DeleteParameters, true
+}
+
+// HasDeleteParameters returns a boolean if a field has been set.
+func (o *UpdateOfferDTO) HasDeleteParameters() bool {
+ if o != nil && !IsNil(o.DeleteParameters) {
+ return true
+ }
+
+ return false
+}
+
+// SetDeleteParameters gets a reference to the given []DeleteOfferParameterType and assigns it to the DeleteParameters field.
+func (o *UpdateOfferDTO) SetDeleteParameters(v []DeleteOfferParameterType) {
+ o.DeleteParameters = v
+}
+
+func (o UpdateOfferDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOfferDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerId"] = o.OfferId
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.MarketCategoryId) {
+ toSerialize["marketCategoryId"] = o.MarketCategoryId
+ }
+ if !IsNil(o.Category) {
+ toSerialize["category"] = o.Category
+ }
+ if o.Pictures != nil {
+ toSerialize["pictures"] = o.Pictures
+ }
+ if o.Videos != nil {
+ toSerialize["videos"] = o.Videos
+ }
+ if o.Manuals != nil {
+ toSerialize["manuals"] = o.Manuals
+ }
+ if !IsNil(o.Vendor) {
+ toSerialize["vendor"] = o.Vendor
+ }
+ if o.Barcodes != nil {
+ toSerialize["barcodes"] = o.Barcodes
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if o.ManufacturerCountries != nil {
+ toSerialize["manufacturerCountries"] = o.ManufacturerCountries
+ }
+ if !IsNil(o.WeightDimensions) {
+ toSerialize["weightDimensions"] = o.WeightDimensions
+ }
+ if !IsNil(o.VendorCode) {
+ toSerialize["vendorCode"] = o.VendorCode
+ }
+ if o.Tags != nil {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.ShelfLife) {
+ toSerialize["shelfLife"] = o.ShelfLife
+ }
+ if !IsNil(o.LifeTime) {
+ toSerialize["lifeTime"] = o.LifeTime
+ }
+ if !IsNil(o.GuaranteePeriod) {
+ toSerialize["guaranteePeriod"] = o.GuaranteePeriod
+ }
+ if !IsNil(o.CustomsCommodityCode) {
+ toSerialize["customsCommodityCode"] = o.CustomsCommodityCode
+ }
+ if o.CommodityCodes != nil {
+ toSerialize["commodityCodes"] = o.CommodityCodes
+ }
+ if o.Certificates != nil {
+ toSerialize["certificates"] = o.Certificates
+ }
+ if !IsNil(o.BoxCount) {
+ toSerialize["boxCount"] = o.BoxCount
+ }
+ if !IsNil(o.Condition) {
+ toSerialize["condition"] = o.Condition
+ }
+ if !IsNil(o.Type) {
+ toSerialize["type"] = o.Type
+ }
+ if !IsNil(o.Downloadable) {
+ toSerialize["downloadable"] = o.Downloadable
+ }
+ if !IsNil(o.Adult) {
+ toSerialize["adult"] = o.Adult
+ }
+ if !IsNil(o.Age) {
+ toSerialize["age"] = o.Age
+ }
+ if o.Params != nil {
+ toSerialize["params"] = o.Params
+ }
+ if o.ParameterValues != nil {
+ toSerialize["parameterValues"] = o.ParameterValues
+ }
+ if !IsNil(o.BasicPrice) {
+ toSerialize["basicPrice"] = o.BasicPrice
+ }
+ if !IsNil(o.PurchasePrice) {
+ toSerialize["purchasePrice"] = o.PurchasePrice
+ }
+ if !IsNil(o.AdditionalExpenses) {
+ toSerialize["additionalExpenses"] = o.AdditionalExpenses
+ }
+ if !IsNil(o.FirstVideoAsCover) {
+ toSerialize["firstVideoAsCover"] = o.FirstVideoAsCover
+ }
+ if o.DeleteParameters != nil {
+ toSerialize["deleteParameters"] = o.DeleteParameters
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOfferDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOfferDTO := _UpdateOfferDTO{}
+
+ err = json.Unmarshal(data, &varUpdateOfferDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOfferDTO(varUpdateOfferDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "marketCategoryId")
+ delete(additionalProperties, "category")
+ delete(additionalProperties, "pictures")
+ delete(additionalProperties, "videos")
+ delete(additionalProperties, "manuals")
+ delete(additionalProperties, "vendor")
+ delete(additionalProperties, "barcodes")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "manufacturerCountries")
+ delete(additionalProperties, "weightDimensions")
+ delete(additionalProperties, "vendorCode")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "shelfLife")
+ delete(additionalProperties, "lifeTime")
+ delete(additionalProperties, "guaranteePeriod")
+ delete(additionalProperties, "customsCommodityCode")
+ delete(additionalProperties, "commodityCodes")
+ delete(additionalProperties, "certificates")
+ delete(additionalProperties, "boxCount")
+ delete(additionalProperties, "condition")
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "downloadable")
+ delete(additionalProperties, "adult")
+ delete(additionalProperties, "age")
+ delete(additionalProperties, "params")
+ delete(additionalProperties, "parameterValues")
+ delete(additionalProperties, "basicPrice")
+ delete(additionalProperties, "purchasePrice")
+ delete(additionalProperties, "additionalExpenses")
+ delete(additionalProperties, "firstVideoAsCover")
+ delete(additionalProperties, "deleteParameters")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOfferDTO struct {
+ value *UpdateOfferDTO
+ isSet bool
+}
+
+func (v NullableUpdateOfferDTO) Get() *UpdateOfferDTO {
+ return v.value
+}
+
+func (v *NullableUpdateOfferDTO) Set(val *UpdateOfferDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOfferDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOfferDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOfferDTO(val *UpdateOfferDTO) *NullableUpdateOfferDTO {
+ return &NullableUpdateOfferDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateOfferDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOfferDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_offer_mapping_dto.go b/pkg/api/yandex/ymclient/model_update_offer_mapping_dto.go
new file mode 100644
index 0000000..ce72af2
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_offer_mapping_dto.go
@@ -0,0 +1,203 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOfferMappingDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOfferMappingDTO{}
+
+// UpdateOfferMappingDTO Информация о товаре.
+type UpdateOfferMappingDTO struct {
+ Offer UpdateOfferDTO `json:"offer"`
+ Mapping *UpdateMappingDTO `json:"mapping,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOfferMappingDTO UpdateOfferMappingDTO
+
+// NewUpdateOfferMappingDTO instantiates a new UpdateOfferMappingDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOfferMappingDTO(offer UpdateOfferDTO) *UpdateOfferMappingDTO {
+ this := UpdateOfferMappingDTO{}
+ this.Offer = offer
+ return &this
+}
+
+// NewUpdateOfferMappingDTOWithDefaults instantiates a new UpdateOfferMappingDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOfferMappingDTOWithDefaults() *UpdateOfferMappingDTO {
+ this := UpdateOfferMappingDTO{}
+ return &this
+}
+
+// GetOffer returns the Offer field value
+func (o *UpdateOfferMappingDTO) GetOffer() UpdateOfferDTO {
+ if o == nil {
+ var ret UpdateOfferDTO
+ return ret
+ }
+
+ return o.Offer
+}
+
+// GetOfferOk returns a tuple with the Offer field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferMappingDTO) GetOfferOk() (*UpdateOfferDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Offer, true
+}
+
+// SetOffer sets field value
+func (o *UpdateOfferMappingDTO) SetOffer(v UpdateOfferDTO) {
+ o.Offer = v
+}
+
+// GetMapping returns the Mapping field value if set, zero value otherwise.
+func (o *UpdateOfferMappingDTO) GetMapping() UpdateMappingDTO {
+ if o == nil || IsNil(o.Mapping) {
+ var ret UpdateMappingDTO
+ return ret
+ }
+ return *o.Mapping
+}
+
+// GetMappingOk returns a tuple with the Mapping field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferMappingDTO) GetMappingOk() (*UpdateMappingDTO, bool) {
+ if o == nil || IsNil(o.Mapping) {
+ return nil, false
+ }
+ return o.Mapping, true
+}
+
+// HasMapping returns a boolean if a field has been set.
+func (o *UpdateOfferMappingDTO) HasMapping() bool {
+ if o != nil && !IsNil(o.Mapping) {
+ return true
+ }
+
+ return false
+}
+
+// SetMapping gets a reference to the given UpdateMappingDTO and assigns it to the Mapping field.
+func (o *UpdateOfferMappingDTO) SetMapping(v UpdateMappingDTO) {
+ o.Mapping = &v
+}
+
+func (o UpdateOfferMappingDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOfferMappingDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offer"] = o.Offer
+ if !IsNil(o.Mapping) {
+ toSerialize["mapping"] = o.Mapping
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOfferMappingDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offer",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOfferMappingDTO := _UpdateOfferMappingDTO{}
+
+ err = json.Unmarshal(data, &varUpdateOfferMappingDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOfferMappingDTO(varUpdateOfferMappingDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offer")
+ delete(additionalProperties, "mapping")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOfferMappingDTO struct {
+ value *UpdateOfferMappingDTO
+ isSet bool
+}
+
+func (v NullableUpdateOfferMappingDTO) Get() *UpdateOfferMappingDTO {
+ return v.value
+}
+
+func (v *NullableUpdateOfferMappingDTO) Set(val *UpdateOfferMappingDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOfferMappingDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOfferMappingDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOfferMappingDTO(val *UpdateOfferMappingDTO) *NullableUpdateOfferMappingDTO {
+ return &NullableUpdateOfferMappingDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateOfferMappingDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOfferMappingDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_offer_mapping_entry_dto.go b/pkg/api/yandex/ymclient/model_update_offer_mapping_entry_dto.go
new file mode 100644
index 0000000..4cd5141
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_offer_mapping_entry_dto.go
@@ -0,0 +1,264 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdateOfferMappingEntryDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOfferMappingEntryDTO{}
+
+// UpdateOfferMappingEntryDTO Список товаров.
+type UpdateOfferMappingEntryDTO struct {
+ Mapping *OfferMappingDTO `json:"mapping,omitempty"`
+ AwaitingModerationMapping *OfferMappingDTO `json:"awaitingModerationMapping,omitempty"`
+ RejectedMapping *OfferMappingDTO `json:"rejectedMapping,omitempty"`
+ Offer *UpdateMappingsOfferDTO `json:"offer,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOfferMappingEntryDTO UpdateOfferMappingEntryDTO
+
+// NewUpdateOfferMappingEntryDTO instantiates a new UpdateOfferMappingEntryDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOfferMappingEntryDTO() *UpdateOfferMappingEntryDTO {
+ this := UpdateOfferMappingEntryDTO{}
+ return &this
+}
+
+// NewUpdateOfferMappingEntryDTOWithDefaults instantiates a new UpdateOfferMappingEntryDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOfferMappingEntryDTOWithDefaults() *UpdateOfferMappingEntryDTO {
+ this := UpdateOfferMappingEntryDTO{}
+ return &this
+}
+
+// GetMapping returns the Mapping field value if set, zero value otherwise.
+func (o *UpdateOfferMappingEntryDTO) GetMapping() OfferMappingDTO {
+ if o == nil || IsNil(o.Mapping) {
+ var ret OfferMappingDTO
+ return ret
+ }
+ return *o.Mapping
+}
+
+// GetMappingOk returns a tuple with the Mapping field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferMappingEntryDTO) GetMappingOk() (*OfferMappingDTO, bool) {
+ if o == nil || IsNil(o.Mapping) {
+ return nil, false
+ }
+ return o.Mapping, true
+}
+
+// HasMapping returns a boolean if a field has been set.
+func (o *UpdateOfferMappingEntryDTO) HasMapping() bool {
+ if o != nil && !IsNil(o.Mapping) {
+ return true
+ }
+
+ return false
+}
+
+// SetMapping gets a reference to the given OfferMappingDTO and assigns it to the Mapping field.
+func (o *UpdateOfferMappingEntryDTO) SetMapping(v OfferMappingDTO) {
+ o.Mapping = &v
+}
+
+// GetAwaitingModerationMapping returns the AwaitingModerationMapping field value if set, zero value otherwise.
+func (o *UpdateOfferMappingEntryDTO) GetAwaitingModerationMapping() OfferMappingDTO {
+ if o == nil || IsNil(o.AwaitingModerationMapping) {
+ var ret OfferMappingDTO
+ return ret
+ }
+ return *o.AwaitingModerationMapping
+}
+
+// GetAwaitingModerationMappingOk returns a tuple with the AwaitingModerationMapping field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferMappingEntryDTO) GetAwaitingModerationMappingOk() (*OfferMappingDTO, bool) {
+ if o == nil || IsNil(o.AwaitingModerationMapping) {
+ return nil, false
+ }
+ return o.AwaitingModerationMapping, true
+}
+
+// HasAwaitingModerationMapping returns a boolean if a field has been set.
+func (o *UpdateOfferMappingEntryDTO) HasAwaitingModerationMapping() bool {
+ if o != nil && !IsNil(o.AwaitingModerationMapping) {
+ return true
+ }
+
+ return false
+}
+
+// SetAwaitingModerationMapping gets a reference to the given OfferMappingDTO and assigns it to the AwaitingModerationMapping field.
+func (o *UpdateOfferMappingEntryDTO) SetAwaitingModerationMapping(v OfferMappingDTO) {
+ o.AwaitingModerationMapping = &v
+}
+
+// GetRejectedMapping returns the RejectedMapping field value if set, zero value otherwise.
+func (o *UpdateOfferMappingEntryDTO) GetRejectedMapping() OfferMappingDTO {
+ if o == nil || IsNil(o.RejectedMapping) {
+ var ret OfferMappingDTO
+ return ret
+ }
+ return *o.RejectedMapping
+}
+
+// GetRejectedMappingOk returns a tuple with the RejectedMapping field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferMappingEntryDTO) GetRejectedMappingOk() (*OfferMappingDTO, bool) {
+ if o == nil || IsNil(o.RejectedMapping) {
+ return nil, false
+ }
+ return o.RejectedMapping, true
+}
+
+// HasRejectedMapping returns a boolean if a field has been set.
+func (o *UpdateOfferMappingEntryDTO) HasRejectedMapping() bool {
+ if o != nil && !IsNil(o.RejectedMapping) {
+ return true
+ }
+
+ return false
+}
+
+// SetRejectedMapping gets a reference to the given OfferMappingDTO and assigns it to the RejectedMapping field.
+func (o *UpdateOfferMappingEntryDTO) SetRejectedMapping(v OfferMappingDTO) {
+ o.RejectedMapping = &v
+}
+
+// GetOffer returns the Offer field value if set, zero value otherwise.
+func (o *UpdateOfferMappingEntryDTO) GetOffer() UpdateMappingsOfferDTO {
+ if o == nil || IsNil(o.Offer) {
+ var ret UpdateMappingsOfferDTO
+ return ret
+ }
+ return *o.Offer
+}
+
+// GetOfferOk returns a tuple with the Offer field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferMappingEntryDTO) GetOfferOk() (*UpdateMappingsOfferDTO, bool) {
+ if o == nil || IsNil(o.Offer) {
+ return nil, false
+ }
+ return o.Offer, true
+}
+
+// HasOffer returns a boolean if a field has been set.
+func (o *UpdateOfferMappingEntryDTO) HasOffer() bool {
+ if o != nil && !IsNil(o.Offer) {
+ return true
+ }
+
+ return false
+}
+
+// SetOffer gets a reference to the given UpdateMappingsOfferDTO and assigns it to the Offer field.
+func (o *UpdateOfferMappingEntryDTO) SetOffer(v UpdateMappingsOfferDTO) {
+ o.Offer = &v
+}
+
+func (o UpdateOfferMappingEntryDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOfferMappingEntryDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Mapping) {
+ toSerialize["mapping"] = o.Mapping
+ }
+ if !IsNil(o.AwaitingModerationMapping) {
+ toSerialize["awaitingModerationMapping"] = o.AwaitingModerationMapping
+ }
+ if !IsNil(o.RejectedMapping) {
+ toSerialize["rejectedMapping"] = o.RejectedMapping
+ }
+ if !IsNil(o.Offer) {
+ toSerialize["offer"] = o.Offer
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOfferMappingEntryDTO) UnmarshalJSON(data []byte) (err error) {
+ varUpdateOfferMappingEntryDTO := _UpdateOfferMappingEntryDTO{}
+
+ err = json.Unmarshal(data, &varUpdateOfferMappingEntryDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOfferMappingEntryDTO(varUpdateOfferMappingEntryDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "mapping")
+ delete(additionalProperties, "awaitingModerationMapping")
+ delete(additionalProperties, "rejectedMapping")
+ delete(additionalProperties, "offer")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOfferMappingEntryDTO struct {
+ value *UpdateOfferMappingEntryDTO
+ isSet bool
+}
+
+func (v NullableUpdateOfferMappingEntryDTO) Get() *UpdateOfferMappingEntryDTO {
+ return v.value
+}
+
+func (v *NullableUpdateOfferMappingEntryDTO) Set(val *UpdateOfferMappingEntryDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOfferMappingEntryDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOfferMappingEntryDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOfferMappingEntryDTO(val *UpdateOfferMappingEntryDTO) *NullableUpdateOfferMappingEntryDTO {
+ return &NullableUpdateOfferMappingEntryDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateOfferMappingEntryDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOfferMappingEntryDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_offer_mapping_entry_request.go b/pkg/api/yandex/ymclient/model_update_offer_mapping_entry_request.go
new file mode 100644
index 0000000..45281d6
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_offer_mapping_entry_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOfferMappingEntryRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOfferMappingEntryRequest{}
+
+// UpdateOfferMappingEntryRequest Запрос на обновление товаров.
+type UpdateOfferMappingEntryRequest struct {
+ // Информация о товарах в каталоге.
+ OfferMappingEntries []UpdateOfferMappingEntryDTO `json:"offerMappingEntries"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOfferMappingEntryRequest UpdateOfferMappingEntryRequest
+
+// NewUpdateOfferMappingEntryRequest instantiates a new UpdateOfferMappingEntryRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOfferMappingEntryRequest(offerMappingEntries []UpdateOfferMappingEntryDTO) *UpdateOfferMappingEntryRequest {
+ this := UpdateOfferMappingEntryRequest{}
+ this.OfferMappingEntries = offerMappingEntries
+ return &this
+}
+
+// NewUpdateOfferMappingEntryRequestWithDefaults instantiates a new UpdateOfferMappingEntryRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOfferMappingEntryRequestWithDefaults() *UpdateOfferMappingEntryRequest {
+ this := UpdateOfferMappingEntryRequest{}
+ return &this
+}
+
+// GetOfferMappingEntries returns the OfferMappingEntries field value
+func (o *UpdateOfferMappingEntryRequest) GetOfferMappingEntries() []UpdateOfferMappingEntryDTO {
+ if o == nil {
+ var ret []UpdateOfferMappingEntryDTO
+ return ret
+ }
+
+ return o.OfferMappingEntries
+}
+
+// GetOfferMappingEntriesOk returns a tuple with the OfferMappingEntries field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferMappingEntryRequest) GetOfferMappingEntriesOk() ([]UpdateOfferMappingEntryDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OfferMappingEntries, true
+}
+
+// SetOfferMappingEntries sets field value
+func (o *UpdateOfferMappingEntryRequest) SetOfferMappingEntries(v []UpdateOfferMappingEntryDTO) {
+ o.OfferMappingEntries = v
+}
+
+func (o UpdateOfferMappingEntryRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOfferMappingEntryRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerMappingEntries"] = o.OfferMappingEntries
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOfferMappingEntryRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerMappingEntries",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOfferMappingEntryRequest := _UpdateOfferMappingEntryRequest{}
+
+ err = json.Unmarshal(data, &varUpdateOfferMappingEntryRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOfferMappingEntryRequest(varUpdateOfferMappingEntryRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerMappingEntries")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOfferMappingEntryRequest struct {
+ value *UpdateOfferMappingEntryRequest
+ isSet bool
+}
+
+func (v NullableUpdateOfferMappingEntryRequest) Get() *UpdateOfferMappingEntryRequest {
+ return v.value
+}
+
+func (v *NullableUpdateOfferMappingEntryRequest) Set(val *UpdateOfferMappingEntryRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOfferMappingEntryRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOfferMappingEntryRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOfferMappingEntryRequest(val *UpdateOfferMappingEntryRequest) *NullableUpdateOfferMappingEntryRequest {
+ return &NullableUpdateOfferMappingEntryRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateOfferMappingEntryRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOfferMappingEntryRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_offer_mapping_result_dto.go b/pkg/api/yandex/ymclient/model_update_offer_mapping_result_dto.go
new file mode 100644
index 0000000..28cd83e
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_offer_mapping_result_dto.go
@@ -0,0 +1,245 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOfferMappingResultDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOfferMappingResultDTO{}
+
+// UpdateOfferMappingResultDTO Ошибки и предупреждения, которые появились из-за переданных характеристик.
+type UpdateOfferMappingResultDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Ошибки. Если хотя бы по одному товару есть ошибка, информация в каталоге не обновится по всем переданным товарам.
+ Errors []OfferMappingErrorDTO `json:"errors,omitempty"`
+ // Предупреждения. Информация в каталоге обновится.
+ Warnings []OfferMappingErrorDTO `json:"warnings,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOfferMappingResultDTO UpdateOfferMappingResultDTO
+
+// NewUpdateOfferMappingResultDTO instantiates a new UpdateOfferMappingResultDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOfferMappingResultDTO(offerId string) *UpdateOfferMappingResultDTO {
+ this := UpdateOfferMappingResultDTO{}
+ this.OfferId = offerId
+ return &this
+}
+
+// NewUpdateOfferMappingResultDTOWithDefaults instantiates a new UpdateOfferMappingResultDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOfferMappingResultDTOWithDefaults() *UpdateOfferMappingResultDTO {
+ this := UpdateOfferMappingResultDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value
+func (o *UpdateOfferMappingResultDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferMappingResultDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *UpdateOfferMappingResultDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetErrors returns the Errors field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferMappingResultDTO) GetErrors() []OfferMappingErrorDTO {
+ if o == nil {
+ var ret []OfferMappingErrorDTO
+ return ret
+ }
+ return o.Errors
+}
+
+// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferMappingResultDTO) GetErrorsOk() ([]OfferMappingErrorDTO, bool) {
+ if o == nil || IsNil(o.Errors) {
+ return nil, false
+ }
+ return o.Errors, true
+}
+
+// HasErrors returns a boolean if a field has been set.
+func (o *UpdateOfferMappingResultDTO) HasErrors() bool {
+ if o != nil && !IsNil(o.Errors) {
+ return true
+ }
+
+ return false
+}
+
+// SetErrors gets a reference to the given []OfferMappingErrorDTO and assigns it to the Errors field.
+func (o *UpdateOfferMappingResultDTO) SetErrors(v []OfferMappingErrorDTO) {
+ o.Errors = v
+}
+
+// GetWarnings returns the Warnings field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferMappingResultDTO) GetWarnings() []OfferMappingErrorDTO {
+ if o == nil {
+ var ret []OfferMappingErrorDTO
+ return ret
+ }
+ return o.Warnings
+}
+
+// GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferMappingResultDTO) GetWarningsOk() ([]OfferMappingErrorDTO, bool) {
+ if o == nil || IsNil(o.Warnings) {
+ return nil, false
+ }
+ return o.Warnings, true
+}
+
+// HasWarnings returns a boolean if a field has been set.
+func (o *UpdateOfferMappingResultDTO) HasWarnings() bool {
+ if o != nil && !IsNil(o.Warnings) {
+ return true
+ }
+
+ return false
+}
+
+// SetWarnings gets a reference to the given []OfferMappingErrorDTO and assigns it to the Warnings field.
+func (o *UpdateOfferMappingResultDTO) SetWarnings(v []OfferMappingErrorDTO) {
+ o.Warnings = v
+}
+
+func (o UpdateOfferMappingResultDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOfferMappingResultDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerId"] = o.OfferId
+ if o.Errors != nil {
+ toSerialize["errors"] = o.Errors
+ }
+ if o.Warnings != nil {
+ toSerialize["warnings"] = o.Warnings
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOfferMappingResultDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOfferMappingResultDTO := _UpdateOfferMappingResultDTO{}
+
+ err = json.Unmarshal(data, &varUpdateOfferMappingResultDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOfferMappingResultDTO(varUpdateOfferMappingResultDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "errors")
+ delete(additionalProperties, "warnings")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOfferMappingResultDTO struct {
+ value *UpdateOfferMappingResultDTO
+ isSet bool
+}
+
+func (v NullableUpdateOfferMappingResultDTO) Get() *UpdateOfferMappingResultDTO {
+ return v.value
+}
+
+func (v *NullableUpdateOfferMappingResultDTO) Set(val *UpdateOfferMappingResultDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOfferMappingResultDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOfferMappingResultDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOfferMappingResultDTO(val *UpdateOfferMappingResultDTO) *NullableUpdateOfferMappingResultDTO {
+ return &NullableUpdateOfferMappingResultDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateOfferMappingResultDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOfferMappingResultDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_offer_mappings_request.go b/pkg/api/yandex/ymclient/model_update_offer_mappings_request.go
new file mode 100644
index 0000000..691da45
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_offer_mappings_request.go
@@ -0,0 +1,205 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOfferMappingsRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOfferMappingsRequest{}
+
+// UpdateOfferMappingsRequest struct for UpdateOfferMappingsRequest
+type UpdateOfferMappingsRequest struct {
+ // Список товаров, которые нужно добавить или обновить. {% note warning \"Скоро мы уменьшим максимальное количество товаров в запросе\" %} Уже сейчас не передавайте больше 100. {% endnote %}
+ OfferMappings []UpdateOfferMappingDTO `json:"offerMappings"`
+ // Будут ли использоваться только переданные вами данные о товарах. Значение по умолчанию: `false`. Чтобы удалить данные, которые добавил Маркет, передайте значение `true`.
+ OnlyPartnerMediaContent *bool `json:"onlyPartnerMediaContent,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOfferMappingsRequest UpdateOfferMappingsRequest
+
+// NewUpdateOfferMappingsRequest instantiates a new UpdateOfferMappingsRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOfferMappingsRequest(offerMappings []UpdateOfferMappingDTO) *UpdateOfferMappingsRequest {
+ this := UpdateOfferMappingsRequest{}
+ this.OfferMappings = offerMappings
+ return &this
+}
+
+// NewUpdateOfferMappingsRequestWithDefaults instantiates a new UpdateOfferMappingsRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOfferMappingsRequestWithDefaults() *UpdateOfferMappingsRequest {
+ this := UpdateOfferMappingsRequest{}
+ return &this
+}
+
+// GetOfferMappings returns the OfferMappings field value
+func (o *UpdateOfferMappingsRequest) GetOfferMappings() []UpdateOfferMappingDTO {
+ if o == nil {
+ var ret []UpdateOfferMappingDTO
+ return ret
+ }
+
+ return o.OfferMappings
+}
+
+// GetOfferMappingsOk returns a tuple with the OfferMappings field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferMappingsRequest) GetOfferMappingsOk() ([]UpdateOfferMappingDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OfferMappings, true
+}
+
+// SetOfferMappings sets field value
+func (o *UpdateOfferMappingsRequest) SetOfferMappings(v []UpdateOfferMappingDTO) {
+ o.OfferMappings = v
+}
+
+// GetOnlyPartnerMediaContent returns the OnlyPartnerMediaContent field value if set, zero value otherwise.
+func (o *UpdateOfferMappingsRequest) GetOnlyPartnerMediaContent() bool {
+ if o == nil || IsNil(o.OnlyPartnerMediaContent) {
+ var ret bool
+ return ret
+ }
+ return *o.OnlyPartnerMediaContent
+}
+
+// GetOnlyPartnerMediaContentOk returns a tuple with the OnlyPartnerMediaContent field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferMappingsRequest) GetOnlyPartnerMediaContentOk() (*bool, bool) {
+ if o == nil || IsNil(o.OnlyPartnerMediaContent) {
+ return nil, false
+ }
+ return o.OnlyPartnerMediaContent, true
+}
+
+// HasOnlyPartnerMediaContent returns a boolean if a field has been set.
+func (o *UpdateOfferMappingsRequest) HasOnlyPartnerMediaContent() bool {
+ if o != nil && !IsNil(o.OnlyPartnerMediaContent) {
+ return true
+ }
+
+ return false
+}
+
+// SetOnlyPartnerMediaContent gets a reference to the given bool and assigns it to the OnlyPartnerMediaContent field.
+func (o *UpdateOfferMappingsRequest) SetOnlyPartnerMediaContent(v bool) {
+ o.OnlyPartnerMediaContent = &v
+}
+
+func (o UpdateOfferMappingsRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOfferMappingsRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerMappings"] = o.OfferMappings
+ if !IsNil(o.OnlyPartnerMediaContent) {
+ toSerialize["onlyPartnerMediaContent"] = o.OnlyPartnerMediaContent
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOfferMappingsRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerMappings",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOfferMappingsRequest := _UpdateOfferMappingsRequest{}
+
+ err = json.Unmarshal(data, &varUpdateOfferMappingsRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOfferMappingsRequest(varUpdateOfferMappingsRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerMappings")
+ delete(additionalProperties, "onlyPartnerMediaContent")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOfferMappingsRequest struct {
+ value *UpdateOfferMappingsRequest
+ isSet bool
+}
+
+func (v NullableUpdateOfferMappingsRequest) Get() *UpdateOfferMappingsRequest {
+ return v.value
+}
+
+func (v *NullableUpdateOfferMappingsRequest) Set(val *UpdateOfferMappingsRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOfferMappingsRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOfferMappingsRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOfferMappingsRequest(val *UpdateOfferMappingsRequest) *NullableUpdateOfferMappingsRequest {
+ return &NullableUpdateOfferMappingsRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateOfferMappingsRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOfferMappingsRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_offer_mappings_response.go b/pkg/api/yandex/ymclient/model_update_offer_mappings_response.go
new file mode 100644
index 0000000..d926672
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_offer_mappings_response.go
@@ -0,0 +1,192 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdateOfferMappingsResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOfferMappingsResponse{}
+
+// UpdateOfferMappingsResponse Описывает проблемы, возникшие при сохранении товара.
+type UpdateOfferMappingsResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ // Ошибки и предупреждения, которые появились при обработке списка характеристик. Каждый элемент списка соответствует одному товару. Если ошибок и предупреждений нет, поле не передается.
+ Results []UpdateOfferMappingResultDTO `json:"results,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOfferMappingsResponse UpdateOfferMappingsResponse
+
+// NewUpdateOfferMappingsResponse instantiates a new UpdateOfferMappingsResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOfferMappingsResponse() *UpdateOfferMappingsResponse {
+ this := UpdateOfferMappingsResponse{}
+ return &this
+}
+
+// NewUpdateOfferMappingsResponseWithDefaults instantiates a new UpdateOfferMappingsResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOfferMappingsResponseWithDefaults() *UpdateOfferMappingsResponse {
+ this := UpdateOfferMappingsResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *UpdateOfferMappingsResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOfferMappingsResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *UpdateOfferMappingsResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *UpdateOfferMappingsResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdateOfferMappingsResponse) GetResults() []UpdateOfferMappingResultDTO {
+ if o == nil {
+ var ret []UpdateOfferMappingResultDTO
+ return ret
+ }
+ return o.Results
+}
+
+// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdateOfferMappingsResponse) GetResultsOk() ([]UpdateOfferMappingResultDTO, bool) {
+ if o == nil || IsNil(o.Results) {
+ return nil, false
+ }
+ return o.Results, true
+}
+
+// HasResults returns a boolean if a field has been set.
+func (o *UpdateOfferMappingsResponse) HasResults() bool {
+ if o != nil && !IsNil(o.Results) {
+ return true
+ }
+
+ return false
+}
+
+// SetResults gets a reference to the given []UpdateOfferMappingResultDTO and assigns it to the Results field.
+func (o *UpdateOfferMappingsResponse) SetResults(v []UpdateOfferMappingResultDTO) {
+ o.Results = v
+}
+
+func (o UpdateOfferMappingsResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOfferMappingsResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if o.Results != nil {
+ toSerialize["results"] = o.Results
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOfferMappingsResponse) UnmarshalJSON(data []byte) (err error) {
+ varUpdateOfferMappingsResponse := _UpdateOfferMappingsResponse{}
+
+ err = json.Unmarshal(data, &varUpdateOfferMappingsResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOfferMappingsResponse(varUpdateOfferMappingsResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "results")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOfferMappingsResponse struct {
+ value *UpdateOfferMappingsResponse
+ isSet bool
+}
+
+func (v NullableUpdateOfferMappingsResponse) Get() *UpdateOfferMappingsResponse {
+ return v.value
+}
+
+func (v *NullableUpdateOfferMappingsResponse) Set(val *UpdateOfferMappingsResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOfferMappingsResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOfferMappingsResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOfferMappingsResponse(val *UpdateOfferMappingsResponse) *NullableUpdateOfferMappingsResponse {
+ return &NullableUpdateOfferMappingsResponse{value: val, isSet: true}
+}
+
+func (v NullableUpdateOfferMappingsResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOfferMappingsResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_order_item_request.go b/pkg/api/yandex/ymclient/model_update_order_item_request.go
new file mode 100644
index 0000000..20973d7
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_order_item_request.go
@@ -0,0 +1,204 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOrderItemRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOrderItemRequest{}
+
+// UpdateOrderItemRequest Запрос на обновление состава заказа.
+type UpdateOrderItemRequest struct {
+ // Список товаров в заказе. Если магазин не передал информацию о товаре во входных данных, он будет удален из заказа. Обязательный параметр.
+ Items []OrderItemModificationDTO `json:"items"`
+ Reason *OrderItemsModificationRequestReasonType `json:"reason,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOrderItemRequest UpdateOrderItemRequest
+
+// NewUpdateOrderItemRequest instantiates a new UpdateOrderItemRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOrderItemRequest(items []OrderItemModificationDTO) *UpdateOrderItemRequest {
+ this := UpdateOrderItemRequest{}
+ this.Items = items
+ return &this
+}
+
+// NewUpdateOrderItemRequestWithDefaults instantiates a new UpdateOrderItemRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOrderItemRequestWithDefaults() *UpdateOrderItemRequest {
+ this := UpdateOrderItemRequest{}
+ return &this
+}
+
+// GetItems returns the Items field value
+func (o *UpdateOrderItemRequest) GetItems() []OrderItemModificationDTO {
+ if o == nil {
+ var ret []OrderItemModificationDTO
+ return ret
+ }
+
+ return o.Items
+}
+
+// GetItemsOk returns a tuple with the Items field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderItemRequest) GetItemsOk() ([]OrderItemModificationDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Items, true
+}
+
+// SetItems sets field value
+func (o *UpdateOrderItemRequest) SetItems(v []OrderItemModificationDTO) {
+ o.Items = v
+}
+
+// GetReason returns the Reason field value if set, zero value otherwise.
+func (o *UpdateOrderItemRequest) GetReason() OrderItemsModificationRequestReasonType {
+ if o == nil || IsNil(o.Reason) {
+ var ret OrderItemsModificationRequestReasonType
+ return ret
+ }
+ return *o.Reason
+}
+
+// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderItemRequest) GetReasonOk() (*OrderItemsModificationRequestReasonType, bool) {
+ if o == nil || IsNil(o.Reason) {
+ return nil, false
+ }
+ return o.Reason, true
+}
+
+// HasReason returns a boolean if a field has been set.
+func (o *UpdateOrderItemRequest) HasReason() bool {
+ if o != nil && !IsNil(o.Reason) {
+ return true
+ }
+
+ return false
+}
+
+// SetReason gets a reference to the given OrderItemsModificationRequestReasonType and assigns it to the Reason field.
+func (o *UpdateOrderItemRequest) SetReason(v OrderItemsModificationRequestReasonType) {
+ o.Reason = &v
+}
+
+func (o UpdateOrderItemRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOrderItemRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["items"] = o.Items
+ if !IsNil(o.Reason) {
+ toSerialize["reason"] = o.Reason
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOrderItemRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "items",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOrderItemRequest := _UpdateOrderItemRequest{}
+
+ err = json.Unmarshal(data, &varUpdateOrderItemRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOrderItemRequest(varUpdateOrderItemRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "items")
+ delete(additionalProperties, "reason")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOrderItemRequest struct {
+ value *UpdateOrderItemRequest
+ isSet bool
+}
+
+func (v NullableUpdateOrderItemRequest) Get() *UpdateOrderItemRequest {
+ return v.value
+}
+
+func (v *NullableUpdateOrderItemRequest) Set(val *UpdateOrderItemRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOrderItemRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOrderItemRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOrderItemRequest(val *UpdateOrderItemRequest) *NullableUpdateOrderItemRequest {
+ return &NullableUpdateOrderItemRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateOrderItemRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOrderItemRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_order_status_dto.go b/pkg/api/yandex/ymclient/model_update_order_status_dto.go
new file mode 100644
index 0000000..1e06c5b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_order_status_dto.go
@@ -0,0 +1,303 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdateOrderStatusDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOrderStatusDTO{}
+
+// UpdateOrderStatusDTO Список заказов.
+type UpdateOrderStatusDTO struct {
+ // Идентификатор заказа.
+ Id *int64 `json:"id,omitempty"`
+ Status *OrderStatusType `json:"status,omitempty"`
+ Substatus *OrderSubstatusType `json:"substatus,omitempty"`
+ UpdateStatus *OrderUpdateStatusType `json:"updateStatus,omitempty"`
+ // Ошибка при изменении статуса заказа. Содержит описание ошибки и идентификатор заказа. Возвращается, если параметр `updateStatus` принимает значение `ERROR`.
+ ErrorDetails *string `json:"errorDetails,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOrderStatusDTO UpdateOrderStatusDTO
+
+// NewUpdateOrderStatusDTO instantiates a new UpdateOrderStatusDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOrderStatusDTO() *UpdateOrderStatusDTO {
+ this := UpdateOrderStatusDTO{}
+ return &this
+}
+
+// NewUpdateOrderStatusDTOWithDefaults instantiates a new UpdateOrderStatusDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOrderStatusDTOWithDefaults() *UpdateOrderStatusDTO {
+ this := UpdateOrderStatusDTO{}
+ return &this
+}
+
+// GetId returns the Id field value if set, zero value otherwise.
+func (o *UpdateOrderStatusDTO) GetId() int64 {
+ if o == nil || IsNil(o.Id) {
+ var ret int64
+ return ret
+ }
+ return *o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStatusDTO) GetIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.Id) {
+ return nil, false
+ }
+ return o.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *UpdateOrderStatusDTO) HasId() bool {
+ if o != nil && !IsNil(o.Id) {
+ return true
+ }
+
+ return false
+}
+
+// SetId gets a reference to the given int64 and assigns it to the Id field.
+func (o *UpdateOrderStatusDTO) SetId(v int64) {
+ o.Id = &v
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *UpdateOrderStatusDTO) GetStatus() OrderStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret OrderStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStatusDTO) GetStatusOk() (*OrderStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *UpdateOrderStatusDTO) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given OrderStatusType and assigns it to the Status field.
+func (o *UpdateOrderStatusDTO) SetStatus(v OrderStatusType) {
+ o.Status = &v
+}
+
+// GetSubstatus returns the Substatus field value if set, zero value otherwise.
+func (o *UpdateOrderStatusDTO) GetSubstatus() OrderSubstatusType {
+ if o == nil || IsNil(o.Substatus) {
+ var ret OrderSubstatusType
+ return ret
+ }
+ return *o.Substatus
+}
+
+// GetSubstatusOk returns a tuple with the Substatus field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStatusDTO) GetSubstatusOk() (*OrderSubstatusType, bool) {
+ if o == nil || IsNil(o.Substatus) {
+ return nil, false
+ }
+ return o.Substatus, true
+}
+
+// HasSubstatus returns a boolean if a field has been set.
+func (o *UpdateOrderStatusDTO) HasSubstatus() bool {
+ if o != nil && !IsNil(o.Substatus) {
+ return true
+ }
+
+ return false
+}
+
+// SetSubstatus gets a reference to the given OrderSubstatusType and assigns it to the Substatus field.
+func (o *UpdateOrderStatusDTO) SetSubstatus(v OrderSubstatusType) {
+ o.Substatus = &v
+}
+
+// GetUpdateStatus returns the UpdateStatus field value if set, zero value otherwise.
+func (o *UpdateOrderStatusDTO) GetUpdateStatus() OrderUpdateStatusType {
+ if o == nil || IsNil(o.UpdateStatus) {
+ var ret OrderUpdateStatusType
+ return ret
+ }
+ return *o.UpdateStatus
+}
+
+// GetUpdateStatusOk returns a tuple with the UpdateStatus field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStatusDTO) GetUpdateStatusOk() (*OrderUpdateStatusType, bool) {
+ if o == nil || IsNil(o.UpdateStatus) {
+ return nil, false
+ }
+ return o.UpdateStatus, true
+}
+
+// HasUpdateStatus returns a boolean if a field has been set.
+func (o *UpdateOrderStatusDTO) HasUpdateStatus() bool {
+ if o != nil && !IsNil(o.UpdateStatus) {
+ return true
+ }
+
+ return false
+}
+
+// SetUpdateStatus gets a reference to the given OrderUpdateStatusType and assigns it to the UpdateStatus field.
+func (o *UpdateOrderStatusDTO) SetUpdateStatus(v OrderUpdateStatusType) {
+ o.UpdateStatus = &v
+}
+
+// GetErrorDetails returns the ErrorDetails field value if set, zero value otherwise.
+func (o *UpdateOrderStatusDTO) GetErrorDetails() string {
+ if o == nil || IsNil(o.ErrorDetails) {
+ var ret string
+ return ret
+ }
+ return *o.ErrorDetails
+}
+
+// GetErrorDetailsOk returns a tuple with the ErrorDetails field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStatusDTO) GetErrorDetailsOk() (*string, bool) {
+ if o == nil || IsNil(o.ErrorDetails) {
+ return nil, false
+ }
+ return o.ErrorDetails, true
+}
+
+// HasErrorDetails returns a boolean if a field has been set.
+func (o *UpdateOrderStatusDTO) HasErrorDetails() bool {
+ if o != nil && !IsNil(o.ErrorDetails) {
+ return true
+ }
+
+ return false
+}
+
+// SetErrorDetails gets a reference to the given string and assigns it to the ErrorDetails field.
+func (o *UpdateOrderStatusDTO) SetErrorDetails(v string) {
+ o.ErrorDetails = &v
+}
+
+func (o UpdateOrderStatusDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOrderStatusDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Id) {
+ toSerialize["id"] = o.Id
+ }
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Substatus) {
+ toSerialize["substatus"] = o.Substatus
+ }
+ if !IsNil(o.UpdateStatus) {
+ toSerialize["updateStatus"] = o.UpdateStatus
+ }
+ if !IsNil(o.ErrorDetails) {
+ toSerialize["errorDetails"] = o.ErrorDetails
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOrderStatusDTO) UnmarshalJSON(data []byte) (err error) {
+ varUpdateOrderStatusDTO := _UpdateOrderStatusDTO{}
+
+ err = json.Unmarshal(data, &varUpdateOrderStatusDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOrderStatusDTO(varUpdateOrderStatusDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "substatus")
+ delete(additionalProperties, "updateStatus")
+ delete(additionalProperties, "errorDetails")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOrderStatusDTO struct {
+ value *UpdateOrderStatusDTO
+ isSet bool
+}
+
+func (v NullableUpdateOrderStatusDTO) Get() *UpdateOrderStatusDTO {
+ return v.value
+}
+
+func (v *NullableUpdateOrderStatusDTO) Set(val *UpdateOrderStatusDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOrderStatusDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOrderStatusDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOrderStatusDTO(val *UpdateOrderStatusDTO) *NullableUpdateOrderStatusDTO {
+ return &NullableUpdateOrderStatusDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateOrderStatusDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOrderStatusDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_order_status_request.go b/pkg/api/yandex/ymclient/model_update_order_status_request.go
new file mode 100644
index 0000000..67c3fa1
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_order_status_request.go
@@ -0,0 +1,166 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOrderStatusRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOrderStatusRequest{}
+
+// UpdateOrderStatusRequest struct for UpdateOrderStatusRequest
+type UpdateOrderStatusRequest struct {
+ Order OrderStatusChangeDTO `json:"order"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOrderStatusRequest UpdateOrderStatusRequest
+
+// NewUpdateOrderStatusRequest instantiates a new UpdateOrderStatusRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOrderStatusRequest(order OrderStatusChangeDTO) *UpdateOrderStatusRequest {
+ this := UpdateOrderStatusRequest{}
+ this.Order = order
+ return &this
+}
+
+// NewUpdateOrderStatusRequestWithDefaults instantiates a new UpdateOrderStatusRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOrderStatusRequestWithDefaults() *UpdateOrderStatusRequest {
+ this := UpdateOrderStatusRequest{}
+ return &this
+}
+
+// GetOrder returns the Order field value
+func (o *UpdateOrderStatusRequest) GetOrder() OrderStatusChangeDTO {
+ if o == nil {
+ var ret OrderStatusChangeDTO
+ return ret
+ }
+
+ return o.Order
+}
+
+// GetOrderOk returns a tuple with the Order field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStatusRequest) GetOrderOk() (*OrderStatusChangeDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Order, true
+}
+
+// SetOrder sets field value
+func (o *UpdateOrderStatusRequest) SetOrder(v OrderStatusChangeDTO) {
+ o.Order = v
+}
+
+func (o UpdateOrderStatusRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOrderStatusRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["order"] = o.Order
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOrderStatusRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "order",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOrderStatusRequest := _UpdateOrderStatusRequest{}
+
+ err = json.Unmarshal(data, &varUpdateOrderStatusRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOrderStatusRequest(varUpdateOrderStatusRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "order")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOrderStatusRequest struct {
+ value *UpdateOrderStatusRequest
+ isSet bool
+}
+
+func (v NullableUpdateOrderStatusRequest) Get() *UpdateOrderStatusRequest {
+ return v.value
+}
+
+func (v *NullableUpdateOrderStatusRequest) Set(val *UpdateOrderStatusRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOrderStatusRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOrderStatusRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOrderStatusRequest(val *UpdateOrderStatusRequest) *NullableUpdateOrderStatusRequest {
+ return &NullableUpdateOrderStatusRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateOrderStatusRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOrderStatusRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_order_status_response.go b/pkg/api/yandex/ymclient/model_update_order_status_response.go
new file mode 100644
index 0000000..f8b437a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_order_status_response.go
@@ -0,0 +1,153 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdateOrderStatusResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOrderStatusResponse{}
+
+// UpdateOrderStatusResponse Информация об изменении статуса заказа.
+type UpdateOrderStatusResponse struct {
+ Order *OrderDTO `json:"order,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOrderStatusResponse UpdateOrderStatusResponse
+
+// NewUpdateOrderStatusResponse instantiates a new UpdateOrderStatusResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOrderStatusResponse() *UpdateOrderStatusResponse {
+ this := UpdateOrderStatusResponse{}
+ return &this
+}
+
+// NewUpdateOrderStatusResponseWithDefaults instantiates a new UpdateOrderStatusResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOrderStatusResponseWithDefaults() *UpdateOrderStatusResponse {
+ this := UpdateOrderStatusResponse{}
+ return &this
+}
+
+// GetOrder returns the Order field value if set, zero value otherwise.
+func (o *UpdateOrderStatusResponse) GetOrder() OrderDTO {
+ if o == nil || IsNil(o.Order) {
+ var ret OrderDTO
+ return ret
+ }
+ return *o.Order
+}
+
+// GetOrderOk returns a tuple with the Order field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStatusResponse) GetOrderOk() (*OrderDTO, bool) {
+ if o == nil || IsNil(o.Order) {
+ return nil, false
+ }
+ return o.Order, true
+}
+
+// HasOrder returns a boolean if a field has been set.
+func (o *UpdateOrderStatusResponse) HasOrder() bool {
+ if o != nil && !IsNil(o.Order) {
+ return true
+ }
+
+ return false
+}
+
+// SetOrder gets a reference to the given OrderDTO and assigns it to the Order field.
+func (o *UpdateOrderStatusResponse) SetOrder(v OrderDTO) {
+ o.Order = &v
+}
+
+func (o UpdateOrderStatusResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOrderStatusResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Order) {
+ toSerialize["order"] = o.Order
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOrderStatusResponse) UnmarshalJSON(data []byte) (err error) {
+ varUpdateOrderStatusResponse := _UpdateOrderStatusResponse{}
+
+ err = json.Unmarshal(data, &varUpdateOrderStatusResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOrderStatusResponse(varUpdateOrderStatusResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "order")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOrderStatusResponse struct {
+ value *UpdateOrderStatusResponse
+ isSet bool
+}
+
+func (v NullableUpdateOrderStatusResponse) Get() *UpdateOrderStatusResponse {
+ return v.value
+}
+
+func (v *NullableUpdateOrderStatusResponse) Set(val *UpdateOrderStatusResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOrderStatusResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOrderStatusResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOrderStatusResponse(val *UpdateOrderStatusResponse) *NullableUpdateOrderStatusResponse {
+ return &NullableUpdateOrderStatusResponse{value: val, isSet: true}
+}
+
+func (v NullableUpdateOrderStatusResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOrderStatusResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_order_statuses_dto.go b/pkg/api/yandex/ymclient/model_update_order_statuses_dto.go
new file mode 100644
index 0000000..8945999
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_order_statuses_dto.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOrderStatusesDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOrderStatusesDTO{}
+
+// UpdateOrderStatusesDTO Список заказов, статус которых обновился.
+type UpdateOrderStatusesDTO struct {
+ // Список с обновленными заказами.
+ Orders []UpdateOrderStatusDTO `json:"orders"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOrderStatusesDTO UpdateOrderStatusesDTO
+
+// NewUpdateOrderStatusesDTO instantiates a new UpdateOrderStatusesDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOrderStatusesDTO(orders []UpdateOrderStatusDTO) *UpdateOrderStatusesDTO {
+ this := UpdateOrderStatusesDTO{}
+ this.Orders = orders
+ return &this
+}
+
+// NewUpdateOrderStatusesDTOWithDefaults instantiates a new UpdateOrderStatusesDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOrderStatusesDTOWithDefaults() *UpdateOrderStatusesDTO {
+ this := UpdateOrderStatusesDTO{}
+ return &this
+}
+
+// GetOrders returns the Orders field value
+func (o *UpdateOrderStatusesDTO) GetOrders() []UpdateOrderStatusDTO {
+ if o == nil {
+ var ret []UpdateOrderStatusDTO
+ return ret
+ }
+
+ return o.Orders
+}
+
+// GetOrdersOk returns a tuple with the Orders field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStatusesDTO) GetOrdersOk() ([]UpdateOrderStatusDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Orders, true
+}
+
+// SetOrders sets field value
+func (o *UpdateOrderStatusesDTO) SetOrders(v []UpdateOrderStatusDTO) {
+ o.Orders = v
+}
+
+func (o UpdateOrderStatusesDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOrderStatusesDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["orders"] = o.Orders
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOrderStatusesDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "orders",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOrderStatusesDTO := _UpdateOrderStatusesDTO{}
+
+ err = json.Unmarshal(data, &varUpdateOrderStatusesDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOrderStatusesDTO(varUpdateOrderStatusesDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "orders")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOrderStatusesDTO struct {
+ value *UpdateOrderStatusesDTO
+ isSet bool
+}
+
+func (v NullableUpdateOrderStatusesDTO) Get() *UpdateOrderStatusesDTO {
+ return v.value
+}
+
+func (v *NullableUpdateOrderStatusesDTO) Set(val *UpdateOrderStatusesDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOrderStatusesDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOrderStatusesDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOrderStatusesDTO(val *UpdateOrderStatusesDTO) *NullableUpdateOrderStatusesDTO {
+ return &NullableUpdateOrderStatusesDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateOrderStatusesDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOrderStatusesDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_order_statuses_request.go b/pkg/api/yandex/ymclient/model_update_order_statuses_request.go
new file mode 100644
index 0000000..c9173a6
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_order_statuses_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOrderStatusesRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOrderStatusesRequest{}
+
+// UpdateOrderStatusesRequest Список заказов.
+type UpdateOrderStatusesRequest struct {
+ // Список заказов.
+ Orders []OrderStateDTO `json:"orders"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOrderStatusesRequest UpdateOrderStatusesRequest
+
+// NewUpdateOrderStatusesRequest instantiates a new UpdateOrderStatusesRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOrderStatusesRequest(orders []OrderStateDTO) *UpdateOrderStatusesRequest {
+ this := UpdateOrderStatusesRequest{}
+ this.Orders = orders
+ return &this
+}
+
+// NewUpdateOrderStatusesRequestWithDefaults instantiates a new UpdateOrderStatusesRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOrderStatusesRequestWithDefaults() *UpdateOrderStatusesRequest {
+ this := UpdateOrderStatusesRequest{}
+ return &this
+}
+
+// GetOrders returns the Orders field value
+func (o *UpdateOrderStatusesRequest) GetOrders() []OrderStateDTO {
+ if o == nil {
+ var ret []OrderStateDTO
+ return ret
+ }
+
+ return o.Orders
+}
+
+// GetOrdersOk returns a tuple with the Orders field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStatusesRequest) GetOrdersOk() ([]OrderStateDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Orders, true
+}
+
+// SetOrders sets field value
+func (o *UpdateOrderStatusesRequest) SetOrders(v []OrderStateDTO) {
+ o.Orders = v
+}
+
+func (o UpdateOrderStatusesRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOrderStatusesRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["orders"] = o.Orders
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOrderStatusesRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "orders",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOrderStatusesRequest := _UpdateOrderStatusesRequest{}
+
+ err = json.Unmarshal(data, &varUpdateOrderStatusesRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOrderStatusesRequest(varUpdateOrderStatusesRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "orders")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOrderStatusesRequest struct {
+ value *UpdateOrderStatusesRequest
+ isSet bool
+}
+
+func (v NullableUpdateOrderStatusesRequest) Get() *UpdateOrderStatusesRequest {
+ return v.value
+}
+
+func (v *NullableUpdateOrderStatusesRequest) Set(val *UpdateOrderStatusesRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOrderStatusesRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOrderStatusesRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOrderStatusesRequest(val *UpdateOrderStatusesRequest) *NullableUpdateOrderStatusesRequest {
+ return &NullableUpdateOrderStatusesRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateOrderStatusesRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOrderStatusesRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_order_statuses_response.go b/pkg/api/yandex/ymclient/model_update_order_statuses_response.go
new file mode 100644
index 0000000..31cde9a
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_order_statuses_response.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdateOrderStatusesResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOrderStatusesResponse{}
+
+// UpdateOrderStatusesResponse struct for UpdateOrderStatusesResponse
+type UpdateOrderStatusesResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ Result *UpdateOrderStatusesDTO `json:"result,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOrderStatusesResponse UpdateOrderStatusesResponse
+
+// NewUpdateOrderStatusesResponse instantiates a new UpdateOrderStatusesResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOrderStatusesResponse() *UpdateOrderStatusesResponse {
+ this := UpdateOrderStatusesResponse{}
+ return &this
+}
+
+// NewUpdateOrderStatusesResponseWithDefaults instantiates a new UpdateOrderStatusesResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOrderStatusesResponseWithDefaults() *UpdateOrderStatusesResponse {
+ this := UpdateOrderStatusesResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *UpdateOrderStatusesResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStatusesResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *UpdateOrderStatusesResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *UpdateOrderStatusesResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *UpdateOrderStatusesResponse) GetResult() UpdateOrderStatusesDTO {
+ if o == nil || IsNil(o.Result) {
+ var ret UpdateOrderStatusesDTO
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStatusesResponse) GetResultOk() (*UpdateOrderStatusesDTO, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *UpdateOrderStatusesResponse) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given UpdateOrderStatusesDTO and assigns it to the Result field.
+func (o *UpdateOrderStatusesResponse) SetResult(v UpdateOrderStatusesDTO) {
+ o.Result = &v
+}
+
+func (o UpdateOrderStatusesResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOrderStatusesResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOrderStatusesResponse) UnmarshalJSON(data []byte) (err error) {
+ varUpdateOrderStatusesResponse := _UpdateOrderStatusesResponse{}
+
+ err = json.Unmarshal(data, &varUpdateOrderStatusesResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOrderStatusesResponse(varUpdateOrderStatusesResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "result")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOrderStatusesResponse struct {
+ value *UpdateOrderStatusesResponse
+ isSet bool
+}
+
+func (v NullableUpdateOrderStatusesResponse) Get() *UpdateOrderStatusesResponse {
+ return v.value
+}
+
+func (v *NullableUpdateOrderStatusesResponse) Set(val *UpdateOrderStatusesResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOrderStatusesResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOrderStatusesResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOrderStatusesResponse(val *UpdateOrderStatusesResponse) *NullableUpdateOrderStatusesResponse {
+ return &NullableUpdateOrderStatusesResponse{value: val, isSet: true}
+}
+
+func (v NullableUpdateOrderStatusesResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOrderStatusesResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_order_storage_limit_request.go b/pkg/api/yandex/ymclient/model_update_order_storage_limit_request.go
new file mode 100644
index 0000000..34c8bb0
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_order_storage_limit_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOrderStorageLimitRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOrderStorageLimitRequest{}
+
+// UpdateOrderStorageLimitRequest Запрос на обновление срока хранения заказа в ПВЗ.
+type UpdateOrderStorageLimitRequest struct {
+ // Новая дата, до которой заказ будет храниться в пункте выдачи. Срок хранения можно увеличить не больше, чем на 30 дней. Формат даты: `ГГГГ-ММ-ДД`.
+ NewDate string `json:"newDate"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOrderStorageLimitRequest UpdateOrderStorageLimitRequest
+
+// NewUpdateOrderStorageLimitRequest instantiates a new UpdateOrderStorageLimitRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOrderStorageLimitRequest(newDate string) *UpdateOrderStorageLimitRequest {
+ this := UpdateOrderStorageLimitRequest{}
+ this.NewDate = newDate
+ return &this
+}
+
+// NewUpdateOrderStorageLimitRequestWithDefaults instantiates a new UpdateOrderStorageLimitRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOrderStorageLimitRequestWithDefaults() *UpdateOrderStorageLimitRequest {
+ this := UpdateOrderStorageLimitRequest{}
+ return &this
+}
+
+// GetNewDate returns the NewDate field value
+func (o *UpdateOrderStorageLimitRequest) GetNewDate() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.NewDate
+}
+
+// GetNewDateOk returns a tuple with the NewDate field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOrderStorageLimitRequest) GetNewDateOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.NewDate, true
+}
+
+// SetNewDate sets field value
+func (o *UpdateOrderStorageLimitRequest) SetNewDate(v string) {
+ o.NewDate = v
+}
+
+func (o UpdateOrderStorageLimitRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOrderStorageLimitRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["newDate"] = o.NewDate
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOrderStorageLimitRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "newDate",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOrderStorageLimitRequest := _UpdateOrderStorageLimitRequest{}
+
+ err = json.Unmarshal(data, &varUpdateOrderStorageLimitRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOrderStorageLimitRequest(varUpdateOrderStorageLimitRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "newDate")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOrderStorageLimitRequest struct {
+ value *UpdateOrderStorageLimitRequest
+ isSet bool
+}
+
+func (v NullableUpdateOrderStorageLimitRequest) Get() *UpdateOrderStorageLimitRequest {
+ return v.value
+}
+
+func (v *NullableUpdateOrderStorageLimitRequest) Set(val *UpdateOrderStorageLimitRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOrderStorageLimitRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOrderStorageLimitRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOrderStorageLimitRequest(val *UpdateOrderStorageLimitRequest) *NullableUpdateOrderStorageLimitRequest {
+ return &NullableUpdateOrderStorageLimitRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateOrderStorageLimitRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOrderStorageLimitRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_outlet_license_request.go b/pkg/api/yandex/ymclient/model_update_outlet_license_request.go
new file mode 100644
index 0000000..8530dff
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_outlet_license_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateOutletLicenseRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateOutletLicenseRequest{}
+
+// UpdateOutletLicenseRequest Запрос на создание или изменение лицензий для точек продаж.
+type UpdateOutletLicenseRequest struct {
+ // Список лицензий. Обязательный параметр, должен содержать информацию хотя бы об одной лицензии.
+ Licenses []OutletLicenseDTO `json:"licenses"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateOutletLicenseRequest UpdateOutletLicenseRequest
+
+// NewUpdateOutletLicenseRequest instantiates a new UpdateOutletLicenseRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateOutletLicenseRequest(licenses []OutletLicenseDTO) *UpdateOutletLicenseRequest {
+ this := UpdateOutletLicenseRequest{}
+ this.Licenses = licenses
+ return &this
+}
+
+// NewUpdateOutletLicenseRequestWithDefaults instantiates a new UpdateOutletLicenseRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateOutletLicenseRequestWithDefaults() *UpdateOutletLicenseRequest {
+ this := UpdateOutletLicenseRequest{}
+ return &this
+}
+
+// GetLicenses returns the Licenses field value
+func (o *UpdateOutletLicenseRequest) GetLicenses() []OutletLicenseDTO {
+ if o == nil {
+ var ret []OutletLicenseDTO
+ return ret
+ }
+
+ return o.Licenses
+}
+
+// GetLicensesOk returns a tuple with the Licenses field value
+// and a boolean to check if the value has been set.
+func (o *UpdateOutletLicenseRequest) GetLicensesOk() ([]OutletLicenseDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Licenses, true
+}
+
+// SetLicenses sets field value
+func (o *UpdateOutletLicenseRequest) SetLicenses(v []OutletLicenseDTO) {
+ o.Licenses = v
+}
+
+func (o UpdateOutletLicenseRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateOutletLicenseRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["licenses"] = o.Licenses
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateOutletLicenseRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "licenses",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateOutletLicenseRequest := _UpdateOutletLicenseRequest{}
+
+ err = json.Unmarshal(data, &varUpdateOutletLicenseRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateOutletLicenseRequest(varUpdateOutletLicenseRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "licenses")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateOutletLicenseRequest struct {
+ value *UpdateOutletLicenseRequest
+ isSet bool
+}
+
+func (v NullableUpdateOutletLicenseRequest) Get() *UpdateOutletLicenseRequest {
+ return v.value
+}
+
+func (v *NullableUpdateOutletLicenseRequest) Set(val *UpdateOutletLicenseRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateOutletLicenseRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateOutletLicenseRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateOutletLicenseRequest(val *UpdateOutletLicenseRequest) *NullableUpdateOutletLicenseRequest {
+ return &NullableUpdateOutletLicenseRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateOutletLicenseRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateOutletLicenseRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_prices_request.go b/pkg/api/yandex/ymclient/model_update_prices_request.go
new file mode 100644
index 0000000..26a7a6f
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_prices_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdatePricesRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdatePricesRequest{}
+
+// UpdatePricesRequest Запрос на установку цен на товары.
+type UpdatePricesRequest struct {
+ // Список товаров.
+ Offers []OfferPriceDTO `json:"offers"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdatePricesRequest UpdatePricesRequest
+
+// NewUpdatePricesRequest instantiates a new UpdatePricesRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdatePricesRequest(offers []OfferPriceDTO) *UpdatePricesRequest {
+ this := UpdatePricesRequest{}
+ this.Offers = offers
+ return &this
+}
+
+// NewUpdatePricesRequestWithDefaults instantiates a new UpdatePricesRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdatePricesRequestWithDefaults() *UpdatePricesRequest {
+ this := UpdatePricesRequest{}
+ return &this
+}
+
+// GetOffers returns the Offers field value
+func (o *UpdatePricesRequest) GetOffers() []OfferPriceDTO {
+ if o == nil {
+ var ret []OfferPriceDTO
+ return ret
+ }
+
+ return o.Offers
+}
+
+// GetOffersOk returns a tuple with the Offers field value
+// and a boolean to check if the value has been set.
+func (o *UpdatePricesRequest) GetOffersOk() ([]OfferPriceDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Offers, true
+}
+
+// SetOffers sets field value
+func (o *UpdatePricesRequest) SetOffers(v []OfferPriceDTO) {
+ o.Offers = v
+}
+
+func (o UpdatePricesRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdatePricesRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offers"] = o.Offers
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdatePricesRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offers",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdatePricesRequest := _UpdatePricesRequest{}
+
+ err = json.Unmarshal(data, &varUpdatePricesRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdatePricesRequest(varUpdatePricesRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offers")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdatePricesRequest struct {
+ value *UpdatePricesRequest
+ isSet bool
+}
+
+func (v NullableUpdatePricesRequest) Get() *UpdatePricesRequest {
+ return v.value
+}
+
+func (v *NullableUpdatePricesRequest) Set(val *UpdatePricesRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdatePricesRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdatePricesRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdatePricesRequest(val *UpdatePricesRequest) *NullableUpdatePricesRequest {
+ return &NullableUpdatePricesRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdatePricesRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdatePricesRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_promo_offer_discount_params_dto.go b/pkg/api/yandex/ymclient/model_update_promo_offer_discount_params_dto.go
new file mode 100644
index 0000000..c2cbe82
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_promo_offer_discount_params_dto.go
@@ -0,0 +1,192 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdatePromoOfferDiscountParamsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdatePromoOfferDiscountParamsDTO{}
+
+// UpdatePromoOfferDiscountParamsDTO Параметры товара в акции с типом `DIRECT_DISCOUNT` или `BLUE_FLASH`. Обязательный параметр для акций с этими типами.
+type UpdatePromoOfferDiscountParamsDTO struct {
+ // Зачеркнутая цена — та, по которой товар продавался до акции. Указывается в рублях. Число должно быть целым.
+ Price *int64 `json:"price,omitempty"`
+ // Цена по акции — та, по которой вы хотите продавать товар. Указывается в рублях. Число должно быть целым.
+ PromoPrice *int64 `json:"promoPrice,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdatePromoOfferDiscountParamsDTO UpdatePromoOfferDiscountParamsDTO
+
+// NewUpdatePromoOfferDiscountParamsDTO instantiates a new UpdatePromoOfferDiscountParamsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdatePromoOfferDiscountParamsDTO() *UpdatePromoOfferDiscountParamsDTO {
+ this := UpdatePromoOfferDiscountParamsDTO{}
+ return &this
+}
+
+// NewUpdatePromoOfferDiscountParamsDTOWithDefaults instantiates a new UpdatePromoOfferDiscountParamsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdatePromoOfferDiscountParamsDTOWithDefaults() *UpdatePromoOfferDiscountParamsDTO {
+ this := UpdatePromoOfferDiscountParamsDTO{}
+ return &this
+}
+
+// GetPrice returns the Price field value if set, zero value otherwise.
+func (o *UpdatePromoOfferDiscountParamsDTO) GetPrice() int64 {
+ if o == nil || IsNil(o.Price) {
+ var ret int64
+ return ret
+ }
+ return *o.Price
+}
+
+// GetPriceOk returns a tuple with the Price field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdatePromoOfferDiscountParamsDTO) GetPriceOk() (*int64, bool) {
+ if o == nil || IsNil(o.Price) {
+ return nil, false
+ }
+ return o.Price, true
+}
+
+// HasPrice returns a boolean if a field has been set.
+func (o *UpdatePromoOfferDiscountParamsDTO) HasPrice() bool {
+ if o != nil && !IsNil(o.Price) {
+ return true
+ }
+
+ return false
+}
+
+// SetPrice gets a reference to the given int64 and assigns it to the Price field.
+func (o *UpdatePromoOfferDiscountParamsDTO) SetPrice(v int64) {
+ o.Price = &v
+}
+
+// GetPromoPrice returns the PromoPrice field value if set, zero value otherwise.
+func (o *UpdatePromoOfferDiscountParamsDTO) GetPromoPrice() int64 {
+ if o == nil || IsNil(o.PromoPrice) {
+ var ret int64
+ return ret
+ }
+ return *o.PromoPrice
+}
+
+// GetPromoPriceOk returns a tuple with the PromoPrice field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdatePromoOfferDiscountParamsDTO) GetPromoPriceOk() (*int64, bool) {
+ if o == nil || IsNil(o.PromoPrice) {
+ return nil, false
+ }
+ return o.PromoPrice, true
+}
+
+// HasPromoPrice returns a boolean if a field has been set.
+func (o *UpdatePromoOfferDiscountParamsDTO) HasPromoPrice() bool {
+ if o != nil && !IsNil(o.PromoPrice) {
+ return true
+ }
+
+ return false
+}
+
+// SetPromoPrice gets a reference to the given int64 and assigns it to the PromoPrice field.
+func (o *UpdatePromoOfferDiscountParamsDTO) SetPromoPrice(v int64) {
+ o.PromoPrice = &v
+}
+
+func (o UpdatePromoOfferDiscountParamsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdatePromoOfferDiscountParamsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Price) {
+ toSerialize["price"] = o.Price
+ }
+ if !IsNil(o.PromoPrice) {
+ toSerialize["promoPrice"] = o.PromoPrice
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdatePromoOfferDiscountParamsDTO) UnmarshalJSON(data []byte) (err error) {
+ varUpdatePromoOfferDiscountParamsDTO := _UpdatePromoOfferDiscountParamsDTO{}
+
+ err = json.Unmarshal(data, &varUpdatePromoOfferDiscountParamsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdatePromoOfferDiscountParamsDTO(varUpdatePromoOfferDiscountParamsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "price")
+ delete(additionalProperties, "promoPrice")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdatePromoOfferDiscountParamsDTO struct {
+ value *UpdatePromoOfferDiscountParamsDTO
+ isSet bool
+}
+
+func (v NullableUpdatePromoOfferDiscountParamsDTO) Get() *UpdatePromoOfferDiscountParamsDTO {
+ return v.value
+}
+
+func (v *NullableUpdatePromoOfferDiscountParamsDTO) Set(val *UpdatePromoOfferDiscountParamsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdatePromoOfferDiscountParamsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdatePromoOfferDiscountParamsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdatePromoOfferDiscountParamsDTO(val *UpdatePromoOfferDiscountParamsDTO) *NullableUpdatePromoOfferDiscountParamsDTO {
+ return &NullableUpdatePromoOfferDiscountParamsDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdatePromoOfferDiscountParamsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdatePromoOfferDiscountParamsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_promo_offer_dto.go b/pkg/api/yandex/ymclient/model_update_promo_offer_dto.go
new file mode 100644
index 0000000..c6486cf
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_promo_offer_dto.go
@@ -0,0 +1,204 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdatePromoOfferDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdatePromoOfferDTO{}
+
+// UpdatePromoOfferDTO Описание товаров, которые участвуют в акции.
+type UpdatePromoOfferDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ Params *UpdatePromoOfferParamsDTO `json:"params,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdatePromoOfferDTO UpdatePromoOfferDTO
+
+// NewUpdatePromoOfferDTO instantiates a new UpdatePromoOfferDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdatePromoOfferDTO(offerId string) *UpdatePromoOfferDTO {
+ this := UpdatePromoOfferDTO{}
+ this.OfferId = offerId
+ return &this
+}
+
+// NewUpdatePromoOfferDTOWithDefaults instantiates a new UpdatePromoOfferDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdatePromoOfferDTOWithDefaults() *UpdatePromoOfferDTO {
+ this := UpdatePromoOfferDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value
+func (o *UpdatePromoOfferDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *UpdatePromoOfferDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *UpdatePromoOfferDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetParams returns the Params field value if set, zero value otherwise.
+func (o *UpdatePromoOfferDTO) GetParams() UpdatePromoOfferParamsDTO {
+ if o == nil || IsNil(o.Params) {
+ var ret UpdatePromoOfferParamsDTO
+ return ret
+ }
+ return *o.Params
+}
+
+// GetParamsOk returns a tuple with the Params field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdatePromoOfferDTO) GetParamsOk() (*UpdatePromoOfferParamsDTO, bool) {
+ if o == nil || IsNil(o.Params) {
+ return nil, false
+ }
+ return o.Params, true
+}
+
+// HasParams returns a boolean if a field has been set.
+func (o *UpdatePromoOfferDTO) HasParams() bool {
+ if o != nil && !IsNil(o.Params) {
+ return true
+ }
+
+ return false
+}
+
+// SetParams gets a reference to the given UpdatePromoOfferParamsDTO and assigns it to the Params field.
+func (o *UpdatePromoOfferDTO) SetParams(v UpdatePromoOfferParamsDTO) {
+ o.Params = &v
+}
+
+func (o UpdatePromoOfferDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdatePromoOfferDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerId"] = o.OfferId
+ if !IsNil(o.Params) {
+ toSerialize["params"] = o.Params
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdatePromoOfferDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdatePromoOfferDTO := _UpdatePromoOfferDTO{}
+
+ err = json.Unmarshal(data, &varUpdatePromoOfferDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdatePromoOfferDTO(varUpdatePromoOfferDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "params")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdatePromoOfferDTO struct {
+ value *UpdatePromoOfferDTO
+ isSet bool
+}
+
+func (v NullableUpdatePromoOfferDTO) Get() *UpdatePromoOfferDTO {
+ return v.value
+}
+
+func (v *NullableUpdatePromoOfferDTO) Set(val *UpdatePromoOfferDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdatePromoOfferDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdatePromoOfferDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdatePromoOfferDTO(val *UpdatePromoOfferDTO) *NullableUpdatePromoOfferDTO {
+ return &NullableUpdatePromoOfferDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdatePromoOfferDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdatePromoOfferDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_promo_offer_params_dto.go b/pkg/api/yandex/ymclient/model_update_promo_offer_params_dto.go
new file mode 100644
index 0000000..8500184
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_promo_offer_params_dto.go
@@ -0,0 +1,153 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdatePromoOfferParamsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdatePromoOfferParamsDTO{}
+
+// UpdatePromoOfferParamsDTO Параметры товара, который участвует в акции.
+type UpdatePromoOfferParamsDTO struct {
+ DiscountParams *UpdatePromoOfferDiscountParamsDTO `json:"discountParams,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdatePromoOfferParamsDTO UpdatePromoOfferParamsDTO
+
+// NewUpdatePromoOfferParamsDTO instantiates a new UpdatePromoOfferParamsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdatePromoOfferParamsDTO() *UpdatePromoOfferParamsDTO {
+ this := UpdatePromoOfferParamsDTO{}
+ return &this
+}
+
+// NewUpdatePromoOfferParamsDTOWithDefaults instantiates a new UpdatePromoOfferParamsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdatePromoOfferParamsDTOWithDefaults() *UpdatePromoOfferParamsDTO {
+ this := UpdatePromoOfferParamsDTO{}
+ return &this
+}
+
+// GetDiscountParams returns the DiscountParams field value if set, zero value otherwise.
+func (o *UpdatePromoOfferParamsDTO) GetDiscountParams() UpdatePromoOfferDiscountParamsDTO {
+ if o == nil || IsNil(o.DiscountParams) {
+ var ret UpdatePromoOfferDiscountParamsDTO
+ return ret
+ }
+ return *o.DiscountParams
+}
+
+// GetDiscountParamsOk returns a tuple with the DiscountParams field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdatePromoOfferParamsDTO) GetDiscountParamsOk() (*UpdatePromoOfferDiscountParamsDTO, bool) {
+ if o == nil || IsNil(o.DiscountParams) {
+ return nil, false
+ }
+ return o.DiscountParams, true
+}
+
+// HasDiscountParams returns a boolean if a field has been set.
+func (o *UpdatePromoOfferParamsDTO) HasDiscountParams() bool {
+ if o != nil && !IsNil(o.DiscountParams) {
+ return true
+ }
+
+ return false
+}
+
+// SetDiscountParams gets a reference to the given UpdatePromoOfferDiscountParamsDTO and assigns it to the DiscountParams field.
+func (o *UpdatePromoOfferParamsDTO) SetDiscountParams(v UpdatePromoOfferDiscountParamsDTO) {
+ o.DiscountParams = &v
+}
+
+func (o UpdatePromoOfferParamsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdatePromoOfferParamsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.DiscountParams) {
+ toSerialize["discountParams"] = o.DiscountParams
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdatePromoOfferParamsDTO) UnmarshalJSON(data []byte) (err error) {
+ varUpdatePromoOfferParamsDTO := _UpdatePromoOfferParamsDTO{}
+
+ err = json.Unmarshal(data, &varUpdatePromoOfferParamsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdatePromoOfferParamsDTO(varUpdatePromoOfferParamsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "discountParams")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdatePromoOfferParamsDTO struct {
+ value *UpdatePromoOfferParamsDTO
+ isSet bool
+}
+
+func (v NullableUpdatePromoOfferParamsDTO) Get() *UpdatePromoOfferParamsDTO {
+ return v.value
+}
+
+func (v *NullableUpdatePromoOfferParamsDTO) Set(val *UpdatePromoOfferParamsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdatePromoOfferParamsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdatePromoOfferParamsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdatePromoOfferParamsDTO(val *UpdatePromoOfferParamsDTO) *NullableUpdatePromoOfferParamsDTO {
+ return &NullableUpdatePromoOfferParamsDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdatePromoOfferParamsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdatePromoOfferParamsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_promo_offers_request.go b/pkg/api/yandex/ymclient/model_update_promo_offers_request.go
new file mode 100644
index 0000000..99ffa0e
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_promo_offers_request.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdatePromoOffersRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdatePromoOffersRequest{}
+
+// UpdatePromoOffersRequest Добавление товаров в акцию или обновление их параметров. Чтобы добавить товары в акцию или обновить параметры каких-то товаров, передайте их в параметре `offers`.
+type UpdatePromoOffersRequest struct {
+ // Идентификатор акции.
+ PromoId string `json:"promoId"`
+ // Товары, которые необходимо добавить в акцию или цены которых нужно изменить.
+ Offers []UpdatePromoOfferDTO `json:"offers"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdatePromoOffersRequest UpdatePromoOffersRequest
+
+// NewUpdatePromoOffersRequest instantiates a new UpdatePromoOffersRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdatePromoOffersRequest(promoId string, offers []UpdatePromoOfferDTO) *UpdatePromoOffersRequest {
+ this := UpdatePromoOffersRequest{}
+ this.PromoId = promoId
+ this.Offers = offers
+ return &this
+}
+
+// NewUpdatePromoOffersRequestWithDefaults instantiates a new UpdatePromoOffersRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdatePromoOffersRequestWithDefaults() *UpdatePromoOffersRequest {
+ this := UpdatePromoOffersRequest{}
+ return &this
+}
+
+// GetPromoId returns the PromoId field value
+func (o *UpdatePromoOffersRequest) GetPromoId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.PromoId
+}
+
+// GetPromoIdOk returns a tuple with the PromoId field value
+// and a boolean to check if the value has been set.
+func (o *UpdatePromoOffersRequest) GetPromoIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PromoId, true
+}
+
+// SetPromoId sets field value
+func (o *UpdatePromoOffersRequest) SetPromoId(v string) {
+ o.PromoId = v
+}
+
+// GetOffers returns the Offers field value
+func (o *UpdatePromoOffersRequest) GetOffers() []UpdatePromoOfferDTO {
+ if o == nil {
+ var ret []UpdatePromoOfferDTO
+ return ret
+ }
+
+ return o.Offers
+}
+
+// GetOffersOk returns a tuple with the Offers field value
+// and a boolean to check if the value has been set.
+func (o *UpdatePromoOffersRequest) GetOffersOk() ([]UpdatePromoOfferDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Offers, true
+}
+
+// SetOffers sets field value
+func (o *UpdatePromoOffersRequest) SetOffers(v []UpdatePromoOfferDTO) {
+ o.Offers = v
+}
+
+func (o UpdatePromoOffersRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdatePromoOffersRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["promoId"] = o.PromoId
+ toSerialize["offers"] = o.Offers
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdatePromoOffersRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "promoId",
+ "offers",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdatePromoOffersRequest := _UpdatePromoOffersRequest{}
+
+ err = json.Unmarshal(data, &varUpdatePromoOffersRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdatePromoOffersRequest(varUpdatePromoOffersRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "promoId")
+ delete(additionalProperties, "offers")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdatePromoOffersRequest struct {
+ value *UpdatePromoOffersRequest
+ isSet bool
+}
+
+func (v NullableUpdatePromoOffersRequest) Get() *UpdatePromoOffersRequest {
+ return v.value
+}
+
+func (v *NullableUpdatePromoOffersRequest) Set(val *UpdatePromoOffersRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdatePromoOffersRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdatePromoOffersRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdatePromoOffersRequest(val *UpdatePromoOffersRequest) *NullableUpdatePromoOffersRequest {
+ return &NullableUpdatePromoOffersRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdatePromoOffersRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdatePromoOffersRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_promo_offers_response.go b/pkg/api/yandex/ymclient/model_update_promo_offers_response.go
new file mode 100644
index 0000000..9074aaa
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_promo_offers_response.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdatePromoOffersResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdatePromoOffersResponse{}
+
+// UpdatePromoOffersResponse Результат добавления товаров в акцию.
+type UpdatePromoOffersResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ Result *UpdatePromoOffersResultDTO `json:"result,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdatePromoOffersResponse UpdatePromoOffersResponse
+
+// NewUpdatePromoOffersResponse instantiates a new UpdatePromoOffersResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdatePromoOffersResponse() *UpdatePromoOffersResponse {
+ this := UpdatePromoOffersResponse{}
+ return &this
+}
+
+// NewUpdatePromoOffersResponseWithDefaults instantiates a new UpdatePromoOffersResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdatePromoOffersResponseWithDefaults() *UpdatePromoOffersResponse {
+ this := UpdatePromoOffersResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *UpdatePromoOffersResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdatePromoOffersResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *UpdatePromoOffersResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *UpdatePromoOffersResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *UpdatePromoOffersResponse) GetResult() UpdatePromoOffersResultDTO {
+ if o == nil || IsNil(o.Result) {
+ var ret UpdatePromoOffersResultDTO
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdatePromoOffersResponse) GetResultOk() (*UpdatePromoOffersResultDTO, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *UpdatePromoOffersResponse) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given UpdatePromoOffersResultDTO and assigns it to the Result field.
+func (o *UpdatePromoOffersResponse) SetResult(v UpdatePromoOffersResultDTO) {
+ o.Result = &v
+}
+
+func (o UpdatePromoOffersResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdatePromoOffersResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdatePromoOffersResponse) UnmarshalJSON(data []byte) (err error) {
+ varUpdatePromoOffersResponse := _UpdatePromoOffersResponse{}
+
+ err = json.Unmarshal(data, &varUpdatePromoOffersResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdatePromoOffersResponse(varUpdatePromoOffersResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "result")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdatePromoOffersResponse struct {
+ value *UpdatePromoOffersResponse
+ isSet bool
+}
+
+func (v NullableUpdatePromoOffersResponse) Get() *UpdatePromoOffersResponse {
+ return v.value
+}
+
+func (v *NullableUpdatePromoOffersResponse) Set(val *UpdatePromoOffersResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdatePromoOffersResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdatePromoOffersResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdatePromoOffersResponse(val *UpdatePromoOffersResponse) *NullableUpdatePromoOffersResponse {
+ return &NullableUpdatePromoOffersResponse{value: val, isSet: true}
+}
+
+func (v NullableUpdatePromoOffersResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdatePromoOffersResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_promo_offers_result_dto.go b/pkg/api/yandex/ymclient/model_update_promo_offers_result_dto.go
new file mode 100644
index 0000000..e7b1c88
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_promo_offers_result_dto.go
@@ -0,0 +1,194 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdatePromoOffersResultDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdatePromoOffersResultDTO{}
+
+// UpdatePromoOffersResultDTO Ошибки и предупреждения, которые появились при добавлении товаров в акцию.
+type UpdatePromoOffersResultDTO struct {
+ // Изменения, которые были отклонены. Возвращается, только если есть отклоненные изменения.
+ RejectedOffers []RejectedPromoOfferUpdateDTO `json:"rejectedOffers,omitempty"`
+ // Изменения, по которым есть предупреждения. Они информируют о возможных проблемах. Информация о товарах обновится. Возвращается, только если есть предупреждения.
+ WarningOffers []WarningPromoOfferUpdateDTO `json:"warningOffers,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdatePromoOffersResultDTO UpdatePromoOffersResultDTO
+
+// NewUpdatePromoOffersResultDTO instantiates a new UpdatePromoOffersResultDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdatePromoOffersResultDTO() *UpdatePromoOffersResultDTO {
+ this := UpdatePromoOffersResultDTO{}
+ return &this
+}
+
+// NewUpdatePromoOffersResultDTOWithDefaults instantiates a new UpdatePromoOffersResultDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdatePromoOffersResultDTOWithDefaults() *UpdatePromoOffersResultDTO {
+ this := UpdatePromoOffersResultDTO{}
+ return &this
+}
+
+// GetRejectedOffers returns the RejectedOffers field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdatePromoOffersResultDTO) GetRejectedOffers() []RejectedPromoOfferUpdateDTO {
+ if o == nil {
+ var ret []RejectedPromoOfferUpdateDTO
+ return ret
+ }
+ return o.RejectedOffers
+}
+
+// GetRejectedOffersOk returns a tuple with the RejectedOffers field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdatePromoOffersResultDTO) GetRejectedOffersOk() ([]RejectedPromoOfferUpdateDTO, bool) {
+ if o == nil || IsNil(o.RejectedOffers) {
+ return nil, false
+ }
+ return o.RejectedOffers, true
+}
+
+// HasRejectedOffers returns a boolean if a field has been set.
+func (o *UpdatePromoOffersResultDTO) HasRejectedOffers() bool {
+ if o != nil && !IsNil(o.RejectedOffers) {
+ return true
+ }
+
+ return false
+}
+
+// SetRejectedOffers gets a reference to the given []RejectedPromoOfferUpdateDTO and assigns it to the RejectedOffers field.
+func (o *UpdatePromoOffersResultDTO) SetRejectedOffers(v []RejectedPromoOfferUpdateDTO) {
+ o.RejectedOffers = v
+}
+
+// GetWarningOffers returns the WarningOffers field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *UpdatePromoOffersResultDTO) GetWarningOffers() []WarningPromoOfferUpdateDTO {
+ if o == nil {
+ var ret []WarningPromoOfferUpdateDTO
+ return ret
+ }
+ return o.WarningOffers
+}
+
+// GetWarningOffersOk returns a tuple with the WarningOffers field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *UpdatePromoOffersResultDTO) GetWarningOffersOk() ([]WarningPromoOfferUpdateDTO, bool) {
+ if o == nil || IsNil(o.WarningOffers) {
+ return nil, false
+ }
+ return o.WarningOffers, true
+}
+
+// HasWarningOffers returns a boolean if a field has been set.
+func (o *UpdatePromoOffersResultDTO) HasWarningOffers() bool {
+ if o != nil && !IsNil(o.WarningOffers) {
+ return true
+ }
+
+ return false
+}
+
+// SetWarningOffers gets a reference to the given []WarningPromoOfferUpdateDTO and assigns it to the WarningOffers field.
+func (o *UpdatePromoOffersResultDTO) SetWarningOffers(v []WarningPromoOfferUpdateDTO) {
+ o.WarningOffers = v
+}
+
+func (o UpdatePromoOffersResultDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdatePromoOffersResultDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if o.RejectedOffers != nil {
+ toSerialize["rejectedOffers"] = o.RejectedOffers
+ }
+ if o.WarningOffers != nil {
+ toSerialize["warningOffers"] = o.WarningOffers
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdatePromoOffersResultDTO) UnmarshalJSON(data []byte) (err error) {
+ varUpdatePromoOffersResultDTO := _UpdatePromoOffersResultDTO{}
+
+ err = json.Unmarshal(data, &varUpdatePromoOffersResultDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdatePromoOffersResultDTO(varUpdatePromoOffersResultDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "rejectedOffers")
+ delete(additionalProperties, "warningOffers")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdatePromoOffersResultDTO struct {
+ value *UpdatePromoOffersResultDTO
+ isSet bool
+}
+
+func (v NullableUpdatePromoOffersResultDTO) Get() *UpdatePromoOffersResultDTO {
+ return v.value
+}
+
+func (v *NullableUpdatePromoOffersResultDTO) Set(val *UpdatePromoOffersResultDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdatePromoOffersResultDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdatePromoOffersResultDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdatePromoOffersResultDTO(val *UpdatePromoOffersResultDTO) *NullableUpdatePromoOffersResultDTO {
+ return &NullableUpdatePromoOffersResultDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdatePromoOffersResultDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdatePromoOffersResultDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_stock_dto.go b/pkg/api/yandex/ymclient/model_update_stock_dto.go
new file mode 100644
index 0000000..eb34031
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_stock_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateStockDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateStockDTO{}
+
+// UpdateStockDTO Информация об остатках одного товара на одном из складов.
+type UpdateStockDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ Sku string `json:"sku" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Информация об остатках товара.
+ Items []UpdateStockItemDTO `json:"items"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateStockDTO UpdateStockDTO
+
+// NewUpdateStockDTO instantiates a new UpdateStockDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateStockDTO(sku string, items []UpdateStockItemDTO) *UpdateStockDTO {
+ this := UpdateStockDTO{}
+ this.Sku = sku
+ this.Items = items
+ return &this
+}
+
+// NewUpdateStockDTOWithDefaults instantiates a new UpdateStockDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateStockDTOWithDefaults() *UpdateStockDTO {
+ this := UpdateStockDTO{}
+ return &this
+}
+
+// GetSku returns the Sku field value
+func (o *UpdateStockDTO) GetSku() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Sku
+}
+
+// GetSkuOk returns a tuple with the Sku field value
+// and a boolean to check if the value has been set.
+func (o *UpdateStockDTO) GetSkuOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Sku, true
+}
+
+// SetSku sets field value
+func (o *UpdateStockDTO) SetSku(v string) {
+ o.Sku = v
+}
+
+// GetItems returns the Items field value
+func (o *UpdateStockDTO) GetItems() []UpdateStockItemDTO {
+ if o == nil {
+ var ret []UpdateStockItemDTO
+ return ret
+ }
+
+ return o.Items
+}
+
+// GetItemsOk returns a tuple with the Items field value
+// and a boolean to check if the value has been set.
+func (o *UpdateStockDTO) GetItemsOk() ([]UpdateStockItemDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Items, true
+}
+
+// SetItems sets field value
+func (o *UpdateStockDTO) SetItems(v []UpdateStockItemDTO) {
+ o.Items = v
+}
+
+func (o UpdateStockDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateStockDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["sku"] = o.Sku
+ toSerialize["items"] = o.Items
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateStockDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "sku",
+ "items",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateStockDTO := _UpdateStockDTO{}
+
+ err = json.Unmarshal(data, &varUpdateStockDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateStockDTO(varUpdateStockDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "sku")
+ delete(additionalProperties, "items")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateStockDTO struct {
+ value *UpdateStockDTO
+ isSet bool
+}
+
+func (v NullableUpdateStockDTO) Get() *UpdateStockDTO {
+ return v.value
+}
+
+func (v *NullableUpdateStockDTO) Set(val *UpdateStockDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateStockDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateStockDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateStockDTO(val *UpdateStockDTO) *NullableUpdateStockDTO {
+ return &NullableUpdateStockDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateStockDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateStockDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_stock_item_dto.go b/pkg/api/yandex/ymclient/model_update_stock_item_dto.go
new file mode 100644
index 0000000..890002c
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_stock_item_dto.go
@@ -0,0 +1,206 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the UpdateStockItemDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateStockItemDTO{}
+
+// UpdateStockItemDTO Информация об остатках товара.
+type UpdateStockItemDTO struct {
+ // Количество доступного товара.
+ Count int64 `json:"count"`
+ // Дата и время последнего обновления информации об остатках.
Если вы не передали параметр `updatedAt`, используется текущее время.
Формат даты и времени: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC]. Например, `2017-11-21T00:42:42+03:00`.
+ UpdatedAt *time.Time `json:"updatedAt,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateStockItemDTO UpdateStockItemDTO
+
+// NewUpdateStockItemDTO instantiates a new UpdateStockItemDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateStockItemDTO(count int64) *UpdateStockItemDTO {
+ this := UpdateStockItemDTO{}
+ this.Count = count
+ return &this
+}
+
+// NewUpdateStockItemDTOWithDefaults instantiates a new UpdateStockItemDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateStockItemDTOWithDefaults() *UpdateStockItemDTO {
+ this := UpdateStockItemDTO{}
+ return &this
+}
+
+// GetCount returns the Count field value
+func (o *UpdateStockItemDTO) GetCount() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Count
+}
+
+// GetCountOk returns a tuple with the Count field value
+// and a boolean to check if the value has been set.
+func (o *UpdateStockItemDTO) GetCountOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Count, true
+}
+
+// SetCount sets field value
+func (o *UpdateStockItemDTO) SetCount(v int64) {
+ o.Count = v
+}
+
+// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
+func (o *UpdateStockItemDTO) GetUpdatedAt() time.Time {
+ if o == nil || IsNil(o.UpdatedAt) {
+ var ret time.Time
+ return ret
+ }
+ return *o.UpdatedAt
+}
+
+// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateStockItemDTO) GetUpdatedAtOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.UpdatedAt) {
+ return nil, false
+ }
+ return o.UpdatedAt, true
+}
+
+// HasUpdatedAt returns a boolean if a field has been set.
+func (o *UpdateStockItemDTO) HasUpdatedAt() bool {
+ if o != nil && !IsNil(o.UpdatedAt) {
+ return true
+ }
+
+ return false
+}
+
+// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.
+func (o *UpdateStockItemDTO) SetUpdatedAt(v time.Time) {
+ o.UpdatedAt = &v
+}
+
+func (o UpdateStockItemDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateStockItemDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["count"] = o.Count
+ if !IsNil(o.UpdatedAt) {
+ toSerialize["updatedAt"] = o.UpdatedAt
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateStockItemDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "count",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateStockItemDTO := _UpdateStockItemDTO{}
+
+ err = json.Unmarshal(data, &varUpdateStockItemDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateStockItemDTO(varUpdateStockItemDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "count")
+ delete(additionalProperties, "updatedAt")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateStockItemDTO struct {
+ value *UpdateStockItemDTO
+ isSet bool
+}
+
+func (v NullableUpdateStockItemDTO) Get() *UpdateStockItemDTO {
+ return v.value
+}
+
+func (v *NullableUpdateStockItemDTO) Set(val *UpdateStockItemDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateStockItemDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateStockItemDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateStockItemDTO(val *UpdateStockItemDTO) *NullableUpdateStockItemDTO {
+ return &NullableUpdateStockItemDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateStockItemDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateStockItemDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_stocks_request.go b/pkg/api/yandex/ymclient/model_update_stocks_request.go
new file mode 100644
index 0000000..d2e6629
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_stocks_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateStocksRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateStocksRequest{}
+
+// UpdateStocksRequest Запрос на изменение информации по остаткам товаров.
+type UpdateStocksRequest struct {
+ // Данные об остатках товаров.
+ Skus []UpdateStockDTO `json:"skus"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateStocksRequest UpdateStocksRequest
+
+// NewUpdateStocksRequest instantiates a new UpdateStocksRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateStocksRequest(skus []UpdateStockDTO) *UpdateStocksRequest {
+ this := UpdateStocksRequest{}
+ this.Skus = skus
+ return &this
+}
+
+// NewUpdateStocksRequestWithDefaults instantiates a new UpdateStocksRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateStocksRequestWithDefaults() *UpdateStocksRequest {
+ this := UpdateStocksRequest{}
+ return &this
+}
+
+// GetSkus returns the Skus field value
+func (o *UpdateStocksRequest) GetSkus() []UpdateStockDTO {
+ if o == nil {
+ var ret []UpdateStockDTO
+ return ret
+ }
+
+ return o.Skus
+}
+
+// GetSkusOk returns a tuple with the Skus field value
+// and a boolean to check if the value has been set.
+func (o *UpdateStocksRequest) GetSkusOk() ([]UpdateStockDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Skus, true
+}
+
+// SetSkus sets field value
+func (o *UpdateStocksRequest) SetSkus(v []UpdateStockDTO) {
+ o.Skus = v
+}
+
+func (o UpdateStocksRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateStocksRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["skus"] = o.Skus
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateStocksRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "skus",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateStocksRequest := _UpdateStocksRequest{}
+
+ err = json.Unmarshal(data, &varUpdateStocksRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateStocksRequest(varUpdateStocksRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "skus")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateStocksRequest struct {
+ value *UpdateStocksRequest
+ isSet bool
+}
+
+func (v NullableUpdateStocksRequest) Get() *UpdateStocksRequest {
+ return v.value
+}
+
+func (v *NullableUpdateStocksRequest) Set(val *UpdateStocksRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateStocksRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateStocksRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateStocksRequest(val *UpdateStocksRequest) *NullableUpdateStocksRequest {
+ return &NullableUpdateStocksRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateStocksRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateStocksRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_time_dto.go b/pkg/api/yandex/ymclient/model_update_time_dto.go
new file mode 100644
index 0000000..a7ea476
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_time_dto.go
@@ -0,0 +1,168 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the UpdateTimeDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateTimeDTO{}
+
+// UpdateTimeDTO Время последнего обновления.
+type UpdateTimeDTO struct {
+ // Время последнего обновления.
+ UpdatedAt time.Time `json:"updatedAt"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateTimeDTO UpdateTimeDTO
+
+// NewUpdateTimeDTO instantiates a new UpdateTimeDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateTimeDTO(updatedAt time.Time) *UpdateTimeDTO {
+ this := UpdateTimeDTO{}
+ this.UpdatedAt = updatedAt
+ return &this
+}
+
+// NewUpdateTimeDTOWithDefaults instantiates a new UpdateTimeDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateTimeDTOWithDefaults() *UpdateTimeDTO {
+ this := UpdateTimeDTO{}
+ return &this
+}
+
+// GetUpdatedAt returns the UpdatedAt field value
+func (o *UpdateTimeDTO) GetUpdatedAt() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.UpdatedAt
+}
+
+// GetUpdatedAtOk returns a tuple with the UpdatedAt field value
+// and a boolean to check if the value has been set.
+func (o *UpdateTimeDTO) GetUpdatedAtOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdatedAt, true
+}
+
+// SetUpdatedAt sets field value
+func (o *UpdateTimeDTO) SetUpdatedAt(v time.Time) {
+ o.UpdatedAt = v
+}
+
+func (o UpdateTimeDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateTimeDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["updatedAt"] = o.UpdatedAt
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateTimeDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "updatedAt",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateTimeDTO := _UpdateTimeDTO{}
+
+ err = json.Unmarshal(data, &varUpdateTimeDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateTimeDTO(varUpdateTimeDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "updatedAt")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateTimeDTO struct {
+ value *UpdateTimeDTO
+ isSet bool
+}
+
+func (v NullableUpdateTimeDTO) Get() *UpdateTimeDTO {
+ return v.value
+}
+
+func (v *NullableUpdateTimeDTO) Set(val *UpdateTimeDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateTimeDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateTimeDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateTimeDTO(val *UpdateTimeDTO) *NullableUpdateTimeDTO {
+ return &NullableUpdateTimeDTO{value: val, isSet: true}
+}
+
+func (v NullableUpdateTimeDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateTimeDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_warehouse_status_request.go b/pkg/api/yandex/ymclient/model_update_warehouse_status_request.go
new file mode 100644
index 0000000..d1ee7c4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_warehouse_status_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the UpdateWarehouseStatusRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateWarehouseStatusRequest{}
+
+// UpdateWarehouseStatusRequest Запрос на изменение статуса склада. Позволяет выключить склад или включить ранее отключенный вами склад. Если склад был отключен Маркетом, то включить его вручную с помощью этого метода не получится.
+type UpdateWarehouseStatusRequest struct {
+ // Статус склада: * `true` — включен. * `false` — отключен.
+ Enabled bool `json:"enabled"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateWarehouseStatusRequest UpdateWarehouseStatusRequest
+
+// NewUpdateWarehouseStatusRequest instantiates a new UpdateWarehouseStatusRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateWarehouseStatusRequest(enabled bool) *UpdateWarehouseStatusRequest {
+ this := UpdateWarehouseStatusRequest{}
+ this.Enabled = enabled
+ return &this
+}
+
+// NewUpdateWarehouseStatusRequestWithDefaults instantiates a new UpdateWarehouseStatusRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateWarehouseStatusRequestWithDefaults() *UpdateWarehouseStatusRequest {
+ this := UpdateWarehouseStatusRequest{}
+ return &this
+}
+
+// GetEnabled returns the Enabled field value
+func (o *UpdateWarehouseStatusRequest) GetEnabled() bool {
+ if o == nil {
+ var ret bool
+ return ret
+ }
+
+ return o.Enabled
+}
+
+// GetEnabledOk returns a tuple with the Enabled field value
+// and a boolean to check if the value has been set.
+func (o *UpdateWarehouseStatusRequest) GetEnabledOk() (*bool, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Enabled, true
+}
+
+// SetEnabled sets field value
+func (o *UpdateWarehouseStatusRequest) SetEnabled(v bool) {
+ o.Enabled = v
+}
+
+func (o UpdateWarehouseStatusRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateWarehouseStatusRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["enabled"] = o.Enabled
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateWarehouseStatusRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "enabled",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateWarehouseStatusRequest := _UpdateWarehouseStatusRequest{}
+
+ err = json.Unmarshal(data, &varUpdateWarehouseStatusRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateWarehouseStatusRequest(varUpdateWarehouseStatusRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "enabled")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateWarehouseStatusRequest struct {
+ value *UpdateWarehouseStatusRequest
+ isSet bool
+}
+
+func (v NullableUpdateWarehouseStatusRequest) Get() *UpdateWarehouseStatusRequest {
+ return v.value
+}
+
+func (v *NullableUpdateWarehouseStatusRequest) Set(val *UpdateWarehouseStatusRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateWarehouseStatusRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateWarehouseStatusRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateWarehouseStatusRequest(val *UpdateWarehouseStatusRequest) *NullableUpdateWarehouseStatusRequest {
+ return &NullableUpdateWarehouseStatusRequest{value: val, isSet: true}
+}
+
+func (v NullableUpdateWarehouseStatusRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateWarehouseStatusRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_update_warehouse_status_response.go b/pkg/api/yandex/ymclient/model_update_warehouse_status_response.go
new file mode 100644
index 0000000..c475dc6
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_update_warehouse_status_response.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the UpdateWarehouseStatusResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &UpdateWarehouseStatusResponse{}
+
+// UpdateWarehouseStatusResponse struct for UpdateWarehouseStatusResponse
+type UpdateWarehouseStatusResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ Result *WarehouseStatusDTO `json:"result,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _UpdateWarehouseStatusResponse UpdateWarehouseStatusResponse
+
+// NewUpdateWarehouseStatusResponse instantiates a new UpdateWarehouseStatusResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewUpdateWarehouseStatusResponse() *UpdateWarehouseStatusResponse {
+ this := UpdateWarehouseStatusResponse{}
+ return &this
+}
+
+// NewUpdateWarehouseStatusResponseWithDefaults instantiates a new UpdateWarehouseStatusResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewUpdateWarehouseStatusResponseWithDefaults() *UpdateWarehouseStatusResponse {
+ this := UpdateWarehouseStatusResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *UpdateWarehouseStatusResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateWarehouseStatusResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *UpdateWarehouseStatusResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *UpdateWarehouseStatusResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *UpdateWarehouseStatusResponse) GetResult() WarehouseStatusDTO {
+ if o == nil || IsNil(o.Result) {
+ var ret WarehouseStatusDTO
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *UpdateWarehouseStatusResponse) GetResultOk() (*WarehouseStatusDTO, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *UpdateWarehouseStatusResponse) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given WarehouseStatusDTO and assigns it to the Result field.
+func (o *UpdateWarehouseStatusResponse) SetResult(v WarehouseStatusDTO) {
+ o.Result = &v
+}
+
+func (o UpdateWarehouseStatusResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o UpdateWarehouseStatusResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *UpdateWarehouseStatusResponse) UnmarshalJSON(data []byte) (err error) {
+ varUpdateWarehouseStatusResponse := _UpdateWarehouseStatusResponse{}
+
+ err = json.Unmarshal(data, &varUpdateWarehouseStatusResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateWarehouseStatusResponse(varUpdateWarehouseStatusResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "result")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableUpdateWarehouseStatusResponse struct {
+ value *UpdateWarehouseStatusResponse
+ isSet bool
+}
+
+func (v NullableUpdateWarehouseStatusResponse) Get() *UpdateWarehouseStatusResponse {
+ return v.value
+}
+
+func (v *NullableUpdateWarehouseStatusResponse) Set(val *UpdateWarehouseStatusResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableUpdateWarehouseStatusResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableUpdateWarehouseStatusResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableUpdateWarehouseStatusResponse(val *UpdateWarehouseStatusResponse) *NullableUpdateWarehouseStatusResponse {
+ return &NullableUpdateWarehouseStatusResponse{value: val, isSet: true}
+}
+
+func (v NullableUpdateWarehouseStatusResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableUpdateWarehouseStatusResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_value_restriction_dto.go b/pkg/api/yandex/ymclient/model_value_restriction_dto.go
new file mode 100644
index 0000000..7e99cc7
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_value_restriction_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ValueRestrictionDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ValueRestrictionDTO{}
+
+// ValueRestrictionDTO Ограничение на возможные значения, накладываемое другой характеристикой. Если ограничивающая характеристика принимает определенное значение, список возможных значений ограничиваемой характеристики сокращается. **Пример** Характеристика **размер** сама по себе может принимать девять разных значений: `S`, `M`, `L`, `44`, `46`, `48`, `42/164`, `46/176`, `44S`. Если ограничивающая характеристика **размерная сетка** принимает значение `RU`, список возможных значений размера сокращается до `44`, `46`, `48`.
+type ValueRestrictionDTO struct {
+ // Идентификатор ограничивающей характеристики.
+ LimitingParameterId int64 `json:"limitingParameterId"`
+ // Значения ограничивающей характеристики и соответствующие допустимые значения текущей характеристики.
+ LimitedValues []OptionValuesLimitedDTO `json:"limitedValues"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ValueRestrictionDTO ValueRestrictionDTO
+
+// NewValueRestrictionDTO instantiates a new ValueRestrictionDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewValueRestrictionDTO(limitingParameterId int64, limitedValues []OptionValuesLimitedDTO) *ValueRestrictionDTO {
+ this := ValueRestrictionDTO{}
+ this.LimitingParameterId = limitingParameterId
+ this.LimitedValues = limitedValues
+ return &this
+}
+
+// NewValueRestrictionDTOWithDefaults instantiates a new ValueRestrictionDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewValueRestrictionDTOWithDefaults() *ValueRestrictionDTO {
+ this := ValueRestrictionDTO{}
+ return &this
+}
+
+// GetLimitingParameterId returns the LimitingParameterId field value
+func (o *ValueRestrictionDTO) GetLimitingParameterId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.LimitingParameterId
+}
+
+// GetLimitingParameterIdOk returns a tuple with the LimitingParameterId field value
+// and a boolean to check if the value has been set.
+func (o *ValueRestrictionDTO) GetLimitingParameterIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.LimitingParameterId, true
+}
+
+// SetLimitingParameterId sets field value
+func (o *ValueRestrictionDTO) SetLimitingParameterId(v int64) {
+ o.LimitingParameterId = v
+}
+
+// GetLimitedValues returns the LimitedValues field value
+func (o *ValueRestrictionDTO) GetLimitedValues() []OptionValuesLimitedDTO {
+ if o == nil {
+ var ret []OptionValuesLimitedDTO
+ return ret
+ }
+
+ return o.LimitedValues
+}
+
+// GetLimitedValuesOk returns a tuple with the LimitedValues field value
+// and a boolean to check if the value has been set.
+func (o *ValueRestrictionDTO) GetLimitedValuesOk() ([]OptionValuesLimitedDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LimitedValues, true
+}
+
+// SetLimitedValues sets field value
+func (o *ValueRestrictionDTO) SetLimitedValues(v []OptionValuesLimitedDTO) {
+ o.LimitedValues = v
+}
+
+func (o ValueRestrictionDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ValueRestrictionDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["limitingParameterId"] = o.LimitingParameterId
+ toSerialize["limitedValues"] = o.LimitedValues
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ValueRestrictionDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "limitingParameterId",
+ "limitedValues",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varValueRestrictionDTO := _ValueRestrictionDTO{}
+
+ err = json.Unmarshal(data, &varValueRestrictionDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ValueRestrictionDTO(varValueRestrictionDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "limitingParameterId")
+ delete(additionalProperties, "limitedValues")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableValueRestrictionDTO struct {
+ value *ValueRestrictionDTO
+ isSet bool
+}
+
+func (v NullableValueRestrictionDTO) Get() *ValueRestrictionDTO {
+ return v.value
+}
+
+func (v *NullableValueRestrictionDTO) Set(val *ValueRestrictionDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableValueRestrictionDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableValueRestrictionDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableValueRestrictionDTO(val *ValueRestrictionDTO) *NullableValueRestrictionDTO {
+ return &NullableValueRestrictionDTO{value: val, isSet: true}
+}
+
+func (v NullableValueRestrictionDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableValueRestrictionDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_verify_order_eac_request.go b/pkg/api/yandex/ymclient/model_verify_order_eac_request.go
new file mode 100644
index 0000000..79a2eab
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_verify_order_eac_request.go
@@ -0,0 +1,167 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the VerifyOrderEacRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &VerifyOrderEacRequest{}
+
+// VerifyOrderEacRequest struct for VerifyOrderEacRequest
+type VerifyOrderEacRequest struct {
+ // Код для подтверждения ЭАПП.
+ Code string `json:"code"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _VerifyOrderEacRequest VerifyOrderEacRequest
+
+// NewVerifyOrderEacRequest instantiates a new VerifyOrderEacRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewVerifyOrderEacRequest(code string) *VerifyOrderEacRequest {
+ this := VerifyOrderEacRequest{}
+ this.Code = code
+ return &this
+}
+
+// NewVerifyOrderEacRequestWithDefaults instantiates a new VerifyOrderEacRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewVerifyOrderEacRequestWithDefaults() *VerifyOrderEacRequest {
+ this := VerifyOrderEacRequest{}
+ return &this
+}
+
+// GetCode returns the Code field value
+func (o *VerifyOrderEacRequest) GetCode() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Code
+}
+
+// GetCodeOk returns a tuple with the Code field value
+// and a boolean to check if the value has been set.
+func (o *VerifyOrderEacRequest) GetCodeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Code, true
+}
+
+// SetCode sets field value
+func (o *VerifyOrderEacRequest) SetCode(v string) {
+ o.Code = v
+}
+
+func (o VerifyOrderEacRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o VerifyOrderEacRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["code"] = o.Code
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *VerifyOrderEacRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "code",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varVerifyOrderEacRequest := _VerifyOrderEacRequest{}
+
+ err = json.Unmarshal(data, &varVerifyOrderEacRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = VerifyOrderEacRequest(varVerifyOrderEacRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "code")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableVerifyOrderEacRequest struct {
+ value *VerifyOrderEacRequest
+ isSet bool
+}
+
+func (v NullableVerifyOrderEacRequest) Get() *VerifyOrderEacRequest {
+ return v.value
+}
+
+func (v *NullableVerifyOrderEacRequest) Set(val *VerifyOrderEacRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableVerifyOrderEacRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableVerifyOrderEacRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableVerifyOrderEacRequest(val *VerifyOrderEacRequest) *NullableVerifyOrderEacRequest {
+ return &NullableVerifyOrderEacRequest{value: val, isSet: true}
+}
+
+func (v NullableVerifyOrderEacRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableVerifyOrderEacRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_verify_order_eac_response.go b/pkg/api/yandex/ymclient/model_verify_order_eac_response.go
new file mode 100644
index 0000000..9fe68c5
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_verify_order_eac_response.go
@@ -0,0 +1,190 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+)
+
+// checks if the VerifyOrderEacResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &VerifyOrderEacResponse{}
+
+// VerifyOrderEacResponse struct for VerifyOrderEacResponse
+type VerifyOrderEacResponse struct {
+ Status *ApiResponseStatusType `json:"status,omitempty"`
+ Result *EacVerificationResultDTO `json:"result,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _VerifyOrderEacResponse VerifyOrderEacResponse
+
+// NewVerifyOrderEacResponse instantiates a new VerifyOrderEacResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewVerifyOrderEacResponse() *VerifyOrderEacResponse {
+ this := VerifyOrderEacResponse{}
+ return &this
+}
+
+// NewVerifyOrderEacResponseWithDefaults instantiates a new VerifyOrderEacResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewVerifyOrderEacResponseWithDefaults() *VerifyOrderEacResponse {
+ this := VerifyOrderEacResponse{}
+ return &this
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *VerifyOrderEacResponse) GetStatus() ApiResponseStatusType {
+ if o == nil || IsNil(o.Status) {
+ var ret ApiResponseStatusType
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *VerifyOrderEacResponse) GetStatusOk() (*ApiResponseStatusType, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *VerifyOrderEacResponse) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given ApiResponseStatusType and assigns it to the Status field.
+func (o *VerifyOrderEacResponse) SetStatus(v ApiResponseStatusType) {
+ o.Status = &v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *VerifyOrderEacResponse) GetResult() EacVerificationResultDTO {
+ if o == nil || IsNil(o.Result) {
+ var ret EacVerificationResultDTO
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *VerifyOrderEacResponse) GetResultOk() (*EacVerificationResultDTO, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *VerifyOrderEacResponse) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given EacVerificationResultDTO and assigns it to the Result field.
+func (o *VerifyOrderEacResponse) SetResult(v EacVerificationResultDTO) {
+ o.Result = &v
+}
+
+func (o VerifyOrderEacResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o VerifyOrderEacResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *VerifyOrderEacResponse) UnmarshalJSON(data []byte) (err error) {
+ varVerifyOrderEacResponse := _VerifyOrderEacResponse{}
+
+ err = json.Unmarshal(data, &varVerifyOrderEacResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = VerifyOrderEacResponse(varVerifyOrderEacResponse)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ delete(additionalProperties, "result")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableVerifyOrderEacResponse struct {
+ value *VerifyOrderEacResponse
+ isSet bool
+}
+
+func (v NullableVerifyOrderEacResponse) Get() *VerifyOrderEacResponse {
+ return v.value
+}
+
+func (v *NullableVerifyOrderEacResponse) Set(val *VerifyOrderEacResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableVerifyOrderEacResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableVerifyOrderEacResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableVerifyOrderEacResponse(val *VerifyOrderEacResponse) *NullableVerifyOrderEacResponse {
+ return &NullableVerifyOrderEacResponse{value: val, isSet: true}
+}
+
+func (v NullableVerifyOrderEacResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableVerifyOrderEacResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_address_dto.go b/pkg/api/yandex/ymclient/model_warehouse_address_dto.go
new file mode 100644
index 0000000..daa04d5
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_address_dto.go
@@ -0,0 +1,348 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WarehouseAddressDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WarehouseAddressDTO{}
+
+// WarehouseAddressDTO Адрес склада.
+type WarehouseAddressDTO struct {
+ // Город.
+ City string `json:"city"`
+ // Улица.
+ Street *string `json:"street,omitempty"`
+ // Номер дома.
+ Number *string `json:"number,omitempty"`
+ // Номер строения.
+ Building *string `json:"building,omitempty"`
+ // Номер корпуса.
+ Block *string `json:"block,omitempty"`
+ Gps GpsDTO `json:"gps"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WarehouseAddressDTO WarehouseAddressDTO
+
+// NewWarehouseAddressDTO instantiates a new WarehouseAddressDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWarehouseAddressDTO(city string, gps GpsDTO) *WarehouseAddressDTO {
+ this := WarehouseAddressDTO{}
+ this.City = city
+ this.Gps = gps
+ return &this
+}
+
+// NewWarehouseAddressDTOWithDefaults instantiates a new WarehouseAddressDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWarehouseAddressDTOWithDefaults() *WarehouseAddressDTO {
+ this := WarehouseAddressDTO{}
+ return &this
+}
+
+// GetCity returns the City field value
+func (o *WarehouseAddressDTO) GetCity() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.City
+}
+
+// GetCityOk returns a tuple with the City field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseAddressDTO) GetCityOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.City, true
+}
+
+// SetCity sets field value
+func (o *WarehouseAddressDTO) SetCity(v string) {
+ o.City = v
+}
+
+// GetStreet returns the Street field value if set, zero value otherwise.
+func (o *WarehouseAddressDTO) GetStreet() string {
+ if o == nil || IsNil(o.Street) {
+ var ret string
+ return ret
+ }
+ return *o.Street
+}
+
+// GetStreetOk returns a tuple with the Street field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WarehouseAddressDTO) GetStreetOk() (*string, bool) {
+ if o == nil || IsNil(o.Street) {
+ return nil, false
+ }
+ return o.Street, true
+}
+
+// HasStreet returns a boolean if a field has been set.
+func (o *WarehouseAddressDTO) HasStreet() bool {
+ if o != nil && !IsNil(o.Street) {
+ return true
+ }
+
+ return false
+}
+
+// SetStreet gets a reference to the given string and assigns it to the Street field.
+func (o *WarehouseAddressDTO) SetStreet(v string) {
+ o.Street = &v
+}
+
+// GetNumber returns the Number field value if set, zero value otherwise.
+func (o *WarehouseAddressDTO) GetNumber() string {
+ if o == nil || IsNil(o.Number) {
+ var ret string
+ return ret
+ }
+ return *o.Number
+}
+
+// GetNumberOk returns a tuple with the Number field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WarehouseAddressDTO) GetNumberOk() (*string, bool) {
+ if o == nil || IsNil(o.Number) {
+ return nil, false
+ }
+ return o.Number, true
+}
+
+// HasNumber returns a boolean if a field has been set.
+func (o *WarehouseAddressDTO) HasNumber() bool {
+ if o != nil && !IsNil(o.Number) {
+ return true
+ }
+
+ return false
+}
+
+// SetNumber gets a reference to the given string and assigns it to the Number field.
+func (o *WarehouseAddressDTO) SetNumber(v string) {
+ o.Number = &v
+}
+
+// GetBuilding returns the Building field value if set, zero value otherwise.
+func (o *WarehouseAddressDTO) GetBuilding() string {
+ if o == nil || IsNil(o.Building) {
+ var ret string
+ return ret
+ }
+ return *o.Building
+}
+
+// GetBuildingOk returns a tuple with the Building field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WarehouseAddressDTO) GetBuildingOk() (*string, bool) {
+ if o == nil || IsNil(o.Building) {
+ return nil, false
+ }
+ return o.Building, true
+}
+
+// HasBuilding returns a boolean if a field has been set.
+func (o *WarehouseAddressDTO) HasBuilding() bool {
+ if o != nil && !IsNil(o.Building) {
+ return true
+ }
+
+ return false
+}
+
+// SetBuilding gets a reference to the given string and assigns it to the Building field.
+func (o *WarehouseAddressDTO) SetBuilding(v string) {
+ o.Building = &v
+}
+
+// GetBlock returns the Block field value if set, zero value otherwise.
+func (o *WarehouseAddressDTO) GetBlock() string {
+ if o == nil || IsNil(o.Block) {
+ var ret string
+ return ret
+ }
+ return *o.Block
+}
+
+// GetBlockOk returns a tuple with the Block field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WarehouseAddressDTO) GetBlockOk() (*string, bool) {
+ if o == nil || IsNil(o.Block) {
+ return nil, false
+ }
+ return o.Block, true
+}
+
+// HasBlock returns a boolean if a field has been set.
+func (o *WarehouseAddressDTO) HasBlock() bool {
+ if o != nil && !IsNil(o.Block) {
+ return true
+ }
+
+ return false
+}
+
+// SetBlock gets a reference to the given string and assigns it to the Block field.
+func (o *WarehouseAddressDTO) SetBlock(v string) {
+ o.Block = &v
+}
+
+// GetGps returns the Gps field value
+func (o *WarehouseAddressDTO) GetGps() GpsDTO {
+ if o == nil {
+ var ret GpsDTO
+ return ret
+ }
+
+ return o.Gps
+}
+
+// GetGpsOk returns a tuple with the Gps field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseAddressDTO) GetGpsOk() (*GpsDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Gps, true
+}
+
+// SetGps sets field value
+func (o *WarehouseAddressDTO) SetGps(v GpsDTO) {
+ o.Gps = v
+}
+
+func (o WarehouseAddressDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WarehouseAddressDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["city"] = o.City
+ if !IsNil(o.Street) {
+ toSerialize["street"] = o.Street
+ }
+ if !IsNil(o.Number) {
+ toSerialize["number"] = o.Number
+ }
+ if !IsNil(o.Building) {
+ toSerialize["building"] = o.Building
+ }
+ if !IsNil(o.Block) {
+ toSerialize["block"] = o.Block
+ }
+ toSerialize["gps"] = o.Gps
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WarehouseAddressDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "city",
+ "gps",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWarehouseAddressDTO := _WarehouseAddressDTO{}
+
+ err = json.Unmarshal(data, &varWarehouseAddressDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WarehouseAddressDTO(varWarehouseAddressDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "city")
+ delete(additionalProperties, "street")
+ delete(additionalProperties, "number")
+ delete(additionalProperties, "building")
+ delete(additionalProperties, "block")
+ delete(additionalProperties, "gps")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWarehouseAddressDTO struct {
+ value *WarehouseAddressDTO
+ isSet bool
+}
+
+func (v NullableWarehouseAddressDTO) Get() *WarehouseAddressDTO {
+ return v.value
+}
+
+func (v *NullableWarehouseAddressDTO) Set(val *WarehouseAddressDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseAddressDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseAddressDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseAddressDTO(val *WarehouseAddressDTO) *NullableWarehouseAddressDTO {
+ return &NullableWarehouseAddressDTO{value: val, isSet: true}
+}
+
+func (v NullableWarehouseAddressDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseAddressDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_component_type.go b/pkg/api/yandex/ymclient/model_warehouse_component_type.go
new file mode 100644
index 0000000..d2b6ff0
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_component_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// WarehouseComponentType Свойства складов, которые необходимо вернуть: * `ADDRESS` — адрес склада. * `STATUS` — статус склада.
+type WarehouseComponentType string
+
+// List of WarehouseComponentType
+const (
+ WAREHOUSECOMPONENTTYPE_ADDRESS WarehouseComponentType = "ADDRESS"
+ WAREHOUSECOMPONENTTYPE_STATUS WarehouseComponentType = "STATUS"
+)
+
+// All allowed values of WarehouseComponentType enum
+var AllowedWarehouseComponentTypeEnumValues = []WarehouseComponentType{
+ "ADDRESS",
+ "STATUS",
+}
+
+func (v *WarehouseComponentType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := WarehouseComponentType(value)
+ for _, existing := range AllowedWarehouseComponentTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid WarehouseComponentType", value)
+}
+
+// NewWarehouseComponentTypeFromValue returns a pointer to a valid WarehouseComponentType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewWarehouseComponentTypeFromValue(v string) (*WarehouseComponentType, error) {
+ ev := WarehouseComponentType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for WarehouseComponentType: valid values are %v", v, AllowedWarehouseComponentTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v WarehouseComponentType) IsValid() bool {
+ for _, existing := range AllowedWarehouseComponentTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to WarehouseComponentType value
+func (v WarehouseComponentType) Ptr() *WarehouseComponentType {
+ return &v
+}
+
+type NullableWarehouseComponentType struct {
+ value *WarehouseComponentType
+ isSet bool
+}
+
+func (v NullableWarehouseComponentType) Get() *WarehouseComponentType {
+ return v.value
+}
+
+func (v *NullableWarehouseComponentType) Set(val *WarehouseComponentType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseComponentType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseComponentType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseComponentType(val *WarehouseComponentType) *NullableWarehouseComponentType {
+ return &NullableWarehouseComponentType{value: val, isSet: true}
+}
+
+func (v NullableWarehouseComponentType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseComponentType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_details_dto.go b/pkg/api/yandex/ymclient/model_warehouse_details_dto.go
new file mode 100644
index 0000000..36d66f7
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_details_dto.go
@@ -0,0 +1,368 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WarehouseDetailsDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WarehouseDetailsDTO{}
+
+// WarehouseDetailsDTO Информация о складе.
+type WarehouseDetailsDTO struct {
+ // Идентификатор склада.
+ Id int64 `json:"id"`
+ // Название склада.
+ Name string `json:"name"`
+ // Идентификатор кампании того магазина, который связан со складом. Его можно узнать с помощью запроса [GET campaigns](../../reference/campaigns/getCampaigns.md) или найти в кабинете продавца на Маркете — нажмите на название своего бизнеса и перейдите на страницу: * **Модули и :no-translate[API]** → блок **Передача данных Маркету**. * **Лог запросов** → выпадающий список в блоке **Показывать логи**. ⚠️ Не передавайте вместо него идентификатор магазина, который указан в кабинете продавца на Маркете рядом с названием магазина и в некоторых отчетах.
+ CampaignId int64 `json:"campaignId"`
+ // Возможна ли доставка для модели Экспресс.
+ Express bool `json:"express"`
+ GroupInfo *WarehouseGroupInfoDTO `json:"groupInfo,omitempty"`
+ Address *WarehouseAddressDTO `json:"address,omitempty"`
+ Status *WarehouseStatusDTO `json:"status,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WarehouseDetailsDTO WarehouseDetailsDTO
+
+// NewWarehouseDetailsDTO instantiates a new WarehouseDetailsDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWarehouseDetailsDTO(id int64, name string, campaignId int64, express bool) *WarehouseDetailsDTO {
+ this := WarehouseDetailsDTO{}
+ this.Id = id
+ this.Name = name
+ this.CampaignId = campaignId
+ this.Express = express
+ return &this
+}
+
+// NewWarehouseDetailsDTOWithDefaults instantiates a new WarehouseDetailsDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWarehouseDetailsDTOWithDefaults() *WarehouseDetailsDTO {
+ this := WarehouseDetailsDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *WarehouseDetailsDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseDetailsDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *WarehouseDetailsDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetName returns the Name field value
+func (o *WarehouseDetailsDTO) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseDetailsDTO) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WarehouseDetailsDTO) SetName(v string) {
+ o.Name = v
+}
+
+// GetCampaignId returns the CampaignId field value
+func (o *WarehouseDetailsDTO) GetCampaignId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.CampaignId
+}
+
+// GetCampaignIdOk returns a tuple with the CampaignId field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseDetailsDTO) GetCampaignIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CampaignId, true
+}
+
+// SetCampaignId sets field value
+func (o *WarehouseDetailsDTO) SetCampaignId(v int64) {
+ o.CampaignId = v
+}
+
+// GetExpress returns the Express field value
+func (o *WarehouseDetailsDTO) GetExpress() bool {
+ if o == nil {
+ var ret bool
+ return ret
+ }
+
+ return o.Express
+}
+
+// GetExpressOk returns a tuple with the Express field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseDetailsDTO) GetExpressOk() (*bool, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Express, true
+}
+
+// SetExpress sets field value
+func (o *WarehouseDetailsDTO) SetExpress(v bool) {
+ o.Express = v
+}
+
+// GetGroupInfo returns the GroupInfo field value if set, zero value otherwise.
+func (o *WarehouseDetailsDTO) GetGroupInfo() WarehouseGroupInfoDTO {
+ if o == nil || IsNil(o.GroupInfo) {
+ var ret WarehouseGroupInfoDTO
+ return ret
+ }
+ return *o.GroupInfo
+}
+
+// GetGroupInfoOk returns a tuple with the GroupInfo field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WarehouseDetailsDTO) GetGroupInfoOk() (*WarehouseGroupInfoDTO, bool) {
+ if o == nil || IsNil(o.GroupInfo) {
+ return nil, false
+ }
+ return o.GroupInfo, true
+}
+
+// HasGroupInfo returns a boolean if a field has been set.
+func (o *WarehouseDetailsDTO) HasGroupInfo() bool {
+ if o != nil && !IsNil(o.GroupInfo) {
+ return true
+ }
+
+ return false
+}
+
+// SetGroupInfo gets a reference to the given WarehouseGroupInfoDTO and assigns it to the GroupInfo field.
+func (o *WarehouseDetailsDTO) SetGroupInfo(v WarehouseGroupInfoDTO) {
+ o.GroupInfo = &v
+}
+
+// GetAddress returns the Address field value if set, zero value otherwise.
+func (o *WarehouseDetailsDTO) GetAddress() WarehouseAddressDTO {
+ if o == nil || IsNil(o.Address) {
+ var ret WarehouseAddressDTO
+ return ret
+ }
+ return *o.Address
+}
+
+// GetAddressOk returns a tuple with the Address field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WarehouseDetailsDTO) GetAddressOk() (*WarehouseAddressDTO, bool) {
+ if o == nil || IsNil(o.Address) {
+ return nil, false
+ }
+ return o.Address, true
+}
+
+// HasAddress returns a boolean if a field has been set.
+func (o *WarehouseDetailsDTO) HasAddress() bool {
+ if o != nil && !IsNil(o.Address) {
+ return true
+ }
+
+ return false
+}
+
+// SetAddress gets a reference to the given WarehouseAddressDTO and assigns it to the Address field.
+func (o *WarehouseDetailsDTO) SetAddress(v WarehouseAddressDTO) {
+ o.Address = &v
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *WarehouseDetailsDTO) GetStatus() WarehouseStatusDTO {
+ if o == nil || IsNil(o.Status) {
+ var ret WarehouseStatusDTO
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WarehouseDetailsDTO) GetStatusOk() (*WarehouseStatusDTO, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *WarehouseDetailsDTO) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given WarehouseStatusDTO and assigns it to the Status field.
+func (o *WarehouseDetailsDTO) SetStatus(v WarehouseStatusDTO) {
+ o.Status = &v
+}
+
+func (o WarehouseDetailsDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WarehouseDetailsDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["name"] = o.Name
+ toSerialize["campaignId"] = o.CampaignId
+ toSerialize["express"] = o.Express
+ if !IsNil(o.GroupInfo) {
+ toSerialize["groupInfo"] = o.GroupInfo
+ }
+ if !IsNil(o.Address) {
+ toSerialize["address"] = o.Address
+ }
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WarehouseDetailsDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "name",
+ "campaignId",
+ "express",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWarehouseDetailsDTO := _WarehouseDetailsDTO{}
+
+ err = json.Unmarshal(data, &varWarehouseDetailsDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WarehouseDetailsDTO(varWarehouseDetailsDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "campaignId")
+ delete(additionalProperties, "express")
+ delete(additionalProperties, "groupInfo")
+ delete(additionalProperties, "address")
+ delete(additionalProperties, "status")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWarehouseDetailsDTO struct {
+ value *WarehouseDetailsDTO
+ isSet bool
+}
+
+func (v NullableWarehouseDetailsDTO) Get() *WarehouseDetailsDTO {
+ return v.value
+}
+
+func (v *NullableWarehouseDetailsDTO) Set(val *WarehouseDetailsDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseDetailsDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseDetailsDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseDetailsDTO(val *WarehouseDetailsDTO) *NullableWarehouseDetailsDTO {
+ return &NullableWarehouseDetailsDTO{value: val, isSet: true}
+}
+
+func (v NullableWarehouseDetailsDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseDetailsDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_dto.go b/pkg/api/yandex/ymclient/model_warehouse_dto.go
new file mode 100644
index 0000000..2bad133
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_dto.go
@@ -0,0 +1,294 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WarehouseDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WarehouseDTO{}
+
+// WarehouseDTO Информация о складе.
+type WarehouseDTO struct {
+ // Идентификатор склада.
+ Id int64 `json:"id"`
+ // Название склада.
+ Name string `json:"name"`
+ // Идентификатор кампании. Его можно узнать с помощью запроса [GET campaigns](../../reference/campaigns/getCampaigns.md) или найти в кабинете продавца на Маркете — нажмите на название своего бизнеса и перейдите на страницу: * **Модули и :no-translate[API]** → блок **Передача данных Маркету**. * **Лог запросов** → выпадающий список в блоке **Показывать логи**. ⚠️ Не передавайте вместо него идентификатор магазина, который указан в кабинете продавца на Маркете рядом с названием магазина и в некоторых отчетах.
+ CampaignId int64 `json:"campaignId"`
+ // Возможна ли доставка по модели Экспресс.
+ Express bool `json:"express"`
+ Address *WarehouseAddressDTO `json:"address,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WarehouseDTO WarehouseDTO
+
+// NewWarehouseDTO instantiates a new WarehouseDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWarehouseDTO(id int64, name string, campaignId int64, express bool) *WarehouseDTO {
+ this := WarehouseDTO{}
+ this.Id = id
+ this.Name = name
+ this.CampaignId = campaignId
+ this.Express = express
+ return &this
+}
+
+// NewWarehouseDTOWithDefaults instantiates a new WarehouseDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWarehouseDTOWithDefaults() *WarehouseDTO {
+ this := WarehouseDTO{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *WarehouseDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *WarehouseDTO) SetId(v int64) {
+ o.Id = v
+}
+
+// GetName returns the Name field value
+func (o *WarehouseDTO) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseDTO) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WarehouseDTO) SetName(v string) {
+ o.Name = v
+}
+
+// GetCampaignId returns the CampaignId field value
+func (o *WarehouseDTO) GetCampaignId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.CampaignId
+}
+
+// GetCampaignIdOk returns a tuple with the CampaignId field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseDTO) GetCampaignIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CampaignId, true
+}
+
+// SetCampaignId sets field value
+func (o *WarehouseDTO) SetCampaignId(v int64) {
+ o.CampaignId = v
+}
+
+// GetExpress returns the Express field value
+func (o *WarehouseDTO) GetExpress() bool {
+ if o == nil {
+ var ret bool
+ return ret
+ }
+
+ return o.Express
+}
+
+// GetExpressOk returns a tuple with the Express field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseDTO) GetExpressOk() (*bool, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Express, true
+}
+
+// SetExpress sets field value
+func (o *WarehouseDTO) SetExpress(v bool) {
+ o.Express = v
+}
+
+// GetAddress returns the Address field value if set, zero value otherwise.
+func (o *WarehouseDTO) GetAddress() WarehouseAddressDTO {
+ if o == nil || IsNil(o.Address) {
+ var ret WarehouseAddressDTO
+ return ret
+ }
+ return *o.Address
+}
+
+// GetAddressOk returns a tuple with the Address field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WarehouseDTO) GetAddressOk() (*WarehouseAddressDTO, bool) {
+ if o == nil || IsNil(o.Address) {
+ return nil, false
+ }
+ return o.Address, true
+}
+
+// HasAddress returns a boolean if a field has been set.
+func (o *WarehouseDTO) HasAddress() bool {
+ if o != nil && !IsNil(o.Address) {
+ return true
+ }
+
+ return false
+}
+
+// SetAddress gets a reference to the given WarehouseAddressDTO and assigns it to the Address field.
+func (o *WarehouseDTO) SetAddress(v WarehouseAddressDTO) {
+ o.Address = &v
+}
+
+func (o WarehouseDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WarehouseDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["name"] = o.Name
+ toSerialize["campaignId"] = o.CampaignId
+ toSerialize["express"] = o.Express
+ if !IsNil(o.Address) {
+ toSerialize["address"] = o.Address
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WarehouseDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "name",
+ "campaignId",
+ "express",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWarehouseDTO := _WarehouseDTO{}
+
+ err = json.Unmarshal(data, &varWarehouseDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WarehouseDTO(varWarehouseDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "campaignId")
+ delete(additionalProperties, "express")
+ delete(additionalProperties, "address")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWarehouseDTO struct {
+ value *WarehouseDTO
+ isSet bool
+}
+
+func (v NullableWarehouseDTO) Get() *WarehouseDTO {
+ return v.value
+}
+
+func (v *NullableWarehouseDTO) Set(val *WarehouseDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseDTO(val *WarehouseDTO) *NullableWarehouseDTO {
+ return &NullableWarehouseDTO{value: val, isSet: true}
+}
+
+func (v NullableWarehouseDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_group_dto.go b/pkg/api/yandex/ymclient/model_warehouse_group_dto.go
new file mode 100644
index 0000000..9455f21
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_group_dto.go
@@ -0,0 +1,226 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WarehouseGroupDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WarehouseGroupDTO{}
+
+// WarehouseGroupDTO Информация о группе складов.
+type WarehouseGroupDTO struct {
+ // Название группы складов.
+ Name string `json:"name"`
+ MainWarehouse WarehouseDTO `json:"mainWarehouse"`
+ // Список складов, входящих в группу.
+ Warehouses []WarehouseDTO `json:"warehouses"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WarehouseGroupDTO WarehouseGroupDTO
+
+// NewWarehouseGroupDTO instantiates a new WarehouseGroupDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWarehouseGroupDTO(name string, mainWarehouse WarehouseDTO, warehouses []WarehouseDTO) *WarehouseGroupDTO {
+ this := WarehouseGroupDTO{}
+ this.Name = name
+ this.MainWarehouse = mainWarehouse
+ this.Warehouses = warehouses
+ return &this
+}
+
+// NewWarehouseGroupDTOWithDefaults instantiates a new WarehouseGroupDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWarehouseGroupDTOWithDefaults() *WarehouseGroupDTO {
+ this := WarehouseGroupDTO{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *WarehouseGroupDTO) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseGroupDTO) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WarehouseGroupDTO) SetName(v string) {
+ o.Name = v
+}
+
+// GetMainWarehouse returns the MainWarehouse field value
+func (o *WarehouseGroupDTO) GetMainWarehouse() WarehouseDTO {
+ if o == nil {
+ var ret WarehouseDTO
+ return ret
+ }
+
+ return o.MainWarehouse
+}
+
+// GetMainWarehouseOk returns a tuple with the MainWarehouse field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseGroupDTO) GetMainWarehouseOk() (*WarehouseDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.MainWarehouse, true
+}
+
+// SetMainWarehouse sets field value
+func (o *WarehouseGroupDTO) SetMainWarehouse(v WarehouseDTO) {
+ o.MainWarehouse = v
+}
+
+// GetWarehouses returns the Warehouses field value
+func (o *WarehouseGroupDTO) GetWarehouses() []WarehouseDTO {
+ if o == nil {
+ var ret []WarehouseDTO
+ return ret
+ }
+
+ return o.Warehouses
+}
+
+// GetWarehousesOk returns a tuple with the Warehouses field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseGroupDTO) GetWarehousesOk() ([]WarehouseDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Warehouses, true
+}
+
+// SetWarehouses sets field value
+func (o *WarehouseGroupDTO) SetWarehouses(v []WarehouseDTO) {
+ o.Warehouses = v
+}
+
+func (o WarehouseGroupDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WarehouseGroupDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ toSerialize["mainWarehouse"] = o.MainWarehouse
+ toSerialize["warehouses"] = o.Warehouses
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WarehouseGroupDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ "mainWarehouse",
+ "warehouses",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWarehouseGroupDTO := _WarehouseGroupDTO{}
+
+ err = json.Unmarshal(data, &varWarehouseGroupDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WarehouseGroupDTO(varWarehouseGroupDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "mainWarehouse")
+ delete(additionalProperties, "warehouses")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWarehouseGroupDTO struct {
+ value *WarehouseGroupDTO
+ isSet bool
+}
+
+func (v NullableWarehouseGroupDTO) Get() *WarehouseGroupDTO {
+ return v.value
+}
+
+func (v *NullableWarehouseGroupDTO) Set(val *WarehouseGroupDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseGroupDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseGroupDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseGroupDTO(val *WarehouseGroupDTO) *NullableWarehouseGroupDTO {
+ return &NullableWarehouseGroupDTO{value: val, isSet: true}
+}
+
+func (v NullableWarehouseGroupDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseGroupDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_group_info_dto.go b/pkg/api/yandex/ymclient/model_warehouse_group_info_dto.go
new file mode 100644
index 0000000..321430f
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_group_info_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WarehouseGroupInfoDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WarehouseGroupInfoDTO{}
+
+// WarehouseGroupInfoDTO Информация о группе, к которой принадлежит склад. Возвращается только для складов в группах. [Что такое группы складов и зачем они нужны](https://yandex.ru/support/marketplace/assortment/operations/stocks.html#unified-stocks)
+type WarehouseGroupInfoDTO struct {
+ // Название группы, к которой принадлежит склад.
+ Name string `json:"name"`
+ // Идентификатор группы складов.
+ Id int64 `json:"id"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WarehouseGroupInfoDTO WarehouseGroupInfoDTO
+
+// NewWarehouseGroupInfoDTO instantiates a new WarehouseGroupInfoDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWarehouseGroupInfoDTO(name string, id int64) *WarehouseGroupInfoDTO {
+ this := WarehouseGroupInfoDTO{}
+ this.Name = name
+ this.Id = id
+ return &this
+}
+
+// NewWarehouseGroupInfoDTOWithDefaults instantiates a new WarehouseGroupInfoDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWarehouseGroupInfoDTOWithDefaults() *WarehouseGroupInfoDTO {
+ this := WarehouseGroupInfoDTO{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *WarehouseGroupInfoDTO) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseGroupInfoDTO) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WarehouseGroupInfoDTO) SetName(v string) {
+ o.Name = v
+}
+
+// GetId returns the Id field value
+func (o *WarehouseGroupInfoDTO) GetId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseGroupInfoDTO) GetIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *WarehouseGroupInfoDTO) SetId(v int64) {
+ o.Id = v
+}
+
+func (o WarehouseGroupInfoDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WarehouseGroupInfoDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ toSerialize["id"] = o.Id
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WarehouseGroupInfoDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ "id",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWarehouseGroupInfoDTO := _WarehouseGroupInfoDTO{}
+
+ err = json.Unmarshal(data, &varWarehouseGroupInfoDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WarehouseGroupInfoDTO(varWarehouseGroupInfoDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "id")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWarehouseGroupInfoDTO struct {
+ value *WarehouseGroupInfoDTO
+ isSet bool
+}
+
+func (v NullableWarehouseGroupInfoDTO) Get() *WarehouseGroupInfoDTO {
+ return v.value
+}
+
+func (v *NullableWarehouseGroupInfoDTO) Set(val *WarehouseGroupInfoDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseGroupInfoDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseGroupInfoDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseGroupInfoDTO(val *WarehouseGroupInfoDTO) *NullableWarehouseGroupInfoDTO {
+ return &NullableWarehouseGroupInfoDTO{value: val, isSet: true}
+}
+
+func (v NullableWarehouseGroupInfoDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseGroupInfoDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_offer_dto.go b/pkg/api/yandex/ymclient/model_warehouse_offer_dto.go
new file mode 100644
index 0000000..1179594
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_offer_dto.go
@@ -0,0 +1,273 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the WarehouseOfferDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WarehouseOfferDTO{}
+
+// WarehouseOfferDTO Информация об остатках товара.
+type WarehouseOfferDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ TurnoverSummary *TurnoverDTO `json:"turnoverSummary,omitempty"`
+ // Информация об остатках.
+ Stocks []WarehouseStockDTO `json:"stocks"`
+ // Дата и время последнего обновления информации об остатках. Формат даты и времени: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC]. Например, `2023-11-21T00:42:42+03:00`.
+ UpdatedAt *time.Time `json:"updatedAt,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WarehouseOfferDTO WarehouseOfferDTO
+
+// NewWarehouseOfferDTO instantiates a new WarehouseOfferDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWarehouseOfferDTO(offerId string, stocks []WarehouseStockDTO) *WarehouseOfferDTO {
+ this := WarehouseOfferDTO{}
+ this.OfferId = offerId
+ this.Stocks = stocks
+ return &this
+}
+
+// NewWarehouseOfferDTOWithDefaults instantiates a new WarehouseOfferDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWarehouseOfferDTOWithDefaults() *WarehouseOfferDTO {
+ this := WarehouseOfferDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value
+func (o *WarehouseOfferDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseOfferDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *WarehouseOfferDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetTurnoverSummary returns the TurnoverSummary field value if set, zero value otherwise.
+func (o *WarehouseOfferDTO) GetTurnoverSummary() TurnoverDTO {
+ if o == nil || IsNil(o.TurnoverSummary) {
+ var ret TurnoverDTO
+ return ret
+ }
+ return *o.TurnoverSummary
+}
+
+// GetTurnoverSummaryOk returns a tuple with the TurnoverSummary field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WarehouseOfferDTO) GetTurnoverSummaryOk() (*TurnoverDTO, bool) {
+ if o == nil || IsNil(o.TurnoverSummary) {
+ return nil, false
+ }
+ return o.TurnoverSummary, true
+}
+
+// HasTurnoverSummary returns a boolean if a field has been set.
+func (o *WarehouseOfferDTO) HasTurnoverSummary() bool {
+ if o != nil && !IsNil(o.TurnoverSummary) {
+ return true
+ }
+
+ return false
+}
+
+// SetTurnoverSummary gets a reference to the given TurnoverDTO and assigns it to the TurnoverSummary field.
+func (o *WarehouseOfferDTO) SetTurnoverSummary(v TurnoverDTO) {
+ o.TurnoverSummary = &v
+}
+
+// GetStocks returns the Stocks field value
+func (o *WarehouseOfferDTO) GetStocks() []WarehouseStockDTO {
+ if o == nil {
+ var ret []WarehouseStockDTO
+ return ret
+ }
+
+ return o.Stocks
+}
+
+// GetStocksOk returns a tuple with the Stocks field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseOfferDTO) GetStocksOk() ([]WarehouseStockDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Stocks, true
+}
+
+// SetStocks sets field value
+func (o *WarehouseOfferDTO) SetStocks(v []WarehouseStockDTO) {
+ o.Stocks = v
+}
+
+// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
+func (o *WarehouseOfferDTO) GetUpdatedAt() time.Time {
+ if o == nil || IsNil(o.UpdatedAt) {
+ var ret time.Time
+ return ret
+ }
+ return *o.UpdatedAt
+}
+
+// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WarehouseOfferDTO) GetUpdatedAtOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.UpdatedAt) {
+ return nil, false
+ }
+ return o.UpdatedAt, true
+}
+
+// HasUpdatedAt returns a boolean if a field has been set.
+func (o *WarehouseOfferDTO) HasUpdatedAt() bool {
+ if o != nil && !IsNil(o.UpdatedAt) {
+ return true
+ }
+
+ return false
+}
+
+// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.
+func (o *WarehouseOfferDTO) SetUpdatedAt(v time.Time) {
+ o.UpdatedAt = &v
+}
+
+func (o WarehouseOfferDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WarehouseOfferDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerId"] = o.OfferId
+ if !IsNil(o.TurnoverSummary) {
+ toSerialize["turnoverSummary"] = o.TurnoverSummary
+ }
+ toSerialize["stocks"] = o.Stocks
+ if !IsNil(o.UpdatedAt) {
+ toSerialize["updatedAt"] = o.UpdatedAt
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WarehouseOfferDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerId",
+ "stocks",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWarehouseOfferDTO := _WarehouseOfferDTO{}
+
+ err = json.Unmarshal(data, &varWarehouseOfferDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WarehouseOfferDTO(varWarehouseOfferDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "turnoverSummary")
+ delete(additionalProperties, "stocks")
+ delete(additionalProperties, "updatedAt")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWarehouseOfferDTO struct {
+ value *WarehouseOfferDTO
+ isSet bool
+}
+
+func (v NullableWarehouseOfferDTO) Get() *WarehouseOfferDTO {
+ return v.value
+}
+
+func (v *NullableWarehouseOfferDTO) Set(val *WarehouseOfferDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseOfferDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseOfferDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseOfferDTO(val *WarehouseOfferDTO) *NullableWarehouseOfferDTO {
+ return &NullableWarehouseOfferDTO{value: val, isSet: true}
+}
+
+func (v NullableWarehouseOfferDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseOfferDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_offers_dto.go b/pkg/api/yandex/ymclient/model_warehouse_offers_dto.go
new file mode 100644
index 0000000..234e4f9
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_offers_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WarehouseOffersDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WarehouseOffersDTO{}
+
+// WarehouseOffersDTO Информация об остатках товаров на складе.
+type WarehouseOffersDTO struct {
+ // Идентификатор склада.
+ WarehouseId int64 `json:"warehouseId"`
+ // Информация об остатках.
+ Offers []WarehouseOfferDTO `json:"offers"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WarehouseOffersDTO WarehouseOffersDTO
+
+// NewWarehouseOffersDTO instantiates a new WarehouseOffersDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWarehouseOffersDTO(warehouseId int64, offers []WarehouseOfferDTO) *WarehouseOffersDTO {
+ this := WarehouseOffersDTO{}
+ this.WarehouseId = warehouseId
+ this.Offers = offers
+ return &this
+}
+
+// NewWarehouseOffersDTOWithDefaults instantiates a new WarehouseOffersDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWarehouseOffersDTOWithDefaults() *WarehouseOffersDTO {
+ this := WarehouseOffersDTO{}
+ return &this
+}
+
+// GetWarehouseId returns the WarehouseId field value
+func (o *WarehouseOffersDTO) GetWarehouseId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.WarehouseId
+}
+
+// GetWarehouseIdOk returns a tuple with the WarehouseId field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseOffersDTO) GetWarehouseIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.WarehouseId, true
+}
+
+// SetWarehouseId sets field value
+func (o *WarehouseOffersDTO) SetWarehouseId(v int64) {
+ o.WarehouseId = v
+}
+
+// GetOffers returns the Offers field value
+func (o *WarehouseOffersDTO) GetOffers() []WarehouseOfferDTO {
+ if o == nil {
+ var ret []WarehouseOfferDTO
+ return ret
+ }
+
+ return o.Offers
+}
+
+// GetOffersOk returns a tuple with the Offers field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseOffersDTO) GetOffersOk() ([]WarehouseOfferDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Offers, true
+}
+
+// SetOffers sets field value
+func (o *WarehouseOffersDTO) SetOffers(v []WarehouseOfferDTO) {
+ o.Offers = v
+}
+
+func (o WarehouseOffersDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WarehouseOffersDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["warehouseId"] = o.WarehouseId
+ toSerialize["offers"] = o.Offers
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WarehouseOffersDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "warehouseId",
+ "offers",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWarehouseOffersDTO := _WarehouseOffersDTO{}
+
+ err = json.Unmarshal(data, &varWarehouseOffersDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WarehouseOffersDTO(varWarehouseOffersDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "warehouseId")
+ delete(additionalProperties, "offers")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWarehouseOffersDTO struct {
+ value *WarehouseOffersDTO
+ isSet bool
+}
+
+func (v NullableWarehouseOffersDTO) Get() *WarehouseOffersDTO {
+ return v.value
+}
+
+func (v *NullableWarehouseOffersDTO) Set(val *WarehouseOffersDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseOffersDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseOffersDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseOffersDTO(val *WarehouseOffersDTO) *NullableWarehouseOffersDTO {
+ return &NullableWarehouseOffersDTO{value: val, isSet: true}
+}
+
+func (v NullableWarehouseOffersDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseOffersDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_status_dto.go b/pkg/api/yandex/ymclient/model_warehouse_status_dto.go
new file mode 100644
index 0000000..502f19f
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_status_dto.go
@@ -0,0 +1,166 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WarehouseStatusDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WarehouseStatusDTO{}
+
+// WarehouseStatusDTO Информация о статусе склада.
+type WarehouseStatusDTO struct {
+ Status WarehouseStatusType `json:"status"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WarehouseStatusDTO WarehouseStatusDTO
+
+// NewWarehouseStatusDTO instantiates a new WarehouseStatusDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWarehouseStatusDTO(status WarehouseStatusType) *WarehouseStatusDTO {
+ this := WarehouseStatusDTO{}
+ this.Status = status
+ return &this
+}
+
+// NewWarehouseStatusDTOWithDefaults instantiates a new WarehouseStatusDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWarehouseStatusDTOWithDefaults() *WarehouseStatusDTO {
+ this := WarehouseStatusDTO{}
+ return &this
+}
+
+// GetStatus returns the Status field value
+func (o *WarehouseStatusDTO) GetStatus() WarehouseStatusType {
+ if o == nil {
+ var ret WarehouseStatusType
+ return ret
+ }
+
+ return o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseStatusDTO) GetStatusOk() (*WarehouseStatusType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Status, true
+}
+
+// SetStatus sets field value
+func (o *WarehouseStatusDTO) SetStatus(v WarehouseStatusType) {
+ o.Status = v
+}
+
+func (o WarehouseStatusDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WarehouseStatusDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["status"] = o.Status
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WarehouseStatusDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "status",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWarehouseStatusDTO := _WarehouseStatusDTO{}
+
+ err = json.Unmarshal(data, &varWarehouseStatusDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WarehouseStatusDTO(varWarehouseStatusDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "status")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWarehouseStatusDTO struct {
+ value *WarehouseStatusDTO
+ isSet bool
+}
+
+func (v NullableWarehouseStatusDTO) Get() *WarehouseStatusDTO {
+ return v.value
+}
+
+func (v *NullableWarehouseStatusDTO) Set(val *WarehouseStatusDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseStatusDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseStatusDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseStatusDTO(val *WarehouseStatusDTO) *NullableWarehouseStatusDTO {
+ return &NullableWarehouseStatusDTO{value: val, isSet: true}
+}
+
+func (v NullableWarehouseStatusDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseStatusDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_status_type.go b/pkg/api/yandex/ymclient/model_warehouse_status_type.go
new file mode 100644
index 0000000..37c3e88
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_status_type.go
@@ -0,0 +1,110 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// WarehouseStatusType Статус склада: * `DISABLED_MANUALLY` – отключен вами. * `OTHER` – другой статус. Например, склад включен или отключен Маркетом.
+type WarehouseStatusType string
+
+// List of WarehouseStatusType
+const (
+ WAREHOUSESTATUSTYPE_DISABLED_MANUALLY WarehouseStatusType = "DISABLED_MANUALLY"
+ WAREHOUSESTATUSTYPE_OTHER WarehouseStatusType = "OTHER"
+)
+
+// All allowed values of WarehouseStatusType enum
+var AllowedWarehouseStatusTypeEnumValues = []WarehouseStatusType{
+ "DISABLED_MANUALLY",
+ "OTHER",
+}
+
+func (v *WarehouseStatusType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := WarehouseStatusType(value)
+ for _, existing := range AllowedWarehouseStatusTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid WarehouseStatusType", value)
+}
+
+// NewWarehouseStatusTypeFromValue returns a pointer to a valid WarehouseStatusType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewWarehouseStatusTypeFromValue(v string) (*WarehouseStatusType, error) {
+ ev := WarehouseStatusType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for WarehouseStatusType: valid values are %v", v, AllowedWarehouseStatusTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v WarehouseStatusType) IsValid() bool {
+ for _, existing := range AllowedWarehouseStatusTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to WarehouseStatusType value
+func (v WarehouseStatusType) Ptr() *WarehouseStatusType {
+ return &v
+}
+
+type NullableWarehouseStatusType struct {
+ value *WarehouseStatusType
+ isSet bool
+}
+
+func (v NullableWarehouseStatusType) Get() *WarehouseStatusType {
+ return v.value
+}
+
+func (v *NullableWarehouseStatusType) Set(val *WarehouseStatusType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseStatusType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseStatusType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseStatusType(val *WarehouseStatusType) *NullableWarehouseStatusType {
+ return &NullableWarehouseStatusType{value: val, isSet: true}
+}
+
+func (v NullableWarehouseStatusType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseStatusType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_stock_dto.go b/pkg/api/yandex/ymclient/model_warehouse_stock_dto.go
new file mode 100644
index 0000000..536a0ce
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_stock_dto.go
@@ -0,0 +1,196 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WarehouseStockDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WarehouseStockDTO{}
+
+// WarehouseStockDTO Информация об остатках товара.
+type WarehouseStockDTO struct {
+ Type WarehouseStockType `json:"type"`
+ // Значение остатков.
+ Count int64 `json:"count"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WarehouseStockDTO WarehouseStockDTO
+
+// NewWarehouseStockDTO instantiates a new WarehouseStockDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWarehouseStockDTO(type_ WarehouseStockType, count int64) *WarehouseStockDTO {
+ this := WarehouseStockDTO{}
+ this.Type = type_
+ this.Count = count
+ return &this
+}
+
+// NewWarehouseStockDTOWithDefaults instantiates a new WarehouseStockDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWarehouseStockDTOWithDefaults() *WarehouseStockDTO {
+ this := WarehouseStockDTO{}
+ return &this
+}
+
+// GetType returns the Type field value
+func (o *WarehouseStockDTO) GetType() WarehouseStockType {
+ if o == nil {
+ var ret WarehouseStockType
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseStockDTO) GetTypeOk() (*WarehouseStockType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *WarehouseStockDTO) SetType(v WarehouseStockType) {
+ o.Type = v
+}
+
+// GetCount returns the Count field value
+func (o *WarehouseStockDTO) GetCount() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.Count
+}
+
+// GetCountOk returns a tuple with the Count field value
+// and a boolean to check if the value has been set.
+func (o *WarehouseStockDTO) GetCountOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Count, true
+}
+
+// SetCount sets field value
+func (o *WarehouseStockDTO) SetCount(v int64) {
+ o.Count = v
+}
+
+func (o WarehouseStockDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WarehouseStockDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["type"] = o.Type
+ toSerialize["count"] = o.Count
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WarehouseStockDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "type",
+ "count",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWarehouseStockDTO := _WarehouseStockDTO{}
+
+ err = json.Unmarshal(data, &varWarehouseStockDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WarehouseStockDTO(varWarehouseStockDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "type")
+ delete(additionalProperties, "count")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWarehouseStockDTO struct {
+ value *WarehouseStockDTO
+ isSet bool
+}
+
+func (v NullableWarehouseStockDTO) Get() *WarehouseStockDTO {
+ return v.value
+}
+
+func (v *NullableWarehouseStockDTO) Set(val *WarehouseStockDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseStockDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseStockDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseStockDTO(val *WarehouseStockDTO) *NullableWarehouseStockDTO {
+ return &NullableWarehouseStockDTO{value: val, isSet: true}
+}
+
+func (v NullableWarehouseStockDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseStockDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouse_stock_type.go b/pkg/api/yandex/ymclient/model_warehouse_stock_type.go
new file mode 100644
index 0000000..9994c91
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouse_stock_type.go
@@ -0,0 +1,120 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// WarehouseStockType Тип остатков товаров на складе: * `AVAILABLE` (соответствует типу «Доступный к заказу» в отчете «Остатки на складе» в кабинете продавца на Маркете) — товар, доступный для продажи. * `DEFECT` (соответствует типу «Брак») — товар с браком. * `EXPIRED` (соответствует типу «Просрочен») — товар с истекшим сроком годности. * `FIT` (соответствует типу «Годный») — товар, который доступен для продажи или уже зарезервирован. * `FREEZE` — товар, который зарезервирован для заказов. * `QUARANTINE` (соответствует типу «Карантин») — товар, временно недоступный для продажи (например, товар перемещают из одного помещения склада в другое). * `UTILIZATION` — товар, который будет утилизирован.
+type WarehouseStockType string
+
+// List of WarehouseStockType
+const (
+ WAREHOUSESTOCKTYPE_FIT WarehouseStockType = "FIT"
+ WAREHOUSESTOCKTYPE_FREEZE WarehouseStockType = "FREEZE"
+ WAREHOUSESTOCKTYPE_AVAILABLE WarehouseStockType = "AVAILABLE"
+ WAREHOUSESTOCKTYPE_QUARANTINE WarehouseStockType = "QUARANTINE"
+ WAREHOUSESTOCKTYPE_UTILIZATION WarehouseStockType = "UTILIZATION"
+ WAREHOUSESTOCKTYPE_DEFECT WarehouseStockType = "DEFECT"
+ WAREHOUSESTOCKTYPE_EXPIRED WarehouseStockType = "EXPIRED"
+)
+
+// All allowed values of WarehouseStockType enum
+var AllowedWarehouseStockTypeEnumValues = []WarehouseStockType{
+ "FIT",
+ "FREEZE",
+ "AVAILABLE",
+ "QUARANTINE",
+ "UTILIZATION",
+ "DEFECT",
+ "EXPIRED",
+}
+
+func (v *WarehouseStockType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := WarehouseStockType(value)
+ for _, existing := range AllowedWarehouseStockTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid WarehouseStockType", value)
+}
+
+// NewWarehouseStockTypeFromValue returns a pointer to a valid WarehouseStockType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewWarehouseStockTypeFromValue(v string) (*WarehouseStockType, error) {
+ ev := WarehouseStockType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for WarehouseStockType: valid values are %v", v, AllowedWarehouseStockTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v WarehouseStockType) IsValid() bool {
+ for _, existing := range AllowedWarehouseStockTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to WarehouseStockType value
+func (v WarehouseStockType) Ptr() *WarehouseStockType {
+ return &v
+}
+
+type NullableWarehouseStockType struct {
+ value *WarehouseStockType
+ isSet bool
+}
+
+func (v NullableWarehouseStockType) Get() *WarehouseStockType {
+ return v.value
+}
+
+func (v *NullableWarehouseStockType) Set(val *WarehouseStockType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehouseStockType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehouseStockType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehouseStockType(val *WarehouseStockType) *NullableWarehouseStockType {
+ return &NullableWarehouseStockType{value: val, isSet: true}
+}
+
+func (v NullableWarehouseStockType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehouseStockType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warehouses_dto.go b/pkg/api/yandex/ymclient/model_warehouses_dto.go
new file mode 100644
index 0000000..1cc3f3b
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warehouses_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WarehousesDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WarehousesDTO{}
+
+// WarehousesDTO Информация о складах и группах складов.
+type WarehousesDTO struct {
+ // Список складов, не входящих в группы.
+ Warehouses []WarehouseDTO `json:"warehouses"`
+ // Список групп складов.
+ WarehouseGroups []WarehouseGroupDTO `json:"warehouseGroups"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WarehousesDTO WarehousesDTO
+
+// NewWarehousesDTO instantiates a new WarehousesDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWarehousesDTO(warehouses []WarehouseDTO, warehouseGroups []WarehouseGroupDTO) *WarehousesDTO {
+ this := WarehousesDTO{}
+ this.Warehouses = warehouses
+ this.WarehouseGroups = warehouseGroups
+ return &this
+}
+
+// NewWarehousesDTOWithDefaults instantiates a new WarehousesDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWarehousesDTOWithDefaults() *WarehousesDTO {
+ this := WarehousesDTO{}
+ return &this
+}
+
+// GetWarehouses returns the Warehouses field value
+func (o *WarehousesDTO) GetWarehouses() []WarehouseDTO {
+ if o == nil {
+ var ret []WarehouseDTO
+ return ret
+ }
+
+ return o.Warehouses
+}
+
+// GetWarehousesOk returns a tuple with the Warehouses field value
+// and a boolean to check if the value has been set.
+func (o *WarehousesDTO) GetWarehousesOk() ([]WarehouseDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Warehouses, true
+}
+
+// SetWarehouses sets field value
+func (o *WarehousesDTO) SetWarehouses(v []WarehouseDTO) {
+ o.Warehouses = v
+}
+
+// GetWarehouseGroups returns the WarehouseGroups field value
+func (o *WarehousesDTO) GetWarehouseGroups() []WarehouseGroupDTO {
+ if o == nil {
+ var ret []WarehouseGroupDTO
+ return ret
+ }
+
+ return o.WarehouseGroups
+}
+
+// GetWarehouseGroupsOk returns a tuple with the WarehouseGroups field value
+// and a boolean to check if the value has been set.
+func (o *WarehousesDTO) GetWarehouseGroupsOk() ([]WarehouseGroupDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.WarehouseGroups, true
+}
+
+// SetWarehouseGroups sets field value
+func (o *WarehousesDTO) SetWarehouseGroups(v []WarehouseGroupDTO) {
+ o.WarehouseGroups = v
+}
+
+func (o WarehousesDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WarehousesDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["warehouses"] = o.Warehouses
+ toSerialize["warehouseGroups"] = o.WarehouseGroups
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WarehousesDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "warehouses",
+ "warehouseGroups",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWarehousesDTO := _WarehousesDTO{}
+
+ err = json.Unmarshal(data, &varWarehousesDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WarehousesDTO(varWarehousesDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "warehouses")
+ delete(additionalProperties, "warehouseGroups")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWarehousesDTO struct {
+ value *WarehousesDTO
+ isSet bool
+}
+
+func (v NullableWarehousesDTO) Get() *WarehousesDTO {
+ return v.value
+}
+
+func (v *NullableWarehousesDTO) Set(val *WarehousesDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarehousesDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarehousesDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarehousesDTO(val *WarehousesDTO) *NullableWarehousesDTO {
+ return &NullableWarehousesDTO{value: val, isSet: true}
+}
+
+func (v NullableWarehousesDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarehousesDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/model_warning_promo_offer_update_dto.go b/pkg/api/yandex/ymclient/model_warning_promo_offer_update_dto.go
new file mode 100644
index 0000000..93f7678
--- /dev/null
+++ b/pkg/api/yandex/ymclient/model_warning_promo_offer_update_dto.go
@@ -0,0 +1,197 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WarningPromoOfferUpdateDTO type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WarningPromoOfferUpdateDTO{}
+
+// WarningPromoOfferUpdateDTO Описание предупреждения, которое появилось при добавлении товара.
+type WarningPromoOfferUpdateDTO struct {
+ // Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте [в Справке Маркета для продавцов](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku). [Что такое :no-translate[SKU] и как его назначать](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)
+ OfferId string `json:"offerId" validate:"regexp=^(?=.*\\\\S.*)[^\\\\x00-\\\\x08\\\\x0A-\\\\x1f\\\\x7f]{1,255}$"`
+ // Предупреждения, которые появились при добавлении товара в акцию или изменении его цен.
+ Warnings []PromoOfferUpdateWarningDTO `json:"warnings"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WarningPromoOfferUpdateDTO WarningPromoOfferUpdateDTO
+
+// NewWarningPromoOfferUpdateDTO instantiates a new WarningPromoOfferUpdateDTO object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWarningPromoOfferUpdateDTO(offerId string, warnings []PromoOfferUpdateWarningDTO) *WarningPromoOfferUpdateDTO {
+ this := WarningPromoOfferUpdateDTO{}
+ this.OfferId = offerId
+ this.Warnings = warnings
+ return &this
+}
+
+// NewWarningPromoOfferUpdateDTOWithDefaults instantiates a new WarningPromoOfferUpdateDTO object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWarningPromoOfferUpdateDTOWithDefaults() *WarningPromoOfferUpdateDTO {
+ this := WarningPromoOfferUpdateDTO{}
+ return &this
+}
+
+// GetOfferId returns the OfferId field value
+func (o *WarningPromoOfferUpdateDTO) GetOfferId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OfferId
+}
+
+// GetOfferIdOk returns a tuple with the OfferId field value
+// and a boolean to check if the value has been set.
+func (o *WarningPromoOfferUpdateDTO) GetOfferIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OfferId, true
+}
+
+// SetOfferId sets field value
+func (o *WarningPromoOfferUpdateDTO) SetOfferId(v string) {
+ o.OfferId = v
+}
+
+// GetWarnings returns the Warnings field value
+func (o *WarningPromoOfferUpdateDTO) GetWarnings() []PromoOfferUpdateWarningDTO {
+ if o == nil {
+ var ret []PromoOfferUpdateWarningDTO
+ return ret
+ }
+
+ return o.Warnings
+}
+
+// GetWarningsOk returns a tuple with the Warnings field value
+// and a boolean to check if the value has been set.
+func (o *WarningPromoOfferUpdateDTO) GetWarningsOk() ([]PromoOfferUpdateWarningDTO, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Warnings, true
+}
+
+// SetWarnings sets field value
+func (o *WarningPromoOfferUpdateDTO) SetWarnings(v []PromoOfferUpdateWarningDTO) {
+ o.Warnings = v
+}
+
+func (o WarningPromoOfferUpdateDTO) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WarningPromoOfferUpdateDTO) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["offerId"] = o.OfferId
+ toSerialize["warnings"] = o.Warnings
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WarningPromoOfferUpdateDTO) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "offerId",
+ "warnings",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWarningPromoOfferUpdateDTO := _WarningPromoOfferUpdateDTO{}
+
+ err = json.Unmarshal(data, &varWarningPromoOfferUpdateDTO)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WarningPromoOfferUpdateDTO(varWarningPromoOfferUpdateDTO)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "offerId")
+ delete(additionalProperties, "warnings")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWarningPromoOfferUpdateDTO struct {
+ value *WarningPromoOfferUpdateDTO
+ isSet bool
+}
+
+func (v NullableWarningPromoOfferUpdateDTO) Get() *WarningPromoOfferUpdateDTO {
+ return v.value
+}
+
+func (v *NullableWarningPromoOfferUpdateDTO) Set(val *WarningPromoOfferUpdateDTO) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWarningPromoOfferUpdateDTO) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWarningPromoOfferUpdateDTO) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWarningPromoOfferUpdateDTO(val *WarningPromoOfferUpdateDTO) *NullableWarningPromoOfferUpdateDTO {
+ return &NullableWarningPromoOfferUpdateDTO{value: val, isSet: true}
+}
+
+func (v NullableWarningPromoOfferUpdateDTO) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWarningPromoOfferUpdateDTO) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/pkg/api/yandex/ymclient/response.go b/pkg/api/yandex/ymclient/response.go
new file mode 100644
index 0000000..2e9f434
--- /dev/null
+++ b/pkg/api/yandex/ymclient/response.go
@@ -0,0 +1,47 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "net/http"
+)
+
+// APIResponse stores the API response returned by the server.
+type APIResponse struct {
+ *http.Response `json:"-"`
+ Message string `json:"message,omitempty"`
+ // Operation is the name of the OpenAPI operation.
+ Operation string `json:"operation,omitempty"`
+ // RequestURL is the request URL. This value is always available, even if the
+ // embedded *http.Response is nil.
+ RequestURL string `json:"url,omitempty"`
+ // Method is the HTTP method used for the request. This value is always
+ // available, even if the embedded *http.Response is nil.
+ Method string `json:"method,omitempty"`
+ // Payload holds the contents of the response body (which may be nil or empty).
+ // This is provided here as the raw response.Body() reader will have already
+ // been drained.
+ Payload []byte `json:"-"`
+}
+
+// NewAPIResponse returns a new APIResponse object.
+func NewAPIResponse(r *http.Response) *APIResponse {
+
+ response := &APIResponse{Response: r}
+ return response
+}
+
+// NewAPIResponseWithError returns a new APIResponse object with the provided error message.
+func NewAPIResponseWithError(errorMessage string) *APIResponse {
+
+ response := &APIResponse{Message: errorMessage}
+ return response
+}
diff --git a/pkg/api/yandex/ymclient/utils.go b/pkg/api/yandex/ymclient/utils.go
new file mode 100644
index 0000000..148a8d4
--- /dev/null
+++ b/pkg/api/yandex/ymclient/utils.go
@@ -0,0 +1,361 @@
+/*
+API Яндекс Маркета для продавцов
+
+API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
+
+API version: LATEST
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ymclient
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "reflect"
+ "time"
+)
+
+// PtrBool is a helper routine that returns a pointer to given boolean value.
+func PtrBool(v bool) *bool { return &v }
+
+// PtrInt is a helper routine that returns a pointer to given integer value.
+func PtrInt(v int) *int { return &v }
+
+// PtrInt32 is a helper routine that returns a pointer to given integer value.
+func PtrInt32(v int32) *int32 { return &v }
+
+// PtrInt64 is a helper routine that returns a pointer to given integer value.
+func PtrInt64(v int64) *int64 { return &v }
+
+// PtrFloat32 is a helper routine that returns a pointer to given float value.
+func PtrFloat32(v float32) *float32 { return &v }
+
+// PtrFloat64 is a helper routine that returns a pointer to given float value.
+func PtrFloat64(v float64) *float64 { return &v }
+
+// PtrString is a helper routine that returns a pointer to given string value.
+func PtrString(v string) *string { return &v }
+
+// PtrTime is helper routine that returns a pointer to given Time value.
+func PtrTime(v time.Time) *time.Time { return &v }
+
+type NullableBool struct {
+ value *bool
+ isSet bool
+}
+
+func (v NullableBool) Get() *bool {
+ return v.value
+}
+
+func (v *NullableBool) Set(val *bool) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBool) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBool) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBool(val *bool) *NullableBool {
+ return &NullableBool{value: val, isSet: true}
+}
+
+func (v NullableBool) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBool) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableInt struct {
+ value *int
+ isSet bool
+}
+
+func (v NullableInt) Get() *int {
+ return v.value
+}
+
+func (v *NullableInt) Set(val *int) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInt) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInt) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInt(val *int) *NullableInt {
+ return &NullableInt{value: val, isSet: true}
+}
+
+func (v NullableInt) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInt) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableInt32 struct {
+ value *int32
+ isSet bool
+}
+
+func (v NullableInt32) Get() *int32 {
+ return v.value
+}
+
+func (v *NullableInt32) Set(val *int32) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInt32) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInt32) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInt32(val *int32) *NullableInt32 {
+ return &NullableInt32{value: val, isSet: true}
+}
+
+func (v NullableInt32) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInt32) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableInt64 struct {
+ value *int64
+ isSet bool
+}
+
+func (v NullableInt64) Get() *int64 {
+ return v.value
+}
+
+func (v *NullableInt64) Set(val *int64) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInt64) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInt64) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInt64(val *int64) *NullableInt64 {
+ return &NullableInt64{value: val, isSet: true}
+}
+
+func (v NullableInt64) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInt64) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableFloat32 struct {
+ value *float32
+ isSet bool
+}
+
+func (v NullableFloat32) Get() *float32 {
+ return v.value
+}
+
+func (v *NullableFloat32) Set(val *float32) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFloat32) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFloat32) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFloat32(val *float32) *NullableFloat32 {
+ return &NullableFloat32{value: val, isSet: true}
+}
+
+func (v NullableFloat32) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFloat32) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableFloat64 struct {
+ value *float64
+ isSet bool
+}
+
+func (v NullableFloat64) Get() *float64 {
+ return v.value
+}
+
+func (v *NullableFloat64) Set(val *float64) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFloat64) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFloat64) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFloat64(val *float64) *NullableFloat64 {
+ return &NullableFloat64{value: val, isSet: true}
+}
+
+func (v NullableFloat64) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFloat64) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableString struct {
+ value *string
+ isSet bool
+}
+
+func (v NullableString) Get() *string {
+ return v.value
+}
+
+func (v *NullableString) Set(val *string) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableString) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableString) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableString(val *string) *NullableString {
+ return &NullableString{value: val, isSet: true}
+}
+
+func (v NullableString) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableString) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableTime struct {
+ value *time.Time
+ isSet bool
+}
+
+func (v NullableTime) Get() *time.Time {
+ return v.value
+}
+
+func (v *NullableTime) Set(val *time.Time) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTime) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTime) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTime(val *time.Time) *NullableTime {
+ return &NullableTime{value: val, isSet: true}
+}
+
+func (v NullableTime) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTime) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+// IsNil checks if an input is nil
+func IsNil(i interface{}) bool {
+ if i == nil {
+ return true
+ }
+ switch reflect.TypeOf(i).Kind() {
+ case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice:
+ return reflect.ValueOf(i).IsNil()
+ case reflect.Array:
+ return reflect.ValueOf(i).IsZero()
+ }
+ return false
+}
+
+type MappedNullable interface {
+ ToMap() (map[string]interface{}, error)
+}
+
+// A wrapper for strict JSON decoding
+func newStrictDecoder(data []byte) *json.Decoder {
+ dec := json.NewDecoder(bytes.NewBuffer(data))
+ dec.DisallowUnknownFields()
+ return dec
+}
+
+// Prevent trying to import "fmt"
+func reportError(format string, a ...interface{}) error {
+ return fmt.Errorf(format, a...)
+}