Class: Inttegro::Order::FeeLineItemFee

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/order/fee_line_item_fee.rb

Overview

Typed representation of the fee line item fee 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

#amount ⇒ Inttegro::Money::Amount (readonly)

Value of the amount field in the Inttegro API payload.

Required in the API payload. Wire name: amount.



48
49
50
51
52
53
54
# File 'lib/inttegro/order/fee_line_item_fee.rb', line 48

class FeeLineItemFee < T::Struct
  const :id, String
  const :description, T.nilable(String), default: nil
  const :tax_code, T.nilable(String), default: nil
  const :amount, Inttegro::Money::Amount
  const :label, String
end

#description ⇒ String? (readonly)

Value of the description field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: description.

Returns:

  • (String, nil)


48
49
50
51
52
53
54
# File 'lib/inttegro/order/fee_line_item_fee.rb', line 48

class FeeLineItemFee < T::Struct
  const :id, String
  const :description, T.nilable(String), default: nil
  const :tax_code, T.nilable(String), default: nil
  const :amount, Inttegro::Money::Amount
  const :label, String
end

#id ⇒ String (readonly)

Immutable order-line identifier with the oli_ prefix.

Required in the API payload. Wire name: id.

Returns:

  • (String)


48
49
50
51
52
53
54
# File 'lib/inttegro/order/fee_line_item_fee.rb', line 48

class FeeLineItemFee < T::Struct
  const :id, String
  const :description, T.nilable(String), default: nil
  const :tax_code, T.nilable(String), default: nil
  const :amount, Inttegro::Money::Amount
  const :label, String
end

#label ⇒ String (readonly)

Value of the label field in the Inttegro API payload.

Required in the API payload. Wire name: label.

Returns:

  • (String)


48
49
50
51
52
53
54
# File 'lib/inttegro/order/fee_line_item_fee.rb', line 48

class FeeLineItemFee < T::Struct
  const :id, String
  const :description, T.nilable(String), default: nil
  const :tax_code, T.nilable(String), default: nil
  const :amount, Inttegro::Money::Amount
  const :label, String
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)


48
49
50
51
52
53
54
# File 'lib/inttegro/order/fee_line_item_fee.rb', line 48

class FeeLineItemFee < T::Struct
  const :id, String
  const :description, T.nilable(String), default: nil
  const :tax_code, T.nilable(String), default: nil
  const :amount, Inttegro::Money::Amount
  const :label, String
end