Class: Inttegro::Order::ShippingLineItem
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Order::ShippingLineItem
- Defined in:
- lib/inttegro/order/shipping_line_item.rb
Overview
Typed representation of the shipping line item object in the Inttegro API.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#shipping ⇒ Inttegro::Order::ShippingLineItemShipping
readonly
Value of the
shippingfield in the Inttegro API payload. -
#type ⇒ Inttegro::Order::ShippingLineItemType
readonly
Value of the
typefield in the Inttegro API payload.
Instance Attribute Details
#shipping ⇒ Inttegro::Order::ShippingLineItemShipping (readonly)
Value of the shipping field in the Inttegro API payload.
Required in the API payload. Wire name: shipping.
31 32 33 34 |
# File 'lib/inttegro/order/shipping_line_item.rb', line 31 class ShippingLineItem < T::Struct const :type, Inttegro::Order::ShippingLineItemType const :shipping, Inttegro::Order::ShippingLineItemShipping end |
#type ⇒ Inttegro::Order::ShippingLineItemType (readonly)
Value of the type field in the Inttegro API payload.
Required in the API payload. Wire name: type.
31 32 33 34 |
# File 'lib/inttegro/order/shipping_line_item.rb', line 31 class ShippingLineItem < T::Struct const :type, Inttegro::Order::ShippingLineItemType const :shipping, Inttegro::Order::ShippingLineItemShipping end |