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
|
@@ -12,8 +12,8 @@ module ModernTreasury
|
|
|
12
12
|
# @!attribute child_legal_entity
|
|
13
13
|
# The child legal entity.
|
|
14
14
|
#
|
|
15
|
-
# @return [ModernTreasury::Models::
|
|
16
|
-
required :child_legal_entity, -> { ModernTreasury::
|
|
15
|
+
# @return [ModernTreasury::Models::ChildLegalEntity]
|
|
16
|
+
required :child_legal_entity, -> { ModernTreasury::ChildLegalEntity }
|
|
17
17
|
|
|
18
18
|
# @!attribute created_at
|
|
19
19
|
#
|
|
@@ -73,7 +73,7 @@ module ModernTreasury
|
|
|
73
73
|
#
|
|
74
74
|
# @param id [String]
|
|
75
75
|
#
|
|
76
|
-
# @param child_legal_entity [ModernTreasury::Models::
|
|
76
|
+
# @param child_legal_entity [ModernTreasury::Models::ChildLegalEntity] The child legal entity.
|
|
77
77
|
#
|
|
78
78
|
# @param created_at [Time]
|
|
79
79
|
#
|
|
@@ -93,562 +93,6 @@ module ModernTreasury
|
|
|
93
93
|
#
|
|
94
94
|
# @param updated_at [Time]
|
|
95
95
|
|
|
96
|
-
# @see ModernTreasury::Models::LegalEntityAssociation#child_legal_entity
|
|
97
|
-
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
|
98
|
-
# @!attribute id
|
|
99
|
-
#
|
|
100
|
-
# @return [String]
|
|
101
|
-
required :id, String
|
|
102
|
-
|
|
103
|
-
# @!attribute addresses
|
|
104
|
-
# A list of addresses for the entity.
|
|
105
|
-
#
|
|
106
|
-
# @return [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address>]
|
|
107
|
-
required :addresses,
|
|
108
|
-
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address] }
|
|
109
|
-
|
|
110
|
-
# @!attribute bank_settings
|
|
111
|
-
#
|
|
112
|
-
# @return [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
113
|
-
required :bank_settings, -> { ModernTreasury::LegalEntityBankSettings }, nil?: true
|
|
114
|
-
|
|
115
|
-
# @!attribute business_name
|
|
116
|
-
# The business's legal business name.
|
|
117
|
-
#
|
|
118
|
-
# @return [String, nil]
|
|
119
|
-
required :business_name, String, nil?: true
|
|
120
|
-
|
|
121
|
-
# @!attribute citizenship_country
|
|
122
|
-
# The country of citizenship for an individual.
|
|
123
|
-
#
|
|
124
|
-
# @return [String, nil]
|
|
125
|
-
required :citizenship_country, String, nil?: true
|
|
126
|
-
|
|
127
|
-
# @!attribute compliance_details
|
|
128
|
-
#
|
|
129
|
-
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
|
130
|
-
required :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
|
131
|
-
|
|
132
|
-
# @!attribute created_at
|
|
133
|
-
#
|
|
134
|
-
# @return [Time]
|
|
135
|
-
required :created_at, Time
|
|
136
|
-
|
|
137
|
-
# @!attribute date_formed
|
|
138
|
-
# A business's formation date (YYYY-MM-DD).
|
|
139
|
-
#
|
|
140
|
-
# @return [Date, nil]
|
|
141
|
-
required :date_formed, Date, nil?: true
|
|
142
|
-
|
|
143
|
-
# @!attribute date_of_birth
|
|
144
|
-
# An individual's date of birth (YYYY-MM-DD).
|
|
145
|
-
#
|
|
146
|
-
# @return [Date, nil]
|
|
147
|
-
required :date_of_birth, Date, nil?: true
|
|
148
|
-
|
|
149
|
-
# @!attribute discarded_at
|
|
150
|
-
#
|
|
151
|
-
# @return [Time, nil]
|
|
152
|
-
required :discarded_at, Time, nil?: true
|
|
153
|
-
|
|
154
|
-
# @!attribute doing_business_as_names
|
|
155
|
-
#
|
|
156
|
-
# @return [Array<String>]
|
|
157
|
-
required :doing_business_as_names, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
158
|
-
|
|
159
|
-
# @!attribute email
|
|
160
|
-
# The entity's primary email.
|
|
161
|
-
#
|
|
162
|
-
# @return [String, nil]
|
|
163
|
-
required :email, String, nil?: true
|
|
164
|
-
|
|
165
|
-
# @!attribute first_name
|
|
166
|
-
# An individual's first name.
|
|
167
|
-
#
|
|
168
|
-
# @return [String, nil]
|
|
169
|
-
required :first_name, String, nil?: true
|
|
170
|
-
|
|
171
|
-
# @!attribute identifications
|
|
172
|
-
# A list of identifications for the legal entity.
|
|
173
|
-
#
|
|
174
|
-
# @return [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification>]
|
|
175
|
-
required :identifications,
|
|
176
|
-
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification] }
|
|
177
|
-
|
|
178
|
-
# @!attribute industry_classifications
|
|
179
|
-
# A list of industry classifications for the legal entity.
|
|
180
|
-
#
|
|
181
|
-
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
|
|
182
|
-
required :industry_classifications,
|
|
183
|
-
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification] }
|
|
184
|
-
|
|
185
|
-
# @!attribute last_name
|
|
186
|
-
# An individual's last name.
|
|
187
|
-
#
|
|
188
|
-
# @return [String, nil]
|
|
189
|
-
required :last_name, String, nil?: true
|
|
190
|
-
|
|
191
|
-
# @!attribute legal_entity_type
|
|
192
|
-
# The type of legal entity.
|
|
193
|
-
#
|
|
194
|
-
# @return [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::LegalEntityType]
|
|
195
|
-
required :legal_entity_type,
|
|
196
|
-
enum: -> { ModernTreasury::LegalEntityAssociation::ChildLegalEntity::LegalEntityType }
|
|
197
|
-
|
|
198
|
-
# @!attribute legal_structure
|
|
199
|
-
# The business's legal structure.
|
|
200
|
-
#
|
|
201
|
-
# @return [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
|
202
|
-
required :legal_structure,
|
|
203
|
-
enum: -> { ModernTreasury::LegalEntityAssociation::ChildLegalEntity::LegalStructure },
|
|
204
|
-
nil?: true
|
|
205
|
-
|
|
206
|
-
# @!attribute live_mode
|
|
207
|
-
# This field will be true if this object exists in the live environment or false
|
|
208
|
-
# if it exists in the test environment.
|
|
209
|
-
#
|
|
210
|
-
# @return [Boolean]
|
|
211
|
-
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
212
|
-
|
|
213
|
-
# @!attribute metadata
|
|
214
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
|
215
|
-
# strings.
|
|
216
|
-
#
|
|
217
|
-
# @return [Hash{Symbol=>String}]
|
|
218
|
-
required :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
|
219
|
-
|
|
220
|
-
# @!attribute middle_name
|
|
221
|
-
# An individual's middle name.
|
|
222
|
-
#
|
|
223
|
-
# @return [String, nil]
|
|
224
|
-
required :middle_name, String, nil?: true
|
|
225
|
-
|
|
226
|
-
# @!attribute object
|
|
227
|
-
#
|
|
228
|
-
# @return [String]
|
|
229
|
-
required :object, String
|
|
230
|
-
|
|
231
|
-
# @!attribute phone_numbers
|
|
232
|
-
#
|
|
233
|
-
# @return [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
|
234
|
-
required :phone_numbers,
|
|
235
|
-
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::PhoneNumber] }
|
|
236
|
-
|
|
237
|
-
# @!attribute politically_exposed_person
|
|
238
|
-
# Whether the individual is a politically exposed person.
|
|
239
|
-
#
|
|
240
|
-
# @return [Boolean, nil]
|
|
241
|
-
required :politically_exposed_person, ModernTreasury::Internal::Type::Boolean, nil?: true
|
|
242
|
-
|
|
243
|
-
# @!attribute preferred_name
|
|
244
|
-
# An individual's preferred name.
|
|
245
|
-
#
|
|
246
|
-
# @return [String, nil]
|
|
247
|
-
required :preferred_name, String, nil?: true
|
|
248
|
-
|
|
249
|
-
# @!attribute prefix
|
|
250
|
-
# An individual's prefix.
|
|
251
|
-
#
|
|
252
|
-
# @return [String, nil]
|
|
253
|
-
required :prefix, String, nil?: true
|
|
254
|
-
|
|
255
|
-
# @!attribute risk_rating
|
|
256
|
-
# The risk rating of the legal entity. One of low, medium, high.
|
|
257
|
-
#
|
|
258
|
-
# @return [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
|
259
|
-
required :risk_rating,
|
|
260
|
-
enum: -> { ModernTreasury::LegalEntityAssociation::ChildLegalEntity::RiskRating },
|
|
261
|
-
nil?: true
|
|
262
|
-
|
|
263
|
-
# @!attribute suffix
|
|
264
|
-
# An individual's suffix.
|
|
265
|
-
#
|
|
266
|
-
# @return [String, nil]
|
|
267
|
-
required :suffix, String, nil?: true
|
|
268
|
-
|
|
269
|
-
# @!attribute updated_at
|
|
270
|
-
#
|
|
271
|
-
# @return [Time]
|
|
272
|
-
required :updated_at, Time
|
|
273
|
-
|
|
274
|
-
# @!attribute wealth_and_employment_details
|
|
275
|
-
#
|
|
276
|
-
# @return [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
277
|
-
required :wealth_and_employment_details,
|
|
278
|
-
-> { ModernTreasury::LegalEntityWealthEmploymentDetail },
|
|
279
|
-
nil?: true
|
|
280
|
-
|
|
281
|
-
# @!attribute website
|
|
282
|
-
# The entity's primary website URL.
|
|
283
|
-
#
|
|
284
|
-
# @return [String, nil]
|
|
285
|
-
required :website, String, nil?: true
|
|
286
|
-
|
|
287
|
-
# @!method initialize(id:, addresses:, bank_settings:, business_name:, citizenship_country:, compliance_details:, created_at:, date_formed:, date_of_birth:, discarded_at:, doing_business_as_names:, email:, first_name:, identifications:, industry_classifications:, last_name:, legal_entity_type:, legal_structure:, live_mode:, metadata:, middle_name:, object:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, risk_rating:, suffix:, updated_at:, wealth_and_employment_details:, website:)
|
|
288
|
-
# Some parameter documentations has been truncated, see
|
|
289
|
-
# {ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity} for more
|
|
290
|
-
# details.
|
|
291
|
-
#
|
|
292
|
-
# The child legal entity.
|
|
293
|
-
#
|
|
294
|
-
# @param id [String]
|
|
295
|
-
#
|
|
296
|
-
# @param addresses [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address>] A list of addresses for the entity.
|
|
297
|
-
#
|
|
298
|
-
# @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
|
|
299
|
-
#
|
|
300
|
-
# @param business_name [String, nil] The business's legal business name.
|
|
301
|
-
#
|
|
302
|
-
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
|
303
|
-
#
|
|
304
|
-
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
|
305
|
-
#
|
|
306
|
-
# @param created_at [Time]
|
|
307
|
-
#
|
|
308
|
-
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
|
309
|
-
#
|
|
310
|
-
# @param date_of_birth [Date, nil] An individual's date of birth (YYYY-MM-DD).
|
|
311
|
-
#
|
|
312
|
-
# @param discarded_at [Time, nil]
|
|
313
|
-
#
|
|
314
|
-
# @param doing_business_as_names [Array<String>]
|
|
315
|
-
#
|
|
316
|
-
# @param email [String, nil] The entity's primary email.
|
|
317
|
-
#
|
|
318
|
-
# @param first_name [String, nil] An individual's first name.
|
|
319
|
-
#
|
|
320
|
-
# @param identifications [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
|
|
321
|
-
#
|
|
322
|
-
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
|
323
|
-
#
|
|
324
|
-
# @param last_name [String, nil] An individual's last name.
|
|
325
|
-
#
|
|
326
|
-
# @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::LegalEntityType] The type of legal entity.
|
|
327
|
-
#
|
|
328
|
-
# @param legal_structure [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
|
|
329
|
-
#
|
|
330
|
-
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
331
|
-
#
|
|
332
|
-
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
|
333
|
-
#
|
|
334
|
-
# @param middle_name [String, nil] An individual's middle name.
|
|
335
|
-
#
|
|
336
|
-
# @param object [String]
|
|
337
|
-
#
|
|
338
|
-
# @param phone_numbers [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
|
339
|
-
#
|
|
340
|
-
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
|
341
|
-
#
|
|
342
|
-
# @param preferred_name [String, nil] An individual's preferred name.
|
|
343
|
-
#
|
|
344
|
-
# @param prefix [String, nil] An individual's prefix.
|
|
345
|
-
#
|
|
346
|
-
# @param risk_rating [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
|
347
|
-
#
|
|
348
|
-
# @param suffix [String, nil] An individual's suffix.
|
|
349
|
-
#
|
|
350
|
-
# @param updated_at [Time]
|
|
351
|
-
#
|
|
352
|
-
# @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
|
|
353
|
-
#
|
|
354
|
-
# @param website [String, nil] The entity's primary website URL.
|
|
355
|
-
|
|
356
|
-
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
357
|
-
# @!attribute id
|
|
358
|
-
#
|
|
359
|
-
# @return [String]
|
|
360
|
-
required :id, String
|
|
361
|
-
|
|
362
|
-
# @!attribute address_types
|
|
363
|
-
# The types of this address.
|
|
364
|
-
#
|
|
365
|
-
# @return [Array<Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>]
|
|
366
|
-
required :address_types,
|
|
367
|
-
-> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address::AddressType] }
|
|
368
|
-
|
|
369
|
-
# @!attribute country
|
|
370
|
-
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
371
|
-
#
|
|
372
|
-
# @return [String, nil]
|
|
373
|
-
required :country, String, nil?: true
|
|
374
|
-
|
|
375
|
-
# @!attribute created_at
|
|
376
|
-
#
|
|
377
|
-
# @return [Time]
|
|
378
|
-
required :created_at, Time
|
|
379
|
-
|
|
380
|
-
# @!attribute discarded_at
|
|
381
|
-
#
|
|
382
|
-
# @return [Time, nil]
|
|
383
|
-
required :discarded_at, Time, nil?: true
|
|
384
|
-
|
|
385
|
-
# @!attribute line1
|
|
386
|
-
#
|
|
387
|
-
# @return [String, nil]
|
|
388
|
-
required :line1, String, nil?: true
|
|
389
|
-
|
|
390
|
-
# @!attribute line2
|
|
391
|
-
#
|
|
392
|
-
# @return [String, nil]
|
|
393
|
-
required :line2, String, nil?: true
|
|
394
|
-
|
|
395
|
-
# @!attribute live_mode
|
|
396
|
-
# This field will be true if this object exists in the live environment or false
|
|
397
|
-
# if it exists in the test environment.
|
|
398
|
-
#
|
|
399
|
-
# @return [Boolean]
|
|
400
|
-
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
401
|
-
|
|
402
|
-
# @!attribute locality
|
|
403
|
-
# Locality or City.
|
|
404
|
-
#
|
|
405
|
-
# @return [String, nil]
|
|
406
|
-
required :locality, String, nil?: true
|
|
407
|
-
|
|
408
|
-
# @!attribute object
|
|
409
|
-
#
|
|
410
|
-
# @return [String]
|
|
411
|
-
required :object, String
|
|
412
|
-
|
|
413
|
-
# @!attribute postal_code
|
|
414
|
-
# The postal code of the address.
|
|
415
|
-
#
|
|
416
|
-
# @return [String, nil]
|
|
417
|
-
required :postal_code, String, nil?: true
|
|
418
|
-
|
|
419
|
-
# @!attribute region
|
|
420
|
-
# Region or State.
|
|
421
|
-
#
|
|
422
|
-
# @return [String, nil]
|
|
423
|
-
required :region, String, nil?: true
|
|
424
|
-
|
|
425
|
-
# @!attribute updated_at
|
|
426
|
-
#
|
|
427
|
-
# @return [Time]
|
|
428
|
-
required :updated_at, Time
|
|
429
|
-
|
|
430
|
-
# @!method initialize(id:, address_types:, country:, created_at:, discarded_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
|
|
431
|
-
# Some parameter documentations has been truncated, see
|
|
432
|
-
# {ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address} for
|
|
433
|
-
# more details.
|
|
434
|
-
#
|
|
435
|
-
# @param id [String]
|
|
436
|
-
#
|
|
437
|
-
# @param address_types [Array<Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>] The types of this address.
|
|
438
|
-
#
|
|
439
|
-
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
|
440
|
-
#
|
|
441
|
-
# @param created_at [Time]
|
|
442
|
-
#
|
|
443
|
-
# @param discarded_at [Time, nil]
|
|
444
|
-
#
|
|
445
|
-
# @param line1 [String, nil]
|
|
446
|
-
#
|
|
447
|
-
# @param line2 [String, nil]
|
|
448
|
-
#
|
|
449
|
-
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
450
|
-
#
|
|
451
|
-
# @param locality [String, nil] Locality or City.
|
|
452
|
-
#
|
|
453
|
-
# @param object [String]
|
|
454
|
-
#
|
|
455
|
-
# @param postal_code [String, nil] The postal code of the address.
|
|
456
|
-
#
|
|
457
|
-
# @param region [String, nil] Region or State.
|
|
458
|
-
#
|
|
459
|
-
# @param updated_at [Time]
|
|
460
|
-
|
|
461
|
-
module AddressType
|
|
462
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
463
|
-
|
|
464
|
-
BUSINESS = :business
|
|
465
|
-
MAILING = :mailing
|
|
466
|
-
OTHER = :other
|
|
467
|
-
PO_BOX = :po_box
|
|
468
|
-
RESIDENTIAL = :residential
|
|
469
|
-
|
|
470
|
-
# @!method self.values
|
|
471
|
-
# @return [Array<Symbol>]
|
|
472
|
-
end
|
|
473
|
-
end
|
|
474
|
-
|
|
475
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
|
476
|
-
# @!attribute id
|
|
477
|
-
#
|
|
478
|
-
# @return [String]
|
|
479
|
-
required :id, String
|
|
480
|
-
|
|
481
|
-
# @!attribute created_at
|
|
482
|
-
#
|
|
483
|
-
# @return [Time]
|
|
484
|
-
required :created_at, Time
|
|
485
|
-
|
|
486
|
-
# @!attribute discarded_at
|
|
487
|
-
#
|
|
488
|
-
# @return [Time, nil]
|
|
489
|
-
required :discarded_at, Time, nil?: true
|
|
490
|
-
|
|
491
|
-
# @!attribute expiration_date
|
|
492
|
-
# The date when the Identification is no longer considered valid by the issuing
|
|
493
|
-
# authority.
|
|
494
|
-
#
|
|
495
|
-
# @return [Date, nil]
|
|
496
|
-
required :expiration_date, Date, nil?: true
|
|
497
|
-
|
|
498
|
-
# @!attribute id_type
|
|
499
|
-
# The type of ID number.
|
|
500
|
-
#
|
|
501
|
-
# @return [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
|
502
|
-
required :id_type,
|
|
503
|
-
enum: -> { ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification::IDType }
|
|
504
|
-
|
|
505
|
-
# @!attribute issuing_country
|
|
506
|
-
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
507
|
-
# identification
|
|
508
|
-
#
|
|
509
|
-
# @return [String, nil]
|
|
510
|
-
required :issuing_country, String, nil?: true
|
|
511
|
-
|
|
512
|
-
# @!attribute issuing_region
|
|
513
|
-
# The region in which the identifcation was issued.
|
|
514
|
-
#
|
|
515
|
-
# @return [String, nil]
|
|
516
|
-
required :issuing_region, String, nil?: true
|
|
517
|
-
|
|
518
|
-
# @!attribute live_mode
|
|
519
|
-
# This field will be true if this object exists in the live environment or false
|
|
520
|
-
# if it exists in the test environment.
|
|
521
|
-
#
|
|
522
|
-
# @return [Boolean]
|
|
523
|
-
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
524
|
-
|
|
525
|
-
# @!attribute object
|
|
526
|
-
#
|
|
527
|
-
# @return [String]
|
|
528
|
-
required :object, String
|
|
529
|
-
|
|
530
|
-
# @!attribute updated_at
|
|
531
|
-
#
|
|
532
|
-
# @return [Time]
|
|
533
|
-
required :updated_at, Time
|
|
534
|
-
|
|
535
|
-
# @!method initialize(id:, created_at:, discarded_at:, expiration_date:, id_type:, issuing_country:, issuing_region:, live_mode:, object:, updated_at:)
|
|
536
|
-
# Some parameter documentations has been truncated, see
|
|
537
|
-
# {ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification}
|
|
538
|
-
# for more details.
|
|
539
|
-
#
|
|
540
|
-
# @param id [String]
|
|
541
|
-
#
|
|
542
|
-
# @param created_at [Time]
|
|
543
|
-
#
|
|
544
|
-
# @param discarded_at [Time, nil]
|
|
545
|
-
#
|
|
546
|
-
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
|
547
|
-
#
|
|
548
|
-
# @param id_type [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification::IDType] The type of ID number.
|
|
549
|
-
#
|
|
550
|
-
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
|
551
|
-
#
|
|
552
|
-
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
|
553
|
-
#
|
|
554
|
-
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
555
|
-
#
|
|
556
|
-
# @param object [String]
|
|
557
|
-
#
|
|
558
|
-
# @param updated_at [Time]
|
|
559
|
-
|
|
560
|
-
# The type of ID number.
|
|
561
|
-
#
|
|
562
|
-
# @see ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification#id_type
|
|
563
|
-
module IDType
|
|
564
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
565
|
-
|
|
566
|
-
AR_CUIL = :ar_cuil
|
|
567
|
-
AR_CUIT = :ar_cuit
|
|
568
|
-
BR_CNPJ = :br_cnpj
|
|
569
|
-
BR_CPF = :br_cpf
|
|
570
|
-
CL_RUN = :cl_run
|
|
571
|
-
CL_RUT = :cl_rut
|
|
572
|
-
CO_CEDULAS = :co_cedulas
|
|
573
|
-
CO_NIT = :co_nit
|
|
574
|
-
DRIVERS_LICENSE = :drivers_license
|
|
575
|
-
HN_ID = :hn_id
|
|
576
|
-
HN_RTN = :hn_rtn
|
|
577
|
-
IN_LEI = :in_lei
|
|
578
|
-
KR_BRN = :kr_brn
|
|
579
|
-
KR_CRN = :kr_crn
|
|
580
|
-
KR_RRN = :kr_rrn
|
|
581
|
-
PASSPORT = :passport
|
|
582
|
-
SA_TIN = :sa_tin
|
|
583
|
-
SA_VAT = :sa_vat
|
|
584
|
-
US_EIN = :us_ein
|
|
585
|
-
US_ITIN = :us_itin
|
|
586
|
-
US_SSN = :us_ssn
|
|
587
|
-
VN_TIN = :vn_tin
|
|
588
|
-
|
|
589
|
-
# @!method self.values
|
|
590
|
-
# @return [Array<Symbol>]
|
|
591
|
-
end
|
|
592
|
-
end
|
|
593
|
-
|
|
594
|
-
# The type of legal entity.
|
|
595
|
-
#
|
|
596
|
-
# @see ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity#legal_entity_type
|
|
597
|
-
module LegalEntityType
|
|
598
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
599
|
-
|
|
600
|
-
BUSINESS = :business
|
|
601
|
-
INDIVIDUAL = :individual
|
|
602
|
-
JOINT = :joint
|
|
603
|
-
|
|
604
|
-
# @!method self.values
|
|
605
|
-
# @return [Array<Symbol>]
|
|
606
|
-
end
|
|
607
|
-
|
|
608
|
-
# The business's legal structure.
|
|
609
|
-
#
|
|
610
|
-
# @see ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity#legal_structure
|
|
611
|
-
module LegalStructure
|
|
612
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
613
|
-
|
|
614
|
-
CORPORATION = :corporation
|
|
615
|
-
LLC = :llc
|
|
616
|
-
NON_PROFIT = :non_profit
|
|
617
|
-
PARTNERSHIP = :partnership
|
|
618
|
-
SOLE_PROPRIETORSHIP = :sole_proprietorship
|
|
619
|
-
TRUST = :trust
|
|
620
|
-
|
|
621
|
-
# @!method self.values
|
|
622
|
-
# @return [Array<Symbol>]
|
|
623
|
-
end
|
|
624
|
-
|
|
625
|
-
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
626
|
-
# @!attribute phone_number
|
|
627
|
-
#
|
|
628
|
-
# @return [String, nil]
|
|
629
|
-
optional :phone_number, String
|
|
630
|
-
|
|
631
|
-
# @!method initialize(phone_number: nil)
|
|
632
|
-
# A list of phone numbers in E.164 format.
|
|
633
|
-
#
|
|
634
|
-
# @param phone_number [String]
|
|
635
|
-
end
|
|
636
|
-
|
|
637
|
-
# The risk rating of the legal entity. One of low, medium, high.
|
|
638
|
-
#
|
|
639
|
-
# @see ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity#risk_rating
|
|
640
|
-
module RiskRating
|
|
641
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
642
|
-
|
|
643
|
-
LOW = :low
|
|
644
|
-
MEDIUM = :medium
|
|
645
|
-
HIGH = :high
|
|
646
|
-
|
|
647
|
-
# @!method self.values
|
|
648
|
-
# @return [Array<Symbol>]
|
|
649
|
-
end
|
|
650
|
-
end
|
|
651
|
-
|
|
652
96
|
# A list of relationship types for how the child entity relates to parent entity.
|
|
653
97
|
module RelationshipType
|
|
654
98
|
extend ModernTreasury::Internal::Type::Enum
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class LegalEntityAssociationInlineCreate < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute relationship_types
|
|
7
|
+
#
|
|
8
|
+
# @return [Array<Symbol, ModernTreasury::Models::LegalEntityAssociationInlineCreate::RelationshipType>]
|
|
9
|
+
required :relationship_types,
|
|
10
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityAssociationInlineCreate::RelationshipType] }
|
|
11
|
+
|
|
12
|
+
# @!attribute child_legal_entity
|
|
13
|
+
# The child legal entity.
|
|
14
|
+
#
|
|
15
|
+
# @return [ModernTreasury::Models::ChildLegalEntityCreate, nil]
|
|
16
|
+
optional :child_legal_entity, -> { ModernTreasury::ChildLegalEntityCreate }
|
|
17
|
+
|
|
18
|
+
# @!attribute child_legal_entity_id
|
|
19
|
+
# The ID of the child legal entity.
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :child_legal_entity_id, String
|
|
23
|
+
|
|
24
|
+
# @!attribute ownership_percentage
|
|
25
|
+
# The child entity's ownership percentage iff they are a beneficial owner.
|
|
26
|
+
#
|
|
27
|
+
# @return [Integer, nil]
|
|
28
|
+
optional :ownership_percentage, Integer, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!attribute title
|
|
31
|
+
# The job title of the child entity at the parent entity.
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :title, String, nil?: true
|
|
35
|
+
|
|
36
|
+
# @!method initialize(relationship_types:, child_legal_entity: nil, child_legal_entity_id: nil, ownership_percentage: nil, title: nil)
|
|
37
|
+
# @param relationship_types [Array<Symbol, ModernTreasury::Models::LegalEntityAssociationInlineCreate::RelationshipType>]
|
|
38
|
+
#
|
|
39
|
+
# @param child_legal_entity [ModernTreasury::Models::ChildLegalEntityCreate] The child legal entity.
|
|
40
|
+
#
|
|
41
|
+
# @param child_legal_entity_id [String] The ID of the child legal entity.
|
|
42
|
+
#
|
|
43
|
+
# @param ownership_percentage [Integer, nil] The child entity's ownership percentage iff they are a beneficial owner.
|
|
44
|
+
#
|
|
45
|
+
# @param title [String, nil] The job title of the child entity at the parent entity.
|
|
46
|
+
|
|
47
|
+
# A list of relationship types for how the child entity relates to parent entity.
|
|
48
|
+
module RelationshipType
|
|
49
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
50
|
+
|
|
51
|
+
AUTHORIZED_SIGNER = :authorized_signer
|
|
52
|
+
BENEFICIAL_OWNER = :beneficial_owner
|
|
53
|
+
CONTROL_PERSON = :control_person
|
|
54
|
+
|
|
55
|
+
# @!method self.values
|
|
56
|
+
# @return [Array<Symbol>]
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|