modern_treasury 0.11.0 → 0.12.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 +31 -0
- data/README.md +10 -1
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/modern_treasury/internal/util.rb +7 -2
- data/lib/modern_treasury/models/bulk_request_create_params.rb +146 -2
- data/lib/modern_treasury/models/child_legal_entity.rb +609 -0
- data/lib/modern_treasury/models/child_legal_entity_create.rb +63 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +2 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +54 -63
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -0
- data/lib/modern_treasury/models/counterparty_create_params.rb +54 -59
- data/lib/modern_treasury/models/expected_payment.rb +69 -1
- data/lib/modern_treasury/models/expected_payment_create_params.rb +65 -1
- data/lib/modern_treasury/models/expected_payment_update_params.rb +65 -1
- data/lib/modern_treasury/models/incoming_payment_detail.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +5 -0
- data/lib/modern_treasury/models/internal_account.rb +10 -1
- data/lib/modern_treasury/models/internal_account_update_params.rb +9 -1
- data/lib/modern_treasury/models/invoice.rb +2 -0
- data/lib/modern_treasury/models/invoice_create_params.rb +1 -19
- data/lib/modern_treasury/models/invoice_update_params.rb +1 -19
- data/lib/modern_treasury/models/ledger_entry.rb +10 -1
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +10 -1
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +61 -11
- data/lib/modern_treasury/models/legal_entity_association.rb +3 -559
- data/lib/modern_treasury/models/legal_entity_association_inline_create.rb +60 -0
- data/lib/modern_treasury/models/legal_entity_create_params.rb +54 -59
- data/lib/modern_treasury/models/legal_entity_update_params.rb +51 -1
- data/lib/modern_treasury/models/payment_order.rb +4 -0
- data/lib/modern_treasury/models/payment_reference.rb +4 -0
- data/lib/modern_treasury/models/return_object.rb +5 -0
- data/lib/modern_treasury/models/transaction.rb +1 -0
- data/lib/modern_treasury/models.rb +4 -0
- data/lib/modern_treasury/resources/expected_payments.rb +18 -2
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/invoices.rb +2 -10
- data/lib/modern_treasury/resources/ledger_accounts.rb +3 -3
- data/lib/modern_treasury/resources/ledger_transactions.rb +5 -2
- data/lib/modern_treasury/resources/legal_entities.rb +27 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +3 -0
- data/manifest.yaml +1 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +272 -0
- data/rbi/modern_treasury/models/child_legal_entity.rbi +969 -0
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +78 -0
- data/rbi/modern_treasury/models/connection_legal_entity.rbi +10 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +10 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/expected_payment.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +136 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account.rbi +10 -0
- data/rbi/modern_treasury/models/internal_account_update_params.rbi +11 -0
- data/rbi/modern_treasury/models/invoice_create_params.rbi +0 -20
- data/rbi/modern_treasury/models/invoice_update_params.rbi +0 -20
- data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +13 -0
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +67 -15
- data/rbi/modern_treasury/models/legal_entity_association.rbi +4 -962
- data/rbi/modern_treasury/models/legal_entity_association_inline_create.rbi +130 -0
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +61 -134
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +58 -0
- data/rbi/modern_treasury/models/payment_order.rbi +20 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
- data/rbi/modern_treasury/models/return_object.rbi +22 -0
- data/rbi/modern_treasury/models/transaction.rbi +5 -0
- data/rbi/modern_treasury/models.rbi +5 -0
- data/rbi/modern_treasury/resources/expected_payments.rbi +44 -0
- data/rbi/modern_treasury/resources/internal_accounts.rbi +3 -0
- data/rbi/modern_treasury/resources/invoices.rbi +0 -16
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +3 -3
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -2
- data/rbi/modern_treasury/resources/legal_entities.rbi +41 -1
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +84 -0
- data/sig/modern_treasury/models/child_legal_entity.rbs +469 -0
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +39 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +4 -1
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +4 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +38 -60
- data/sig/modern_treasury/models/expected_payment.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +42 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +10 -0
- data/sig/modern_treasury/models/internal_account.rbs +5 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +0 -10
- data/sig/modern_treasury/models/invoice_update_params.rbs +0 -10
- data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +7 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +38 -8
- data/sig/modern_treasury/models/legal_entity_association.rbs +4 -435
- data/sig/modern_treasury/models/legal_entity_association_inline_create.rbs +59 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +34 -0
- data/sig/modern_treasury/models/payment_order.rbs +8 -0
- data/sig/modern_treasury/models/payment_reference.rbs +8 -0
- data/sig/modern_treasury/models/return_object.rbs +10 -0
- data/sig/modern_treasury/models/transaction.rbs +2 -0
- data/sig/modern_treasury/models.rbs +4 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +8 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/invoices.rbs +0 -4
- data/sig/modern_treasury/resources/legal_entities.rbs +13 -1
- metadata +8 -2
|
@@ -1185,6 +1185,11 @@ module ModernTreasury
|
|
|
1185
1185
|
:bankprov_payment_id,
|
|
1186
1186
|
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
1187
1187
|
)
|
|
1188
|
+
BLOCKCHAIN_TRANSACTION_HASH =
|
|
1189
|
+
T.let(
|
|
1190
|
+
:blockchain_transaction_hash,
|
|
1191
|
+
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
1192
|
+
)
|
|
1188
1193
|
BNK_DEV_PRENOTIFICATION_ID =
|
|
1189
1194
|
T.let(
|
|
1190
1195
|
:bnk_dev_prenotification_id,
|
|
@@ -1430,6 +1435,11 @@ module ModernTreasury
|
|
|
1430
1435
|
:lob_check_id,
|
|
1431
1436
|
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
1432
1437
|
)
|
|
1438
|
+
MT_FLOW_ACH_NOC_ID =
|
|
1439
|
+
T.let(
|
|
1440
|
+
:mt_flow_ach_noc_id,
|
|
1441
|
+
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
1442
|
+
)
|
|
1433
1443
|
MT_FLOW_TRANSFER_ID =
|
|
1434
1444
|
T.let(
|
|
1435
1445
|
:mt_flow_transfer_id,
|
|
@@ -1445,6 +1455,16 @@ module ModernTreasury
|
|
|
1445
1455
|
:partial_swift_mir,
|
|
1446
1456
|
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
1447
1457
|
)
|
|
1458
|
+
PAXOS_ORCHESTRATION_ID =
|
|
1459
|
+
T.let(
|
|
1460
|
+
:paxos_orchestration_id,
|
|
1461
|
+
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
1462
|
+
)
|
|
1463
|
+
PAXOS_TRANSFER_ID =
|
|
1464
|
+
T.let(
|
|
1465
|
+
:paxos_transfer_id,
|
|
1466
|
+
ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
1467
|
+
)
|
|
1448
1468
|
PNC_CLEARING_REFERENCE =
|
|
1449
1469
|
T.let(
|
|
1450
1470
|
:pnc_clearing_reference,
|
|
@@ -140,6 +140,11 @@ module ModernTreasury
|
|
|
140
140
|
:bankprov_payment_id,
|
|
141
141
|
ModernTreasury::PaymentReference::ReferenceNumberType::TaggedSymbol
|
|
142
142
|
)
|
|
143
|
+
BLOCKCHAIN_TRANSACTION_HASH =
|
|
144
|
+
T.let(
|
|
145
|
+
:blockchain_transaction_hash,
|
|
146
|
+
ModernTreasury::PaymentReference::ReferenceNumberType::TaggedSymbol
|
|
147
|
+
)
|
|
143
148
|
BNK_DEV_PRENOTIFICATION_ID =
|
|
144
149
|
T.let(
|
|
145
150
|
:bnk_dev_prenotification_id,
|
|
@@ -385,6 +390,11 @@ module ModernTreasury
|
|
|
385
390
|
:lob_check_id,
|
|
386
391
|
ModernTreasury::PaymentReference::ReferenceNumberType::TaggedSymbol
|
|
387
392
|
)
|
|
393
|
+
MT_FLOW_ACH_NOC_ID =
|
|
394
|
+
T.let(
|
|
395
|
+
:mt_flow_ach_noc_id,
|
|
396
|
+
ModernTreasury::PaymentReference::ReferenceNumberType::TaggedSymbol
|
|
397
|
+
)
|
|
388
398
|
MT_FLOW_TRANSFER_ID =
|
|
389
399
|
T.let(
|
|
390
400
|
:mt_flow_transfer_id,
|
|
@@ -400,6 +410,16 @@ module ModernTreasury
|
|
|
400
410
|
:partial_swift_mir,
|
|
401
411
|
ModernTreasury::PaymentReference::ReferenceNumberType::TaggedSymbol
|
|
402
412
|
)
|
|
413
|
+
PAXOS_ORCHESTRATION_ID =
|
|
414
|
+
T.let(
|
|
415
|
+
:paxos_orchestration_id,
|
|
416
|
+
ModernTreasury::PaymentReference::ReferenceNumberType::TaggedSymbol
|
|
417
|
+
)
|
|
418
|
+
PAXOS_TRANSFER_ID =
|
|
419
|
+
T.let(
|
|
420
|
+
:paxos_transfer_id,
|
|
421
|
+
ModernTreasury::PaymentReference::ReferenceNumberType::TaggedSymbol
|
|
422
|
+
)
|
|
403
423
|
PNC_CLEARING_REFERENCE =
|
|
404
424
|
T.let(
|
|
405
425
|
:pnc_clearing_reference,
|
|
@@ -652,6 +652,11 @@ module ModernTreasury
|
|
|
652
652
|
:bankprov_payment_id,
|
|
653
653
|
ModernTreasury::ReturnObject::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
654
654
|
)
|
|
655
|
+
BLOCKCHAIN_TRANSACTION_HASH =
|
|
656
|
+
T.let(
|
|
657
|
+
:blockchain_transaction_hash,
|
|
658
|
+
ModernTreasury::ReturnObject::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
659
|
+
)
|
|
655
660
|
BNK_DEV_PRENOTIFICATION_ID =
|
|
656
661
|
T.let(
|
|
657
662
|
:bnk_dev_prenotification_id,
|
|
@@ -897,6 +902,11 @@ module ModernTreasury
|
|
|
897
902
|
:lob_check_id,
|
|
898
903
|
ModernTreasury::ReturnObject::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
899
904
|
)
|
|
905
|
+
MT_FLOW_ACH_NOC_ID =
|
|
906
|
+
T.let(
|
|
907
|
+
:mt_flow_ach_noc_id,
|
|
908
|
+
ModernTreasury::ReturnObject::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
909
|
+
)
|
|
900
910
|
MT_FLOW_TRANSFER_ID =
|
|
901
911
|
T.let(
|
|
902
912
|
:mt_flow_transfer_id,
|
|
@@ -912,6 +922,16 @@ module ModernTreasury
|
|
|
912
922
|
:partial_swift_mir,
|
|
913
923
|
ModernTreasury::ReturnObject::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
914
924
|
)
|
|
925
|
+
PAXOS_ORCHESTRATION_ID =
|
|
926
|
+
T.let(
|
|
927
|
+
:paxos_orchestration_id,
|
|
928
|
+
ModernTreasury::ReturnObject::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
929
|
+
)
|
|
930
|
+
PAXOS_TRANSFER_ID =
|
|
931
|
+
T.let(
|
|
932
|
+
:paxos_transfer_id,
|
|
933
|
+
ModernTreasury::ReturnObject::ReferenceNumber::ReferenceNumberType::TaggedSymbol
|
|
934
|
+
)
|
|
915
935
|
PNC_CLEARING_REFERENCE =
|
|
916
936
|
T.let(
|
|
917
937
|
:pnc_clearing_reference,
|
|
@@ -1194,6 +1214,8 @@ module ModernTreasury
|
|
|
1194
1214
|
T.let(:manual, ModernTreasury::ReturnObject::Type::TaggedSymbol)
|
|
1195
1215
|
SEPA = T.let(:sepa, ModernTreasury::ReturnObject::Type::TaggedSymbol)
|
|
1196
1216
|
WIRE = T.let(:wire, ModernTreasury::ReturnObject::Type::TaggedSymbol)
|
|
1217
|
+
ZENGIN =
|
|
1218
|
+
T.let(:zengin, ModernTreasury::ReturnObject::Type::TaggedSymbol)
|
|
1197
1219
|
|
|
1198
1220
|
sig do
|
|
1199
1221
|
override.returns(
|
|
@@ -449,6 +449,11 @@ module ModernTreasury
|
|
|
449
449
|
)
|
|
450
450
|
MX =
|
|
451
451
|
T.let(:mx, ModernTreasury::Transaction::VendorCodeType::TaggedSymbol)
|
|
452
|
+
PAXOS =
|
|
453
|
+
T.let(
|
|
454
|
+
:paxos,
|
|
455
|
+
ModernTreasury::Transaction::VendorCodeType::TaggedSymbol
|
|
456
|
+
)
|
|
452
457
|
PAYPAL =
|
|
453
458
|
T.let(
|
|
454
459
|
:paypal,
|
|
@@ -50,6 +50,8 @@ module ModernTreasury
|
|
|
50
50
|
|
|
51
51
|
BulkResultRetrieveParams = ModernTreasury::Models::BulkResultRetrieveParams
|
|
52
52
|
|
|
53
|
+
ChildLegalEntity = ModernTreasury::Models::ChildLegalEntity
|
|
54
|
+
|
|
53
55
|
ChildLegalEntityCreate = ModernTreasury::Models::ChildLegalEntityCreate
|
|
54
56
|
|
|
55
57
|
ClientPingParams = ModernTreasury::Models::ClientPingParams
|
|
@@ -386,6 +388,9 @@ module ModernTreasury
|
|
|
386
388
|
LegalEntityAssociationCreateParams =
|
|
387
389
|
ModernTreasury::Models::LegalEntityAssociationCreateParams
|
|
388
390
|
|
|
391
|
+
LegalEntityAssociationInlineCreate =
|
|
392
|
+
ModernTreasury::Models::LegalEntityAssociationInlineCreate
|
|
393
|
+
|
|
389
394
|
LegalEntityBankSettings = ModernTreasury::Models::LegalEntityBankSettings
|
|
390
395
|
|
|
391
396
|
LegalEntityComplianceDetail =
|
|
@@ -7,6 +7,16 @@ module ModernTreasury
|
|
|
7
7
|
sig do
|
|
8
8
|
params(
|
|
9
9
|
amount_lower_bound: T.nilable(Integer),
|
|
10
|
+
amount_reconciled: T.nilable(Integer),
|
|
11
|
+
amount_reconciled_direction:
|
|
12
|
+
T.nilable(
|
|
13
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountReconciledDirection::OrSymbol
|
|
14
|
+
),
|
|
15
|
+
amount_unreconciled: T.nilable(Integer),
|
|
16
|
+
amount_unreconciled_direction:
|
|
17
|
+
T.nilable(
|
|
18
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountUnreconciledDirection::OrSymbol
|
|
19
|
+
),
|
|
10
20
|
amount_upper_bound: T.nilable(Integer),
|
|
11
21
|
counterparty_id: T.nilable(String),
|
|
12
22
|
currency: T.nilable(ModernTreasury::Currency::OrSymbol),
|
|
@@ -41,6 +51,18 @@ module ModernTreasury
|
|
|
41
51
|
# The lowest amount this expected payment may be equal to. Value in specified
|
|
42
52
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
43
53
|
amount_lower_bound: nil,
|
|
54
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
55
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
56
|
+
amount_reconciled: nil,
|
|
57
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
58
|
+
# amount.
|
|
59
|
+
amount_reconciled_direction: nil,
|
|
60
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
61
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
62
|
+
amount_unreconciled: nil,
|
|
63
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
64
|
+
# debit amount.
|
|
65
|
+
amount_unreconciled_direction: nil,
|
|
44
66
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
45
67
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
46
68
|
amount_upper_bound: nil,
|
|
@@ -116,6 +138,16 @@ module ModernTreasury
|
|
|
116
138
|
params(
|
|
117
139
|
id: String,
|
|
118
140
|
amount_lower_bound: T.nilable(Integer),
|
|
141
|
+
amount_reconciled: T.nilable(Integer),
|
|
142
|
+
amount_reconciled_direction:
|
|
143
|
+
T.nilable(
|
|
144
|
+
ModernTreasury::ExpectedPaymentUpdateParams::AmountReconciledDirection::OrSymbol
|
|
145
|
+
),
|
|
146
|
+
amount_unreconciled: T.nilable(Integer),
|
|
147
|
+
amount_unreconciled_direction:
|
|
148
|
+
T.nilable(
|
|
149
|
+
ModernTreasury::ExpectedPaymentUpdateParams::AmountUnreconciledDirection::OrSymbol
|
|
150
|
+
),
|
|
119
151
|
amount_upper_bound: T.nilable(Integer),
|
|
120
152
|
counterparty_id: T.nilable(String),
|
|
121
153
|
currency: T.nilable(ModernTreasury::Currency::OrSymbol),
|
|
@@ -149,6 +181,18 @@ module ModernTreasury
|
|
|
149
181
|
# The lowest amount this expected payment may be equal to. Value in specified
|
|
150
182
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
151
183
|
amount_lower_bound: nil,
|
|
184
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
185
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
186
|
+
amount_reconciled: nil,
|
|
187
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
188
|
+
# amount.
|
|
189
|
+
amount_reconciled_direction: nil,
|
|
190
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
191
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
192
|
+
amount_unreconciled: nil,
|
|
193
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
194
|
+
# debit amount.
|
|
195
|
+
amount_unreconciled_direction: nil,
|
|
152
196
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
153
197
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
154
198
|
amount_upper_bound: nil,
|
|
@@ -80,6 +80,7 @@ module ModernTreasury
|
|
|
80
80
|
sig do
|
|
81
81
|
params(
|
|
82
82
|
id: String,
|
|
83
|
+
contra_ledger_account_id: String,
|
|
83
84
|
counterparty_id: String,
|
|
84
85
|
ledger_account_id: String,
|
|
85
86
|
metadata: T::Hash[Symbol, String],
|
|
@@ -91,6 +92,8 @@ module ModernTreasury
|
|
|
91
92
|
def update(
|
|
92
93
|
# Unique identifier for the account.
|
|
93
94
|
id,
|
|
95
|
+
# The Contra Ledger Account associated to this account.
|
|
96
|
+
contra_ledger_account_id: nil,
|
|
94
97
|
# The Counterparty associated to this account.
|
|
95
98
|
counterparty_id: nil,
|
|
96
99
|
# The Ledger Account associated to this account.
|
|
@@ -25,7 +25,6 @@ module ModernTreasury
|
|
|
25
25
|
currency: ModernTreasury::Currency::OrSymbol,
|
|
26
26
|
description: String,
|
|
27
27
|
fallback_payment_method: T.nilable(String),
|
|
28
|
-
ingest_ledger_entries: T.nilable(T::Boolean),
|
|
29
28
|
invoice_line_items:
|
|
30
29
|
T.nilable(
|
|
31
30
|
T::Array[
|
|
@@ -36,7 +35,6 @@ module ModernTreasury
|
|
|
36
35
|
T.nilable(
|
|
37
36
|
ModernTreasury::InvoiceCreateParams::InvoicerAddress::OrHash
|
|
38
37
|
),
|
|
39
|
-
ledger_account_settlement_id: T.nilable(String),
|
|
40
38
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
41
39
|
notification_email_addresses: T.nilable(T::Array[String]),
|
|
42
40
|
notifications_enabled: T::Boolean,
|
|
@@ -76,18 +74,12 @@ module ModernTreasury
|
|
|
76
74
|
# When payment_method is automatic, the fallback payment method to use when an
|
|
77
75
|
# automatic payment fails. One of `manual` or `ui`.
|
|
78
76
|
fallback_payment_method: nil,
|
|
79
|
-
# Whether to ingest the ledger_entries to populate the invoice line items. If this
|
|
80
|
-
# is false, then a line item must be provided. If this is true, line_items must be
|
|
81
|
-
# empty. Ignored if ledger_account_settlement_id is empty.
|
|
82
|
-
ingest_ledger_entries: nil,
|
|
83
77
|
# An array of invoice line items. The API supports a maximum of 50 invoice line
|
|
84
78
|
# items per invoice. If a greater number of invoice line items is required, please
|
|
85
79
|
# contact support.
|
|
86
80
|
invoice_line_items: nil,
|
|
87
81
|
# The invoice issuer's business address.
|
|
88
82
|
invoicer_address: nil,
|
|
89
|
-
# The ID of the virtual account the invoice should be paid to.
|
|
90
|
-
ledger_account_settlement_id: nil,
|
|
91
83
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
92
84
|
# strings.
|
|
93
85
|
metadata: nil,
|
|
@@ -162,7 +154,6 @@ module ModernTreasury
|
|
|
162
154
|
description: String,
|
|
163
155
|
due_date: Time,
|
|
164
156
|
fallback_payment_method: T.nilable(String),
|
|
165
|
-
ingest_ledger_entries: T.nilable(T::Boolean),
|
|
166
157
|
invoice_line_items:
|
|
167
158
|
T.nilable(
|
|
168
159
|
T::Array[
|
|
@@ -173,7 +164,6 @@ module ModernTreasury
|
|
|
173
164
|
T.nilable(
|
|
174
165
|
ModernTreasury::InvoiceUpdateParams::InvoicerAddress::OrHash
|
|
175
166
|
),
|
|
176
|
-
ledger_account_settlement_id: T.nilable(String),
|
|
177
167
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
178
168
|
notification_email_addresses: T.nilable(T::Array[String]),
|
|
179
169
|
notifications_enabled: T::Boolean,
|
|
@@ -211,18 +201,12 @@ module ModernTreasury
|
|
|
211
201
|
# When payment_method is automatic, the fallback payment method to use when an
|
|
212
202
|
# automatic payment fails. One of `manual` or `ui`.
|
|
213
203
|
fallback_payment_method: nil,
|
|
214
|
-
# Whether to ingest the ledger_entries to populate the invoice line items. If this
|
|
215
|
-
# is false, then a line item must be provided. If this is true, line_items must be
|
|
216
|
-
# empty. Ignored if ledger_account_settlement_id is empty.
|
|
217
|
-
ingest_ledger_entries: nil,
|
|
218
204
|
# An array of invoice line items. The API supports a maximum of 50 invoice line
|
|
219
205
|
# items per invoice. If a greater number of invoice line items is required, please
|
|
220
206
|
# contact support.
|
|
221
207
|
invoice_line_items: nil,
|
|
222
208
|
# The invoice issuer's business address.
|
|
223
209
|
invoicer_address: nil,
|
|
224
|
-
# The ID of the virtual account the invoice should be paid to.
|
|
225
|
-
ledger_account_settlement_id: nil,
|
|
226
210
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
227
211
|
# strings.
|
|
228
212
|
metadata: nil,
|
|
@@ -60,7 +60,7 @@ module ModernTreasury
|
|
|
60
60
|
).returns(ModernTreasury::LedgerAccount)
|
|
61
61
|
end
|
|
62
62
|
def retrieve(
|
|
63
|
-
# id
|
|
63
|
+
# The ledger account id (UUID) or external_id
|
|
64
64
|
id,
|
|
65
65
|
# Use `balances[effective_at_lower_bound]` and
|
|
66
66
|
# `balances[effective_at_upper_bound]` to get the balances change between the two
|
|
@@ -84,7 +84,7 @@ module ModernTreasury
|
|
|
84
84
|
).returns(ModernTreasury::LedgerAccount)
|
|
85
85
|
end
|
|
86
86
|
def update(
|
|
87
|
-
# id
|
|
87
|
+
# The ledger account id (UUID)
|
|
88
88
|
id,
|
|
89
89
|
# The description of the ledger account.
|
|
90
90
|
description: nil,
|
|
@@ -175,7 +175,7 @@ module ModernTreasury
|
|
|
175
175
|
).returns(ModernTreasury::LedgerAccount)
|
|
176
176
|
end
|
|
177
177
|
def delete(
|
|
178
|
-
# id
|
|
178
|
+
# The ledger account id (UUID)
|
|
179
179
|
id,
|
|
180
180
|
request_options: {}
|
|
181
181
|
)
|
|
@@ -62,7 +62,8 @@ module ModernTreasury
|
|
|
62
62
|
).returns(ModernTreasury::LedgerTransaction)
|
|
63
63
|
end
|
|
64
64
|
def retrieve(
|
|
65
|
-
# id
|
|
65
|
+
# The ledger transaction id (UUID) or external_id. If using external_id, only
|
|
66
|
+
# non-archived Ledger Transactions will be returned.
|
|
66
67
|
id,
|
|
67
68
|
request_options: {}
|
|
68
69
|
)
|
|
@@ -86,7 +87,7 @@ module ModernTreasury
|
|
|
86
87
|
).returns(ModernTreasury::LedgerTransaction)
|
|
87
88
|
end
|
|
88
89
|
def update(
|
|
89
|
-
# id
|
|
90
|
+
# The ledger transaction id (UUID)
|
|
90
91
|
id,
|
|
91
92
|
# An optional description for internal use.
|
|
92
93
|
description: nil,
|
|
@@ -12,24 +12,28 @@ module ModernTreasury
|
|
|
12
12
|
T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash],
|
|
13
13
|
bank_settings:
|
|
14
14
|
T.nilable(ModernTreasury::LegalEntityBankSettings::OrHash),
|
|
15
|
+
business_description: T.nilable(String),
|
|
15
16
|
business_name: T.nilable(String),
|
|
16
17
|
citizenship_country: T.nilable(String),
|
|
17
18
|
compliance_details:
|
|
18
19
|
T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash),
|
|
20
|
+
country_of_incorporation: T.nilable(String),
|
|
19
21
|
date_formed: T.nilable(Date),
|
|
20
22
|
date_of_birth: T.nilable(Date),
|
|
21
23
|
doing_business_as_names: T::Array[String],
|
|
22
24
|
email: T.nilable(String),
|
|
25
|
+
expected_activity_volume: T.nilable(Integer),
|
|
23
26
|
first_name: T.nilable(String),
|
|
24
27
|
identifications:
|
|
25
28
|
T::Array[ModernTreasury::IdentificationCreateRequest::OrHash],
|
|
26
29
|
industry_classifications:
|
|
27
30
|
T::Array[ModernTreasury::LegalEntityIndustryClassification::OrHash],
|
|
31
|
+
intended_use: T.nilable(String),
|
|
28
32
|
last_name: T.nilable(String),
|
|
29
33
|
legal_entity_associations:
|
|
30
34
|
T.nilable(
|
|
31
35
|
T::Array[
|
|
32
|
-
ModernTreasury::
|
|
36
|
+
ModernTreasury::LegalEntityAssociationInlineCreate::OrHash
|
|
33
37
|
]
|
|
34
38
|
),
|
|
35
39
|
legal_structure:
|
|
@@ -38,6 +42,7 @@ module ModernTreasury
|
|
|
38
42
|
),
|
|
39
43
|
metadata: T::Hash[Symbol, String],
|
|
40
44
|
middle_name: T.nilable(String),
|
|
45
|
+
operating_jurisdictions: T::Array[String],
|
|
41
46
|
phone_numbers:
|
|
42
47
|
T::Array[
|
|
43
48
|
ModernTreasury::LegalEntityCreateParams::PhoneNumber::OrHash
|
|
@@ -45,6 +50,7 @@ module ModernTreasury
|
|
|
45
50
|
politically_exposed_person: T.nilable(T::Boolean),
|
|
46
51
|
preferred_name: T.nilable(String),
|
|
47
52
|
prefix: T.nilable(String),
|
|
53
|
+
primary_social_media_sites: T::Array[String],
|
|
48
54
|
risk_rating:
|
|
49
55
|
T.nilable(
|
|
50
56
|
ModernTreasury::LegalEntityCreateParams::RiskRating::OrSymbol
|
|
@@ -64,11 +70,16 @@ module ModernTreasury
|
|
|
64
70
|
# A list of addresses for the entity.
|
|
65
71
|
addresses: nil,
|
|
66
72
|
bank_settings: nil,
|
|
73
|
+
# A description of the business.
|
|
74
|
+
business_description: nil,
|
|
67
75
|
# The business's legal business name.
|
|
68
76
|
business_name: nil,
|
|
69
77
|
# The country of citizenship for an individual.
|
|
70
78
|
citizenship_country: nil,
|
|
71
79
|
compliance_details: nil,
|
|
80
|
+
# The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
81
|
+
# alpha-3 formats.
|
|
82
|
+
country_of_incorporation: nil,
|
|
72
83
|
# A business's formation date (YYYY-MM-DD).
|
|
73
84
|
date_formed: nil,
|
|
74
85
|
# An individual's date of birth (YYYY-MM-DD).
|
|
@@ -76,12 +87,16 @@ module ModernTreasury
|
|
|
76
87
|
doing_business_as_names: nil,
|
|
77
88
|
# The entity's primary email.
|
|
78
89
|
email: nil,
|
|
90
|
+
# Monthly expected transaction volume in entity's local currency.
|
|
91
|
+
expected_activity_volume: nil,
|
|
79
92
|
# An individual's first name.
|
|
80
93
|
first_name: nil,
|
|
81
94
|
# A list of identifications for the legal entity.
|
|
82
95
|
identifications: nil,
|
|
83
96
|
# A list of industry classifications for the legal entity.
|
|
84
97
|
industry_classifications: nil,
|
|
98
|
+
# A description of the intended use of the legal entity.
|
|
99
|
+
intended_use: nil,
|
|
85
100
|
# An individual's last name.
|
|
86
101
|
last_name: nil,
|
|
87
102
|
# The legal entity associations and its child legal entities.
|
|
@@ -93,6 +108,9 @@ module ModernTreasury
|
|
|
93
108
|
metadata: nil,
|
|
94
109
|
# An individual's middle name.
|
|
95
110
|
middle_name: nil,
|
|
111
|
+
# A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
112
|
+
# codes).
|
|
113
|
+
operating_jurisdictions: nil,
|
|
96
114
|
phone_numbers: nil,
|
|
97
115
|
# Whether the individual is a politically exposed person.
|
|
98
116
|
politically_exposed_person: nil,
|
|
@@ -100,6 +118,8 @@ module ModernTreasury
|
|
|
100
118
|
preferred_name: nil,
|
|
101
119
|
# An individual's prefix.
|
|
102
120
|
prefix: nil,
|
|
121
|
+
# A list of primary social media URLs for the business.
|
|
122
|
+
primary_social_media_sites: nil,
|
|
103
123
|
# The risk rating of the legal entity. One of low, medium, high.
|
|
104
124
|
risk_rating: nil,
|
|
105
125
|
# An individual's suffix.
|
|
@@ -133,19 +153,23 @@ module ModernTreasury
|
|
|
133
153
|
T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash],
|
|
134
154
|
bank_settings:
|
|
135
155
|
T.nilable(ModernTreasury::LegalEntityBankSettings::OrHash),
|
|
156
|
+
business_description: T.nilable(String),
|
|
136
157
|
business_name: T.nilable(String),
|
|
137
158
|
citizenship_country: T.nilable(String),
|
|
138
159
|
compliance_details:
|
|
139
160
|
T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash),
|
|
161
|
+
country_of_incorporation: T.nilable(String),
|
|
140
162
|
date_formed: T.nilable(Date),
|
|
141
163
|
date_of_birth: T.nilable(Date),
|
|
142
164
|
doing_business_as_names: T::Array[String],
|
|
143
165
|
email: T.nilable(String),
|
|
166
|
+
expected_activity_volume: T.nilable(Integer),
|
|
144
167
|
first_name: T.nilable(String),
|
|
145
168
|
identifications:
|
|
146
169
|
T::Array[ModernTreasury::IdentificationCreateRequest::OrHash],
|
|
147
170
|
industry_classifications:
|
|
148
171
|
T::Array[ModernTreasury::LegalEntityIndustryClassification::OrHash],
|
|
172
|
+
intended_use: T.nilable(String),
|
|
149
173
|
last_name: T.nilable(String),
|
|
150
174
|
legal_structure:
|
|
151
175
|
T.nilable(
|
|
@@ -153,6 +177,7 @@ module ModernTreasury
|
|
|
153
177
|
),
|
|
154
178
|
metadata: T::Hash[Symbol, String],
|
|
155
179
|
middle_name: T.nilable(String),
|
|
180
|
+
operating_jurisdictions: T::Array[String],
|
|
156
181
|
phone_numbers:
|
|
157
182
|
T::Array[
|
|
158
183
|
ModernTreasury::LegalEntityUpdateParams::PhoneNumber::OrHash
|
|
@@ -160,6 +185,7 @@ module ModernTreasury
|
|
|
160
185
|
politically_exposed_person: T.nilable(T::Boolean),
|
|
161
186
|
preferred_name: T.nilable(String),
|
|
162
187
|
prefix: T.nilable(String),
|
|
188
|
+
primary_social_media_sites: T::Array[String],
|
|
163
189
|
risk_rating:
|
|
164
190
|
T.nilable(
|
|
165
191
|
ModernTreasury::LegalEntityUpdateParams::RiskRating::OrSymbol
|
|
@@ -179,11 +205,16 @@ module ModernTreasury
|
|
|
179
205
|
# A list of addresses for the entity.
|
|
180
206
|
addresses: nil,
|
|
181
207
|
bank_settings: nil,
|
|
208
|
+
# A description of the business.
|
|
209
|
+
business_description: nil,
|
|
182
210
|
# The business's legal business name.
|
|
183
211
|
business_name: nil,
|
|
184
212
|
# The country of citizenship for an individual.
|
|
185
213
|
citizenship_country: nil,
|
|
186
214
|
compliance_details: nil,
|
|
215
|
+
# The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
216
|
+
# alpha-3 formats.
|
|
217
|
+
country_of_incorporation: nil,
|
|
187
218
|
# A business's formation date (YYYY-MM-DD).
|
|
188
219
|
date_formed: nil,
|
|
189
220
|
# An individual's date of birth (YYYY-MM-DD).
|
|
@@ -191,12 +222,16 @@ module ModernTreasury
|
|
|
191
222
|
doing_business_as_names: nil,
|
|
192
223
|
# The entity's primary email.
|
|
193
224
|
email: nil,
|
|
225
|
+
# Monthly expected transaction volume in entity's local currency.
|
|
226
|
+
expected_activity_volume: nil,
|
|
194
227
|
# An individual's first name.
|
|
195
228
|
first_name: nil,
|
|
196
229
|
# A list of identifications for the legal entity.
|
|
197
230
|
identifications: nil,
|
|
198
231
|
# A list of industry classifications for the legal entity.
|
|
199
232
|
industry_classifications: nil,
|
|
233
|
+
# A description of the intended use of the legal entity.
|
|
234
|
+
intended_use: nil,
|
|
200
235
|
# An individual's last name.
|
|
201
236
|
last_name: nil,
|
|
202
237
|
# The business's legal structure.
|
|
@@ -206,6 +241,9 @@ module ModernTreasury
|
|
|
206
241
|
metadata: nil,
|
|
207
242
|
# An individual's middle name.
|
|
208
243
|
middle_name: nil,
|
|
244
|
+
# A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
245
|
+
# codes).
|
|
246
|
+
operating_jurisdictions: nil,
|
|
209
247
|
phone_numbers: nil,
|
|
210
248
|
# Whether the individual is a politically exposed person.
|
|
211
249
|
politically_exposed_person: nil,
|
|
@@ -213,6 +251,8 @@ module ModernTreasury
|
|
|
213
251
|
preferred_name: nil,
|
|
214
252
|
# An individual's prefix.
|
|
215
253
|
prefix: nil,
|
|
254
|
+
# A list of primary social media URLs for the business.
|
|
255
|
+
primary_social_media_sites: nil,
|
|
216
256
|
# The risk rating of the legal entity. One of low, medium, high.
|
|
217
257
|
risk_rating: nil,
|
|
218
258
|
# An individual's suffix.
|