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