Class: Inttegro::Order::FeeLineItemFee
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Order::FeeLineItemFee
- 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
-
#amount ⇒ Inttegro::Money::Amount
readonly
Value of the
amountfield in the Inttegro API payload. -
#description ⇒ String?
readonly
Value of the
descriptionfield 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
#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.
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.
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.
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.
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 |