Class: DeliveryFivePostClient::Models::API::V1::Partners::Orders::ProductValue

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/delivery_five_post_client/models/api/v1/partners/orders/product_value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(currency:, name:, price:, quantity:, barcode: nil, uin_code: nil, upi_code: nil, vat: nil, vendor_code: nil) ⇒ Object

Some parameter documentations has been truncated, see DeliveryFivePostClient::Models::API::V1::Partners::Orders::ProductValue for more details.

Товарная позиция / Product value

Parameters:

  • currency (Symbol, DeliveryFivePostClient::Models::API::V1::Currency) —

    Валюта (в текущей версии поддерживается только RUB) / Currency (currently only R

  • name (String) —

    Название товара / Product name

  • price (Float) —

    Цена за единицу товара / Unit price

  • quantity (Integer) —

    Количество единиц товара / Quantity

  • barcode (String) (defaults to: nil) —

    Штрих-код товара / Product barcode

  • uin_code (String) (defaults to: nil) —

    УИН для ювелирных изделий / UIN for jewelry

  • upi_code (String) (defaults to: nil) —

    Код маркировки товара / Product marking code

  • vat (Float, DeliveryFivePostClient::Models::API::V1::Partners::Orders::VatRate) (defaults to: nil) —

    Ставка НДС (%) / VAT rate (%)

  • vendor_code (String) (defaults to: nil) —

    Артикул товара / Vendor code



# File 'lib/delivery_five_post_client/models/api/v1/partners/orders/product_value.rb', line 65

Instance Attribute Details

#barcode ⇒ String?

Штрих-код товара / Product barcode

Returns:

  • (String, nil)


39
# File 'lib/delivery_five_post_client/models/api/v1/partners/orders/product_value.rb', line 39

optional :barcode, String

#currency ⇒ Symbol, DeliveryFivePostClient::Models::API::V1::Currency

Валюта (в текущей версии поддерживается только RUB) / Currency (currently only RUB is supported)



15
# File 'lib/delivery_five_post_client/models/api/v1/partners/orders/product_value.rb', line 15

required :currency, enum: -> { DeliveryFivePostClient::API::V1::Currency }

#name ⇒ String

Название товара / Product name

Returns:

  • (String)


21
# File 'lib/delivery_five_post_client/models/api/v1/partners/orders/product_value.rb', line 21

required :name, String

#price ⇒ Float

Цена за единицу товара / Unit price

Returns:

  • (Float)


27
# File 'lib/delivery_five_post_client/models/api/v1/partners/orders/product_value.rb', line 27

required :price, Float

#quantity ⇒ Integer

Количество единиц товара / Quantity

Returns:

  • (Integer)


33
# File 'lib/delivery_five_post_client/models/api/v1/partners/orders/product_value.rb', line 33

required :quantity, Integer

#uin_code ⇒ String?

УИН для ювелирных изделий / UIN for jewelry

Returns:

  • (String, nil)


45
# File 'lib/delivery_five_post_client/models/api/v1/partners/orders/product_value.rb', line 45

optional :uin_code, String, api_name: :uinCode

#upi_code ⇒ String?

Код маркировки товара / Product marking code

Returns:

  • (String, nil)


51
# File 'lib/delivery_five_post_client/models/api/v1/partners/orders/product_value.rb', line 51

optional :upi_code, String, api_name: :upiCode

#vat ⇒ Float, ...

Ставка НДС (%) / VAT rate (%)



57
# File 'lib/delivery_five_post_client/models/api/v1/partners/orders/product_value.rb', line 57

optional :vat, enum: -> { DeliveryFivePostClient::API::V1::Partners::Orders::VatRate }

#vendor_code ⇒ String?

Артикул товара / Vendor code

Returns:

  • (String, nil)


63
# File 'lib/delivery_five_post_client/models/api/v1/partners/orders/product_value.rb', line 63

optional :vendor_code, String, api_name: :vendorCode