Files
Sipro-Marketplaces/pkg/api/yandex/ymclient/docs/OrderItemDTO.md
2025-08-15 11:10:28 +03:00

18 KiB
Raw Blame History

OrderItemDTO

Properties

Name Type Description Notes
Id int64 Идентификатор товара в заказе. Позволяет идентифицировать товар в рамках данного заказа.
OfferId string Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте в Справке Маркета для продавцов. Что такое :no-translate[SKU] и как его назначать
OfferName string Название товара.
Price float32 Цена на товар в валюте заказа без учета вознаграждения продавцу за скидки по промокодам, купонам и акциям (параметр `subsidies`). Включает НДС.
BuyerPrice float32 Цена на товар в валюте покупателя. В цене уже учтены скидки по: * акциям; * купонам; * промокодам.
BuyerPriceBeforeDiscount float32 Стоимость товара в валюте покупателя до применения скидок по: * акциям; * купонам; * промокодам.
PriceBeforeDiscount Pointer to float32 Стоимость товара в валюте магазина до применения скидок. [optional]
Count int32 Количество единиц товара.
Vat OrderVatType
ShopSku Pointer to string Ваш :no-translate[SKU] — идентификатор товара в вашей системе. Правила использования :no-translate[SKU]: * У каждого товара :no-translate[SKU] должен быть свой. * Уже заданный :no-translate[SKU] нельзя освободить и использовать заново для другого товара. Каждый товар должен получать новый идентификатор, до того никогда не использовавшийся в вашем каталоге. :no-translate[SKU] товара можно изменить в кабинете продавца на Маркете. О том, как это сделать, читайте в Справке Маркета для продавцов. Что такое :no-translate[SKU] и как его назначать [optional]
Subsidy Pointer to float32 {% note warning "Вместо него используйте `subsidies`." %}   {% endnote %} Общее вознаграждение продавцу за DBS-доставку и все скидки на товар: * по промокодам; * по купонам; * по баллам Плюса; * по акциям. [optional]
PartnerWarehouseId Pointer to string Идентификатор склада в системе магазина, на который сформирован заказ. [optional]
Promos Pointer to []OrderItemPromoDTO Информация о вознаграждениях продавцу за скидки на товар по промокодам, купонам и акциям. [optional]
Instances Pointer to []OrderItemInstanceDTO Информация о маркировке единиц товара. Возвращаются данные для маркировки, переданные в запросе PUT campaigns/{campaignId}/orders/{orderId}/identifiers. Если магазин еще не передавал коды для этого заказа, `instances` отсутствует. [optional]
Details Pointer to []OrderItemDetailDTO {% note warning "Для получения информации о невыкупах и возвратах используйте GET campaigns/{campaignId}/returns." %}   {% endnote %} Информация о невыкупленных или возвращенных товарах в заказе. [optional]
Subsidies Pointer to []OrderItemSubsidyDTO Список субсидий по типам. [optional]
RequiredInstanceTypes Pointer to []OrderItemInstanceType Список необходимых маркировок товара. [optional]
Tags Pointer to []OrderItemTagType Признаки товара. [optional]

Methods

NewOrderItemDTO

func NewOrderItemDTO(id int64, offerId string, offerName string, price float32, buyerPrice float32, buyerPriceBeforeDiscount float32, count int32, vat OrderVatType, ) *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

NewOrderItemDTOWithDefaults

func NewOrderItemDTOWithDefaults() *OrderItemDTO

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

GetId

func (o *OrderItemDTO) GetId() int64

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *OrderItemDTO) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *OrderItemDTO) SetId(v int64)

SetId sets Id field to given value.

GetOfferId

func (o *OrderItemDTO) GetOfferId() string

GetOfferId returns the OfferId field if non-nil, zero value otherwise.

GetOfferIdOk

func (o *OrderItemDTO) GetOfferIdOk() (*string, bool)

GetOfferIdOk returns a tuple with the OfferId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOfferId

func (o *OrderItemDTO) SetOfferId(v string)

SetOfferId sets OfferId field to given value.

GetOfferName

func (o *OrderItemDTO) GetOfferName() string

GetOfferName returns the OfferName field if non-nil, zero value otherwise.

GetOfferNameOk

func (o *OrderItemDTO) GetOfferNameOk() (*string, bool)

GetOfferNameOk returns a tuple with the OfferName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOfferName

func (o *OrderItemDTO) SetOfferName(v string)

SetOfferName sets OfferName field to given value.

GetPrice

func (o *OrderItemDTO) GetPrice() float32

GetPrice returns the Price field if non-nil, zero value otherwise.

GetPriceOk

func (o *OrderItemDTO) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPrice

func (o *OrderItemDTO) SetPrice(v float32)

SetPrice sets Price field to given value.

GetBuyerPrice

func (o *OrderItemDTO) GetBuyerPrice() float32

GetBuyerPrice returns the BuyerPrice field if non-nil, zero value otherwise.

GetBuyerPriceOk

func (o *OrderItemDTO) GetBuyerPriceOk() (*float32, bool)

GetBuyerPriceOk returns a tuple with the BuyerPrice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBuyerPrice

func (o *OrderItemDTO) SetBuyerPrice(v float32)

SetBuyerPrice sets BuyerPrice field to given value.

GetBuyerPriceBeforeDiscount

func (o *OrderItemDTO) GetBuyerPriceBeforeDiscount() float32

GetBuyerPriceBeforeDiscount returns the BuyerPriceBeforeDiscount field if non-nil, zero value otherwise.

GetBuyerPriceBeforeDiscountOk

func (o *OrderItemDTO) GetBuyerPriceBeforeDiscountOk() (*float32, bool)

GetBuyerPriceBeforeDiscountOk returns a tuple with the BuyerPriceBeforeDiscount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBuyerPriceBeforeDiscount

func (o *OrderItemDTO) SetBuyerPriceBeforeDiscount(v float32)

SetBuyerPriceBeforeDiscount sets BuyerPriceBeforeDiscount field to given value.

GetPriceBeforeDiscount

func (o *OrderItemDTO) GetPriceBeforeDiscount() float32

GetPriceBeforeDiscount returns the PriceBeforeDiscount field if non-nil, zero value otherwise.

GetPriceBeforeDiscountOk

func (o *OrderItemDTO) GetPriceBeforeDiscountOk() (*float32, bool)

GetPriceBeforeDiscountOk returns a tuple with the PriceBeforeDiscount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPriceBeforeDiscount

func (o *OrderItemDTO) SetPriceBeforeDiscount(v float32)

SetPriceBeforeDiscount sets PriceBeforeDiscount field to given value.

HasPriceBeforeDiscount

func (o *OrderItemDTO) HasPriceBeforeDiscount() bool

HasPriceBeforeDiscount returns a boolean if a field has been set.

GetCount

func (o *OrderItemDTO) GetCount() int32

GetCount returns the Count field if non-nil, zero value otherwise.

GetCountOk

func (o *OrderItemDTO) GetCountOk() (*int32, bool)

GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCount

func (o *OrderItemDTO) SetCount(v int32)

SetCount sets Count field to given value.

GetVat

func (o *OrderItemDTO) GetVat() OrderVatType

GetVat returns the Vat field if non-nil, zero value otherwise.

GetVatOk

func (o *OrderItemDTO) GetVatOk() (*OrderVatType, bool)

GetVatOk returns a tuple with the Vat field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetVat

func (o *OrderItemDTO) SetVat(v OrderVatType)

SetVat sets Vat field to given value.

GetShopSku

func (o *OrderItemDTO) GetShopSku() string

GetShopSku returns the ShopSku field if non-nil, zero value otherwise.

GetShopSkuOk

func (o *OrderItemDTO) GetShopSkuOk() (*string, bool)

GetShopSkuOk returns a tuple with the ShopSku field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetShopSku

func (o *OrderItemDTO) SetShopSku(v string)

SetShopSku sets ShopSku field to given value.

HasShopSku

func (o *OrderItemDTO) HasShopSku() bool

HasShopSku returns a boolean if a field has been set.

GetSubsidy

func (o *OrderItemDTO) GetSubsidy() float32

GetSubsidy returns the Subsidy field if non-nil, zero value otherwise.

GetSubsidyOk

func (o *OrderItemDTO) GetSubsidyOk() (*float32, bool)

GetSubsidyOk returns a tuple with the Subsidy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSubsidy

func (o *OrderItemDTO) SetSubsidy(v float32)

SetSubsidy sets Subsidy field to given value.

HasSubsidy

func (o *OrderItemDTO) HasSubsidy() bool

HasSubsidy returns a boolean if a field has been set.

GetPartnerWarehouseId

func (o *OrderItemDTO) GetPartnerWarehouseId() string

GetPartnerWarehouseId returns the PartnerWarehouseId field if non-nil, zero value otherwise.

GetPartnerWarehouseIdOk

func (o *OrderItemDTO) GetPartnerWarehouseIdOk() (*string, bool)

GetPartnerWarehouseIdOk returns a tuple with the PartnerWarehouseId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPartnerWarehouseId

func (o *OrderItemDTO) SetPartnerWarehouseId(v string)

SetPartnerWarehouseId sets PartnerWarehouseId field to given value.

HasPartnerWarehouseId

func (o *OrderItemDTO) HasPartnerWarehouseId() bool

HasPartnerWarehouseId returns a boolean if a field has been set.

GetPromos

func (o *OrderItemDTO) GetPromos() []OrderItemPromoDTO

GetPromos returns the Promos field if non-nil, zero value otherwise.

GetPromosOk

func (o *OrderItemDTO) GetPromosOk() (*[]OrderItemPromoDTO, bool)

GetPromosOk returns a tuple with the Promos field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPromos

func (o *OrderItemDTO) SetPromos(v []OrderItemPromoDTO)

SetPromos sets Promos field to given value.

HasPromos

func (o *OrderItemDTO) HasPromos() bool

HasPromos returns a boolean if a field has been set.

SetPromosNil

func (o *OrderItemDTO) SetPromosNil(b bool)

SetPromosNil sets the value for Promos to be an explicit nil

UnsetPromos

func (o *OrderItemDTO) UnsetPromos()

UnsetPromos ensures that no value is present for Promos, not even an explicit nil

GetInstances

func (o *OrderItemDTO) GetInstances() []OrderItemInstanceDTO

GetInstances returns the Instances field if non-nil, zero value otherwise.

GetInstancesOk

func (o *OrderItemDTO) GetInstancesOk() (*[]OrderItemInstanceDTO, bool)

GetInstancesOk returns a tuple with the Instances field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetInstances

func (o *OrderItemDTO) SetInstances(v []OrderItemInstanceDTO)

SetInstances sets Instances field to given value.

HasInstances

func (o *OrderItemDTO) HasInstances() bool

HasInstances returns a boolean if a field has been set.

SetInstancesNil

func (o *OrderItemDTO) SetInstancesNil(b bool)

SetInstancesNil sets the value for Instances to be an explicit nil

UnsetInstances

func (o *OrderItemDTO) UnsetInstances()

UnsetInstances ensures that no value is present for Instances, not even an explicit nil

GetDetails

func (o *OrderItemDTO) GetDetails() []OrderItemDetailDTO

GetDetails returns the Details field if non-nil, zero value otherwise.

GetDetailsOk

func (o *OrderItemDTO) GetDetailsOk() (*[]OrderItemDetailDTO, bool)

GetDetailsOk returns a tuple with the Details field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDetails

func (o *OrderItemDTO) SetDetails(v []OrderItemDetailDTO)

SetDetails sets Details field to given value.

HasDetails

func (o *OrderItemDTO) HasDetails() bool

HasDetails returns a boolean if a field has been set.

SetDetailsNil

func (o *OrderItemDTO) SetDetailsNil(b bool)

SetDetailsNil sets the value for Details to be an explicit nil

UnsetDetails

func (o *OrderItemDTO) UnsetDetails()

UnsetDetails ensures that no value is present for Details, not even an explicit nil

GetSubsidies

func (o *OrderItemDTO) GetSubsidies() []OrderItemSubsidyDTO

GetSubsidies returns the Subsidies field if non-nil, zero value otherwise.

GetSubsidiesOk

func (o *OrderItemDTO) GetSubsidiesOk() (*[]OrderItemSubsidyDTO, bool)

GetSubsidiesOk returns a tuple with the Subsidies field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSubsidies

func (o *OrderItemDTO) SetSubsidies(v []OrderItemSubsidyDTO)

SetSubsidies sets Subsidies field to given value.

HasSubsidies

func (o *OrderItemDTO) HasSubsidies() bool

HasSubsidies returns a boolean if a field has been set.

SetSubsidiesNil

func (o *OrderItemDTO) SetSubsidiesNil(b bool)

SetSubsidiesNil sets the value for Subsidies to be an explicit nil

UnsetSubsidies

func (o *OrderItemDTO) UnsetSubsidies()

UnsetSubsidies ensures that no value is present for Subsidies, not even an explicit nil

GetRequiredInstanceTypes

func (o *OrderItemDTO) GetRequiredInstanceTypes() []OrderItemInstanceType

GetRequiredInstanceTypes returns the RequiredInstanceTypes field if non-nil, zero value otherwise.

GetRequiredInstanceTypesOk

func (o *OrderItemDTO) GetRequiredInstanceTypesOk() (*[]OrderItemInstanceType, bool)

GetRequiredInstanceTypesOk returns a tuple with the RequiredInstanceTypes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRequiredInstanceTypes

func (o *OrderItemDTO) SetRequiredInstanceTypes(v []OrderItemInstanceType)

SetRequiredInstanceTypes sets RequiredInstanceTypes field to given value.

HasRequiredInstanceTypes

func (o *OrderItemDTO) HasRequiredInstanceTypes() bool

HasRequiredInstanceTypes returns a boolean if a field has been set.

SetRequiredInstanceTypesNil

func (o *OrderItemDTO) SetRequiredInstanceTypesNil(b bool)

SetRequiredInstanceTypesNil sets the value for RequiredInstanceTypes to be an explicit nil

UnsetRequiredInstanceTypes

func (o *OrderItemDTO) UnsetRequiredInstanceTypes()

UnsetRequiredInstanceTypes ensures that no value is present for RequiredInstanceTypes, not even an explicit nil

GetTags

func (o *OrderItemDTO) GetTags() []OrderItemTagType

GetTags returns the Tags field if non-nil, zero value otherwise.

GetTagsOk

func (o *OrderItemDTO) GetTagsOk() (*[]OrderItemTagType, bool)

GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTags

func (o *OrderItemDTO) SetTags(v []OrderItemTagType)

SetTags sets Tags field to given value.

HasTags

func (o *OrderItemDTO) HasTags() bool

HasTags returns a boolean if a field has been set.

SetTagsNil

func (o *OrderItemDTO) SetTagsNil(b bool)

SetTagsNil sets the value for Tags to be an explicit nil

UnsetTags

func (o *OrderItemDTO) UnsetTags()

UnsetTags ensures that no value is present for Tags, not even an explicit nil

[Back to Model list] [Back to API list] [Back to README]