Class: Inttegro::Order::ShippingLineItemShipping

Inherits:
T::Struct
  • Object
show all
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

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.

Returns:

  • (String)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String, nil)


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