increase 1.250.0 → 1.252.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 +19 -0
- data/README.md +1 -1
- data/lib/increase/models/card_push_transfer.rb +9 -1
- data/lib/increase/models/entity.rb +207 -3
- data/lib/increase/models/entity_beneficial_owner.rb +9 -1
- data/lib/increase/models.rb +0 -2
- data/lib/increase/resources/entities.rb +0 -27
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +0 -1
- data/rbi/increase/models/card_push_transfer.rbi +8 -0
- data/rbi/increase/models/entity.rbi +403 -3
- data/rbi/increase/models/entity_beneficial_owner.rbi +8 -0
- data/rbi/increase/models.rbi +0 -3
- data/rbi/increase/resources/entities.rbi +0 -19
- data/sig/increase/models/card_push_transfer.rbs +5 -0
- data/sig/increase/models/entity.rbs +174 -4
- data/sig/increase/models/entity_beneficial_owner.rbs +5 -0
- data/sig/increase/models.rbs +0 -2
- data/sig/increase/resources/entities.rbs +0 -6
- metadata +1 -4
- data/lib/increase/models/entity_create_beneficial_owner_params.rb +0 -414
- data/rbi/increase/models/entity_create_beneficial_owner_params.rbi +0 -769
- data/sig/increase/models/entity_create_beneficial_owner_params.rbs +0 -336
|
@@ -1,769 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
class EntityCreateBeneficialOwnerParams < Increase::Internal::Type::BaseModel
|
|
6
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
-
include Increase::Internal::Type::RequestParameters
|
|
8
|
-
|
|
9
|
-
OrHash =
|
|
10
|
-
T.type_alias do
|
|
11
|
-
T.any(
|
|
12
|
-
Increase::EntityCreateBeneficialOwnerParams,
|
|
13
|
-
Increase::Internal::AnyHash
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# The identifier of the Entity to associate with the new Beneficial Owner.
|
|
18
|
-
sig { returns(String) }
|
|
19
|
-
attr_accessor :entity_id
|
|
20
|
-
|
|
21
|
-
# The identifying details of anyone controlling or owning 25% or more of the
|
|
22
|
-
# corporation.
|
|
23
|
-
sig do
|
|
24
|
-
returns(Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner)
|
|
25
|
-
end
|
|
26
|
-
attr_reader :beneficial_owner
|
|
27
|
-
|
|
28
|
-
sig do
|
|
29
|
-
params(
|
|
30
|
-
beneficial_owner:
|
|
31
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::OrHash
|
|
32
|
-
).void
|
|
33
|
-
end
|
|
34
|
-
attr_writer :beneficial_owner
|
|
35
|
-
|
|
36
|
-
sig do
|
|
37
|
-
params(
|
|
38
|
-
entity_id: String,
|
|
39
|
-
beneficial_owner:
|
|
40
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::OrHash,
|
|
41
|
-
request_options: Increase::RequestOptions::OrHash
|
|
42
|
-
).returns(T.attached_class)
|
|
43
|
-
end
|
|
44
|
-
def self.new(
|
|
45
|
-
# The identifier of the Entity to associate with the new Beneficial Owner.
|
|
46
|
-
entity_id:,
|
|
47
|
-
# The identifying details of anyone controlling or owning 25% or more of the
|
|
48
|
-
# corporation.
|
|
49
|
-
beneficial_owner:,
|
|
50
|
-
request_options: {}
|
|
51
|
-
)
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
sig do
|
|
55
|
-
override.returns(
|
|
56
|
-
{
|
|
57
|
-
entity_id: String,
|
|
58
|
-
beneficial_owner:
|
|
59
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner,
|
|
60
|
-
request_options: Increase::RequestOptions
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
end
|
|
64
|
-
def to_hash
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
class BeneficialOwner < Increase::Internal::Type::BaseModel
|
|
68
|
-
OrHash =
|
|
69
|
-
T.type_alias do
|
|
70
|
-
T.any(
|
|
71
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner,
|
|
72
|
-
Increase::Internal::AnyHash
|
|
73
|
-
)
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
# Personal details for the beneficial owner.
|
|
77
|
-
sig do
|
|
78
|
-
returns(
|
|
79
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual
|
|
80
|
-
)
|
|
81
|
-
end
|
|
82
|
-
attr_reader :individual
|
|
83
|
-
|
|
84
|
-
sig do
|
|
85
|
-
params(
|
|
86
|
-
individual:
|
|
87
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::OrHash
|
|
88
|
-
).void
|
|
89
|
-
end
|
|
90
|
-
attr_writer :individual
|
|
91
|
-
|
|
92
|
-
# Why this person is considered a beneficial owner of the entity. At least one
|
|
93
|
-
# option is required, if a person is both a control person and owner, submit an
|
|
94
|
-
# array containing both.
|
|
95
|
-
sig do
|
|
96
|
-
returns(
|
|
97
|
-
T::Array[
|
|
98
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong::OrSymbol
|
|
99
|
-
]
|
|
100
|
-
)
|
|
101
|
-
end
|
|
102
|
-
attr_accessor :prongs
|
|
103
|
-
|
|
104
|
-
# This person's role or title within the entity.
|
|
105
|
-
sig { returns(T.nilable(String)) }
|
|
106
|
-
attr_reader :company_title
|
|
107
|
-
|
|
108
|
-
sig { params(company_title: String).void }
|
|
109
|
-
attr_writer :company_title
|
|
110
|
-
|
|
111
|
-
# The identifying details of anyone controlling or owning 25% or more of the
|
|
112
|
-
# corporation.
|
|
113
|
-
sig do
|
|
114
|
-
params(
|
|
115
|
-
individual:
|
|
116
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::OrHash,
|
|
117
|
-
prongs:
|
|
118
|
-
T::Array[
|
|
119
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong::OrSymbol
|
|
120
|
-
],
|
|
121
|
-
company_title: String
|
|
122
|
-
).returns(T.attached_class)
|
|
123
|
-
end
|
|
124
|
-
def self.new(
|
|
125
|
-
# Personal details for the beneficial owner.
|
|
126
|
-
individual:,
|
|
127
|
-
# Why this person is considered a beneficial owner of the entity. At least one
|
|
128
|
-
# option is required, if a person is both a control person and owner, submit an
|
|
129
|
-
# array containing both.
|
|
130
|
-
prongs:,
|
|
131
|
-
# This person's role or title within the entity.
|
|
132
|
-
company_title: nil
|
|
133
|
-
)
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
sig do
|
|
137
|
-
override.returns(
|
|
138
|
-
{
|
|
139
|
-
individual:
|
|
140
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual,
|
|
141
|
-
prongs:
|
|
142
|
-
T::Array[
|
|
143
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong::OrSymbol
|
|
144
|
-
],
|
|
145
|
-
company_title: String
|
|
146
|
-
}
|
|
147
|
-
)
|
|
148
|
-
end
|
|
149
|
-
def to_hash
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
class Individual < Increase::Internal::Type::BaseModel
|
|
153
|
-
OrHash =
|
|
154
|
-
T.type_alias do
|
|
155
|
-
T.any(
|
|
156
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual,
|
|
157
|
-
Increase::Internal::AnyHash
|
|
158
|
-
)
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
# The individual's physical address. Mail receiving locations like PO Boxes and
|
|
162
|
-
# PMB's are disallowed.
|
|
163
|
-
sig do
|
|
164
|
-
returns(
|
|
165
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Address
|
|
166
|
-
)
|
|
167
|
-
end
|
|
168
|
-
attr_reader :address
|
|
169
|
-
|
|
170
|
-
sig do
|
|
171
|
-
params(
|
|
172
|
-
address:
|
|
173
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Address::OrHash
|
|
174
|
-
).void
|
|
175
|
-
end
|
|
176
|
-
attr_writer :address
|
|
177
|
-
|
|
178
|
-
# The person's date of birth in YYYY-MM-DD format.
|
|
179
|
-
sig { returns(Date) }
|
|
180
|
-
attr_accessor :date_of_birth
|
|
181
|
-
|
|
182
|
-
# A means of verifying the person's identity.
|
|
183
|
-
sig do
|
|
184
|
-
returns(
|
|
185
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification
|
|
186
|
-
)
|
|
187
|
-
end
|
|
188
|
-
attr_reader :identification
|
|
189
|
-
|
|
190
|
-
sig do
|
|
191
|
-
params(
|
|
192
|
-
identification:
|
|
193
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::OrHash
|
|
194
|
-
).void
|
|
195
|
-
end
|
|
196
|
-
attr_writer :identification
|
|
197
|
-
|
|
198
|
-
# The person's legal name.
|
|
199
|
-
sig { returns(String) }
|
|
200
|
-
attr_accessor :name
|
|
201
|
-
|
|
202
|
-
# The identification method for an individual can only be a passport, driver's
|
|
203
|
-
# license, or other document if you've confirmed the individual does not have a US
|
|
204
|
-
# tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
205
|
-
# Number).
|
|
206
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
207
|
-
attr_reader :confirmed_no_us_tax_id
|
|
208
|
-
|
|
209
|
-
sig { params(confirmed_no_us_tax_id: T::Boolean).void }
|
|
210
|
-
attr_writer :confirmed_no_us_tax_id
|
|
211
|
-
|
|
212
|
-
# Personal details for the beneficial owner.
|
|
213
|
-
sig do
|
|
214
|
-
params(
|
|
215
|
-
address:
|
|
216
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Address::OrHash,
|
|
217
|
-
date_of_birth: Date,
|
|
218
|
-
identification:
|
|
219
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::OrHash,
|
|
220
|
-
name: String,
|
|
221
|
-
confirmed_no_us_tax_id: T::Boolean
|
|
222
|
-
).returns(T.attached_class)
|
|
223
|
-
end
|
|
224
|
-
def self.new(
|
|
225
|
-
# The individual's physical address. Mail receiving locations like PO Boxes and
|
|
226
|
-
# PMB's are disallowed.
|
|
227
|
-
address:,
|
|
228
|
-
# The person's date of birth in YYYY-MM-DD format.
|
|
229
|
-
date_of_birth:,
|
|
230
|
-
# A means of verifying the person's identity.
|
|
231
|
-
identification:,
|
|
232
|
-
# The person's legal name.
|
|
233
|
-
name:,
|
|
234
|
-
# The identification method for an individual can only be a passport, driver's
|
|
235
|
-
# license, or other document if you've confirmed the individual does not have a US
|
|
236
|
-
# tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
237
|
-
# Number).
|
|
238
|
-
confirmed_no_us_tax_id: nil
|
|
239
|
-
)
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
sig do
|
|
243
|
-
override.returns(
|
|
244
|
-
{
|
|
245
|
-
address:
|
|
246
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Address,
|
|
247
|
-
date_of_birth: Date,
|
|
248
|
-
identification:
|
|
249
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification,
|
|
250
|
-
name: String,
|
|
251
|
-
confirmed_no_us_tax_id: T::Boolean
|
|
252
|
-
}
|
|
253
|
-
)
|
|
254
|
-
end
|
|
255
|
-
def to_hash
|
|
256
|
-
end
|
|
257
|
-
|
|
258
|
-
class Address < Increase::Internal::Type::BaseModel
|
|
259
|
-
OrHash =
|
|
260
|
-
T.type_alias do
|
|
261
|
-
T.any(
|
|
262
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Address,
|
|
263
|
-
Increase::Internal::AnyHash
|
|
264
|
-
)
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
# The city, district, town, or village of the address.
|
|
268
|
-
sig { returns(String) }
|
|
269
|
-
attr_accessor :city
|
|
270
|
-
|
|
271
|
-
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
272
|
-
sig { returns(String) }
|
|
273
|
-
attr_accessor :country
|
|
274
|
-
|
|
275
|
-
# The first line of the address. This is usually the street number and street.
|
|
276
|
-
sig { returns(String) }
|
|
277
|
-
attr_accessor :line1
|
|
278
|
-
|
|
279
|
-
# The second line of the address. This might be the floor or room number.
|
|
280
|
-
sig { returns(T.nilable(String)) }
|
|
281
|
-
attr_reader :line2
|
|
282
|
-
|
|
283
|
-
sig { params(line2: String).void }
|
|
284
|
-
attr_writer :line2
|
|
285
|
-
|
|
286
|
-
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
287
|
-
# state, province, or region of the address. Required in certain countries.
|
|
288
|
-
sig { returns(T.nilable(String)) }
|
|
289
|
-
attr_reader :state
|
|
290
|
-
|
|
291
|
-
sig { params(state: String).void }
|
|
292
|
-
attr_writer :state
|
|
293
|
-
|
|
294
|
-
# The ZIP or postal code of the address. Required in certain countries.
|
|
295
|
-
sig { returns(T.nilable(String)) }
|
|
296
|
-
attr_reader :zip
|
|
297
|
-
|
|
298
|
-
sig { params(zip: String).void }
|
|
299
|
-
attr_writer :zip
|
|
300
|
-
|
|
301
|
-
# The individual's physical address. Mail receiving locations like PO Boxes and
|
|
302
|
-
# PMB's are disallowed.
|
|
303
|
-
sig do
|
|
304
|
-
params(
|
|
305
|
-
city: String,
|
|
306
|
-
country: String,
|
|
307
|
-
line1: String,
|
|
308
|
-
line2: String,
|
|
309
|
-
state: String,
|
|
310
|
-
zip: String
|
|
311
|
-
).returns(T.attached_class)
|
|
312
|
-
end
|
|
313
|
-
def self.new(
|
|
314
|
-
# The city, district, town, or village of the address.
|
|
315
|
-
city:,
|
|
316
|
-
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
317
|
-
country:,
|
|
318
|
-
# The first line of the address. This is usually the street number and street.
|
|
319
|
-
line1:,
|
|
320
|
-
# The second line of the address. This might be the floor or room number.
|
|
321
|
-
line2: nil,
|
|
322
|
-
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
323
|
-
# state, province, or region of the address. Required in certain countries.
|
|
324
|
-
state: nil,
|
|
325
|
-
# The ZIP or postal code of the address. Required in certain countries.
|
|
326
|
-
zip: nil
|
|
327
|
-
)
|
|
328
|
-
end
|
|
329
|
-
|
|
330
|
-
sig do
|
|
331
|
-
override.returns(
|
|
332
|
-
{
|
|
333
|
-
city: String,
|
|
334
|
-
country: String,
|
|
335
|
-
line1: String,
|
|
336
|
-
line2: String,
|
|
337
|
-
state: String,
|
|
338
|
-
zip: String
|
|
339
|
-
}
|
|
340
|
-
)
|
|
341
|
-
end
|
|
342
|
-
def to_hash
|
|
343
|
-
end
|
|
344
|
-
end
|
|
345
|
-
|
|
346
|
-
class Identification < Increase::Internal::Type::BaseModel
|
|
347
|
-
OrHash =
|
|
348
|
-
T.type_alias do
|
|
349
|
-
T.any(
|
|
350
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification,
|
|
351
|
-
Increase::Internal::AnyHash
|
|
352
|
-
)
|
|
353
|
-
end
|
|
354
|
-
|
|
355
|
-
# A method that can be used to verify the individual's identity.
|
|
356
|
-
sig do
|
|
357
|
-
returns(
|
|
358
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Method::OrSymbol
|
|
359
|
-
)
|
|
360
|
-
end
|
|
361
|
-
attr_accessor :method_
|
|
362
|
-
|
|
363
|
-
# An identification number that can be used to verify the individual's identity,
|
|
364
|
-
# such as a social security number.
|
|
365
|
-
sig { returns(String) }
|
|
366
|
-
attr_accessor :number
|
|
367
|
-
|
|
368
|
-
# Information about the United States driver's license used for identification.
|
|
369
|
-
# Required if `method` is equal to `drivers_license`.
|
|
370
|
-
sig do
|
|
371
|
-
returns(
|
|
372
|
-
T.nilable(
|
|
373
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::DriversLicense
|
|
374
|
-
)
|
|
375
|
-
)
|
|
376
|
-
end
|
|
377
|
-
attr_reader :drivers_license
|
|
378
|
-
|
|
379
|
-
sig do
|
|
380
|
-
params(
|
|
381
|
-
drivers_license:
|
|
382
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::DriversLicense::OrHash
|
|
383
|
-
).void
|
|
384
|
-
end
|
|
385
|
-
attr_writer :drivers_license
|
|
386
|
-
|
|
387
|
-
# Information about the identification document provided. Required if `method` is
|
|
388
|
-
# equal to `other`.
|
|
389
|
-
sig do
|
|
390
|
-
returns(
|
|
391
|
-
T.nilable(
|
|
392
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Other
|
|
393
|
-
)
|
|
394
|
-
)
|
|
395
|
-
end
|
|
396
|
-
attr_reader :other
|
|
397
|
-
|
|
398
|
-
sig do
|
|
399
|
-
params(
|
|
400
|
-
other:
|
|
401
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Other::OrHash
|
|
402
|
-
).void
|
|
403
|
-
end
|
|
404
|
-
attr_writer :other
|
|
405
|
-
|
|
406
|
-
# Information about the passport used for identification. Required if `method` is
|
|
407
|
-
# equal to `passport`.
|
|
408
|
-
sig do
|
|
409
|
-
returns(
|
|
410
|
-
T.nilable(
|
|
411
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport
|
|
412
|
-
)
|
|
413
|
-
)
|
|
414
|
-
end
|
|
415
|
-
attr_reader :passport
|
|
416
|
-
|
|
417
|
-
sig do
|
|
418
|
-
params(
|
|
419
|
-
passport:
|
|
420
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport::OrHash
|
|
421
|
-
).void
|
|
422
|
-
end
|
|
423
|
-
attr_writer :passport
|
|
424
|
-
|
|
425
|
-
# A means of verifying the person's identity.
|
|
426
|
-
sig do
|
|
427
|
-
params(
|
|
428
|
-
method_:
|
|
429
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Method::OrSymbol,
|
|
430
|
-
number: String,
|
|
431
|
-
drivers_license:
|
|
432
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::DriversLicense::OrHash,
|
|
433
|
-
other:
|
|
434
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Other::OrHash,
|
|
435
|
-
passport:
|
|
436
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport::OrHash
|
|
437
|
-
).returns(T.attached_class)
|
|
438
|
-
end
|
|
439
|
-
def self.new(
|
|
440
|
-
# A method that can be used to verify the individual's identity.
|
|
441
|
-
method_:,
|
|
442
|
-
# An identification number that can be used to verify the individual's identity,
|
|
443
|
-
# such as a social security number.
|
|
444
|
-
number:,
|
|
445
|
-
# Information about the United States driver's license used for identification.
|
|
446
|
-
# Required if `method` is equal to `drivers_license`.
|
|
447
|
-
drivers_license: nil,
|
|
448
|
-
# Information about the identification document provided. Required if `method` is
|
|
449
|
-
# equal to `other`.
|
|
450
|
-
other: nil,
|
|
451
|
-
# Information about the passport used for identification. Required if `method` is
|
|
452
|
-
# equal to `passport`.
|
|
453
|
-
passport: nil
|
|
454
|
-
)
|
|
455
|
-
end
|
|
456
|
-
|
|
457
|
-
sig do
|
|
458
|
-
override.returns(
|
|
459
|
-
{
|
|
460
|
-
method_:
|
|
461
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Method::OrSymbol,
|
|
462
|
-
number: String,
|
|
463
|
-
drivers_license:
|
|
464
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::DriversLicense,
|
|
465
|
-
other:
|
|
466
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Other,
|
|
467
|
-
passport:
|
|
468
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport
|
|
469
|
-
}
|
|
470
|
-
)
|
|
471
|
-
end
|
|
472
|
-
def to_hash
|
|
473
|
-
end
|
|
474
|
-
|
|
475
|
-
# A method that can be used to verify the individual's identity.
|
|
476
|
-
module Method
|
|
477
|
-
extend Increase::Internal::Type::Enum
|
|
478
|
-
|
|
479
|
-
TaggedSymbol =
|
|
480
|
-
T.type_alias do
|
|
481
|
-
T.all(
|
|
482
|
-
Symbol,
|
|
483
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Method
|
|
484
|
-
)
|
|
485
|
-
end
|
|
486
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
487
|
-
|
|
488
|
-
# A social security number.
|
|
489
|
-
SOCIAL_SECURITY_NUMBER =
|
|
490
|
-
T.let(
|
|
491
|
-
:social_security_number,
|
|
492
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Method::TaggedSymbol
|
|
493
|
-
)
|
|
494
|
-
|
|
495
|
-
# An individual taxpayer identification number (ITIN).
|
|
496
|
-
INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER =
|
|
497
|
-
T.let(
|
|
498
|
-
:individual_taxpayer_identification_number,
|
|
499
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Method::TaggedSymbol
|
|
500
|
-
)
|
|
501
|
-
|
|
502
|
-
# A passport number.
|
|
503
|
-
PASSPORT =
|
|
504
|
-
T.let(
|
|
505
|
-
:passport,
|
|
506
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Method::TaggedSymbol
|
|
507
|
-
)
|
|
508
|
-
|
|
509
|
-
# A driver's license number.
|
|
510
|
-
DRIVERS_LICENSE =
|
|
511
|
-
T.let(
|
|
512
|
-
:drivers_license,
|
|
513
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Method::TaggedSymbol
|
|
514
|
-
)
|
|
515
|
-
|
|
516
|
-
# Another identifying document.
|
|
517
|
-
OTHER =
|
|
518
|
-
T.let(
|
|
519
|
-
:other,
|
|
520
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Method::TaggedSymbol
|
|
521
|
-
)
|
|
522
|
-
|
|
523
|
-
sig do
|
|
524
|
-
override.returns(
|
|
525
|
-
T::Array[
|
|
526
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Method::TaggedSymbol
|
|
527
|
-
]
|
|
528
|
-
)
|
|
529
|
-
end
|
|
530
|
-
def self.values
|
|
531
|
-
end
|
|
532
|
-
end
|
|
533
|
-
|
|
534
|
-
class DriversLicense < Increase::Internal::Type::BaseModel
|
|
535
|
-
OrHash =
|
|
536
|
-
T.type_alias do
|
|
537
|
-
T.any(
|
|
538
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::DriversLicense,
|
|
539
|
-
Increase::Internal::AnyHash
|
|
540
|
-
)
|
|
541
|
-
end
|
|
542
|
-
|
|
543
|
-
# The driver's license's expiration date in YYYY-MM-DD format.
|
|
544
|
-
sig { returns(Date) }
|
|
545
|
-
attr_accessor :expiration_date
|
|
546
|
-
|
|
547
|
-
# The identifier of the File containing the front of the driver's license.
|
|
548
|
-
sig { returns(String) }
|
|
549
|
-
attr_accessor :file_id
|
|
550
|
-
|
|
551
|
-
# The state that issued the provided driver's license.
|
|
552
|
-
sig { returns(String) }
|
|
553
|
-
attr_accessor :state
|
|
554
|
-
|
|
555
|
-
# The identifier of the File containing the back of the driver's license.
|
|
556
|
-
sig { returns(T.nilable(String)) }
|
|
557
|
-
attr_reader :back_file_id
|
|
558
|
-
|
|
559
|
-
sig { params(back_file_id: String).void }
|
|
560
|
-
attr_writer :back_file_id
|
|
561
|
-
|
|
562
|
-
# Information about the United States driver's license used for identification.
|
|
563
|
-
# Required if `method` is equal to `drivers_license`.
|
|
564
|
-
sig do
|
|
565
|
-
params(
|
|
566
|
-
expiration_date: Date,
|
|
567
|
-
file_id: String,
|
|
568
|
-
state: String,
|
|
569
|
-
back_file_id: String
|
|
570
|
-
).returns(T.attached_class)
|
|
571
|
-
end
|
|
572
|
-
def self.new(
|
|
573
|
-
# The driver's license's expiration date in YYYY-MM-DD format.
|
|
574
|
-
expiration_date:,
|
|
575
|
-
# The identifier of the File containing the front of the driver's license.
|
|
576
|
-
file_id:,
|
|
577
|
-
# The state that issued the provided driver's license.
|
|
578
|
-
state:,
|
|
579
|
-
# The identifier of the File containing the back of the driver's license.
|
|
580
|
-
back_file_id: nil
|
|
581
|
-
)
|
|
582
|
-
end
|
|
583
|
-
|
|
584
|
-
sig do
|
|
585
|
-
override.returns(
|
|
586
|
-
{
|
|
587
|
-
expiration_date: Date,
|
|
588
|
-
file_id: String,
|
|
589
|
-
state: String,
|
|
590
|
-
back_file_id: String
|
|
591
|
-
}
|
|
592
|
-
)
|
|
593
|
-
end
|
|
594
|
-
def to_hash
|
|
595
|
-
end
|
|
596
|
-
end
|
|
597
|
-
|
|
598
|
-
class Other < Increase::Internal::Type::BaseModel
|
|
599
|
-
OrHash =
|
|
600
|
-
T.type_alias do
|
|
601
|
-
T.any(
|
|
602
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Other,
|
|
603
|
-
Increase::Internal::AnyHash
|
|
604
|
-
)
|
|
605
|
-
end
|
|
606
|
-
|
|
607
|
-
# The two-character ISO 3166-1 code representing the country that issued the
|
|
608
|
-
# document (e.g., `US`).
|
|
609
|
-
sig { returns(String) }
|
|
610
|
-
attr_accessor :country
|
|
611
|
-
|
|
612
|
-
# A description of the document submitted.
|
|
613
|
-
sig { returns(String) }
|
|
614
|
-
attr_accessor :description
|
|
615
|
-
|
|
616
|
-
# The identifier of the File containing the front of the document.
|
|
617
|
-
sig { returns(String) }
|
|
618
|
-
attr_accessor :file_id
|
|
619
|
-
|
|
620
|
-
# The identifier of the File containing the back of the document. Not every
|
|
621
|
-
# document has a reverse side.
|
|
622
|
-
sig { returns(T.nilable(String)) }
|
|
623
|
-
attr_reader :back_file_id
|
|
624
|
-
|
|
625
|
-
sig { params(back_file_id: String).void }
|
|
626
|
-
attr_writer :back_file_id
|
|
627
|
-
|
|
628
|
-
# The document's expiration date in YYYY-MM-DD format.
|
|
629
|
-
sig { returns(T.nilable(Date)) }
|
|
630
|
-
attr_reader :expiration_date
|
|
631
|
-
|
|
632
|
-
sig { params(expiration_date: Date).void }
|
|
633
|
-
attr_writer :expiration_date
|
|
634
|
-
|
|
635
|
-
# Information about the identification document provided. Required if `method` is
|
|
636
|
-
# equal to `other`.
|
|
637
|
-
sig do
|
|
638
|
-
params(
|
|
639
|
-
country: String,
|
|
640
|
-
description: String,
|
|
641
|
-
file_id: String,
|
|
642
|
-
back_file_id: String,
|
|
643
|
-
expiration_date: Date
|
|
644
|
-
).returns(T.attached_class)
|
|
645
|
-
end
|
|
646
|
-
def self.new(
|
|
647
|
-
# The two-character ISO 3166-1 code representing the country that issued the
|
|
648
|
-
# document (e.g., `US`).
|
|
649
|
-
country:,
|
|
650
|
-
# A description of the document submitted.
|
|
651
|
-
description:,
|
|
652
|
-
# The identifier of the File containing the front of the document.
|
|
653
|
-
file_id:,
|
|
654
|
-
# The identifier of the File containing the back of the document. Not every
|
|
655
|
-
# document has a reverse side.
|
|
656
|
-
back_file_id: nil,
|
|
657
|
-
# The document's expiration date in YYYY-MM-DD format.
|
|
658
|
-
expiration_date: nil
|
|
659
|
-
)
|
|
660
|
-
end
|
|
661
|
-
|
|
662
|
-
sig do
|
|
663
|
-
override.returns(
|
|
664
|
-
{
|
|
665
|
-
country: String,
|
|
666
|
-
description: String,
|
|
667
|
-
file_id: String,
|
|
668
|
-
back_file_id: String,
|
|
669
|
-
expiration_date: Date
|
|
670
|
-
}
|
|
671
|
-
)
|
|
672
|
-
end
|
|
673
|
-
def to_hash
|
|
674
|
-
end
|
|
675
|
-
end
|
|
676
|
-
|
|
677
|
-
class Passport < Increase::Internal::Type::BaseModel
|
|
678
|
-
OrHash =
|
|
679
|
-
T.type_alias do
|
|
680
|
-
T.any(
|
|
681
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Identification::Passport,
|
|
682
|
-
Increase::Internal::AnyHash
|
|
683
|
-
)
|
|
684
|
-
end
|
|
685
|
-
|
|
686
|
-
# The two-character ISO 3166-1 code representing the country that issued the
|
|
687
|
-
# document (e.g., `US`).
|
|
688
|
-
sig { returns(String) }
|
|
689
|
-
attr_accessor :country
|
|
690
|
-
|
|
691
|
-
# The passport's expiration date in YYYY-MM-DD format.
|
|
692
|
-
sig { returns(Date) }
|
|
693
|
-
attr_accessor :expiration_date
|
|
694
|
-
|
|
695
|
-
# The identifier of the File containing the passport.
|
|
696
|
-
sig { returns(String) }
|
|
697
|
-
attr_accessor :file_id
|
|
698
|
-
|
|
699
|
-
# Information about the passport used for identification. Required if `method` is
|
|
700
|
-
# equal to `passport`.
|
|
701
|
-
sig do
|
|
702
|
-
params(
|
|
703
|
-
country: String,
|
|
704
|
-
expiration_date: Date,
|
|
705
|
-
file_id: String
|
|
706
|
-
).returns(T.attached_class)
|
|
707
|
-
end
|
|
708
|
-
def self.new(
|
|
709
|
-
# The two-character ISO 3166-1 code representing the country that issued the
|
|
710
|
-
# document (e.g., `US`).
|
|
711
|
-
country:,
|
|
712
|
-
# The passport's expiration date in YYYY-MM-DD format.
|
|
713
|
-
expiration_date:,
|
|
714
|
-
# The identifier of the File containing the passport.
|
|
715
|
-
file_id:
|
|
716
|
-
)
|
|
717
|
-
end
|
|
718
|
-
|
|
719
|
-
sig do
|
|
720
|
-
override.returns(
|
|
721
|
-
{ country: String, expiration_date: Date, file_id: String }
|
|
722
|
-
)
|
|
723
|
-
end
|
|
724
|
-
def to_hash
|
|
725
|
-
end
|
|
726
|
-
end
|
|
727
|
-
end
|
|
728
|
-
end
|
|
729
|
-
|
|
730
|
-
module Prong
|
|
731
|
-
extend Increase::Internal::Type::Enum
|
|
732
|
-
|
|
733
|
-
TaggedSymbol =
|
|
734
|
-
T.type_alias do
|
|
735
|
-
T.all(
|
|
736
|
-
Symbol,
|
|
737
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong
|
|
738
|
-
)
|
|
739
|
-
end
|
|
740
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
741
|
-
|
|
742
|
-
# A person with 25% or greater direct or indirect ownership of the entity.
|
|
743
|
-
OWNERSHIP =
|
|
744
|
-
T.let(
|
|
745
|
-
:ownership,
|
|
746
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong::TaggedSymbol
|
|
747
|
-
)
|
|
748
|
-
|
|
749
|
-
# A person who manages, directs, or has significant control of the entity.
|
|
750
|
-
CONTROL =
|
|
751
|
-
T.let(
|
|
752
|
-
:control,
|
|
753
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong::TaggedSymbol
|
|
754
|
-
)
|
|
755
|
-
|
|
756
|
-
sig do
|
|
757
|
-
override.returns(
|
|
758
|
-
T::Array[
|
|
759
|
-
Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner::Prong::TaggedSymbol
|
|
760
|
-
]
|
|
761
|
-
)
|
|
762
|
-
end
|
|
763
|
-
def self.values
|
|
764
|
-
end
|
|
765
|
-
end
|
|
766
|
-
end
|
|
767
|
-
end
|
|
768
|
-
end
|
|
769
|
-
end
|