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
|
@@ -20,6 +20,12 @@ module ModernTreasury
|
|
|
20
20
|
# @return [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
21
21
|
required :bank_settings, -> { ModernTreasury::LegalEntityBankSettings }, nil?: true
|
|
22
22
|
|
|
23
|
+
# @!attribute business_description
|
|
24
|
+
# A description of the business.
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
required :business_description, String, nil?: true
|
|
28
|
+
|
|
23
29
|
# @!attribute business_name
|
|
24
30
|
# The business's legal business name.
|
|
25
31
|
#
|
|
@@ -37,6 +43,13 @@ module ModernTreasury
|
|
|
37
43
|
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
|
38
44
|
required :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
|
39
45
|
|
|
46
|
+
# @!attribute country_of_incorporation
|
|
47
|
+
# The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
48
|
+
# alpha-3 formats.
|
|
49
|
+
#
|
|
50
|
+
# @return [String, nil]
|
|
51
|
+
required :country_of_incorporation, String, nil?: true
|
|
52
|
+
|
|
40
53
|
# @!attribute created_at
|
|
41
54
|
#
|
|
42
55
|
# @return [Time]
|
|
@@ -70,6 +83,12 @@ module ModernTreasury
|
|
|
70
83
|
# @return [String, nil]
|
|
71
84
|
required :email, String, nil?: true
|
|
72
85
|
|
|
86
|
+
# @!attribute expected_activity_volume
|
|
87
|
+
# Monthly expected transaction volume in entity's local currency.
|
|
88
|
+
#
|
|
89
|
+
# @return [Integer, nil]
|
|
90
|
+
required :expected_activity_volume, Integer, nil?: true
|
|
91
|
+
|
|
73
92
|
# @!attribute first_name
|
|
74
93
|
# An individual's first name.
|
|
75
94
|
#
|
|
@@ -90,20 +109,18 @@ module ModernTreasury
|
|
|
90
109
|
required :industry_classifications,
|
|
91
110
|
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification] }
|
|
92
111
|
|
|
112
|
+
# @!attribute intended_use
|
|
113
|
+
# A description of the intended use of the legal entity.
|
|
114
|
+
#
|
|
115
|
+
# @return [String, nil]
|
|
116
|
+
required :intended_use, String, nil?: true
|
|
117
|
+
|
|
93
118
|
# @!attribute last_name
|
|
94
119
|
# An individual's last name.
|
|
95
120
|
#
|
|
96
121
|
# @return [String, nil]
|
|
97
122
|
required :last_name, String, nil?: true
|
|
98
123
|
|
|
99
|
-
# @!attribute legal_entity_associations
|
|
100
|
-
# The legal entity associations and its child legal entities.
|
|
101
|
-
#
|
|
102
|
-
# @return [Array<ModernTreasury::Models::LegalEntityAssociation>, nil]
|
|
103
|
-
required :legal_entity_associations,
|
|
104
|
-
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation] },
|
|
105
|
-
nil?: true
|
|
106
|
-
|
|
107
124
|
# @!attribute legal_entity_type
|
|
108
125
|
# The type of legal entity.
|
|
109
126
|
#
|
|
@@ -141,6 +158,13 @@ module ModernTreasury
|
|
|
141
158
|
# @return [String]
|
|
142
159
|
required :object, String
|
|
143
160
|
|
|
161
|
+
# @!attribute operating_jurisdictions
|
|
162
|
+
# A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
163
|
+
# codes).
|
|
164
|
+
#
|
|
165
|
+
# @return [Array<String>]
|
|
166
|
+
required :operating_jurisdictions, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
167
|
+
|
|
144
168
|
# @!attribute phone_numbers
|
|
145
169
|
#
|
|
146
170
|
# @return [Array<ModernTreasury::Models::LegalEntity::PhoneNumber>]
|
|
@@ -165,6 +189,12 @@ module ModernTreasury
|
|
|
165
189
|
# @return [String, nil]
|
|
166
190
|
required :prefix, String, nil?: true
|
|
167
191
|
|
|
192
|
+
# @!attribute primary_social_media_sites
|
|
193
|
+
# A list of primary social media URLs for the business.
|
|
194
|
+
#
|
|
195
|
+
# @return [Array<String>]
|
|
196
|
+
required :primary_social_media_sites, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
197
|
+
|
|
168
198
|
# @!attribute risk_rating
|
|
169
199
|
# The risk rating of the legal entity. One of low, medium, high.
|
|
170
200
|
#
|
|
@@ -195,7 +225,15 @@ module ModernTreasury
|
|
|
195
225
|
# @return [String, nil]
|
|
196
226
|
required :website, String, nil?: true
|
|
197
227
|
|
|
198
|
-
# @!
|
|
228
|
+
# @!attribute legal_entity_associations
|
|
229
|
+
# The legal entity associations and its child legal entities.
|
|
230
|
+
#
|
|
231
|
+
# @return [Array<ModernTreasury::Models::LegalEntityAssociation>, nil]
|
|
232
|
+
optional :legal_entity_associations,
|
|
233
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation] },
|
|
234
|
+
nil?: true
|
|
235
|
+
|
|
236
|
+
# @!method initialize(id:, addresses:, bank_settings:, business_description:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, doing_business_as_names:, email:, expected_activity_volume:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_type:, legal_structure:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, risk_rating:, suffix:, updated_at:, wealth_and_employment_details:, website:, legal_entity_associations: nil)
|
|
199
237
|
# Some parameter documentations has been truncated, see
|
|
200
238
|
# {ModernTreasury::Models::LegalEntity} for more details.
|
|
201
239
|
#
|
|
@@ -205,12 +243,16 @@ module ModernTreasury
|
|
|
205
243
|
#
|
|
206
244
|
# @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
207
245
|
#
|
|
246
|
+
# @param business_description [String, nil] A description of the business.
|
|
247
|
+
#
|
|
208
248
|
# @param business_name [String, nil] The business's legal business name.
|
|
209
249
|
#
|
|
210
250
|
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
|
211
251
|
#
|
|
212
252
|
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
|
213
253
|
#
|
|
254
|
+
# @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
255
|
+
#
|
|
214
256
|
# @param created_at [Time]
|
|
215
257
|
#
|
|
216
258
|
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
|
@@ -223,15 +265,17 @@ module ModernTreasury
|
|
|
223
265
|
#
|
|
224
266
|
# @param email [String, nil] The entity's primary email.
|
|
225
267
|
#
|
|
268
|
+
# @param expected_activity_volume [Integer, nil] Monthly expected transaction volume in entity's local currency.
|
|
269
|
+
#
|
|
226
270
|
# @param first_name [String, nil] An individual's first name.
|
|
227
271
|
#
|
|
228
272
|
# @param identifications [Array<ModernTreasury::Models::LegalEntity::Identification>] A list of identifications for the legal entity.
|
|
229
273
|
#
|
|
230
274
|
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
|
231
275
|
#
|
|
232
|
-
# @param
|
|
276
|
+
# @param intended_use [String, nil] A description of the intended use of the legal entity.
|
|
233
277
|
#
|
|
234
|
-
# @param
|
|
278
|
+
# @param last_name [String, nil] An individual's last name.
|
|
235
279
|
#
|
|
236
280
|
# @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntity::LegalEntityType] The type of legal entity.
|
|
237
281
|
#
|
|
@@ -245,6 +289,8 @@ module ModernTreasury
|
|
|
245
289
|
#
|
|
246
290
|
# @param object [String]
|
|
247
291
|
#
|
|
292
|
+
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3 c
|
|
293
|
+
#
|
|
248
294
|
# @param phone_numbers [Array<ModernTreasury::Models::LegalEntity::PhoneNumber>]
|
|
249
295
|
#
|
|
250
296
|
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
|
@@ -253,6 +299,8 @@ module ModernTreasury
|
|
|
253
299
|
#
|
|
254
300
|
# @param prefix [String, nil] An individual's prefix.
|
|
255
301
|
#
|
|
302
|
+
# @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
|
|
303
|
+
#
|
|
256
304
|
# @param risk_rating [Symbol, ModernTreasury::Models::LegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
|
257
305
|
#
|
|
258
306
|
# @param suffix [String, nil] An individual's suffix.
|
|
@@ -262,6 +310,8 @@ module ModernTreasury
|
|
|
262
310
|
# @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
263
311
|
#
|
|
264
312
|
# @param website [String, nil] The entity's primary website URL.
|
|
313
|
+
#
|
|
314
|
+
# @param legal_entity_associations [Array<ModernTreasury::Models::LegalEntityAssociation>, nil] The legal entity associations and its child legal entities.
|
|
265
315
|
|
|
266
316
|
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
267
317
|
# @!attribute id
|