modern_treasury 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/README.md +1 -1
- data/lib/modern_treasury/internal/transport/base_client.rb +1 -4
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/modern_treasury/internal/type/base_model.rb +6 -12
- data/lib/modern_treasury/internal/util.rb +1 -1
- data/lib/modern_treasury/models/account_collection_flow.rb +2 -6
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +1 -3
- data/lib/modern_treasury/models/bulk_request_create_params.rb +102 -75
- data/lib/modern_treasury/models/bulk_result.rb +1 -3
- data/lib/modern_treasury/models/child_legal_entity_create.rb +2 -6
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +3 -9
- data/lib/modern_treasury/models/counterparty.rb +4 -16
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +1 -3
- data/lib/modern_treasury/models/counterparty_create_params.rb +12 -27
- data/lib/modern_treasury/models/expected_payment_create_params.rb +1 -3
- data/lib/modern_treasury/models/expected_payment_list_params.rb +1 -0
- data/lib/modern_treasury/models/expected_payment_type.rb +1 -0
- data/lib/modern_treasury/models/external_account_create_params.rb +3 -6
- data/lib/modern_treasury/models/external_account_verify_params.rb +1 -0
- data/lib/modern_treasury/models/external_account_verify_response.rb +1 -0
- data/lib/modern_treasury/models/internal_account.rb +2 -3
- data/lib/modern_treasury/models/internal_account_create_params.rb +2 -3
- data/lib/modern_treasury/models/internal_account_list_params.rb +1 -0
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +1 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +2 -7
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +2 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +1 -3
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +1 -4
- data/lib/modern_treasury/models/ledger_account_list_params.rb +1 -4
- data/lib/modern_treasury/models/ledger_account_settlement.rb +3 -3
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +1 -3
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +2 -6
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +45 -1
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +2 -6
- data/lib/modern_treasury/models/legal_entity.rb +3 -10
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +1 -3
- data/lib/modern_treasury/models/legal_entity_association.rb +7 -21
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +1 -3
- data/lib/modern_treasury/models/legal_entity_create_params.rb +3 -9
- data/lib/modern_treasury/models/legal_entity_update_params.rb +2 -6
- data/lib/modern_treasury/models/line_item.rb +40 -3
- data/lib/modern_treasury/models/payment_action_create_response.rb +1 -1
- data/lib/modern_treasury/models/payment_action_list_params.rb +1 -2
- data/lib/modern_treasury/models/payment_action_list_response.rb +1 -1
- data/lib/modern_treasury/models/payment_action_retrieve_response.rb +1 -1
- data/lib/modern_treasury/models/payment_action_update_params.rb +1 -0
- data/lib/modern_treasury/models/payment_action_update_response.rb +1 -1
- data/lib/modern_treasury/models/payment_flow.rb +1 -4
- data/lib/modern_treasury/models/payment_order.rb +37 -3
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +42 -21
- data/lib/modern_treasury/models/payment_order_create_params.rb +42 -24
- data/lib/modern_treasury/models/payment_order_list_params.rb +1 -0
- data/lib/modern_treasury/models/payment_order_type.rb +1 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +41 -21
- data/lib/modern_treasury/models/payment_reference.rb +1 -0
- data/lib/modern_treasury/models/reconciliation_rule.rb +1 -0
- data/lib/modern_treasury/models/return_object.rb +1 -0
- data/lib/modern_treasury/models/routing_detail.rb +1 -0
- data/lib/modern_treasury/models/routing_detail_create_params.rb +1 -0
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -7
- data/lib/modern_treasury/models/transaction.rb +1 -0
- data/lib/modern_treasury/models/transaction_create_params.rb +1 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -6
- data/lib/modern_treasury/models.rb +0 -2
- data/lib/modern_treasury/resources/ledger_transactions.rb +3 -1
- data/lib/modern_treasury/resources/payment_orders.rb +3 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +0 -1
- data/rbi/modern_treasury/errors.rbi +2 -2
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +141 -8
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +5 -0
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +5 -0
- data/rbi/modern_treasury/models/ledger_account_settlement.rbi +3 -3
- data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +84 -0
- data/rbi/modern_treasury/models/line_item.rbi +52 -4
- data/rbi/modern_treasury/models/payment_action_create_response.rbi +2 -2
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -10
- data/rbi/modern_treasury/models/payment_action_list_response.rbi +2 -2
- data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +2 -2
- data/rbi/modern_treasury/models/payment_action_update_params.rbi +5 -0
- data/rbi/modern_treasury/models/payment_action_update_response.rbi +2 -2
- data/rbi/modern_treasury/models/payment_order.rbi +59 -4
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +66 -4
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +63 -4
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order_type.rbi +1 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +63 -4
- data/rbi/modern_treasury/models/payment_reference.rbi +5 -0
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +2 -0
- data/rbi/modern_treasury/models/return_object.rbi +5 -0
- data/rbi/modern_treasury/models/routing_detail.rbi +5 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +5 -0
- data/rbi/modern_treasury/models/transaction.rbi +1 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models.rbi +0 -2
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -0
- data/rbi/modern_treasury/resources/payment_orders.rbi +6 -3
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +42 -12
- data/sig/modern_treasury/models/counterparty_create_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_type.rbs +2 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_verify_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_verify_response.rbs +2 -0
- data/sig/modern_treasury/models/internal_account.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +4 -4
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +50 -0
- data/sig/modern_treasury/models/line_item.rbs +16 -4
- data/sig/modern_treasury/models/payment_action_list_params.rbs +9 -5
- data/sig/modern_treasury/models/payment_action_update_params.rbs +8 -1
- data/sig/modern_treasury/models/payment_order.rbs +18 -4
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +20 -6
- data/sig/modern_treasury/models/payment_order_create_params.rbs +20 -6
- data/sig/modern_treasury/models/payment_order_list_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_type.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +20 -6
- data/sig/modern_treasury/models/payment_reference.rbs +2 -0
- data/sig/modern_treasury/models/reconciliation_rule.rbs +2 -0
- data/sig/modern_treasury/models/return_object.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +2 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +2 -0
- data/sig/modern_treasury/models/transaction.rbs +2 -0
- data/sig/modern_treasury/models/transaction_create_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models.rbs +0 -2
- data/sig/modern_treasury/resources/ledger_transactions.rbs +1 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +3 -3
- metadata +2 -5
- data/lib/modern_treasury/models/accounting.rb +0 -30
- data/rbi/modern_treasury/models/accounting.rbi +0 -48
- data/sig/modern_treasury/models/accounting.rbs +0 -15
|
@@ -79,6 +79,7 @@ module ModernTreasury
|
|
|
79
79
|
| :dk_nets
|
|
80
80
|
| :eft
|
|
81
81
|
| :ethereum
|
|
82
|
+
| :gb_fps
|
|
82
83
|
| :hu_ics
|
|
83
84
|
| :interac
|
|
84
85
|
| :masav
|
|
@@ -117,6 +118,7 @@ module ModernTreasury
|
|
|
117
118
|
DK_NETS: :dk_nets
|
|
118
119
|
EFT: :eft
|
|
119
120
|
ETHEREUM: :ethereum
|
|
121
|
+
GB_FPS: :gb_fps
|
|
120
122
|
HU_ICS: :hu_ics
|
|
121
123
|
INTERAC: :interac
|
|
122
124
|
MASAV: :masav
|
|
@@ -113,6 +113,7 @@ module ModernTreasury
|
|
|
113
113
|
| :dk_nets
|
|
114
114
|
| :eft
|
|
115
115
|
| :ethereum
|
|
116
|
+
| :gb_fps
|
|
116
117
|
| :hu_ics
|
|
117
118
|
| :interac
|
|
118
119
|
| :masav
|
|
@@ -151,6 +152,7 @@ module ModernTreasury
|
|
|
151
152
|
DK_NETS: :dk_nets
|
|
152
153
|
EFT: :eft
|
|
153
154
|
ETHEREUM: :ethereum
|
|
155
|
+
GB_FPS: :gb_fps
|
|
154
156
|
HU_ICS: :hu_ics
|
|
155
157
|
INTERAC: :interac
|
|
156
158
|
MASAV: :masav
|
|
@@ -99,6 +99,7 @@ module ModernTreasury
|
|
|
99
99
|
| :dk_nets
|
|
100
100
|
| :eft
|
|
101
101
|
| :ethereum
|
|
102
|
+
| :gb_fps
|
|
102
103
|
| :hu_ics
|
|
103
104
|
| :interac
|
|
104
105
|
| :masav
|
|
@@ -137,6 +138,7 @@ module ModernTreasury
|
|
|
137
138
|
DK_NETS: :dk_nets
|
|
138
139
|
EFT: :eft
|
|
139
140
|
ETHEREUM: :ethereum
|
|
141
|
+
GB_FPS: :gb_fps
|
|
140
142
|
HU_ICS: :hu_ics
|
|
141
143
|
INTERAC: :interac
|
|
142
144
|
MASAV: :masav
|
|
@@ -151,6 +151,7 @@ module ModernTreasury
|
|
|
151
151
|
| :dk_nets
|
|
152
152
|
| :eft
|
|
153
153
|
| :ethereum
|
|
154
|
+
| :gb_fps
|
|
154
155
|
| :hu_ics
|
|
155
156
|
| :interac
|
|
156
157
|
| :masav
|
|
@@ -190,6 +191,7 @@ module ModernTreasury
|
|
|
190
191
|
DK_NETS: :dk_nets
|
|
191
192
|
EFT: :eft
|
|
192
193
|
ETHEREUM: :ethereum
|
|
194
|
+
GB_FPS: :gb_fps
|
|
193
195
|
HU_ICS: :hu_ics
|
|
194
196
|
INTERAC: :interac
|
|
195
197
|
MASAV: :masav
|
|
@@ -89,6 +89,7 @@ module ModernTreasury
|
|
|
89
89
|
| :dk_nets
|
|
90
90
|
| :eft
|
|
91
91
|
| :ethereum
|
|
92
|
+
| :gb_fps
|
|
92
93
|
| :hu_ics
|
|
93
94
|
| :interac
|
|
94
95
|
| :masav
|
|
@@ -128,6 +129,7 @@ module ModernTreasury
|
|
|
128
129
|
DK_NETS: :dk_nets
|
|
129
130
|
EFT: :eft
|
|
130
131
|
ETHEREUM: :ethereum
|
|
132
|
+
GB_FPS: :gb_fps
|
|
131
133
|
HU_ICS: :hu_ics
|
|
132
134
|
INTERAC: :interac
|
|
133
135
|
MASAV: :masav
|
|
@@ -244,6 +244,7 @@ module ModernTreasury
|
|
|
244
244
|
| :dk_nets
|
|
245
245
|
| :eft
|
|
246
246
|
| :ethereum
|
|
247
|
+
| :gb_fps
|
|
247
248
|
| :hu_ics
|
|
248
249
|
| :interac
|
|
249
250
|
| :masav
|
|
@@ -282,6 +283,7 @@ module ModernTreasury
|
|
|
282
283
|
DK_NETS: :dk_nets
|
|
283
284
|
EFT: :eft
|
|
284
285
|
ETHEREUM: :ethereum
|
|
286
|
+
GB_FPS: :gb_fps
|
|
285
287
|
HU_ICS: :hu_ics
|
|
286
288
|
INTERAC: :interac
|
|
287
289
|
MASAV: :masav
|
|
@@ -19,8 +19,6 @@ module ModernTreasury
|
|
|
19
19
|
|
|
20
20
|
class AccountDetailRetrieveParams = ModernTreasury::Models::AccountDetailRetrieveParams
|
|
21
21
|
|
|
22
|
-
class Accounting = ModernTreasury::Models::Accounting
|
|
23
|
-
|
|
24
22
|
module AccountsType = ModernTreasury::Models::AccountsType
|
|
25
23
|
|
|
26
24
|
class Address = ModernTreasury::Models::Address
|
|
@@ -8,7 +8,7 @@ module ModernTreasury
|
|
|
8
8
|
direction: ModernTreasury::Models::PaymentOrderCreateParams::direction,
|
|
9
9
|
originating_account_id: String,
|
|
10
10
|
type: ModernTreasury::Models::payment_order_type,
|
|
11
|
-
?accounting: ModernTreasury::Accounting,
|
|
11
|
+
?accounting: ModernTreasury::PaymentOrderCreateParams::Accounting,
|
|
12
12
|
?accounting_category_id: String?,
|
|
13
13
|
?accounting_ledger_class_id: String?,
|
|
14
14
|
?charge_bearer: ModernTreasury::Models::PaymentOrderCreateParams::charge_bearer?,
|
|
@@ -50,7 +50,7 @@ module ModernTreasury
|
|
|
50
50
|
|
|
51
51
|
def update: (
|
|
52
52
|
String id,
|
|
53
|
-
?accounting: ModernTreasury::Accounting,
|
|
53
|
+
?accounting: ModernTreasury::PaymentOrderUpdateParams::Accounting,
|
|
54
54
|
?accounting_category_id: String?,
|
|
55
55
|
?accounting_ledger_class_id: String?,
|
|
56
56
|
?amount: Integer,
|
|
@@ -114,7 +114,7 @@ module ModernTreasury
|
|
|
114
114
|
direction: ModernTreasury::Models::PaymentOrderCreateAsyncParams::direction,
|
|
115
115
|
originating_account_id: String,
|
|
116
116
|
type: ModernTreasury::Models::payment_order_type,
|
|
117
|
-
?accounting: ModernTreasury::Accounting,
|
|
117
|
+
?accounting: ModernTreasury::PaymentOrderCreateAsyncParams::Accounting,
|
|
118
118
|
?accounting_category_id: String?,
|
|
119
119
|
?accounting_ledger_class_id: String?,
|
|
120
120
|
?charge_bearer: ModernTreasury::Models::PaymentOrderCreateAsyncParams::charge_bearer?,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: modern_treasury
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Modern Treasury
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-09-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|
|
@@ -66,7 +66,6 @@ files:
|
|
|
66
66
|
- lib/modern_treasury/models/account_detail_delete_params.rb
|
|
67
67
|
- lib/modern_treasury/models/account_detail_list_params.rb
|
|
68
68
|
- lib/modern_treasury/models/account_detail_retrieve_params.rb
|
|
69
|
-
- lib/modern_treasury/models/accounting.rb
|
|
70
69
|
- lib/modern_treasury/models/accounts_type.rb
|
|
71
70
|
- lib/modern_treasury/models/address.rb
|
|
72
71
|
- lib/modern_treasury/models/address_request.rb
|
|
@@ -366,7 +365,6 @@ files:
|
|
|
366
365
|
- rbi/modern_treasury/models/account_detail_delete_params.rbi
|
|
367
366
|
- rbi/modern_treasury/models/account_detail_list_params.rbi
|
|
368
367
|
- rbi/modern_treasury/models/account_detail_retrieve_params.rbi
|
|
369
|
-
- rbi/modern_treasury/models/accounting.rbi
|
|
370
368
|
- rbi/modern_treasury/models/accounts_type.rbi
|
|
371
369
|
- rbi/modern_treasury/models/address.rbi
|
|
372
370
|
- rbi/modern_treasury/models/address_request.rbi
|
|
@@ -665,7 +663,6 @@ files:
|
|
|
665
663
|
- sig/modern_treasury/models/account_detail_delete_params.rbs
|
|
666
664
|
- sig/modern_treasury/models/account_detail_list_params.rbs
|
|
667
665
|
- sig/modern_treasury/models/account_detail_retrieve_params.rbs
|
|
668
|
-
- sig/modern_treasury/models/accounting.rbs
|
|
669
666
|
- sig/modern_treasury/models/accounts_type.rbs
|
|
670
667
|
- sig/modern_treasury/models/address.rbs
|
|
671
668
|
- sig/modern_treasury/models/address_request.rbs
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module ModernTreasury
|
|
4
|
-
module Models
|
|
5
|
-
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute account_id
|
|
7
|
-
# The ID of one of your accounting categories. Note that these will only be
|
|
8
|
-
# accessible if your accounting system has been connected.
|
|
9
|
-
#
|
|
10
|
-
# @return [String, nil]
|
|
11
|
-
optional :account_id, String, nil?: true
|
|
12
|
-
|
|
13
|
-
# @!attribute class_id
|
|
14
|
-
# The ID of one of the class objects in your accounting system. Class objects
|
|
15
|
-
# track segments of your business independent of client or project. Note that
|
|
16
|
-
# these will only be accessible if your accounting system has been connected.
|
|
17
|
-
#
|
|
18
|
-
# @return [String, nil]
|
|
19
|
-
optional :class_id, String, nil?: true
|
|
20
|
-
|
|
21
|
-
# @!method initialize(account_id: nil, class_id: nil)
|
|
22
|
-
# Some parameter documentations has been truncated, see
|
|
23
|
-
# {ModernTreasury::Models::Accounting} for more details.
|
|
24
|
-
#
|
|
25
|
-
# @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
|
26
|
-
#
|
|
27
|
-
# @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module ModernTreasury
|
|
4
|
-
module Models
|
|
5
|
-
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(ModernTreasury::Accounting, ModernTreasury::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# The ID of one of your accounting categories. Note that these will only be
|
|
12
|
-
# accessible if your accounting system has been connected.
|
|
13
|
-
sig { returns(T.nilable(String)) }
|
|
14
|
-
attr_accessor :account_id
|
|
15
|
-
|
|
16
|
-
# The ID of one of the class objects in your accounting system. Class objects
|
|
17
|
-
# track segments of your business independent of client or project. Note that
|
|
18
|
-
# these will only be accessible if your accounting system has been connected.
|
|
19
|
-
sig { returns(T.nilable(String)) }
|
|
20
|
-
attr_accessor :class_id
|
|
21
|
-
|
|
22
|
-
sig do
|
|
23
|
-
params(
|
|
24
|
-
account_id: T.nilable(String),
|
|
25
|
-
class_id: T.nilable(String)
|
|
26
|
-
).returns(T.attached_class)
|
|
27
|
-
end
|
|
28
|
-
def self.new(
|
|
29
|
-
# The ID of one of your accounting categories. Note that these will only be
|
|
30
|
-
# accessible if your accounting system has been connected.
|
|
31
|
-
account_id: nil,
|
|
32
|
-
# The ID of one of the class objects in your accounting system. Class objects
|
|
33
|
-
# track segments of your business independent of client or project. Note that
|
|
34
|
-
# these will only be accessible if your accounting system has been connected.
|
|
35
|
-
class_id: nil
|
|
36
|
-
)
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
sig do
|
|
40
|
-
override.returns(
|
|
41
|
-
{ account_id: T.nilable(String), class_id: T.nilable(String) }
|
|
42
|
-
)
|
|
43
|
-
end
|
|
44
|
-
def to_hash
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
module ModernTreasury
|
|
2
|
-
module Models
|
|
3
|
-
type accounting = { account_id: String?, class_id: String? }
|
|
4
|
-
|
|
5
|
-
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
-
attr_accessor account_id: String?
|
|
7
|
-
|
|
8
|
-
attr_accessor class_id: String?
|
|
9
|
-
|
|
10
|
-
def initialize: (?account_id: String?, ?class_id: String?) -> void
|
|
11
|
-
|
|
12
|
-
def to_hash: -> { account_id: String?, class_id: String? }
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|