Class: Inttegro::Shared::ShippingLineItem
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Shared::ShippingLineItem
- Defined in:
- lib/inttegro/shared/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::Shared::ShippingDetails
readonly
Value of the
shippingfield in the Inttegro API payload. -
#type ⇒ Inttegro::Shared::ShippingLineItemType
readonly
Line item type discriminator.
Instance Attribute Details
#shipping ⇒ Inttegro::Shared::ShippingDetails (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/shared/shipping_line_item.rb', line 31 class ShippingLineItem < T::Struct const :type, Inttegro::Shared::ShippingLineItemType const :shipping, Inttegro::Shared::ShippingDetails end |
#type ⇒ Inttegro::Shared::ShippingLineItemType (readonly)
Line item type discriminator
Required in the API payload. Wire name: type.
31 32 33 34 |
# File 'lib/inttegro/shared/shipping_line_item.rb', line 31 class ShippingLineItem < T::Struct const :type, Inttegro::Shared::ShippingLineItemType const :shipping, Inttegro::Shared::ShippingDetails end |