modern_treasury 0.10.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 +40 -0
- data/README.md +10 -1
- data/lib/modern_treasury/client.rb +12 -0
- 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/hold_create_params.rb +74 -0
- data/lib/modern_treasury/models/hold_create_response.rb +143 -0
- data/lib/modern_treasury/models/hold_list_params.rb +89 -0
- data/lib/modern_treasury/models/hold_list_response.rb +143 -0
- data/lib/modern_treasury/models/hold_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/hold_retrieve_response.rb +143 -0
- data/lib/modern_treasury/models/hold_update_params.rb +40 -0
- data/lib/modern_treasury/models/hold_update_response.rb +143 -0
- 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_request_closure_params.rb +14 -0
- 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/journal_entry_list_params.rb +38 -0
- data/lib/modern_treasury/models/journal_entry_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/journal_report_list_params.rb +14 -0
- data/lib/modern_treasury/models/journal_report_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/journal_report_update_params.rb +26 -0
- 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 +5 -1
- data/lib/modern_treasury/models/payment_order_subtype.rb +0 -1
- data/lib/modern_treasury/models/payment_reference.rb +5 -1
- data/lib/modern_treasury/models/return_object.rb +6 -1
- data/lib/modern_treasury/models/transaction.rb +2 -1
- data/lib/modern_treasury/models.rb +24 -0
- data/lib/modern_treasury/resources/expected_payments.rb +18 -2
- data/lib/modern_treasury/resources/holds.rb +126 -0
- data/lib/modern_treasury/resources/internal_accounts.rb +23 -1
- data/lib/modern_treasury/resources/invoices.rb +2 -10
- data/lib/modern_treasury/resources/journal_entries.rb +60 -0
- data/lib/modern_treasury/resources/journal_reports.rb +78 -0
- 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 +20 -0
- data/manifest.yaml +1 -0
- data/rbi/modern_treasury/client.rbi +9 -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/hold_create_params.rbi +125 -0
- data/rbi/modern_treasury/models/hold_create_response.rbi +232 -0
- data/rbi/modern_treasury/models/hold_list_params.rbi +150 -0
- data/rbi/modern_treasury/models/hold_list_response.rbi +225 -0
- data/rbi/modern_treasury/models/hold_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/hold_retrieve_response.rbi +234 -0
- data/rbi/modern_treasury/models/hold_update_params.rbi +79 -0
- data/rbi/modern_treasury/models/hold_update_response.rbi +232 -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_request_closure_params.rbi +32 -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/journal_entry_list_params.rbi +68 -0
- data/rbi/modern_treasury/models/journal_entry_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/journal_report_list_params.rbi +32 -0
- data/rbi/modern_treasury/models/journal_report_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/journal_report_update_params.rbi +52 -0
- 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 +22 -2
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +0 -1
- data/rbi/modern_treasury/models/payment_reference.rbi +22 -2
- data/rbi/modern_treasury/models/return_object.rbi +24 -2
- data/rbi/modern_treasury/models/transaction.rbi +7 -2
- data/rbi/modern_treasury/models.rbi +28 -0
- data/rbi/modern_treasury/resources/expected_payments.rbi +44 -0
- data/rbi/modern_treasury/resources/holds.rbi +108 -0
- data/rbi/modern_treasury/resources/internal_accounts.rbi +17 -0
- data/rbi/modern_treasury/resources/invoices.rbi +0 -16
- data/rbi/modern_treasury/resources/journal_entries.rbi +46 -0
- data/rbi/modern_treasury/resources/journal_reports.rbi +51 -0
- 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/client.rbs +6 -0
- 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/hold_create_params.rbs +66 -0
- data/sig/modern_treasury/models/hold_create_response.rbs +108 -0
- data/sig/modern_treasury/models/hold_list_params.rbs +76 -0
- data/sig/modern_treasury/models/hold_list_response.rbs +108 -0
- data/sig/modern_treasury/models/hold_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/hold_retrieve_response.rbs +108 -0
- data/sig/modern_treasury/models/hold_update_params.rbs +41 -0
- data/sig/modern_treasury/models/hold_update_response.rbs +108 -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_request_closure_params.rbs +15 -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/journal_entry_list_params.rbs +36 -0
- data/sig/modern_treasury/models/journal_entry_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/journal_report_list_params.rbs +15 -0
- data/sig/modern_treasury/models/journal_report_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/journal_report_update_params.rbs +32 -0
- 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 +10 -2
- data/sig/modern_treasury/models/payment_order_subtype.rbs +0 -2
- data/sig/modern_treasury/models/payment_reference.rbs +10 -2
- data/sig/modern_treasury/models/return_object.rbs +12 -2
- data/sig/modern_treasury/models/transaction.rbs +4 -2
- data/sig/modern_treasury/models.rbs +24 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +8 -0
- data/sig/modern_treasury/resources/holds.rbs +38 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +6 -0
- data/sig/modern_treasury/resources/invoices.rbs +0 -4
- data/sig/modern_treasury/resources/journal_entries.rbs +19 -0
- data/sig/modern_treasury/resources/journal_reports.rbs +21 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +13 -1
- metadata +59 -2
|
@@ -1185,6 +1185,10 @@ module ModernTreasury
|
|
|
1185
1185
|
end
|
|
1186
1186
|
attr_writer :bank_settings
|
|
1187
1187
|
|
|
1188
|
+
# A description of the business.
|
|
1189
|
+
sig { returns(T.nilable(String)) }
|
|
1190
|
+
attr_accessor :business_description
|
|
1191
|
+
|
|
1188
1192
|
# The business's legal business name.
|
|
1189
1193
|
sig { returns(T.nilable(String)) }
|
|
1190
1194
|
attr_accessor :business_name
|
|
@@ -1204,6 +1208,11 @@ module ModernTreasury
|
|
|
1204
1208
|
end
|
|
1205
1209
|
attr_writer :compliance_details
|
|
1206
1210
|
|
|
1211
|
+
# The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
1212
|
+
# alpha-3 formats.
|
|
1213
|
+
sig { returns(T.nilable(String)) }
|
|
1214
|
+
attr_accessor :country_of_incorporation
|
|
1215
|
+
|
|
1207
1216
|
# A business's formation date (YYYY-MM-DD).
|
|
1208
1217
|
sig { returns(T.nilable(Date)) }
|
|
1209
1218
|
attr_accessor :date_formed
|
|
@@ -1222,6 +1231,10 @@ module ModernTreasury
|
|
|
1222
1231
|
sig { returns(T.nilable(String)) }
|
|
1223
1232
|
attr_accessor :email
|
|
1224
1233
|
|
|
1234
|
+
# Monthly expected transaction volume in entity's local currency.
|
|
1235
|
+
sig { returns(T.nilable(Integer)) }
|
|
1236
|
+
attr_accessor :expected_activity_volume
|
|
1237
|
+
|
|
1225
1238
|
# An individual's first name.
|
|
1226
1239
|
sig { returns(T.nilable(String)) }
|
|
1227
1240
|
attr_accessor :first_name
|
|
@@ -1262,6 +1275,10 @@ module ModernTreasury
|
|
|
1262
1275
|
end
|
|
1263
1276
|
attr_writer :industry_classifications
|
|
1264
1277
|
|
|
1278
|
+
# A description of the intended use of the legal entity.
|
|
1279
|
+
sig { returns(T.nilable(String)) }
|
|
1280
|
+
attr_accessor :intended_use
|
|
1281
|
+
|
|
1265
1282
|
# An individual's last name.
|
|
1266
1283
|
sig { returns(T.nilable(String)) }
|
|
1267
1284
|
attr_accessor :last_name
|
|
@@ -1270,9 +1287,7 @@ module ModernTreasury
|
|
|
1270
1287
|
sig do
|
|
1271
1288
|
returns(
|
|
1272
1289
|
T.nilable(
|
|
1273
|
-
T::Array[
|
|
1274
|
-
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation
|
|
1275
|
-
]
|
|
1290
|
+
T::Array[ModernTreasury::LegalEntityAssociationInlineCreate]
|
|
1276
1291
|
)
|
|
1277
1292
|
)
|
|
1278
1293
|
end
|
|
@@ -1300,6 +1315,14 @@ module ModernTreasury
|
|
|
1300
1315
|
sig { returns(T.nilable(String)) }
|
|
1301
1316
|
attr_accessor :middle_name
|
|
1302
1317
|
|
|
1318
|
+
# A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
1319
|
+
# codes).
|
|
1320
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
1321
|
+
attr_reader :operating_jurisdictions
|
|
1322
|
+
|
|
1323
|
+
sig { params(operating_jurisdictions: T::Array[String]).void }
|
|
1324
|
+
attr_writer :operating_jurisdictions
|
|
1325
|
+
|
|
1303
1326
|
sig do
|
|
1304
1327
|
returns(
|
|
1305
1328
|
T.nilable(
|
|
@@ -1333,6 +1356,13 @@ module ModernTreasury
|
|
|
1333
1356
|
sig { returns(T.nilable(String)) }
|
|
1334
1357
|
attr_accessor :prefix
|
|
1335
1358
|
|
|
1359
|
+
# A list of primary social media URLs for the business.
|
|
1360
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
1361
|
+
attr_reader :primary_social_media_sites
|
|
1362
|
+
|
|
1363
|
+
sig { params(primary_social_media_sites: T::Array[String]).void }
|
|
1364
|
+
attr_writer :primary_social_media_sites
|
|
1365
|
+
|
|
1336
1366
|
# The risk rating of the legal entity. One of low, medium, high.
|
|
1337
1367
|
sig do
|
|
1338
1368
|
returns(
|
|
@@ -1374,14 +1404,17 @@ module ModernTreasury
|
|
|
1374
1404
|
T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash],
|
|
1375
1405
|
bank_settings:
|
|
1376
1406
|
T.nilable(ModernTreasury::LegalEntityBankSettings::OrHash),
|
|
1407
|
+
business_description: T.nilable(String),
|
|
1377
1408
|
business_name: T.nilable(String),
|
|
1378
1409
|
citizenship_country: T.nilable(String),
|
|
1379
1410
|
compliance_details:
|
|
1380
1411
|
T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash),
|
|
1412
|
+
country_of_incorporation: T.nilable(String),
|
|
1381
1413
|
date_formed: T.nilable(Date),
|
|
1382
1414
|
date_of_birth: T.nilable(Date),
|
|
1383
1415
|
doing_business_as_names: T::Array[String],
|
|
1384
1416
|
email: T.nilable(String),
|
|
1417
|
+
expected_activity_volume: T.nilable(Integer),
|
|
1385
1418
|
first_name: T.nilable(String),
|
|
1386
1419
|
identifications:
|
|
1387
1420
|
T::Array[ModernTreasury::IdentificationCreateRequest::OrHash],
|
|
@@ -1389,11 +1422,12 @@ module ModernTreasury
|
|
|
1389
1422
|
T::Array[
|
|
1390
1423
|
ModernTreasury::LegalEntityIndustryClassification::OrHash
|
|
1391
1424
|
],
|
|
1425
|
+
intended_use: T.nilable(String),
|
|
1392
1426
|
last_name: T.nilable(String),
|
|
1393
1427
|
legal_entity_associations:
|
|
1394
1428
|
T.nilable(
|
|
1395
1429
|
T::Array[
|
|
1396
|
-
ModernTreasury::
|
|
1430
|
+
ModernTreasury::LegalEntityAssociationInlineCreate::OrHash
|
|
1397
1431
|
]
|
|
1398
1432
|
),
|
|
1399
1433
|
legal_structure:
|
|
@@ -1402,6 +1436,7 @@ module ModernTreasury
|
|
|
1402
1436
|
),
|
|
1403
1437
|
metadata: T::Hash[Symbol, String],
|
|
1404
1438
|
middle_name: T.nilable(String),
|
|
1439
|
+
operating_jurisdictions: T::Array[String],
|
|
1405
1440
|
phone_numbers:
|
|
1406
1441
|
T::Array[
|
|
1407
1442
|
ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber::OrHash
|
|
@@ -1409,6 +1444,7 @@ module ModernTreasury
|
|
|
1409
1444
|
politically_exposed_person: T.nilable(T::Boolean),
|
|
1410
1445
|
preferred_name: T.nilable(String),
|
|
1411
1446
|
prefix: T.nilable(String),
|
|
1447
|
+
primary_social_media_sites: T::Array[String],
|
|
1412
1448
|
risk_rating:
|
|
1413
1449
|
T.nilable(
|
|
1414
1450
|
ModernTreasury::CounterpartyCreateParams::LegalEntity::RiskRating::OrSymbol
|
|
@@ -1427,11 +1463,16 @@ module ModernTreasury
|
|
|
1427
1463
|
# A list of addresses for the entity.
|
|
1428
1464
|
addresses: nil,
|
|
1429
1465
|
bank_settings: nil,
|
|
1466
|
+
# A description of the business.
|
|
1467
|
+
business_description: nil,
|
|
1430
1468
|
# The business's legal business name.
|
|
1431
1469
|
business_name: nil,
|
|
1432
1470
|
# The country of citizenship for an individual.
|
|
1433
1471
|
citizenship_country: nil,
|
|
1434
1472
|
compliance_details: nil,
|
|
1473
|
+
# The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
1474
|
+
# alpha-3 formats.
|
|
1475
|
+
country_of_incorporation: nil,
|
|
1435
1476
|
# A business's formation date (YYYY-MM-DD).
|
|
1436
1477
|
date_formed: nil,
|
|
1437
1478
|
# An individual's date of birth (YYYY-MM-DD).
|
|
@@ -1439,12 +1480,16 @@ module ModernTreasury
|
|
|
1439
1480
|
doing_business_as_names: nil,
|
|
1440
1481
|
# The entity's primary email.
|
|
1441
1482
|
email: nil,
|
|
1483
|
+
# Monthly expected transaction volume in entity's local currency.
|
|
1484
|
+
expected_activity_volume: nil,
|
|
1442
1485
|
# An individual's first name.
|
|
1443
1486
|
first_name: nil,
|
|
1444
1487
|
# A list of identifications for the legal entity.
|
|
1445
1488
|
identifications: nil,
|
|
1446
1489
|
# A list of industry classifications for the legal entity.
|
|
1447
1490
|
industry_classifications: nil,
|
|
1491
|
+
# A description of the intended use of the legal entity.
|
|
1492
|
+
intended_use: nil,
|
|
1448
1493
|
# An individual's last name.
|
|
1449
1494
|
last_name: nil,
|
|
1450
1495
|
# The legal entity associations and its child legal entities.
|
|
@@ -1456,6 +1501,9 @@ module ModernTreasury
|
|
|
1456
1501
|
metadata: nil,
|
|
1457
1502
|
# An individual's middle name.
|
|
1458
1503
|
middle_name: nil,
|
|
1504
|
+
# A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
1505
|
+
# codes).
|
|
1506
|
+
operating_jurisdictions: nil,
|
|
1459
1507
|
phone_numbers: nil,
|
|
1460
1508
|
# Whether the individual is a politically exposed person.
|
|
1461
1509
|
politically_exposed_person: nil,
|
|
@@ -1463,6 +1511,8 @@ module ModernTreasury
|
|
|
1463
1511
|
preferred_name: nil,
|
|
1464
1512
|
# An individual's prefix.
|
|
1465
1513
|
prefix: nil,
|
|
1514
|
+
# A list of primary social media URLs for the business.
|
|
1515
|
+
primary_social_media_sites: nil,
|
|
1466
1516
|
# The risk rating of the legal entity. One of low, medium, high.
|
|
1467
1517
|
risk_rating: nil,
|
|
1468
1518
|
# An individual's suffix.
|
|
@@ -1481,25 +1531,27 @@ module ModernTreasury
|
|
|
1481
1531
|
addresses:
|
|
1482
1532
|
T::Array[ModernTreasury::LegalEntityAddressCreateRequest],
|
|
1483
1533
|
bank_settings: T.nilable(ModernTreasury::LegalEntityBankSettings),
|
|
1534
|
+
business_description: T.nilable(String),
|
|
1484
1535
|
business_name: T.nilable(String),
|
|
1485
1536
|
citizenship_country: T.nilable(String),
|
|
1486
1537
|
compliance_details:
|
|
1487
1538
|
T.nilable(ModernTreasury::LegalEntityComplianceDetail),
|
|
1539
|
+
country_of_incorporation: T.nilable(String),
|
|
1488
1540
|
date_formed: T.nilable(Date),
|
|
1489
1541
|
date_of_birth: T.nilable(Date),
|
|
1490
1542
|
doing_business_as_names: T::Array[String],
|
|
1491
1543
|
email: T.nilable(String),
|
|
1544
|
+
expected_activity_volume: T.nilable(Integer),
|
|
1492
1545
|
first_name: T.nilable(String),
|
|
1493
1546
|
identifications:
|
|
1494
1547
|
T::Array[ModernTreasury::IdentificationCreateRequest],
|
|
1495
1548
|
industry_classifications:
|
|
1496
1549
|
T::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
1550
|
+
intended_use: T.nilable(String),
|
|
1497
1551
|
last_name: T.nilable(String),
|
|
1498
1552
|
legal_entity_associations:
|
|
1499
1553
|
T.nilable(
|
|
1500
|
-
T::Array[
|
|
1501
|
-
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation
|
|
1502
|
-
]
|
|
1554
|
+
T::Array[ModernTreasury::LegalEntityAssociationInlineCreate]
|
|
1503
1555
|
),
|
|
1504
1556
|
legal_structure:
|
|
1505
1557
|
T.nilable(
|
|
@@ -1507,6 +1559,7 @@ module ModernTreasury
|
|
|
1507
1559
|
),
|
|
1508
1560
|
metadata: T::Hash[Symbol, String],
|
|
1509
1561
|
middle_name: T.nilable(String),
|
|
1562
|
+
operating_jurisdictions: T::Array[String],
|
|
1510
1563
|
phone_numbers:
|
|
1511
1564
|
T::Array[
|
|
1512
1565
|
ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber
|
|
@@ -1514,6 +1567,7 @@ module ModernTreasury
|
|
|
1514
1567
|
politically_exposed_person: T.nilable(T::Boolean),
|
|
1515
1568
|
preferred_name: T.nilable(String),
|
|
1516
1569
|
prefix: T.nilable(String),
|
|
1570
|
+
primary_social_media_sites: T::Array[String],
|
|
1517
1571
|
risk_rating:
|
|
1518
1572
|
T.nilable(
|
|
1519
1573
|
ModernTreasury::CounterpartyCreateParams::LegalEntity::RiskRating::OrSymbol
|
|
@@ -1563,134 +1617,6 @@ module ModernTreasury
|
|
|
1563
1617
|
end
|
|
1564
1618
|
end
|
|
1565
1619
|
|
|
1566
|
-
class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
|
|
1567
|
-
OrHash =
|
|
1568
|
-
T.type_alias do
|
|
1569
|
-
T.any(
|
|
1570
|
-
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation,
|
|
1571
|
-
ModernTreasury::Internal::AnyHash
|
|
1572
|
-
)
|
|
1573
|
-
end
|
|
1574
|
-
|
|
1575
|
-
sig do
|
|
1576
|
-
returns(
|
|
1577
|
-
T::Array[
|
|
1578
|
-
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::OrSymbol
|
|
1579
|
-
]
|
|
1580
|
-
)
|
|
1581
|
-
end
|
|
1582
|
-
attr_accessor :relationship_types
|
|
1583
|
-
|
|
1584
|
-
# The child legal entity.
|
|
1585
|
-
sig { returns(T.nilable(ModernTreasury::ChildLegalEntityCreate)) }
|
|
1586
|
-
attr_reader :child_legal_entity
|
|
1587
|
-
|
|
1588
|
-
sig do
|
|
1589
|
-
params(
|
|
1590
|
-
child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash
|
|
1591
|
-
).void
|
|
1592
|
-
end
|
|
1593
|
-
attr_writer :child_legal_entity
|
|
1594
|
-
|
|
1595
|
-
# The ID of the child legal entity.
|
|
1596
|
-
sig { returns(T.nilable(String)) }
|
|
1597
|
-
attr_reader :child_legal_entity_id
|
|
1598
|
-
|
|
1599
|
-
sig { params(child_legal_entity_id: String).void }
|
|
1600
|
-
attr_writer :child_legal_entity_id
|
|
1601
|
-
|
|
1602
|
-
# The child entity's ownership percentage iff they are a beneficial owner.
|
|
1603
|
-
sig { returns(T.nilable(Integer)) }
|
|
1604
|
-
attr_accessor :ownership_percentage
|
|
1605
|
-
|
|
1606
|
-
# The job title of the child entity at the parent entity.
|
|
1607
|
-
sig { returns(T.nilable(String)) }
|
|
1608
|
-
attr_accessor :title
|
|
1609
|
-
|
|
1610
|
-
sig do
|
|
1611
|
-
params(
|
|
1612
|
-
relationship_types:
|
|
1613
|
-
T::Array[
|
|
1614
|
-
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::OrSymbol
|
|
1615
|
-
],
|
|
1616
|
-
child_legal_entity:
|
|
1617
|
-
ModernTreasury::ChildLegalEntityCreate::OrHash,
|
|
1618
|
-
child_legal_entity_id: String,
|
|
1619
|
-
ownership_percentage: T.nilable(Integer),
|
|
1620
|
-
title: T.nilable(String)
|
|
1621
|
-
).returns(T.attached_class)
|
|
1622
|
-
end
|
|
1623
|
-
def self.new(
|
|
1624
|
-
relationship_types:,
|
|
1625
|
-
# The child legal entity.
|
|
1626
|
-
child_legal_entity: nil,
|
|
1627
|
-
# The ID of the child legal entity.
|
|
1628
|
-
child_legal_entity_id: nil,
|
|
1629
|
-
# The child entity's ownership percentage iff they are a beneficial owner.
|
|
1630
|
-
ownership_percentage: nil,
|
|
1631
|
-
# The job title of the child entity at the parent entity.
|
|
1632
|
-
title: nil
|
|
1633
|
-
)
|
|
1634
|
-
end
|
|
1635
|
-
|
|
1636
|
-
sig do
|
|
1637
|
-
override.returns(
|
|
1638
|
-
{
|
|
1639
|
-
relationship_types:
|
|
1640
|
-
T::Array[
|
|
1641
|
-
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::OrSymbol
|
|
1642
|
-
],
|
|
1643
|
-
child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
|
|
1644
|
-
child_legal_entity_id: String,
|
|
1645
|
-
ownership_percentage: T.nilable(Integer),
|
|
1646
|
-
title: T.nilable(String)
|
|
1647
|
-
}
|
|
1648
|
-
)
|
|
1649
|
-
end
|
|
1650
|
-
def to_hash
|
|
1651
|
-
end
|
|
1652
|
-
|
|
1653
|
-
# A list of relationship types for how the child entity relates to parent entity.
|
|
1654
|
-
module RelationshipType
|
|
1655
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
1656
|
-
|
|
1657
|
-
TaggedSymbol =
|
|
1658
|
-
T.type_alias do
|
|
1659
|
-
T.all(
|
|
1660
|
-
Symbol,
|
|
1661
|
-
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType
|
|
1662
|
-
)
|
|
1663
|
-
end
|
|
1664
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1665
|
-
|
|
1666
|
-
AUTHORIZED_SIGNER =
|
|
1667
|
-
T.let(
|
|
1668
|
-
:authorized_signer,
|
|
1669
|
-
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::TaggedSymbol
|
|
1670
|
-
)
|
|
1671
|
-
BENEFICIAL_OWNER =
|
|
1672
|
-
T.let(
|
|
1673
|
-
:beneficial_owner,
|
|
1674
|
-
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::TaggedSymbol
|
|
1675
|
-
)
|
|
1676
|
-
CONTROL_PERSON =
|
|
1677
|
-
T.let(
|
|
1678
|
-
:control_person,
|
|
1679
|
-
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::TaggedSymbol
|
|
1680
|
-
)
|
|
1681
|
-
|
|
1682
|
-
sig do
|
|
1683
|
-
override.returns(
|
|
1684
|
-
T::Array[
|
|
1685
|
-
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::TaggedSymbol
|
|
1686
|
-
]
|
|
1687
|
-
)
|
|
1688
|
-
end
|
|
1689
|
-
def self.values
|
|
1690
|
-
end
|
|
1691
|
-
end
|
|
1692
|
-
end
|
|
1693
|
-
|
|
1694
1620
|
# The business's legal structure.
|
|
1695
1621
|
module LegalStructure
|
|
1696
1622
|
extend ModernTreasury::Internal::Type::Enum
|
|
@@ -19,6 +19,38 @@ module ModernTreasury
|
|
|
19
19
|
sig { returns(T.nilable(Integer)) }
|
|
20
20
|
attr_accessor :amount_lower_bound
|
|
21
21
|
|
|
22
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
23
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
24
|
+
sig { returns(T.nilable(Integer)) }
|
|
25
|
+
attr_accessor :amount_reconciled
|
|
26
|
+
|
|
27
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
28
|
+
# amount.
|
|
29
|
+
sig do
|
|
30
|
+
returns(
|
|
31
|
+
T.nilable(
|
|
32
|
+
ModernTreasury::ExpectedPayment::AmountReconciledDirection::TaggedSymbol
|
|
33
|
+
)
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
attr_accessor :amount_reconciled_direction
|
|
37
|
+
|
|
38
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
39
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
40
|
+
sig { returns(T.nilable(Integer)) }
|
|
41
|
+
attr_accessor :amount_unreconciled
|
|
42
|
+
|
|
43
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
44
|
+
# debit amount.
|
|
45
|
+
sig do
|
|
46
|
+
returns(
|
|
47
|
+
T.nilable(
|
|
48
|
+
ModernTreasury::ExpectedPayment::AmountUnreconciledDirection::TaggedSymbol
|
|
49
|
+
)
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
attr_accessor :amount_unreconciled_direction
|
|
53
|
+
|
|
22
54
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
23
55
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
24
56
|
sig { returns(T.nilable(Integer)) }
|
|
@@ -144,6 +176,16 @@ module ModernTreasury
|
|
|
144
176
|
params(
|
|
145
177
|
id: String,
|
|
146
178
|
amount_lower_bound: T.nilable(Integer),
|
|
179
|
+
amount_reconciled: T.nilable(Integer),
|
|
180
|
+
amount_reconciled_direction:
|
|
181
|
+
T.nilable(
|
|
182
|
+
ModernTreasury::ExpectedPayment::AmountReconciledDirection::OrSymbol
|
|
183
|
+
),
|
|
184
|
+
amount_unreconciled: T.nilable(Integer),
|
|
185
|
+
amount_unreconciled_direction:
|
|
186
|
+
T.nilable(
|
|
187
|
+
ModernTreasury::ExpectedPayment::AmountUnreconciledDirection::OrSymbol
|
|
188
|
+
),
|
|
147
189
|
amount_upper_bound: T.nilable(Integer),
|
|
148
190
|
counterparty_id: T.nilable(String),
|
|
149
191
|
created_at: Time,
|
|
@@ -181,6 +223,18 @@ module ModernTreasury
|
|
|
181
223
|
# The lowest amount this expected payment may be equal to. Value in specified
|
|
182
224
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
183
225
|
amount_lower_bound:,
|
|
226
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
227
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
228
|
+
amount_reconciled:,
|
|
229
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
230
|
+
# amount.
|
|
231
|
+
amount_reconciled_direction:,
|
|
232
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
233
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
234
|
+
amount_unreconciled:,
|
|
235
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
236
|
+
# debit amount.
|
|
237
|
+
amount_unreconciled_direction:,
|
|
184
238
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
185
239
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
186
240
|
amount_upper_bound:,
|
|
@@ -248,6 +302,16 @@ module ModernTreasury
|
|
|
248
302
|
{
|
|
249
303
|
id: String,
|
|
250
304
|
amount_lower_bound: T.nilable(Integer),
|
|
305
|
+
amount_reconciled: T.nilable(Integer),
|
|
306
|
+
amount_reconciled_direction:
|
|
307
|
+
T.nilable(
|
|
308
|
+
ModernTreasury::ExpectedPayment::AmountReconciledDirection::TaggedSymbol
|
|
309
|
+
),
|
|
310
|
+
amount_unreconciled: T.nilable(Integer),
|
|
311
|
+
amount_unreconciled_direction:
|
|
312
|
+
T.nilable(
|
|
313
|
+
ModernTreasury::ExpectedPayment::AmountUnreconciledDirection::TaggedSymbol
|
|
314
|
+
),
|
|
251
315
|
amount_upper_bound: T.nilable(Integer),
|
|
252
316
|
counterparty_id: T.nilable(String),
|
|
253
317
|
created_at: Time,
|
|
@@ -286,6 +350,78 @@ module ModernTreasury
|
|
|
286
350
|
def to_hash
|
|
287
351
|
end
|
|
288
352
|
|
|
353
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
354
|
+
# amount.
|
|
355
|
+
module AmountReconciledDirection
|
|
356
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
357
|
+
|
|
358
|
+
TaggedSymbol =
|
|
359
|
+
T.type_alias do
|
|
360
|
+
T.all(
|
|
361
|
+
Symbol,
|
|
362
|
+
ModernTreasury::ExpectedPayment::AmountReconciledDirection
|
|
363
|
+
)
|
|
364
|
+
end
|
|
365
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
366
|
+
|
|
367
|
+
CREDIT =
|
|
368
|
+
T.let(
|
|
369
|
+
:credit,
|
|
370
|
+
ModernTreasury::ExpectedPayment::AmountReconciledDirection::TaggedSymbol
|
|
371
|
+
)
|
|
372
|
+
DEBIT =
|
|
373
|
+
T.let(
|
|
374
|
+
:debit,
|
|
375
|
+
ModernTreasury::ExpectedPayment::AmountReconciledDirection::TaggedSymbol
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
sig do
|
|
379
|
+
override.returns(
|
|
380
|
+
T::Array[
|
|
381
|
+
ModernTreasury::ExpectedPayment::AmountReconciledDirection::TaggedSymbol
|
|
382
|
+
]
|
|
383
|
+
)
|
|
384
|
+
end
|
|
385
|
+
def self.values
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
390
|
+
# debit amount.
|
|
391
|
+
module AmountUnreconciledDirection
|
|
392
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
393
|
+
|
|
394
|
+
TaggedSymbol =
|
|
395
|
+
T.type_alias do
|
|
396
|
+
T.all(
|
|
397
|
+
Symbol,
|
|
398
|
+
ModernTreasury::ExpectedPayment::AmountUnreconciledDirection
|
|
399
|
+
)
|
|
400
|
+
end
|
|
401
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
402
|
+
|
|
403
|
+
CREDIT =
|
|
404
|
+
T.let(
|
|
405
|
+
:credit,
|
|
406
|
+
ModernTreasury::ExpectedPayment::AmountUnreconciledDirection::TaggedSymbol
|
|
407
|
+
)
|
|
408
|
+
DEBIT =
|
|
409
|
+
T.let(
|
|
410
|
+
:debit,
|
|
411
|
+
ModernTreasury::ExpectedPayment::AmountUnreconciledDirection::TaggedSymbol
|
|
412
|
+
)
|
|
413
|
+
|
|
414
|
+
sig do
|
|
415
|
+
override.returns(
|
|
416
|
+
T::Array[
|
|
417
|
+
ModernTreasury::ExpectedPayment::AmountUnreconciledDirection::TaggedSymbol
|
|
418
|
+
]
|
|
419
|
+
)
|
|
420
|
+
end
|
|
421
|
+
def self.values
|
|
422
|
+
end
|
|
423
|
+
end
|
|
424
|
+
|
|
289
425
|
# One of credit or debit. When you are receiving money, use credit. When you are
|
|
290
426
|
# being charged, use debit.
|
|
291
427
|
module Direction
|
|
@@ -19,6 +19,38 @@ module ModernTreasury
|
|
|
19
19
|
sig { returns(T.nilable(Integer)) }
|
|
20
20
|
attr_accessor :amount_lower_bound
|
|
21
21
|
|
|
22
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
23
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
24
|
+
sig { returns(T.nilable(Integer)) }
|
|
25
|
+
attr_accessor :amount_reconciled
|
|
26
|
+
|
|
27
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
28
|
+
# amount.
|
|
29
|
+
sig do
|
|
30
|
+
returns(
|
|
31
|
+
T.nilable(
|
|
32
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountReconciledDirection::OrSymbol
|
|
33
|
+
)
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
attr_accessor :amount_reconciled_direction
|
|
37
|
+
|
|
38
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
39
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
40
|
+
sig { returns(T.nilable(Integer)) }
|
|
41
|
+
attr_accessor :amount_unreconciled
|
|
42
|
+
|
|
43
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
44
|
+
# debit amount.
|
|
45
|
+
sig do
|
|
46
|
+
returns(
|
|
47
|
+
T.nilable(
|
|
48
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountUnreconciledDirection::OrSymbol
|
|
49
|
+
)
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
attr_accessor :amount_unreconciled_direction
|
|
53
|
+
|
|
22
54
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
23
55
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
24
56
|
sig { returns(T.nilable(Integer)) }
|
|
@@ -148,6 +180,16 @@ module ModernTreasury
|
|
|
148
180
|
sig do
|
|
149
181
|
params(
|
|
150
182
|
amount_lower_bound: T.nilable(Integer),
|
|
183
|
+
amount_reconciled: T.nilable(Integer),
|
|
184
|
+
amount_reconciled_direction:
|
|
185
|
+
T.nilable(
|
|
186
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountReconciledDirection::OrSymbol
|
|
187
|
+
),
|
|
188
|
+
amount_unreconciled: T.nilable(Integer),
|
|
189
|
+
amount_unreconciled_direction:
|
|
190
|
+
T.nilable(
|
|
191
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountUnreconciledDirection::OrSymbol
|
|
192
|
+
),
|
|
151
193
|
amount_upper_bound: T.nilable(Integer),
|
|
152
194
|
counterparty_id: T.nilable(String),
|
|
153
195
|
currency: T.nilable(ModernTreasury::Currency::OrSymbol),
|
|
@@ -182,6 +224,18 @@ module ModernTreasury
|
|
|
182
224
|
# The lowest amount this expected payment may be equal to. Value in specified
|
|
183
225
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
184
226
|
amount_lower_bound: nil,
|
|
227
|
+
# The amount reconciled for this expected payment. Value in specified currency's
|
|
228
|
+
# smallest unit. e.g. $10 would be represented as 1000.
|
|
229
|
+
amount_reconciled: nil,
|
|
230
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
231
|
+
# amount.
|
|
232
|
+
amount_reconciled_direction: nil,
|
|
233
|
+
# The amount that remains unreconciled for this expected payment. Value in
|
|
234
|
+
# specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
235
|
+
amount_unreconciled: nil,
|
|
236
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
237
|
+
# debit amount.
|
|
238
|
+
amount_unreconciled_direction: nil,
|
|
185
239
|
# The highest amount this expected payment may be equal to. Value in specified
|
|
186
240
|
# currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
187
241
|
amount_upper_bound: nil,
|
|
@@ -242,6 +296,16 @@ module ModernTreasury
|
|
|
242
296
|
override.returns(
|
|
243
297
|
{
|
|
244
298
|
amount_lower_bound: T.nilable(Integer),
|
|
299
|
+
amount_reconciled: T.nilable(Integer),
|
|
300
|
+
amount_reconciled_direction:
|
|
301
|
+
T.nilable(
|
|
302
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountReconciledDirection::OrSymbol
|
|
303
|
+
),
|
|
304
|
+
amount_unreconciled: T.nilable(Integer),
|
|
305
|
+
amount_unreconciled_direction:
|
|
306
|
+
T.nilable(
|
|
307
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountUnreconciledDirection::OrSymbol
|
|
308
|
+
),
|
|
245
309
|
amount_upper_bound: T.nilable(Integer),
|
|
246
310
|
counterparty_id: T.nilable(String),
|
|
247
311
|
currency: T.nilable(ModernTreasury::Currency::OrSymbol),
|
|
@@ -273,6 +337,78 @@ module ModernTreasury
|
|
|
273
337
|
def to_hash
|
|
274
338
|
end
|
|
275
339
|
|
|
340
|
+
# One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
341
|
+
# amount.
|
|
342
|
+
module AmountReconciledDirection
|
|
343
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
344
|
+
|
|
345
|
+
TaggedSymbol =
|
|
346
|
+
T.type_alias do
|
|
347
|
+
T.all(
|
|
348
|
+
Symbol,
|
|
349
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountReconciledDirection
|
|
350
|
+
)
|
|
351
|
+
end
|
|
352
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
353
|
+
|
|
354
|
+
CREDIT =
|
|
355
|
+
T.let(
|
|
356
|
+
:credit,
|
|
357
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountReconciledDirection::TaggedSymbol
|
|
358
|
+
)
|
|
359
|
+
DEBIT =
|
|
360
|
+
T.let(
|
|
361
|
+
:debit,
|
|
362
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountReconciledDirection::TaggedSymbol
|
|
363
|
+
)
|
|
364
|
+
|
|
365
|
+
sig do
|
|
366
|
+
override.returns(
|
|
367
|
+
T::Array[
|
|
368
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountReconciledDirection::TaggedSymbol
|
|
369
|
+
]
|
|
370
|
+
)
|
|
371
|
+
end
|
|
372
|
+
def self.values
|
|
373
|
+
end
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
377
|
+
# debit amount.
|
|
378
|
+
module AmountUnreconciledDirection
|
|
379
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
380
|
+
|
|
381
|
+
TaggedSymbol =
|
|
382
|
+
T.type_alias do
|
|
383
|
+
T.all(
|
|
384
|
+
Symbol,
|
|
385
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountUnreconciledDirection
|
|
386
|
+
)
|
|
387
|
+
end
|
|
388
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
389
|
+
|
|
390
|
+
CREDIT =
|
|
391
|
+
T.let(
|
|
392
|
+
:credit,
|
|
393
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountUnreconciledDirection::TaggedSymbol
|
|
394
|
+
)
|
|
395
|
+
DEBIT =
|
|
396
|
+
T.let(
|
|
397
|
+
:debit,
|
|
398
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountUnreconciledDirection::TaggedSymbol
|
|
399
|
+
)
|
|
400
|
+
|
|
401
|
+
sig do
|
|
402
|
+
override.returns(
|
|
403
|
+
T::Array[
|
|
404
|
+
ModernTreasury::ExpectedPaymentCreateParams::AmountUnreconciledDirection::TaggedSymbol
|
|
405
|
+
]
|
|
406
|
+
)
|
|
407
|
+
end
|
|
408
|
+
def self.values
|
|
409
|
+
end
|
|
410
|
+
end
|
|
411
|
+
|
|
276
412
|
# One of credit or debit. When you are receiving money, use credit. When you are
|
|
277
413
|
# being charged, use debit.
|
|
278
414
|
module Direction
|