increase 1.250.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 482e24a49b50e6d1a98949b016d8b3b389f2149eef96fb31f4753e66b7978b59
4
- data.tar.gz: 26b3535b4cbe13b5f36f6a4275766fafc8bfcd8aacca33397271abe805bb9da7
3
+ metadata.gz: 07c71647a782b945dbcad6198cdbb2e51c0fcb2449ba1220cbdaec40bece169e
4
+ data.tar.gz: 55b81dffc24eab83f3998c83f8f24ba9810cc6613f4ebd49bf1e3542562070b7
5
5
  SHA512:
6
- metadata.gz: 96a7a7c649c76a77c84ad2640fe628104d34f37c78758c1ed163ecd8783cfff2b4563944871628cde5ef70d168804e40ccdfdcb8b3f69d8fcd0bda29ca4befa9
7
- data.tar.gz: ec7ae0fd1834d2766e50d08a92b782c3fef353b05569337060a3fb0f45ede47a1f1873afb2b8596e415ebad6d304485cb02a0ff028c1ca7bc5d573931213ade8
6
+ metadata.gz: ae2817d61808ebc4bfc1ba34bca64e5e9d82ab0b049cf868b663cf59ac223566d9afd5ee6a1744412f35a7deb22edeff4b8b0e9c83889ee54341be548a9055d6
7
+ data.tar.gz: 0f45c3a85375ff143da7b887bfebec579755e359e1f40dae88ed1e85b5414206293d29e4a0a4d7160a55aaf0570979db796b810b82fd9368c3ceb82ecb2d3f14
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.251.0 (2026-03-12)
4
+
5
+ Full Changelog: [v1.250.0...v1.251.0](https://github.com/Increase/increase-ruby/compare/v1.250.0...v1.251.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([126d145](https://github.com/Increase/increase-ruby/commit/126d145166fd0f4da6a9e5ec8e5c7a6569053b40))
10
+ * **api:** api update ([8dd3d2c](https://github.com/Increase/increase-ruby/commit/8dd3d2ccf94223fcae18ecc4511be427e699d54c))
11
+ * **api:** api update ([0612b83](https://github.com/Increase/increase-ruby/commit/0612b830875e4ad90e04d28b6c84c9222f5c0d43))
12
+ * **api:** api update ([dbebe41](https://github.com/Increase/increase-ruby/commit/dbebe4189586870bb68e3987ba30a5827438670c))
13
+
3
14
  ## 1.250.0 (2026-03-12)
4
15
 
5
16
  Full Changelog: [v1.249.0...v1.250.0](https://github.com/Increase/increase-ruby/compare/v1.249.0...v1.250.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.250.0"
18
+ gem "increase", "~> 1.251.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -46,6 +46,12 @@ module Increase
46
46
  # @return [Increase::Models::CardPushTransfer::Cancellation, nil]
47
47
  required :cancellation, -> { Increase::CardPushTransfer::Cancellation }, nil?: true
48
48
 
49
+ # @!attribute card_token_id
50
+ # The ID of the Card Token that was used to validate the card.
51
+ #
52
+ # @return [String]
53
+ required :card_token_id, String
54
+
49
55
  # @!attribute created_at
50
56
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
51
57
  # the transfer was created.
@@ -186,7 +192,7 @@ module Increase
186
192
  # @return [Symbol, Increase::Models::CardPushTransfer::Type]
187
193
  required :type, enum: -> { Increase::CardPushTransfer::Type }
188
194
 
189
- # @!method initialize(id:, acceptance:, account_id:, approval:, business_application_identifier:, cancellation:, created_at:, created_by:, decline:, idempotency_key:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, presentment_amount:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, status:, submission:, type:)
195
+ # @!method initialize(id:, acceptance:, account_id:, approval:, business_application_identifier:, cancellation:, card_token_id:, created_at:, created_by:, decline:, idempotency_key:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, presentment_amount:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, status:, submission:, type:)
190
196
  # Some parameter documentations has been truncated, see
191
197
  # {Increase::Models::CardPushTransfer} for more details.
192
198
  #
@@ -204,6 +210,8 @@ module Increase
204
210
  #
205
211
  # @param cancellation [Increase::Models::CardPushTransfer::Cancellation, nil] If your account requires approvals for transfers and the transfer was not approv
206
212
  #
213
+ # @param card_token_id [String] The ID of the Card Token that was used to validate the card.
214
+ #
207
215
  # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
208
216
  #
209
217
  # @param created_by [Increase::Models::CardPushTransfer::CreatedBy, nil] What object created the transfer, either via the API or the dashboard.
@@ -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::EntityBeneficialOwner>]
178
- required :beneficial_owners, -> { Increase::Internal::Type::ArrayOf[Increase::EntityBeneficialOwner] }
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::EntityBeneficialOwner>] The identifying details of anyone controlling or owning 25% or more of the corpo
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
@@ -23,6 +23,12 @@ 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
+
26
32
  # @!attribute idempotency_key
27
33
  # The idempotency key you chose for this object. This value is unique across
28
34
  # Increase and is used to ensure that a request is only processed once. Learn more
@@ -50,7 +56,7 @@ module Increase
50
56
  # @return [Symbol, Increase::Models::EntityBeneficialOwner::Type]
51
57
  required :type, enum: -> { Increase::EntityBeneficialOwner::Type }
52
58
 
53
- # @!method initialize(id:, company_title:, created_at:, idempotency_key:, individual:, prongs:, type:)
59
+ # @!method initialize(id:, company_title:, created_at:, entity_id:, idempotency_key:, individual:, prongs:, type:)
54
60
  # Some parameter documentations has been truncated, see
55
61
  # {Increase::Models::EntityBeneficialOwner} for more details.
56
62
  #
@@ -66,6 +72,8 @@ module Increase
66
72
  #
67
73
  # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Benefic
68
74
  #
75
+ # @param entity_id [String] The identifier of the Entity to which this beneficial owner belongs.
76
+ #
69
77
  # @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
70
78
  #
71
79
  # @param individual [Increase::Models::EntityBeneficialOwner::Individual] Personal details for the beneficial owner.
@@ -265,8 +265,6 @@ module Increase
265
265
 
266
266
  EntityBeneficialOwner = Increase::Models::EntityBeneficialOwner
267
267
 
268
- EntityCreateBeneficialOwnerParams = Increase::Models::EntityCreateBeneficialOwnerParams
269
-
270
268
  EntityCreateParams = Increase::Models::EntityCreateParams
271
269
 
272
270
  EntityListParams = Increase::Models::EntityListParams
@@ -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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.250.0"
4
+ VERSION = "1.251.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -167,7 +167,6 @@ require_relative "increase/models/digital_wallet_token_retrieve_params"
167
167
  require_relative "increase/models/entity"
168
168
  require_relative "increase/models/entity_archive_params"
169
169
  require_relative "increase/models/entity_beneficial_owner"
170
- require_relative "increase/models/entity_create_beneficial_owner_params"
171
170
  require_relative "increase/models/entity_create_params"
172
171
  require_relative "increase/models/entity_list_params"
173
172
  require_relative "increase/models/entity_retrieve_params"
@@ -63,6 +63,10 @@ module Increase
63
63
  end
64
64
  attr_writer :cancellation
65
65
 
66
+ # The ID of the Card Token that was used to validate the card.
67
+ sig { returns(String) }
68
+ attr_accessor :card_token_id
69
+
66
70
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
67
71
  # the transfer was created.
68
72
  sig { returns(Time) }
@@ -201,6 +205,7 @@ module Increase
201
205
  Increase::CardPushTransfer::BusinessApplicationIdentifier::OrSymbol,
202
206
  cancellation:
203
207
  T.nilable(Increase::CardPushTransfer::Cancellation::OrHash),
208
+ card_token_id: String,
204
209
  created_at: Time,
205
210
  created_by: T.nilable(Increase::CardPushTransfer::CreatedBy::OrHash),
206
211
  decline: T.nilable(Increase::CardPushTransfer::Decline::OrHash),
@@ -243,6 +248,8 @@ module Increase
243
248
  # If your account requires approvals for transfers and the transfer was not
244
249
  # approved, this will contain details of the cancellation.
245
250
  cancellation:,
251
+ # The ID of the Card Token that was used to validate the card.
252
+ card_token_id:,
246
253
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
247
254
  # the transfer was created.
248
255
  created_at:,
@@ -312,6 +319,7 @@ module Increase
312
319
  business_application_identifier:
313
320
  Increase::CardPushTransfer::BusinessApplicationIdentifier::TaggedSymbol,
314
321
  cancellation: T.nilable(Increase::CardPushTransfer::Cancellation),
322
+ card_token_id: String,
315
323
  created_at: Time,
316
324
  created_by: T.nilable(Increase::CardPushTransfer::CreatedBy),
317
325
  decline: T.nilable(Increase::CardPushTransfer::Decline),