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
|
@@ -409,6 +409,11 @@ module ModernTreasury
|
|
|
409
409
|
:ethereum,
|
|
410
410
|
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
|
411
411
|
)
|
|
412
|
+
GB_FPS =
|
|
413
|
+
T.let(
|
|
414
|
+
:gb_fps,
|
|
415
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
|
416
|
+
)
|
|
412
417
|
HU_ICS =
|
|
413
418
|
T.let(
|
|
414
419
|
:hu_ics,
|
|
@@ -209,6 +209,11 @@ module ModernTreasury
|
|
|
209
209
|
:ethereum,
|
|
210
210
|
ModernTreasury::InternalAccountListParams::PaymentType::TaggedSymbol
|
|
211
211
|
)
|
|
212
|
+
GB_FPS =
|
|
213
|
+
T.let(
|
|
214
|
+
:gb_fps,
|
|
215
|
+
ModernTreasury::InternalAccountListParams::PaymentType::TaggedSymbol
|
|
216
|
+
)
|
|
212
217
|
HU_ICS =
|
|
213
218
|
T.let(
|
|
214
219
|
:hu_ics,
|
|
@@ -178,6 +178,11 @@ module ModernTreasury
|
|
|
178
178
|
:ethereum,
|
|
179
179
|
ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse::PaymentType::TaggedSymbol
|
|
180
180
|
)
|
|
181
|
+
GB_FPS =
|
|
182
|
+
T.let(
|
|
183
|
+
:gb_fps,
|
|
184
|
+
ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse::PaymentType::TaggedSymbol
|
|
185
|
+
)
|
|
181
186
|
HU_ICS =
|
|
182
187
|
T.let(
|
|
183
188
|
:hu_ics,
|
|
@@ -41,7 +41,7 @@ module ModernTreasury
|
|
|
41
41
|
# The exclusive upper bound of the effective_at timestamp of the ledger entries to
|
|
42
42
|
# be included in the ledger account settlement. The default value is the
|
|
43
43
|
# created_at timestamp of the ledger account settlement.
|
|
44
|
-
sig { returns(Time) }
|
|
44
|
+
sig { returns(T.nilable(Time)) }
|
|
45
45
|
attr_accessor :effective_at_upper_bound
|
|
46
46
|
|
|
47
47
|
# The id of the ledger that this ledger account settlement belongs to.
|
|
@@ -93,7 +93,7 @@ module ModernTreasury
|
|
|
93
93
|
currency: String,
|
|
94
94
|
currency_exponent: T.nilable(Integer),
|
|
95
95
|
description: T.nilable(String),
|
|
96
|
-
effective_at_upper_bound: Time,
|
|
96
|
+
effective_at_upper_bound: T.nilable(Time),
|
|
97
97
|
ledger_id: String,
|
|
98
98
|
ledger_transaction_id: T.nilable(String),
|
|
99
99
|
live_mode: T::Boolean,
|
|
@@ -156,7 +156,7 @@ module ModernTreasury
|
|
|
156
156
|
currency: String,
|
|
157
157
|
currency_exponent: T.nilable(Integer),
|
|
158
158
|
description: T.nilable(String),
|
|
159
|
-
effective_at_upper_bound: Time,
|
|
159
|
+
effective_at_upper_bound: T.nilable(Time),
|
|
160
160
|
ledger_id: String,
|
|
161
161
|
ledger_transaction_id: T.nilable(String),
|
|
162
162
|
live_mode: T::Boolean,
|
|
@@ -25,6 +25,19 @@ module ModernTreasury
|
|
|
25
25
|
sig { returns(T.nilable(String)) }
|
|
26
26
|
attr_accessor :after_cursor
|
|
27
27
|
|
|
28
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
29
|
+
sig do
|
|
30
|
+
returns(T.nilable(ModernTreasury::LedgerTransactionListParams::Amount))
|
|
31
|
+
end
|
|
32
|
+
attr_reader :amount
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
amount: ModernTreasury::LedgerTransactionListParams::Amount::OrHash
|
|
37
|
+
).void
|
|
38
|
+
end
|
|
39
|
+
attr_writer :amount
|
|
40
|
+
|
|
28
41
|
# Use "gt" (>), "gte" (>=), "lt" (<), "lte" (<=), or "eq" (=) to filter by
|
|
29
42
|
# effective at. For example, for all transactions after Jan 1 2000, use
|
|
30
43
|
# effective_at%5Bgt%5D=2000-01-01T00:00:00:00.000Z.
|
|
@@ -187,6 +200,7 @@ module ModernTreasury
|
|
|
187
200
|
params(
|
|
188
201
|
id: T::Array[String],
|
|
189
202
|
after_cursor: T.nilable(String),
|
|
203
|
+
amount: ModernTreasury::LedgerTransactionListParams::Amount::OrHash,
|
|
190
204
|
effective_at: T::Hash[Symbol, Time],
|
|
191
205
|
effective_date: T::Hash[Symbol, Time],
|
|
192
206
|
external_id: String,
|
|
@@ -220,6 +234,8 @@ module ModernTreasury
|
|
|
220
234
|
# parameters delimited with `id[]=`, for example `?id[]=123&id[]=abc`.
|
|
221
235
|
id: nil,
|
|
222
236
|
after_cursor: nil,
|
|
237
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
238
|
+
amount: nil,
|
|
223
239
|
# Use "gt" (>), "gte" (>=), "lt" (<), "lte" (<=), or "eq" (=) to filter by
|
|
224
240
|
# effective at. For example, for all transactions after Jan 1 2000, use
|
|
225
241
|
# effective_at%5Bgt%5D=2000-01-01T00:00:00:00.000Z.
|
|
@@ -264,6 +280,7 @@ module ModernTreasury
|
|
|
264
280
|
{
|
|
265
281
|
id: T::Array[String],
|
|
266
282
|
after_cursor: T.nilable(String),
|
|
283
|
+
amount: ModernTreasury::LedgerTransactionListParams::Amount,
|
|
267
284
|
effective_at: T::Hash[Symbol, Time],
|
|
268
285
|
effective_date: T::Hash[Symbol, Time],
|
|
269
286
|
external_id: String,
|
|
@@ -295,6 +312,73 @@ module ModernTreasury
|
|
|
295
312
|
def to_hash
|
|
296
313
|
end
|
|
297
314
|
|
|
315
|
+
class Amount < ModernTreasury::Internal::Type::BaseModel
|
|
316
|
+
OrHash =
|
|
317
|
+
T.type_alias do
|
|
318
|
+
T.any(
|
|
319
|
+
ModernTreasury::LedgerTransactionListParams::Amount,
|
|
320
|
+
ModernTreasury::Internal::AnyHash
|
|
321
|
+
)
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
sig { returns(T.nilable(Integer)) }
|
|
325
|
+
attr_reader :eq
|
|
326
|
+
|
|
327
|
+
sig { params(eq: Integer).void }
|
|
328
|
+
attr_writer :eq
|
|
329
|
+
|
|
330
|
+
sig { returns(T.nilable(Integer)) }
|
|
331
|
+
attr_reader :gt
|
|
332
|
+
|
|
333
|
+
sig { params(gt: Integer).void }
|
|
334
|
+
attr_writer :gt
|
|
335
|
+
|
|
336
|
+
sig { returns(T.nilable(Integer)) }
|
|
337
|
+
attr_reader :gte
|
|
338
|
+
|
|
339
|
+
sig { params(gte: Integer).void }
|
|
340
|
+
attr_writer :gte
|
|
341
|
+
|
|
342
|
+
sig { returns(T.nilable(Integer)) }
|
|
343
|
+
attr_reader :lt
|
|
344
|
+
|
|
345
|
+
sig { params(lt: Integer).void }
|
|
346
|
+
attr_writer :lt
|
|
347
|
+
|
|
348
|
+
sig { returns(T.nilable(Integer)) }
|
|
349
|
+
attr_reader :lte
|
|
350
|
+
|
|
351
|
+
sig { params(lte: Integer).void }
|
|
352
|
+
attr_writer :lte
|
|
353
|
+
|
|
354
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
|
|
355
|
+
sig do
|
|
356
|
+
params(
|
|
357
|
+
eq: Integer,
|
|
358
|
+
gt: Integer,
|
|
359
|
+
gte: Integer,
|
|
360
|
+
lt: Integer,
|
|
361
|
+
lte: Integer
|
|
362
|
+
).returns(T.attached_class)
|
|
363
|
+
end
|
|
364
|
+
def self.new(eq: nil, gt: nil, gte: nil, lt: nil, lte: nil)
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
sig do
|
|
368
|
+
override.returns(
|
|
369
|
+
{
|
|
370
|
+
eq: Integer,
|
|
371
|
+
gt: Integer,
|
|
372
|
+
gte: Integer,
|
|
373
|
+
lt: Integer,
|
|
374
|
+
lte: Integer
|
|
375
|
+
}
|
|
376
|
+
)
|
|
377
|
+
end
|
|
378
|
+
def to_hash
|
|
379
|
+
end
|
|
380
|
+
end
|
|
381
|
+
|
|
298
382
|
module LedgerableType
|
|
299
383
|
extend ModernTreasury::Internal::Type::Enum
|
|
300
384
|
|
|
@@ -11,10 +11,12 @@ module ModernTreasury
|
|
|
11
11
|
sig { returns(String) }
|
|
12
12
|
attr_accessor :id
|
|
13
13
|
|
|
14
|
-
sig { returns(ModernTreasury::Accounting) }
|
|
14
|
+
sig { returns(ModernTreasury::LineItem::Accounting) }
|
|
15
15
|
attr_reader :accounting
|
|
16
16
|
|
|
17
|
-
sig
|
|
17
|
+
sig do
|
|
18
|
+
params(accounting: ModernTreasury::LineItem::Accounting::OrHash).void
|
|
19
|
+
end
|
|
18
20
|
attr_writer :accounting
|
|
19
21
|
|
|
20
22
|
# The ID of one of your accounting categories. Note that these will only be
|
|
@@ -67,7 +69,7 @@ module ModernTreasury
|
|
|
67
69
|
sig do
|
|
68
70
|
params(
|
|
69
71
|
id: String,
|
|
70
|
-
accounting: ModernTreasury::Accounting::OrHash,
|
|
72
|
+
accounting: ModernTreasury::LineItem::Accounting::OrHash,
|
|
71
73
|
accounting_category_id: T.nilable(String),
|
|
72
74
|
accounting_ledger_class_id: T.nilable(String),
|
|
73
75
|
amount: Integer,
|
|
@@ -116,7 +118,7 @@ module ModernTreasury
|
|
|
116
118
|
override.returns(
|
|
117
119
|
{
|
|
118
120
|
id: String,
|
|
119
|
-
accounting: ModernTreasury::Accounting,
|
|
121
|
+
accounting: ModernTreasury::LineItem::Accounting,
|
|
120
122
|
accounting_category_id: T.nilable(String),
|
|
121
123
|
accounting_ledger_class_id: T.nilable(String),
|
|
122
124
|
amount: Integer,
|
|
@@ -135,6 +137,52 @@ module ModernTreasury
|
|
|
135
137
|
def to_hash
|
|
136
138
|
end
|
|
137
139
|
|
|
140
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
141
|
+
OrHash =
|
|
142
|
+
T.type_alias do
|
|
143
|
+
T.any(
|
|
144
|
+
ModernTreasury::LineItem::Accounting,
|
|
145
|
+
ModernTreasury::Internal::AnyHash
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
150
|
+
# accessible if your accounting system has been connected.
|
|
151
|
+
sig { returns(T.nilable(String)) }
|
|
152
|
+
attr_accessor :account_id
|
|
153
|
+
|
|
154
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
155
|
+
# track segments of your business independent of client or project. Note that
|
|
156
|
+
# these will only be accessible if your accounting system has been connected.
|
|
157
|
+
sig { returns(T.nilable(String)) }
|
|
158
|
+
attr_accessor :class_id
|
|
159
|
+
|
|
160
|
+
sig do
|
|
161
|
+
params(
|
|
162
|
+
account_id: T.nilable(String),
|
|
163
|
+
class_id: T.nilable(String)
|
|
164
|
+
).returns(T.attached_class)
|
|
165
|
+
end
|
|
166
|
+
def self.new(
|
|
167
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
168
|
+
# accessible if your accounting system has been connected.
|
|
169
|
+
account_id: nil,
|
|
170
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
171
|
+
# track segments of your business independent of client or project. Note that
|
|
172
|
+
# these will only be accessible if your accounting system has been connected.
|
|
173
|
+
class_id: nil
|
|
174
|
+
)
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
sig do
|
|
178
|
+
override.returns(
|
|
179
|
+
{ account_id: T.nilable(String), class_id: T.nilable(String) }
|
|
180
|
+
)
|
|
181
|
+
end
|
|
182
|
+
def to_hash
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
138
186
|
# One of `payment_orders` or `expected_payments`.
|
|
139
187
|
module ItemizableType
|
|
140
188
|
extend ModernTreasury::Internal::Type::Enum
|
|
@@ -43,7 +43,7 @@ module ModernTreasury
|
|
|
43
43
|
attr_accessor :object
|
|
44
44
|
|
|
45
45
|
# The current status of the payment action. One of `pending`, `processing`,
|
|
46
|
-
# `sent`, `cancelled`, or `failed`.
|
|
46
|
+
# `sent`, `acknowledged`, `cancelled`, or `failed`.
|
|
47
47
|
sig { returns(String) }
|
|
48
48
|
attr_accessor :status
|
|
49
49
|
|
|
@@ -86,7 +86,7 @@ module ModernTreasury
|
|
|
86
86
|
live_mode:,
|
|
87
87
|
object:,
|
|
88
88
|
# The current status of the payment action. One of `pending`, `processing`,
|
|
89
|
-
# `sent`, `cancelled`, or `failed`.
|
|
89
|
+
# `sent`, `acknowledged`, `cancelled`, or `failed`.
|
|
90
90
|
status:,
|
|
91
91
|
# The type of the payment action. Determines the action to be taken.
|
|
92
92
|
type:,
|
|
@@ -248,6 +248,11 @@ module ModernTreasury
|
|
|
248
248
|
:sent,
|
|
249
249
|
ModernTreasury::PaymentActionListParams::Status::TaggedSymbol
|
|
250
250
|
)
|
|
251
|
+
ACKNOWLEDGED =
|
|
252
|
+
T.let(
|
|
253
|
+
:acknowledged,
|
|
254
|
+
ModernTreasury::PaymentActionListParams::Status::TaggedSymbol
|
|
255
|
+
)
|
|
251
256
|
FAILED =
|
|
252
257
|
T.let(
|
|
253
258
|
:failed,
|
|
@@ -280,16 +285,6 @@ module ModernTreasury
|
|
|
280
285
|
end
|
|
281
286
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
282
287
|
|
|
283
|
-
EVOLVE_NON_PROCESSING_TRANSACTION =
|
|
284
|
-
T.let(
|
|
285
|
-
:evolve_non_processing_transaction,
|
|
286
|
-
ModernTreasury::PaymentActionListParams::Type::TaggedSymbol
|
|
287
|
-
)
|
|
288
|
-
CONTROL_FILE =
|
|
289
|
-
T.let(
|
|
290
|
-
:control_file,
|
|
291
|
-
ModernTreasury::PaymentActionListParams::Type::TaggedSymbol
|
|
292
|
-
)
|
|
293
288
|
STOP =
|
|
294
289
|
T.let(
|
|
295
290
|
:stop,
|
|
@@ -43,7 +43,7 @@ module ModernTreasury
|
|
|
43
43
|
attr_accessor :object
|
|
44
44
|
|
|
45
45
|
# The current status of the payment action. One of `pending`, `processing`,
|
|
46
|
-
# `sent`, `cancelled`, or `failed`.
|
|
46
|
+
# `sent`, `acknowledged`, `cancelled`, or `failed`.
|
|
47
47
|
sig { returns(String) }
|
|
48
48
|
attr_accessor :status
|
|
49
49
|
|
|
@@ -86,7 +86,7 @@ module ModernTreasury
|
|
|
86
86
|
live_mode:,
|
|
87
87
|
object:,
|
|
88
88
|
# The current status of the payment action. One of `pending`, `processing`,
|
|
89
|
-
# `sent`, `cancelled`, or `failed`.
|
|
89
|
+
# `sent`, `acknowledged`, `cancelled`, or `failed`.
|
|
90
90
|
status:,
|
|
91
91
|
# The type of the payment action. Determines the action to be taken.
|
|
92
92
|
type:,
|
|
@@ -43,7 +43,7 @@ module ModernTreasury
|
|
|
43
43
|
attr_accessor :object
|
|
44
44
|
|
|
45
45
|
# The current status of the payment action. One of `pending`, `processing`,
|
|
46
|
-
# `sent`, `cancelled`, or `failed`.
|
|
46
|
+
# `sent`, `acknowledged`, `cancelled`, or `failed`.
|
|
47
47
|
sig { returns(String) }
|
|
48
48
|
attr_accessor :status
|
|
49
49
|
|
|
@@ -86,7 +86,7 @@ module ModernTreasury
|
|
|
86
86
|
live_mode:,
|
|
87
87
|
object:,
|
|
88
88
|
# The current status of the payment action. One of `pending`, `processing`,
|
|
89
|
-
# `sent`, `cancelled`, or `failed`.
|
|
89
|
+
# `sent`, `acknowledged`, `cancelled`, or `failed`.
|
|
90
90
|
status:,
|
|
91
91
|
# The type of the payment action. Determines the action to be taken.
|
|
92
92
|
type:,
|
|
@@ -80,6 +80,11 @@ module ModernTreasury
|
|
|
80
80
|
:sent,
|
|
81
81
|
ModernTreasury::PaymentActionUpdateParams::Status::TaggedSymbol
|
|
82
82
|
)
|
|
83
|
+
ACKNOWLEDGED =
|
|
84
|
+
T.let(
|
|
85
|
+
:acknowledged,
|
|
86
|
+
ModernTreasury::PaymentActionUpdateParams::Status::TaggedSymbol
|
|
87
|
+
)
|
|
83
88
|
FAILED =
|
|
84
89
|
T.let(
|
|
85
90
|
:failed,
|
|
@@ -43,7 +43,7 @@ module ModernTreasury
|
|
|
43
43
|
attr_accessor :object
|
|
44
44
|
|
|
45
45
|
# The current status of the payment action. One of `pending`, `processing`,
|
|
46
|
-
# `sent`, `cancelled`, or `failed`.
|
|
46
|
+
# `sent`, `acknowledged`, `cancelled`, or `failed`.
|
|
47
47
|
sig { returns(String) }
|
|
48
48
|
attr_accessor :status
|
|
49
49
|
|
|
@@ -86,7 +86,7 @@ module ModernTreasury
|
|
|
86
86
|
live_mode:,
|
|
87
87
|
object:,
|
|
88
88
|
# The current status of the payment action. One of `pending`, `processing`,
|
|
89
|
-
# `sent`, `cancelled`, or `failed`.
|
|
89
|
+
# `sent`, `acknowledged`, `cancelled`, or `failed`.
|
|
90
90
|
status:,
|
|
91
91
|
# The type of the payment action. Determines the action to be taken.
|
|
92
92
|
type:,
|
|
@@ -11,10 +11,14 @@ module ModernTreasury
|
|
|
11
11
|
sig { returns(String) }
|
|
12
12
|
attr_accessor :id
|
|
13
13
|
|
|
14
|
-
sig { returns(ModernTreasury::Accounting) }
|
|
14
|
+
sig { returns(ModernTreasury::PaymentOrder::Accounting) }
|
|
15
15
|
attr_reader :accounting
|
|
16
16
|
|
|
17
|
-
sig
|
|
17
|
+
sig do
|
|
18
|
+
params(
|
|
19
|
+
accounting: ModernTreasury::PaymentOrder::Accounting::OrHash
|
|
20
|
+
).void
|
|
21
|
+
end
|
|
18
22
|
attr_writer :accounting
|
|
19
23
|
|
|
20
24
|
# The ID of one of your accounting categories. Note that these will only be
|
|
@@ -288,7 +292,7 @@ module ModernTreasury
|
|
|
288
292
|
sig do
|
|
289
293
|
params(
|
|
290
294
|
id: String,
|
|
291
|
-
accounting: ModernTreasury::Accounting::OrHash,
|
|
295
|
+
accounting: ModernTreasury::PaymentOrder::Accounting::OrHash,
|
|
292
296
|
accounting_category_id: T.nilable(String),
|
|
293
297
|
accounting_ledger_class_id: T.nilable(String),
|
|
294
298
|
amount: Integer,
|
|
@@ -496,7 +500,7 @@ module ModernTreasury
|
|
|
496
500
|
override.returns(
|
|
497
501
|
{
|
|
498
502
|
id: String,
|
|
499
|
-
accounting: ModernTreasury::Accounting,
|
|
503
|
+
accounting: ModernTreasury::PaymentOrder::Accounting,
|
|
500
504
|
accounting_category_id: T.nilable(String),
|
|
501
505
|
accounting_ledger_class_id: T.nilable(String),
|
|
502
506
|
amount: Integer,
|
|
@@ -565,6 +569,52 @@ module ModernTreasury
|
|
|
565
569
|
def to_hash
|
|
566
570
|
end
|
|
567
571
|
|
|
572
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
573
|
+
OrHash =
|
|
574
|
+
T.type_alias do
|
|
575
|
+
T.any(
|
|
576
|
+
ModernTreasury::PaymentOrder::Accounting,
|
|
577
|
+
ModernTreasury::Internal::AnyHash
|
|
578
|
+
)
|
|
579
|
+
end
|
|
580
|
+
|
|
581
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
582
|
+
# accessible if your accounting system has been connected.
|
|
583
|
+
sig { returns(T.nilable(String)) }
|
|
584
|
+
attr_accessor :account_id
|
|
585
|
+
|
|
586
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
587
|
+
# track segments of your business independent of client or project. Note that
|
|
588
|
+
# these will only be accessible if your accounting system has been connected.
|
|
589
|
+
sig { returns(T.nilable(String)) }
|
|
590
|
+
attr_accessor :class_id
|
|
591
|
+
|
|
592
|
+
sig do
|
|
593
|
+
params(
|
|
594
|
+
account_id: T.nilable(String),
|
|
595
|
+
class_id: T.nilable(String)
|
|
596
|
+
).returns(T.attached_class)
|
|
597
|
+
end
|
|
598
|
+
def self.new(
|
|
599
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
600
|
+
# accessible if your accounting system has been connected.
|
|
601
|
+
account_id: nil,
|
|
602
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
603
|
+
# track segments of your business independent of client or project. Note that
|
|
604
|
+
# these will only be accessible if your accounting system has been connected.
|
|
605
|
+
class_id: nil
|
|
606
|
+
)
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
sig do
|
|
610
|
+
override.returns(
|
|
611
|
+
{ account_id: T.nilable(String), class_id: T.nilable(String) }
|
|
612
|
+
)
|
|
613
|
+
end
|
|
614
|
+
def to_hash
|
|
615
|
+
end
|
|
616
|
+
end
|
|
617
|
+
|
|
568
618
|
# The party that will pay the fees for the payment order. See
|
|
569
619
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
570
620
|
# differences between the options.
|
|
@@ -846,6 +896,11 @@ module ModernTreasury
|
|
|
846
896
|
:bnk_dev_transfer_id,
|
|
847
897
|
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
848
898
|
)
|
|
899
|
+
BNY_MELLON_TRANSACTION_REFERENCE_NUMBER =
|
|
900
|
+
T.let(
|
|
901
|
+
:bny_mellon_transaction_reference_number,
|
|
902
|
+
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
903
|
+
)
|
|
849
904
|
BOFA_END_TO_END_ID =
|
|
850
905
|
T.let(
|
|
851
906
|
:bofa_end_to_end_id,
|
|
@@ -40,10 +40,19 @@ module ModernTreasury
|
|
|
40
40
|
sig { returns(ModernTreasury::PaymentOrderType::OrSymbol) }
|
|
41
41
|
attr_accessor :type
|
|
42
42
|
|
|
43
|
-
sig
|
|
43
|
+
sig do
|
|
44
|
+
returns(
|
|
45
|
+
T.nilable(ModernTreasury::PaymentOrderCreateAsyncParams::Accounting)
|
|
46
|
+
)
|
|
47
|
+
end
|
|
44
48
|
attr_reader :accounting
|
|
45
49
|
|
|
46
|
-
sig
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
accounting:
|
|
53
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting::OrHash
|
|
54
|
+
).void
|
|
55
|
+
end
|
|
47
56
|
attr_writer :accounting
|
|
48
57
|
|
|
49
58
|
# The ID of one of your accounting categories. Note that these will only be
|
|
@@ -318,7 +327,8 @@ module ModernTreasury
|
|
|
318
327
|
ModernTreasury::PaymentOrderCreateAsyncParams::Direction::OrSymbol,
|
|
319
328
|
originating_account_id: String,
|
|
320
329
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
321
|
-
accounting:
|
|
330
|
+
accounting:
|
|
331
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting::OrHash,
|
|
322
332
|
accounting_category_id: T.nilable(String),
|
|
323
333
|
accounting_ledger_class_id: T.nilable(String),
|
|
324
334
|
charge_bearer:
|
|
@@ -499,7 +509,8 @@ module ModernTreasury
|
|
|
499
509
|
ModernTreasury::PaymentOrderCreateAsyncParams::Direction::OrSymbol,
|
|
500
510
|
originating_account_id: String,
|
|
501
511
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
502
|
-
accounting:
|
|
512
|
+
accounting:
|
|
513
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting,
|
|
503
514
|
accounting_category_id: T.nilable(String),
|
|
504
515
|
accounting_ledger_class_id: T.nilable(String),
|
|
505
516
|
charge_bearer:
|
|
@@ -585,6 +596,52 @@ module ModernTreasury
|
|
|
585
596
|
end
|
|
586
597
|
end
|
|
587
598
|
|
|
599
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
600
|
+
OrHash =
|
|
601
|
+
T.type_alias do
|
|
602
|
+
T.any(
|
|
603
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting,
|
|
604
|
+
ModernTreasury::Internal::AnyHash
|
|
605
|
+
)
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
609
|
+
# accessible if your accounting system has been connected.
|
|
610
|
+
sig { returns(T.nilable(String)) }
|
|
611
|
+
attr_accessor :account_id
|
|
612
|
+
|
|
613
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
614
|
+
# track segments of your business independent of client or project. Note that
|
|
615
|
+
# these will only be accessible if your accounting system has been connected.
|
|
616
|
+
sig { returns(T.nilable(String)) }
|
|
617
|
+
attr_accessor :class_id
|
|
618
|
+
|
|
619
|
+
sig do
|
|
620
|
+
params(
|
|
621
|
+
account_id: T.nilable(String),
|
|
622
|
+
class_id: T.nilable(String)
|
|
623
|
+
).returns(T.attached_class)
|
|
624
|
+
end
|
|
625
|
+
def self.new(
|
|
626
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
627
|
+
# accessible if your accounting system has been connected.
|
|
628
|
+
account_id: nil,
|
|
629
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
630
|
+
# track segments of your business independent of client or project. Note that
|
|
631
|
+
# these will only be accessible if your accounting system has been connected.
|
|
632
|
+
class_id: nil
|
|
633
|
+
)
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
sig do
|
|
637
|
+
override.returns(
|
|
638
|
+
{ account_id: T.nilable(String), class_id: T.nilable(String) }
|
|
639
|
+
)
|
|
640
|
+
end
|
|
641
|
+
def to_hash
|
|
642
|
+
end
|
|
643
|
+
end
|
|
644
|
+
|
|
588
645
|
# The party that will pay the fees for the payment order. See
|
|
589
646
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
590
647
|
# differences between the options.
|
|
@@ -1496,6 +1553,11 @@ module ModernTreasury
|
|
|
1496
1553
|
:ethereum,
|
|
1497
1554
|
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
|
1498
1555
|
)
|
|
1556
|
+
GB_FPS =
|
|
1557
|
+
T.let(
|
|
1558
|
+
:gb_fps,
|
|
1559
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
|
1560
|
+
)
|
|
1499
1561
|
HU_ICS =
|
|
1500
1562
|
T.let(
|
|
1501
1563
|
:hu_ics,
|