increase 1.238.0 → 1.239.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.
@@ -0,0 +1,412 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class EntityBeneficialOwner < Increase::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Increase::EntityBeneficialOwner, Increase::Internal::AnyHash)
9
+ end
10
+
11
+ # The identifier of this beneficial owner.
12
+ sig { returns(String) }
13
+ attr_accessor :id
14
+
15
+ # This person's role or title within the entity.
16
+ sig { returns(T.nilable(String)) }
17
+ attr_accessor :company_title
18
+
19
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
20
+ # Beneficial Owner was created.
21
+ sig { returns(Time) }
22
+ attr_accessor :created_at
23
+
24
+ # Personal details for the beneficial owner.
25
+ sig { returns(Increase::EntityBeneficialOwner::Individual) }
26
+ attr_reader :individual
27
+
28
+ sig do
29
+ params(
30
+ individual: Increase::EntityBeneficialOwner::Individual::OrHash
31
+ ).void
32
+ end
33
+ attr_writer :individual
34
+
35
+ # Why this person is considered a beneficial owner of the entity.
36
+ sig do
37
+ returns(T::Array[Increase::EntityBeneficialOwner::Prong::TaggedSymbol])
38
+ end
39
+ attr_accessor :prongs
40
+
41
+ # A constant representing the object's type. For this resource it will always be
42
+ # `entity_beneficial_owner`.
43
+ sig { returns(Increase::EntityBeneficialOwner::Type::TaggedSymbol) }
44
+ attr_accessor :type
45
+
46
+ sig do
47
+ params(
48
+ id: String,
49
+ company_title: T.nilable(String),
50
+ created_at: Time,
51
+ individual: Increase::EntityBeneficialOwner::Individual::OrHash,
52
+ prongs: T::Array[Increase::EntityBeneficialOwner::Prong::OrSymbol],
53
+ type: Increase::EntityBeneficialOwner::Type::OrSymbol
54
+ ).returns(T.attached_class)
55
+ end
56
+ def self.new(
57
+ # The identifier of this beneficial owner.
58
+ id:,
59
+ # This person's role or title within the entity.
60
+ company_title:,
61
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
62
+ # Beneficial Owner was created.
63
+ created_at:,
64
+ # Personal details for the beneficial owner.
65
+ individual:,
66
+ # Why this person is considered a beneficial owner of the entity.
67
+ prongs:,
68
+ # A constant representing the object's type. For this resource it will always be
69
+ # `entity_beneficial_owner`.
70
+ type:
71
+ )
72
+ end
73
+
74
+ sig do
75
+ override.returns(
76
+ {
77
+ id: String,
78
+ company_title: T.nilable(String),
79
+ created_at: Time,
80
+ individual: Increase::EntityBeneficialOwner::Individual,
81
+ prongs:
82
+ T::Array[Increase::EntityBeneficialOwner::Prong::TaggedSymbol],
83
+ type: Increase::EntityBeneficialOwner::Type::TaggedSymbol
84
+ }
85
+ )
86
+ end
87
+ def to_hash
88
+ end
89
+
90
+ class Individual < Increase::Internal::Type::BaseModel
91
+ OrHash =
92
+ T.type_alias do
93
+ T.any(
94
+ Increase::EntityBeneficialOwner::Individual,
95
+ Increase::Internal::AnyHash
96
+ )
97
+ end
98
+
99
+ # The person's address.
100
+ sig { returns(Increase::EntityBeneficialOwner::Individual::Address) }
101
+ attr_reader :address
102
+
103
+ sig do
104
+ params(
105
+ address:
106
+ Increase::EntityBeneficialOwner::Individual::Address::OrHash
107
+ ).void
108
+ end
109
+ attr_writer :address
110
+
111
+ # The person's date of birth in YYYY-MM-DD format.
112
+ sig { returns(Date) }
113
+ attr_accessor :date_of_birth
114
+
115
+ # A means of verifying the person's identity.
116
+ sig do
117
+ returns(Increase::EntityBeneficialOwner::Individual::Identification)
118
+ end
119
+ attr_reader :identification
120
+
121
+ sig do
122
+ params(
123
+ identification:
124
+ Increase::EntityBeneficialOwner::Individual::Identification::OrHash
125
+ ).void
126
+ end
127
+ attr_writer :identification
128
+
129
+ # The person's legal name.
130
+ sig { returns(String) }
131
+ attr_accessor :name
132
+
133
+ # Personal details for the beneficial owner.
134
+ sig do
135
+ params(
136
+ address:
137
+ Increase::EntityBeneficialOwner::Individual::Address::OrHash,
138
+ date_of_birth: Date,
139
+ identification:
140
+ Increase::EntityBeneficialOwner::Individual::Identification::OrHash,
141
+ name: String
142
+ ).returns(T.attached_class)
143
+ end
144
+ def self.new(
145
+ # The person's address.
146
+ address:,
147
+ # The person's date of birth in YYYY-MM-DD format.
148
+ date_of_birth:,
149
+ # A means of verifying the person's identity.
150
+ identification:,
151
+ # The person's legal name.
152
+ name:
153
+ )
154
+ end
155
+
156
+ sig do
157
+ override.returns(
158
+ {
159
+ address: Increase::EntityBeneficialOwner::Individual::Address,
160
+ date_of_birth: Date,
161
+ identification:
162
+ Increase::EntityBeneficialOwner::Individual::Identification,
163
+ name: String
164
+ }
165
+ )
166
+ end
167
+ def to_hash
168
+ end
169
+
170
+ class Address < Increase::Internal::Type::BaseModel
171
+ OrHash =
172
+ T.type_alias do
173
+ T.any(
174
+ Increase::EntityBeneficialOwner::Individual::Address,
175
+ Increase::Internal::AnyHash
176
+ )
177
+ end
178
+
179
+ # The city, district, town, or village of the address.
180
+ sig { returns(T.nilable(String)) }
181
+ attr_accessor :city
182
+
183
+ # The two-letter ISO 3166-1 alpha-2 code for the country of the address.
184
+ sig { returns(String) }
185
+ attr_accessor :country
186
+
187
+ # The first line of the address.
188
+ sig { returns(String) }
189
+ attr_accessor :line1
190
+
191
+ # The second line of the address.
192
+ sig { returns(T.nilable(String)) }
193
+ attr_accessor :line2
194
+
195
+ # The two-letter United States Postal Service (USPS) abbreviation for the US
196
+ # state, province, or region of the address.
197
+ sig { returns(T.nilable(String)) }
198
+ attr_accessor :state
199
+
200
+ # The ZIP or postal code of the address.
201
+ sig { returns(T.nilable(String)) }
202
+ attr_accessor :zip
203
+
204
+ # The person's address.
205
+ sig do
206
+ params(
207
+ city: T.nilable(String),
208
+ country: String,
209
+ line1: String,
210
+ line2: T.nilable(String),
211
+ state: T.nilable(String),
212
+ zip: T.nilable(String)
213
+ ).returns(T.attached_class)
214
+ end
215
+ def self.new(
216
+ # The city, district, town, or village of the address.
217
+ city:,
218
+ # The two-letter ISO 3166-1 alpha-2 code for the country of the address.
219
+ country:,
220
+ # The first line of the address.
221
+ line1:,
222
+ # The second line of the address.
223
+ line2:,
224
+ # The two-letter United States Postal Service (USPS) abbreviation for the US
225
+ # state, province, or region of the address.
226
+ state:,
227
+ # The ZIP or postal code of the address.
228
+ zip:
229
+ )
230
+ end
231
+
232
+ sig do
233
+ override.returns(
234
+ {
235
+ city: T.nilable(String),
236
+ country: String,
237
+ line1: String,
238
+ line2: T.nilable(String),
239
+ state: T.nilable(String),
240
+ zip: T.nilable(String)
241
+ }
242
+ )
243
+ end
244
+ def to_hash
245
+ end
246
+ end
247
+
248
+ class Identification < Increase::Internal::Type::BaseModel
249
+ OrHash =
250
+ T.type_alias do
251
+ T.any(
252
+ Increase::EntityBeneficialOwner::Individual::Identification,
253
+ Increase::Internal::AnyHash
254
+ )
255
+ end
256
+
257
+ # A method that can be used to verify the individual's identity.
258
+ sig do
259
+ returns(
260
+ Increase::EntityBeneficialOwner::Individual::Identification::Method::TaggedSymbol
261
+ )
262
+ end
263
+ attr_accessor :method_
264
+
265
+ # The last 4 digits of the identification number that can be used to verify the
266
+ # individual's identity.
267
+ sig { returns(String) }
268
+ attr_accessor :number_last4
269
+
270
+ # A means of verifying the person's identity.
271
+ sig do
272
+ params(
273
+ method_:
274
+ Increase::EntityBeneficialOwner::Individual::Identification::Method::OrSymbol,
275
+ number_last4: String
276
+ ).returns(T.attached_class)
277
+ end
278
+ def self.new(
279
+ # A method that can be used to verify the individual's identity.
280
+ method_:,
281
+ # The last 4 digits of the identification number that can be used to verify the
282
+ # individual's identity.
283
+ number_last4:
284
+ )
285
+ end
286
+
287
+ sig do
288
+ override.returns(
289
+ {
290
+ method_:
291
+ Increase::EntityBeneficialOwner::Individual::Identification::Method::TaggedSymbol,
292
+ number_last4: String
293
+ }
294
+ )
295
+ end
296
+ def to_hash
297
+ end
298
+
299
+ # A method that can be used to verify the individual's identity.
300
+ module Method
301
+ extend Increase::Internal::Type::Enum
302
+
303
+ TaggedSymbol =
304
+ T.type_alias do
305
+ T.all(
306
+ Symbol,
307
+ Increase::EntityBeneficialOwner::Individual::Identification::Method
308
+ )
309
+ end
310
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
311
+
312
+ # A social security number.
313
+ SOCIAL_SECURITY_NUMBER =
314
+ T.let(
315
+ :social_security_number,
316
+ Increase::EntityBeneficialOwner::Individual::Identification::Method::TaggedSymbol
317
+ )
318
+
319
+ # An individual taxpayer identification number (ITIN).
320
+ INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER =
321
+ T.let(
322
+ :individual_taxpayer_identification_number,
323
+ Increase::EntityBeneficialOwner::Individual::Identification::Method::TaggedSymbol
324
+ )
325
+
326
+ # A passport number.
327
+ PASSPORT =
328
+ T.let(
329
+ :passport,
330
+ Increase::EntityBeneficialOwner::Individual::Identification::Method::TaggedSymbol
331
+ )
332
+
333
+ # A driver's license number.
334
+ DRIVERS_LICENSE =
335
+ T.let(
336
+ :drivers_license,
337
+ Increase::EntityBeneficialOwner::Individual::Identification::Method::TaggedSymbol
338
+ )
339
+
340
+ # Another identifying document.
341
+ OTHER =
342
+ T.let(
343
+ :other,
344
+ Increase::EntityBeneficialOwner::Individual::Identification::Method::TaggedSymbol
345
+ )
346
+
347
+ sig do
348
+ override.returns(
349
+ T::Array[
350
+ Increase::EntityBeneficialOwner::Individual::Identification::Method::TaggedSymbol
351
+ ]
352
+ )
353
+ end
354
+ def self.values
355
+ end
356
+ end
357
+ end
358
+ end
359
+
360
+ module Prong
361
+ extend Increase::Internal::Type::Enum
362
+
363
+ TaggedSymbol =
364
+ T.type_alias { T.all(Symbol, Increase::EntityBeneficialOwner::Prong) }
365
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
366
+
367
+ # A person with 25% or greater direct or indirect ownership of the entity.
368
+ OWNERSHIP =
369
+ T.let(
370
+ :ownership,
371
+ Increase::EntityBeneficialOwner::Prong::TaggedSymbol
372
+ )
373
+
374
+ # A person who manages, directs, or has significant control of the entity.
375
+ CONTROL =
376
+ T.let(:control, Increase::EntityBeneficialOwner::Prong::TaggedSymbol)
377
+
378
+ sig do
379
+ override.returns(
380
+ T::Array[Increase::EntityBeneficialOwner::Prong::TaggedSymbol]
381
+ )
382
+ end
383
+ def self.values
384
+ end
385
+ end
386
+
387
+ # A constant representing the object's type. For this resource it will always be
388
+ # `entity_beneficial_owner`.
389
+ module Type
390
+ extend Increase::Internal::Type::Enum
391
+
392
+ TaggedSymbol =
393
+ T.type_alias { T.all(Symbol, Increase::EntityBeneficialOwner::Type) }
394
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
395
+
396
+ ENTITY_BENEFICIAL_OWNER =
397
+ T.let(
398
+ :entity_beneficial_owner,
399
+ Increase::EntityBeneficialOwner::Type::TaggedSymbol
400
+ )
401
+
402
+ sig do
403
+ override.returns(
404
+ T::Array[Increase::EntityBeneficialOwner::Type::TaggedSymbol]
405
+ )
406
+ end
407
+ def self.values
408
+ end
409
+ end
410
+ end
411
+ end
412
+ end
@@ -69,6 +69,11 @@ module Increase
69
69
 
70
70
  BalanceLookup = Increase::Models::BalanceLookup
71
71
 
72
+ BeneficialOwnerListParams = Increase::Models::BeneficialOwnerListParams
73
+
74
+ BeneficialOwnerRetrieveParams =
75
+ Increase::Models::BeneficialOwnerRetrieveParams
76
+
72
77
  BookkeepingAccount = Increase::Models::BookkeepingAccount
73
78
 
74
79
  BookkeepingAccountBalanceParams =
@@ -243,6 +248,8 @@ module Increase
243
248
 
244
249
  EntityArchiveParams = Increase::Models::EntityArchiveParams
245
250
 
251
+ EntityBeneficialOwner = Increase::Models::EntityBeneficialOwner
252
+
246
253
  EntityCreateBeneficialOwnerParams =
247
254
  Increase::Models::EntityCreateBeneficialOwnerParams
248
255
 
@@ -0,0 +1,54 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class BeneficialOwners
6
+ # Retrieve a Beneficial Owner
7
+ sig do
8
+ params(
9
+ entity_beneficial_owner_id: String,
10
+ request_options: Increase::RequestOptions::OrHash
11
+ ).returns(Increase::EntityBeneficialOwner)
12
+ end
13
+ def retrieve(
14
+ # The identifier of the Beneficial Owner to retrieve.
15
+ entity_beneficial_owner_id,
16
+ request_options: {}
17
+ )
18
+ end
19
+
20
+ # List Beneficial Owners
21
+ sig do
22
+ params(
23
+ entity_id: String,
24
+ cursor: String,
25
+ idempotency_key: String,
26
+ limit: Integer,
27
+ request_options: Increase::RequestOptions::OrHash
28
+ ).returns(Increase::Internal::Page[Increase::EntityBeneficialOwner])
29
+ end
30
+ def list(
31
+ # The identifier of the Entity to list beneficial owners for. Only `corporation`
32
+ # entities have beneficial owners.
33
+ entity_id:,
34
+ # Return the page of entries after this one.
35
+ cursor: nil,
36
+ # Filter records to the one with the specified `idempotency_key` you chose for
37
+ # that object. This value is unique across Increase and is used to ensure that a
38
+ # request is only processed once. Learn more about
39
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
40
+ idempotency_key: nil,
41
+ # Limit the size of the list that is returned. The default (and maximum) is 100
42
+ # objects.
43
+ limit: nil,
44
+ request_options: {}
45
+ )
46
+ end
47
+
48
+ # @api private
49
+ sig { params(client: Increase::Client).returns(T.attached_class) }
50
+ def self.new(client:)
51
+ end
52
+ end
53
+ end
54
+ end
@@ -83,6 +83,8 @@ module Increase
83
83
 
84
84
  attr_reader entities: Increase::Resources::Entities
85
85
 
86
+ attr_reader beneficial_owners: Increase::Resources::BeneficialOwners
87
+
86
88
  attr_reader supplemental_documents: Increase::Resources::SupplementalDocuments
87
89
 
88
90
  attr_reader programs: Increase::Resources::Programs
@@ -0,0 +1,47 @@
1
+ module Increase
2
+ module Models
3
+ type beneficial_owner_list_params =
4
+ {
5
+ entity_id: String,
6
+ cursor: String,
7
+ idempotency_key: String,
8
+ limit: Integer
9
+ }
10
+ & Increase::Internal::Type::request_parameters
11
+
12
+ class BeneficialOwnerListParams < 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_reader cursor: String?
19
+
20
+ def cursor=: (String) -> String
21
+
22
+ attr_reader idempotency_key: String?
23
+
24
+ def idempotency_key=: (String) -> String
25
+
26
+ attr_reader limit: Integer?
27
+
28
+ def limit=: (Integer) -> Integer
29
+
30
+ def initialize: (
31
+ entity_id: String,
32
+ ?cursor: String,
33
+ ?idempotency_key: String,
34
+ ?limit: Integer,
35
+ ?request_options: Increase::request_opts
36
+ ) -> void
37
+
38
+ def to_hash: -> {
39
+ entity_id: String,
40
+ cursor: String,
41
+ idempotency_key: String,
42
+ limit: Integer,
43
+ request_options: Increase::RequestOptions
44
+ }
45
+ end
46
+ end
47
+ end
@@ -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