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
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
type beneficial_owner_create_params =
|
|
4
|
+
{
|
|
5
|
+
entity_id: String,
|
|
6
|
+
individual: Increase::BeneficialOwnerCreateParams::Individual,
|
|
7
|
+
prongs: ::Array[Increase::Models::BeneficialOwnerCreateParams::prong],
|
|
8
|
+
company_title: String
|
|
9
|
+
}
|
|
10
|
+
& Increase::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class BeneficialOwnerCreateParams < Increase::Internal::Type::BaseModel
|
|
13
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Increase::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor entity_id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor individual: Increase::BeneficialOwnerCreateParams::Individual
|
|
19
|
+
|
|
20
|
+
attr_accessor prongs: ::Array[Increase::Models::BeneficialOwnerCreateParams::prong]
|
|
21
|
+
|
|
22
|
+
attr_reader company_title: String?
|
|
23
|
+
|
|
24
|
+
def company_title=: (String) -> String
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
entity_id: String,
|
|
28
|
+
individual: Increase::BeneficialOwnerCreateParams::Individual,
|
|
29
|
+
prongs: ::Array[Increase::Models::BeneficialOwnerCreateParams::prong],
|
|
30
|
+
?company_title: String,
|
|
31
|
+
?request_options: Increase::request_opts
|
|
32
|
+
) -> void
|
|
33
|
+
|
|
34
|
+
def to_hash: -> {
|
|
35
|
+
entity_id: String,
|
|
36
|
+
individual: Increase::BeneficialOwnerCreateParams::Individual,
|
|
37
|
+
prongs: ::Array[Increase::Models::BeneficialOwnerCreateParams::prong],
|
|
38
|
+
company_title: String,
|
|
39
|
+
request_options: Increase::RequestOptions
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
type individual =
|
|
43
|
+
{
|
|
44
|
+
address: Increase::BeneficialOwnerCreateParams::Individual::Address,
|
|
45
|
+
date_of_birth: Date,
|
|
46
|
+
identification: Increase::BeneficialOwnerCreateParams::Individual::Identification,
|
|
47
|
+
name: String,
|
|
48
|
+
confirmed_no_us_tax_id: bool
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
class Individual < Increase::Internal::Type::BaseModel
|
|
52
|
+
attr_accessor address: Increase::BeneficialOwnerCreateParams::Individual::Address
|
|
53
|
+
|
|
54
|
+
attr_accessor date_of_birth: Date
|
|
55
|
+
|
|
56
|
+
attr_accessor identification: Increase::BeneficialOwnerCreateParams::Individual::Identification
|
|
57
|
+
|
|
58
|
+
attr_accessor name: String
|
|
59
|
+
|
|
60
|
+
attr_reader confirmed_no_us_tax_id: bool?
|
|
61
|
+
|
|
62
|
+
def confirmed_no_us_tax_id=: (bool) -> bool
|
|
63
|
+
|
|
64
|
+
def initialize: (
|
|
65
|
+
address: Increase::BeneficialOwnerCreateParams::Individual::Address,
|
|
66
|
+
date_of_birth: Date,
|
|
67
|
+
identification: Increase::BeneficialOwnerCreateParams::Individual::Identification,
|
|
68
|
+
name: String,
|
|
69
|
+
?confirmed_no_us_tax_id: bool
|
|
70
|
+
) -> void
|
|
71
|
+
|
|
72
|
+
def to_hash: -> {
|
|
73
|
+
address: Increase::BeneficialOwnerCreateParams::Individual::Address,
|
|
74
|
+
date_of_birth: Date,
|
|
75
|
+
identification: Increase::BeneficialOwnerCreateParams::Individual::Identification,
|
|
76
|
+
name: String,
|
|
77
|
+
confirmed_no_us_tax_id: bool
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type address =
|
|
81
|
+
{
|
|
82
|
+
city: String,
|
|
83
|
+
country: String,
|
|
84
|
+
:line1 => String,
|
|
85
|
+
:line2 => String,
|
|
86
|
+
state: String,
|
|
87
|
+
zip: String
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
class Address < Increase::Internal::Type::BaseModel
|
|
91
|
+
attr_accessor city: String
|
|
92
|
+
|
|
93
|
+
attr_accessor country: String
|
|
94
|
+
|
|
95
|
+
attr_accessor line1: String
|
|
96
|
+
|
|
97
|
+
attr_reader line2: String?
|
|
98
|
+
|
|
99
|
+
def line2=: (String) -> String
|
|
100
|
+
|
|
101
|
+
attr_reader state: String?
|
|
102
|
+
|
|
103
|
+
def state=: (String) -> String
|
|
104
|
+
|
|
105
|
+
attr_reader zip: String?
|
|
106
|
+
|
|
107
|
+
def zip=: (String) -> String
|
|
108
|
+
|
|
109
|
+
def initialize: (
|
|
110
|
+
city: String,
|
|
111
|
+
country: String,
|
|
112
|
+
line1: String,
|
|
113
|
+
?line2: String,
|
|
114
|
+
?state: String,
|
|
115
|
+
?zip: String
|
|
116
|
+
) -> void
|
|
117
|
+
|
|
118
|
+
def to_hash: -> {
|
|
119
|
+
city: String,
|
|
120
|
+
country: String,
|
|
121
|
+
:line1 => String,
|
|
122
|
+
:line2 => String,
|
|
123
|
+
state: String,
|
|
124
|
+
zip: String
|
|
125
|
+
}
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
type identification =
|
|
129
|
+
{
|
|
130
|
+
method_: Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::method_,
|
|
131
|
+
number: String,
|
|
132
|
+
drivers_license: Increase::BeneficialOwnerCreateParams::Individual::Identification::DriversLicense,
|
|
133
|
+
other: Increase::BeneficialOwnerCreateParams::Individual::Identification::Other,
|
|
134
|
+
passport: Increase::BeneficialOwnerCreateParams::Individual::Identification::Passport
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
class Identification < Increase::Internal::Type::BaseModel
|
|
138
|
+
attr_accessor method_: Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::method_
|
|
139
|
+
|
|
140
|
+
attr_accessor number: String
|
|
141
|
+
|
|
142
|
+
attr_reader drivers_license: Increase::BeneficialOwnerCreateParams::Individual::Identification::DriversLicense?
|
|
143
|
+
|
|
144
|
+
def drivers_license=: (
|
|
145
|
+
Increase::BeneficialOwnerCreateParams::Individual::Identification::DriversLicense
|
|
146
|
+
) -> Increase::BeneficialOwnerCreateParams::Individual::Identification::DriversLicense
|
|
147
|
+
|
|
148
|
+
attr_reader other: Increase::BeneficialOwnerCreateParams::Individual::Identification::Other?
|
|
149
|
+
|
|
150
|
+
def other=: (
|
|
151
|
+
Increase::BeneficialOwnerCreateParams::Individual::Identification::Other
|
|
152
|
+
) -> Increase::BeneficialOwnerCreateParams::Individual::Identification::Other
|
|
153
|
+
|
|
154
|
+
attr_reader passport: Increase::BeneficialOwnerCreateParams::Individual::Identification::Passport?
|
|
155
|
+
|
|
156
|
+
def passport=: (
|
|
157
|
+
Increase::BeneficialOwnerCreateParams::Individual::Identification::Passport
|
|
158
|
+
) -> Increase::BeneficialOwnerCreateParams::Individual::Identification::Passport
|
|
159
|
+
|
|
160
|
+
def initialize: (
|
|
161
|
+
method_: Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::method_,
|
|
162
|
+
number: String,
|
|
163
|
+
?drivers_license: Increase::BeneficialOwnerCreateParams::Individual::Identification::DriversLicense,
|
|
164
|
+
?other: Increase::BeneficialOwnerCreateParams::Individual::Identification::Other,
|
|
165
|
+
?passport: Increase::BeneficialOwnerCreateParams::Individual::Identification::Passport
|
|
166
|
+
) -> void
|
|
167
|
+
|
|
168
|
+
def to_hash: -> {
|
|
169
|
+
method_: Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::method_,
|
|
170
|
+
number: String,
|
|
171
|
+
drivers_license: Increase::BeneficialOwnerCreateParams::Individual::Identification::DriversLicense,
|
|
172
|
+
other: Increase::BeneficialOwnerCreateParams::Individual::Identification::Other,
|
|
173
|
+
passport: Increase::BeneficialOwnerCreateParams::Individual::Identification::Passport
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
type method_ =
|
|
177
|
+
:social_security_number
|
|
178
|
+
| :individual_taxpayer_identification_number
|
|
179
|
+
| :passport
|
|
180
|
+
| :drivers_license
|
|
181
|
+
| :other
|
|
182
|
+
|
|
183
|
+
module Method
|
|
184
|
+
extend Increase::Internal::Type::Enum
|
|
185
|
+
|
|
186
|
+
# A social security number.
|
|
187
|
+
SOCIAL_SECURITY_NUMBER: :social_security_number
|
|
188
|
+
|
|
189
|
+
# An individual taxpayer identification number (ITIN).
|
|
190
|
+
INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER: :individual_taxpayer_identification_number
|
|
191
|
+
|
|
192
|
+
# A passport number.
|
|
193
|
+
PASSPORT: :passport
|
|
194
|
+
|
|
195
|
+
# A driver's license number.
|
|
196
|
+
DRIVERS_LICENSE: :drivers_license
|
|
197
|
+
|
|
198
|
+
# Another identifying document.
|
|
199
|
+
OTHER: :other
|
|
200
|
+
|
|
201
|
+
def self?.values: -> ::Array[Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::method_]
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
type drivers_license =
|
|
205
|
+
{
|
|
206
|
+
expiration_date: Date,
|
|
207
|
+
file_id: String,
|
|
208
|
+
state: String,
|
|
209
|
+
back_file_id: String
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
class DriversLicense < Increase::Internal::Type::BaseModel
|
|
213
|
+
attr_accessor expiration_date: Date
|
|
214
|
+
|
|
215
|
+
attr_accessor file_id: String
|
|
216
|
+
|
|
217
|
+
attr_accessor state: String
|
|
218
|
+
|
|
219
|
+
attr_reader back_file_id: String?
|
|
220
|
+
|
|
221
|
+
def back_file_id=: (String) -> String
|
|
222
|
+
|
|
223
|
+
def initialize: (
|
|
224
|
+
expiration_date: Date,
|
|
225
|
+
file_id: String,
|
|
226
|
+
state: String,
|
|
227
|
+
?back_file_id: String
|
|
228
|
+
) -> void
|
|
229
|
+
|
|
230
|
+
def to_hash: -> {
|
|
231
|
+
expiration_date: Date,
|
|
232
|
+
file_id: String,
|
|
233
|
+
state: String,
|
|
234
|
+
back_file_id: String
|
|
235
|
+
}
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
type other =
|
|
239
|
+
{
|
|
240
|
+
country: String,
|
|
241
|
+
description: String,
|
|
242
|
+
file_id: String,
|
|
243
|
+
back_file_id: String,
|
|
244
|
+
expiration_date: Date
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
class Other < Increase::Internal::Type::BaseModel
|
|
248
|
+
attr_accessor country: String
|
|
249
|
+
|
|
250
|
+
attr_accessor description: String
|
|
251
|
+
|
|
252
|
+
attr_accessor file_id: String
|
|
253
|
+
|
|
254
|
+
attr_reader back_file_id: String?
|
|
255
|
+
|
|
256
|
+
def back_file_id=: (String) -> String
|
|
257
|
+
|
|
258
|
+
attr_reader expiration_date: Date?
|
|
259
|
+
|
|
260
|
+
def expiration_date=: (Date) -> Date
|
|
261
|
+
|
|
262
|
+
def initialize: (
|
|
263
|
+
country: String,
|
|
264
|
+
description: String,
|
|
265
|
+
file_id: String,
|
|
266
|
+
?back_file_id: String,
|
|
267
|
+
?expiration_date: Date
|
|
268
|
+
) -> void
|
|
269
|
+
|
|
270
|
+
def to_hash: -> {
|
|
271
|
+
country: String,
|
|
272
|
+
description: String,
|
|
273
|
+
file_id: String,
|
|
274
|
+
back_file_id: String,
|
|
275
|
+
expiration_date: Date
|
|
276
|
+
}
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
type passport =
|
|
280
|
+
{ country: String, expiration_date: Date, file_id: String }
|
|
281
|
+
|
|
282
|
+
class Passport < Increase::Internal::Type::BaseModel
|
|
283
|
+
attr_accessor country: String
|
|
284
|
+
|
|
285
|
+
attr_accessor expiration_date: Date
|
|
286
|
+
|
|
287
|
+
attr_accessor file_id: String
|
|
288
|
+
|
|
289
|
+
def initialize: (
|
|
290
|
+
country: String,
|
|
291
|
+
expiration_date: Date,
|
|
292
|
+
file_id: String
|
|
293
|
+
) -> void
|
|
294
|
+
|
|
295
|
+
def to_hash: -> {
|
|
296
|
+
country: String,
|
|
297
|
+
expiration_date: Date,
|
|
298
|
+
file_id: String
|
|
299
|
+
}
|
|
300
|
+
end
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
type prong = :ownership | :control
|
|
305
|
+
|
|
306
|
+
module Prong
|
|
307
|
+
extend Increase::Internal::Type::Enum
|
|
308
|
+
|
|
309
|
+
# A person with 25% or greater direct or indirect ownership of the entity.
|
|
310
|
+
OWNERSHIP: :ownership
|
|
311
|
+
|
|
312
|
+
# A person who manages, directs, or has significant control of the entity.
|
|
313
|
+
CONTROL: :control
|
|
314
|
+
|
|
315
|
+
def self?.values: -> ::Array[Increase::Models::BeneficialOwnerCreateParams::prong]
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
end
|
|
319
|
+
end
|
|
@@ -8,6 +8,7 @@ module Increase
|
|
|
8
8
|
approval: Increase::CardPushTransfer::Approval?,
|
|
9
9
|
business_application_identifier: Increase::Models::CardPushTransfer::business_application_identifier,
|
|
10
10
|
cancellation: Increase::CardPushTransfer::Cancellation?,
|
|
11
|
+
card_token_id: String,
|
|
11
12
|
created_at: Time,
|
|
12
13
|
created_by: Increase::CardPushTransfer::CreatedBy?,
|
|
13
14
|
decline: Increase::CardPushTransfer::Decline?,
|
|
@@ -44,6 +45,8 @@ module Increase
|
|
|
44
45
|
|
|
45
46
|
attr_accessor cancellation: Increase::CardPushTransfer::Cancellation?
|
|
46
47
|
|
|
48
|
+
attr_accessor card_token_id: String
|
|
49
|
+
|
|
47
50
|
attr_accessor created_at: Time
|
|
48
51
|
|
|
49
52
|
attr_accessor created_by: Increase::CardPushTransfer::CreatedBy?
|
|
@@ -93,6 +96,7 @@ module Increase
|
|
|
93
96
|
approval: Increase::CardPushTransfer::Approval?,
|
|
94
97
|
business_application_identifier: Increase::Models::CardPushTransfer::business_application_identifier,
|
|
95
98
|
cancellation: Increase::CardPushTransfer::Cancellation?,
|
|
99
|
+
card_token_id: String,
|
|
96
100
|
created_at: Time,
|
|
97
101
|
created_by: Increase::CardPushTransfer::CreatedBy?,
|
|
98
102
|
decline: Increase::CardPushTransfer::Decline?,
|
|
@@ -123,6 +127,7 @@ module Increase
|
|
|
123
127
|
approval: Increase::CardPushTransfer::Approval?,
|
|
124
128
|
business_application_identifier: Increase::Models::CardPushTransfer::business_application_identifier,
|
|
125
129
|
cancellation: Increase::CardPushTransfer::Cancellation?,
|
|
130
|
+
card_token_id: String,
|
|
126
131
|
created_at: Time,
|
|
127
132
|
created_by: Increase::CardPushTransfer::CreatedBy?,
|
|
128
133
|
decline: Increase::CardPushTransfer::Decline?,
|
|
@@ -99,7 +99,7 @@ module Increase
|
|
|
99
99
|
type corporation =
|
|
100
100
|
{
|
|
101
101
|
address: Increase::Entity::Corporation::Address,
|
|
102
|
-
beneficial_owners: ::Array[Increase::
|
|
102
|
+
beneficial_owners: ::Array[Increase::Entity::Corporation::BeneficialOwner],
|
|
103
103
|
email: String?,
|
|
104
104
|
incorporation_state: String?,
|
|
105
105
|
industry_code: String?,
|
|
@@ -111,7 +111,7 @@ module Increase
|
|
|
111
111
|
class Corporation < Increase::Internal::Type::BaseModel
|
|
112
112
|
attr_accessor address: Increase::Entity::Corporation::Address
|
|
113
113
|
|
|
114
|
-
attr_accessor beneficial_owners: ::Array[Increase::
|
|
114
|
+
attr_accessor beneficial_owners: ::Array[Increase::Entity::Corporation::BeneficialOwner]
|
|
115
115
|
|
|
116
116
|
attr_accessor email: String?
|
|
117
117
|
|
|
@@ -127,7 +127,7 @@ module Increase
|
|
|
127
127
|
|
|
128
128
|
def initialize: (
|
|
129
129
|
address: Increase::Entity::Corporation::Address,
|
|
130
|
-
beneficial_owners: ::Array[Increase::
|
|
130
|
+
beneficial_owners: ::Array[Increase::Entity::Corporation::BeneficialOwner],
|
|
131
131
|
email: String?,
|
|
132
132
|
incorporation_state: String?,
|
|
133
133
|
industry_code: String?,
|
|
@@ -138,7 +138,7 @@ module Increase
|
|
|
138
138
|
|
|
139
139
|
def to_hash: -> {
|
|
140
140
|
address: Increase::Entity::Corporation::Address,
|
|
141
|
-
beneficial_owners: ::Array[Increase::
|
|
141
|
+
beneficial_owners: ::Array[Increase::Entity::Corporation::BeneficialOwner],
|
|
142
142
|
email: String?,
|
|
143
143
|
incorporation_state: String?,
|
|
144
144
|
industry_code: String?,
|
|
@@ -183,6 +183,176 @@ module Increase
|
|
|
183
183
|
zip: String
|
|
184
184
|
}
|
|
185
185
|
end
|
|
186
|
+
|
|
187
|
+
type beneficial_owner =
|
|
188
|
+
{
|
|
189
|
+
id: String,
|
|
190
|
+
company_title: String?,
|
|
191
|
+
individual: Increase::Entity::Corporation::BeneficialOwner::Individual,
|
|
192
|
+
prongs: ::Array[Increase::Models::Entity::Corporation::BeneficialOwner::prong]
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
class BeneficialOwner < Increase::Internal::Type::BaseModel
|
|
196
|
+
attr_accessor id: String
|
|
197
|
+
|
|
198
|
+
attr_accessor company_title: String?
|
|
199
|
+
|
|
200
|
+
attr_accessor individual: Increase::Entity::Corporation::BeneficialOwner::Individual
|
|
201
|
+
|
|
202
|
+
attr_accessor prongs: ::Array[Increase::Models::Entity::Corporation::BeneficialOwner::prong]
|
|
203
|
+
|
|
204
|
+
def initialize: (
|
|
205
|
+
id: String,
|
|
206
|
+
company_title: String?,
|
|
207
|
+
individual: Increase::Entity::Corporation::BeneficialOwner::Individual,
|
|
208
|
+
prongs: ::Array[Increase::Models::Entity::Corporation::BeneficialOwner::prong]
|
|
209
|
+
) -> void
|
|
210
|
+
|
|
211
|
+
def to_hash: -> {
|
|
212
|
+
id: String,
|
|
213
|
+
company_title: String?,
|
|
214
|
+
individual: Increase::Entity::Corporation::BeneficialOwner::Individual,
|
|
215
|
+
prongs: ::Array[Increase::Models::Entity::Corporation::BeneficialOwner::prong]
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
type individual =
|
|
219
|
+
{
|
|
220
|
+
address: Increase::Entity::Corporation::BeneficialOwner::Individual::Address,
|
|
221
|
+
date_of_birth: Date,
|
|
222
|
+
identification: Increase::Entity::Corporation::BeneficialOwner::Individual::Identification,
|
|
223
|
+
name: String
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
class Individual < Increase::Internal::Type::BaseModel
|
|
227
|
+
attr_accessor address: Increase::Entity::Corporation::BeneficialOwner::Individual::Address
|
|
228
|
+
|
|
229
|
+
attr_accessor date_of_birth: Date
|
|
230
|
+
|
|
231
|
+
attr_accessor identification: Increase::Entity::Corporation::BeneficialOwner::Individual::Identification
|
|
232
|
+
|
|
233
|
+
attr_accessor name: String
|
|
234
|
+
|
|
235
|
+
def initialize: (
|
|
236
|
+
address: Increase::Entity::Corporation::BeneficialOwner::Individual::Address,
|
|
237
|
+
date_of_birth: Date,
|
|
238
|
+
identification: Increase::Entity::Corporation::BeneficialOwner::Individual::Identification,
|
|
239
|
+
name: String
|
|
240
|
+
) -> void
|
|
241
|
+
|
|
242
|
+
def to_hash: -> {
|
|
243
|
+
address: Increase::Entity::Corporation::BeneficialOwner::Individual::Address,
|
|
244
|
+
date_of_birth: Date,
|
|
245
|
+
identification: Increase::Entity::Corporation::BeneficialOwner::Individual::Identification,
|
|
246
|
+
name: String
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
type address =
|
|
250
|
+
{
|
|
251
|
+
city: String?,
|
|
252
|
+
country: String,
|
|
253
|
+
:line1 => String,
|
|
254
|
+
:line2 => String?,
|
|
255
|
+
state: String?,
|
|
256
|
+
zip: String?
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
class Address < Increase::Internal::Type::BaseModel
|
|
260
|
+
attr_accessor city: String?
|
|
261
|
+
|
|
262
|
+
attr_accessor country: String
|
|
263
|
+
|
|
264
|
+
attr_accessor line1: String
|
|
265
|
+
|
|
266
|
+
attr_accessor line2: String?
|
|
267
|
+
|
|
268
|
+
attr_accessor state: String?
|
|
269
|
+
|
|
270
|
+
attr_accessor zip: String?
|
|
271
|
+
|
|
272
|
+
def initialize: (
|
|
273
|
+
city: String?,
|
|
274
|
+
country: String,
|
|
275
|
+
line1: String,
|
|
276
|
+
line2: String?,
|
|
277
|
+
state: String?,
|
|
278
|
+
zip: String?
|
|
279
|
+
) -> void
|
|
280
|
+
|
|
281
|
+
def to_hash: -> {
|
|
282
|
+
city: String?,
|
|
283
|
+
country: String,
|
|
284
|
+
:line1 => String,
|
|
285
|
+
:line2 => String?,
|
|
286
|
+
state: String?,
|
|
287
|
+
zip: String?
|
|
288
|
+
}
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
type identification =
|
|
292
|
+
{
|
|
293
|
+
method_: Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification::method_,
|
|
294
|
+
:number_last4 => String
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
class Identification < Increase::Internal::Type::BaseModel
|
|
298
|
+
attr_accessor method_: Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification::method_
|
|
299
|
+
|
|
300
|
+
attr_accessor number_last4: String
|
|
301
|
+
|
|
302
|
+
def initialize: (
|
|
303
|
+
method_: Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification::method_,
|
|
304
|
+
number_last4: String
|
|
305
|
+
) -> void
|
|
306
|
+
|
|
307
|
+
def to_hash: -> {
|
|
308
|
+
method_: Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification::method_,
|
|
309
|
+
:number_last4 => String
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
type method_ =
|
|
313
|
+
:social_security_number
|
|
314
|
+
| :individual_taxpayer_identification_number
|
|
315
|
+
| :passport
|
|
316
|
+
| :drivers_license
|
|
317
|
+
| :other
|
|
318
|
+
|
|
319
|
+
module Method
|
|
320
|
+
extend Increase::Internal::Type::Enum
|
|
321
|
+
|
|
322
|
+
# A social security number.
|
|
323
|
+
SOCIAL_SECURITY_NUMBER: :social_security_number
|
|
324
|
+
|
|
325
|
+
# An individual taxpayer identification number (ITIN).
|
|
326
|
+
INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER: :individual_taxpayer_identification_number
|
|
327
|
+
|
|
328
|
+
# A passport number.
|
|
329
|
+
PASSPORT: :passport
|
|
330
|
+
|
|
331
|
+
# A driver's license number.
|
|
332
|
+
DRIVERS_LICENSE: :drivers_license
|
|
333
|
+
|
|
334
|
+
# Another identifying document.
|
|
335
|
+
OTHER: :other
|
|
336
|
+
|
|
337
|
+
def self?.values: -> ::Array[Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Identification::method_]
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
type prong = :ownership | :control
|
|
343
|
+
|
|
344
|
+
module Prong
|
|
345
|
+
extend Increase::Internal::Type::Enum
|
|
346
|
+
|
|
347
|
+
# A person with 25% or greater direct or indirect ownership of the entity.
|
|
348
|
+
OWNERSHIP: :ownership
|
|
349
|
+
|
|
350
|
+
# A person who manages, directs, or has significant control of the entity.
|
|
351
|
+
CONTROL: :control
|
|
352
|
+
|
|
353
|
+
def self?.values: -> ::Array[Increase::Models::Entity::Corporation::BeneficialOwner::prong]
|
|
354
|
+
end
|
|
355
|
+
end
|
|
186
356
|
end
|
|
187
357
|
|
|
188
358
|
type government_authority =
|
|
@@ -5,6 +5,8 @@ module Increase
|
|
|
5
5
|
id: String,
|
|
6
6
|
company_title: String?,
|
|
7
7
|
created_at: Time,
|
|
8
|
+
entity_id: String,
|
|
9
|
+
idempotency_key: String?,
|
|
8
10
|
individual: Increase::EntityBeneficialOwner::Individual,
|
|
9
11
|
prongs: ::Array[Increase::Models::EntityBeneficialOwner::prong],
|
|
10
12
|
type: Increase::Models::EntityBeneficialOwner::type_
|
|
@@ -17,6 +19,10 @@ module Increase
|
|
|
17
19
|
|
|
18
20
|
attr_accessor created_at: Time
|
|
19
21
|
|
|
22
|
+
attr_accessor entity_id: String
|
|
23
|
+
|
|
24
|
+
attr_accessor idempotency_key: String?
|
|
25
|
+
|
|
20
26
|
attr_accessor individual: Increase::EntityBeneficialOwner::Individual
|
|
21
27
|
|
|
22
28
|
attr_accessor prongs: ::Array[Increase::Models::EntityBeneficialOwner::prong]
|
|
@@ -27,6 +33,8 @@ module Increase
|
|
|
27
33
|
id: String,
|
|
28
34
|
company_title: String?,
|
|
29
35
|
created_at: Time,
|
|
36
|
+
entity_id: String,
|
|
37
|
+
idempotency_key: String?,
|
|
30
38
|
individual: Increase::EntityBeneficialOwner::Individual,
|
|
31
39
|
prongs: ::Array[Increase::Models::EntityBeneficialOwner::prong],
|
|
32
40
|
type: Increase::Models::EntityBeneficialOwner::type_
|
|
@@ -36,6 +44,8 @@ module Increase
|
|
|
36
44
|
id: String,
|
|
37
45
|
company_title: String?,
|
|
38
46
|
created_at: Time,
|
|
47
|
+
entity_id: String,
|
|
48
|
+
idempotency_key: String?,
|
|
39
49
|
individual: Increase::EntityBeneficialOwner::Individual,
|
|
40
50
|
prongs: ::Array[Increase::Models::EntityBeneficialOwner::prong],
|
|
41
51
|
type: Increase::Models::EntityBeneficialOwner::type_
|
data/sig/increase/models.rbs
CHANGED
|
@@ -65,6 +65,8 @@ module Increase
|
|
|
65
65
|
|
|
66
66
|
class BeneficialOwnerArchiveParams = Increase::Models::BeneficialOwnerArchiveParams
|
|
67
67
|
|
|
68
|
+
class BeneficialOwnerCreateParams = Increase::Models::BeneficialOwnerCreateParams
|
|
69
|
+
|
|
68
70
|
class BeneficialOwnerListParams = Increase::Models::BeneficialOwnerListParams
|
|
69
71
|
|
|
70
72
|
class BeneficialOwnerRetrieveParams = Increase::Models::BeneficialOwnerRetrieveParams
|
|
@@ -223,8 +225,6 @@ module Increase
|
|
|
223
225
|
|
|
224
226
|
class EntityBeneficialOwner = Increase::Models::EntityBeneficialOwner
|
|
225
227
|
|
|
226
|
-
class EntityCreateBeneficialOwnerParams = Increase::Models::EntityCreateBeneficialOwnerParams
|
|
227
|
-
|
|
228
228
|
class EntityCreateParams = Increase::Models::EntityCreateParams
|
|
229
229
|
|
|
230
230
|
class EntityListParams = Increase::Models::EntityListParams
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
module Increase
|
|
2
2
|
module Resources
|
|
3
3
|
class BeneficialOwners
|
|
4
|
+
def create: (
|
|
5
|
+
entity_id: String,
|
|
6
|
+
individual: Increase::BeneficialOwnerCreateParams::Individual,
|
|
7
|
+
prongs: ::Array[Increase::Models::BeneficialOwnerCreateParams::prong],
|
|
8
|
+
?company_title: String,
|
|
9
|
+
?request_options: Increase::request_opts
|
|
10
|
+
) -> Increase::EntityBeneficialOwner
|
|
11
|
+
|
|
4
12
|
def retrieve: (
|
|
5
13
|
String entity_beneficial_owner_id,
|
|
6
14
|
?request_options: Increase::request_opts
|
|
@@ -47,12 +47,6 @@ module Increase
|
|
|
47
47
|
?request_options: Increase::request_opts
|
|
48
48
|
) -> Increase::Entity
|
|
49
49
|
|
|
50
|
-
def create_beneficial_owner: (
|
|
51
|
-
String entity_id,
|
|
52
|
-
beneficial_owner: Increase::EntityCreateBeneficialOwnerParams::BeneficialOwner,
|
|
53
|
-
?request_options: Increase::request_opts
|
|
54
|
-
) -> Increase::Entity
|
|
55
|
-
|
|
56
50
|
def initialize: (client: Increase::Client) -> void
|
|
57
51
|
end
|
|
58
52
|
end
|