increase 1.249.0 → 1.251.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/beneficial_owner_create_params.rb +387 -0
- 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 +20 -2
- data/lib/increase/models.rb +2 -2
- data/lib/increase/resources/beneficial_owners.rb +31 -0
- data/lib/increase/resources/entities.rb +0 -27
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +1 -1
- data/rbi/increase/models/beneficial_owner_create_params.rbi +698 -0
- 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 +20 -0
- data/rbi/increase/models.rbi +2 -3
- data/rbi/increase/resources/beneficial_owners.rbi +26 -0
- data/rbi/increase/resources/entities.rbi +0 -19
- data/sig/increase/models/beneficial_owner_create_params.rbs +319 -0
- 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 +10 -0
- data/sig/increase/models.rbs +2 -2
- data/sig/increase/resources/beneficial_owners.rbs +8 -0
- data/sig/increase/resources/entities.rbs +0 -6
- metadata +4 -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
|
@@ -174,8 +174,9 @@ module Increase
|
|
|
174
174
|
# The identifying details of anyone controlling or owning 25% or more of the
|
|
175
175
|
# corporation.
|
|
176
176
|
#
|
|
177
|
-
# @return [Array<Increase::Models::
|
|
178
|
-
required :beneficial_owners,
|
|
177
|
+
# @return [Array<Increase::Models::Entity::Corporation::BeneficialOwner>]
|
|
178
|
+
required :beneficial_owners,
|
|
179
|
+
-> { Increase::Internal::Type::ArrayOf[Increase::Entity::Corporation::BeneficialOwner] }
|
|
179
180
|
|
|
180
181
|
# @!attribute email
|
|
181
182
|
# An email address for the business.
|
|
@@ -224,7 +225,7 @@ module Increase
|
|
|
224
225
|
#
|
|
225
226
|
# @param address [Increase::Models::Entity::Corporation::Address] The corporation's address.
|
|
226
227
|
#
|
|
227
|
-
# @param beneficial_owners [Array<Increase::Models::
|
|
228
|
+
# @param beneficial_owners [Array<Increase::Models::Entity::Corporation::BeneficialOwner>] The identifying details of anyone controlling or owning 25% or more of the corpo
|
|
228
229
|
#
|
|
229
230
|
# @param email [String, nil] An email address for the business.
|
|
230
231
|
#
|
|
@@ -287,6 +288,209 @@ module Increase
|
|
|
287
288
|
#
|
|
288
289
|
# @param zip [String] The ZIP code of the address.
|
|
289
290
|
end
|
|
291
|
+
|
|
292
|
+
class BeneficialOwner < Increase::Internal::Type::BaseModel
|
|
293
|
+
# @!attribute id
|
|
294
|
+
# The identifier of this beneficial owner.
|
|
295
|
+
#
|
|
296
|
+
# @return [String]
|
|
297
|
+
required :id, String
|
|
298
|
+
|
|
299
|
+
# @!attribute company_title
|
|
300
|
+
# This person's role or title within the entity.
|
|
301
|
+
#
|
|
302
|
+
# @return [String, nil]
|
|
303
|
+
required :company_title, String, nil?: true
|
|
304
|
+
|
|
305
|
+
# @!attribute individual
|
|
306
|
+
# Personal details for the beneficial owner.
|
|
307
|
+
#
|
|
308
|
+
# @return [Increase::Models::Entity::Corporation::BeneficialOwner::Individual]
|
|
309
|
+
required :individual, -> { Increase::Entity::Corporation::BeneficialOwner::Individual }
|
|
310
|
+
|
|
311
|
+
# @!attribute prongs
|
|
312
|
+
# Why this person is considered a beneficial owner of the entity.
|
|
313
|
+
#
|
|
314
|
+
# @return [Array<Symbol, Increase::Models::Entity::Corporation::BeneficialOwner::Prong>]
|
|
315
|
+
required :prongs,
|
|
316
|
+
-> { Increase::Internal::Type::ArrayOf[enum: Increase::Entity::Corporation::BeneficialOwner::Prong] }
|
|
317
|
+
|
|
318
|
+
# @!method initialize(id:, company_title:, individual:, prongs:)
|
|
319
|
+
# @param id [String] The identifier of this beneficial owner.
|
|
320
|
+
#
|
|
321
|
+
# @param company_title [String, nil] This person's role or title within the entity.
|
|
322
|
+
#
|
|
323
|
+
# @param individual [Increase::Models::Entity::Corporation::BeneficialOwner::Individual] Personal details for the beneficial owner.
|
|
324
|
+
#
|
|
325
|
+
# @param prongs [Array<Symbol, Increase::Models::Entity::Corporation::BeneficialOwner::Prong>] Why this person is considered a beneficial owner of the entity.
|
|
326
|
+
|
|
327
|
+
# @see Increase::Models::Entity::Corporation::BeneficialOwner#individual
|
|
328
|
+
class Individual < Increase::Internal::Type::BaseModel
|
|
329
|
+
# @!attribute address
|
|
330
|
+
# The person's address.
|
|
331
|
+
#
|
|
332
|
+
# @return [Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Address]
|
|
333
|
+
required :address, -> { Increase::Entity::Corporation::BeneficialOwner::Individual::Address }
|
|
334
|
+
|
|
335
|
+
# @!attribute date_of_birth
|
|
336
|
+
# The person's date of birth in YYYY-MM-DD format.
|
|
337
|
+
#
|
|
338
|
+
# @return [Date]
|
|
339
|
+
required :date_of_birth, Date
|
|
340
|
+
|
|
341
|
+
# @!attribute identification
|
|
342
|
+
# A means of verifying the person's identity.
|
|
343
|
+
#
|
|
344
|
+
# @return [Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification]
|
|
345
|
+
required :identification,
|
|
346
|
+
-> { Increase::Entity::Corporation::BeneficialOwner::Individual::Identification }
|
|
347
|
+
|
|
348
|
+
# @!attribute name
|
|
349
|
+
# The person's legal name.
|
|
350
|
+
#
|
|
351
|
+
# @return [String]
|
|
352
|
+
required :name, String
|
|
353
|
+
|
|
354
|
+
# @!method initialize(address:, date_of_birth:, identification:, name:)
|
|
355
|
+
# Personal details for the beneficial owner.
|
|
356
|
+
#
|
|
357
|
+
# @param address [Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Address] The person's address.
|
|
358
|
+
#
|
|
359
|
+
# @param date_of_birth [Date] The person's date of birth in YYYY-MM-DD format.
|
|
360
|
+
#
|
|
361
|
+
# @param identification [Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification] A means of verifying the person's identity.
|
|
362
|
+
#
|
|
363
|
+
# @param name [String] The person's legal name.
|
|
364
|
+
|
|
365
|
+
# @see Increase::Models::Entity::Corporation::BeneficialOwner::Individual#address
|
|
366
|
+
class Address < Increase::Internal::Type::BaseModel
|
|
367
|
+
# @!attribute city
|
|
368
|
+
# The city, district, town, or village of the address.
|
|
369
|
+
#
|
|
370
|
+
# @return [String, nil]
|
|
371
|
+
required :city, String, nil?: true
|
|
372
|
+
|
|
373
|
+
# @!attribute country
|
|
374
|
+
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
375
|
+
#
|
|
376
|
+
# @return [String]
|
|
377
|
+
required :country, String
|
|
378
|
+
|
|
379
|
+
# @!attribute line1
|
|
380
|
+
# The first line of the address.
|
|
381
|
+
#
|
|
382
|
+
# @return [String]
|
|
383
|
+
required :line1, String
|
|
384
|
+
|
|
385
|
+
# @!attribute line2
|
|
386
|
+
# The second line of the address.
|
|
387
|
+
#
|
|
388
|
+
# @return [String, nil]
|
|
389
|
+
required :line2, String, nil?: true
|
|
390
|
+
|
|
391
|
+
# @!attribute state
|
|
392
|
+
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
393
|
+
# state, province, or region of the address.
|
|
394
|
+
#
|
|
395
|
+
# @return [String, nil]
|
|
396
|
+
required :state, String, nil?: true
|
|
397
|
+
|
|
398
|
+
# @!attribute zip
|
|
399
|
+
# The ZIP or postal code of the address.
|
|
400
|
+
#
|
|
401
|
+
# @return [String, nil]
|
|
402
|
+
required :zip, String, nil?: true
|
|
403
|
+
|
|
404
|
+
# @!method initialize(city:, country:, line1:, line2:, state:, zip:)
|
|
405
|
+
# Some parameter documentations has been truncated, see
|
|
406
|
+
# {Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Address}
|
|
407
|
+
# for more details.
|
|
408
|
+
#
|
|
409
|
+
# The person's address.
|
|
410
|
+
#
|
|
411
|
+
# @param city [String, nil] The city, district, town, or village of the address.
|
|
412
|
+
#
|
|
413
|
+
# @param country [String] The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
414
|
+
#
|
|
415
|
+
# @param line1 [String] The first line of the address.
|
|
416
|
+
#
|
|
417
|
+
# @param line2 [String, nil] The second line of the address.
|
|
418
|
+
#
|
|
419
|
+
# @param state [String, nil] The two-letter United States Postal Service (USPS) abbreviation for the US state
|
|
420
|
+
#
|
|
421
|
+
# @param zip [String, nil] The ZIP or postal code of the address.
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# @see Increase::Models::Entity::Corporation::BeneficialOwner::Individual#identification
|
|
425
|
+
class Identification < Increase::Internal::Type::BaseModel
|
|
426
|
+
# @!attribute method_
|
|
427
|
+
# A method that can be used to verify the individual's identity.
|
|
428
|
+
#
|
|
429
|
+
# @return [Symbol, Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification::Method]
|
|
430
|
+
required :method_,
|
|
431
|
+
enum: -> {
|
|
432
|
+
Increase::Entity::Corporation::BeneficialOwner::Individual::Identification::Method
|
|
433
|
+
},
|
|
434
|
+
api_name: :method
|
|
435
|
+
|
|
436
|
+
# @!attribute number_last4
|
|
437
|
+
# The last 4 digits of the identification number that can be used to verify the
|
|
438
|
+
# individual's identity.
|
|
439
|
+
#
|
|
440
|
+
# @return [String]
|
|
441
|
+
required :number_last4, String
|
|
442
|
+
|
|
443
|
+
# @!method initialize(method_:, number_last4:)
|
|
444
|
+
# Some parameter documentations has been truncated, see
|
|
445
|
+
# {Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification}
|
|
446
|
+
# for more details.
|
|
447
|
+
#
|
|
448
|
+
# A means of verifying the person's identity.
|
|
449
|
+
#
|
|
450
|
+
# @param method_ [Symbol, Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification::Method] A method that can be used to verify the individual's identity.
|
|
451
|
+
#
|
|
452
|
+
# @param number_last4 [String] The last 4 digits of the identification number that can be used to verify the in
|
|
453
|
+
|
|
454
|
+
# A method that can be used to verify the individual's identity.
|
|
455
|
+
#
|
|
456
|
+
# @see Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification#method_
|
|
457
|
+
module Method
|
|
458
|
+
extend Increase::Internal::Type::Enum
|
|
459
|
+
|
|
460
|
+
# A social security number.
|
|
461
|
+
SOCIAL_SECURITY_NUMBER = :social_security_number
|
|
462
|
+
|
|
463
|
+
# An individual taxpayer identification number (ITIN).
|
|
464
|
+
INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER = :individual_taxpayer_identification_number
|
|
465
|
+
|
|
466
|
+
# A passport number.
|
|
467
|
+
PASSPORT = :passport
|
|
468
|
+
|
|
469
|
+
# A driver's license number.
|
|
470
|
+
DRIVERS_LICENSE = :drivers_license
|
|
471
|
+
|
|
472
|
+
# Another identifying document.
|
|
473
|
+
OTHER = :other
|
|
474
|
+
|
|
475
|
+
# @!method self.values
|
|
476
|
+
# @return [Array<Symbol>]
|
|
477
|
+
end
|
|
478
|
+
end
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
module Prong
|
|
482
|
+
extend Increase::Internal::Type::Enum
|
|
483
|
+
|
|
484
|
+
# A person with 25% or greater direct or indirect ownership of the entity.
|
|
485
|
+
OWNERSHIP = :ownership
|
|
486
|
+
|
|
487
|
+
# A person who manages, directs, or has significant control of the entity.
|
|
488
|
+
CONTROL = :control
|
|
489
|
+
|
|
490
|
+
# @!method self.values
|
|
491
|
+
# @return [Array<Symbol>]
|
|
492
|
+
end
|
|
493
|
+
end
|
|
290
494
|
end
|
|
291
495
|
|
|
292
496
|
# @see Increase::Models::Entity#government_authority
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Increase
|
|
4
4
|
module Models
|
|
5
|
-
# @see Increase::Resources::BeneficialOwners#
|
|
5
|
+
# @see Increase::Resources::BeneficialOwners#create
|
|
6
6
|
class EntityBeneficialOwner < Increase::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
8
|
# The identifier of this beneficial owner.
|
|
@@ -23,6 +23,20 @@ module Increase
|
|
|
23
23
|
# @return [Time]
|
|
24
24
|
required :created_at, Time
|
|
25
25
|
|
|
26
|
+
# @!attribute entity_id
|
|
27
|
+
# The identifier of the Entity to which this beneficial owner belongs.
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :entity_id, String
|
|
31
|
+
|
|
32
|
+
# @!attribute idempotency_key
|
|
33
|
+
# The idempotency key you chose for this object. This value is unique across
|
|
34
|
+
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
35
|
+
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
required :idempotency_key, String, nil?: true
|
|
39
|
+
|
|
26
40
|
# @!attribute individual
|
|
27
41
|
# Personal details for the beneficial owner.
|
|
28
42
|
#
|
|
@@ -42,7 +56,7 @@ module Increase
|
|
|
42
56
|
# @return [Symbol, Increase::Models::EntityBeneficialOwner::Type]
|
|
43
57
|
required :type, enum: -> { Increase::EntityBeneficialOwner::Type }
|
|
44
58
|
|
|
45
|
-
# @!method initialize(id:, company_title:, created_at:, individual:, prongs:, type:)
|
|
59
|
+
# @!method initialize(id:, company_title:, created_at:, entity_id:, idempotency_key:, individual:, prongs:, type:)
|
|
46
60
|
# Some parameter documentations has been truncated, see
|
|
47
61
|
# {Increase::Models::EntityBeneficialOwner} for more details.
|
|
48
62
|
#
|
|
@@ -58,6 +72,10 @@ module Increase
|
|
|
58
72
|
#
|
|
59
73
|
# @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Benefic
|
|
60
74
|
#
|
|
75
|
+
# @param entity_id [String] The identifier of the Entity to which this beneficial owner belongs.
|
|
76
|
+
#
|
|
77
|
+
# @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
|
|
78
|
+
#
|
|
61
79
|
# @param individual [Increase::Models::EntityBeneficialOwner::Individual] Personal details for the beneficial owner.
|
|
62
80
|
#
|
|
63
81
|
# @param prongs [Array<Symbol, Increase::Models::EntityBeneficialOwner::Prong>] Why this person is considered a beneficial owner of the entity.
|
data/lib/increase/models.rb
CHANGED
|
@@ -105,6 +105,8 @@ module Increase
|
|
|
105
105
|
|
|
106
106
|
BeneficialOwnerArchiveParams = Increase::Models::BeneficialOwnerArchiveParams
|
|
107
107
|
|
|
108
|
+
BeneficialOwnerCreateParams = Increase::Models::BeneficialOwnerCreateParams
|
|
109
|
+
|
|
108
110
|
BeneficialOwnerListParams = Increase::Models::BeneficialOwnerListParams
|
|
109
111
|
|
|
110
112
|
BeneficialOwnerRetrieveParams = Increase::Models::BeneficialOwnerRetrieveParams
|
|
@@ -263,8 +265,6 @@ module Increase
|
|
|
263
265
|
|
|
264
266
|
EntityBeneficialOwner = Increase::Models::EntityBeneficialOwner
|
|
265
267
|
|
|
266
|
-
EntityCreateBeneficialOwnerParams = Increase::Models::EntityCreateBeneficialOwnerParams
|
|
267
|
-
|
|
268
268
|
EntityCreateParams = Increase::Models::EntityCreateParams
|
|
269
269
|
|
|
270
270
|
EntityListParams = Increase::Models::EntityListParams
|
|
@@ -3,6 +3,37 @@
|
|
|
3
3
|
module Increase
|
|
4
4
|
module Resources
|
|
5
5
|
class BeneficialOwners
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {Increase::Models::BeneficialOwnerCreateParams} for more details.
|
|
8
|
+
#
|
|
9
|
+
# Create a beneficial owner
|
|
10
|
+
#
|
|
11
|
+
# @overload create(entity_id:, individual:, prongs:, company_title: nil, request_options: {})
|
|
12
|
+
#
|
|
13
|
+
# @param entity_id [String] The identifier of the Entity to associate with the new Beneficial Owner.
|
|
14
|
+
#
|
|
15
|
+
# @param individual [Increase::Models::BeneficialOwnerCreateParams::Individual] Personal details for the beneficial owner.
|
|
16
|
+
#
|
|
17
|
+
# @param prongs [Array<Symbol, Increase::Models::BeneficialOwnerCreateParams::Prong>] Why this person is considered a beneficial owner of the entity. At least one opt
|
|
18
|
+
#
|
|
19
|
+
# @param company_title [String] This person's role or title within the entity.
|
|
20
|
+
#
|
|
21
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
22
|
+
#
|
|
23
|
+
# @return [Increase::Models::EntityBeneficialOwner]
|
|
24
|
+
#
|
|
25
|
+
# @see Increase::Models::BeneficialOwnerCreateParams
|
|
26
|
+
def create(params)
|
|
27
|
+
parsed, options = Increase::BeneficialOwnerCreateParams.dump_request(params)
|
|
28
|
+
@client.request(
|
|
29
|
+
method: :post,
|
|
30
|
+
path: "entity_beneficial_owners",
|
|
31
|
+
body: parsed,
|
|
32
|
+
model: Increase::EntityBeneficialOwner,
|
|
33
|
+
options: options
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
6
37
|
# Retrieve a Beneficial Owner
|
|
7
38
|
#
|
|
8
39
|
# @overload retrieve(entity_beneficial_owner_id, request_options: {})
|
|
@@ -165,33 +165,6 @@ module Increase
|
|
|
165
165
|
)
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
# Some parameter documentations has been truncated, see
|
|
169
|
-
# {Increase::Models::EntityCreateBeneficialOwnerParams} for more details.
|
|
170
|
-
#
|
|
171
|
-
# Create a beneficial owner for a corporate Entity
|
|
172
|
-
#
|
|
173
|
-
# @overload create_beneficial_owner(entity_id, beneficial_owner:, request_options: {})
|
|
174
|
-
#
|
|
175
|
-
# @param entity_id [String] The identifier of the Entity to associate with the new Beneficial Owner.
|
|
176
|
-
#
|
|
177
|
-
# @param beneficial_owner [Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner] The identifying details of anyone controlling or owning 25% or more of the corpo
|
|
178
|
-
#
|
|
179
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
180
|
-
#
|
|
181
|
-
# @return [Increase::Models::Entity]
|
|
182
|
-
#
|
|
183
|
-
# @see Increase::Models::EntityCreateBeneficialOwnerParams
|
|
184
|
-
def create_beneficial_owner(entity_id, params)
|
|
185
|
-
parsed, options = Increase::EntityCreateBeneficialOwnerParams.dump_request(params)
|
|
186
|
-
@client.request(
|
|
187
|
-
method: :post,
|
|
188
|
-
path: ["entities/%1$s/create_beneficial_owner", entity_id],
|
|
189
|
-
body: parsed,
|
|
190
|
-
model: Increase::Entity,
|
|
191
|
-
options: options
|
|
192
|
-
)
|
|
193
|
-
end
|
|
194
|
-
|
|
195
168
|
# @api private
|
|
196
169
|
#
|
|
197
170
|
# @param client [Increase::Client]
|
data/lib/increase/version.rb
CHANGED
data/lib/increase.rb
CHANGED
|
@@ -87,6 +87,7 @@ require_relative "increase/models/ach_transfer_list_params"
|
|
|
87
87
|
require_relative "increase/models/ach_transfer_retrieve_params"
|
|
88
88
|
require_relative "increase/models/balance_lookup"
|
|
89
89
|
require_relative "increase/models/beneficial_owner_archive_params"
|
|
90
|
+
require_relative "increase/models/beneficial_owner_create_params"
|
|
90
91
|
require_relative "increase/models/beneficial_owner_list_params"
|
|
91
92
|
require_relative "increase/models/beneficial_owner_retrieve_params"
|
|
92
93
|
require_relative "increase/models/beneficial_owner_update_params"
|
|
@@ -166,7 +167,6 @@ require_relative "increase/models/digital_wallet_token_retrieve_params"
|
|
|
166
167
|
require_relative "increase/models/entity"
|
|
167
168
|
require_relative "increase/models/entity_archive_params"
|
|
168
169
|
require_relative "increase/models/entity_beneficial_owner"
|
|
169
|
-
require_relative "increase/models/entity_create_beneficial_owner_params"
|
|
170
170
|
require_relative "increase/models/entity_create_params"
|
|
171
171
|
require_relative "increase/models/entity_list_params"
|
|
172
172
|
require_relative "increase/models/entity_retrieve_params"
|