modern_treasury 0.29.2 → 0.30.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 (51) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/client.rb +4 -0
  5. data/lib/modern_treasury/models/child_legal_entity.rb +3 -207
  6. data/lib/modern_treasury/models/identification.rb +209 -0
  7. data/lib/modern_treasury/models/identification_create_params.rb +231 -0
  8. data/lib/modern_treasury/models/identification_retrieve_params.rb +20 -0
  9. data/lib/modern_treasury/models/identification_update_params.rb +176 -0
  10. data/lib/modern_treasury/models/internal_account_update_params.rb +12 -1
  11. data/lib/modern_treasury/models/legal_entity.rb +3 -207
  12. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +17 -9
  13. data/lib/modern_treasury/models/virtual_account_create_params.rb +9 -1
  14. data/lib/modern_treasury/models.rb +8 -0
  15. data/lib/modern_treasury/resources/identifications.rb +106 -0
  16. data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
  17. data/lib/modern_treasury/resources/legal_entity_associations.rb +5 -3
  18. data/lib/modern_treasury/resources/virtual_accounts.rb +3 -1
  19. data/lib/modern_treasury/version.rb +1 -1
  20. data/lib/modern_treasury.rb +5 -0
  21. data/rbi/modern_treasury/client.rbi +3 -0
  22. data/rbi/modern_treasury/models/child_legal_entity.rbi +3 -652
  23. data/rbi/modern_treasury/models/identification.rbi +346 -0
  24. data/rbi/modern_treasury/models/identification_create_params.rbi +768 -0
  25. data/rbi/modern_treasury/models/identification_retrieve_params.rbi +38 -0
  26. data/rbi/modern_treasury/models/identification_update_params.rbi +632 -0
  27. data/rbi/modern_treasury/models/internal_account_update_params.rbi +17 -0
  28. data/rbi/modern_treasury/models/legal_entity.rbi +3 -647
  29. data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +26 -8
  30. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +11 -0
  31. data/rbi/modern_treasury/models.rbi +11 -0
  32. data/rbi/modern_treasury/resources/identifications.rbi +94 -0
  33. data/rbi/modern_treasury/resources/internal_accounts.rbi +6 -0
  34. data/rbi/modern_treasury/resources/legal_entity_associations.rbi +6 -3
  35. data/rbi/modern_treasury/resources/virtual_accounts.rbi +3 -0
  36. data/sig/modern_treasury/client.rbs +2 -0
  37. data/sig/modern_treasury/models/child_legal_entity.rbs +4 -282
  38. data/sig/modern_treasury/models/identification.rbs +281 -0
  39. data/sig/modern_treasury/models/identification_create_params.rbs +323 -0
  40. data/sig/modern_treasury/models/identification_retrieve_params.rbs +23 -0
  41. data/sig/modern_treasury/models/identification_update_params.rbs +268 -0
  42. data/sig/modern_treasury/models/internal_account_update_params.rbs +9 -0
  43. data/sig/modern_treasury/models/legal_entity.rbs +4 -282
  44. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +16 -5
  45. data/sig/modern_treasury/models/virtual_account_create_params.rbs +7 -0
  46. data/sig/modern_treasury/models.rbs +8 -0
  47. data/sig/modern_treasury/resources/identifications.rbs +33 -0
  48. data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
  49. data/sig/modern_treasury/resources/legal_entity_associations.rbs +2 -1
  50. data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -0
  51. metadata +17 -2
@@ -0,0 +1,768 @@
1
+ # typed: strong
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ class IdentificationCreateParams < ModernTreasury::Internal::Type::BaseModel
6
+ extend ModernTreasury::Internal::Type::RequestParameters::Converter
7
+ include ModernTreasury::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ ModernTreasury::IdentificationCreateParams,
13
+ ModernTreasury::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The ID number of identification document.
18
+ sig { returns(String) }
19
+ attr_accessor :id_number
20
+
21
+ # The type of ID number.
22
+ sig do
23
+ returns(ModernTreasury::IdentificationCreateParams::IDType::OrSymbol)
24
+ end
25
+ attr_accessor :id_type
26
+
27
+ # The ID of the Legal Entity the identification belongs to.
28
+ sig { returns(String) }
29
+ attr_accessor :legal_entity_id
30
+
31
+ # A list of documents to attach to the identification.
32
+ sig do
33
+ returns(
34
+ T.nilable(
35
+ T::Array[ModernTreasury::IdentificationCreateParams::Document]
36
+ )
37
+ )
38
+ end
39
+ attr_reader :documents
40
+
41
+ sig do
42
+ params(
43
+ documents:
44
+ T::Array[
45
+ ModernTreasury::IdentificationCreateParams::Document::OrHash
46
+ ]
47
+ ).void
48
+ end
49
+ attr_writer :documents
50
+
51
+ # The date when the Identification is no longer considered valid by the issuing
52
+ # authority.
53
+ sig { returns(T.nilable(Date)) }
54
+ attr_accessor :expiration_date
55
+
56
+ # The ISO 3166-1 alpha-2 country code of the country that issued the
57
+ # identification
58
+ sig { returns(T.nilable(String)) }
59
+ attr_accessor :issuing_country
60
+
61
+ # The region in which the identifcation was issued.
62
+ sig { returns(T.nilable(String)) }
63
+ attr_accessor :issuing_region
64
+
65
+ sig do
66
+ params(
67
+ id_number: String,
68
+ id_type: ModernTreasury::IdentificationCreateParams::IDType::OrSymbol,
69
+ legal_entity_id: String,
70
+ documents:
71
+ T::Array[
72
+ ModernTreasury::IdentificationCreateParams::Document::OrHash
73
+ ],
74
+ expiration_date: T.nilable(Date),
75
+ issuing_country: T.nilable(String),
76
+ issuing_region: T.nilable(String),
77
+ request_options: ModernTreasury::RequestOptions::OrHash
78
+ ).returns(T.attached_class)
79
+ end
80
+ def self.new(
81
+ # The ID number of identification document.
82
+ id_number:,
83
+ # The type of ID number.
84
+ id_type:,
85
+ # The ID of the Legal Entity the identification belongs to.
86
+ legal_entity_id:,
87
+ # A list of documents to attach to the identification.
88
+ documents: nil,
89
+ # The date when the Identification is no longer considered valid by the issuing
90
+ # authority.
91
+ expiration_date: nil,
92
+ # The ISO 3166-1 alpha-2 country code of the country that issued the
93
+ # identification
94
+ issuing_country: nil,
95
+ # The region in which the identifcation was issued.
96
+ issuing_region: nil,
97
+ request_options: {}
98
+ )
99
+ end
100
+
101
+ sig do
102
+ override.returns(
103
+ {
104
+ id_number: String,
105
+ id_type:
106
+ ModernTreasury::IdentificationCreateParams::IDType::OrSymbol,
107
+ legal_entity_id: String,
108
+ documents:
109
+ T::Array[ModernTreasury::IdentificationCreateParams::Document],
110
+ expiration_date: T.nilable(Date),
111
+ issuing_country: T.nilable(String),
112
+ issuing_region: T.nilable(String),
113
+ request_options: ModernTreasury::RequestOptions
114
+ }
115
+ )
116
+ end
117
+ def to_hash
118
+ end
119
+
120
+ # The type of ID number.
121
+ module IDType
122
+ extend ModernTreasury::Internal::Type::Enum
123
+
124
+ TaggedSymbol =
125
+ T.type_alias do
126
+ T.all(Symbol, ModernTreasury::IdentificationCreateParams::IDType)
127
+ end
128
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
129
+
130
+ AR_CUIL =
131
+ T.let(
132
+ :ar_cuil,
133
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
134
+ )
135
+ AR_CUIT =
136
+ T.let(
137
+ :ar_cuit,
138
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
139
+ )
140
+ AT_ATIN =
141
+ T.let(
142
+ :at_atin,
143
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
144
+ )
145
+ AT_VAT =
146
+ T.let(
147
+ :at_vat,
148
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
149
+ )
150
+ AU_ABN =
151
+ T.let(
152
+ :au_abn,
153
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
154
+ )
155
+ AU_TFN =
156
+ T.let(
157
+ :au_tfn,
158
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
159
+ )
160
+ BE_ENT =
161
+ T.let(
162
+ :be_ent,
163
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
164
+ )
165
+ BE_NRN =
166
+ T.let(
167
+ :be_nrn,
168
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
169
+ )
170
+ BR_CNPJ =
171
+ T.let(
172
+ :br_cnpj,
173
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
174
+ )
175
+ BR_CPF =
176
+ T.let(
177
+ :br_cpf,
178
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
179
+ )
180
+ CA_BN =
181
+ T.let(
182
+ :ca_bn,
183
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
184
+ )
185
+ CA_SIN =
186
+ T.let(
187
+ :ca_sin,
188
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
189
+ )
190
+ CH_AHV =
191
+ T.let(
192
+ :ch_ahv,
193
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
194
+ )
195
+ CH_UID =
196
+ T.let(
197
+ :ch_uid,
198
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
199
+ )
200
+ CL_RUN =
201
+ T.let(
202
+ :cl_run,
203
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
204
+ )
205
+ CL_RUT =
206
+ T.let(
207
+ :cl_rut,
208
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
209
+ )
210
+ CO_CEDULAS =
211
+ T.let(
212
+ :co_cedulas,
213
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
214
+ )
215
+ CO_NIT =
216
+ T.let(
217
+ :co_nit,
218
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
219
+ )
220
+ CY_TIN =
221
+ T.let(
222
+ :cy_tin,
223
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
224
+ )
225
+ CZ_ICO =
226
+ T.let(
227
+ :cz_ico,
228
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
229
+ )
230
+ CZ_RC =
231
+ T.let(
232
+ :cz_rc,
233
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
234
+ )
235
+ DE_STID =
236
+ T.let(
237
+ :de_stid,
238
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
239
+ )
240
+ DE_STNR =
241
+ T.let(
242
+ :de_stnr,
243
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
244
+ )
245
+ DE_VAT =
246
+ T.let(
247
+ :de_vat,
248
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
249
+ )
250
+ DK_CPR =
251
+ T.let(
252
+ :dk_cpr,
253
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
254
+ )
255
+ DK_CVR =
256
+ T.let(
257
+ :dk_cvr,
258
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
259
+ )
260
+ DRIVERS_LICENSE =
261
+ T.let(
262
+ :drivers_license,
263
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
264
+ )
265
+ EE_IK =
266
+ T.let(
267
+ :ee_ik,
268
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
269
+ )
270
+ EE_RK =
271
+ T.let(
272
+ :ee_rk,
273
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
274
+ )
275
+ ES_NIE =
276
+ T.let(
277
+ :es_nie,
278
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
279
+ )
280
+ ES_NIF =
281
+ T.let(
282
+ :es_nif,
283
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
284
+ )
285
+ FI_HETU =
286
+ T.let(
287
+ :fi_hetu,
288
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
289
+ )
290
+ FI_YTJ =
291
+ T.let(
292
+ :fi_ytj,
293
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
294
+ )
295
+ FR_NIF =
296
+ T.let(
297
+ :fr_nif,
298
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
299
+ )
300
+ FR_SIREN =
301
+ T.let(
302
+ :fr_siren,
303
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
304
+ )
305
+ FR_VAT =
306
+ T.let(
307
+ :fr_vat,
308
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
309
+ )
310
+ GB_NINO =
311
+ T.let(
312
+ :gb_nino,
313
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
314
+ )
315
+ GB_UTR =
316
+ T.let(
317
+ :gb_utr,
318
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
319
+ )
320
+ GB_VAT =
321
+ T.let(
322
+ :gb_vat,
323
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
324
+ )
325
+ GENERIC_INTERNATIONAL =
326
+ T.let(
327
+ :generic_international,
328
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
329
+ )
330
+ GR_VAT =
331
+ T.let(
332
+ :gr_vat,
333
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
334
+ )
335
+ HK_BRN =
336
+ T.let(
337
+ :hk_brn,
338
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
339
+ )
340
+ HK_HKID =
341
+ T.let(
342
+ :hk_hkid,
343
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
344
+ )
345
+ HN_ID =
346
+ T.let(
347
+ :hn_id,
348
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
349
+ )
350
+ HN_RTN =
351
+ T.let(
352
+ :hn_rtn,
353
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
354
+ )
355
+ HR_OIB =
356
+ T.let(
357
+ :hr_oib,
358
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
359
+ )
360
+ HU_ADJ =
361
+ T.let(
362
+ :hu_adj,
363
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
364
+ )
365
+ HU_ANUM =
366
+ T.let(
367
+ :hu_anum,
368
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
369
+ )
370
+ IE_PPS =
371
+ T.let(
372
+ :ie_pps,
373
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
374
+ )
375
+ IE_TRN =
376
+ T.let(
377
+ :ie_trn,
378
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
379
+ )
380
+ IN_LEI =
381
+ T.let(
382
+ :in_lei,
383
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
384
+ )
385
+ IS_KNT =
386
+ T.let(
387
+ :is_knt,
388
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
389
+ )
390
+ IT_CF =
391
+ T.let(
392
+ :it_cf,
393
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
394
+ )
395
+ IT_PIVA =
396
+ T.let(
397
+ :it_piva,
398
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
399
+ )
400
+ JP_HB =
401
+ T.let(
402
+ :jp_hb,
403
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
404
+ )
405
+ JP_MN =
406
+ T.let(
407
+ :jp_mn,
408
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
409
+ )
410
+ KR_BRN =
411
+ T.let(
412
+ :kr_brn,
413
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
414
+ )
415
+ KR_CRN =
416
+ T.let(
417
+ :kr_crn,
418
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
419
+ )
420
+ KR_RRN =
421
+ T.let(
422
+ :kr_rrn,
423
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
424
+ )
425
+ LI_PEID =
426
+ T.let(
427
+ :li_peid,
428
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
429
+ )
430
+ LT_AK =
431
+ T.let(
432
+ :lt_ak,
433
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
434
+ )
435
+ LT_JAK =
436
+ T.let(
437
+ :lt_jak,
438
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
439
+ )
440
+ LU_MTC =
441
+ T.let(
442
+ :lu_mtc,
443
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
444
+ )
445
+ LU_VAT =
446
+ T.let(
447
+ :lu_vat,
448
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
449
+ )
450
+ LV_PK =
451
+ T.let(
452
+ :lv_pk,
453
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
454
+ )
455
+ LV_RN =
456
+ T.let(
457
+ :lv_rn,
458
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
459
+ )
460
+ MT_TIN =
461
+ T.let(
462
+ :mt_tin,
463
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
464
+ )
465
+ MT_VAT =
466
+ T.let(
467
+ :mt_vat,
468
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
469
+ )
470
+ MX_CURP =
471
+ T.let(
472
+ :mx_curp,
473
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
474
+ )
475
+ MX_INE =
476
+ T.let(
477
+ :mx_ine,
478
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
479
+ )
480
+ MX_RFC =
481
+ T.let(
482
+ :mx_rfc,
483
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
484
+ )
485
+ NATIONAL_ID =
486
+ T.let(
487
+ :national_id,
488
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
489
+ )
490
+ NL_BSN =
491
+ T.let(
492
+ :nl_bsn,
493
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
494
+ )
495
+ NL_BTW =
496
+ T.let(
497
+ :nl_btw,
498
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
499
+ )
500
+ NL_RSIN =
501
+ T.let(
502
+ :nl_rsin,
503
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
504
+ )
505
+ NO_FDN =
506
+ T.let(
507
+ :no_fdn,
508
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
509
+ )
510
+ NO_MVA =
511
+ T.let(
512
+ :no_mva,
513
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
514
+ )
515
+ NO_ORGNR =
516
+ T.let(
517
+ :no_orgnr,
518
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
519
+ )
520
+ NZ_IRD =
521
+ T.let(
522
+ :nz_ird,
523
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
524
+ )
525
+ PASSPORT =
526
+ T.let(
527
+ :passport,
528
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
529
+ )
530
+ PL_NIP =
531
+ T.let(
532
+ :pl_nip,
533
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
534
+ )
535
+ PL_PESEL =
536
+ T.let(
537
+ :pl_pesel,
538
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
539
+ )
540
+ PT_NIF =
541
+ T.let(
542
+ :pt_nif,
543
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
544
+ )
545
+ RO_CNP =
546
+ T.let(
547
+ :ro_cnp,
548
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
549
+ )
550
+ RO_CUI =
551
+ T.let(
552
+ :ro_cui,
553
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
554
+ )
555
+ SA_TIN =
556
+ T.let(
557
+ :sa_tin,
558
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
559
+ )
560
+ SA_VAT =
561
+ T.let(
562
+ :sa_vat,
563
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
564
+ )
565
+ SE_ORGNR =
566
+ T.let(
567
+ :se_orgnr,
568
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
569
+ )
570
+ SE_PNMR =
571
+ T.let(
572
+ :se_pnmr,
573
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
574
+ )
575
+ SG_FIN =
576
+ T.let(
577
+ :sg_fin,
578
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
579
+ )
580
+ SG_NRIC =
581
+ T.let(
582
+ :sg_nric,
583
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
584
+ )
585
+ SG_UEN =
586
+ T.let(
587
+ :sg_uen,
588
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
589
+ )
590
+ SI_DAV =
591
+ T.let(
592
+ :si_dav,
593
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
594
+ )
595
+ SI_TIN =
596
+ T.let(
597
+ :si_tin,
598
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
599
+ )
600
+ SK_ICO =
601
+ T.let(
602
+ :sk_ico,
603
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
604
+ )
605
+ SK_RC =
606
+ T.let(
607
+ :sk_rc,
608
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
609
+ )
610
+ US_EIN =
611
+ T.let(
612
+ :us_ein,
613
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
614
+ )
615
+ US_ITIN =
616
+ T.let(
617
+ :us_itin,
618
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
619
+ )
620
+ US_SSN =
621
+ T.let(
622
+ :us_ssn,
623
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
624
+ )
625
+ UY_RUT =
626
+ T.let(
627
+ :uy_rut,
628
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
629
+ )
630
+ VN_TIN =
631
+ T.let(
632
+ :vn_tin,
633
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
634
+ )
635
+
636
+ sig do
637
+ override.returns(
638
+ T::Array[
639
+ ModernTreasury::IdentificationCreateParams::IDType::TaggedSymbol
640
+ ]
641
+ )
642
+ end
643
+ def self.values
644
+ end
645
+ end
646
+
647
+ class Document < ModernTreasury::Internal::Type::BaseModel
648
+ OrHash =
649
+ T.type_alias do
650
+ T.any(
651
+ ModernTreasury::IdentificationCreateParams::Document,
652
+ ModernTreasury::Internal::AnyHash
653
+ )
654
+ end
655
+
656
+ # A category given to the document, can be `null`.
657
+ sig do
658
+ returns(
659
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType::OrSymbol
660
+ )
661
+ end
662
+ attr_accessor :document_type
663
+
664
+ # Base64-encoded file content for the document.
665
+ sig { returns(String) }
666
+ attr_accessor :file_data
667
+
668
+ # The original filename of the document.
669
+ sig { returns(T.nilable(String)) }
670
+ attr_reader :filename
671
+
672
+ sig { params(filename: String).void }
673
+ attr_writer :filename
674
+
675
+ sig do
676
+ params(
677
+ document_type:
678
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType::OrSymbol,
679
+ file_data: String,
680
+ filename: String
681
+ ).returns(T.attached_class)
682
+ end
683
+ def self.new(
684
+ # A category given to the document, can be `null`.
685
+ document_type:,
686
+ # Base64-encoded file content for the document.
687
+ file_data:,
688
+ # The original filename of the document.
689
+ filename: nil
690
+ )
691
+ end
692
+
693
+ sig do
694
+ override.returns(
695
+ {
696
+ document_type:
697
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType::OrSymbol,
698
+ file_data: String,
699
+ filename: String
700
+ }
701
+ )
702
+ end
703
+ def to_hash
704
+ end
705
+
706
+ # A category given to the document, can be `null`.
707
+ module DocumentType
708
+ extend ModernTreasury::Internal::Type::Enum
709
+
710
+ TaggedSymbol =
711
+ T.type_alias do
712
+ T.all(
713
+ Symbol,
714
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType
715
+ )
716
+ end
717
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
718
+
719
+ ARTICLES_OF_INCORPORATION =
720
+ T.let(
721
+ :articles_of_incorporation,
722
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType::TaggedSymbol
723
+ )
724
+ CERTIFICATE_OF_GOOD_STANDING =
725
+ T.let(
726
+ :certificate_of_good_standing,
727
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType::TaggedSymbol
728
+ )
729
+ EIN_LETTER =
730
+ T.let(
731
+ :ein_letter,
732
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType::TaggedSymbol
733
+ )
734
+ GENERIC =
735
+ T.let(
736
+ :generic,
737
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType::TaggedSymbol
738
+ )
739
+ IDENTIFICATION_BACK =
740
+ T.let(
741
+ :identification_back,
742
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType::TaggedSymbol
743
+ )
744
+ IDENTIFICATION_FRONT =
745
+ T.let(
746
+ :identification_front,
747
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType::TaggedSymbol
748
+ )
749
+ PROOF_OF_ADDRESS =
750
+ T.let(
751
+ :proof_of_address,
752
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType::TaggedSymbol
753
+ )
754
+
755
+ sig do
756
+ override.returns(
757
+ T::Array[
758
+ ModernTreasury::IdentificationCreateParams::Document::DocumentType::TaggedSymbol
759
+ ]
760
+ )
761
+ end
762
+ def self.values
763
+ end
764
+ end
765
+ end
766
+ end
767
+ end
768
+ end