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.
Files changed (173) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/README.md +10 -1
  4. data/lib/modern_treasury/client.rb +12 -0
  5. data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +12 -10
  6. data/lib/modern_treasury/internal/util.rb +7 -2
  7. data/lib/modern_treasury/models/bulk_request_create_params.rb +146 -2
  8. data/lib/modern_treasury/models/child_legal_entity.rb +609 -0
  9. data/lib/modern_treasury/models/child_legal_entity_create.rb +63 -1
  10. data/lib/modern_treasury/models/connection_legal_entity.rb +2 -0
  11. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +54 -63
  12. data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -0
  13. data/lib/modern_treasury/models/counterparty_create_params.rb +54 -59
  14. data/lib/modern_treasury/models/expected_payment.rb +69 -1
  15. data/lib/modern_treasury/models/expected_payment_create_params.rb +65 -1
  16. data/lib/modern_treasury/models/expected_payment_update_params.rb +65 -1
  17. data/lib/modern_treasury/models/hold_create_params.rb +74 -0
  18. data/lib/modern_treasury/models/hold_create_response.rb +143 -0
  19. data/lib/modern_treasury/models/hold_list_params.rb +89 -0
  20. data/lib/modern_treasury/models/hold_list_response.rb +143 -0
  21. data/lib/modern_treasury/models/hold_retrieve_params.rb +14 -0
  22. data/lib/modern_treasury/models/hold_retrieve_response.rb +143 -0
  23. data/lib/modern_treasury/models/hold_update_params.rb +40 -0
  24. data/lib/modern_treasury/models/hold_update_response.rb +143 -0
  25. data/lib/modern_treasury/models/incoming_payment_detail.rb +5 -0
  26. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +5 -0
  27. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +5 -0
  28. data/lib/modern_treasury/models/internal_account.rb +10 -1
  29. data/lib/modern_treasury/models/internal_account_request_closure_params.rb +14 -0
  30. data/lib/modern_treasury/models/internal_account_update_params.rb +9 -1
  31. data/lib/modern_treasury/models/invoice.rb +2 -0
  32. data/lib/modern_treasury/models/invoice_create_params.rb +1 -19
  33. data/lib/modern_treasury/models/invoice_update_params.rb +1 -19
  34. data/lib/modern_treasury/models/journal_entry_list_params.rb +38 -0
  35. data/lib/modern_treasury/models/journal_entry_retrieve_params.rb +14 -0
  36. data/lib/modern_treasury/models/journal_report_list_params.rb +14 -0
  37. data/lib/modern_treasury/models/journal_report_retrieve_params.rb +14 -0
  38. data/lib/modern_treasury/models/journal_report_update_params.rb +26 -0
  39. data/lib/modern_treasury/models/ledger_entry.rb +10 -1
  40. data/lib/modern_treasury/models/ledger_entry_create_request.rb +10 -1
  41. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
  42. data/lib/modern_treasury/models/legal_entity.rb +61 -11
  43. data/lib/modern_treasury/models/legal_entity_association.rb +3 -559
  44. data/lib/modern_treasury/models/legal_entity_association_inline_create.rb +60 -0
  45. data/lib/modern_treasury/models/legal_entity_create_params.rb +54 -59
  46. data/lib/modern_treasury/models/legal_entity_update_params.rb +51 -1
  47. data/lib/modern_treasury/models/payment_order.rb +5 -1
  48. data/lib/modern_treasury/models/payment_order_subtype.rb +0 -1
  49. data/lib/modern_treasury/models/payment_reference.rb +5 -1
  50. data/lib/modern_treasury/models/return_object.rb +6 -1
  51. data/lib/modern_treasury/models/transaction.rb +2 -1
  52. data/lib/modern_treasury/models.rb +24 -0
  53. data/lib/modern_treasury/resources/expected_payments.rb +18 -2
  54. data/lib/modern_treasury/resources/holds.rb +126 -0
  55. data/lib/modern_treasury/resources/internal_accounts.rb +23 -1
  56. data/lib/modern_treasury/resources/invoices.rb +2 -10
  57. data/lib/modern_treasury/resources/journal_entries.rb +60 -0
  58. data/lib/modern_treasury/resources/journal_reports.rb +78 -0
  59. data/lib/modern_treasury/resources/ledger_accounts.rb +3 -3
  60. data/lib/modern_treasury/resources/ledger_transactions.rb +5 -2
  61. data/lib/modern_treasury/resources/legal_entities.rb +27 -3
  62. data/lib/modern_treasury/version.rb +1 -1
  63. data/lib/modern_treasury.rb +20 -0
  64. data/manifest.yaml +1 -0
  65. data/rbi/modern_treasury/client.rbi +9 -0
  66. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +272 -0
  67. data/rbi/modern_treasury/models/child_legal_entity.rbi +969 -0
  68. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +78 -0
  69. data/rbi/modern_treasury/models/connection_legal_entity.rbi +10 -0
  70. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +61 -135
  71. data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +10 -0
  72. data/rbi/modern_treasury/models/counterparty_create_params.rbi +61 -135
  73. data/rbi/modern_treasury/models/expected_payment.rbi +136 -0
  74. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +136 -0
  75. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +136 -0
  76. data/rbi/modern_treasury/models/hold_create_params.rbi +125 -0
  77. data/rbi/modern_treasury/models/hold_create_response.rbi +232 -0
  78. data/rbi/modern_treasury/models/hold_list_params.rbi +150 -0
  79. data/rbi/modern_treasury/models/hold_list_response.rbi +225 -0
  80. data/rbi/modern_treasury/models/hold_retrieve_params.rbi +32 -0
  81. data/rbi/modern_treasury/models/hold_retrieve_response.rbi +234 -0
  82. data/rbi/modern_treasury/models/hold_update_params.rbi +79 -0
  83. data/rbi/modern_treasury/models/hold_update_response.rbi +232 -0
  84. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +25 -0
  85. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +25 -0
  86. data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +25 -0
  87. data/rbi/modern_treasury/models/internal_account.rbi +10 -0
  88. data/rbi/modern_treasury/models/internal_account_request_closure_params.rbi +32 -0
  89. data/rbi/modern_treasury/models/internal_account_update_params.rbi +11 -0
  90. data/rbi/modern_treasury/models/invoice_create_params.rbi +0 -20
  91. data/rbi/modern_treasury/models/invoice_update_params.rbi +0 -20
  92. data/rbi/modern_treasury/models/journal_entry_list_params.rbi +68 -0
  93. data/rbi/modern_treasury/models/journal_entry_retrieve_params.rbi +32 -0
  94. data/rbi/modern_treasury/models/journal_report_list_params.rbi +32 -0
  95. data/rbi/modern_treasury/models/journal_report_retrieve_params.rbi +32 -0
  96. data/rbi/modern_treasury/models/journal_report_update_params.rbi +52 -0
  97. data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
  98. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +13 -0
  99. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
  100. data/rbi/modern_treasury/models/legal_entity.rbi +67 -15
  101. data/rbi/modern_treasury/models/legal_entity_association.rbi +4 -962
  102. data/rbi/modern_treasury/models/legal_entity_association_inline_create.rbi +130 -0
  103. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +61 -134
  104. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +58 -0
  105. data/rbi/modern_treasury/models/payment_order.rbi +22 -2
  106. data/rbi/modern_treasury/models/payment_order_subtype.rbi +0 -1
  107. data/rbi/modern_treasury/models/payment_reference.rbi +22 -2
  108. data/rbi/modern_treasury/models/return_object.rbi +24 -2
  109. data/rbi/modern_treasury/models/transaction.rbi +7 -2
  110. data/rbi/modern_treasury/models.rbi +28 -0
  111. data/rbi/modern_treasury/resources/expected_payments.rbi +44 -0
  112. data/rbi/modern_treasury/resources/holds.rbi +108 -0
  113. data/rbi/modern_treasury/resources/internal_accounts.rbi +17 -0
  114. data/rbi/modern_treasury/resources/invoices.rbi +0 -16
  115. data/rbi/modern_treasury/resources/journal_entries.rbi +46 -0
  116. data/rbi/modern_treasury/resources/journal_reports.rbi +51 -0
  117. data/rbi/modern_treasury/resources/ledger_accounts.rbi +3 -3
  118. data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -2
  119. data/rbi/modern_treasury/resources/legal_entities.rbi +41 -1
  120. data/sig/modern_treasury/client.rbs +6 -0
  121. data/sig/modern_treasury/models/bulk_request_create_params.rbs +84 -0
  122. data/sig/modern_treasury/models/child_legal_entity.rbs +469 -0
  123. data/sig/modern_treasury/models/child_legal_entity_create.rbs +39 -0
  124. data/sig/modern_treasury/models/connection_legal_entity.rbs +4 -1
  125. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +38 -60
  126. data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +4 -1
  127. data/sig/modern_treasury/models/counterparty_create_params.rbs +38 -60
  128. data/sig/modern_treasury/models/expected_payment.rbs +42 -0
  129. data/sig/modern_treasury/models/expected_payment_create_params.rbs +42 -0
  130. data/sig/modern_treasury/models/expected_payment_update_params.rbs +42 -0
  131. data/sig/modern_treasury/models/hold_create_params.rbs +66 -0
  132. data/sig/modern_treasury/models/hold_create_response.rbs +108 -0
  133. data/sig/modern_treasury/models/hold_list_params.rbs +76 -0
  134. data/sig/modern_treasury/models/hold_list_response.rbs +108 -0
  135. data/sig/modern_treasury/models/hold_retrieve_params.rbs +15 -0
  136. data/sig/modern_treasury/models/hold_retrieve_response.rbs +108 -0
  137. data/sig/modern_treasury/models/hold_update_params.rbs +41 -0
  138. data/sig/modern_treasury/models/hold_update_response.rbs +108 -0
  139. data/sig/modern_treasury/models/incoming_payment_detail.rbs +10 -0
  140. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +10 -0
  141. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +10 -0
  142. data/sig/modern_treasury/models/internal_account.rbs +5 -0
  143. data/sig/modern_treasury/models/internal_account_request_closure_params.rbs +15 -0
  144. data/sig/modern_treasury/models/internal_account_update_params.rbs +7 -0
  145. data/sig/modern_treasury/models/invoice_create_params.rbs +0 -10
  146. data/sig/modern_treasury/models/invoice_update_params.rbs +0 -10
  147. data/sig/modern_treasury/models/journal_entry_list_params.rbs +36 -0
  148. data/sig/modern_treasury/models/journal_entry_retrieve_params.rbs +15 -0
  149. data/sig/modern_treasury/models/journal_report_list_params.rbs +15 -0
  150. data/sig/modern_treasury/models/journal_report_retrieve_params.rbs +15 -0
  151. data/sig/modern_treasury/models/journal_report_update_params.rbs +32 -0
  152. data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
  153. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +7 -0
  154. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
  155. data/sig/modern_treasury/models/legal_entity.rbs +38 -8
  156. data/sig/modern_treasury/models/legal_entity_association.rbs +4 -435
  157. data/sig/modern_treasury/models/legal_entity_association_inline_create.rbs +59 -0
  158. data/sig/modern_treasury/models/legal_entity_create_params.rbs +38 -60
  159. data/sig/modern_treasury/models/legal_entity_update_params.rbs +34 -0
  160. data/sig/modern_treasury/models/payment_order.rbs +10 -2
  161. data/sig/modern_treasury/models/payment_order_subtype.rbs +0 -2
  162. data/sig/modern_treasury/models/payment_reference.rbs +10 -2
  163. data/sig/modern_treasury/models/return_object.rbs +12 -2
  164. data/sig/modern_treasury/models/transaction.rbs +4 -2
  165. data/sig/modern_treasury/models.rbs +24 -0
  166. data/sig/modern_treasury/resources/expected_payments.rbs +8 -0
  167. data/sig/modern_treasury/resources/holds.rbs +38 -0
  168. data/sig/modern_treasury/resources/internal_accounts.rbs +6 -0
  169. data/sig/modern_treasury/resources/invoices.rbs +0 -4
  170. data/sig/modern_treasury/resources/journal_entries.rbs +19 -0
  171. data/sig/modern_treasury/resources/journal_reports.rbs +21 -0
  172. data/sig/modern_treasury/resources/legal_entities.rbs +13 -1
  173. metadata +59 -2
@@ -42,26 +42,32 @@ module ModernTreasury
42
42
  {
43
43
  addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
44
44
  bank_settings: ModernTreasury::LegalEntityBankSettings?,
45
+ business_description: String?,
45
46
  business_name: String?,
46
47
  citizenship_country: String?,
47
48
  compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
49
+ country_of_incorporation: String?,
48
50
  date_formed: Date?,
49
51
  date_of_birth: Date?,
50
52
  doing_business_as_names: ::Array[String],
51
53
  email: String?,
54
+ expected_activity_volume: Integer?,
52
55
  first_name: String?,
53
56
  identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
54
57
  industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
58
+ intended_use: String?,
55
59
  last_name: String?,
56
- legal_entity_associations: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation]?,
60
+ legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociationInlineCreate]?,
57
61
  legal_entity_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::legal_entity_type,
58
62
  legal_structure: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::legal_structure?,
59
63
  metadata: ::Hash[Symbol, String],
60
64
  middle_name: String?,
65
+ operating_jurisdictions: ::Array[String],
61
66
  phone_numbers: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::PhoneNumber],
62
67
  politically_exposed_person: bool?,
63
68
  preferred_name: String?,
64
69
  prefix: String?,
70
+ primary_social_media_sites: ::Array[String],
65
71
  risk_rating: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::risk_rating?,
66
72
  suffix: String?,
67
73
  wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
@@ -77,12 +83,16 @@ module ModernTreasury
77
83
 
78
84
  attr_accessor bank_settings: ModernTreasury::LegalEntityBankSettings?
79
85
 
86
+ attr_accessor business_description: String?
87
+
80
88
  attr_accessor business_name: String?
81
89
 
82
90
  attr_accessor citizenship_country: String?
83
91
 
84
92
  attr_accessor compliance_details: ModernTreasury::LegalEntityComplianceDetail?
85
93
 
94
+ attr_accessor country_of_incorporation: String?
95
+
86
96
  attr_accessor date_formed: Date?
87
97
 
88
98
  attr_accessor date_of_birth: Date?
@@ -93,6 +103,8 @@ module ModernTreasury
93
103
 
94
104
  attr_accessor email: String?
95
105
 
106
+ attr_accessor expected_activity_volume: Integer?
107
+
96
108
  attr_accessor first_name: String?
97
109
 
98
110
  attr_reader identifications: ::Array[ModernTreasury::IdentificationCreateRequest]?
@@ -107,9 +119,11 @@ module ModernTreasury
107
119
  ::Array[ModernTreasury::LegalEntityIndustryClassification]
108
120
  ) -> ::Array[ModernTreasury::LegalEntityIndustryClassification]
109
121
 
122
+ attr_accessor intended_use: String?
123
+
110
124
  attr_accessor last_name: String?
111
125
 
112
- attr_accessor legal_entity_associations: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation]?
126
+ attr_accessor legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociationInlineCreate]?
113
127
 
114
128
  attr_reader legal_entity_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::legal_entity_type?
115
129
 
@@ -125,6 +139,10 @@ module ModernTreasury
125
139
 
126
140
  attr_accessor middle_name: String?
127
141
 
142
+ attr_reader operating_jurisdictions: ::Array[String]?
143
+
144
+ def operating_jurisdictions=: (::Array[String]) -> ::Array[String]
145
+
128
146
  attr_reader phone_numbers: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::PhoneNumber]?
129
147
 
130
148
  def phone_numbers=: (
@@ -137,6 +155,10 @@ module ModernTreasury
137
155
 
138
156
  attr_accessor prefix: String?
139
157
 
158
+ attr_reader primary_social_media_sites: ::Array[String]?
159
+
160
+ def primary_social_media_sites=: (::Array[String]) -> ::Array[String]
161
+
140
162
  attr_accessor risk_rating: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::risk_rating?
141
163
 
142
164
  attr_accessor suffix: String?
@@ -148,26 +170,32 @@ module ModernTreasury
148
170
  def initialize: (
149
171
  ?addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
150
172
  ?bank_settings: ModernTreasury::LegalEntityBankSettings?,
173
+ ?business_description: String?,
151
174
  ?business_name: String?,
152
175
  ?citizenship_country: String?,
153
176
  ?compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
177
+ ?country_of_incorporation: String?,
154
178
  ?date_formed: Date?,
155
179
  ?date_of_birth: Date?,
156
180
  ?doing_business_as_names: ::Array[String],
157
181
  ?email: String?,
182
+ ?expected_activity_volume: Integer?,
158
183
  ?first_name: String?,
159
184
  ?identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
160
185
  ?industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
186
+ ?intended_use: String?,
161
187
  ?last_name: String?,
162
- ?legal_entity_associations: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation]?,
188
+ ?legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociationInlineCreate]?,
163
189
  ?legal_entity_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::legal_entity_type,
164
190
  ?legal_structure: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::legal_structure?,
165
191
  ?metadata: ::Hash[Symbol, String],
166
192
  ?middle_name: String?,
193
+ ?operating_jurisdictions: ::Array[String],
167
194
  ?phone_numbers: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::PhoneNumber],
168
195
  ?politically_exposed_person: bool?,
169
196
  ?preferred_name: String?,
170
197
  ?prefix: String?,
198
+ ?primary_social_media_sites: ::Array[String],
171
199
  ?risk_rating: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::risk_rating?,
172
200
  ?suffix: String?,
173
201
  ?wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
@@ -177,88 +205,38 @@ module ModernTreasury
177
205
  def to_hash: -> {
178
206
  addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
179
207
  bank_settings: ModernTreasury::LegalEntityBankSettings?,
208
+ business_description: String?,
180
209
  business_name: String?,
181
210
  citizenship_country: String?,
182
211
  compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
212
+ country_of_incorporation: String?,
183
213
  date_formed: Date?,
184
214
  date_of_birth: Date?,
185
215
  doing_business_as_names: ::Array[String],
186
216
  email: String?,
217
+ expected_activity_volume: Integer?,
187
218
  first_name: String?,
188
219
  identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
189
220
  industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
221
+ intended_use: String?,
190
222
  last_name: String?,
191
- legal_entity_associations: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation]?,
223
+ legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociationInlineCreate]?,
192
224
  legal_entity_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::legal_entity_type,
193
225
  legal_structure: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::legal_structure?,
194
226
  metadata: ::Hash[Symbol, String],
195
227
  middle_name: String?,
228
+ operating_jurisdictions: ::Array[String],
196
229
  phone_numbers: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::PhoneNumber],
197
230
  politically_exposed_person: bool?,
198
231
  preferred_name: String?,
199
232
  prefix: String?,
233
+ primary_social_media_sites: ::Array[String],
200
234
  risk_rating: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::risk_rating?,
201
235
  suffix: String?,
202
236
  wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
203
237
  website: String?
204
238
  }
205
239
 
206
- type legal_entity_association =
207
- {
208
- relationship_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
209
- child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
210
- child_legal_entity_id: String,
211
- ownership_percentage: Integer?,
212
- title: String?
213
- }
214
-
215
- class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
216
- attr_accessor relationship_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::relationship_type]
217
-
218
- attr_reader child_legal_entity: ModernTreasury::ChildLegalEntityCreate?
219
-
220
- def child_legal_entity=: (
221
- ModernTreasury::ChildLegalEntityCreate
222
- ) -> ModernTreasury::ChildLegalEntityCreate
223
-
224
- attr_reader child_legal_entity_id: String?
225
-
226
- def child_legal_entity_id=: (String) -> String
227
-
228
- attr_accessor ownership_percentage: Integer?
229
-
230
- attr_accessor title: String?
231
-
232
- def initialize: (
233
- relationship_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
234
- ?child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
235
- ?child_legal_entity_id: String,
236
- ?ownership_percentage: Integer?,
237
- ?title: String?
238
- ) -> void
239
-
240
- def to_hash: -> {
241
- relationship_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
242
- child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
243
- child_legal_entity_id: String,
244
- ownership_percentage: Integer?,
245
- title: String?
246
- }
247
-
248
- type relationship_type =
249
- :authorized_signer | :beneficial_owner | :control_person
250
-
251
- module RelationshipType
252
- extend ModernTreasury::Internal::Type::Enum
253
-
254
- AUTHORIZED_SIGNER: :authorized_signer
255
- BENEFICIAL_OWNER: :beneficial_owner
256
- CONTROL_PERSON: :control_person
257
-
258
- def self?.values: -> ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::relationship_type]
259
- end
260
- end
261
-
262
240
  type legal_entity_type = :business | :individual
263
241
 
264
242
  module LegalEntityType
@@ -52,15 +52,18 @@ module ModernTreasury
52
52
  request_options: ModernTreasury::RequestOptions
53
53
  }
54
54
 
55
- type status = :completed | :denied | :failed | :processing
55
+ type status =
56
+ :closed | :completed | :denied | :failed | :processing | :suspended
56
57
 
57
58
  module Status
58
59
  extend ModernTreasury::Internal::Type::Enum
59
60
 
61
+ CLOSED: :closed
60
62
  COMPLETED: :completed
61
63
  DENIED: :denied
62
64
  FAILED: :failed
63
65
  PROCESSING: :processing
66
+ SUSPENDED: :suspended
64
67
 
65
68
  def self?.values: -> ::Array[ModernTreasury::Models::ConnectionLegalEntityListParams::status]
66
69
  end
@@ -495,25 +495,31 @@ module ModernTreasury
495
495
  legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_entity_type,
496
496
  addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
497
497
  bank_settings: ModernTreasury::LegalEntityBankSettings?,
498
+ business_description: String?,
498
499
  business_name: String?,
499
500
  citizenship_country: String?,
500
501
  compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
502
+ country_of_incorporation: String?,
501
503
  date_formed: Date?,
502
504
  date_of_birth: Date?,
503
505
  doing_business_as_names: ::Array[String],
504
506
  email: String?,
507
+ expected_activity_volume: Integer?,
505
508
  first_name: String?,
506
509
  identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
507
510
  industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
511
+ intended_use: String?,
508
512
  last_name: String?,
509
- legal_entity_associations: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation]?,
513
+ legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociationInlineCreate]?,
510
514
  legal_structure: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_structure?,
511
515
  metadata: ::Hash[Symbol, String],
512
516
  middle_name: String?,
517
+ operating_jurisdictions: ::Array[String],
513
518
  phone_numbers: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber],
514
519
  politically_exposed_person: bool?,
515
520
  preferred_name: String?,
516
521
  prefix: String?,
522
+ primary_social_media_sites: ::Array[String],
517
523
  risk_rating: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::risk_rating?,
518
524
  suffix: String?,
519
525
  wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
@@ -531,12 +537,16 @@ module ModernTreasury
531
537
 
532
538
  attr_accessor bank_settings: ModernTreasury::LegalEntityBankSettings?
533
539
 
540
+ attr_accessor business_description: String?
541
+
534
542
  attr_accessor business_name: String?
535
543
 
536
544
  attr_accessor citizenship_country: String?
537
545
 
538
546
  attr_accessor compliance_details: ModernTreasury::LegalEntityComplianceDetail?
539
547
 
548
+ attr_accessor country_of_incorporation: String?
549
+
540
550
  attr_accessor date_formed: Date?
541
551
 
542
552
  attr_accessor date_of_birth: Date?
@@ -547,6 +557,8 @@ module ModernTreasury
547
557
 
548
558
  attr_accessor email: String?
549
559
 
560
+ attr_accessor expected_activity_volume: Integer?
561
+
550
562
  attr_accessor first_name: String?
551
563
 
552
564
  attr_reader identifications: ::Array[ModernTreasury::IdentificationCreateRequest]?
@@ -561,9 +573,11 @@ module ModernTreasury
561
573
  ::Array[ModernTreasury::LegalEntityIndustryClassification]
562
574
  ) -> ::Array[ModernTreasury::LegalEntityIndustryClassification]
563
575
 
576
+ attr_accessor intended_use: String?
577
+
564
578
  attr_accessor last_name: String?
565
579
 
566
- attr_accessor legal_entity_associations: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation]?
580
+ attr_accessor legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociationInlineCreate]?
567
581
 
568
582
  attr_accessor legal_structure: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_structure?
569
583
 
@@ -573,6 +587,10 @@ module ModernTreasury
573
587
 
574
588
  attr_accessor middle_name: String?
575
589
 
590
+ attr_reader operating_jurisdictions: ::Array[String]?
591
+
592
+ def operating_jurisdictions=: (::Array[String]) -> ::Array[String]
593
+
576
594
  attr_reader phone_numbers: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber]?
577
595
 
578
596
  def phone_numbers=: (
@@ -585,6 +603,10 @@ module ModernTreasury
585
603
 
586
604
  attr_accessor prefix: String?
587
605
 
606
+ attr_reader primary_social_media_sites: ::Array[String]?
607
+
608
+ def primary_social_media_sites=: (::Array[String]) -> ::Array[String]
609
+
588
610
  attr_accessor risk_rating: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::risk_rating?
589
611
 
590
612
  attr_accessor suffix: String?
@@ -597,25 +619,31 @@ module ModernTreasury
597
619
  legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_entity_type,
598
620
  ?addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
599
621
  ?bank_settings: ModernTreasury::LegalEntityBankSettings?,
622
+ ?business_description: String?,
600
623
  ?business_name: String?,
601
624
  ?citizenship_country: String?,
602
625
  ?compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
626
+ ?country_of_incorporation: String?,
603
627
  ?date_formed: Date?,
604
628
  ?date_of_birth: Date?,
605
629
  ?doing_business_as_names: ::Array[String],
606
630
  ?email: String?,
631
+ ?expected_activity_volume: Integer?,
607
632
  ?first_name: String?,
608
633
  ?identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
609
634
  ?industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
635
+ ?intended_use: String?,
610
636
  ?last_name: String?,
611
- ?legal_entity_associations: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation]?,
637
+ ?legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociationInlineCreate]?,
612
638
  ?legal_structure: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_structure?,
613
639
  ?metadata: ::Hash[Symbol, String],
614
640
  ?middle_name: String?,
641
+ ?operating_jurisdictions: ::Array[String],
615
642
  ?phone_numbers: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber],
616
643
  ?politically_exposed_person: bool?,
617
644
  ?preferred_name: String?,
618
645
  ?prefix: String?,
646
+ ?primary_social_media_sites: ::Array[String],
619
647
  ?risk_rating: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::risk_rating?,
620
648
  ?suffix: String?,
621
649
  ?wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
@@ -626,25 +654,31 @@ module ModernTreasury
626
654
  legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_entity_type,
627
655
  addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
628
656
  bank_settings: ModernTreasury::LegalEntityBankSettings?,
657
+ business_description: String?,
629
658
  business_name: String?,
630
659
  citizenship_country: String?,
631
660
  compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
661
+ country_of_incorporation: String?,
632
662
  date_formed: Date?,
633
663
  date_of_birth: Date?,
634
664
  doing_business_as_names: ::Array[String],
635
665
  email: String?,
666
+ expected_activity_volume: Integer?,
636
667
  first_name: String?,
637
668
  identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
638
669
  industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
670
+ intended_use: String?,
639
671
  last_name: String?,
640
- legal_entity_associations: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation]?,
672
+ legal_entity_associations: ::Array[ModernTreasury::LegalEntityAssociationInlineCreate]?,
641
673
  legal_structure: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_structure?,
642
674
  metadata: ::Hash[Symbol, String],
643
675
  middle_name: String?,
676
+ operating_jurisdictions: ::Array[String],
644
677
  phone_numbers: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber],
645
678
  politically_exposed_person: bool?,
646
679
  preferred_name: String?,
647
680
  prefix: String?,
681
+ primary_social_media_sites: ::Array[String],
648
682
  risk_rating: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::risk_rating?,
649
683
  suffix: String?,
650
684
  wealth_and_employment_details: ModernTreasury::LegalEntityWealthEmploymentDetail?,
@@ -662,62 +696,6 @@ module ModernTreasury
662
696
  def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_entity_type]
663
697
  end
664
698
 
665
- type legal_entity_association =
666
- {
667
- relationship_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
668
- child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
669
- child_legal_entity_id: String,
670
- ownership_percentage: Integer?,
671
- title: String?
672
- }
673
-
674
- class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
675
- attr_accessor relationship_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::relationship_type]
676
-
677
- attr_reader child_legal_entity: ModernTreasury::ChildLegalEntityCreate?
678
-
679
- def child_legal_entity=: (
680
- ModernTreasury::ChildLegalEntityCreate
681
- ) -> ModernTreasury::ChildLegalEntityCreate
682
-
683
- attr_reader child_legal_entity_id: String?
684
-
685
- def child_legal_entity_id=: (String) -> String
686
-
687
- attr_accessor ownership_percentage: Integer?
688
-
689
- attr_accessor title: String?
690
-
691
- def initialize: (
692
- relationship_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
693
- ?child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
694
- ?child_legal_entity_id: String,
695
- ?ownership_percentage: Integer?,
696
- ?title: String?
697
- ) -> void
698
-
699
- def to_hash: -> {
700
- relationship_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
701
- child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
702
- child_legal_entity_id: String,
703
- ownership_percentage: Integer?,
704
- title: String?
705
- }
706
-
707
- type relationship_type =
708
- :authorized_signer | :beneficial_owner | :control_person
709
-
710
- module RelationshipType
711
- extend ModernTreasury::Internal::Type::Enum
712
-
713
- AUTHORIZED_SIGNER: :authorized_signer
714
- BENEFICIAL_OWNER: :beneficial_owner
715
- CONTROL_PERSON: :control_person
716
-
717
- def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::relationship_type]
718
- end
719
- end
720
-
721
699
  type legal_structure =
722
700
  :corporation
723
701
  | :llc
@@ -4,6 +4,10 @@ module ModernTreasury
4
4
  {
5
5
  id: String,
6
6
  amount_lower_bound: Integer?,
7
+ amount_reconciled: Integer?,
8
+ amount_reconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_reconciled_direction?,
9
+ amount_unreconciled: Integer?,
10
+ amount_unreconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_unreconciled_direction?,
7
11
  amount_upper_bound: Integer?,
8
12
  counterparty_id: String?,
9
13
  created_at: Time,
@@ -36,6 +40,14 @@ module ModernTreasury
36
40
 
37
41
  attr_accessor amount_lower_bound: Integer?
38
42
 
43
+ attr_accessor amount_reconciled: Integer?
44
+
45
+ attr_accessor amount_reconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_reconciled_direction?
46
+
47
+ attr_accessor amount_unreconciled: Integer?
48
+
49
+ attr_accessor amount_unreconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_unreconciled_direction?
50
+
39
51
  attr_accessor amount_upper_bound: Integer?
40
52
 
41
53
  attr_accessor counterparty_id: String?
@@ -89,6 +101,10 @@ module ModernTreasury
89
101
  def initialize: (
90
102
  id: String,
91
103
  amount_lower_bound: Integer?,
104
+ amount_reconciled: Integer?,
105
+ amount_reconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_reconciled_direction?,
106
+ amount_unreconciled: Integer?,
107
+ amount_unreconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_unreconciled_direction?,
92
108
  amount_upper_bound: Integer?,
93
109
  counterparty_id: String?,
94
110
  created_at: Time,
@@ -119,6 +135,10 @@ module ModernTreasury
119
135
  def to_hash: -> {
120
136
  id: String,
121
137
  amount_lower_bound: Integer?,
138
+ amount_reconciled: Integer?,
139
+ amount_reconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_reconciled_direction?,
140
+ amount_unreconciled: Integer?,
141
+ amount_unreconciled_direction: ModernTreasury::Models::ExpectedPayment::amount_unreconciled_direction?,
122
142
  amount_upper_bound: Integer?,
123
143
  counterparty_id: String?,
124
144
  created_at: Time,
@@ -146,6 +166,28 @@ module ModernTreasury
146
166
  updated_at: Time
147
167
  }
148
168
 
169
+ type amount_reconciled_direction = :credit | :debit
170
+
171
+ module AmountReconciledDirection
172
+ extend ModernTreasury::Internal::Type::Enum
173
+
174
+ CREDIT: :credit
175
+ DEBIT: :debit
176
+
177
+ def self?.values: -> ::Array[ModernTreasury::Models::ExpectedPayment::amount_reconciled_direction]
178
+ end
179
+
180
+ type amount_unreconciled_direction = :credit | :debit
181
+
182
+ module AmountUnreconciledDirection
183
+ extend ModernTreasury::Internal::Type::Enum
184
+
185
+ CREDIT: :credit
186
+ DEBIT: :debit
187
+
188
+ def self?.values: -> ::Array[ModernTreasury::Models::ExpectedPayment::amount_unreconciled_direction]
189
+ end
190
+
149
191
  type direction = :credit | :debit
150
192
 
151
193
  module Direction
@@ -3,6 +3,10 @@ module ModernTreasury
3
3
  type expected_payment_create_params =
4
4
  {
5
5
  amount_lower_bound: Integer?,
6
+ amount_reconciled: Integer?,
7
+ amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_reconciled_direction?,
8
+ amount_unreconciled: Integer?,
9
+ amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_unreconciled_direction?,
6
10
  amount_upper_bound: Integer?,
7
11
  counterparty_id: String?,
8
12
  currency: ModernTreasury::Models::currency?,
@@ -31,6 +35,14 @@ module ModernTreasury
31
35
 
32
36
  attr_accessor amount_lower_bound: Integer?
33
37
 
38
+ attr_accessor amount_reconciled: Integer?
39
+
40
+ attr_accessor amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_reconciled_direction?
41
+
42
+ attr_accessor amount_unreconciled: Integer?
43
+
44
+ attr_accessor amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_unreconciled_direction?
45
+
34
46
  attr_accessor amount_upper_bound: Integer?
35
47
 
36
48
  attr_accessor counterparty_id: String?
@@ -83,6 +95,10 @@ module ModernTreasury
83
95
 
84
96
  def initialize: (
85
97
  ?amount_lower_bound: Integer?,
98
+ ?amount_reconciled: Integer?,
99
+ ?amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_reconciled_direction?,
100
+ ?amount_unreconciled: Integer?,
101
+ ?amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_unreconciled_direction?,
86
102
  ?amount_upper_bound: Integer?,
87
103
  ?counterparty_id: String?,
88
104
  ?currency: ModernTreasury::Models::currency?,
@@ -107,6 +123,10 @@ module ModernTreasury
107
123
 
108
124
  def to_hash: -> {
109
125
  amount_lower_bound: Integer?,
126
+ amount_reconciled: Integer?,
127
+ amount_reconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_reconciled_direction?,
128
+ amount_unreconciled: Integer?,
129
+ amount_unreconciled_direction: ModernTreasury::Models::ExpectedPaymentCreateParams::amount_unreconciled_direction?,
110
130
  amount_upper_bound: Integer?,
111
131
  counterparty_id: String?,
112
132
  currency: ModernTreasury::Models::currency?,
@@ -129,6 +149,28 @@ module ModernTreasury
129
149
  request_options: ModernTreasury::RequestOptions
130
150
  }
131
151
 
152
+ type amount_reconciled_direction = :credit | :debit
153
+
154
+ module AmountReconciledDirection
155
+ extend ModernTreasury::Internal::Type::Enum
156
+
157
+ CREDIT: :credit
158
+ DEBIT: :debit
159
+
160
+ def self?.values: -> ::Array[ModernTreasury::Models::ExpectedPaymentCreateParams::amount_reconciled_direction]
161
+ end
162
+
163
+ type amount_unreconciled_direction = :credit | :debit
164
+
165
+ module AmountUnreconciledDirection
166
+ extend ModernTreasury::Internal::Type::Enum
167
+
168
+ CREDIT: :credit
169
+ DEBIT: :debit
170
+
171
+ def self?.values: -> ::Array[ModernTreasury::Models::ExpectedPaymentCreateParams::amount_unreconciled_direction]
172
+ end
173
+
132
174
  type direction = :credit | :debit
133
175
 
134
176
  module Direction