modern_treasury 0.13.0 → 0.14.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.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/README.md +3 -3
  4. data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +1 -1
  5. data/lib/modern_treasury/internal/util.rb +1 -1
  6. data/lib/modern_treasury/models/account_detail.rb +1 -0
  7. data/lib/modern_treasury/models/account_detail_create_params.rb +1 -0
  8. data/lib/modern_treasury/models/bulk_request_create_params.rb +4 -0
  9. data/lib/modern_treasury/models/child_legal_entity.rb +148 -7
  10. data/lib/modern_treasury/models/child_legal_entity_create.rb +140 -7
  11. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +146 -7
  12. data/lib/modern_treasury/models/counterparty_create_params.rb +147 -7
  13. data/lib/modern_treasury/models/external_account_create_params.rb +1 -0
  14. data/lib/modern_treasury/models/incoming_payment_detail.rb +27 -1
  15. data/lib/modern_treasury/models/ledger_account_category_create_params.rb +9 -1
  16. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +3 -5
  17. data/lib/modern_treasury/models/ledger_account_create_request.rb +9 -1
  18. data/lib/modern_treasury/models/ledger_entry_list_params.rb +6 -4
  19. data/lib/modern_treasury/models/legal_entity.rb +150 -7
  20. data/lib/modern_treasury/models/legal_entity_create_params.rb +137 -7
  21. data/lib/modern_treasury/models/legal_entity_list_params.rb +20 -1
  22. data/lib/modern_treasury/models/legal_entity_update_params.rb +128 -10
  23. data/lib/modern_treasury/models/legal_entity_wealth_employment_detail.rb +2 -2
  24. data/lib/modern_treasury/models/payment_order.rb +10 -3
  25. data/lib/modern_treasury/models/payment_order_create_async_params.rb +3 -0
  26. data/lib/modern_treasury/models/payment_order_create_params.rb +3 -0
  27. data/lib/modern_treasury/models/payment_order_update_params.rb +1 -0
  28. data/lib/modern_treasury/models/payment_reference.rb +0 -2
  29. data/lib/modern_treasury/models/return_object.rb +0 -2
  30. data/lib/modern_treasury/models/transaction.rb +1 -1
  31. data/lib/modern_treasury/models/virtual_account_create_params.rb +1 -0
  32. data/lib/modern_treasury/models/wealth_and_employment_details.rb +2 -2
  33. data/lib/modern_treasury/models.rb +0 -2
  34. data/lib/modern_treasury/resources/ledger_account_categories.rb +4 -2
  35. data/lib/modern_treasury/resources/ledger_accounts.rb +3 -1
  36. data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
  37. data/lib/modern_treasury/resources/legal_entities.rb +28 -8
  38. data/lib/modern_treasury/version.rb +1 -1
  39. data/lib/modern_treasury.rb +0 -1
  40. data/rbi/modern_treasury/internal/util.rbi +1 -1
  41. data/rbi/modern_treasury/models/account_detail.rbi +5 -0
  42. data/rbi/modern_treasury/models/account_detail_create_params.rbi +5 -0
  43. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +10 -0
  44. data/rbi/modern_treasury/models/child_legal_entity.rbi +257 -16
  45. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +273 -17
  46. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +290 -17
  47. data/rbi/modern_treasury/models/counterparty_create_params.rbi +295 -17
  48. data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
  49. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +41 -3
  50. data/rbi/modern_treasury/models/ledger_account_category_create_params.rbi +8 -0
  51. data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +4 -8
  52. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +8 -0
  53. data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +7 -9
  54. data/rbi/modern_treasury/models/legal_entity.rbi +239 -16
  55. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +277 -17
  56. data/rbi/modern_treasury/models/legal_entity_list_params.rbi +58 -0
  57. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +262 -18
  58. data/rbi/modern_treasury/models/legal_entity_wealth_employment_detail.rbi +2 -2
  59. data/rbi/modern_treasury/models/payment_order.rbi +10 -10
  60. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +5 -0
  61. data/rbi/modern_treasury/models/payment_order_create_params.rbi +5 -0
  62. data/rbi/modern_treasury/models/payment_order_update_params.rbi +5 -0
  63. data/rbi/modern_treasury/models/payment_reference.rbi +0 -10
  64. data/rbi/modern_treasury/models/return_object.rbi +0 -10
  65. data/rbi/modern_treasury/models/transaction.rbi +2 -2
  66. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
  67. data/rbi/modern_treasury/models/wealth_and_employment_details.rbi +2 -2
  68. data/rbi/modern_treasury/models.rbi +0 -3
  69. data/rbi/modern_treasury/resources/ledger_account_categories.rbi +4 -3
  70. data/rbi/modern_treasury/resources/ledger_accounts.rbi +3 -0
  71. data/rbi/modern_treasury/resources/ledger_entries.rbi +1 -2
  72. data/rbi/modern_treasury/resources/legal_entities.rbi +65 -8
  73. data/sig/modern_treasury/models/account_detail.rbs +2 -0
  74. data/sig/modern_treasury/models/account_detail_create_params.rbs +2 -0
  75. data/sig/modern_treasury/models/bulk_request_create_params.rbs +4 -0
  76. data/sig/modern_treasury/models/child_legal_entity.rbs +107 -4
  77. data/sig/modern_treasury/models/child_legal_entity_create.rbs +97 -4
  78. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +97 -4
  79. data/sig/modern_treasury/models/counterparty_create_params.rbs +99 -4
  80. data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
  81. data/sig/modern_treasury/models/incoming_payment_detail.rbs +20 -3
  82. data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +5 -0
  83. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -5
  84. data/sig/modern_treasury/models/ledger_account_create_request.rbs +5 -0
  85. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +6 -6
  86. data/sig/modern_treasury/models/legal_entity.rbs +107 -4
  87. data/sig/modern_treasury/models/legal_entity_create_params.rbs +97 -4
  88. data/sig/modern_treasury/models/legal_entity_list_params.rbs +23 -1
  89. data/sig/modern_treasury/models/legal_entity_update_params.rbs +93 -5
  90. data/sig/modern_treasury/models/payment_order.rbs +5 -4
  91. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +2 -0
  92. data/sig/modern_treasury/models/payment_order_create_params.rbs +2 -0
  93. data/sig/modern_treasury/models/payment_order_update_params.rbs +2 -0
  94. data/sig/modern_treasury/models/payment_reference.rbs +0 -4
  95. data/sig/modern_treasury/models/return_object.rbs +0 -4
  96. data/sig/modern_treasury/models/transaction.rbs +2 -2
  97. data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
  98. data/sig/modern_treasury/models.rbs +0 -2
  99. data/sig/modern_treasury/resources/ledger_account_categories.rbs +2 -1
  100. data/sig/modern_treasury/resources/ledger_accounts.rbs +1 -0
  101. data/sig/modern_treasury/resources/ledger_entries.rbs +1 -1
  102. data/sig/modern_treasury/resources/legal_entities.rbs +12 -2
  103. metadata +2 -5
  104. data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +0 -103
  105. data/rbi/modern_treasury/models/legal_entity_compliance_detail.rbi +0 -120
  106. data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +0 -75
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49e9ed219fd175034554e8527681a2c9f687ef3fc722825ea654a08ddd21295f
4
- data.tar.gz: 3bb464cf59c0c3a3f805b5e7556c4940d00adf192d9ebe14f359bb39988318d3
3
+ metadata.gz: e06974cdbfeab5dcf8aca7a49deaf43db6634072d6f55fc53fe19ad1be6d5d76
4
+ data.tar.gz: 29892b6b02b5f1c3878e5af5ddacd570a605594f54213dbaba44a9a20faa0404
5
5
  SHA512:
6
- metadata.gz: f7fa80c0345c892130b86ae9b72e22fb4e30bb4ce5c19619bfd2ae0db015c0c8c5ca48aaba1063d1d51d1b0bf11b68516b808eb4fd98b7dc55a96b31db531591
7
- data.tar.gz: 7cc8bf35e4d1752627161aad44b9d41e9459a60fa76df206b27355a688970c7923bd9df8d323c6f69bdd16d7bc4c9ae6640c76be99695afcf8c502d3aa213529
6
+ metadata.gz: b42f0f9e54b22fd48f65300b90eaf60da9f6d3878fc9d154a13e4eb658ada7f98a68b4c3c5e9ad968c2e8a36a96fae216370ac1edaa8e645b84286ecfc280b22
7
+ data.tar.gz: d21ea0f3661199b127d927b4123c393024dd1e076ee25b57e9bb72a523fe83bca58171baafb6fdebc5b7e340e5b681941b9cd9baa001382e2ce3bd61d56f890f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.0 (2026-02-19)
4
+
5
+ Full Changelog: [v0.13.0...v0.14.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.13.0...v0.14.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([25cfdb7](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/25cfdb7f8b29f93e8887ec4ebf6c0cbeb1b588b5))
10
+ * **api:** api update ([98df02a](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/98df02ad95dd177a7ca84ecc7378b8b54116dd24))
11
+ * **api:** api update ([a8c4bae](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a8c4bae4be8f924c67c232408da95246d39edc77))
12
+ * **api:** api update ([ab4fda0](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/ab4fda0baced94179ad10a7676b0ede9e79304a9))
13
+ * **api:** api update ([87e1464](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/87e146478fcfad1ec2b3489ee97537e9bc904153))
14
+ * **api:** api update ([9604b54](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/9604b549b5c55fcb9ab5c0925427ae1eb1c7d86f))
15
+ * **api:** api update ([69ac7a6](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/69ac7a6fb6a052e4b4caf7fab8c36b8d9f0c3178))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **client:** always add content-length to post body, even when empty ([bef91d0](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/bef91d0350ee38d5189f72d82fc3a836b32d6705))
21
+ * **client:** loosen json header parsing ([be7e770](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/be7e7708e10c91f23474fd805f9ae3d869b03d0b))
22
+ * **docs:** fix mcp installation instructions for remote servers ([23ff470](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/23ff470ba251005447adfd8bd5e172e237fa5527))
23
+
24
+
25
+ ### Chores
26
+
27
+ * **client:** improve example values ([cf47df7](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/cf47df70215f66cbb664168701685df9503e6a1e))
28
+ * **docs:** remove www prefix ([6dc299f](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/6dc299f2325417382847ba9ffa827c9adafeed49))
29
+ * **internal:** codegen related update ([f163053](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/f163053fd9b97d1b1c56e801df2b9a3222fa808d))
30
+ * **internal:** update `actions/checkout` version ([ef85ff8](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/ef85ff86aed1446023610663b9bc42fbaa3ccf2d))
31
+ * update mock server docs ([d2ba99c](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/d2ba99c061b07c868d8cf7392aaf68aa761af4de))
32
+
3
33
  ## 0.13.0 (2026-01-13)
4
34
 
5
35
  Full Changelog: [v0.12.0...v0.13.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.12.0...v0.13.0)
data/README.md CHANGED
@@ -6,8 +6,8 @@ The Modern Treasury Ruby library provides convenient access to the Modern Treasu
6
6
 
7
7
  Use the Modern Treasury MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
8
8
 
9
- [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=modern-treasury-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm1vZGVybi10cmVhc3VyeS1tY3AiXX0)
10
- [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22modern-treasury-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22modern-treasury-mcp%22%5D%7D)
9
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=modern-treasury-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm1vZGVybi10cmVhc3VyeS1tY3AiXSwiZW52Ijp7Ik1PREVSTl9UUkVBU1VSWV9BUElfS0VZIjoiTXkgQVBJIEtleSIsIk1PREVSTl9UUkVBU1VSWV9PUkdBTklaQVRJT05fSUQiOiJteS1vcmdhbml6YXRpb24tSUQiLCJNT0RFUk5fVFJFQVNVUllfV0VCSE9PS19LRVkiOiJNeSBXZWJob29rIEtleSJ9fQ)
10
+ [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22modern-treasury-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22modern-treasury-mcp%22%5D%2C%22env%22%3A%7B%22MODERN_TREASURY_API_KEY%22%3A%22My%20API%20Key%22%2C%22MODERN_TREASURY_ORGANIZATION_ID%22%3A%22my-organization-ID%22%2C%22MODERN_TREASURY_WEBHOOK_KEY%22%3A%22My%20Webhook%20Key%22%7D%7D)
11
11
 
12
12
  > Note: You may need to set environment variables in your MCP client.
13
13
 
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "modern_treasury", "~> 0.13.0"
27
+ gem "modern_treasury", "~> 0.14.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -75,7 +75,7 @@ module ModernTreasury
75
75
 
76
76
  case body
77
77
  in nil
78
- nil
78
+ req["content-length"] ||= 0 unless req["transfer-encoding"]
79
79
  in String
80
80
  req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"]
81
81
  req.body_stream = ModernTreasury::Internal::Util::ReadIOAdapter.new(body, &blk)
@@ -485,7 +485,7 @@ module ModernTreasury
485
485
  end
486
486
 
487
487
  # @type [Regexp]
488
- JSON_CONTENT = %r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}
488
+ JSON_CONTENT = %r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}
489
489
  # @type [Regexp]
490
490
  JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
491
491
 
@@ -86,6 +86,7 @@ module ModernTreasury
86
86
 
87
87
  AU_NUMBER = :au_number
88
88
  BASE_ADDRESS = :base_address
89
+ CARD_TOKEN = :card_token
89
90
  CLABE = :clabe
90
91
  ETHEREUM_ADDRESS = :ethereum_address
91
92
  HK_NUMBER = :hk_number
@@ -53,6 +53,7 @@ module ModernTreasury
53
53
 
54
54
  AU_NUMBER = :au_number
55
55
  BASE_ADDRESS = :base_address
56
+ CARD_TOKEN = :card_token
56
57
  CLABE = :clabe
57
58
  ETHEREUM_ADDRESS = :ethereum_address
58
59
  HK_NUMBER = :hk_number
@@ -357,6 +357,8 @@ module ModernTreasury
357
357
  optional :subtype, enum: -> { ModernTreasury::PaymentOrderSubtype }, nil?: true
358
358
 
359
359
  # @!attribute transaction_monitoring_enabled
360
+ # @deprecated
361
+ #
360
362
  # A flag that determines whether a payment order should go through transaction
361
363
  # monitoring.
362
364
  #
@@ -770,6 +772,7 @@ module ModernTreasury
770
772
 
771
773
  AU_NUMBER = :au_number
772
774
  BASE_ADDRESS = :base_address
775
+ CARD_TOKEN = :card_token
773
776
  CLABE = :clabe
774
777
  ETHEREUM_ADDRESS = :ethereum_address
775
778
  HK_NUMBER = :hk_number
@@ -2072,6 +2075,7 @@ module ModernTreasury
2072
2075
 
2073
2076
  AU_NUMBER = :au_number
2074
2077
  BASE_ADDRESS = :base_address
2078
+ CARD_TOKEN = :card_token
2075
2079
  CLABE = :clabe
2076
2080
  ETHEREUM_ADDRESS = :ethereum_address
2077
2081
  HK_NUMBER = :hk_number
@@ -39,9 +39,10 @@ module ModernTreasury
39
39
  required :citizenship_country, String, nil?: true
40
40
 
41
41
  # @!attribute compliance_details
42
+ # @deprecated
42
43
  #
43
- # @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
44
- required :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
44
+ # @return [Object, nil]
45
+ required :compliance_details, ModernTreasury::Internal::Type::Unknown, nil?: true
45
46
 
46
47
  # @!attribute country_of_incorporation
47
48
  # The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
@@ -72,6 +73,11 @@ module ModernTreasury
72
73
  # @return [Time, nil]
73
74
  required :discarded_at, Time, nil?: true
74
75
 
76
+ # @!attribute documents
77
+ #
78
+ # @return [Array<ModernTreasury::Models::Document>]
79
+ required :documents, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Document] }
80
+
75
81
  # @!attribute doing_business_as_names
76
82
  #
77
83
  # @return [Array<String>]
@@ -84,7 +90,7 @@ module ModernTreasury
84
90
  required :email, String, nil?: true
85
91
 
86
92
  # @!attribute expected_activity_volume
87
- # Monthly expected transaction volume in entity's local currency.
93
+ # Monthly expected transaction volume in USD.
88
94
  #
89
95
  # @return [Integer, nil]
90
96
  required :expected_activity_volume, Integer, nil?: true
@@ -141,6 +147,12 @@ module ModernTreasury
141
147
  # @return [Symbol, ModernTreasury::Models::ChildLegalEntity::LegalStructure, nil]
142
148
  required :legal_structure, enum: -> { ModernTreasury::ChildLegalEntity::LegalStructure }, nil?: true
143
149
 
150
+ # @!attribute listed_exchange
151
+ # ISO 10383 market identifier code.
152
+ #
153
+ # @return [String, nil]
154
+ required :listed_exchange, String, nil?: true
155
+
144
156
  # @!attribute live_mode
145
157
  # This field will be true if this object exists in the live environment or false
146
158
  # if it exists in the test environment.
@@ -203,18 +215,47 @@ module ModernTreasury
203
215
  # @return [Array<String>]
204
216
  required :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
205
217
 
218
+ # @!attribute regulators
219
+ # Array of regulatory bodies overseeing this institution.
220
+ #
221
+ # @return [Array<ModernTreasury::Models::ChildLegalEntity::Regulator>, nil]
222
+ required :regulators,
223
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ChildLegalEntity::Regulator] },
224
+ nil?: true
225
+
206
226
  # @!attribute risk_rating
207
227
  # The risk rating of the legal entity. One of low, medium, high.
208
228
  #
209
229
  # @return [Symbol, ModernTreasury::Models::ChildLegalEntity::RiskRating, nil]
210
230
  required :risk_rating, enum: -> { ModernTreasury::ChildLegalEntity::RiskRating }, nil?: true
211
231
 
232
+ # @!attribute status
233
+ # The activation status of the legal entity. One of pending, active, suspended, or
234
+ # closed.
235
+ #
236
+ # @return [Symbol, ModernTreasury::Models::ChildLegalEntity::Status, nil]
237
+ required :status, enum: -> { ModernTreasury::ChildLegalEntity::Status }, nil?: true
238
+
212
239
  # @!attribute suffix
213
240
  # An individual's suffix.
214
241
  #
215
242
  # @return [String, nil]
216
243
  required :suffix, String, nil?: true
217
244
 
245
+ # @!attribute third_party_verification
246
+ # Information describing a third-party verification run by an external vendor.
247
+ #
248
+ # @return [ModernTreasury::Models::ChildLegalEntity::ThirdPartyVerification, nil]
249
+ required :third_party_verification,
250
+ -> { ModernTreasury::ChildLegalEntity::ThirdPartyVerification },
251
+ nil?: true
252
+
253
+ # @!attribute ticker_symbol
254
+ # Stock ticker symbol for publicly traded companies.
255
+ #
256
+ # @return [String, nil]
257
+ required :ticker_symbol, String, nil?: true
258
+
218
259
  # @!attribute updated_at
219
260
  #
220
261
  # @return [Time]
@@ -233,7 +274,7 @@ module ModernTreasury
233
274
  # @return [String, nil]
234
275
  required :website, String, nil?: true
235
276
 
236
- # @!method initialize(id:, addresses:, bank_settings:, business_description:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, doing_business_as_names:, email:, expected_activity_volume:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_associations:, legal_entity_type:, legal_structure:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, risk_rating:, suffix:, updated_at:, wealth_and_employment_details:, website:)
277
+ # @!method initialize(id:, addresses:, bank_settings:, business_description:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, documents:, doing_business_as_names:, email:, expected_activity_volume:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_associations:, legal_entity_type:, legal_structure:, listed_exchange:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, regulators:, risk_rating:, status:, suffix:, third_party_verification:, ticker_symbol:, updated_at:, wealth_and_employment_details:, website:)
237
278
  # Some parameter documentations has been truncated, see
238
279
  # {ModernTreasury::Models::ChildLegalEntity} for more details.
239
280
  #
@@ -249,7 +290,7 @@ module ModernTreasury
249
290
  #
250
291
  # @param citizenship_country [String, nil] The country of citizenship for an individual.
251
292
  #
252
- # @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
293
+ # @param compliance_details [Object, nil]
253
294
  #
254
295
  # @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
255
296
  #
@@ -261,11 +302,13 @@ module ModernTreasury
261
302
  #
262
303
  # @param discarded_at [Time, nil]
263
304
  #
305
+ # @param documents [Array<ModernTreasury::Models::Document>]
306
+ #
264
307
  # @param doing_business_as_names [Array<String>]
265
308
  #
266
309
  # @param email [String, nil] The entity's primary email.
267
310
  #
268
- # @param expected_activity_volume [Integer, nil] Monthly expected transaction volume in entity's local currency.
311
+ # @param expected_activity_volume [Integer, nil] Monthly expected transaction volume in USD.
269
312
  #
270
313
  # @param first_name [String, nil] An individual's first name.
271
314
  #
@@ -283,6 +326,8 @@ module ModernTreasury
283
326
  #
284
327
  # @param legal_structure [Symbol, ModernTreasury::Models::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
285
328
  #
329
+ # @param listed_exchange [String, nil] ISO 10383 market identifier code.
330
+ #
286
331
  # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
287
332
  #
288
333
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
@@ -303,10 +348,18 @@ module ModernTreasury
303
348
  #
304
349
  # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
305
350
  #
351
+ # @param regulators [Array<ModernTreasury::Models::ChildLegalEntity::Regulator>, nil] Array of regulatory bodies overseeing this institution.
352
+ #
306
353
  # @param risk_rating [Symbol, ModernTreasury::Models::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
307
354
  #
355
+ # @param status [Symbol, ModernTreasury::Models::ChildLegalEntity::Status, nil] The activation status of the legal entity. One of pending, active, suspended, or
356
+ #
308
357
  # @param suffix [String, nil] An individual's suffix.
309
358
  #
359
+ # @param third_party_verification [ModernTreasury::Models::ChildLegalEntity::ThirdPartyVerification, nil] Information describing a third-party verification run by an external vendor.
360
+ #
361
+ # @param ticker_symbol [String, nil] Stock ticker symbol for publicly traded companies.
362
+ #
310
363
  # @param updated_at [Time]
311
364
  #
312
365
  # @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
@@ -447,6 +500,11 @@ module ModernTreasury
447
500
  # @return [Time, nil]
448
501
  required :discarded_at, Time, nil?: true
449
502
 
503
+ # @!attribute documents
504
+ #
505
+ # @return [Array<ModernTreasury::Models::Document>]
506
+ required :documents, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Document] }
507
+
450
508
  # @!attribute expiration_date
451
509
  # The date when the Identification is no longer considered valid by the issuing
452
510
  # authority.
@@ -490,7 +548,7 @@ module ModernTreasury
490
548
  # @return [Time]
491
549
  required :updated_at, Time
492
550
 
493
- # @!method initialize(id:, created_at:, discarded_at:, expiration_date:, id_type:, issuing_country:, issuing_region:, live_mode:, object:, updated_at:)
551
+ # @!method initialize(id:, created_at:, discarded_at:, documents:, expiration_date:, id_type:, issuing_country:, issuing_region:, live_mode:, object:, updated_at:)
494
552
  # Some parameter documentations has been truncated, see
495
553
  # {ModernTreasury::Models::ChildLegalEntity::Identification} for more details.
496
554
  #
@@ -500,6 +558,8 @@ module ModernTreasury
500
558
  #
501
559
  # @param discarded_at [Time, nil]
502
560
  #
561
+ # @param documents [Array<ModernTreasury::Models::Document>]
562
+ #
503
563
  # @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
504
564
  #
505
565
  # @param id_type [Symbol, ModernTreasury::Models::ChildLegalEntity::Identification::IDType] The type of ID number.
@@ -591,6 +651,37 @@ module ModernTreasury
591
651
  # @param phone_number [String]
592
652
  end
593
653
 
654
+ class Regulator < ModernTreasury::Internal::Type::BaseModel
655
+ # @!attribute jurisdiction
656
+ # The country code where the regulator operates in the ISO 3166-1 alpha-2 format
657
+ # (e.g., "US", "CA", "GB").
658
+ #
659
+ # @return [String]
660
+ required :jurisdiction, String
661
+
662
+ # @!attribute name
663
+ # Full name of the regulatory body.
664
+ #
665
+ # @return [String]
666
+ required :name, String
667
+
668
+ # @!attribute registration_number
669
+ # Registration or identification number with the regulator.
670
+ #
671
+ # @return [String]
672
+ required :registration_number, String
673
+
674
+ # @!method initialize(jurisdiction:, name:, registration_number:)
675
+ # Some parameter documentations has been truncated, see
676
+ # {ModernTreasury::Models::ChildLegalEntity::Regulator} for more details.
677
+ #
678
+ # @param jurisdiction [String] The country code where the regulator operates in the ISO 3166-1 alpha-2 format (
679
+ #
680
+ # @param name [String] Full name of the regulatory body.
681
+ #
682
+ # @param registration_number [String] Registration or identification number with the regulator.
683
+ end
684
+
594
685
  # The risk rating of the legal entity. One of low, medium, high.
595
686
  #
596
687
  # @see ModernTreasury::Models::ChildLegalEntity#risk_rating
@@ -604,6 +695,56 @@ module ModernTreasury
604
695
  # @!method self.values
605
696
  # @return [Array<Symbol>]
606
697
  end
698
+
699
+ # The activation status of the legal entity. One of pending, active, suspended, or
700
+ # closed.
701
+ #
702
+ # @see ModernTreasury::Models::ChildLegalEntity#status
703
+ module Status
704
+ extend ModernTreasury::Internal::Type::Enum
705
+
706
+ ACTIVE = :active
707
+ CLOSED = :closed
708
+ PENDING = :pending
709
+ SUSPENDED = :suspended
710
+
711
+ # @!method self.values
712
+ # @return [Array<Symbol>]
713
+ end
714
+
715
+ # @see ModernTreasury::Models::ChildLegalEntity#third_party_verification
716
+ class ThirdPartyVerification < ModernTreasury::Internal::Type::BaseModel
717
+ # @!attribute vendor
718
+ # The vendor that performed the verification, e.g. `persona`.
719
+ #
720
+ # @return [Symbol, ModernTreasury::Models::ChildLegalEntity::ThirdPartyVerification::Vendor]
721
+ required :vendor, enum: -> { ModernTreasury::ChildLegalEntity::ThirdPartyVerification::Vendor }
722
+
723
+ # @!attribute vendor_verification_id
724
+ # The identification of the third party verification in `vendor`'s system.
725
+ #
726
+ # @return [String]
727
+ required :vendor_verification_id, String
728
+
729
+ # @!method initialize(vendor:, vendor_verification_id:)
730
+ # Information describing a third-party verification run by an external vendor.
731
+ #
732
+ # @param vendor [Symbol, ModernTreasury::Models::ChildLegalEntity::ThirdPartyVerification::Vendor] The vendor that performed the verification, e.g. `persona`.
733
+ #
734
+ # @param vendor_verification_id [String] The identification of the third party verification in `vendor`'s system.
735
+
736
+ # The vendor that performed the verification, e.g. `persona`.
737
+ #
738
+ # @see ModernTreasury::Models::ChildLegalEntity::ThirdPartyVerification#vendor
739
+ module Vendor
740
+ extend ModernTreasury::Internal::Type::Enum
741
+
742
+ PERSONA = :persona
743
+
744
+ # @!method self.values
745
+ # @return [Array<Symbol>]
746
+ end
747
+ end
607
748
  end
608
749
  end
609
750
  end
@@ -33,10 +33,15 @@ module ModernTreasury
33
33
  # @return [String, nil]
34
34
  optional :citizenship_country, String, nil?: true
35
35
 
36
- # @!attribute compliance_details
36
+ # @!attribute connection_id
37
+ # The connection ID for the connection the legal entity is associated with.
38
+ # Defaults to the id of the connection designated with an is_default value of true
39
+ # or the id of an existing operational connection if only one is available. Pass
40
+ # in a value of null to prevent the connection from being associated with the
41
+ # legal entity.
37
42
  #
38
- # @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
39
- optional :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
43
+ # @return [String, nil]
44
+ optional :connection_id, String, nil?: true
40
45
 
41
46
  # @!attribute country_of_incorporation
42
47
  # The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
@@ -69,7 +74,7 @@ module ModernTreasury
69
74
  optional :email, String, nil?: true
70
75
 
71
76
  # @!attribute expected_activity_volume
72
- # Monthly expected transaction volume in entity's local currency.
77
+ # Monthly expected transaction volume in USD.
73
78
  #
74
79
  # @return [Integer, nil]
75
80
  optional :expected_activity_volume, Integer, nil?: true
@@ -132,6 +137,12 @@ module ModernTreasury
132
137
  },
133
138
  nil?: true
134
139
 
140
+ # @!attribute listed_exchange
141
+ # ISO 10383 market identifier code.
142
+ #
143
+ # @return [String, nil]
144
+ optional :listed_exchange, String, nil?: true
145
+
135
146
  # @!attribute metadata
136
147
  # Additional data represented as key-value pairs. Both the key and value must be
137
148
  # strings.
@@ -182,18 +193,49 @@ module ModernTreasury
182
193
  # @return [Array<String>, nil]
183
194
  optional :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
184
195
 
196
+ # @!attribute regulators
197
+ # Array of regulatory bodies overseeing this institution.
198
+ #
199
+ # @return [Array<ModernTreasury::Models::ChildLegalEntityCreate::Regulator>, nil]
200
+ optional :regulators,
201
+ -> {
202
+ ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ChildLegalEntityCreate::Regulator]
203
+ },
204
+ nil?: true
205
+
185
206
  # @!attribute risk_rating
186
207
  # The risk rating of the legal entity. One of low, medium, high.
187
208
  #
188
209
  # @return [Symbol, ModernTreasury::Models::ChildLegalEntityCreate::RiskRating, nil]
189
210
  optional :risk_rating, enum: -> { ModernTreasury::ChildLegalEntityCreate::RiskRating }, nil?: true
190
211
 
212
+ # @!attribute status
213
+ # The activation status of the legal entity. One of pending, active, suspended, or
214
+ # closed.
215
+ #
216
+ # @return [Symbol, ModernTreasury::Models::ChildLegalEntityCreate::Status, nil]
217
+ optional :status, enum: -> { ModernTreasury::ChildLegalEntityCreate::Status }, nil?: true
218
+
191
219
  # @!attribute suffix
192
220
  # An individual's suffix.
193
221
  #
194
222
  # @return [String, nil]
195
223
  optional :suffix, String, nil?: true
196
224
 
225
+ # @!attribute third_party_verification
226
+ # Information describing a third-party verification run by an external vendor.
227
+ #
228
+ # @return [ModernTreasury::Models::ChildLegalEntityCreate::ThirdPartyVerification, nil]
229
+ optional :third_party_verification,
230
+ -> { ModernTreasury::ChildLegalEntityCreate::ThirdPartyVerification },
231
+ nil?: true
232
+
233
+ # @!attribute ticker_symbol
234
+ # Stock ticker symbol for publicly traded companies.
235
+ #
236
+ # @return [String, nil]
237
+ optional :ticker_symbol, String, nil?: true
238
+
197
239
  # @!attribute wealth_and_employment_details
198
240
  #
199
241
  # @return [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
@@ -207,7 +249,7 @@ module ModernTreasury
207
249
  # @return [String, nil]
208
250
  optional :website, String, nil?: true
209
251
 
210
- # @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, risk_rating: nil, suffix: nil, wealth_and_employment_details: nil, website: nil)
252
+ # @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, status: nil, suffix: nil, third_party_verification: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
211
253
  # Some parameter documentations has been truncated, see
212
254
  # {ModernTreasury::Models::ChildLegalEntityCreate} for more details.
213
255
  #
@@ -221,7 +263,7 @@ module ModernTreasury
221
263
  #
222
264
  # @param citizenship_country [String, nil] The country of citizenship for an individual.
223
265
  #
224
- # @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
266
+ # @param connection_id [String, nil] The connection ID for the connection the legal entity is associated with. Defaul
225
267
  #
226
268
  # @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
227
269
  #
@@ -233,7 +275,7 @@ module ModernTreasury
233
275
  #
234
276
  # @param email [String, nil] The entity's primary email.
235
277
  #
236
- # @param expected_activity_volume [Integer, nil] Monthly expected transaction volume in entity's local currency.
278
+ # @param expected_activity_volume [Integer, nil] Monthly expected transaction volume in USD.
237
279
  #
238
280
  # @param first_name [String, nil] An individual's first name.
239
281
  #
@@ -251,6 +293,8 @@ module ModernTreasury
251
293
  #
252
294
  # @param legal_structure [Symbol, ModernTreasury::Models::ChildLegalEntityCreate::LegalStructure, nil] The business's legal structure.
253
295
  #
296
+ # @param listed_exchange [String, nil] ISO 10383 market identifier code.
297
+ #
254
298
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
255
299
  #
256
300
  # @param middle_name [String, nil] An individual's middle name.
@@ -267,10 +311,18 @@ module ModernTreasury
267
311
  #
268
312
  # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
269
313
  #
314
+ # @param regulators [Array<ModernTreasury::Models::ChildLegalEntityCreate::Regulator>, nil] Array of regulatory bodies overseeing this institution.
315
+ #
270
316
  # @param risk_rating [Symbol, ModernTreasury::Models::ChildLegalEntityCreate::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
271
317
  #
318
+ # @param status [Symbol, ModernTreasury::Models::ChildLegalEntityCreate::Status, nil] The activation status of the legal entity. One of pending, active, suspended, or
319
+ #
272
320
  # @param suffix [String, nil] An individual's suffix.
273
321
  #
322
+ # @param third_party_verification [ModernTreasury::Models::ChildLegalEntityCreate::ThirdPartyVerification, nil] Information describing a third-party verification run by an external vendor.
323
+ #
324
+ # @param ticker_symbol [String, nil] Stock ticker symbol for publicly traded companies.
325
+ #
274
326
  # @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
275
327
  #
276
328
  # @param website [String, nil] The entity's primary website URL.
@@ -317,6 +369,37 @@ module ModernTreasury
317
369
  # @param phone_number [String]
318
370
  end
319
371
 
372
+ class Regulator < ModernTreasury::Internal::Type::BaseModel
373
+ # @!attribute jurisdiction
374
+ # The country code where the regulator operates in the ISO 3166-1 alpha-2 format
375
+ # (e.g., "US", "CA", "GB").
376
+ #
377
+ # @return [String]
378
+ required :jurisdiction, String
379
+
380
+ # @!attribute name
381
+ # Full name of the regulatory body.
382
+ #
383
+ # @return [String]
384
+ required :name, String
385
+
386
+ # @!attribute registration_number
387
+ # Registration or identification number with the regulator.
388
+ #
389
+ # @return [String]
390
+ required :registration_number, String
391
+
392
+ # @!method initialize(jurisdiction:, name:, registration_number:)
393
+ # Some parameter documentations has been truncated, see
394
+ # {ModernTreasury::Models::ChildLegalEntityCreate::Regulator} for more details.
395
+ #
396
+ # @param jurisdiction [String] The country code where the regulator operates in the ISO 3166-1 alpha-2 format (
397
+ #
398
+ # @param name [String] Full name of the regulatory body.
399
+ #
400
+ # @param registration_number [String] Registration or identification number with the regulator.
401
+ end
402
+
320
403
  # The risk rating of the legal entity. One of low, medium, high.
321
404
  #
322
405
  # @see ModernTreasury::Models::ChildLegalEntityCreate#risk_rating
@@ -330,6 +413,56 @@ module ModernTreasury
330
413
  # @!method self.values
331
414
  # @return [Array<Symbol>]
332
415
  end
416
+
417
+ # The activation status of the legal entity. One of pending, active, suspended, or
418
+ # closed.
419
+ #
420
+ # @see ModernTreasury::Models::ChildLegalEntityCreate#status
421
+ module Status
422
+ extend ModernTreasury::Internal::Type::Enum
423
+
424
+ ACTIVE = :active
425
+ CLOSED = :closed
426
+ PENDING = :pending
427
+ SUSPENDED = :suspended
428
+
429
+ # @!method self.values
430
+ # @return [Array<Symbol>]
431
+ end
432
+
433
+ # @see ModernTreasury::Models::ChildLegalEntityCreate#third_party_verification
434
+ class ThirdPartyVerification < ModernTreasury::Internal::Type::BaseModel
435
+ # @!attribute vendor
436
+ # The vendor that performed the verification, e.g. `persona`.
437
+ #
438
+ # @return [Symbol, ModernTreasury::Models::ChildLegalEntityCreate::ThirdPartyVerification::Vendor]
439
+ required :vendor, enum: -> { ModernTreasury::ChildLegalEntityCreate::ThirdPartyVerification::Vendor }
440
+
441
+ # @!attribute vendor_verification_id
442
+ # The identification of the third party verification in `vendor`'s system.
443
+ #
444
+ # @return [String]
445
+ required :vendor_verification_id, String
446
+
447
+ # @!method initialize(vendor:, vendor_verification_id:)
448
+ # Information describing a third-party verification run by an external vendor.
449
+ #
450
+ # @param vendor [Symbol, ModernTreasury::Models::ChildLegalEntityCreate::ThirdPartyVerification::Vendor] The vendor that performed the verification, e.g. `persona`.
451
+ #
452
+ # @param vendor_verification_id [String] The identification of the third party verification in `vendor`'s system.
453
+
454
+ # The vendor that performed the verification, e.g. `persona`.
455
+ #
456
+ # @see ModernTreasury::Models::ChildLegalEntityCreate::ThirdPartyVerification#vendor
457
+ module Vendor
458
+ extend ModernTreasury::Internal::Type::Enum
459
+
460
+ PERSONA = :persona
461
+
462
+ # @!method self.values
463
+ # @return [Array<Symbol>]
464
+ end
465
+ end
333
466
  end
334
467
  end
335
468
  end