modern_treasury 0.1.0.pre.alpha.20 → 0.1.0.pre.alpha.22
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 +42 -0
- data/README.md +3 -3
- data/lib/modern_treasury/errors.rb +22 -0
- data/lib/modern_treasury/internal/transport/base_client.rb +10 -2
- data/lib/modern_treasury/internal/type/array_of.rb +6 -1
- data/lib/modern_treasury/internal/type/base_model.rb +77 -23
- data/lib/modern_treasury/internal/type/boolean.rb +7 -1
- data/lib/modern_treasury/internal/type/converter.rb +42 -34
- data/lib/modern_treasury/internal/type/enum.rb +16 -5
- data/lib/modern_treasury/internal/type/file_input.rb +6 -1
- data/lib/modern_treasury/internal/type/hash_of.rb +6 -1
- data/lib/modern_treasury/internal/type/union.rb +19 -9
- data/lib/modern_treasury/internal/type/unknown.rb +7 -1
- data/lib/modern_treasury/internal/util.rb +13 -10
- data/lib/modern_treasury/models/bulk_request_create_params.rb +143 -18
- data/lib/modern_treasury/models/bulk_result.rb +5 -3
- data/lib/modern_treasury/models/counterparty_create_params.rb +1 -0
- data/lib/modern_treasury/models/external_account_create_params.rb +1 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -0
- data/lib/modern_treasury/models/internal_account.rb +146 -3
- data/lib/modern_treasury/models/internal_account_create_params.rb +138 -1
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +23 -0
- data/lib/modern_treasury/models/invoice.rb +10 -1
- data/lib/modern_treasury/models/ledger_account.rb +9 -1
- data/lib/modern_treasury/models/ledger_account_category.rb +9 -1
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +8 -1
- data/lib/modern_treasury/models/ledger_account_list_params.rb +15 -1
- data/lib/modern_treasury/models/payment_order.rb +21 -9
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +8 -7
- data/lib/modern_treasury/models/payment_order_create_params.rb +8 -7
- data/lib/modern_treasury/models/payment_order_list_params.rb +9 -1
- data/lib/modern_treasury/models/payment_order_update_params.rb +9 -7
- data/lib/modern_treasury/models/payment_reference.rb +4 -1
- data/lib/modern_treasury/models/return_create_params.rb +75 -1
- data/lib/modern_treasury/models/return_object.rb +80 -2
- 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/transaction.rb +1 -0
- data/lib/modern_treasury/models/transaction_create_params.rb +9 -1
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +9 -1
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +1 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +1 -0
- data/lib/modern_treasury/models.rb +4 -22
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +2 -2
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/ledger_account_categories.rb +3 -1
- data/lib/modern_treasury/resources/ledger_accounts.rb +5 -1
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -111
- data/lib/modern_treasury/resources/ledgerable_events.rb +0 -51
- data/lib/modern_treasury/resources/payment_orders.rb +6 -4
- data/lib/modern_treasury/resources/returns.rb +3 -1
- data/lib/modern_treasury/resources/transactions.rb +3 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +3 -10
- data/rbi/modern_treasury/errors.rbi +16 -0
- data/rbi/modern_treasury/internal/type/boolean.rbi +2 -0
- data/rbi/modern_treasury/internal/type/converter.rbi +15 -15
- data/rbi/modern_treasury/internal/type/union.rbi +5 -0
- data/rbi/modern_treasury/internal/type/unknown.rbi +2 -0
- data/rbi/modern_treasury/internal/util.rbi +2 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +234 -18
- data/rbi/modern_treasury/models/bulk_result.rbi +2 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account.rbi +328 -5
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +333 -0
- data/rbi/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +37 -0
- data/rbi/modern_treasury/models/invoice.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_account.rbi +8 -0
- data/rbi/modern_treasury/models/ledger_account_category.rbi +8 -0
- data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +9 -0
- data/rbi/modern_treasury/models/ledger_account_list_params.rbi +22 -0
- data/rbi/modern_treasury/models/payment_order.rbi +39 -14
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +14 -9
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +14 -9
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +14 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +19 -9
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -5
- data/rbi/modern_treasury/models/return_create_params.rbi +114 -0
- data/rbi/modern_treasury/models/return_object.rbi +131 -5
- 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/transaction.rbi +5 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +8 -0
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +8 -0
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +5 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models.rbi +0 -25
- data/rbi/modern_treasury/resources/bulk_requests.rbi +1 -0
- data/rbi/modern_treasury/resources/internal_accounts/balance_reports.rbi +7 -3
- data/rbi/modern_treasury/resources/internal_accounts.rbi +7 -0
- data/rbi/modern_treasury/resources/ledger_account_categories.rbi +2 -0
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +4 -0
- data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -97
- data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -38
- data/rbi/modern_treasury/resources/payment_orders.rbi +11 -9
- data/rbi/modern_treasury/resources/returns.rbi +6 -0
- data/rbi/modern_treasury/resources/transactions.rbi +3 -0
- data/sig/modern_treasury/errors.rbs +9 -0
- data/sig/modern_treasury/internal/type/converter.rbs +7 -1
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +101 -0
- data/sig/modern_treasury/models/bulk_result.rbs +1 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +2 -0
- data/sig/modern_treasury/models/internal_account.rbs +147 -3
- data/sig/modern_treasury/models/internal_account_create_params.rbs +143 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +10 -0
- data/sig/modern_treasury/models/invoice.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +16 -0
- data/sig/modern_treasury/models/payment_order.rbs +15 -2
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_create_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_list_params.rbs +9 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +4 -0
- data/sig/modern_treasury/models/payment_reference.rbs +8 -2
- data/sig/modern_treasury/models/return_create_params.rbs +47 -0
- data/sig/modern_treasury/models/return_object.rbs +55 -2
- 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/transaction.rbs +2 -0
- data/sig/modern_treasury/models/transaction_create_params.rbs +5 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +5 -0
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models.rbs +0 -18
- data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +1 -1
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -0
- data/sig/modern_treasury/resources/ledger_accounts.rbs +2 -0
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -30
- data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -13
- data/sig/modern_treasury/resources/payment_orders.rbs +1 -0
- data/sig/modern_treasury/resources/returns.rbs +1 -0
- data/sig/modern_treasury/resources/transactions.rbs +1 -0
- metadata +2 -29
- data/lib/modern_treasury/models/ledger_event_handler.rb +0 -222
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +0 -177
- data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +0 -14
- data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +0 -58
- data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +0 -14
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +0 -59
- data/lib/modern_treasury/models/ledgerable_event.rb +0 -92
- data/lib/modern_treasury/models/ledgerable_event_create_params.rb +0 -50
- data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +0 -14
- data/rbi/modern_treasury/models/ledger_event_handler.rbi +0 -322
- data/rbi/modern_treasury/models/ledger_event_handler_create_params.rbi +0 -303
- data/rbi/modern_treasury/models/ledger_event_handler_delete_params.rbi +0 -32
- data/rbi/modern_treasury/models/ledger_event_handler_list_params.rbi +0 -92
- data/rbi/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/models/ledger_event_handler_variable.rbi +0 -98
- data/rbi/modern_treasury/models/ledgerable_event.rbi +0 -108
- data/rbi/modern_treasury/models/ledgerable_event_create_params.rbi +0 -75
- data/rbi/modern_treasury/models/ledgerable_event_retrieve_params.rbi +0 -32
- data/sig/modern_treasury/models/ledger_event_handler.rbs +0 -149
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +0 -127
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +0 -15
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +0 -54
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +0 -36
- data/sig/modern_treasury/models/ledgerable_event.rbs +0 -65
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +0 -43
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +0 -15
@@ -33,6 +33,29 @@ module ModernTreasury
|
|
33
33
|
sig { returns(String) }
|
34
34
|
attr_accessor :party_name
|
35
35
|
|
36
|
+
# An array of AccountCapability objects that list the originating abilities of the
|
37
|
+
# internal account and any relevant information for them.
|
38
|
+
sig do
|
39
|
+
returns(
|
40
|
+
T.nilable(
|
41
|
+
T::Array[
|
42
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability
|
43
|
+
]
|
44
|
+
)
|
45
|
+
)
|
46
|
+
end
|
47
|
+
attr_reader :account_capabilities
|
48
|
+
|
49
|
+
sig do
|
50
|
+
params(
|
51
|
+
account_capabilities:
|
52
|
+
T::Array[
|
53
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::OrHash
|
54
|
+
]
|
55
|
+
).void
|
56
|
+
end
|
57
|
+
attr_writer :account_capabilities
|
58
|
+
|
36
59
|
# The account type, used to provision the appropriate account at the financial
|
37
60
|
# institution.
|
38
61
|
sig do
|
@@ -104,6 +127,10 @@ module ModernTreasury
|
|
104
127
|
ModernTreasury::InternalAccountCreateParams::Currency::OrSymbol,
|
105
128
|
name: String,
|
106
129
|
party_name: String,
|
130
|
+
account_capabilities:
|
131
|
+
T::Array[
|
132
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::OrHash
|
133
|
+
],
|
107
134
|
account_type:
|
108
135
|
ModernTreasury::InternalAccountCreateParams::AccountType::OrSymbol,
|
109
136
|
counterparty_id: String,
|
@@ -125,6 +152,9 @@ module ModernTreasury
|
|
125
152
|
name:,
|
126
153
|
# The legal name of the entity which owns the account.
|
127
154
|
party_name:,
|
155
|
+
# An array of AccountCapability objects that list the originating abilities of the
|
156
|
+
# internal account and any relevant information for them.
|
157
|
+
account_capabilities: nil,
|
128
158
|
# The account type, used to provision the appropriate account at the financial
|
129
159
|
# institution.
|
130
160
|
account_type: nil,
|
@@ -151,6 +181,10 @@ module ModernTreasury
|
|
151
181
|
ModernTreasury::InternalAccountCreateParams::Currency::OrSymbol,
|
152
182
|
name: String,
|
153
183
|
party_name: String,
|
184
|
+
account_capabilities:
|
185
|
+
T::Array[
|
186
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability
|
187
|
+
],
|
154
188
|
account_type:
|
155
189
|
ModernTreasury::InternalAccountCreateParams::AccountType::OrSymbol,
|
156
190
|
counterparty_id: String,
|
@@ -199,6 +233,305 @@ module ModernTreasury
|
|
199
233
|
end
|
200
234
|
end
|
201
235
|
|
236
|
+
class AccountCapability < ModernTreasury::Internal::Type::BaseModel
|
237
|
+
OrHash =
|
238
|
+
T.type_alias do
|
239
|
+
T.any(
|
240
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability,
|
241
|
+
ModernTreasury::Internal::AnyHash
|
242
|
+
)
|
243
|
+
end
|
244
|
+
|
245
|
+
sig { returns(String) }
|
246
|
+
attr_accessor :id
|
247
|
+
|
248
|
+
sig { returns(Time) }
|
249
|
+
attr_accessor :created_at
|
250
|
+
|
251
|
+
# One of `debit` or `credit`. Indicates the direction of money movement this
|
252
|
+
# capability is responsible for.
|
253
|
+
sig { returns(ModernTreasury::TransactionDirection::OrSymbol) }
|
254
|
+
attr_accessor :direction
|
255
|
+
|
256
|
+
sig { returns(T.nilable(Time)) }
|
257
|
+
attr_accessor :discarded_at
|
258
|
+
|
259
|
+
# A unique reference assigned by your bank for tracking and recognizing payment
|
260
|
+
# files. It is important this is formatted exactly how the bank assigned it.
|
261
|
+
sig { returns(T.nilable(String)) }
|
262
|
+
attr_accessor :identifier
|
263
|
+
|
264
|
+
# This field will be true if this object exists in the live environment or false
|
265
|
+
# if it exists in the test environment.
|
266
|
+
sig { returns(T::Boolean) }
|
267
|
+
attr_accessor :live_mode
|
268
|
+
|
269
|
+
sig { returns(String) }
|
270
|
+
attr_accessor :object
|
271
|
+
|
272
|
+
# Indicates the the type of payment this capability is responsible for
|
273
|
+
# originating.
|
274
|
+
sig do
|
275
|
+
returns(
|
276
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::OrSymbol
|
277
|
+
)
|
278
|
+
end
|
279
|
+
attr_accessor :payment_type
|
280
|
+
|
281
|
+
sig { returns(Time) }
|
282
|
+
attr_accessor :updated_at
|
283
|
+
|
284
|
+
sig do
|
285
|
+
params(
|
286
|
+
id: String,
|
287
|
+
created_at: Time,
|
288
|
+
direction: ModernTreasury::TransactionDirection::OrSymbol,
|
289
|
+
discarded_at: T.nilable(Time),
|
290
|
+
identifier: T.nilable(String),
|
291
|
+
live_mode: T::Boolean,
|
292
|
+
object: String,
|
293
|
+
payment_type:
|
294
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::OrSymbol,
|
295
|
+
updated_at: Time
|
296
|
+
).returns(T.attached_class)
|
297
|
+
end
|
298
|
+
def self.new(
|
299
|
+
id:,
|
300
|
+
created_at:,
|
301
|
+
# One of `debit` or `credit`. Indicates the direction of money movement this
|
302
|
+
# capability is responsible for.
|
303
|
+
direction:,
|
304
|
+
discarded_at:,
|
305
|
+
# A unique reference assigned by your bank for tracking and recognizing payment
|
306
|
+
# files. It is important this is formatted exactly how the bank assigned it.
|
307
|
+
identifier:,
|
308
|
+
# This field will be true if this object exists in the live environment or false
|
309
|
+
# if it exists in the test environment.
|
310
|
+
live_mode:,
|
311
|
+
object:,
|
312
|
+
# Indicates the the type of payment this capability is responsible for
|
313
|
+
# originating.
|
314
|
+
payment_type:,
|
315
|
+
updated_at:
|
316
|
+
)
|
317
|
+
end
|
318
|
+
|
319
|
+
sig do
|
320
|
+
override.returns(
|
321
|
+
{
|
322
|
+
id: String,
|
323
|
+
created_at: Time,
|
324
|
+
direction: ModernTreasury::TransactionDirection::OrSymbol,
|
325
|
+
discarded_at: T.nilable(Time),
|
326
|
+
identifier: T.nilable(String),
|
327
|
+
live_mode: T::Boolean,
|
328
|
+
object: String,
|
329
|
+
payment_type:
|
330
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::OrSymbol,
|
331
|
+
updated_at: Time
|
332
|
+
}
|
333
|
+
)
|
334
|
+
end
|
335
|
+
def to_hash
|
336
|
+
end
|
337
|
+
|
338
|
+
# Indicates the the type of payment this capability is responsible for
|
339
|
+
# originating.
|
340
|
+
module PaymentType
|
341
|
+
extend ModernTreasury::Internal::Type::Enum
|
342
|
+
|
343
|
+
TaggedSymbol =
|
344
|
+
T.type_alias do
|
345
|
+
T.all(
|
346
|
+
Symbol,
|
347
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType
|
348
|
+
)
|
349
|
+
end
|
350
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
351
|
+
|
352
|
+
ACH =
|
353
|
+
T.let(
|
354
|
+
:ach,
|
355
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
356
|
+
)
|
357
|
+
AU_BECS =
|
358
|
+
T.let(
|
359
|
+
:au_becs,
|
360
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
361
|
+
)
|
362
|
+
BACS =
|
363
|
+
T.let(
|
364
|
+
:bacs,
|
365
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
366
|
+
)
|
367
|
+
BASE =
|
368
|
+
T.let(
|
369
|
+
:base,
|
370
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
371
|
+
)
|
372
|
+
BOOK =
|
373
|
+
T.let(
|
374
|
+
:book,
|
375
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
376
|
+
)
|
377
|
+
CARD =
|
378
|
+
T.let(
|
379
|
+
:card,
|
380
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
381
|
+
)
|
382
|
+
CHATS =
|
383
|
+
T.let(
|
384
|
+
:chats,
|
385
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
386
|
+
)
|
387
|
+
CHECK =
|
388
|
+
T.let(
|
389
|
+
:check,
|
390
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
391
|
+
)
|
392
|
+
CROSS_BORDER =
|
393
|
+
T.let(
|
394
|
+
:cross_border,
|
395
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
396
|
+
)
|
397
|
+
DK_NETS =
|
398
|
+
T.let(
|
399
|
+
:dk_nets,
|
400
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
401
|
+
)
|
402
|
+
EFT =
|
403
|
+
T.let(
|
404
|
+
:eft,
|
405
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
406
|
+
)
|
407
|
+
ETHEREUM =
|
408
|
+
T.let(
|
409
|
+
:ethereum,
|
410
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
411
|
+
)
|
412
|
+
HU_ICS =
|
413
|
+
T.let(
|
414
|
+
:hu_ics,
|
415
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
416
|
+
)
|
417
|
+
INTERAC =
|
418
|
+
T.let(
|
419
|
+
:interac,
|
420
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
421
|
+
)
|
422
|
+
MASAV =
|
423
|
+
T.let(
|
424
|
+
:masav,
|
425
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
426
|
+
)
|
427
|
+
MX_CCEN =
|
428
|
+
T.let(
|
429
|
+
:mx_ccen,
|
430
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
431
|
+
)
|
432
|
+
NEFT =
|
433
|
+
T.let(
|
434
|
+
:neft,
|
435
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
436
|
+
)
|
437
|
+
NICS =
|
438
|
+
T.let(
|
439
|
+
:nics,
|
440
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
441
|
+
)
|
442
|
+
NZ_BECS =
|
443
|
+
T.let(
|
444
|
+
:nz_becs,
|
445
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
446
|
+
)
|
447
|
+
PL_ELIXIR =
|
448
|
+
T.let(
|
449
|
+
:pl_elixir,
|
450
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
451
|
+
)
|
452
|
+
POLYGON =
|
453
|
+
T.let(
|
454
|
+
:polygon,
|
455
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
456
|
+
)
|
457
|
+
PROVXCHANGE =
|
458
|
+
T.let(
|
459
|
+
:provxchange,
|
460
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
461
|
+
)
|
462
|
+
RO_SENT =
|
463
|
+
T.let(
|
464
|
+
:ro_sent,
|
465
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
466
|
+
)
|
467
|
+
RTP =
|
468
|
+
T.let(
|
469
|
+
:rtp,
|
470
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
471
|
+
)
|
472
|
+
SE_BANKGIROT =
|
473
|
+
T.let(
|
474
|
+
:se_bankgirot,
|
475
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
476
|
+
)
|
477
|
+
SEN =
|
478
|
+
T.let(
|
479
|
+
:sen,
|
480
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
481
|
+
)
|
482
|
+
SEPA =
|
483
|
+
T.let(
|
484
|
+
:sepa,
|
485
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
486
|
+
)
|
487
|
+
SG_GIRO =
|
488
|
+
T.let(
|
489
|
+
:sg_giro,
|
490
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
491
|
+
)
|
492
|
+
SIC =
|
493
|
+
T.let(
|
494
|
+
:sic,
|
495
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
496
|
+
)
|
497
|
+
SIGNET =
|
498
|
+
T.let(
|
499
|
+
:signet,
|
500
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
501
|
+
)
|
502
|
+
SKNBI =
|
503
|
+
T.let(
|
504
|
+
:sknbi,
|
505
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
506
|
+
)
|
507
|
+
SOLANA =
|
508
|
+
T.let(
|
509
|
+
:solana,
|
510
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
511
|
+
)
|
512
|
+
WIRE =
|
513
|
+
T.let(
|
514
|
+
:wire,
|
515
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
516
|
+
)
|
517
|
+
ZENGIN =
|
518
|
+
T.let(
|
519
|
+
:zengin,
|
520
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
521
|
+
)
|
522
|
+
|
523
|
+
sig do
|
524
|
+
override.returns(
|
525
|
+
T::Array[
|
526
|
+
ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType::TaggedSymbol
|
527
|
+
]
|
528
|
+
)
|
529
|
+
end
|
530
|
+
def self.values
|
531
|
+
end
|
532
|
+
end
|
533
|
+
end
|
534
|
+
|
202
535
|
# The account type, used to provision the appropriate account at the financial
|
203
536
|
# institution.
|
204
537
|
module AccountType
|
@@ -37,6 +37,43 @@ module ModernTreasury
|
|
37
37
|
end
|
38
38
|
def to_hash
|
39
39
|
end
|
40
|
+
|
41
|
+
module ID
|
42
|
+
extend ModernTreasury::Internal::Type::Union
|
43
|
+
|
44
|
+
Variants =
|
45
|
+
T.type_alias do
|
46
|
+
T.any(
|
47
|
+
String,
|
48
|
+
ModernTreasury::InternalAccounts::BalanceReportRetrieveParams::ID::TaggedSymbol
|
49
|
+
)
|
50
|
+
end
|
51
|
+
|
52
|
+
sig do
|
53
|
+
override.returns(
|
54
|
+
T::Array[
|
55
|
+
ModernTreasury::InternalAccounts::BalanceReportRetrieveParams::ID::Variants
|
56
|
+
]
|
57
|
+
)
|
58
|
+
end
|
59
|
+
def self.variants
|
60
|
+
end
|
61
|
+
|
62
|
+
TaggedSymbol =
|
63
|
+
T.type_alias do
|
64
|
+
T.all(
|
65
|
+
Symbol,
|
66
|
+
ModernTreasury::InternalAccounts::BalanceReportRetrieveParams::ID
|
67
|
+
)
|
68
|
+
end
|
69
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
70
|
+
|
71
|
+
LATEST =
|
72
|
+
T.let(
|
73
|
+
:latest,
|
74
|
+
ModernTreasury::InternalAccounts::BalanceReportRetrieveParams::ID::TaggedSymbol
|
75
|
+
)
|
76
|
+
end
|
40
77
|
end
|
41
78
|
end
|
42
79
|
end
|
@@ -101,6 +101,11 @@ module ModernTreasury
|
|
101
101
|
end
|
102
102
|
attr_writer :invoicer_address
|
103
103
|
|
104
|
+
# The name of the issuer for the invoice. Defaults to the name of the
|
105
|
+
# Organization.
|
106
|
+
sig { returns(T.nilable(String)) }
|
107
|
+
attr_accessor :invoicer_name
|
108
|
+
|
104
109
|
# The ledger account settlement object linked to the invoice.
|
105
110
|
sig { returns(T.nilable(String)) }
|
106
111
|
attr_accessor :ledger_account_settlement_id
|
@@ -229,6 +234,7 @@ module ModernTreasury
|
|
229
234
|
hosted_url: String,
|
230
235
|
invoicer_address:
|
231
236
|
T.nilable(ModernTreasury::Invoice::InvoicerAddress::OrHash),
|
237
|
+
invoicer_name: T.nilable(String),
|
232
238
|
ledger_account_settlement_id: T.nilable(String),
|
233
239
|
live_mode: T::Boolean,
|
234
240
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
@@ -287,6 +293,9 @@ module ModernTreasury
|
|
287
293
|
hosted_url:,
|
288
294
|
# The invoice issuer's business address.
|
289
295
|
invoicer_address:,
|
296
|
+
# The name of the issuer for the invoice. Defaults to the name of the
|
297
|
+
# Organization.
|
298
|
+
invoicer_name:,
|
290
299
|
# The ledger account settlement object linked to the invoice.
|
291
300
|
ledger_account_settlement_id:,
|
292
301
|
# This field will be true if this object exists in the live environment or false
|
@@ -366,6 +375,7 @@ module ModernTreasury
|
|
366
375
|
hosted_url: String,
|
367
376
|
invoicer_address:
|
368
377
|
T.nilable(ModernTreasury::Invoice::InvoicerAddress),
|
378
|
+
invoicer_name: T.nilable(String),
|
369
379
|
ledger_account_settlement_id: T.nilable(String),
|
370
380
|
live_mode: T::Boolean,
|
371
381
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
@@ -37,6 +37,10 @@ module ModernTreasury
|
|
37
37
|
sig { returns(T.nilable(Time)) }
|
38
38
|
attr_accessor :discarded_at
|
39
39
|
|
40
|
+
# An optional user-defined 180 character unique identifier.
|
41
|
+
sig { returns(T.nilable(String)) }
|
42
|
+
attr_accessor :external_id
|
43
|
+
|
40
44
|
# The id of the ledger that this account belongs to.
|
41
45
|
sig { returns(String) }
|
42
46
|
attr_accessor :ledger_id
|
@@ -91,6 +95,7 @@ module ModernTreasury
|
|
91
95
|
created_at: Time,
|
92
96
|
description: T.nilable(String),
|
93
97
|
discarded_at: T.nilable(Time),
|
98
|
+
external_id: T.nilable(String),
|
94
99
|
ledger_id: String,
|
95
100
|
ledgerable_id: T.nilable(String),
|
96
101
|
ledgerable_type:
|
@@ -116,6 +121,8 @@ module ModernTreasury
|
|
116
121
|
# The description of the ledger account.
|
117
122
|
description:,
|
118
123
|
discarded_at:,
|
124
|
+
# An optional user-defined 180 character unique identifier.
|
125
|
+
external_id:,
|
119
126
|
# The id of the ledger that this account belongs to.
|
120
127
|
ledger_id:,
|
121
128
|
# If the ledger account links to another object in Modern Treasury, the id will be
|
@@ -150,6 +157,7 @@ module ModernTreasury
|
|
150
157
|
created_at: Time,
|
151
158
|
description: T.nilable(String),
|
152
159
|
discarded_at: T.nilable(Time),
|
160
|
+
external_id: T.nilable(String),
|
153
161
|
ledger_id: String,
|
154
162
|
ledgerable_id: T.nilable(String),
|
155
163
|
ledgerable_type:
|
@@ -39,6 +39,10 @@ module ModernTreasury
|
|
39
39
|
sig { returns(T.nilable(Time)) }
|
40
40
|
attr_accessor :discarded_at
|
41
41
|
|
42
|
+
# An optional user-defined 180 character unique identifier.
|
43
|
+
sig { returns(T.nilable(String)) }
|
44
|
+
attr_accessor :external_id
|
45
|
+
|
42
46
|
# The id of the ledger that this account category belongs to.
|
43
47
|
sig { returns(String) }
|
44
48
|
attr_accessor :ledger_id
|
@@ -74,6 +78,7 @@ module ModernTreasury
|
|
74
78
|
created_at: Time,
|
75
79
|
description: T.nilable(String),
|
76
80
|
discarded_at: T.nilable(Time),
|
81
|
+
external_id: T.nilable(String),
|
77
82
|
ledger_id: String,
|
78
83
|
live_mode: T::Boolean,
|
79
84
|
metadata: T::Hash[Symbol, String],
|
@@ -95,6 +100,8 @@ module ModernTreasury
|
|
95
100
|
# The description of the ledger account category.
|
96
101
|
description:,
|
97
102
|
discarded_at:,
|
103
|
+
# An optional user-defined 180 character unique identifier.
|
104
|
+
external_id:,
|
98
105
|
# The id of the ledger that this account category belongs to.
|
99
106
|
ledger_id:,
|
100
107
|
# This field will be true if this object exists in the live environment or false
|
@@ -120,6 +127,7 @@ module ModernTreasury
|
|
120
127
|
created_at: Time,
|
121
128
|
description: T.nilable(String),
|
122
129
|
discarded_at: T.nilable(Time),
|
130
|
+
external_id: T.nilable(String),
|
123
131
|
ledger_id: String,
|
124
132
|
live_mode: T::Boolean,
|
125
133
|
metadata: T::Hash[Symbol, String],
|
@@ -49,6 +49,12 @@ module ModernTreasury
|
|
49
49
|
sig { params(currency: String).void }
|
50
50
|
attr_writer :currency
|
51
51
|
|
52
|
+
sig { returns(T.nilable(String)) }
|
53
|
+
attr_reader :external_id
|
54
|
+
|
55
|
+
sig { params(external_id: String).void }
|
56
|
+
attr_writer :external_id
|
57
|
+
|
52
58
|
# Query categories which contain a ledger account directly or through child
|
53
59
|
# categories.
|
54
60
|
sig { returns(T.nilable(String)) }
|
@@ -98,6 +104,7 @@ module ModernTreasury
|
|
98
104
|
balances:
|
99
105
|
ModernTreasury::LedgerAccountCategoryListParams::Balances::OrHash,
|
100
106
|
currency: String,
|
107
|
+
external_id: String,
|
101
108
|
ledger_account_id: String,
|
102
109
|
ledger_id: String,
|
103
110
|
metadata: T::Hash[Symbol, String],
|
@@ -117,6 +124,7 @@ module ModernTreasury
|
|
117
124
|
# The balances as of a time are inclusive of entries with that exact time.
|
118
125
|
balances: nil,
|
119
126
|
currency: nil,
|
127
|
+
external_id: nil,
|
120
128
|
# Query categories which contain a ledger account directly or through child
|
121
129
|
# categories.
|
122
130
|
ledger_account_id: nil,
|
@@ -140,6 +148,7 @@ module ModernTreasury
|
|
140
148
|
after_cursor: T.nilable(String),
|
141
149
|
balances: ModernTreasury::LedgerAccountCategoryListParams::Balances,
|
142
150
|
currency: String,
|
151
|
+
external_id: String,
|
143
152
|
ledger_account_id: String,
|
144
153
|
ledger_id: String,
|
145
154
|
metadata: T::Hash[Symbol, String],
|
@@ -76,6 +76,12 @@ module ModernTreasury
|
|
76
76
|
sig { params(currency: String).void }
|
77
77
|
attr_writer :currency
|
78
78
|
|
79
|
+
sig { returns(T.nilable(String)) }
|
80
|
+
attr_reader :external_id
|
81
|
+
|
82
|
+
sig { params(external_id: String).void }
|
83
|
+
attr_writer :external_id
|
84
|
+
|
79
85
|
sig { returns(T.nilable(String)) }
|
80
86
|
attr_reader :ledger_account_category_id
|
81
87
|
|
@@ -105,6 +111,16 @@ module ModernTreasury
|
|
105
111
|
sig { params(name: T::Array[String]).void }
|
106
112
|
attr_writer :name
|
107
113
|
|
114
|
+
sig { returns(T.nilable(ModernTreasury::TransactionDirection::OrSymbol)) }
|
115
|
+
attr_reader :normal_balance
|
116
|
+
|
117
|
+
sig do
|
118
|
+
params(
|
119
|
+
normal_balance: ModernTreasury::TransactionDirection::OrSymbol
|
120
|
+
).void
|
121
|
+
end
|
122
|
+
attr_writer :normal_balance
|
123
|
+
|
108
124
|
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to
|
109
125
|
# filter by balance amount.
|
110
126
|
sig do
|
@@ -167,10 +183,12 @@ module ModernTreasury
|
|
167
183
|
balances: ModernTreasury::LedgerAccountListParams::Balances::OrHash,
|
168
184
|
created_at: T::Hash[Symbol, Time],
|
169
185
|
currency: String,
|
186
|
+
external_id: String,
|
170
187
|
ledger_account_category_id: String,
|
171
188
|
ledger_id: String,
|
172
189
|
metadata: T::Hash[Symbol, String],
|
173
190
|
name: T::Array[String],
|
191
|
+
normal_balance: ModernTreasury::TransactionDirection::OrSymbol,
|
174
192
|
pending_balance_amount:
|
175
193
|
ModernTreasury::LedgerAccountListParams::PendingBalanceAmount::OrHash,
|
176
194
|
per_page: Integer,
|
@@ -199,6 +217,7 @@ module ModernTreasury
|
|
199
217
|
# created_at%5Bgt%5D=2000-01-01T12:00:00Z.
|
200
218
|
created_at: nil,
|
201
219
|
currency: nil,
|
220
|
+
external_id: nil,
|
202
221
|
ledger_account_category_id: nil,
|
203
222
|
ledger_id: nil,
|
204
223
|
# For example, if you want to query for records with metadata key `Type` and value
|
@@ -208,6 +227,7 @@ module ModernTreasury
|
|
208
227
|
# If you have specific names to retrieve in bulk, you can pass them as query
|
209
228
|
# parameters delimited with `name[]=`, for example `?name[]=123&name[]=abc`.
|
210
229
|
name: nil,
|
230
|
+
normal_balance: nil,
|
211
231
|
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to
|
212
232
|
# filter by balance amount.
|
213
233
|
pending_balance_amount: nil,
|
@@ -233,10 +253,12 @@ module ModernTreasury
|
|
233
253
|
balances: ModernTreasury::LedgerAccountListParams::Balances,
|
234
254
|
created_at: T::Hash[Symbol, Time],
|
235
255
|
currency: String,
|
256
|
+
external_id: String,
|
236
257
|
ledger_account_category_id: String,
|
237
258
|
ledger_id: String,
|
238
259
|
metadata: T::Hash[Symbol, String],
|
239
260
|
name: T::Array[String],
|
261
|
+
normal_balance: ModernTreasury::TransactionDirection::OrSymbol,
|
240
262
|
pending_balance_amount:
|
241
263
|
ModernTreasury::LedgerAccountListParams::PendingBalanceAmount,
|
242
264
|
per_page: Integer,
|