Class: DeliveryFivePostClient::Models::API::V1::OrderCost
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- DeliveryFivePostClient::Models::API::V1::OrderCost
- Defined in:
- lib/delivery_five_post_client/models/api/v1/order_cost.rb
Defined Under Namespace
Modules: PaymentType
Instance Attribute Summary collapse
-
#assessed_value ⇒ Float
Оценочная стоимость заказа / Order assessed value.
-
#delivery_price ⇒ Float?
Стоимость доставки / Delivery price.
-
#payment_currency ⇒ Symbol, DeliveryFivePostClient::Models::API::V1::Currency
Валюта (в текущей версии поддерживается только RUB) / Currency (currently only RUB is supported).
-
#payment_type ⇒ Symbol, ...
Тип оплаты / Payment type.
-
#payment_value ⇒ Float?
Сумма наложенного платежа / Cash on delivery amount.
-
#prepayment_sum ⇒ Float?
Сумма предоплаты / Prepayment amount.
-
#price ⇒ Float
Общая стоимость товаров / Total price of items.
Instance Method Summary collapse
-
#initialize(assessed_value:, payment_currency:, price:, delivery_price: nil, payment_type: nil, payment_value: nil, prepayment_sum: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see OrderCost for more details.
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(assessed_value:, payment_currency:, price:, delivery_price: nil, payment_type: nil, payment_value: nil, prepayment_sum: nil) ⇒ Object
Some parameter documentations has been truncated, see DeliveryFivePostClient::Models::API::V1::OrderCost for more details.
Стоимостные параметры заказа / Order cost parameters
|
|
# File 'lib/delivery_five_post_client/models/api/v1/order_cost.rb', line 55
|
Instance Attribute Details
#assessed_value ⇒ Float
Оценочная стоимость заказа / Order assessed value
12 |
# File 'lib/delivery_five_post_client/models/api/v1/order_cost.rb', line 12 required :assessed_value, Float, api_name: :assessedValue |
#delivery_price ⇒ Float?
Стоимость доставки / Delivery price
33 |
# File 'lib/delivery_five_post_client/models/api/v1/order_cost.rb', line 33 optional :delivery_price, Float, api_name: :deliveryPrice |
#payment_currency ⇒ Symbol, DeliveryFivePostClient::Models::API::V1::Currency
Валюта (в текущей версии поддерживается только RUB) / Currency (currently only RUB is supported)
19 20 21 |
# File 'lib/delivery_five_post_client/models/api/v1/order_cost.rb', line 19 required :payment_currency, enum: -> { DeliveryFivePostClient::API::V1::Currency }, api_name: :paymentCurrency |
#payment_type ⇒ Symbol, ...
Тип оплаты / Payment type
39 40 41 |
# File 'lib/delivery_five_post_client/models/api/v1/order_cost.rb', line 39 optional :payment_type, enum: -> { DeliveryFivePostClient::API::V1::OrderCost::PaymentType }, api_name: :paymentType |
#payment_value ⇒ Float?
Сумма наложенного платежа / Cash on delivery amount
47 |
# File 'lib/delivery_five_post_client/models/api/v1/order_cost.rb', line 47 optional :payment_value, Float, api_name: :paymentValue |
#prepayment_sum ⇒ Float?
Сумма предоплаты / Prepayment amount
53 |
# File 'lib/delivery_five_post_client/models/api/v1/order_cost.rb', line 53 optional :prepayment_sum, Float, api_name: :prepaymentSum |
#price ⇒ Float
Общая стоимость товаров / Total price of items
27 |
# File 'lib/delivery_five_post_client/models/api/v1/order_cost.rb', line 27 required :price, Float |