modern_treasury 0.29.3 → 0.31.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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/client.rb +4 -0
  5. data/lib/modern_treasury/models/account_detail.rb +8 -6
  6. data/lib/modern_treasury/models/account_detail_create_params.rb +8 -6
  7. data/lib/modern_treasury/models/bulk_request_create_params.rb +2 -2
  8. data/lib/modern_treasury/models/child_legal_entity.rb +5 -209
  9. data/lib/modern_treasury/models/child_legal_entity_create.rb +2 -2
  10. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +2 -2
  11. data/lib/modern_treasury/models/counterparty_create_params.rb +3 -3
  12. data/lib/modern_treasury/models/document.rb +7 -9
  13. data/lib/modern_treasury/models/document_create_params.rb +0 -2
  14. data/lib/modern_treasury/models/document_list_params.rb +7 -9
  15. data/lib/modern_treasury/models/external_account_create_params.rb +1 -1
  16. data/lib/modern_treasury/models/identification.rb +209 -0
  17. data/lib/modern_treasury/models/identification_create_params.rb +231 -0
  18. data/lib/modern_treasury/models/identification_retrieve_params.rb +20 -0
  19. data/lib/modern_treasury/models/identification_update_params.rb +176 -0
  20. data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -1
  21. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +3 -14
  22. data/lib/modern_treasury/models/internal_account_create_params.rb +1 -0
  23. data/lib/modern_treasury/models/legal_entity.rb +5 -209
  24. data/lib/modern_treasury/models/legal_entity_create_params.rb +2 -2
  25. data/lib/modern_treasury/models/legal_entity_update_params.rb +2 -2
  26. data/lib/modern_treasury/models/payment_order_create_async_params.rb +1 -1
  27. data/lib/modern_treasury/models/payment_order_create_params.rb +1 -3
  28. data/lib/modern_treasury/models/payment_order_subtype.rb +1 -0
  29. data/lib/modern_treasury/models/payment_order_update_params.rb +1 -1
  30. data/lib/modern_treasury/models/virtual_account.rb +9 -1
  31. data/lib/modern_treasury/models/virtual_account_create_params.rb +17 -7
  32. data/lib/modern_treasury/models/virtual_account_list_params.rb +9 -1
  33. data/lib/modern_treasury/models.rb +8 -0
  34. data/lib/modern_treasury/resources/account_details.rb +1 -1
  35. data/lib/modern_treasury/resources/documents.rb +1 -1
  36. data/lib/modern_treasury/resources/identifications.rb +106 -0
  37. data/lib/modern_treasury/resources/incoming_payment_details.rb +1 -1
  38. data/lib/modern_treasury/resources/legal_entities.rb +2 -2
  39. data/lib/modern_treasury/resources/virtual_accounts.rb +6 -2
  40. data/lib/modern_treasury/version.rb +1 -1
  41. data/lib/modern_treasury.rb +5 -0
  42. data/rbi/modern_treasury/client.rbi +3 -0
  43. data/rbi/modern_treasury/models/account_detail.rbi +14 -11
  44. data/rbi/modern_treasury/models/account_detail_create_params.rbi +14 -11
  45. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +10 -10
  46. data/rbi/modern_treasury/models/child_legal_entity.rbi +5 -654
  47. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +2 -2
  48. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +2 -2
  49. data/rbi/modern_treasury/models/counterparty_create_params.rbi +7 -7
  50. data/rbi/modern_treasury/models/document.rbi +9 -19
  51. data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
  52. data/rbi/modern_treasury/models/document_list_params.rbi +9 -19
  53. data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -5
  54. data/rbi/modern_treasury/models/identification.rbi +346 -0
  55. data/rbi/modern_treasury/models/identification_create_params.rbi +768 -0
  56. data/rbi/modern_treasury/models/identification_retrieve_params.rbi +38 -0
  57. data/rbi/modern_treasury/models/identification_update_params.rbi +632 -0
  58. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -5
  59. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +4 -50
  60. data/rbi/modern_treasury/models/internal_account_create_params.rbi +5 -0
  61. data/rbi/modern_treasury/models/legal_entity.rbi +5 -649
  62. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +2 -2
  63. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +2 -2
  64. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +5 -5
  65. data/rbi/modern_treasury/models/payment_order_create_params.rbi +5 -15
  66. data/rbi/modern_treasury/models/payment_order_subtype.rbi +2 -0
  67. data/rbi/modern_treasury/models/payment_order_update_params.rbi +5 -5
  68. data/rbi/modern_treasury/models/virtual_account.rbi +8 -0
  69. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +22 -11
  70. data/rbi/modern_treasury/models/virtual_account_list_params.rbi +11 -0
  71. data/rbi/modern_treasury/models.rbi +11 -0
  72. data/rbi/modern_treasury/resources/account_details.rbi +3 -2
  73. data/rbi/modern_treasury/resources/documents.rbi +3 -3
  74. data/rbi/modern_treasury/resources/identifications.rbi +94 -0
  75. data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
  76. data/rbi/modern_treasury/resources/legal_entities.rbi +2 -2
  77. data/rbi/modern_treasury/resources/virtual_accounts.rbi +6 -0
  78. data/sig/modern_treasury/client.rbs +2 -0
  79. data/sig/modern_treasury/models/account_detail.rbs +3 -3
  80. data/sig/modern_treasury/models/account_detail_create_params.rbs +3 -3
  81. data/sig/modern_treasury/models/bulk_request_create_params.rbs +6 -6
  82. data/sig/modern_treasury/models/child_legal_entity.rbs +4 -282
  83. data/sig/modern_treasury/models/counterparty_create_params.rbs +3 -3
  84. data/sig/modern_treasury/models/document.rbs +0 -4
  85. data/sig/modern_treasury/models/document_create_params.rbs +0 -4
  86. data/sig/modern_treasury/models/document_list_params.rbs +0 -4
  87. data/sig/modern_treasury/models/external_account_create_params.rbs +3 -3
  88. data/sig/modern_treasury/models/identification.rbs +281 -0
  89. data/sig/modern_treasury/models/identification_create_params.rbs +323 -0
  90. data/sig/modern_treasury/models/identification_retrieve_params.rbs +23 -0
  91. data/sig/modern_treasury/models/identification_update_params.rbs +268 -0
  92. data/sig/modern_treasury/models/incoming_payment_detail.rbs +3 -3
  93. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +6 -17
  94. data/sig/modern_treasury/models/internal_account_create_params.rbs +6 -1
  95. data/sig/modern_treasury/models/legal_entity.rbs +4 -282
  96. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +3 -3
  97. data/sig/modern_treasury/models/payment_order_create_params.rbs +3 -7
  98. data/sig/modern_treasury/models/payment_order_subtype.rbs +2 -0
  99. data/sig/modern_treasury/models/payment_order_update_params.rbs +3 -3
  100. data/sig/modern_treasury/models/virtual_account.rbs +5 -0
  101. data/sig/modern_treasury/models/virtual_account_create_params.rbs +8 -3
  102. data/sig/modern_treasury/models/virtual_account_list_params.rbs +7 -0
  103. data/sig/modern_treasury/models.rbs +8 -0
  104. data/sig/modern_treasury/resources/identifications.rbs +33 -0
  105. data/sig/modern_treasury/resources/incoming_payment_details.rbs +1 -1
  106. data/sig/modern_treasury/resources/virtual_accounts.rbs +2 -0
  107. metadata +17 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca13f298d19c5423d5cc4b24721225bc51a917d11e3859adbc30283c08fedad0
4
- data.tar.gz: 70998cdf7d1a5cf4a05c9635ae156556b61a56e82d846594b1407cad3edaef3c
3
+ metadata.gz: ac919882403746bb539adee28504278b23265825dc7be6f13f25443883adc3b1
4
+ data.tar.gz: 331c58f6ba8d087b98bb576c563c4e2728ccd82e2fc397dc3570465426dced12
5
5
  SHA512:
6
- metadata.gz: cc47dcd3c68747d3e47206e2cba66422ed1eebd206dc453b5d1f51b136f0415a2914b88f2ffd40beb5335a2970cbf32db5aa24e58ffbb6a47189af0c880728c5
7
- data.tar.gz: d21187e3eb61f0124545351f322958c1690d1412a9c1ad5f7cf3e002e56601c19bcaa7e37043cc324598b22e829e02fc89a566d7df4d3c6a790f56a8a1216743
6
+ metadata.gz: cb930cc0bc55f491c9981c1231f3b889255ea308b33186225b7d101804e733a4309f56bd69075382ac9fb717afedb6c6d635b33b04010461342982ce22e2c691
7
+ data.tar.gz: d343d7af1182b9a057d362d5ba53586b0315c07f5b566a9e927873e12bb1e0e3d5b0ebd709fd530a06df784ad0a8efa464ca0b28181608b176b3de3fb19671b3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.31.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.30.0...v0.31.0) (2026-09-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * regenerate SDKs from 08af7fedc870e2d9a7f697517623eebdb45d86cc ([7d59741](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/7d5974180a1b4a40b69af93d41cf2049021e81cc))
9
+ * regenerate SDKs from 0cc6cb1cdd4beed4781658a511f3a03ddf277d94 ([7806a09](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/7806a09ac54b22a9b96865b834d08d1f641e6f67))
10
+ * regenerate SDKs from 0ed3f0cdda7032e8a95afe0e230eb52d004afa91 ([4657991](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/465799155b209173034dee8b9982e20f157beb26))
11
+ * regenerate SDKs from 256e67f3902acc2a01de6f9ebf5a5a59f434d332 ([d2c4766](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/d2c476601988a4e8c8986514135360b1f7cc8223))
12
+ * regenerate SDKs from 378be293d156cc28dc8ce9c1853c6d9d013b0a02 ([5f11bc7](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/5f11bc76e2b5a7f87a50f387f338e7a3e3e996ff))
13
+ * regenerate SDKs from 47be8347adfd69e1a713c50b9ac72d9b28708d72 ([94950ee](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/94950ee787da7763e0d67882ab139c64c6dbd785))
14
+ * regenerate SDKs from 6f84b3ee98f7c58add7e7b9c27ad77e30890d095 ([6b047c9](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/6b047c906614042cb2f12e951afcd6f8d095fffd))
15
+
16
+ ## [0.30.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.29.3...v0.30.0) (2026-09-04)
17
+
18
+
19
+ ### Features
20
+
21
+ * regenerate SDKs from 44e4a18bd45d4fcf76033c7c359c4acbb025555d ([a487b91](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a487b91b2eea97e399ffadb161339f6a016a55ef))
22
+
23
+
24
+ ### Chores
25
+
26
+ * regenerate SDKs from 403d503f89767311f19edef8867e77005af78284 ([a396a07](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a396a077c10ddb467051717dbc9549fb7b756d2c))
27
+
3
28
  ## [0.29.3](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.29.2...v0.29.3) (2026-09-04)
4
29
 
5
30
 
data/README.md CHANGED
@@ -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.29.3"
27
+ gem "modern_treasury", "~> 0.31.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -147,6 +147,9 @@ module ModernTreasury
147
147
  # @return [ModernTreasury::Resources::VirtualAccountSettings]
148
148
  attr_reader :virtual_account_settings
149
149
 
150
+ # @return [ModernTreasury::Resources::Identifications]
151
+ attr_reader :identifications
152
+
150
153
  # A test endpoint often used to confirm credentials and headers are being passed
151
154
  # in correctly.
152
155
  #
@@ -285,6 +288,7 @@ module ModernTreasury
285
288
  @holds = ModernTreasury::Resources::Holds.new(client: self)
286
289
  @cases = ModernTreasury::Resources::Cases.new(client: self)
287
290
  @virtual_account_settings = ModernTreasury::Resources::VirtualAccountSettings.new(client: self)
291
+ @identifications = ModernTreasury::Resources::Identifications.new(client: self)
288
292
  end
289
293
  end
290
294
  end
@@ -16,8 +16,9 @@ module ModernTreasury
16
16
  required :account_number_safe, String
17
17
 
18
18
  # @!attribute account_number_type
19
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
20
- # account number is in a generic format.
19
+ # The type of the account number. For wallet addresses, use the chain-specific
20
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
21
+ # generic format.
21
22
  #
22
23
  # @return [Symbol, ModernTreasury::Models::AccountDetail::AccountNumberType]
23
24
  required :account_number_type, enum: -> { ModernTreasury::AccountDetail::AccountNumberType }
@@ -63,7 +64,7 @@ module ModernTreasury
63
64
  #
64
65
  # @param account_number_safe [String] The last 4 digits of the account_number.
65
66
  #
66
- # @param account_number_type [Symbol, ModernTreasury::Models::AccountDetail::AccountNumberType] One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac
67
+ # @param account_number_type [Symbol, ModernTreasury::Models::AccountDetail::AccountNumberType] The type of the account number. For wallet addresses, use the chain-specific typ
67
68
  #
68
69
  # @param created_at [Time]
69
70
  #
@@ -77,13 +78,15 @@ module ModernTreasury
77
78
  #
78
79
  # @param account_number [String] The account number for the bank account.
79
80
 
80
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
81
- # account number is in a generic format.
81
+ # The type of the account number. For wallet addresses, use the chain-specific
82
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
83
+ # generic format.
82
84
  #
83
85
  # @see ModernTreasury::Models::AccountDetail#account_number_type
84
86
  module AccountNumberType
85
87
  extend ModernTreasury::Internal::Type::Enum
86
88
 
89
+ ARBITRUM_ADDRESS = :arbitrum_address
87
90
  AU_NUMBER = :au_number
88
91
  BASE_ADDRESS = :base_address
89
92
  CARD_TOKEN = :card_token
@@ -98,7 +101,6 @@ module ModernTreasury
98
101
  POLYGON_ADDRESS = :polygon_address
99
102
  SG_NUMBER = :sg_number
100
103
  SOLANA_ADDRESS = :solana_address
101
- WALLET_ADDRESS = :wallet_address
102
104
 
103
105
  # @!method self.values
104
106
  # @return [Array<Symbol>]
@@ -24,8 +24,9 @@ module ModernTreasury
24
24
  required :account_number, String
25
25
 
26
26
  # @!attribute account_number_type
27
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
28
- # account number is in a generic format.
27
+ # The type of the account number. For wallet addresses, use the chain-specific
28
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
29
+ # generic format.
29
30
  #
30
31
  # @return [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType, nil]
31
32
  optional :account_number_type, enum: -> { ModernTreasury::AccountDetailCreateParams::AccountNumberType }
@@ -40,7 +41,7 @@ module ModernTreasury
40
41
  #
41
42
  # @param account_number [String] The account number for the bank account.
42
43
  #
43
- # @param account_number_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType] One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac
44
+ # @param account_number_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType] The type of the account number. For wallet addresses, use the chain-specific typ
44
45
  #
45
46
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
46
47
 
@@ -53,11 +54,13 @@ module ModernTreasury
53
54
  # @return [Array<Symbol>]
54
55
  end
55
56
 
56
- # One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
57
- # account number is in a generic format.
57
+ # The type of the account number. For wallet addresses, use the chain-specific
58
+ # type (e.g. `ethereum_address`). Use `other` if the account number is in a
59
+ # generic format.
58
60
  module AccountNumberType
59
61
  extend ModernTreasury::Internal::Type::Enum
60
62
 
63
+ ARBITRUM_ADDRESS = :arbitrum_address
61
64
  AU_NUMBER = :au_number
62
65
  BASE_ADDRESS = :base_address
63
66
  CARD_TOKEN = :card_token
@@ -72,7 +75,6 @@ module ModernTreasury
72
75
  POLYGON_ADDRESS = :polygon_address
73
76
  SG_NUMBER = :sg_number
74
77
  SOLANA_ADDRESS = :solana_address
75
- WALLET_ADDRESS = :wallet_address
76
78
 
77
79
  # @!method self.values
78
80
  # @return [Array<Symbol>]
@@ -883,6 +883,7 @@ module ModernTreasury
883
883
  module AccountNumberType
884
884
  extend ModernTreasury::Internal::Type::Enum
885
885
 
886
+ ARBITRUM_ADDRESS = :arbitrum_address
886
887
  AU_NUMBER = :au_number
887
888
  BASE_ADDRESS = :base_address
888
889
  CARD_TOKEN = :card_token
@@ -897,7 +898,6 @@ module ModernTreasury
897
898
  POLYGON_ADDRESS = :polygon_address
898
899
  SG_NUMBER = :sg_number
899
900
  SOLANA_ADDRESS = :solana_address
900
- WALLET_ADDRESS = :wallet_address
901
901
 
902
902
  # @!method self.values
903
903
  # @return [Array<Symbol>]
@@ -2311,6 +2311,7 @@ module ModernTreasury
2311
2311
  module AccountNumberType
2312
2312
  extend ModernTreasury::Internal::Type::Enum
2313
2313
 
2314
+ ARBITRUM_ADDRESS = :arbitrum_address
2314
2315
  AU_NUMBER = :au_number
2315
2316
  BASE_ADDRESS = :base_address
2316
2317
  CARD_TOKEN = :card_token
@@ -2325,7 +2326,6 @@ module ModernTreasury
2325
2326
  POLYGON_ADDRESS = :polygon_address
2326
2327
  SG_NUMBER = :sg_number
2327
2328
  SOLANA_ADDRESS = :solana_address
2328
- WALLET_ADDRESS = :wallet_address
2329
2329
 
2330
2330
  # @!method self.values
2331
2331
  # @return [Array<Symbol>]
@@ -118,9 +118,8 @@ module ModernTreasury
118
118
  # @!attribute identifications
119
119
  # A list of identifications for the legal entity.
120
120
  #
121
- # @return [Array<ModernTreasury::Models::ChildLegalEntity::Identification>]
122
- required :identifications,
123
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ChildLegalEntity::Identification] }
121
+ # @return [Array<ModernTreasury::Models::Identification>]
122
+ required :identifications, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Identification] }
124
123
 
125
124
  # @!attribute industry_classifications
126
125
  # A list of industry classifications for the legal entity.
@@ -224,7 +223,7 @@ module ModernTreasury
224
223
  required :prefix, String, nil?: true
225
224
 
226
225
  # @!attribute primary_social_media_sites
227
- # A list of primary social media URLs for the business.
226
+ # A list of the entity's primary social media URLs.
228
227
  #
229
228
  # @return [Array<String>]
230
229
  required :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
@@ -349,7 +348,7 @@ module ModernTreasury
349
348
  #
350
349
  # @param first_name [String, nil] An individual's first name.
351
350
  #
352
- # @param identifications [Array<ModernTreasury::Models::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
351
+ # @param identifications [Array<ModernTreasury::Models::Identification>] A list of identifications for the legal entity.
353
352
  #
354
353
  # @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
355
354
  #
@@ -383,7 +382,7 @@ module ModernTreasury
383
382
  #
384
383
  # @param prefix [String, nil] An individual's prefix.
385
384
  #
386
- # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
385
+ # @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
387
386
  #
388
387
  # @param regulators [Array<ModernTreasury::Models::ChildLegalEntity::Regulator>, nil] Array of regulatory bodies overseeing this institution.
389
388
  #
@@ -553,209 +552,6 @@ module ModernTreasury
553
552
  # @return [Array<Symbol>]
554
553
  end
555
554
 
556
- class Identification < ModernTreasury::Internal::Type::BaseModel
557
- # @!attribute id
558
- #
559
- # @return [String]
560
- required :id, String
561
-
562
- # @!attribute created_at
563
- #
564
- # @return [Time]
565
- required :created_at, Time
566
-
567
- # @!attribute discarded_at
568
- #
569
- # @return [Time, nil]
570
- required :discarded_at, Time, nil?: true
571
-
572
- # @!attribute documents
573
- #
574
- # @return [Array<ModernTreasury::Models::Document>]
575
- required :documents, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Document] }
576
-
577
- # @!attribute expiration_date
578
- # The date when the Identification is no longer considered valid by the issuing
579
- # authority.
580
- #
581
- # @return [Date, nil]
582
- required :expiration_date, Date, nil?: true
583
-
584
- # @!attribute id_type
585
- # The type of ID number.
586
- #
587
- # @return [Symbol, ModernTreasury::Models::ChildLegalEntity::Identification::IDType]
588
- required :id_type, enum: -> { ModernTreasury::ChildLegalEntity::Identification::IDType }
589
-
590
- # @!attribute issuing_country
591
- # The ISO 3166-1 alpha-2 country code of the country that issued the
592
- # identification
593
- #
594
- # @return [String, nil]
595
- required :issuing_country, String, nil?: true
596
-
597
- # @!attribute issuing_region
598
- # The region in which the identifcation was issued.
599
- #
600
- # @return [String, nil]
601
- required :issuing_region, String, nil?: true
602
-
603
- # @!attribute live_mode
604
- # This field will be true if this object exists in the live environment or false
605
- # if it exists in the test environment.
606
- #
607
- # @return [Boolean]
608
- required :live_mode, ModernTreasury::Internal::Type::Boolean
609
-
610
- # @!attribute object
611
- #
612
- # @return [String]
613
- required :object, String
614
-
615
- # @!attribute updated_at
616
- #
617
- # @return [Time]
618
- required :updated_at, Time
619
-
620
- # @!method initialize(id:, created_at:, discarded_at:, documents:, expiration_date:, id_type:, issuing_country:, issuing_region:, live_mode:, object:, updated_at:)
621
- # Some parameter documentations has been truncated, see
622
- # {ModernTreasury::Models::ChildLegalEntity::Identification} for more details.
623
- #
624
- # @param id [String]
625
- #
626
- # @param created_at [Time]
627
- #
628
- # @param discarded_at [Time, nil]
629
- #
630
- # @param documents [Array<ModernTreasury::Models::Document>]
631
- #
632
- # @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
633
- #
634
- # @param id_type [Symbol, ModernTreasury::Models::ChildLegalEntity::Identification::IDType] The type of ID number.
635
- #
636
- # @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
637
- #
638
- # @param issuing_region [String, nil] The region in which the identifcation was issued.
639
- #
640
- # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
641
- #
642
- # @param object [String]
643
- #
644
- # @param updated_at [Time]
645
-
646
- # The type of ID number.
647
- #
648
- # @see ModernTreasury::Models::ChildLegalEntity::Identification#id_type
649
- module IDType
650
- extend ModernTreasury::Internal::Type::Enum
651
-
652
- AR_CUIL = :ar_cuil
653
- AR_CUIT = :ar_cuit
654
- AT_ATIN = :at_atin
655
- AT_VAT = :at_vat
656
- AU_ABN = :au_abn
657
- AU_TFN = :au_tfn
658
- BE_ENT = :be_ent
659
- BE_NRN = :be_nrn
660
- BR_CNPJ = :br_cnpj
661
- BR_CPF = :br_cpf
662
- CA_BN = :ca_bn
663
- CA_SIN = :ca_sin
664
- CH_AHV = :ch_ahv
665
- CH_UID = :ch_uid
666
- CL_RUN = :cl_run
667
- CL_RUT = :cl_rut
668
- CO_CEDULAS = :co_cedulas
669
- CO_NIT = :co_nit
670
- CY_TIN = :cy_tin
671
- CZ_ICO = :cz_ico
672
- CZ_RC = :cz_rc
673
- DE_STID = :de_stid
674
- DE_STNR = :de_stnr
675
- DE_VAT = :de_vat
676
- DK_CPR = :dk_cpr
677
- DK_CVR = :dk_cvr
678
- DRIVERS_LICENSE = :drivers_license
679
- EE_IK = :ee_ik
680
- EE_RK = :ee_rk
681
- ES_NIE = :es_nie
682
- ES_NIF = :es_nif
683
- FI_HETU = :fi_hetu
684
- FI_YTJ = :fi_ytj
685
- FR_NIF = :fr_nif
686
- FR_SIREN = :fr_siren
687
- FR_VAT = :fr_vat
688
- GB_NINO = :gb_nino
689
- GB_UTR = :gb_utr
690
- GB_VAT = :gb_vat
691
- GENERIC_INTERNATIONAL = :generic_international
692
- GR_VAT = :gr_vat
693
- HK_BRN = :hk_brn
694
- HK_HKID = :hk_hkid
695
- HN_ID = :hn_id
696
- HN_RTN = :hn_rtn
697
- HR_OIB = :hr_oib
698
- HU_ADJ = :hu_adj
699
- HU_ANUM = :hu_anum
700
- IE_PPS = :ie_pps
701
- IE_TRN = :ie_trn
702
- IN_LEI = :in_lei
703
- IS_KNT = :is_knt
704
- IT_CF = :it_cf
705
- IT_PIVA = :it_piva
706
- JP_HB = :jp_hb
707
- JP_MN = :jp_mn
708
- KR_BRN = :kr_brn
709
- KR_CRN = :kr_crn
710
- KR_RRN = :kr_rrn
711
- LI_PEID = :li_peid
712
- LT_AK = :lt_ak
713
- LT_JAK = :lt_jak
714
- LU_MTC = :lu_mtc
715
- LU_VAT = :lu_vat
716
- LV_PK = :lv_pk
717
- LV_RN = :lv_rn
718
- MT_TIN = :mt_tin
719
- MT_VAT = :mt_vat
720
- MX_CURP = :mx_curp
721
- MX_INE = :mx_ine
722
- MX_RFC = :mx_rfc
723
- NATIONAL_ID = :national_id
724
- NL_BSN = :nl_bsn
725
- NL_BTW = :nl_btw
726
- NL_RSIN = :nl_rsin
727
- NO_FDN = :no_fdn
728
- NO_MVA = :no_mva
729
- NO_ORGNR = :no_orgnr
730
- NZ_IRD = :nz_ird
731
- PASSPORT = :passport
732
- PL_NIP = :pl_nip
733
- PL_PESEL = :pl_pesel
734
- PT_NIF = :pt_nif
735
- RO_CNP = :ro_cnp
736
- RO_CUI = :ro_cui
737
- SA_TIN = :sa_tin
738
- SA_VAT = :sa_vat
739
- SE_ORGNR = :se_orgnr
740
- SE_PNMR = :se_pnmr
741
- SG_FIN = :sg_fin
742
- SG_NRIC = :sg_nric
743
- SG_UEN = :sg_uen
744
- SI_DAV = :si_dav
745
- SI_TIN = :si_tin
746
- SK_ICO = :sk_ico
747
- SK_RC = :sk_rc
748
- US_EIN = :us_ein
749
- US_ITIN = :us_itin
750
- US_SSN = :us_ssn
751
- UY_RUT = :uy_rut
752
- VN_TIN = :vn_tin
753
-
754
- # @!method self.values
755
- # @return [Array<Symbol>]
756
- end
757
- end
758
-
759
555
  # The type of legal entity.
760
556
  #
761
557
  # @see ModernTreasury::Models::ChildLegalEntity#legal_entity_type
@@ -216,7 +216,7 @@ module ModernTreasury
216
216
  optional :prefix, String, nil?: true
217
217
 
218
218
  # @!attribute primary_social_media_sites
219
- # A list of primary social media URLs for the business.
219
+ # A list of the entity's primary social media URLs.
220
220
  #
221
221
  # @return [Array<String>, nil]
222
222
  optional :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
@@ -357,7 +357,7 @@ module ModernTreasury
357
357
  #
358
358
  # @param prefix [String, nil] An individual's prefix.
359
359
  #
360
- # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
360
+ # @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
361
361
  #
362
362
  # @param regulators [Array<ModernTreasury::Models::ChildLegalEntityCreate::Regulator>, nil] Array of regulatory bodies overseeing this institution.
363
363
  #
@@ -249,7 +249,7 @@ module ModernTreasury
249
249
  optional :prefix, String, nil?: true
250
250
 
251
251
  # @!attribute primary_social_media_sites
252
- # A list of primary social media URLs for the business.
252
+ # A list of the entity's primary social media URLs.
253
253
  #
254
254
  # @return [Array<String>, nil]
255
255
  optional :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
@@ -397,7 +397,7 @@ module ModernTreasury
397
397
  #
398
398
  # @param prefix [String, nil] An individual's prefix.
399
399
  #
400
- # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
400
+ # @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
401
401
  #
402
402
  # @param regulators [Array<ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Regulator>, nil] Array of regulatory bodies overseeing this institution.
403
403
  #
@@ -283,6 +283,7 @@ module ModernTreasury
283
283
  module AccountNumberType
284
284
  extend ModernTreasury::Internal::Type::Enum
285
285
 
286
+ ARBITRUM_ADDRESS = :arbitrum_address
286
287
  AU_NUMBER = :au_number
287
288
  BASE_ADDRESS = :base_address
288
289
  CARD_TOKEN = :card_token
@@ -297,7 +298,6 @@ module ModernTreasury
297
298
  POLYGON_ADDRESS = :polygon_address
298
299
  SG_NUMBER = :sg_number
299
300
  SOLANA_ADDRESS = :solana_address
300
- WALLET_ADDRESS = :wallet_address
301
301
 
302
302
  # @!method self.values
303
303
  # @return [Array<Symbol>]
@@ -632,7 +632,7 @@ module ModernTreasury
632
632
  optional :prefix, String, nil?: true
633
633
 
634
634
  # @!attribute primary_social_media_sites
635
- # A list of primary social media URLs for the business.
635
+ # A list of the entity's primary social media URLs.
636
636
  #
637
637
  # @return [Array<String>, nil]
638
638
  optional :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
@@ -778,7 +778,7 @@ module ModernTreasury
778
778
  #
779
779
  # @param prefix [String, nil] An individual's prefix.
780
780
  #
781
- # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
781
+ # @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
782
782
  #
783
783
  # @param regulators [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Regulator>, nil] Array of regulatory bodies overseeing this institution.
784
784
  #
@@ -32,9 +32,9 @@ module ModernTreasury
32
32
  required :documentable_id, String, nil?: true
33
33
 
34
34
  # @!attribute documentable_type
35
- # The type of the associated object. Currently can be one of `payment_order`,
36
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
37
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
35
+ # The type of the associated object. Currently can be one of `connection`,
36
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
37
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
38
38
  #
39
39
  # @return [Symbol, ModernTreasury::Models::Document::DocumentableType, nil]
40
40
  required :documentable_type, enum: -> { ModernTreasury::Document::DocumentableType }, nil?: true
@@ -81,7 +81,7 @@ module ModernTreasury
81
81
  #
82
82
  # @param documentable_id [String, nil] The unique identifier for the associated object.
83
83
  #
84
- # @param documentable_type [Symbol, ModernTreasury::Models::Document::DocumentableType, nil] The type of the associated object. Currently can be one of `payment_order`, `tra
84
+ # @param documentable_type [Symbol, ModernTreasury::Models::Document::DocumentableType, nil] The type of the associated object. Currently can be one of `connection`, `counte
85
85
  #
86
86
  # @param file [ModernTreasury::Models::Document::File]
87
87
  #
@@ -93,9 +93,9 @@ module ModernTreasury
93
93
  #
94
94
  # @param updated_at [Time]
95
95
 
96
- # The type of the associated object. Currently can be one of `payment_order`,
97
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
98
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
96
+ # The type of the associated object. Currently can be one of `connection`,
97
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
98
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
99
99
  #
100
100
  # @see ModernTreasury::Models::Document#documentable_type
101
101
  module DocumentableType
@@ -104,12 +104,10 @@ module ModernTreasury
104
104
  CONNECTION = :connection
105
105
  COUNTERPARTY = :counterparty
106
106
  EXPECTED_PAYMENT = :expected_payment
107
- EXTERNAL_ACCOUNT = :external_account
108
107
  IDENTIFICATION = :identification
109
108
  INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
110
109
  INTERNAL_ACCOUNT = :internal_account
111
110
  LEGAL_ENTITY = :legal_entity
112
- ORGANIZATION = :organization
113
111
  PAYMENT_ORDER = :payment_order
114
112
  RETURN = :return
115
113
  TRANSACTION = :transaction
@@ -46,12 +46,10 @@ module ModernTreasury
46
46
  CONNECTION = :connection
47
47
  COUNTERPARTY = :counterparty
48
48
  EXPECTED_PAYMENT = :expected_payment
49
- EXTERNAL_ACCOUNT = :external_account
50
49
  IDENTIFICATION = :identification
51
50
  INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
52
51
  INTERNAL_ACCOUNT = :internal_account
53
52
  LEGAL_ENTITY = :legal_entity
54
- ORGANIZATION = :organization
55
53
  PAYMENT_ORDER = :payment_order
56
54
  RETURN = :return
57
55
  TRANSACTION = :transaction
@@ -19,9 +19,9 @@ module ModernTreasury
19
19
  optional :documentable_id, String
20
20
 
21
21
  # @!attribute documentable_type
22
- # The type of the associated object. Currently can be one of `payment_order`,
23
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
24
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
22
+ # The type of the associated object. Currently can be one of `connection`,
23
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
24
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
25
25
  #
26
26
  # @return [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType, nil]
27
27
  optional :documentable_type, enum: -> { ModernTreasury::DocumentListParams::DocumentableType }
@@ -39,27 +39,25 @@ module ModernTreasury
39
39
  #
40
40
  # @param documentable_id [String] The unique identifier for the associated object.
41
41
  #
42
- # @param documentable_type [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `payment_order`, `tra
42
+ # @param documentable_type [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `connection`, `counte
43
43
  #
44
44
  # @param per_page [Integer]
45
45
  #
46
46
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
47
47
 
48
- # The type of the associated object. Currently can be one of `payment_order`,
49
- # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
50
- # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
48
+ # The type of the associated object. Currently can be one of `connection`,
49
+ # `counterparty`, `expected_payment`, `identification`, `incoming_payment_detail`,
50
+ # `internal_account`, `legal_entity`, `payment_order`, `return`, or `transaction`.
51
51
  module DocumentableType
52
52
  extend ModernTreasury::Internal::Type::Enum
53
53
 
54
54
  CONNECTION = :connection
55
55
  COUNTERPARTY = :counterparty
56
56
  EXPECTED_PAYMENT = :expected_payment
57
- EXTERNAL_ACCOUNT = :external_account
58
57
  IDENTIFICATION = :identification
59
58
  INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
60
59
  INTERNAL_ACCOUNT = :internal_account
61
60
  LEGAL_ENTITY = :legal_entity
62
- ORGANIZATION = :organization
63
61
  PAYMENT_ORDER = :payment_order
64
62
  RETURN = :return
65
63
  TRANSACTION = :transaction
@@ -150,6 +150,7 @@ module ModernTreasury
150
150
  module AccountNumberType
151
151
  extend ModernTreasury::Internal::Type::Enum
152
152
 
153
+ ARBITRUM_ADDRESS = :arbitrum_address
153
154
  AU_NUMBER = :au_number
154
155
  BASE_ADDRESS = :base_address
155
156
  CARD_TOKEN = :card_token
@@ -164,7 +165,6 @@ module ModernTreasury
164
165
  POLYGON_ADDRESS = :polygon_address
165
166
  SG_NUMBER = :sg_number
166
167
  SOLANA_ADDRESS = :solana_address
167
- WALLET_ADDRESS = :wallet_address
168
168
 
169
169
  # @!method self.values
170
170
  # @return [Array<Symbol>]