increase 1.238.0 → 1.240.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 +16 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +4 -0
- data/lib/increase/models/beneficial_owner_list_params.rb +54 -0
- data/lib/increase/models/beneficial_owner_retrieve_params.rb +22 -0
- data/lib/increase/models/entity.rb +3 -207
- data/lib/increase/models/entity_beneficial_owner.rb +238 -0
- data/lib/increase/models/simulations/card_token_create_params.rb +197 -1
- data/lib/increase/models.rb +6 -0
- data/lib/increase/resources/beneficial_owners.rb +67 -0
- data/lib/increase/resources/simulations/card_tokens.rb +3 -1
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +4 -0
- data/rbi/increase/client.rbi +3 -0
- data/rbi/increase/models/beneficial_owner_list_params.rbi +89 -0
- data/rbi/increase/models/beneficial_owner_retrieve_params.rbi +46 -0
- data/rbi/increase/models/entity.rbi +3 -403
- data/rbi/increase/models/entity_beneficial_owner.rbi +412 -0
- data/rbi/increase/models/simulations/card_token_create_params.rbi +495 -0
- data/rbi/increase/models.rbi +7 -0
- data/rbi/increase/resources/beneficial_owners.rbi +54 -0
- data/rbi/increase/resources/simulations/card_tokens.rbi +4 -0
- data/sig/increase/client.rbs +2 -0
- data/sig/increase/models/beneficial_owner_list_params.rbs +47 -0
- data/sig/increase/models/beneficial_owner_retrieve_params.rbs +24 -0
- data/sig/increase/models/entity.rbs +4 -174
- data/sig/increase/models/entity_beneficial_owner.rbs +193 -0
- data/sig/increase/models/simulations/card_token_create_params.rbs +246 -0
- data/sig/increase/models.rbs +6 -0
- data/sig/increase/resources/beneficial_owners.rbs +20 -0
- data/sig/increase/resources/simulations/card_tokens.rbs +1 -0
- metadata +14 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
type beneficial_owner_retrieve_params =
|
|
4
|
+
{ entity_beneficial_owner_id: String }
|
|
5
|
+
& Increase::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class BeneficialOwnerRetrieveParams < Increase::Internal::Type::BaseModel
|
|
8
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Increase::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor entity_beneficial_owner_id: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
entity_beneficial_owner_id: String,
|
|
15
|
+
?request_options: Increase::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
entity_beneficial_owner_id: String,
|
|
20
|
+
request_options: Increase::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -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::EntityBeneficialOwner],
|
|
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::EntityBeneficialOwner]
|
|
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::EntityBeneficialOwner],
|
|
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::EntityBeneficialOwner],
|
|
142
142
|
email: String?,
|
|
143
143
|
incorporation_state: String?,
|
|
144
144
|
industry_code: String?,
|
|
@@ -183,176 +183,6 @@ 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
|
|
356
186
|
end
|
|
357
187
|
|
|
358
188
|
type government_authority =
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
type entity_beneficial_owner =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
company_title: String?,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
individual: Increase::EntityBeneficialOwner::Individual,
|
|
9
|
+
prongs: ::Array[Increase::Models::EntityBeneficialOwner::prong],
|
|
10
|
+
type: Increase::Models::EntityBeneficialOwner::type_
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class EntityBeneficialOwner < Increase::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor company_title: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor created_at: Time
|
|
19
|
+
|
|
20
|
+
attr_accessor individual: Increase::EntityBeneficialOwner::Individual
|
|
21
|
+
|
|
22
|
+
attr_accessor prongs: ::Array[Increase::Models::EntityBeneficialOwner::prong]
|
|
23
|
+
|
|
24
|
+
attr_accessor type: Increase::Models::EntityBeneficialOwner::type_
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
id: String,
|
|
28
|
+
company_title: String?,
|
|
29
|
+
created_at: Time,
|
|
30
|
+
individual: Increase::EntityBeneficialOwner::Individual,
|
|
31
|
+
prongs: ::Array[Increase::Models::EntityBeneficialOwner::prong],
|
|
32
|
+
type: Increase::Models::EntityBeneficialOwner::type_
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
id: String,
|
|
37
|
+
company_title: String?,
|
|
38
|
+
created_at: Time,
|
|
39
|
+
individual: Increase::EntityBeneficialOwner::Individual,
|
|
40
|
+
prongs: ::Array[Increase::Models::EntityBeneficialOwner::prong],
|
|
41
|
+
type: Increase::Models::EntityBeneficialOwner::type_
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type individual =
|
|
45
|
+
{
|
|
46
|
+
address: Increase::EntityBeneficialOwner::Individual::Address,
|
|
47
|
+
date_of_birth: Date,
|
|
48
|
+
identification: Increase::EntityBeneficialOwner::Individual::Identification,
|
|
49
|
+
name: String
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
class Individual < Increase::Internal::Type::BaseModel
|
|
53
|
+
attr_accessor address: Increase::EntityBeneficialOwner::Individual::Address
|
|
54
|
+
|
|
55
|
+
attr_accessor date_of_birth: Date
|
|
56
|
+
|
|
57
|
+
attr_accessor identification: Increase::EntityBeneficialOwner::Individual::Identification
|
|
58
|
+
|
|
59
|
+
attr_accessor name: String
|
|
60
|
+
|
|
61
|
+
def initialize: (
|
|
62
|
+
address: Increase::EntityBeneficialOwner::Individual::Address,
|
|
63
|
+
date_of_birth: Date,
|
|
64
|
+
identification: Increase::EntityBeneficialOwner::Individual::Identification,
|
|
65
|
+
name: String
|
|
66
|
+
) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> {
|
|
69
|
+
address: Increase::EntityBeneficialOwner::Individual::Address,
|
|
70
|
+
date_of_birth: Date,
|
|
71
|
+
identification: Increase::EntityBeneficialOwner::Individual::Identification,
|
|
72
|
+
name: String
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
type address =
|
|
76
|
+
{
|
|
77
|
+
city: String?,
|
|
78
|
+
country: String,
|
|
79
|
+
:line1 => String,
|
|
80
|
+
:line2 => String?,
|
|
81
|
+
state: String?,
|
|
82
|
+
zip: String?
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
class Address < Increase::Internal::Type::BaseModel
|
|
86
|
+
attr_accessor city: String?
|
|
87
|
+
|
|
88
|
+
attr_accessor country: String
|
|
89
|
+
|
|
90
|
+
attr_accessor line1: String
|
|
91
|
+
|
|
92
|
+
attr_accessor line2: String?
|
|
93
|
+
|
|
94
|
+
attr_accessor state: String?
|
|
95
|
+
|
|
96
|
+
attr_accessor zip: String?
|
|
97
|
+
|
|
98
|
+
def initialize: (
|
|
99
|
+
city: String?,
|
|
100
|
+
country: String,
|
|
101
|
+
line1: String,
|
|
102
|
+
line2: String?,
|
|
103
|
+
state: String?,
|
|
104
|
+
zip: String?
|
|
105
|
+
) -> void
|
|
106
|
+
|
|
107
|
+
def to_hash: -> {
|
|
108
|
+
city: String?,
|
|
109
|
+
country: String,
|
|
110
|
+
:line1 => String,
|
|
111
|
+
:line2 => String?,
|
|
112
|
+
state: String?,
|
|
113
|
+
zip: String?
|
|
114
|
+
}
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
type identification =
|
|
118
|
+
{
|
|
119
|
+
method_: Increase::Models::EntityBeneficialOwner::Individual::Identification::method_,
|
|
120
|
+
:number_last4 => String
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
class Identification < Increase::Internal::Type::BaseModel
|
|
124
|
+
attr_accessor method_: Increase::Models::EntityBeneficialOwner::Individual::Identification::method_
|
|
125
|
+
|
|
126
|
+
attr_accessor number_last4: String
|
|
127
|
+
|
|
128
|
+
def initialize: (
|
|
129
|
+
method_: Increase::Models::EntityBeneficialOwner::Individual::Identification::method_,
|
|
130
|
+
number_last4: String
|
|
131
|
+
) -> void
|
|
132
|
+
|
|
133
|
+
def to_hash: -> {
|
|
134
|
+
method_: Increase::Models::EntityBeneficialOwner::Individual::Identification::method_,
|
|
135
|
+
:number_last4 => String
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
type method_ =
|
|
139
|
+
:social_security_number
|
|
140
|
+
| :individual_taxpayer_identification_number
|
|
141
|
+
| :passport
|
|
142
|
+
| :drivers_license
|
|
143
|
+
| :other
|
|
144
|
+
|
|
145
|
+
module Method
|
|
146
|
+
extend Increase::Internal::Type::Enum
|
|
147
|
+
|
|
148
|
+
# A social security number.
|
|
149
|
+
SOCIAL_SECURITY_NUMBER: :social_security_number
|
|
150
|
+
|
|
151
|
+
# An individual taxpayer identification number (ITIN).
|
|
152
|
+
INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER: :individual_taxpayer_identification_number
|
|
153
|
+
|
|
154
|
+
# A passport number.
|
|
155
|
+
PASSPORT: :passport
|
|
156
|
+
|
|
157
|
+
# A driver's license number.
|
|
158
|
+
DRIVERS_LICENSE: :drivers_license
|
|
159
|
+
|
|
160
|
+
# Another identifying document.
|
|
161
|
+
OTHER: :other
|
|
162
|
+
|
|
163
|
+
def self?.values: -> ::Array[Increase::Models::EntityBeneficialOwner::Individual::Identification::method_]
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
type prong = :ownership | :control
|
|
169
|
+
|
|
170
|
+
module Prong
|
|
171
|
+
extend Increase::Internal::Type::Enum
|
|
172
|
+
|
|
173
|
+
# A person with 25% or greater direct or indirect ownership of the entity.
|
|
174
|
+
OWNERSHIP: :ownership
|
|
175
|
+
|
|
176
|
+
# A person who manages, directs, or has significant control of the entity.
|
|
177
|
+
CONTROL: :control
|
|
178
|
+
|
|
179
|
+
def self?.values: -> ::Array[Increase::Models::EntityBeneficialOwner::prong]
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
type type_ = :entity_beneficial_owner
|
|
183
|
+
|
|
184
|
+
module Type
|
|
185
|
+
extend Increase::Internal::Type::Enum
|
|
186
|
+
|
|
187
|
+
ENTITY_BENEFICIAL_OWNER: :entity_beneficial_owner
|
|
188
|
+
|
|
189
|
+
def self?.values: -> ::Array[Increase::Models::EntityBeneficialOwner::type_]
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
end
|