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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/README.md +1 -1
- data/lib/modern_treasury/client.rb +4 -0
- data/lib/modern_treasury/models/child_legal_entity.rb +3 -207
- data/lib/modern_treasury/models/identification.rb +209 -0
- data/lib/modern_treasury/models/identification_create_params.rb +231 -0
- data/lib/modern_treasury/models/identification_retrieve_params.rb +20 -0
- data/lib/modern_treasury/models/identification_update_params.rb +176 -0
- data/lib/modern_treasury/models/internal_account_update_params.rb +12 -1
- data/lib/modern_treasury/models/legal_entity.rb +3 -207
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +17 -9
- data/lib/modern_treasury/models/virtual_account_create_params.rb +9 -1
- data/lib/modern_treasury/models.rb +8 -0
- data/lib/modern_treasury/resources/identifications.rb +106 -0
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/legal_entity_associations.rb +5 -3
- data/lib/modern_treasury/resources/virtual_accounts.rb +3 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +5 -0
- data/rbi/modern_treasury/client.rbi +3 -0
- data/rbi/modern_treasury/models/child_legal_entity.rbi +3 -652
- data/rbi/modern_treasury/models/identification.rbi +346 -0
- data/rbi/modern_treasury/models/identification_create_params.rbi +768 -0
- data/rbi/modern_treasury/models/identification_retrieve_params.rbi +38 -0
- data/rbi/modern_treasury/models/identification_update_params.rbi +632 -0
- data/rbi/modern_treasury/models/internal_account_update_params.rbi +17 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +3 -647
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +26 -8
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +11 -0
- data/rbi/modern_treasury/models.rbi +11 -0
- data/rbi/modern_treasury/resources/identifications.rbi +94 -0
- data/rbi/modern_treasury/resources/internal_accounts.rbi +6 -0
- data/rbi/modern_treasury/resources/legal_entity_associations.rbi +6 -3
- data/rbi/modern_treasury/resources/virtual_accounts.rbi +3 -0
- data/sig/modern_treasury/client.rbs +2 -0
- data/sig/modern_treasury/models/child_legal_entity.rbs +4 -282
- data/sig/modern_treasury/models/identification.rbs +281 -0
- data/sig/modern_treasury/models/identification_create_params.rbs +323 -0
- data/sig/modern_treasury/models/identification_retrieve_params.rbs +23 -0
- data/sig/modern_treasury/models/identification_update_params.rbs +268 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +9 -0
- data/sig/modern_treasury/models/legal_entity.rbs +4 -282
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +16 -5
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +7 -0
- data/sig/modern_treasury/models.rbs +8 -0
- data/sig/modern_treasury/resources/identifications.rbs +33 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +2 -1
- data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e754a9b95beb3721de76bb2a77e8c10b2ea522580966ee8cb957f2c92e63ddf1
|
|
4
|
+
data.tar.gz: 9375d75878db29242336ed4c19db9399b1f31e4ffb8ffd9397a5d7a9f2345971
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 221d2370a277d4a081c508da5075839b4d5bf1faa393303cded19efa12e2946765dd78e41d2e4cf482f967c80798b8bb9108d75528458e85c8ad0d810bace073
|
|
7
|
+
data.tar.gz: 96b7e18b808731973a7d55009b4f612a284335901e5bff3b846eca731cca7b0a18130d43a83b78e475911c9dc476644e514970aa6111c21cf991fed92cbc9c59
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
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
|
+
|
|
15
|
+
## [0.29.3](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.29.2...v0.29.3) (2026-09-04)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Chores
|
|
19
|
+
|
|
20
|
+
* regenerate SDKs from 079bb35aed14217b22f7df256b76d32f76de364a ([8dd301d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/8dd301d6dc6bb3a0b6cac3e2c8bd298b493f4c1c))
|
|
21
|
+
* regenerate SDKs from 1ba62719665dfac3a01da68fa4d0f68fe50b8574 ([3aa0e4d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/3aa0e4dc6293c86ecf3f48b038de5dddbac96678))
|
|
22
|
+
* regenerate SDKs from 343d886c636954e7e0870418b38898fc39de2698 ([0d2876a](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/0d2876a60c4fb733b574ee5eaf83efff1cd791d0))
|
|
23
|
+
* regenerate SDKs from 5b92822da54c5ed47a5ec70624eae07754e34457 ([1031e52](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/1031e522e23ef02bfe9f09774b108d7e9d92b629))
|
|
24
|
+
* regenerate SDKs from 76bfe6ef7bf238af0c68f1ff514b7c6d29042662 ([4af6ebf](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/4af6ebf4a004d6e6c60ae6fa5fa7a5cff0f6ac8c))
|
|
25
|
+
* regenerate SDKs from b51aa69627e6aafc44c4609a7574b9068a894b7c ([94e14e3](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/94e14e3e43b69c6645143eff10b2bf099eeed91d))
|
|
26
|
+
* regenerate SDKs from d52e6f7cb7821cecbe9ad9e02712f9b8c190d80d ([b09cc35](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b09cc357b65cbf6c82970f3b03fa02f49fad9a4f))
|
|
27
|
+
|
|
3
28
|
## [0.29.2](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.29.1...v0.29.2) (2026-08-31)
|
|
4
29
|
|
|
5
30
|
|
data/README.md
CHANGED
|
@@ -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::
|
|
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::
|
|
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
|