Class: ModernTreasury::Models::LineItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModernTreasury::Models::LineItem
- Defined in:
- lib/modern_treasury/models/line_item.rb
Overview
Defined Under Namespace
Modules: ItemizableType Classes: Accounting
Instance Attribute Summary collapse
- #accounting ⇒ ModernTreasury::Models::LineItem::Accounting deprecated Deprecated.
- #accounting_category_id ⇒ String? deprecated Deprecated.
- #accounting_ledger_class_id ⇒ String? deprecated Deprecated.
-
#amount ⇒ Integer
Value in specified currency’s smallest unit.
- #created_at ⇒ Time
-
#description ⇒ String?
A free-form description of the line item.
- #id ⇒ String
-
#itemizable_id ⇒ String
The ID of the payment order or expected payment.
-
#itemizable_type ⇒ Symbol, ModernTreasury::Models::LineItem::ItemizableType
One of ‘payment_orders` or `expected_payments`.
-
#live_mode ⇒ Boolean
This field will be true if this object exists in the live environment or false if it exists in the test environment.
-
#metadata ⇒ Hash{Symbol=>String}
Additional data represented as key-value pairs.
- #object ⇒ String
- #updated_at ⇒ Time
Instance Method Summary collapse
-
#initialize(account_id: nil, class_id: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Accounting for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(account_id: nil, class_id: nil) ⇒ Object
Some parameter documentations has been truncated, see Accounting for more details.
|
|
# File 'lib/modern_treasury/models/line_item.rb', line 91
|
Instance Attribute Details
#accounting ⇒ ModernTreasury::Models::LineItem::Accounting
16 |
# File 'lib/modern_treasury/models/line_item.rb', line 16 required :accounting, -> { ModernTreasury::LineItem::Accounting } |
#accounting_category_id ⇒ String?
The ID of one of your accounting categories. Note that these will only be accessible if your accounting system has been connected.
25 |
# File 'lib/modern_treasury/models/line_item.rb', line 25 required :accounting_category_id, String, nil?: true |
#accounting_ledger_class_id ⇒ String?
The ID of one of the class objects in your accounting system. Class objects track segments of your business independent of client or project. Note that these will only be accessible if your accounting system has been connected.
35 |
# File 'lib/modern_treasury/models/line_item.rb', line 35 required :accounting_ledger_class_id, String, nil?: true |
#amount ⇒ Integer
Value in specified currency’s smallest unit. e.g. $10 would be represented as 1000.
42 |
# File 'lib/modern_treasury/models/line_item.rb', line 42 required :amount, Integer |
#created_at ⇒ Time
47 |
# File 'lib/modern_treasury/models/line_item.rb', line 47 required :created_at, Time |
#description ⇒ String?
A free-form description of the line item.
53 |
# File 'lib/modern_treasury/models/line_item.rb', line 53 required :description, String, nil?: true |
#id ⇒ String
10 |
# File 'lib/modern_treasury/models/line_item.rb', line 10 required :id, String |
#itemizable_id ⇒ String
The ID of the payment order or expected payment.
59 |
# File 'lib/modern_treasury/models/line_item.rb', line 59 required :itemizable_id, String |
#itemizable_type ⇒ Symbol, ModernTreasury::Models::LineItem::ItemizableType
One of ‘payment_orders` or `expected_payments`.
65 |
# File 'lib/modern_treasury/models/line_item.rb', line 65 required :itemizable_type, enum: -> { ModernTreasury::LineItem::ItemizableType } |
#live_mode ⇒ Boolean
This field will be true if this object exists in the live environment or false if it exists in the test environment.
72 |
# File 'lib/modern_treasury/models/line_item.rb', line 72 required :live_mode, ModernTreasury::Internal::Type::Boolean |
#metadata ⇒ Hash{Symbol=>String}
Additional data represented as key-value pairs. Both the key and value must be strings.
79 |
# File 'lib/modern_treasury/models/line_item.rb', line 79 required :metadata, ModernTreasury::Internal::Type::HashOf[String] |
#object ⇒ String
84 |
# File 'lib/modern_treasury/models/line_item.rb', line 84 required :object, String |
#updated_at ⇒ Time
89 |
# File 'lib/modern_treasury/models/line_item.rb', line 89 required :updated_at, Time |