increase 1.249.0 → 1.250.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6d29b041450200bb88388771c55b17f0104bb8aceff767203d3f5bd8191b8d6
4
- data.tar.gz: 96f4a1b38b6b9902e3642e1252a03a90a6957a14eca676c8bc9c5e14037cb098
3
+ metadata.gz: 482e24a49b50e6d1a98949b016d8b3b389f2149eef96fb31f4753e66b7978b59
4
+ data.tar.gz: 26b3535b4cbe13b5f36f6a4275766fafc8bfcd8aacca33397271abe805bb9da7
5
5
  SHA512:
6
- metadata.gz: 9e6ba219824d84bd1d84cfb1aa64635e0ad5bcda16e97efd24e65cf96a7509bcb280c97d151af8a35b0ee511711857c3c33bfb8581c20f00fb109ff9bea461a8
7
- data.tar.gz: f9e75fa8f63ab1132723c55d22ae0f7b4d561e6fd9998820f96a0156546d507bc741240113b6bb054bf7eda98a935597b38b5b613250670de438b1d5b81edc9c
6
+ metadata.gz: 96a7a7c649c76a77c84ad2640fe628104d34f37c78758c1ed163ecd8783cfff2b4563944871628cde5ef70d168804e40ccdfdcb8b3f69d8fcd0bda29ca4befa9
7
+ data.tar.gz: ec7ae0fd1834d2766e50d08a92b782c3fef353b05569337060a3fb0f45ede47a1f1873afb2b8596e415ebad6d304485cb02a0ff028c1ca7bc5d573931213ade8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.250.0 (2026-03-12)
4
+
5
+ Full Changelog: [v1.249.0...v1.250.0](https://github.com/Increase/increase-ruby/compare/v1.249.0...v1.250.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([7ebc531](https://github.com/Increase/increase-ruby/commit/7ebc5310d5083507af85b1550834fd7cf8197c6a))
10
+
3
11
  ## 1.249.0 (2026-03-12)
4
12
 
5
13
  Full Changelog: [v1.248.0...v1.249.0](https://github.com/Increase/increase-ruby/compare/v1.248.0...v1.249.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.249.0"
18
+ gem "increase", "~> 1.250.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -0,0 +1,387 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::BeneficialOwners#create
6
+ class BeneficialOwnerCreateParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute entity_id
11
+ # The identifier of the Entity to associate with the new Beneficial Owner.
12
+ #
13
+ # @return [String]
14
+ required :entity_id, String
15
+
16
+ # @!attribute individual
17
+ # Personal details for the beneficial owner.
18
+ #
19
+ # @return [Increase::Models::BeneficialOwnerCreateParams::Individual]
20
+ required :individual, -> { Increase::BeneficialOwnerCreateParams::Individual }
21
+
22
+ # @!attribute prongs
23
+ # Why this person is considered a beneficial owner of the entity. At least one
24
+ # option is required, if a person is both a control person and owner, submit an
25
+ # array containing both.
26
+ #
27
+ # @return [Array<Symbol, Increase::Models::BeneficialOwnerCreateParams::Prong>]
28
+ required :prongs,
29
+ -> { Increase::Internal::Type::ArrayOf[enum: Increase::BeneficialOwnerCreateParams::Prong] }
30
+
31
+ # @!attribute company_title
32
+ # This person's role or title within the entity.
33
+ #
34
+ # @return [String, nil]
35
+ optional :company_title, String
36
+
37
+ # @!method initialize(entity_id:, individual:, prongs:, company_title: nil, request_options: {})
38
+ # Some parameter documentations has been truncated, see
39
+ # {Increase::Models::BeneficialOwnerCreateParams} for more details.
40
+ #
41
+ # @param entity_id [String] The identifier of the Entity to associate with the new Beneficial Owner.
42
+ #
43
+ # @param individual [Increase::Models::BeneficialOwnerCreateParams::Individual] Personal details for the beneficial owner.
44
+ #
45
+ # @param prongs [Array<Symbol, Increase::Models::BeneficialOwnerCreateParams::Prong>] Why this person is considered a beneficial owner of the entity. At least one opt
46
+ #
47
+ # @param company_title [String] This person's role or title within the entity.
48
+ #
49
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
50
+
51
+ class Individual < Increase::Internal::Type::BaseModel
52
+ # @!attribute address
53
+ # The individual's physical address. Mail receiving locations like PO Boxes and
54
+ # PMB's are disallowed.
55
+ #
56
+ # @return [Increase::Models::BeneficialOwnerCreateParams::Individual::Address]
57
+ required :address, -> { Increase::BeneficialOwnerCreateParams::Individual::Address }
58
+
59
+ # @!attribute date_of_birth
60
+ # The person's date of birth in YYYY-MM-DD format.
61
+ #
62
+ # @return [Date]
63
+ required :date_of_birth, Date
64
+
65
+ # @!attribute identification
66
+ # A means of verifying the person's identity.
67
+ #
68
+ # @return [Increase::Models::BeneficialOwnerCreateParams::Individual::Identification]
69
+ required :identification, -> { Increase::BeneficialOwnerCreateParams::Individual::Identification }
70
+
71
+ # @!attribute name
72
+ # The person's legal name.
73
+ #
74
+ # @return [String]
75
+ required :name, String
76
+
77
+ # @!attribute confirmed_no_us_tax_id
78
+ # The identification method for an individual can only be a passport, driver's
79
+ # license, or other document if you've confirmed the individual does not have a US
80
+ # tax id (either a Social Security Number or Individual Taxpayer Identification
81
+ # Number).
82
+ #
83
+ # @return [Boolean, nil]
84
+ optional :confirmed_no_us_tax_id, Increase::Internal::Type::Boolean
85
+
86
+ # @!method initialize(address:, date_of_birth:, identification:, name:, confirmed_no_us_tax_id: nil)
87
+ # Some parameter documentations has been truncated, see
88
+ # {Increase::Models::BeneficialOwnerCreateParams::Individual} for more details.
89
+ #
90
+ # Personal details for the beneficial owner.
91
+ #
92
+ # @param address [Increase::Models::BeneficialOwnerCreateParams::Individual::Address] The individual's physical address. Mail receiving locations like PO Boxes and PM
93
+ #
94
+ # @param date_of_birth [Date] The person's date of birth in YYYY-MM-DD format.
95
+ #
96
+ # @param identification [Increase::Models::BeneficialOwnerCreateParams::Individual::Identification] A means of verifying the person's identity.
97
+ #
98
+ # @param name [String] The person's legal name.
99
+ #
100
+ # @param confirmed_no_us_tax_id [Boolean] The identification method for an individual can only be a passport, driver's lic
101
+
102
+ # @see Increase::Models::BeneficialOwnerCreateParams::Individual#address
103
+ class Address < Increase::Internal::Type::BaseModel
104
+ # @!attribute city
105
+ # The city, district, town, or village of the address.
106
+ #
107
+ # @return [String]
108
+ required :city, String
109
+
110
+ # @!attribute country
111
+ # The two-letter ISO 3166-1 alpha-2 code for the country of the address.
112
+ #
113
+ # @return [String]
114
+ required :country, String
115
+
116
+ # @!attribute line1
117
+ # The first line of the address. This is usually the street number and street.
118
+ #
119
+ # @return [String]
120
+ required :line1, String
121
+
122
+ # @!attribute line2
123
+ # The second line of the address. This might be the floor or room number.
124
+ #
125
+ # @return [String, nil]
126
+ optional :line2, String
127
+
128
+ # @!attribute state
129
+ # The two-letter United States Postal Service (USPS) abbreviation for the US
130
+ # state, province, or region of the address. Required in certain countries.
131
+ #
132
+ # @return [String, nil]
133
+ optional :state, String
134
+
135
+ # @!attribute zip
136
+ # The ZIP or postal code of the address. Required in certain countries.
137
+ #
138
+ # @return [String, nil]
139
+ optional :zip, String
140
+
141
+ # @!method initialize(city:, country:, line1:, line2: nil, state: nil, zip: nil)
142
+ # Some parameter documentations has been truncated, see
143
+ # {Increase::Models::BeneficialOwnerCreateParams::Individual::Address} for more
144
+ # details.
145
+ #
146
+ # The individual's physical address. Mail receiving locations like PO Boxes and
147
+ # PMB's are disallowed.
148
+ #
149
+ # @param city [String] The city, district, town, or village of the address.
150
+ #
151
+ # @param country [String] The two-letter ISO 3166-1 alpha-2 code for the country of the address.
152
+ #
153
+ # @param line1 [String] The first line of the address. This is usually the street number and street.
154
+ #
155
+ # @param line2 [String] The second line of the address. This might be the floor or room number.
156
+ #
157
+ # @param state [String] The two-letter United States Postal Service (USPS) abbreviation for the US state
158
+ #
159
+ # @param zip [String] The ZIP or postal code of the address. Required in certain countries.
160
+ end
161
+
162
+ # @see Increase::Models::BeneficialOwnerCreateParams::Individual#identification
163
+ class Identification < Increase::Internal::Type::BaseModel
164
+ # @!attribute method_
165
+ # A method that can be used to verify the individual's identity.
166
+ #
167
+ # @return [Symbol, Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::Method]
168
+ required :method_,
169
+ enum: -> { Increase::BeneficialOwnerCreateParams::Individual::Identification::Method },
170
+ api_name: :method
171
+
172
+ # @!attribute number
173
+ # An identification number that can be used to verify the individual's identity,
174
+ # such as a social security number.
175
+ #
176
+ # @return [String]
177
+ required :number, String
178
+
179
+ # @!attribute drivers_license
180
+ # Information about the United States driver's license used for identification.
181
+ # Required if `method` is equal to `drivers_license`.
182
+ #
183
+ # @return [Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::DriversLicense, nil]
184
+ optional :drivers_license,
185
+ -> { Increase::BeneficialOwnerCreateParams::Individual::Identification::DriversLicense }
186
+
187
+ # @!attribute other
188
+ # Information about the identification document provided. Required if `method` is
189
+ # equal to `other`.
190
+ #
191
+ # @return [Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::Other, nil]
192
+ optional :other, -> { Increase::BeneficialOwnerCreateParams::Individual::Identification::Other }
193
+
194
+ # @!attribute passport
195
+ # Information about the passport used for identification. Required if `method` is
196
+ # equal to `passport`.
197
+ #
198
+ # @return [Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::Passport, nil]
199
+ optional :passport, -> { Increase::BeneficialOwnerCreateParams::Individual::Identification::Passport }
200
+
201
+ # @!method initialize(method_:, number:, drivers_license: nil, other: nil, passport: nil)
202
+ # Some parameter documentations has been truncated, see
203
+ # {Increase::Models::BeneficialOwnerCreateParams::Individual::Identification} for
204
+ # more details.
205
+ #
206
+ # A means of verifying the person's identity.
207
+ #
208
+ # @param method_ [Symbol, Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::Method] A method that can be used to verify the individual's identity.
209
+ #
210
+ # @param number [String] An identification number that can be used to verify the individual's identity, s
211
+ #
212
+ # @param drivers_license [Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::DriversLicense] Information about the United States driver's license used for identification. Re
213
+ #
214
+ # @param other [Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::Other] Information about the identification document provided. Required if `method` is
215
+ #
216
+ # @param passport [Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::Passport] Information about the passport used for identification. Required if `method` is
217
+
218
+ # A method that can be used to verify the individual's identity.
219
+ #
220
+ # @see Increase::Models::BeneficialOwnerCreateParams::Individual::Identification#method_
221
+ module Method
222
+ extend Increase::Internal::Type::Enum
223
+
224
+ # A social security number.
225
+ SOCIAL_SECURITY_NUMBER = :social_security_number
226
+
227
+ # An individual taxpayer identification number (ITIN).
228
+ INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER = :individual_taxpayer_identification_number
229
+
230
+ # A passport number.
231
+ PASSPORT = :passport
232
+
233
+ # A driver's license number.
234
+ DRIVERS_LICENSE = :drivers_license
235
+
236
+ # Another identifying document.
237
+ OTHER = :other
238
+
239
+ # @!method self.values
240
+ # @return [Array<Symbol>]
241
+ end
242
+
243
+ # @see Increase::Models::BeneficialOwnerCreateParams::Individual::Identification#drivers_license
244
+ class DriversLicense < Increase::Internal::Type::BaseModel
245
+ # @!attribute expiration_date
246
+ # The driver's license's expiration date in YYYY-MM-DD format.
247
+ #
248
+ # @return [Date]
249
+ required :expiration_date, Date
250
+
251
+ # @!attribute file_id
252
+ # The identifier of the File containing the front of the driver's license.
253
+ #
254
+ # @return [String]
255
+ required :file_id, String
256
+
257
+ # @!attribute state
258
+ # The state that issued the provided driver's license.
259
+ #
260
+ # @return [String]
261
+ required :state, String
262
+
263
+ # @!attribute back_file_id
264
+ # The identifier of the File containing the back of the driver's license.
265
+ #
266
+ # @return [String, nil]
267
+ optional :back_file_id, String
268
+
269
+ # @!method initialize(expiration_date:, file_id:, state:, back_file_id: nil)
270
+ # Information about the United States driver's license used for identification.
271
+ # Required if `method` is equal to `drivers_license`.
272
+ #
273
+ # @param expiration_date [Date] The driver's license's expiration date in YYYY-MM-DD format.
274
+ #
275
+ # @param file_id [String] The identifier of the File containing the front of the driver's license.
276
+ #
277
+ # @param state [String] The state that issued the provided driver's license.
278
+ #
279
+ # @param back_file_id [String] The identifier of the File containing the back of the driver's license.
280
+ end
281
+
282
+ # @see Increase::Models::BeneficialOwnerCreateParams::Individual::Identification#other
283
+ class Other < Increase::Internal::Type::BaseModel
284
+ # @!attribute country
285
+ # The two-character ISO 3166-1 code representing the country that issued the
286
+ # document (e.g., `US`).
287
+ #
288
+ # @return [String]
289
+ required :country, String
290
+
291
+ # @!attribute description
292
+ # A description of the document submitted.
293
+ #
294
+ # @return [String]
295
+ required :description, String
296
+
297
+ # @!attribute file_id
298
+ # The identifier of the File containing the front of the document.
299
+ #
300
+ # @return [String]
301
+ required :file_id, String
302
+
303
+ # @!attribute back_file_id
304
+ # The identifier of the File containing the back of the document. Not every
305
+ # document has a reverse side.
306
+ #
307
+ # @return [String, nil]
308
+ optional :back_file_id, String
309
+
310
+ # @!attribute expiration_date
311
+ # The document's expiration date in YYYY-MM-DD format.
312
+ #
313
+ # @return [Date, nil]
314
+ optional :expiration_date, Date
315
+
316
+ # @!method initialize(country:, description:, file_id:, back_file_id: nil, expiration_date: nil)
317
+ # Some parameter documentations has been truncated, see
318
+ # {Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::Other}
319
+ # for more details.
320
+ #
321
+ # Information about the identification document provided. Required if `method` is
322
+ # equal to `other`.
323
+ #
324
+ # @param country [String] The two-character ISO 3166-1 code representing the country that issued the docum
325
+ #
326
+ # @param description [String] A description of the document submitted.
327
+ #
328
+ # @param file_id [String] The identifier of the File containing the front of the document.
329
+ #
330
+ # @param back_file_id [String] The identifier of the File containing the back of the document. Not every docume
331
+ #
332
+ # @param expiration_date [Date] The document's expiration date in YYYY-MM-DD format.
333
+ end
334
+
335
+ # @see Increase::Models::BeneficialOwnerCreateParams::Individual::Identification#passport
336
+ class Passport < Increase::Internal::Type::BaseModel
337
+ # @!attribute country
338
+ # The two-character ISO 3166-1 code representing the country that issued the
339
+ # document (e.g., `US`).
340
+ #
341
+ # @return [String]
342
+ required :country, String
343
+
344
+ # @!attribute expiration_date
345
+ # The passport's expiration date in YYYY-MM-DD format.
346
+ #
347
+ # @return [Date]
348
+ required :expiration_date, Date
349
+
350
+ # @!attribute file_id
351
+ # The identifier of the File containing the passport.
352
+ #
353
+ # @return [String]
354
+ required :file_id, String
355
+
356
+ # @!method initialize(country:, expiration_date:, file_id:)
357
+ # Some parameter documentations has been truncated, see
358
+ # {Increase::Models::BeneficialOwnerCreateParams::Individual::Identification::Passport}
359
+ # for more details.
360
+ #
361
+ # Information about the passport used for identification. Required if `method` is
362
+ # equal to `passport`.
363
+ #
364
+ # @param country [String] The two-character ISO 3166-1 code representing the country that issued the docum
365
+ #
366
+ # @param expiration_date [Date] The passport's expiration date in YYYY-MM-DD format.
367
+ #
368
+ # @param file_id [String] The identifier of the File containing the passport.
369
+ end
370
+ end
371
+ end
372
+
373
+ module Prong
374
+ extend Increase::Internal::Type::Enum
375
+
376
+ # A person with 25% or greater direct or indirect ownership of the entity.
377
+ OWNERSHIP = :ownership
378
+
379
+ # A person who manages, directs, or has significant control of the entity.
380
+ CONTROL = :control
381
+
382
+ # @!method self.values
383
+ # @return [Array<Symbol>]
384
+ end
385
+ end
386
+ end
387
+ end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Increase
4
4
  module Models
5
- # @see Increase::Resources::BeneficialOwners#retrieve
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,14 @@ module Increase
23
23
  # @return [Time]
24
24
  required :created_at, Time
25
25
 
26
+ # @!attribute idempotency_key
27
+ # The idempotency key you chose for this object. This value is unique across
28
+ # Increase and is used to ensure that a request is only processed once. Learn more
29
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
30
+ #
31
+ # @return [String, nil]
32
+ required :idempotency_key, String, nil?: true
33
+
26
34
  # @!attribute individual
27
35
  # Personal details for the beneficial owner.
28
36
  #
@@ -42,7 +50,7 @@ module Increase
42
50
  # @return [Symbol, Increase::Models::EntityBeneficialOwner::Type]
43
51
  required :type, enum: -> { Increase::EntityBeneficialOwner::Type }
44
52
 
45
- # @!method initialize(id:, company_title:, created_at:, individual:, prongs:, type:)
53
+ # @!method initialize(id:, company_title:, created_at:, idempotency_key:, individual:, prongs:, type:)
46
54
  # Some parameter documentations has been truncated, see
47
55
  # {Increase::Models::EntityBeneficialOwner} for more details.
48
56
  #
@@ -58,6 +66,8 @@ module Increase
58
66
  #
59
67
  # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Benefic
60
68
  #
69
+ # @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
70
+ #
61
71
  # @param individual [Increase::Models::EntityBeneficialOwner::Individual] Personal details for the beneficial owner.
62
72
  #
63
73
  # @param prongs [Array<Symbol, Increase::Models::EntityBeneficialOwner::Prong>] Why this person is considered a beneficial owner of the entity.
@@ -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
@@ -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: {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.249.0"
4
+ VERSION = "1.250.0"
5
5
  end
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"