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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class IdentificationRetrieveParams < 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::IdentificationRetrieveParams,
|
|
13
|
+
ModernTreasury::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
id: String,
|
|
23
|
+
request_options: ModernTreasury::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(id:, request_options: {})
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
override.returns(
|
|
31
|
+
{ id: String, request_options: ModernTreasury::RequestOptions }
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
def to_hash
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,632 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class IdentificationUpdateParams < 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::IdentificationUpdateParams,
|
|
13
|
+
ModernTreasury::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
# The date when the Identification is no longer considered valid by the issuing
|
|
21
|
+
# authority.
|
|
22
|
+
sig { returns(T.nilable(Date)) }
|
|
23
|
+
attr_accessor :expiration_date
|
|
24
|
+
|
|
25
|
+
# The ID number of identification document.
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :id_number
|
|
28
|
+
|
|
29
|
+
sig { params(id_number: String).void }
|
|
30
|
+
attr_writer :id_number
|
|
31
|
+
|
|
32
|
+
# The type of ID number.
|
|
33
|
+
sig do
|
|
34
|
+
returns(
|
|
35
|
+
T.nilable(
|
|
36
|
+
ModernTreasury::IdentificationUpdateParams::IDType::OrSymbol
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
attr_reader :id_type
|
|
41
|
+
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
id_type: ModernTreasury::IdentificationUpdateParams::IDType::OrSymbol
|
|
45
|
+
).void
|
|
46
|
+
end
|
|
47
|
+
attr_writer :id_type
|
|
48
|
+
|
|
49
|
+
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
50
|
+
# identification
|
|
51
|
+
sig { returns(T.nilable(String)) }
|
|
52
|
+
attr_accessor :issuing_country
|
|
53
|
+
|
|
54
|
+
# The region in which the identifcation was issued.
|
|
55
|
+
sig { returns(T.nilable(String)) }
|
|
56
|
+
attr_accessor :issuing_region
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
params(
|
|
60
|
+
id: String,
|
|
61
|
+
expiration_date: T.nilable(Date),
|
|
62
|
+
id_number: String,
|
|
63
|
+
id_type: ModernTreasury::IdentificationUpdateParams::IDType::OrSymbol,
|
|
64
|
+
issuing_country: T.nilable(String),
|
|
65
|
+
issuing_region: T.nilable(String),
|
|
66
|
+
request_options: ModernTreasury::RequestOptions::OrHash
|
|
67
|
+
).returns(T.attached_class)
|
|
68
|
+
end
|
|
69
|
+
def self.new(
|
|
70
|
+
id:,
|
|
71
|
+
# The date when the Identification is no longer considered valid by the issuing
|
|
72
|
+
# authority.
|
|
73
|
+
expiration_date: nil,
|
|
74
|
+
# The ID number of identification document.
|
|
75
|
+
id_number: nil,
|
|
76
|
+
# The type of ID number.
|
|
77
|
+
id_type: nil,
|
|
78
|
+
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
79
|
+
# identification
|
|
80
|
+
issuing_country: nil,
|
|
81
|
+
# The region in which the identifcation was issued.
|
|
82
|
+
issuing_region: nil,
|
|
83
|
+
request_options: {}
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
sig do
|
|
88
|
+
override.returns(
|
|
89
|
+
{
|
|
90
|
+
id: String,
|
|
91
|
+
expiration_date: T.nilable(Date),
|
|
92
|
+
id_number: String,
|
|
93
|
+
id_type:
|
|
94
|
+
ModernTreasury::IdentificationUpdateParams::IDType::OrSymbol,
|
|
95
|
+
issuing_country: T.nilable(String),
|
|
96
|
+
issuing_region: T.nilable(String),
|
|
97
|
+
request_options: ModernTreasury::RequestOptions
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
def to_hash
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# The type of ID number.
|
|
105
|
+
module IDType
|
|
106
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
107
|
+
|
|
108
|
+
TaggedSymbol =
|
|
109
|
+
T.type_alias do
|
|
110
|
+
T.all(Symbol, ModernTreasury::IdentificationUpdateParams::IDType)
|
|
111
|
+
end
|
|
112
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
113
|
+
|
|
114
|
+
AR_CUIL =
|
|
115
|
+
T.let(
|
|
116
|
+
:ar_cuil,
|
|
117
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
118
|
+
)
|
|
119
|
+
AR_CUIT =
|
|
120
|
+
T.let(
|
|
121
|
+
:ar_cuit,
|
|
122
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
123
|
+
)
|
|
124
|
+
AT_ATIN =
|
|
125
|
+
T.let(
|
|
126
|
+
:at_atin,
|
|
127
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
128
|
+
)
|
|
129
|
+
AT_VAT =
|
|
130
|
+
T.let(
|
|
131
|
+
:at_vat,
|
|
132
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
133
|
+
)
|
|
134
|
+
AU_ABN =
|
|
135
|
+
T.let(
|
|
136
|
+
:au_abn,
|
|
137
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
138
|
+
)
|
|
139
|
+
AU_TFN =
|
|
140
|
+
T.let(
|
|
141
|
+
:au_tfn,
|
|
142
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
143
|
+
)
|
|
144
|
+
BE_ENT =
|
|
145
|
+
T.let(
|
|
146
|
+
:be_ent,
|
|
147
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
148
|
+
)
|
|
149
|
+
BE_NRN =
|
|
150
|
+
T.let(
|
|
151
|
+
:be_nrn,
|
|
152
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
153
|
+
)
|
|
154
|
+
BR_CNPJ =
|
|
155
|
+
T.let(
|
|
156
|
+
:br_cnpj,
|
|
157
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
158
|
+
)
|
|
159
|
+
BR_CPF =
|
|
160
|
+
T.let(
|
|
161
|
+
:br_cpf,
|
|
162
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
163
|
+
)
|
|
164
|
+
CA_BN =
|
|
165
|
+
T.let(
|
|
166
|
+
:ca_bn,
|
|
167
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
168
|
+
)
|
|
169
|
+
CA_SIN =
|
|
170
|
+
T.let(
|
|
171
|
+
:ca_sin,
|
|
172
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
173
|
+
)
|
|
174
|
+
CH_AHV =
|
|
175
|
+
T.let(
|
|
176
|
+
:ch_ahv,
|
|
177
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
178
|
+
)
|
|
179
|
+
CH_UID =
|
|
180
|
+
T.let(
|
|
181
|
+
:ch_uid,
|
|
182
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
183
|
+
)
|
|
184
|
+
CL_RUN =
|
|
185
|
+
T.let(
|
|
186
|
+
:cl_run,
|
|
187
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
188
|
+
)
|
|
189
|
+
CL_RUT =
|
|
190
|
+
T.let(
|
|
191
|
+
:cl_rut,
|
|
192
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
193
|
+
)
|
|
194
|
+
CO_CEDULAS =
|
|
195
|
+
T.let(
|
|
196
|
+
:co_cedulas,
|
|
197
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
198
|
+
)
|
|
199
|
+
CO_NIT =
|
|
200
|
+
T.let(
|
|
201
|
+
:co_nit,
|
|
202
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
203
|
+
)
|
|
204
|
+
CY_TIN =
|
|
205
|
+
T.let(
|
|
206
|
+
:cy_tin,
|
|
207
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
208
|
+
)
|
|
209
|
+
CZ_ICO =
|
|
210
|
+
T.let(
|
|
211
|
+
:cz_ico,
|
|
212
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
213
|
+
)
|
|
214
|
+
CZ_RC =
|
|
215
|
+
T.let(
|
|
216
|
+
:cz_rc,
|
|
217
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
218
|
+
)
|
|
219
|
+
DE_STID =
|
|
220
|
+
T.let(
|
|
221
|
+
:de_stid,
|
|
222
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
223
|
+
)
|
|
224
|
+
DE_STNR =
|
|
225
|
+
T.let(
|
|
226
|
+
:de_stnr,
|
|
227
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
228
|
+
)
|
|
229
|
+
DE_VAT =
|
|
230
|
+
T.let(
|
|
231
|
+
:de_vat,
|
|
232
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
233
|
+
)
|
|
234
|
+
DK_CPR =
|
|
235
|
+
T.let(
|
|
236
|
+
:dk_cpr,
|
|
237
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
238
|
+
)
|
|
239
|
+
DK_CVR =
|
|
240
|
+
T.let(
|
|
241
|
+
:dk_cvr,
|
|
242
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
243
|
+
)
|
|
244
|
+
DRIVERS_LICENSE =
|
|
245
|
+
T.let(
|
|
246
|
+
:drivers_license,
|
|
247
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
248
|
+
)
|
|
249
|
+
EE_IK =
|
|
250
|
+
T.let(
|
|
251
|
+
:ee_ik,
|
|
252
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
253
|
+
)
|
|
254
|
+
EE_RK =
|
|
255
|
+
T.let(
|
|
256
|
+
:ee_rk,
|
|
257
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
258
|
+
)
|
|
259
|
+
ES_NIE =
|
|
260
|
+
T.let(
|
|
261
|
+
:es_nie,
|
|
262
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
263
|
+
)
|
|
264
|
+
ES_NIF =
|
|
265
|
+
T.let(
|
|
266
|
+
:es_nif,
|
|
267
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
268
|
+
)
|
|
269
|
+
FI_HETU =
|
|
270
|
+
T.let(
|
|
271
|
+
:fi_hetu,
|
|
272
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
273
|
+
)
|
|
274
|
+
FI_YTJ =
|
|
275
|
+
T.let(
|
|
276
|
+
:fi_ytj,
|
|
277
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
278
|
+
)
|
|
279
|
+
FR_NIF =
|
|
280
|
+
T.let(
|
|
281
|
+
:fr_nif,
|
|
282
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
283
|
+
)
|
|
284
|
+
FR_SIREN =
|
|
285
|
+
T.let(
|
|
286
|
+
:fr_siren,
|
|
287
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
288
|
+
)
|
|
289
|
+
FR_VAT =
|
|
290
|
+
T.let(
|
|
291
|
+
:fr_vat,
|
|
292
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
293
|
+
)
|
|
294
|
+
GB_NINO =
|
|
295
|
+
T.let(
|
|
296
|
+
:gb_nino,
|
|
297
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
298
|
+
)
|
|
299
|
+
GB_UTR =
|
|
300
|
+
T.let(
|
|
301
|
+
:gb_utr,
|
|
302
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
303
|
+
)
|
|
304
|
+
GB_VAT =
|
|
305
|
+
T.let(
|
|
306
|
+
:gb_vat,
|
|
307
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
308
|
+
)
|
|
309
|
+
GENERIC_INTERNATIONAL =
|
|
310
|
+
T.let(
|
|
311
|
+
:generic_international,
|
|
312
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
313
|
+
)
|
|
314
|
+
GR_VAT =
|
|
315
|
+
T.let(
|
|
316
|
+
:gr_vat,
|
|
317
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
318
|
+
)
|
|
319
|
+
HK_BRN =
|
|
320
|
+
T.let(
|
|
321
|
+
:hk_brn,
|
|
322
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
323
|
+
)
|
|
324
|
+
HK_HKID =
|
|
325
|
+
T.let(
|
|
326
|
+
:hk_hkid,
|
|
327
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
328
|
+
)
|
|
329
|
+
HN_ID =
|
|
330
|
+
T.let(
|
|
331
|
+
:hn_id,
|
|
332
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
333
|
+
)
|
|
334
|
+
HN_RTN =
|
|
335
|
+
T.let(
|
|
336
|
+
:hn_rtn,
|
|
337
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
338
|
+
)
|
|
339
|
+
HR_OIB =
|
|
340
|
+
T.let(
|
|
341
|
+
:hr_oib,
|
|
342
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
343
|
+
)
|
|
344
|
+
HU_ADJ =
|
|
345
|
+
T.let(
|
|
346
|
+
:hu_adj,
|
|
347
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
348
|
+
)
|
|
349
|
+
HU_ANUM =
|
|
350
|
+
T.let(
|
|
351
|
+
:hu_anum,
|
|
352
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
353
|
+
)
|
|
354
|
+
IE_PPS =
|
|
355
|
+
T.let(
|
|
356
|
+
:ie_pps,
|
|
357
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
358
|
+
)
|
|
359
|
+
IE_TRN =
|
|
360
|
+
T.let(
|
|
361
|
+
:ie_trn,
|
|
362
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
363
|
+
)
|
|
364
|
+
IN_LEI =
|
|
365
|
+
T.let(
|
|
366
|
+
:in_lei,
|
|
367
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
368
|
+
)
|
|
369
|
+
IS_KNT =
|
|
370
|
+
T.let(
|
|
371
|
+
:is_knt,
|
|
372
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
373
|
+
)
|
|
374
|
+
IT_CF =
|
|
375
|
+
T.let(
|
|
376
|
+
:it_cf,
|
|
377
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
378
|
+
)
|
|
379
|
+
IT_PIVA =
|
|
380
|
+
T.let(
|
|
381
|
+
:it_piva,
|
|
382
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
383
|
+
)
|
|
384
|
+
JP_HB =
|
|
385
|
+
T.let(
|
|
386
|
+
:jp_hb,
|
|
387
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
388
|
+
)
|
|
389
|
+
JP_MN =
|
|
390
|
+
T.let(
|
|
391
|
+
:jp_mn,
|
|
392
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
393
|
+
)
|
|
394
|
+
KR_BRN =
|
|
395
|
+
T.let(
|
|
396
|
+
:kr_brn,
|
|
397
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
398
|
+
)
|
|
399
|
+
KR_CRN =
|
|
400
|
+
T.let(
|
|
401
|
+
:kr_crn,
|
|
402
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
403
|
+
)
|
|
404
|
+
KR_RRN =
|
|
405
|
+
T.let(
|
|
406
|
+
:kr_rrn,
|
|
407
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
408
|
+
)
|
|
409
|
+
LI_PEID =
|
|
410
|
+
T.let(
|
|
411
|
+
:li_peid,
|
|
412
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
413
|
+
)
|
|
414
|
+
LT_AK =
|
|
415
|
+
T.let(
|
|
416
|
+
:lt_ak,
|
|
417
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
418
|
+
)
|
|
419
|
+
LT_JAK =
|
|
420
|
+
T.let(
|
|
421
|
+
:lt_jak,
|
|
422
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
423
|
+
)
|
|
424
|
+
LU_MTC =
|
|
425
|
+
T.let(
|
|
426
|
+
:lu_mtc,
|
|
427
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
428
|
+
)
|
|
429
|
+
LU_VAT =
|
|
430
|
+
T.let(
|
|
431
|
+
:lu_vat,
|
|
432
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
433
|
+
)
|
|
434
|
+
LV_PK =
|
|
435
|
+
T.let(
|
|
436
|
+
:lv_pk,
|
|
437
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
438
|
+
)
|
|
439
|
+
LV_RN =
|
|
440
|
+
T.let(
|
|
441
|
+
:lv_rn,
|
|
442
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
443
|
+
)
|
|
444
|
+
MT_TIN =
|
|
445
|
+
T.let(
|
|
446
|
+
:mt_tin,
|
|
447
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
448
|
+
)
|
|
449
|
+
MT_VAT =
|
|
450
|
+
T.let(
|
|
451
|
+
:mt_vat,
|
|
452
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
453
|
+
)
|
|
454
|
+
MX_CURP =
|
|
455
|
+
T.let(
|
|
456
|
+
:mx_curp,
|
|
457
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
458
|
+
)
|
|
459
|
+
MX_INE =
|
|
460
|
+
T.let(
|
|
461
|
+
:mx_ine,
|
|
462
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
463
|
+
)
|
|
464
|
+
MX_RFC =
|
|
465
|
+
T.let(
|
|
466
|
+
:mx_rfc,
|
|
467
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
468
|
+
)
|
|
469
|
+
NATIONAL_ID =
|
|
470
|
+
T.let(
|
|
471
|
+
:national_id,
|
|
472
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
473
|
+
)
|
|
474
|
+
NL_BSN =
|
|
475
|
+
T.let(
|
|
476
|
+
:nl_bsn,
|
|
477
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
478
|
+
)
|
|
479
|
+
NL_BTW =
|
|
480
|
+
T.let(
|
|
481
|
+
:nl_btw,
|
|
482
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
483
|
+
)
|
|
484
|
+
NL_RSIN =
|
|
485
|
+
T.let(
|
|
486
|
+
:nl_rsin,
|
|
487
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
488
|
+
)
|
|
489
|
+
NO_FDN =
|
|
490
|
+
T.let(
|
|
491
|
+
:no_fdn,
|
|
492
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
493
|
+
)
|
|
494
|
+
NO_MVA =
|
|
495
|
+
T.let(
|
|
496
|
+
:no_mva,
|
|
497
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
498
|
+
)
|
|
499
|
+
NO_ORGNR =
|
|
500
|
+
T.let(
|
|
501
|
+
:no_orgnr,
|
|
502
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
503
|
+
)
|
|
504
|
+
NZ_IRD =
|
|
505
|
+
T.let(
|
|
506
|
+
:nz_ird,
|
|
507
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
508
|
+
)
|
|
509
|
+
PASSPORT =
|
|
510
|
+
T.let(
|
|
511
|
+
:passport,
|
|
512
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
513
|
+
)
|
|
514
|
+
PL_NIP =
|
|
515
|
+
T.let(
|
|
516
|
+
:pl_nip,
|
|
517
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
518
|
+
)
|
|
519
|
+
PL_PESEL =
|
|
520
|
+
T.let(
|
|
521
|
+
:pl_pesel,
|
|
522
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
523
|
+
)
|
|
524
|
+
PT_NIF =
|
|
525
|
+
T.let(
|
|
526
|
+
:pt_nif,
|
|
527
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
528
|
+
)
|
|
529
|
+
RO_CNP =
|
|
530
|
+
T.let(
|
|
531
|
+
:ro_cnp,
|
|
532
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
533
|
+
)
|
|
534
|
+
RO_CUI =
|
|
535
|
+
T.let(
|
|
536
|
+
:ro_cui,
|
|
537
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
538
|
+
)
|
|
539
|
+
SA_TIN =
|
|
540
|
+
T.let(
|
|
541
|
+
:sa_tin,
|
|
542
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
543
|
+
)
|
|
544
|
+
SA_VAT =
|
|
545
|
+
T.let(
|
|
546
|
+
:sa_vat,
|
|
547
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
548
|
+
)
|
|
549
|
+
SE_ORGNR =
|
|
550
|
+
T.let(
|
|
551
|
+
:se_orgnr,
|
|
552
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
553
|
+
)
|
|
554
|
+
SE_PNMR =
|
|
555
|
+
T.let(
|
|
556
|
+
:se_pnmr,
|
|
557
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
558
|
+
)
|
|
559
|
+
SG_FIN =
|
|
560
|
+
T.let(
|
|
561
|
+
:sg_fin,
|
|
562
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
563
|
+
)
|
|
564
|
+
SG_NRIC =
|
|
565
|
+
T.let(
|
|
566
|
+
:sg_nric,
|
|
567
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
568
|
+
)
|
|
569
|
+
SG_UEN =
|
|
570
|
+
T.let(
|
|
571
|
+
:sg_uen,
|
|
572
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
573
|
+
)
|
|
574
|
+
SI_DAV =
|
|
575
|
+
T.let(
|
|
576
|
+
:si_dav,
|
|
577
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
578
|
+
)
|
|
579
|
+
SI_TIN =
|
|
580
|
+
T.let(
|
|
581
|
+
:si_tin,
|
|
582
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
583
|
+
)
|
|
584
|
+
SK_ICO =
|
|
585
|
+
T.let(
|
|
586
|
+
:sk_ico,
|
|
587
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
588
|
+
)
|
|
589
|
+
SK_RC =
|
|
590
|
+
T.let(
|
|
591
|
+
:sk_rc,
|
|
592
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
593
|
+
)
|
|
594
|
+
US_EIN =
|
|
595
|
+
T.let(
|
|
596
|
+
:us_ein,
|
|
597
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
598
|
+
)
|
|
599
|
+
US_ITIN =
|
|
600
|
+
T.let(
|
|
601
|
+
:us_itin,
|
|
602
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
603
|
+
)
|
|
604
|
+
US_SSN =
|
|
605
|
+
T.let(
|
|
606
|
+
:us_ssn,
|
|
607
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
608
|
+
)
|
|
609
|
+
UY_RUT =
|
|
610
|
+
T.let(
|
|
611
|
+
:uy_rut,
|
|
612
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
613
|
+
)
|
|
614
|
+
VN_TIN =
|
|
615
|
+
T.let(
|
|
616
|
+
:vn_tin,
|
|
617
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
618
|
+
)
|
|
619
|
+
|
|
620
|
+
sig do
|
|
621
|
+
override.returns(
|
|
622
|
+
T::Array[
|
|
623
|
+
ModernTreasury::IdentificationUpdateParams::IDType::TaggedSymbol
|
|
624
|
+
]
|
|
625
|
+
)
|
|
626
|
+
end
|
|
627
|
+
def self.values
|
|
628
|
+
end
|
|
629
|
+
end
|
|
630
|
+
end
|
|
631
|
+
end
|
|
632
|
+
end
|
|
@@ -64,6 +64,16 @@ module ModernTreasury
|
|
|
64
64
|
sig { params(parent_account_id: String).void }
|
|
65
65
|
attr_writer :parent_account_id
|
|
66
66
|
|
|
67
|
+
# The address associated with the owner of the internal account. Updating this
|
|
68
|
+
# value does not guarantee that the new address matches the address on record with
|
|
69
|
+
# the account's bank; you are responsible for verifying that the address is
|
|
70
|
+
# accurate.
|
|
71
|
+
sig { returns(T.nilable(ModernTreasury::AddressRequest)) }
|
|
72
|
+
attr_reader :party_address
|
|
73
|
+
|
|
74
|
+
sig { params(party_address: ModernTreasury::AddressRequest::OrHash).void }
|
|
75
|
+
attr_writer :party_address
|
|
76
|
+
|
|
67
77
|
# Requests closure of the internal account. The resulting status may be `closed`
|
|
68
78
|
# for vendors that close synchronously.
|
|
69
79
|
sig do
|
|
@@ -92,6 +102,7 @@ module ModernTreasury
|
|
|
92
102
|
metadata: T::Hash[Symbol, String],
|
|
93
103
|
name: String,
|
|
94
104
|
parent_account_id: String,
|
|
105
|
+
party_address: ModernTreasury::AddressRequest::OrHash,
|
|
95
106
|
status: ModernTreasury::InternalAccountUpdateParams::Status::OrSymbol,
|
|
96
107
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
97
108
|
).returns(T.attached_class)
|
|
@@ -113,6 +124,11 @@ module ModernTreasury
|
|
|
113
124
|
name: nil,
|
|
114
125
|
# The parent internal account for this account.
|
|
115
126
|
parent_account_id: nil,
|
|
127
|
+
# The address associated with the owner of the internal account. Updating this
|
|
128
|
+
# value does not guarantee that the new address matches the address on record with
|
|
129
|
+
# the account's bank; you are responsible for verifying that the address is
|
|
130
|
+
# accurate.
|
|
131
|
+
party_address: nil,
|
|
116
132
|
# Requests closure of the internal account. The resulting status may be `closed`
|
|
117
133
|
# for vendors that close synchronously.
|
|
118
134
|
status: nil,
|
|
@@ -131,6 +147,7 @@ module ModernTreasury
|
|
|
131
147
|
metadata: T::Hash[Symbol, String],
|
|
132
148
|
name: String,
|
|
133
149
|
parent_account_id: String,
|
|
150
|
+
party_address: ModernTreasury::AddressRequest,
|
|
134
151
|
status:
|
|
135
152
|
ModernTreasury::InternalAccountUpdateParams::Status::OrSymbol,
|
|
136
153
|
request_options: ModernTreasury::RequestOptions
|