increase 1.282.0 → 1.284.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/models/card.rb +187 -90
- data/lib/increase/models/card_create_params.rb +177 -81
- data/lib/increase/models/card_update_params.rb +177 -81
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/card.rbi +429 -160
- data/rbi/increase/models/card_create_params.rbi +422 -156
- data/rbi/increase/models/card_update_params.rbi +422 -156
- data/sig/increase/models/card.rbs +148 -52
- data/sig/increase/models/card_create_params.rbs +166 -62
- data/sig/increase/models/card_update_params.rbs +166 -62
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79173fde21de2f9746d257823d0fdf9c671518f1ba2a7a8a1f176a4a3115b0e4
|
|
4
|
+
data.tar.gz: db6522f3c9ffc35d534866fbcb68b65742c6769ea7e445b9d57f2e5eed81cb74
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 284419ed03c89beb4610013e0fcbf837bf8a3d7cb697b714d716c88e2bf4623c8372c5946577441e1d58863089aede71fa5527bcbf38ab842de6f3955cf76d08
|
|
7
|
+
data.tar.gz: 2118220c96548c391572677b0eda6c32bda56f90c121417e408ada73325a55334790b3fd7b7acb01dda7e614423c8f7e5b2e2baa8da56bee379e476205d7daff
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.284.0 (2026-04-07)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.283.0...v1.284.0](https://github.com/Increase/increase-ruby/compare/v1.283.0...v1.284.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([3b34a4e](https://github.com/Increase/increase-ruby/commit/3b34a4eb31f54413a0ad1322ce4fabc0a827d0ae))
|
|
10
|
+
|
|
11
|
+
## 1.283.0 (2026-04-06)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.282.0...v1.283.0](https://github.com/Increase/increase-ruby/compare/v1.282.0...v1.283.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([82f051d](https://github.com/Increase/increase-ruby/commit/82f051d9aac6de95564d6fbfaf5b8ca0a194c21c))
|
|
18
|
+
|
|
3
19
|
## 1.282.0 (2026-04-04)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v1.281.0...v1.282.0](https://github.com/Increase/increase-ruby/compare/v1.281.0...v1.282.0)
|
data/README.md
CHANGED
data/lib/increase/models/card.rb
CHANGED
|
@@ -98,10 +98,11 @@ module Increase
|
|
|
98
98
|
# Some parameter documentations has been truncated, see {Increase::Models::Card}
|
|
99
99
|
# for more details.
|
|
100
100
|
#
|
|
101
|
-
# Cards
|
|
102
|
-
# after you create them. All cards
|
|
103
|
-
#
|
|
104
|
-
# the Account upon transaction
|
|
101
|
+
# Cards may operate on credit, debit or prepaid BINs. They’ll immediately work for
|
|
102
|
+
# online purchases after you create them. All cards work on a good funds model,
|
|
103
|
+
# and maintain a maximum limit of 100% of the Account’s available balance at the
|
|
104
|
+
# time of transaction. Funds are deducted from the Account upon transaction
|
|
105
|
+
# settlement.
|
|
105
106
|
#
|
|
106
107
|
# @param id [String] The card identifier.
|
|
107
108
|
#
|
|
@@ -133,14 +134,6 @@ module Increase
|
|
|
133
134
|
|
|
134
135
|
# @see Increase::Models::Card#authorization_controls
|
|
135
136
|
class AuthorizationControls < Increase::Internal::Type::BaseModel
|
|
136
|
-
# @!attribute maximum_authorization_count
|
|
137
|
-
# Limits the number of authorizations that can be approved on this card.
|
|
138
|
-
#
|
|
139
|
-
# @return [Increase::Models::Card::AuthorizationControls::MaximumAuthorizationCount, nil]
|
|
140
|
-
required :maximum_authorization_count,
|
|
141
|
-
-> { Increase::Card::AuthorizationControls::MaximumAuthorizationCount },
|
|
142
|
-
nil?: true
|
|
143
|
-
|
|
144
137
|
# @!attribute merchant_acceptor_identifier
|
|
145
138
|
# Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
|
|
146
139
|
# on this card.
|
|
@@ -166,51 +159,25 @@ module Increase
|
|
|
166
159
|
# @return [Increase::Models::Card::AuthorizationControls::MerchantCountry, nil]
|
|
167
160
|
required :merchant_country, -> { Increase::Card::AuthorizationControls::MerchantCountry }, nil?: true
|
|
168
161
|
|
|
169
|
-
# @!attribute
|
|
170
|
-
#
|
|
171
|
-
# limits match.
|
|
162
|
+
# @!attribute usage
|
|
163
|
+
# Controls how many times this card can be used.
|
|
172
164
|
#
|
|
173
|
-
# @return [
|
|
174
|
-
required :
|
|
175
|
-
-> {
|
|
176
|
-
Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::SpendingLimit]
|
|
177
|
-
},
|
|
178
|
-
nil?: true
|
|
165
|
+
# @return [Increase::Models::Card::AuthorizationControls::Usage, nil]
|
|
166
|
+
required :usage, -> { Increase::Card::AuthorizationControls::Usage }, nil?: true
|
|
179
167
|
|
|
180
|
-
# @!method initialize(
|
|
168
|
+
# @!method initialize(merchant_acceptor_identifier:, merchant_category_code:, merchant_country:, usage:)
|
|
181
169
|
# Some parameter documentations has been truncated, see
|
|
182
170
|
# {Increase::Models::Card::AuthorizationControls} for more details.
|
|
183
171
|
#
|
|
184
172
|
# Controls that restrict how this card can be used.
|
|
185
173
|
#
|
|
186
|
-
# @param maximum_authorization_count [Increase::Models::Card::AuthorizationControls::MaximumAuthorizationCount, nil] Limits the number of authorizations that can be approved on this card.
|
|
187
|
-
#
|
|
188
174
|
# @param merchant_acceptor_identifier [Increase::Models::Card::AuthorizationControls::MerchantAcceptorIdentifier, nil] Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
|
|
189
175
|
#
|
|
190
176
|
# @param merchant_category_code [Increase::Models::Card::AuthorizationControls::MerchantCategoryCode, nil] Restricts which Merchant Category Codes are allowed or blocked for authorization
|
|
191
177
|
#
|
|
192
178
|
# @param merchant_country [Increase::Models::Card::AuthorizationControls::MerchantCountry, nil] Restricts which merchant countries are allowed or blocked for authorizations on
|
|
193
179
|
#
|
|
194
|
-
# @param
|
|
195
|
-
|
|
196
|
-
# @see Increase::Models::Card::AuthorizationControls#maximum_authorization_count
|
|
197
|
-
class MaximumAuthorizationCount < Increase::Internal::Type::BaseModel
|
|
198
|
-
# @!attribute all_time
|
|
199
|
-
# The maximum number of authorizations that can be approved on this card over its
|
|
200
|
-
# lifetime.
|
|
201
|
-
#
|
|
202
|
-
# @return [Integer, nil]
|
|
203
|
-
required :all_time, Integer, nil?: true
|
|
204
|
-
|
|
205
|
-
# @!method initialize(all_time:)
|
|
206
|
-
# Some parameter documentations has been truncated, see
|
|
207
|
-
# {Increase::Models::Card::AuthorizationControls::MaximumAuthorizationCount} for
|
|
208
|
-
# more details.
|
|
209
|
-
#
|
|
210
|
-
# Limits the number of authorizations that can be approved on this card.
|
|
211
|
-
#
|
|
212
|
-
# @param all_time [Integer, nil] The maximum number of authorizations that can be approved on this card over its
|
|
213
|
-
end
|
|
180
|
+
# @param usage [Increase::Models::Card::AuthorizationControls::Usage, nil] Controls how many times this card can be used.
|
|
214
181
|
|
|
215
182
|
# @see Increase::Models::Card::AuthorizationControls#merchant_acceptor_identifier
|
|
216
183
|
class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
|
|
@@ -371,74 +338,204 @@ module Increase
|
|
|
371
338
|
end
|
|
372
339
|
end
|
|
373
340
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
#
|
|
341
|
+
# @see Increase::Models::Card::AuthorizationControls#usage
|
|
342
|
+
class Usage < Increase::Internal::Type::BaseModel
|
|
343
|
+
# @!attribute category
|
|
344
|
+
# Whether the card is for a single use or multiple uses.
|
|
377
345
|
#
|
|
378
|
-
# @return [Symbol, Increase::Models::Card::AuthorizationControls::
|
|
379
|
-
required :
|
|
346
|
+
# @return [Symbol, Increase::Models::Card::AuthorizationControls::Usage::Category]
|
|
347
|
+
required :category, enum: -> { Increase::Card::AuthorizationControls::Usage::Category }
|
|
380
348
|
|
|
381
|
-
# @!attribute
|
|
382
|
-
#
|
|
383
|
-
# the limit applies to all transactions.
|
|
349
|
+
# @!attribute multi_use
|
|
350
|
+
# Controls for multi-use cards. Required if and only if `category` is `multi_use`.
|
|
384
351
|
#
|
|
385
|
-
# @return [
|
|
386
|
-
required :
|
|
387
|
-
-> {
|
|
388
|
-
Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
|
|
389
|
-
},
|
|
390
|
-
nil?: true
|
|
352
|
+
# @return [Increase::Models::Card::AuthorizationControls::Usage::MultiUse, nil]
|
|
353
|
+
required :multi_use, -> { Increase::Card::AuthorizationControls::Usage::MultiUse }, nil?: true
|
|
391
354
|
|
|
392
|
-
# @!attribute
|
|
393
|
-
#
|
|
355
|
+
# @!attribute single_use
|
|
356
|
+
# Controls for single-use cards. Required if and only if `category` is
|
|
357
|
+
# `single_use`.
|
|
394
358
|
#
|
|
395
|
-
# @return [
|
|
396
|
-
required :
|
|
359
|
+
# @return [Increase::Models::Card::AuthorizationControls::Usage::SingleUse, nil]
|
|
360
|
+
required :single_use, -> { Increase::Card::AuthorizationControls::Usage::SingleUse }, nil?: true
|
|
397
361
|
|
|
398
|
-
# @!method initialize(
|
|
362
|
+
# @!method initialize(category:, multi_use:, single_use:)
|
|
399
363
|
# Some parameter documentations has been truncated, see
|
|
400
|
-
# {Increase::Models::Card::AuthorizationControls::
|
|
364
|
+
# {Increase::Models::Card::AuthorizationControls::Usage} for more details.
|
|
365
|
+
#
|
|
366
|
+
# Controls how many times this card can be used.
|
|
401
367
|
#
|
|
402
|
-
# @param
|
|
368
|
+
# @param category [Symbol, Increase::Models::Card::AuthorizationControls::Usage::Category] Whether the card is for a single use or multiple uses.
|
|
403
369
|
#
|
|
404
|
-
# @param
|
|
370
|
+
# @param multi_use [Increase::Models::Card::AuthorizationControls::Usage::MultiUse, nil] Controls for multi-use cards. Required if and only if `category` is `multi_use`.
|
|
405
371
|
#
|
|
406
|
-
# @param
|
|
372
|
+
# @param single_use [Increase::Models::Card::AuthorizationControls::Usage::SingleUse, nil] Controls for single-use cards. Required if and only if `category` is `single_use
|
|
407
373
|
|
|
408
|
-
#
|
|
374
|
+
# Whether the card is for a single use or multiple uses.
|
|
409
375
|
#
|
|
410
|
-
# @see Increase::Models::Card::AuthorizationControls::
|
|
411
|
-
module
|
|
376
|
+
# @see Increase::Models::Card::AuthorizationControls::Usage#category
|
|
377
|
+
module Category
|
|
412
378
|
extend Increase::Internal::Type::Enum
|
|
413
379
|
|
|
414
|
-
# The
|
|
415
|
-
|
|
380
|
+
# The card can only be used for a single authorization.
|
|
381
|
+
SINGLE_USE = :single_use
|
|
416
382
|
|
|
417
|
-
# The
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
# The spending limit applies per day. Resets nightly at midnight UTC.
|
|
421
|
-
PER_DAY = :per_day
|
|
422
|
-
|
|
423
|
-
# The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
|
|
424
|
-
PER_WEEK = :per_week
|
|
425
|
-
|
|
426
|
-
# The spending limit applies per month. Resets on the first of the month, midnight UTC.
|
|
427
|
-
PER_MONTH = :per_month
|
|
383
|
+
# The card can be used for multiple authorizations.
|
|
384
|
+
MULTI_USE = :multi_use
|
|
428
385
|
|
|
429
386
|
# @!method self.values
|
|
430
387
|
# @return [Array<Symbol>]
|
|
431
388
|
end
|
|
432
389
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
#
|
|
390
|
+
# @see Increase::Models::Card::AuthorizationControls::Usage#multi_use
|
|
391
|
+
class MultiUse < Increase::Internal::Type::BaseModel
|
|
392
|
+
# @!attribute spending_limits
|
|
393
|
+
# Spending limits for this card. The most restrictive limit applies if multiple
|
|
394
|
+
# limits match.
|
|
436
395
|
#
|
|
437
|
-
# @return [
|
|
438
|
-
required :
|
|
396
|
+
# @return [Array<Increase::Models::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit>, nil]
|
|
397
|
+
required :spending_limits,
|
|
398
|
+
-> {
|
|
399
|
+
Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit]
|
|
400
|
+
},
|
|
401
|
+
nil?: true
|
|
402
|
+
|
|
403
|
+
# @!method initialize(spending_limits:)
|
|
404
|
+
# Some parameter documentations has been truncated, see
|
|
405
|
+
# {Increase::Models::Card::AuthorizationControls::Usage::MultiUse} for more
|
|
406
|
+
# details.
|
|
407
|
+
#
|
|
408
|
+
# Controls for multi-use cards. Required if and only if `category` is `multi_use`.
|
|
409
|
+
#
|
|
410
|
+
# @param spending_limits [Array<Increase::Models::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit>, nil] Spending limits for this card. The most restrictive limit applies if multiple li
|
|
411
|
+
|
|
412
|
+
class SpendingLimit < Increase::Internal::Type::BaseModel
|
|
413
|
+
# @!attribute interval
|
|
414
|
+
# The interval at which the spending limit is enforced.
|
|
415
|
+
#
|
|
416
|
+
# @return [Symbol, Increase::Models::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval]
|
|
417
|
+
required :interval,
|
|
418
|
+
enum: -> { Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval }
|
|
419
|
+
|
|
420
|
+
# @!attribute merchant_category_codes
|
|
421
|
+
# The Merchant Category Codes (MCCs) this spending limit applies to. If not set,
|
|
422
|
+
# the limit applies to all transactions.
|
|
423
|
+
#
|
|
424
|
+
# @return [Array<Increase::Models::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode>, nil]
|
|
425
|
+
required :merchant_category_codes,
|
|
426
|
+
-> {
|
|
427
|
+
Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode]
|
|
428
|
+
},
|
|
429
|
+
nil?: true
|
|
430
|
+
|
|
431
|
+
# @!attribute settlement_amount
|
|
432
|
+
# The maximum settlement amount permitted in the given interval.
|
|
433
|
+
#
|
|
434
|
+
# @return [Integer]
|
|
435
|
+
required :settlement_amount, Integer
|
|
436
|
+
|
|
437
|
+
# @!method initialize(interval:, merchant_category_codes:, settlement_amount:)
|
|
438
|
+
# Some parameter documentations has been truncated, see
|
|
439
|
+
# {Increase::Models::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit}
|
|
440
|
+
# for more details.
|
|
441
|
+
#
|
|
442
|
+
# @param interval [Symbol, Increase::Models::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval] The interval at which the spending limit is enforced.
|
|
443
|
+
#
|
|
444
|
+
# @param merchant_category_codes [Array<Increase::Models::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode>, nil] The Merchant Category Codes (MCCs) this spending limit applies to. If not set, t
|
|
445
|
+
#
|
|
446
|
+
# @param settlement_amount [Integer] The maximum settlement amount permitted in the given interval.
|
|
447
|
+
|
|
448
|
+
# The interval at which the spending limit is enforced.
|
|
449
|
+
#
|
|
450
|
+
# @see Increase::Models::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit#interval
|
|
451
|
+
module Interval
|
|
452
|
+
extend Increase::Internal::Type::Enum
|
|
453
|
+
|
|
454
|
+
# The spending limit applies over the lifetime of the card.
|
|
455
|
+
ALL_TIME = :all_time
|
|
456
|
+
|
|
457
|
+
# The spending limit applies per transaction.
|
|
458
|
+
PER_TRANSACTION = :per_transaction
|
|
459
|
+
|
|
460
|
+
# The spending limit applies per day. Resets nightly at midnight UTC.
|
|
461
|
+
PER_DAY = :per_day
|
|
462
|
+
|
|
463
|
+
# The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
|
|
464
|
+
PER_WEEK = :per_week
|
|
465
|
+
|
|
466
|
+
# The spending limit applies per month. Resets on the first of the month, midnight UTC.
|
|
467
|
+
PER_MONTH = :per_month
|
|
468
|
+
|
|
469
|
+
# @!method self.values
|
|
470
|
+
# @return [Array<Symbol>]
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
class MerchantCategoryCode < Increase::Internal::Type::BaseModel
|
|
474
|
+
# @!attribute code
|
|
475
|
+
# The Merchant Category Code (MCC).
|
|
476
|
+
#
|
|
477
|
+
# @return [String]
|
|
478
|
+
required :code, String
|
|
479
|
+
|
|
480
|
+
# @!method initialize(code:)
|
|
481
|
+
# @param code [String] The Merchant Category Code (MCC).
|
|
482
|
+
end
|
|
483
|
+
end
|
|
484
|
+
end
|
|
439
485
|
|
|
440
|
-
|
|
441
|
-
|
|
486
|
+
# @see Increase::Models::Card::AuthorizationControls::Usage#single_use
|
|
487
|
+
class SingleUse < Increase::Internal::Type::BaseModel
|
|
488
|
+
# @!attribute settlement_amount
|
|
489
|
+
# The settlement amount constraint for this single-use card.
|
|
490
|
+
#
|
|
491
|
+
# @return [Increase::Models::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount]
|
|
492
|
+
required :settlement_amount,
|
|
493
|
+
-> { Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount }
|
|
494
|
+
|
|
495
|
+
# @!method initialize(settlement_amount:)
|
|
496
|
+
# Controls for single-use cards. Required if and only if `category` is
|
|
497
|
+
# `single_use`.
|
|
498
|
+
#
|
|
499
|
+
# @param settlement_amount [Increase::Models::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount] The settlement amount constraint for this single-use card.
|
|
500
|
+
|
|
501
|
+
# @see Increase::Models::Card::AuthorizationControls::Usage::SingleUse#settlement_amount
|
|
502
|
+
class SettlementAmount < Increase::Internal::Type::BaseModel
|
|
503
|
+
# @!attribute comparison
|
|
504
|
+
# The operator used to compare the settlement amount.
|
|
505
|
+
#
|
|
506
|
+
# @return [Symbol, Increase::Models::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison]
|
|
507
|
+
required :comparison,
|
|
508
|
+
enum: -> { Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison }
|
|
509
|
+
|
|
510
|
+
# @!attribute value
|
|
511
|
+
# The settlement amount value.
|
|
512
|
+
#
|
|
513
|
+
# @return [Integer]
|
|
514
|
+
required :value, Integer
|
|
515
|
+
|
|
516
|
+
# @!method initialize(comparison:, value:)
|
|
517
|
+
# The settlement amount constraint for this single-use card.
|
|
518
|
+
#
|
|
519
|
+
# @param comparison [Symbol, Increase::Models::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison] The operator used to compare the settlement amount.
|
|
520
|
+
#
|
|
521
|
+
# @param value [Integer] The settlement amount value.
|
|
522
|
+
|
|
523
|
+
# The operator used to compare the settlement amount.
|
|
524
|
+
#
|
|
525
|
+
# @see Increase::Models::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount#comparison
|
|
526
|
+
module Comparison
|
|
527
|
+
extend Increase::Internal::Type::Enum
|
|
528
|
+
|
|
529
|
+
# The settlement amount must be exactly the specified value.
|
|
530
|
+
EQUALS = :equals
|
|
531
|
+
|
|
532
|
+
# The settlement amount must be less than or equal to the specified value.
|
|
533
|
+
LESS_THAN_OR_EQUALS = :less_than_or_equals
|
|
534
|
+
|
|
535
|
+
# @!method self.values
|
|
536
|
+
# @return [Array<Symbol>]
|
|
537
|
+
end
|
|
538
|
+
end
|
|
442
539
|
end
|
|
443
540
|
end
|
|
444
541
|
end
|