Class: Inttegro::Order::ShippingLineItemShipping
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Order::ShippingLineItemShipping
- Defined in:
- lib/inttegro/order/shipping_line_item_shipping.rb
Overview
Typed representation of the shipping line item shipping 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
-
#fee ⇒ Inttegro::Money::Amount
readonly
Value of the
feefield in the Inttegro API payload. -
#id ⇒ String
readonly
Immutable order-line identifier with the
oli_prefix. -
#label ⇒ String?
readonly
Value of the
labelfield in the Inttegro API payload. -
#tax_code ⇒ String?
readonly
Value of the
tax_codefield in the Inttegro API payload.
Instance Attribute Details
#fee ⇒ Inttegro::Money::Amount (readonly)
Value of the fee field in the Inttegro API payload.
Required in the API payload. Wire name: fee.
42 43 44 45 46 47 |
# File 'lib/inttegro/order/shipping_line_item_shipping.rb', line 42 class ShippingLineItemShipping < T::Struct const :id, String const :tax_code, T.nilable(String), default: nil const :label, T.nilable(String), default: nil const :fee, Inttegro::Money::Amount end |
#id ⇒ String (readonly)
Immutable order-line identifier with the oli_ prefix.
Required in the API payload. Wire name: id.
42 43 44 45 46 47 |
# File 'lib/inttegro/order/shipping_line_item_shipping.rb', line 42 class ShippingLineItemShipping < T::Struct const :id, String const :tax_code, T.nilable(String), default: nil const :label, T.nilable(String), default: nil const :fee, Inttegro::Money::Amount end |
#label ⇒ String? (readonly)
Value of the label field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: label.
42 43 44 45 46 47 |
# File 'lib/inttegro/order/shipping_line_item_shipping.rb', line 42 class ShippingLineItemShipping < T::Struct const :id, String const :tax_code, T.nilable(String), default: nil const :label, T.nilable(String), default: nil const :fee, Inttegro::Money::Amount end |
#tax_code ⇒ String? (readonly)
Value of the tax_code field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: tax_code.
42 43 44 45 46 47 |
# File 'lib/inttegro/order/shipping_line_item_shipping.rb', line 42 class ShippingLineItemShipping < T::Struct const :id, String const :tax_code, T.nilable(String), default: nil const :label, T.nilable(String), default: nil const :fee, Inttegro::Money::Amount end |