modern_treasury 0.29.3 → 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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -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/legal_entity.rb +3 -207
  11. data/lib/modern_treasury/models.rb +8 -0
  12. data/lib/modern_treasury/resources/identifications.rb +106 -0
  13. data/lib/modern_treasury/version.rb +1 -1
  14. data/lib/modern_treasury.rb +5 -0
  15. data/rbi/modern_treasury/client.rbi +3 -0
  16. data/rbi/modern_treasury/models/child_legal_entity.rbi +3 -652
  17. data/rbi/modern_treasury/models/identification.rbi +346 -0
  18. data/rbi/modern_treasury/models/identification_create_params.rbi +768 -0
  19. data/rbi/modern_treasury/models/identification_retrieve_params.rbi +38 -0
  20. data/rbi/modern_treasury/models/identification_update_params.rbi +632 -0
  21. data/rbi/modern_treasury/models/legal_entity.rbi +3 -647
  22. data/rbi/modern_treasury/models.rbi +11 -0
  23. data/rbi/modern_treasury/resources/identifications.rbi +94 -0
  24. data/sig/modern_treasury/client.rbs +2 -0
  25. data/sig/modern_treasury/models/child_legal_entity.rbs +4 -282
  26. data/sig/modern_treasury/models/identification.rbs +281 -0
  27. data/sig/modern_treasury/models/identification_create_params.rbs +323 -0
  28. data/sig/modern_treasury/models/identification_retrieve_params.rbs +23 -0
  29. data/sig/modern_treasury/models/identification_update_params.rbs +268 -0
  30. data/sig/modern_treasury/models/legal_entity.rbs +4 -282
  31. data/sig/modern_treasury/models.rbs +8 -0
  32. data/sig/modern_treasury/resources/identifications.rbs +33 -0
  33. metadata +16 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca13f298d19c5423d5cc4b24721225bc51a917d11e3859adbc30283c08fedad0
4
- data.tar.gz: 70998cdf7d1a5cf4a05c9635ae156556b61a56e82d846594b1407cad3edaef3c
3
+ metadata.gz: e754a9b95beb3721de76bb2a77e8c10b2ea522580966ee8cb957f2c92e63ddf1
4
+ data.tar.gz: 9375d75878db29242336ed4c19db9399b1f31e4ffb8ffd9397a5d7a9f2345971
5
5
  SHA512:
6
- metadata.gz: cc47dcd3c68747d3e47206e2cba66422ed1eebd206dc453b5d1f51b136f0415a2914b88f2ffd40beb5335a2970cbf32db5aa24e58ffbb6a47189af0c880728c5
7
- data.tar.gz: d21187e3eb61f0124545351f322958c1690d1412a9c1ad5f7cf3e002e56601c19bcaa7e37043cc324598b22e829e02fc89a566d7df4d3c6a790f56a8a1216743
6
+ metadata.gz: 221d2370a277d4a081c508da5075839b4d5bf1faa393303cded19efa12e2946765dd78e41d2e4cf482f967c80798b8bb9108d75528458e85c8ad0d810bace073
7
+ data.tar.gz: 96b7e18b808731973a7d55009b4f612a284335901e5bff3b846eca731cca7b0a18130d43a83b78e475911c9dc476644e514970aa6111c21cf991fed92cbc9c59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.30.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.29.3...v0.30.0) (2026-09-04)
4
+
5
+
6
+ ### Features
7
+
8
+ * regenerate SDKs from 44e4a18bd45d4fcf76033c7c359c4acbb025555d ([a487b91](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a487b91b2eea97e399ffadb161339f6a016a55ef))
9
+
10
+
11
+ ### Chores
12
+
13
+ * regenerate SDKs from 403d503f89767311f19edef8867e77005af78284 ([a396a07](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/a396a077c10ddb467051717dbc9549fb7b756d2c))
14
+
3
15
  ## [0.29.3](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.29.2...v0.29.3) (2026-09-04)
4
16
 
5
17
 
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "modern_treasury", "~> 0.29.3"
27
+ gem "modern_treasury", "~> 0.30.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -147,6 +147,9 @@ module ModernTreasury
147
147
  # @return [ModernTreasury::Resources::VirtualAccountSettings]
148
148
  attr_reader :virtual_account_settings
149
149
 
150
+ # @return [ModernTreasury::Resources::Identifications]
151
+ attr_reader :identifications
152
+
150
153
  # A test endpoint often used to confirm credentials and headers are being passed
151
154
  # in correctly.
152
155
  #
@@ -285,6 +288,7 @@ module ModernTreasury
285
288
  @holds = ModernTreasury::Resources::Holds.new(client: self)
286
289
  @cases = ModernTreasury::Resources::Cases.new(client: self)
287
290
  @virtual_account_settings = ModernTreasury::Resources::VirtualAccountSettings.new(client: self)
291
+ @identifications = ModernTreasury::Resources::Identifications.new(client: self)
288
292
  end
289
293
  end
290
294
  end
@@ -118,9 +118,8 @@ module ModernTreasury
118
118
  # @!attribute identifications
119
119
  # A list of identifications for the legal entity.
120
120
  #
121
- # @return [Array<ModernTreasury::Models::ChildLegalEntity::Identification>]
122
- required :identifications,
123
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ChildLegalEntity::Identification] }
121
+ # @return [Array<ModernTreasury::Models::Identification>]
122
+ required :identifications, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Identification] }
124
123
 
125
124
  # @!attribute industry_classifications
126
125
  # A list of industry classifications for the legal entity.
@@ -349,7 +348,7 @@ module ModernTreasury
349
348
  #
350
349
  # @param first_name [String, nil] An individual's first name.
351
350
  #
352
- # @param identifications [Array<ModernTreasury::Models::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
351
+ # @param identifications [Array<ModernTreasury::Models::Identification>] A list of identifications for the legal entity.
353
352
  #
354
353
  # @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
355
354
  #
@@ -553,209 +552,6 @@ module ModernTreasury
553
552
  # @return [Array<Symbol>]
554
553
  end
555
554
 
556
- class Identification < ModernTreasury::Internal::Type::BaseModel
557
- # @!attribute id
558
- #
559
- # @return [String]
560
- required :id, String
561
-
562
- # @!attribute created_at
563
- #
564
- # @return [Time]
565
- required :created_at, Time
566
-
567
- # @!attribute discarded_at
568
- #
569
- # @return [Time, nil]
570
- required :discarded_at, Time, nil?: true
571
-
572
- # @!attribute documents
573
- #
574
- # @return [Array<ModernTreasury::Models::Document>]
575
- required :documents, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Document] }
576
-
577
- # @!attribute expiration_date
578
- # The date when the Identification is no longer considered valid by the issuing
579
- # authority.
580
- #
581
- # @return [Date, nil]
582
- required :expiration_date, Date, nil?: true
583
-
584
- # @!attribute id_type
585
- # The type of ID number.
586
- #
587
- # @return [Symbol, ModernTreasury::Models::ChildLegalEntity::Identification::IDType]
588
- required :id_type, enum: -> { ModernTreasury::ChildLegalEntity::Identification::IDType }
589
-
590
- # @!attribute issuing_country
591
- # The ISO 3166-1 alpha-2 country code of the country that issued the
592
- # identification
593
- #
594
- # @return [String, nil]
595
- required :issuing_country, String, nil?: true
596
-
597
- # @!attribute issuing_region
598
- # The region in which the identifcation was issued.
599
- #
600
- # @return [String, nil]
601
- required :issuing_region, String, nil?: true
602
-
603
- # @!attribute live_mode
604
- # This field will be true if this object exists in the live environment or false
605
- # if it exists in the test environment.
606
- #
607
- # @return [Boolean]
608
- required :live_mode, ModernTreasury::Internal::Type::Boolean
609
-
610
- # @!attribute object
611
- #
612
- # @return [String]
613
- required :object, String
614
-
615
- # @!attribute updated_at
616
- #
617
- # @return [Time]
618
- required :updated_at, Time
619
-
620
- # @!method initialize(id:, created_at:, discarded_at:, documents:, expiration_date:, id_type:, issuing_country:, issuing_region:, live_mode:, object:, updated_at:)
621
- # Some parameter documentations has been truncated, see
622
- # {ModernTreasury::Models::ChildLegalEntity::Identification} for more details.
623
- #
624
- # @param id [String]
625
- #
626
- # @param created_at [Time]
627
- #
628
- # @param discarded_at [Time, nil]
629
- #
630
- # @param documents [Array<ModernTreasury::Models::Document>]
631
- #
632
- # @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
633
- #
634
- # @param id_type [Symbol, ModernTreasury::Models::ChildLegalEntity::Identification::IDType] The type of ID number.
635
- #
636
- # @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
637
- #
638
- # @param issuing_region [String, nil] The region in which the identifcation was issued.
639
- #
640
- # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
641
- #
642
- # @param object [String]
643
- #
644
- # @param updated_at [Time]
645
-
646
- # The type of ID number.
647
- #
648
- # @see ModernTreasury::Models::ChildLegalEntity::Identification#id_type
649
- module IDType
650
- extend ModernTreasury::Internal::Type::Enum
651
-
652
- AR_CUIL = :ar_cuil
653
- AR_CUIT = :ar_cuit
654
- AT_ATIN = :at_atin
655
- AT_VAT = :at_vat
656
- AU_ABN = :au_abn
657
- AU_TFN = :au_tfn
658
- BE_ENT = :be_ent
659
- BE_NRN = :be_nrn
660
- BR_CNPJ = :br_cnpj
661
- BR_CPF = :br_cpf
662
- CA_BN = :ca_bn
663
- CA_SIN = :ca_sin
664
- CH_AHV = :ch_ahv
665
- CH_UID = :ch_uid
666
- CL_RUN = :cl_run
667
- CL_RUT = :cl_rut
668
- CO_CEDULAS = :co_cedulas
669
- CO_NIT = :co_nit
670
- CY_TIN = :cy_tin
671
- CZ_ICO = :cz_ico
672
- CZ_RC = :cz_rc
673
- DE_STID = :de_stid
674
- DE_STNR = :de_stnr
675
- DE_VAT = :de_vat
676
- DK_CPR = :dk_cpr
677
- DK_CVR = :dk_cvr
678
- DRIVERS_LICENSE = :drivers_license
679
- EE_IK = :ee_ik
680
- EE_RK = :ee_rk
681
- ES_NIE = :es_nie
682
- ES_NIF = :es_nif
683
- FI_HETU = :fi_hetu
684
- FI_YTJ = :fi_ytj
685
- FR_NIF = :fr_nif
686
- FR_SIREN = :fr_siren
687
- FR_VAT = :fr_vat
688
- GB_NINO = :gb_nino
689
- GB_UTR = :gb_utr
690
- GB_VAT = :gb_vat
691
- GENERIC_INTERNATIONAL = :generic_international
692
- GR_VAT = :gr_vat
693
- HK_BRN = :hk_brn
694
- HK_HKID = :hk_hkid
695
- HN_ID = :hn_id
696
- HN_RTN = :hn_rtn
697
- HR_OIB = :hr_oib
698
- HU_ADJ = :hu_adj
699
- HU_ANUM = :hu_anum
700
- IE_PPS = :ie_pps
701
- IE_TRN = :ie_trn
702
- IN_LEI = :in_lei
703
- IS_KNT = :is_knt
704
- IT_CF = :it_cf
705
- IT_PIVA = :it_piva
706
- JP_HB = :jp_hb
707
- JP_MN = :jp_mn
708
- KR_BRN = :kr_brn
709
- KR_CRN = :kr_crn
710
- KR_RRN = :kr_rrn
711
- LI_PEID = :li_peid
712
- LT_AK = :lt_ak
713
- LT_JAK = :lt_jak
714
- LU_MTC = :lu_mtc
715
- LU_VAT = :lu_vat
716
- LV_PK = :lv_pk
717
- LV_RN = :lv_rn
718
- MT_TIN = :mt_tin
719
- MT_VAT = :mt_vat
720
- MX_CURP = :mx_curp
721
- MX_INE = :mx_ine
722
- MX_RFC = :mx_rfc
723
- NATIONAL_ID = :national_id
724
- NL_BSN = :nl_bsn
725
- NL_BTW = :nl_btw
726
- NL_RSIN = :nl_rsin
727
- NO_FDN = :no_fdn
728
- NO_MVA = :no_mva
729
- NO_ORGNR = :no_orgnr
730
- NZ_IRD = :nz_ird
731
- PASSPORT = :passport
732
- PL_NIP = :pl_nip
733
- PL_PESEL = :pl_pesel
734
- PT_NIF = :pt_nif
735
- RO_CNP = :ro_cnp
736
- RO_CUI = :ro_cui
737
- SA_TIN = :sa_tin
738
- SA_VAT = :sa_vat
739
- SE_ORGNR = :se_orgnr
740
- SE_PNMR = :se_pnmr
741
- SG_FIN = :sg_fin
742
- SG_NRIC = :sg_nric
743
- SG_UEN = :sg_uen
744
- SI_DAV = :si_dav
745
- SI_TIN = :si_tin
746
- SK_ICO = :sk_ico
747
- SK_RC = :sk_rc
748
- US_EIN = :us_ein
749
- US_ITIN = :us_itin
750
- US_SSN = :us_ssn
751
- UY_RUT = :uy_rut
752
- VN_TIN = :vn_tin
753
-
754
- # @!method self.values
755
- # @return [Array<Symbol>]
756
- end
757
- end
758
-
759
555
  # The type of legal entity.
760
556
  #
761
557
  # @see ModernTreasury::Models::ChildLegalEntity#legal_entity_type
@@ -0,0 +1,209 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ # @see ModernTreasury::Resources::Identifications#create
6
+ class Identification < ModernTreasury::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute created_at
13
+ #
14
+ # @return [Time]
15
+ required :created_at, Time
16
+
17
+ # @!attribute discarded_at
18
+ #
19
+ # @return [Time, nil]
20
+ required :discarded_at, Time, nil?: true
21
+
22
+ # @!attribute documents
23
+ #
24
+ # @return [Array<ModernTreasury::Models::Document>]
25
+ required :documents, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Document] }
26
+
27
+ # @!attribute expiration_date
28
+ # The date when the Identification is no longer considered valid by the issuing
29
+ # authority.
30
+ #
31
+ # @return [Date, nil]
32
+ required :expiration_date, Date, nil?: true
33
+
34
+ # @!attribute id_type
35
+ # The type of ID number.
36
+ #
37
+ # @return [Symbol, ModernTreasury::Models::Identification::IDType]
38
+ required :id_type, enum: -> { ModernTreasury::Identification::IDType }
39
+
40
+ # @!attribute issuing_country
41
+ # The ISO 3166-1 alpha-2 country code of the country that issued the
42
+ # identification
43
+ #
44
+ # @return [String, nil]
45
+ required :issuing_country, String, nil?: true
46
+
47
+ # @!attribute issuing_region
48
+ # The region in which the identifcation was issued.
49
+ #
50
+ # @return [String, nil]
51
+ required :issuing_region, String, nil?: true
52
+
53
+ # @!attribute live_mode
54
+ # This field will be true if this object exists in the live environment or false
55
+ # if it exists in the test environment.
56
+ #
57
+ # @return [Boolean]
58
+ required :live_mode, ModernTreasury::Internal::Type::Boolean
59
+
60
+ # @!attribute object
61
+ #
62
+ # @return [String]
63
+ required :object, String
64
+
65
+ # @!attribute updated_at
66
+ #
67
+ # @return [Time]
68
+ required :updated_at, Time
69
+
70
+ # @!method initialize(id:, created_at:, discarded_at:, documents:, expiration_date:, id_type:, issuing_country:, issuing_region:, live_mode:, object:, updated_at:)
71
+ # Some parameter documentations has been truncated, see
72
+ # {ModernTreasury::Models::Identification} for more details.
73
+ #
74
+ # @param id [String]
75
+ #
76
+ # @param created_at [Time]
77
+ #
78
+ # @param discarded_at [Time, nil]
79
+ #
80
+ # @param documents [Array<ModernTreasury::Models::Document>]
81
+ #
82
+ # @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
83
+ #
84
+ # @param id_type [Symbol, ModernTreasury::Models::Identification::IDType] The type of ID number.
85
+ #
86
+ # @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
87
+ #
88
+ # @param issuing_region [String, nil] The region in which the identifcation was issued.
89
+ #
90
+ # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
91
+ #
92
+ # @param object [String]
93
+ #
94
+ # @param updated_at [Time]
95
+
96
+ # The type of ID number.
97
+ #
98
+ # @see ModernTreasury::Models::Identification#id_type
99
+ module IDType
100
+ extend ModernTreasury::Internal::Type::Enum
101
+
102
+ AR_CUIL = :ar_cuil
103
+ AR_CUIT = :ar_cuit
104
+ AT_ATIN = :at_atin
105
+ AT_VAT = :at_vat
106
+ AU_ABN = :au_abn
107
+ AU_TFN = :au_tfn
108
+ BE_ENT = :be_ent
109
+ BE_NRN = :be_nrn
110
+ BR_CNPJ = :br_cnpj
111
+ BR_CPF = :br_cpf
112
+ CA_BN = :ca_bn
113
+ CA_SIN = :ca_sin
114
+ CH_AHV = :ch_ahv
115
+ CH_UID = :ch_uid
116
+ CL_RUN = :cl_run
117
+ CL_RUT = :cl_rut
118
+ CO_CEDULAS = :co_cedulas
119
+ CO_NIT = :co_nit
120
+ CY_TIN = :cy_tin
121
+ CZ_ICO = :cz_ico
122
+ CZ_RC = :cz_rc
123
+ DE_STID = :de_stid
124
+ DE_STNR = :de_stnr
125
+ DE_VAT = :de_vat
126
+ DK_CPR = :dk_cpr
127
+ DK_CVR = :dk_cvr
128
+ DRIVERS_LICENSE = :drivers_license
129
+ EE_IK = :ee_ik
130
+ EE_RK = :ee_rk
131
+ ES_NIE = :es_nie
132
+ ES_NIF = :es_nif
133
+ FI_HETU = :fi_hetu
134
+ FI_YTJ = :fi_ytj
135
+ FR_NIF = :fr_nif
136
+ FR_SIREN = :fr_siren
137
+ FR_VAT = :fr_vat
138
+ GB_NINO = :gb_nino
139
+ GB_UTR = :gb_utr
140
+ GB_VAT = :gb_vat
141
+ GENERIC_INTERNATIONAL = :generic_international
142
+ GR_VAT = :gr_vat
143
+ HK_BRN = :hk_brn
144
+ HK_HKID = :hk_hkid
145
+ HN_ID = :hn_id
146
+ HN_RTN = :hn_rtn
147
+ HR_OIB = :hr_oib
148
+ HU_ADJ = :hu_adj
149
+ HU_ANUM = :hu_anum
150
+ IE_PPS = :ie_pps
151
+ IE_TRN = :ie_trn
152
+ IN_LEI = :in_lei
153
+ IS_KNT = :is_knt
154
+ IT_CF = :it_cf
155
+ IT_PIVA = :it_piva
156
+ JP_HB = :jp_hb
157
+ JP_MN = :jp_mn
158
+ KR_BRN = :kr_brn
159
+ KR_CRN = :kr_crn
160
+ KR_RRN = :kr_rrn
161
+ LI_PEID = :li_peid
162
+ LT_AK = :lt_ak
163
+ LT_JAK = :lt_jak
164
+ LU_MTC = :lu_mtc
165
+ LU_VAT = :lu_vat
166
+ LV_PK = :lv_pk
167
+ LV_RN = :lv_rn
168
+ MT_TIN = :mt_tin
169
+ MT_VAT = :mt_vat
170
+ MX_CURP = :mx_curp
171
+ MX_INE = :mx_ine
172
+ MX_RFC = :mx_rfc
173
+ NATIONAL_ID = :national_id
174
+ NL_BSN = :nl_bsn
175
+ NL_BTW = :nl_btw
176
+ NL_RSIN = :nl_rsin
177
+ NO_FDN = :no_fdn
178
+ NO_MVA = :no_mva
179
+ NO_ORGNR = :no_orgnr
180
+ NZ_IRD = :nz_ird
181
+ PASSPORT = :passport
182
+ PL_NIP = :pl_nip
183
+ PL_PESEL = :pl_pesel
184
+ PT_NIF = :pt_nif
185
+ RO_CNP = :ro_cnp
186
+ RO_CUI = :ro_cui
187
+ SA_TIN = :sa_tin
188
+ SA_VAT = :sa_vat
189
+ SE_ORGNR = :se_orgnr
190
+ SE_PNMR = :se_pnmr
191
+ SG_FIN = :sg_fin
192
+ SG_NRIC = :sg_nric
193
+ SG_UEN = :sg_uen
194
+ SI_DAV = :si_dav
195
+ SI_TIN = :si_tin
196
+ SK_ICO = :sk_ico
197
+ SK_RC = :sk_rc
198
+ US_EIN = :us_ein
199
+ US_ITIN = :us_itin
200
+ US_SSN = :us_ssn
201
+ UY_RUT = :uy_rut
202
+ VN_TIN = :vn_tin
203
+
204
+ # @!method self.values
205
+ # @return [Array<Symbol>]
206
+ end
207
+ end
208
+ end
209
+ end