modern_treasury 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -0
- data/README.md +10 -1
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/modern_treasury/internal/util.rb +7 -2
- data/lib/modern_treasury/models/bulk_request_create_params.rb +146 -2
- data/lib/modern_treasury/models/child_legal_entity.rb +609 -0
- data/lib/modern_treasury/models/child_legal_entity_create.rb +63 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +2 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +54 -63
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -0
- data/lib/modern_treasury/models/counterparty_create_params.rb +54 -59
- data/lib/modern_treasury/models/expected_payment.rb +69 -1
- data/lib/modern_treasury/models/expected_payment_create_params.rb +65 -1
- data/lib/modern_treasury/models/expected_payment_update_params.rb +65 -1
- data/lib/modern_treasury/models/incoming_payment_detail.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +5 -0
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +5 -0
- data/lib/modern_treasury/models/internal_account.rb +10 -1
- data/lib/modern_treasury/models/internal_account_update_params.rb +9 -1
- data/lib/modern_treasury/models/invoice.rb +2 -0
- data/lib/modern_treasury/models/invoice_create_params.rb +1 -19
- data/lib/modern_treasury/models/invoice_update_params.rb +1 -19
- data/lib/modern_treasury/models/ledger_entry.rb +10 -1
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +10 -1
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +61 -11
- data/lib/modern_treasury/models/legal_entity_association.rb +3 -559
- data/lib/modern_treasury/models/legal_entity_association_inline_create.rb +60 -0
- data/lib/modern_treasury/models/legal_entity_create_params.rb +54 -59
- data/lib/modern_treasury/models/legal_entity_update_params.rb +51 -1
- data/lib/modern_treasury/models/payment_order.rb +4 -0
- data/lib/modern_treasury/models/payment_reference.rb +4 -0
- data/lib/modern_treasury/models/return_object.rb +5 -0
- data/lib/modern_treasury/models/transaction.rb +1 -0
- data/lib/modern_treasury/models.rb +4 -0
- data/lib/modern_treasury/resources/expected_payments.rb +18 -2
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/invoices.rb +2 -10
- data/lib/modern_treasury/resources/ledger_accounts.rb +3 -3
- data/lib/modern_treasury/resources/ledger_transactions.rb +5 -2
- data/lib/modern_treasury/resources/legal_entities.rb +27 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +3 -0
- data/manifest.yaml +1 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +272 -0
- data/rbi/modern_treasury/models/child_legal_entity.rbi +969 -0
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +78 -0
- data/rbi/modern_treasury/models/connection_legal_entity.rbi +10 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +10 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +61 -135
- data/rbi/modern_treasury/models/expected_payment.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +136 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +136 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +25 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account.rbi +10 -0
- data/rbi/modern_treasury/models/internal_account_update_params.rbi +11 -0
- data/rbi/modern_treasury/models/invoice_create_params.rbi +0 -20
- data/rbi/modern_treasury/models/invoice_update_params.rbi +0 -20
- data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +13 -0
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +67 -15
- data/rbi/modern_treasury/models/legal_entity_association.rbi +4 -962
- data/rbi/modern_treasury/models/legal_entity_association_inline_create.rbi +130 -0
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +61 -134
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +58 -0
- data/rbi/modern_treasury/models/payment_order.rbi +20 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
- data/rbi/modern_treasury/models/return_object.rbi +22 -0
- data/rbi/modern_treasury/models/transaction.rbi +5 -0
- data/rbi/modern_treasury/models.rbi +5 -0
- data/rbi/modern_treasury/resources/expected_payments.rbi +44 -0
- data/rbi/modern_treasury/resources/internal_accounts.rbi +3 -0
- data/rbi/modern_treasury/resources/invoices.rbi +0 -16
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +3 -3
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -2
- data/rbi/modern_treasury/resources/legal_entities.rbi +41 -1
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +84 -0
- data/sig/modern_treasury/models/child_legal_entity.rbs +469 -0
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +39 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +4 -1
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +4 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +38 -60
- data/sig/modern_treasury/models/expected_payment.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +42 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +42 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +10 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +10 -0
- data/sig/modern_treasury/models/internal_account.rbs +5 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +0 -10
- data/sig/modern_treasury/models/invoice_update_params.rbs +0 -10
- data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +7 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +38 -8
- data/sig/modern_treasury/models/legal_entity_association.rbs +4 -435
- data/sig/modern_treasury/models/legal_entity_association_inline_create.rbs +59 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +38 -60
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +34 -0
- data/sig/modern_treasury/models/payment_order.rbs +8 -0
- data/sig/modern_treasury/models/payment_reference.rbs +8 -0
- data/sig/modern_treasury/models/return_object.rbs +10 -0
- data/sig/modern_treasury/models/transaction.rbs +2 -0
- data/sig/modern_treasury/models.rbs +4 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +8 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/invoices.rbs +0 -4
- data/sig/modern_treasury/resources/legal_entities.rbs +13 -1
- metadata +8 -2
|
@@ -26,6 +26,10 @@ module ModernTreasury
|
|
|
26
26
|
end
|
|
27
27
|
attr_writer :bank_settings
|
|
28
28
|
|
|
29
|
+
# A description of the business.
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
attr_accessor :business_description
|
|
32
|
+
|
|
29
33
|
# The business's legal business name.
|
|
30
34
|
sig { returns(T.nilable(String)) }
|
|
31
35
|
attr_accessor :business_name
|
|
@@ -45,6 +49,11 @@ module ModernTreasury
|
|
|
45
49
|
end
|
|
46
50
|
attr_writer :compliance_details
|
|
47
51
|
|
|
52
|
+
# The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
53
|
+
# alpha-3 formats.
|
|
54
|
+
sig { returns(T.nilable(String)) }
|
|
55
|
+
attr_accessor :country_of_incorporation
|
|
56
|
+
|
|
48
57
|
sig { returns(Time) }
|
|
49
58
|
attr_accessor :created_at
|
|
50
59
|
|
|
@@ -66,6 +75,10 @@ module ModernTreasury
|
|
|
66
75
|
sig { returns(T.nilable(String)) }
|
|
67
76
|
attr_accessor :email
|
|
68
77
|
|
|
78
|
+
# Monthly expected transaction volume in entity's local currency.
|
|
79
|
+
sig { returns(T.nilable(Integer)) }
|
|
80
|
+
attr_accessor :expected_activity_volume
|
|
81
|
+
|
|
69
82
|
# An individual's first name.
|
|
70
83
|
sig { returns(T.nilable(String)) }
|
|
71
84
|
attr_accessor :first_name
|
|
@@ -80,16 +93,14 @@ module ModernTreasury
|
|
|
80
93
|
end
|
|
81
94
|
attr_accessor :industry_classifications
|
|
82
95
|
|
|
96
|
+
# A description of the intended use of the legal entity.
|
|
97
|
+
sig { returns(T.nilable(String)) }
|
|
98
|
+
attr_accessor :intended_use
|
|
99
|
+
|
|
83
100
|
# An individual's last name.
|
|
84
101
|
sig { returns(T.nilable(String)) }
|
|
85
102
|
attr_accessor :last_name
|
|
86
103
|
|
|
87
|
-
# The legal entity associations and its child legal entities.
|
|
88
|
-
sig do
|
|
89
|
-
returns(T.nilable(T::Array[ModernTreasury::LegalEntityAssociation]))
|
|
90
|
-
end
|
|
91
|
-
attr_accessor :legal_entity_associations
|
|
92
|
-
|
|
93
104
|
# The type of legal entity.
|
|
94
105
|
sig do
|
|
95
106
|
returns(ModernTreasury::LegalEntity::LegalEntityType::TaggedSymbol)
|
|
@@ -121,6 +132,11 @@ module ModernTreasury
|
|
|
121
132
|
sig { returns(String) }
|
|
122
133
|
attr_accessor :object
|
|
123
134
|
|
|
135
|
+
# A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
136
|
+
# codes).
|
|
137
|
+
sig { returns(T::Array[String]) }
|
|
138
|
+
attr_accessor :operating_jurisdictions
|
|
139
|
+
|
|
124
140
|
sig { returns(T::Array[ModernTreasury::LegalEntity::PhoneNumber]) }
|
|
125
141
|
attr_accessor :phone_numbers
|
|
126
142
|
|
|
@@ -136,6 +152,10 @@ module ModernTreasury
|
|
|
136
152
|
sig { returns(T.nilable(String)) }
|
|
137
153
|
attr_accessor :prefix
|
|
138
154
|
|
|
155
|
+
# A list of primary social media URLs for the business.
|
|
156
|
+
sig { returns(T::Array[String]) }
|
|
157
|
+
attr_accessor :primary_social_media_sites
|
|
158
|
+
|
|
139
159
|
# The risk rating of the legal entity. One of low, medium, high.
|
|
140
160
|
sig do
|
|
141
161
|
returns(
|
|
@@ -168,30 +188,38 @@ module ModernTreasury
|
|
|
168
188
|
sig { returns(T.nilable(String)) }
|
|
169
189
|
attr_accessor :website
|
|
170
190
|
|
|
191
|
+
# The legal entity associations and its child legal entities.
|
|
192
|
+
sig do
|
|
193
|
+
returns(T.nilable(T::Array[ModernTreasury::LegalEntityAssociation]))
|
|
194
|
+
end
|
|
195
|
+
attr_accessor :legal_entity_associations
|
|
196
|
+
|
|
171
197
|
sig do
|
|
172
198
|
params(
|
|
173
199
|
id: String,
|
|
174
200
|
addresses: T::Array[ModernTreasury::LegalEntity::Address::OrHash],
|
|
175
201
|
bank_settings:
|
|
176
202
|
T.nilable(ModernTreasury::LegalEntityBankSettings::OrHash),
|
|
203
|
+
business_description: T.nilable(String),
|
|
177
204
|
business_name: T.nilable(String),
|
|
178
205
|
citizenship_country: T.nilable(String),
|
|
179
206
|
compliance_details:
|
|
180
207
|
T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash),
|
|
208
|
+
country_of_incorporation: T.nilable(String),
|
|
181
209
|
created_at: Time,
|
|
182
210
|
date_formed: T.nilable(Date),
|
|
183
211
|
date_of_birth: T.nilable(Date),
|
|
184
212
|
discarded_at: T.nilable(Time),
|
|
185
213
|
doing_business_as_names: T::Array[String],
|
|
186
214
|
email: T.nilable(String),
|
|
215
|
+
expected_activity_volume: T.nilable(Integer),
|
|
187
216
|
first_name: T.nilable(String),
|
|
188
217
|
identifications:
|
|
189
218
|
T::Array[ModernTreasury::LegalEntity::Identification::OrHash],
|
|
190
219
|
industry_classifications:
|
|
191
220
|
T::Array[ModernTreasury::LegalEntityIndustryClassification::OrHash],
|
|
221
|
+
intended_use: T.nilable(String),
|
|
192
222
|
last_name: T.nilable(String),
|
|
193
|
-
legal_entity_associations:
|
|
194
|
-
T.nilable(T::Array[ModernTreasury::LegalEntityAssociation::OrHash]),
|
|
195
223
|
legal_entity_type:
|
|
196
224
|
ModernTreasury::LegalEntity::LegalEntityType::OrSymbol,
|
|
197
225
|
legal_structure:
|
|
@@ -200,11 +228,13 @@ module ModernTreasury
|
|
|
200
228
|
metadata: T::Hash[Symbol, String],
|
|
201
229
|
middle_name: T.nilable(String),
|
|
202
230
|
object: String,
|
|
231
|
+
operating_jurisdictions: T::Array[String],
|
|
203
232
|
phone_numbers:
|
|
204
233
|
T::Array[ModernTreasury::LegalEntity::PhoneNumber::OrHash],
|
|
205
234
|
politically_exposed_person: T.nilable(T::Boolean),
|
|
206
235
|
preferred_name: T.nilable(String),
|
|
207
236
|
prefix: T.nilable(String),
|
|
237
|
+
primary_social_media_sites: T::Array[String],
|
|
208
238
|
risk_rating:
|
|
209
239
|
T.nilable(ModernTreasury::LegalEntity::RiskRating::OrSymbol),
|
|
210
240
|
suffix: T.nilable(String),
|
|
@@ -213,7 +243,9 @@ module ModernTreasury
|
|
|
213
243
|
T.nilable(
|
|
214
244
|
ModernTreasury::LegalEntityWealthEmploymentDetail::OrHash
|
|
215
245
|
),
|
|
216
|
-
website: T.nilable(String)
|
|
246
|
+
website: T.nilable(String),
|
|
247
|
+
legal_entity_associations:
|
|
248
|
+
T.nilable(T::Array[ModernTreasury::LegalEntityAssociation::OrHash])
|
|
217
249
|
).returns(T.attached_class)
|
|
218
250
|
end
|
|
219
251
|
def self.new(
|
|
@@ -221,11 +253,16 @@ module ModernTreasury
|
|
|
221
253
|
# A list of addresses for the entity.
|
|
222
254
|
addresses:,
|
|
223
255
|
bank_settings:,
|
|
256
|
+
# A description of the business.
|
|
257
|
+
business_description:,
|
|
224
258
|
# The business's legal business name.
|
|
225
259
|
business_name:,
|
|
226
260
|
# The country of citizenship for an individual.
|
|
227
261
|
citizenship_country:,
|
|
228
262
|
compliance_details:,
|
|
263
|
+
# The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
264
|
+
# alpha-3 formats.
|
|
265
|
+
country_of_incorporation:,
|
|
229
266
|
created_at:,
|
|
230
267
|
# A business's formation date (YYYY-MM-DD).
|
|
231
268
|
date_formed:,
|
|
@@ -235,16 +272,18 @@ module ModernTreasury
|
|
|
235
272
|
doing_business_as_names:,
|
|
236
273
|
# The entity's primary email.
|
|
237
274
|
email:,
|
|
275
|
+
# Monthly expected transaction volume in entity's local currency.
|
|
276
|
+
expected_activity_volume:,
|
|
238
277
|
# An individual's first name.
|
|
239
278
|
first_name:,
|
|
240
279
|
# A list of identifications for the legal entity.
|
|
241
280
|
identifications:,
|
|
242
281
|
# A list of industry classifications for the legal entity.
|
|
243
282
|
industry_classifications:,
|
|
283
|
+
# A description of the intended use of the legal entity.
|
|
284
|
+
intended_use:,
|
|
244
285
|
# An individual's last name.
|
|
245
286
|
last_name:,
|
|
246
|
-
# The legal entity associations and its child legal entities.
|
|
247
|
-
legal_entity_associations:,
|
|
248
287
|
# The type of legal entity.
|
|
249
288
|
legal_entity_type:,
|
|
250
289
|
# The business's legal structure.
|
|
@@ -258,6 +297,9 @@ module ModernTreasury
|
|
|
258
297
|
# An individual's middle name.
|
|
259
298
|
middle_name:,
|
|
260
299
|
object:,
|
|
300
|
+
# A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
301
|
+
# codes).
|
|
302
|
+
operating_jurisdictions:,
|
|
261
303
|
phone_numbers:,
|
|
262
304
|
# Whether the individual is a politically exposed person.
|
|
263
305
|
politically_exposed_person:,
|
|
@@ -265,6 +307,8 @@ module ModernTreasury
|
|
|
265
307
|
preferred_name:,
|
|
266
308
|
# An individual's prefix.
|
|
267
309
|
prefix:,
|
|
310
|
+
# A list of primary social media URLs for the business.
|
|
311
|
+
primary_social_media_sites:,
|
|
268
312
|
# The risk rating of the legal entity. One of low, medium, high.
|
|
269
313
|
risk_rating:,
|
|
270
314
|
# An individual's suffix.
|
|
@@ -272,7 +316,9 @@ module ModernTreasury
|
|
|
272
316
|
updated_at:,
|
|
273
317
|
wealth_and_employment_details:,
|
|
274
318
|
# The entity's primary website URL.
|
|
275
|
-
website
|
|
319
|
+
website:,
|
|
320
|
+
# The legal entity associations and its child legal entities.
|
|
321
|
+
legal_entity_associations: nil
|
|
276
322
|
)
|
|
277
323
|
end
|
|
278
324
|
|
|
@@ -282,24 +328,26 @@ module ModernTreasury
|
|
|
282
328
|
id: String,
|
|
283
329
|
addresses: T::Array[ModernTreasury::LegalEntity::Address],
|
|
284
330
|
bank_settings: T.nilable(ModernTreasury::LegalEntityBankSettings),
|
|
331
|
+
business_description: T.nilable(String),
|
|
285
332
|
business_name: T.nilable(String),
|
|
286
333
|
citizenship_country: T.nilable(String),
|
|
287
334
|
compliance_details:
|
|
288
335
|
T.nilable(ModernTreasury::LegalEntityComplianceDetail),
|
|
336
|
+
country_of_incorporation: T.nilable(String),
|
|
289
337
|
created_at: Time,
|
|
290
338
|
date_formed: T.nilable(Date),
|
|
291
339
|
date_of_birth: T.nilable(Date),
|
|
292
340
|
discarded_at: T.nilable(Time),
|
|
293
341
|
doing_business_as_names: T::Array[String],
|
|
294
342
|
email: T.nilable(String),
|
|
343
|
+
expected_activity_volume: T.nilable(Integer),
|
|
295
344
|
first_name: T.nilable(String),
|
|
296
345
|
identifications:
|
|
297
346
|
T::Array[ModernTreasury::LegalEntity::Identification],
|
|
298
347
|
industry_classifications:
|
|
299
348
|
T::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
349
|
+
intended_use: T.nilable(String),
|
|
300
350
|
last_name: T.nilable(String),
|
|
301
|
-
legal_entity_associations:
|
|
302
|
-
T.nilable(T::Array[ModernTreasury::LegalEntityAssociation]),
|
|
303
351
|
legal_entity_type:
|
|
304
352
|
ModernTreasury::LegalEntity::LegalEntityType::TaggedSymbol,
|
|
305
353
|
legal_structure:
|
|
@@ -310,17 +358,21 @@ module ModernTreasury
|
|
|
310
358
|
metadata: T::Hash[Symbol, String],
|
|
311
359
|
middle_name: T.nilable(String),
|
|
312
360
|
object: String,
|
|
361
|
+
operating_jurisdictions: T::Array[String],
|
|
313
362
|
phone_numbers: T::Array[ModernTreasury::LegalEntity::PhoneNumber],
|
|
314
363
|
politically_exposed_person: T.nilable(T::Boolean),
|
|
315
364
|
preferred_name: T.nilable(String),
|
|
316
365
|
prefix: T.nilable(String),
|
|
366
|
+
primary_social_media_sites: T::Array[String],
|
|
317
367
|
risk_rating:
|
|
318
368
|
T.nilable(ModernTreasury::LegalEntity::RiskRating::TaggedSymbol),
|
|
319
369
|
suffix: T.nilable(String),
|
|
320
370
|
updated_at: Time,
|
|
321
371
|
wealth_and_employment_details:
|
|
322
372
|
T.nilable(ModernTreasury::LegalEntityWealthEmploymentDetail),
|
|
323
|
-
website: T.nilable(String)
|
|
373
|
+
website: T.nilable(String),
|
|
374
|
+
legal_entity_associations:
|
|
375
|
+
T.nilable(T::Array[ModernTreasury::LegalEntityAssociation])
|
|
324
376
|
}
|
|
325
377
|
)
|
|
326
378
|
end
|