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.
@@ -67,13 +67,6 @@ module Increase
67
67
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
68
68
 
69
69
  class AuthorizationControls < Increase::Internal::Type::BaseModel
70
- # @!attribute maximum_authorization_count
71
- # Limits the number of authorizations that can be approved on this card.
72
- #
73
- # @return [Increase::Models::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount, nil]
74
- optional :maximum_authorization_count,
75
- -> { Increase::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount }
76
-
77
70
  # @!attribute merchant_acceptor_identifier
78
71
  # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
79
72
  # on this card.
@@ -97,48 +90,25 @@ module Increase
97
90
  # @return [Increase::Models::CardCreateParams::AuthorizationControls::MerchantCountry, nil]
98
91
  optional :merchant_country, -> { Increase::CardCreateParams::AuthorizationControls::MerchantCountry }
99
92
 
100
- # @!attribute spending_limits
101
- # Spending limits for this card. The most restrictive limit applies if multiple
102
- # limits match.
93
+ # @!attribute usage
94
+ # Controls how many times this card can be used.
103
95
  #
104
- # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit>, nil]
105
- optional :spending_limits,
106
- -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::SpendingLimit] }
96
+ # @return [Increase::Models::CardCreateParams::AuthorizationControls::Usage, nil]
97
+ optional :usage, -> { Increase::CardCreateParams::AuthorizationControls::Usage }
107
98
 
108
- # @!method initialize(maximum_authorization_count: nil, merchant_acceptor_identifier: nil, merchant_category_code: nil, merchant_country: nil, spending_limits: nil)
99
+ # @!method initialize(merchant_acceptor_identifier: nil, merchant_category_code: nil, merchant_country: nil, usage: nil)
109
100
  # Some parameter documentations has been truncated, see
110
101
  # {Increase::Models::CardCreateParams::AuthorizationControls} for more details.
111
102
  #
112
103
  # Controls that restrict how this card can be used.
113
104
  #
114
- # @param maximum_authorization_count [Increase::Models::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount] Limits the number of authorizations that can be approved on this card.
115
- #
116
105
  # @param merchant_acceptor_identifier [Increase::Models::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier] Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
117
106
  #
118
107
  # @param merchant_category_code [Increase::Models::CardCreateParams::AuthorizationControls::MerchantCategoryCode] Restricts which Merchant Category Codes are allowed or blocked for authorization
119
108
  #
120
109
  # @param merchant_country [Increase::Models::CardCreateParams::AuthorizationControls::MerchantCountry] Restricts which merchant countries are allowed or blocked for authorizations on
121
110
  #
122
- # @param spending_limits [Array<Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit>] Spending limits for this card. The most restrictive limit applies if multiple li
123
-
124
- # @see Increase::Models::CardCreateParams::AuthorizationControls#maximum_authorization_count
125
- class MaximumAuthorizationCount < Increase::Internal::Type::BaseModel
126
- # @!attribute all_time
127
- # The maximum number of authorizations that can be approved on this card over its
128
- # lifetime.
129
- #
130
- # @return [Integer]
131
- required :all_time, Integer
132
-
133
- # @!method initialize(all_time:)
134
- # Some parameter documentations has been truncated, see
135
- # {Increase::Models::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount}
136
- # for more details.
137
- #
138
- # Limits the number of authorizations that can be approved on this card.
139
- #
140
- # @param all_time [Integer] The maximum number of authorizations that can be approved on this card over its
141
- end
111
+ # @param usage [Increase::Models::CardCreateParams::AuthorizationControls::Usage] Controls how many times this card can be used.
142
112
 
143
113
  # @see Increase::Models::CardCreateParams::AuthorizationControls#merchant_acceptor_identifier
144
114
  class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
@@ -299,73 +269,199 @@ module Increase
299
269
  end
300
270
  end
301
271
 
302
- class SpendingLimit < Increase::Internal::Type::BaseModel
303
- # @!attribute interval
304
- # The interval at which the spending limit is enforced.
272
+ # @see Increase::Models::CardCreateParams::AuthorizationControls#usage
273
+ class Usage < Increase::Internal::Type::BaseModel
274
+ # @!attribute category
275
+ # Whether the card is for a single use or multiple uses.
305
276
  #
306
- # @return [Symbol, Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::Interval]
307
- required :interval,
308
- enum: -> { Increase::CardCreateParams::AuthorizationControls::SpendingLimit::Interval }
277
+ # @return [Symbol, Increase::Models::CardCreateParams::AuthorizationControls::Usage::Category]
278
+ required :category, enum: -> { Increase::CardCreateParams::AuthorizationControls::Usage::Category }
309
279
 
310
- # @!attribute settlement_amount
311
- # The maximum settlement amount permitted in the given interval.
280
+ # @!attribute multi_use
281
+ # Controls for multi-use cards. Required if and only if `category` is `multi_use`.
312
282
  #
313
- # @return [Integer]
314
- required :settlement_amount, Integer
283
+ # @return [Increase::Models::CardCreateParams::AuthorizationControls::Usage::MultiUse, nil]
284
+ optional :multi_use, -> { Increase::CardCreateParams::AuthorizationControls::Usage::MultiUse }
315
285
 
316
- # @!attribute merchant_category_codes
317
- # The Merchant Category Codes this spending limit applies to. If not set, the
318
- # limit applies to all transactions.
286
+ # @!attribute single_use
287
+ # Controls for single-use cards. Required if and only if `category` is
288
+ # `single_use`.
319
289
  #
320
- # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode>, nil]
321
- optional :merchant_category_codes,
322
- -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode] }
290
+ # @return [Increase::Models::CardCreateParams::AuthorizationControls::Usage::SingleUse, nil]
291
+ optional :single_use, -> { Increase::CardCreateParams::AuthorizationControls::Usage::SingleUse }
323
292
 
324
- # @!method initialize(interval:, settlement_amount:, merchant_category_codes: nil)
293
+ # @!method initialize(category:, multi_use: nil, single_use: nil)
325
294
  # Some parameter documentations has been truncated, see
326
- # {Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit} for
327
- # more details.
295
+ # {Increase::Models::CardCreateParams::AuthorizationControls::Usage} for more
296
+ # details.
297
+ #
298
+ # Controls how many times this card can be used.
328
299
  #
329
- # @param interval [Symbol, Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::Interval] The interval at which the spending limit is enforced.
300
+ # @param category [Symbol, Increase::Models::CardCreateParams::AuthorizationControls::Usage::Category] Whether the card is for a single use or multiple uses.
330
301
  #
331
- # @param settlement_amount [Integer] The maximum settlement amount permitted in the given interval.
302
+ # @param multi_use [Increase::Models::CardCreateParams::AuthorizationControls::Usage::MultiUse] Controls for multi-use cards. Required if and only if `category` is `multi_use`.
332
303
  #
333
- # @param merchant_category_codes [Array<Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode>] The Merchant Category Codes this spending limit applies to. If not set, the limi
304
+ # @param single_use [Increase::Models::CardCreateParams::AuthorizationControls::Usage::SingleUse] Controls for single-use cards. Required if and only if `category` is `single_use
334
305
 
335
- # The interval at which the spending limit is enforced.
306
+ # Whether the card is for a single use or multiple uses.
336
307
  #
337
- # @see Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit#interval
338
- module Interval
308
+ # @see Increase::Models::CardCreateParams::AuthorizationControls::Usage#category
309
+ module Category
339
310
  extend Increase::Internal::Type::Enum
340
311
 
341
- # The spending limit applies over the lifetime of the card.
342
- ALL_TIME = :all_time
343
-
344
- # The spending limit applies per transaction.
345
- PER_TRANSACTION = :per_transaction
312
+ # The card can only be used for a single authorization.
313
+ SINGLE_USE = :single_use
346
314
 
347
- # The spending limit applies per day. Resets nightly at midnight UTC.
348
- PER_DAY = :per_day
349
-
350
- # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
351
- PER_WEEK = :per_week
352
-
353
- # The spending limit applies per month. Resets on the first of the month, midnight UTC.
354
- PER_MONTH = :per_month
315
+ # The card can be used for multiple authorizations.
316
+ MULTI_USE = :multi_use
355
317
 
356
318
  # @!method self.values
357
319
  # @return [Array<Symbol>]
358
320
  end
359
321
 
360
- class MerchantCategoryCode < Increase::Internal::Type::BaseModel
361
- # @!attribute code
362
- # The Merchant Category Code.
322
+ # @see Increase::Models::CardCreateParams::AuthorizationControls::Usage#multi_use
323
+ class MultiUse < Increase::Internal::Type::BaseModel
324
+ # @!attribute spending_limits
325
+ # Spending limits for this card. The most restrictive limit applies if multiple
326
+ # limits match.
363
327
  #
364
- # @return [String]
365
- required :code, String
328
+ # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit>, nil]
329
+ optional :spending_limits,
330
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit] }
331
+
332
+ # @!method initialize(spending_limits: nil)
333
+ # Some parameter documentations has been truncated, see
334
+ # {Increase::Models::CardCreateParams::AuthorizationControls::Usage::MultiUse} for
335
+ # more details.
336
+ #
337
+ # Controls for multi-use cards. Required if and only if `category` is `multi_use`.
338
+ #
339
+ # @param spending_limits [Array<Increase::Models::CardCreateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit>] Spending limits for this card. The most restrictive limit applies if multiple li
340
+
341
+ class SpendingLimit < Increase::Internal::Type::BaseModel
342
+ # @!attribute interval
343
+ # The interval at which the spending limit is enforced.
344
+ #
345
+ # @return [Symbol, Increase::Models::CardCreateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval]
346
+ required :interval,
347
+ enum: -> { Increase::CardCreateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval }
348
+
349
+ # @!attribute settlement_amount
350
+ # The maximum settlement amount permitted in the given interval.
351
+ #
352
+ # @return [Integer]
353
+ required :settlement_amount, Integer
354
+
355
+ # @!attribute merchant_category_codes
356
+ # The Merchant Category Codes this spending limit applies to. If not set, the
357
+ # limit applies to all transactions.
358
+ #
359
+ # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode>, nil]
360
+ optional :merchant_category_codes,
361
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode] }
362
+
363
+ # @!method initialize(interval:, settlement_amount:, merchant_category_codes: nil)
364
+ # Some parameter documentations has been truncated, see
365
+ # {Increase::Models::CardCreateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit}
366
+ # for more details.
367
+ #
368
+ # @param interval [Symbol, Increase::Models::CardCreateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval] The interval at which the spending limit is enforced.
369
+ #
370
+ # @param settlement_amount [Integer] The maximum settlement amount permitted in the given interval.
371
+ #
372
+ # @param merchant_category_codes [Array<Increase::Models::CardCreateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode>] The Merchant Category Codes this spending limit applies to. If not set, the limi
373
+
374
+ # The interval at which the spending limit is enforced.
375
+ #
376
+ # @see Increase::Models::CardCreateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit#interval
377
+ module Interval
378
+ extend Increase::Internal::Type::Enum
379
+
380
+ # The spending limit applies over the lifetime of the card.
381
+ ALL_TIME = :all_time
382
+
383
+ # The spending limit applies per transaction.
384
+ PER_TRANSACTION = :per_transaction
385
+
386
+ # The spending limit applies per day. Resets nightly at midnight UTC.
387
+ PER_DAY = :per_day
388
+
389
+ # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
390
+ PER_WEEK = :per_week
391
+
392
+ # The spending limit applies per month. Resets on the first of the month, midnight UTC.
393
+ PER_MONTH = :per_month
394
+
395
+ # @!method self.values
396
+ # @return [Array<Symbol>]
397
+ end
398
+
399
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
400
+ # @!attribute code
401
+ # The Merchant Category Code.
402
+ #
403
+ # @return [String]
404
+ required :code, String
405
+
406
+ # @!method initialize(code:)
407
+ # @param code [String] The Merchant Category Code.
408
+ end
409
+ end
410
+ end
366
411
 
367
- # @!method initialize(code:)
368
- # @param code [String] The Merchant Category Code.
412
+ # @see Increase::Models::CardCreateParams::AuthorizationControls::Usage#single_use
413
+ class SingleUse < Increase::Internal::Type::BaseModel
414
+ # @!attribute settlement_amount
415
+ # The settlement amount constraint for this single-use card.
416
+ #
417
+ # @return [Increase::Models::CardCreateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount]
418
+ required :settlement_amount,
419
+ -> { Increase::CardCreateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount }
420
+
421
+ # @!method initialize(settlement_amount:)
422
+ # Controls for single-use cards. Required if and only if `category` is
423
+ # `single_use`.
424
+ #
425
+ # @param settlement_amount [Increase::Models::CardCreateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount] The settlement amount constraint for this single-use card.
426
+
427
+ # @see Increase::Models::CardCreateParams::AuthorizationControls::Usage::SingleUse#settlement_amount
428
+ class SettlementAmount < Increase::Internal::Type::BaseModel
429
+ # @!attribute comparison
430
+ # The operator used to compare the settlement amount.
431
+ #
432
+ # @return [Symbol, Increase::Models::CardCreateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison]
433
+ required :comparison,
434
+ enum: -> { Increase::CardCreateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison }
435
+
436
+ # @!attribute value
437
+ # The settlement amount value.
438
+ #
439
+ # @return [Integer]
440
+ required :value, Integer
441
+
442
+ # @!method initialize(comparison:, value:)
443
+ # The settlement amount constraint for this single-use card.
444
+ #
445
+ # @param comparison [Symbol, Increase::Models::CardCreateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison] The operator used to compare the settlement amount.
446
+ #
447
+ # @param value [Integer] The settlement amount value.
448
+
449
+ # The operator used to compare the settlement amount.
450
+ #
451
+ # @see Increase::Models::CardCreateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount#comparison
452
+ module Comparison
453
+ extend Increase::Internal::Type::Enum
454
+
455
+ # The settlement amount must be exactly the specified value.
456
+ EQUALS = :equals
457
+
458
+ # The settlement amount must be less than or equal to the specified value.
459
+ LESS_THAN_OR_EQUALS = :less_than_or_equals
460
+
461
+ # @!method self.values
462
+ # @return [Array<Symbol>]
463
+ end
464
+ end
369
465
  end
370
466
  end
371
467
  end
@@ -73,13 +73,6 @@ module Increase
73
73
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
74
74
 
75
75
  class AuthorizationControls < Increase::Internal::Type::BaseModel
76
- # @!attribute maximum_authorization_count
77
- # Limits the number of authorizations that can be approved on this card.
78
- #
79
- # @return [Increase::Models::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount, nil]
80
- optional :maximum_authorization_count,
81
- -> { Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount }
82
-
83
76
  # @!attribute merchant_acceptor_identifier
84
77
  # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
85
78
  # on this card.
@@ -103,48 +96,25 @@ module Increase
103
96
  # @return [Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCountry, nil]
104
97
  optional :merchant_country, -> { Increase::CardUpdateParams::AuthorizationControls::MerchantCountry }
105
98
 
106
- # @!attribute spending_limits
107
- # Spending limits for this card. The most restrictive limit applies if multiple
108
- # limits match.
99
+ # @!attribute usage
100
+ # Controls how many times this card can be used.
109
101
  #
110
- # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit>, nil]
111
- optional :spending_limits,
112
- -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit] }
102
+ # @return [Increase::Models::CardUpdateParams::AuthorizationControls::Usage, nil]
103
+ optional :usage, -> { Increase::CardUpdateParams::AuthorizationControls::Usage }
113
104
 
114
- # @!method initialize(maximum_authorization_count: nil, merchant_acceptor_identifier: nil, merchant_category_code: nil, merchant_country: nil, spending_limits: nil)
105
+ # @!method initialize(merchant_acceptor_identifier: nil, merchant_category_code: nil, merchant_country: nil, usage: nil)
115
106
  # Some parameter documentations has been truncated, see
116
107
  # {Increase::Models::CardUpdateParams::AuthorizationControls} for more details.
117
108
  #
118
109
  # Controls that restrict how this card can be used.
119
110
  #
120
- # @param maximum_authorization_count [Increase::Models::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount] Limits the number of authorizations that can be approved on this card.
121
- #
122
111
  # @param merchant_acceptor_identifier [Increase::Models::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier] Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
123
112
  #
124
113
  # @param merchant_category_code [Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCategoryCode] Restricts which Merchant Category Codes are allowed or blocked for authorization
125
114
  #
126
115
  # @param merchant_country [Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCountry] Restricts which merchant countries are allowed or blocked for authorizations on
127
116
  #
128
- # @param spending_limits [Array<Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit>] Spending limits for this card. The most restrictive limit applies if multiple li
129
-
130
- # @see Increase::Models::CardUpdateParams::AuthorizationControls#maximum_authorization_count
131
- class MaximumAuthorizationCount < Increase::Internal::Type::BaseModel
132
- # @!attribute all_time
133
- # The maximum number of authorizations that can be approved on this card over its
134
- # lifetime.
135
- #
136
- # @return [Integer]
137
- required :all_time, Integer
138
-
139
- # @!method initialize(all_time:)
140
- # Some parameter documentations has been truncated, see
141
- # {Increase::Models::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount}
142
- # for more details.
143
- #
144
- # Limits the number of authorizations that can be approved on this card.
145
- #
146
- # @param all_time [Integer] The maximum number of authorizations that can be approved on this card over its
147
- end
117
+ # @param usage [Increase::Models::CardUpdateParams::AuthorizationControls::Usage] Controls how many times this card can be used.
148
118
 
149
119
  # @see Increase::Models::CardUpdateParams::AuthorizationControls#merchant_acceptor_identifier
150
120
  class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
@@ -305,73 +275,199 @@ module Increase
305
275
  end
306
276
  end
307
277
 
308
- class SpendingLimit < Increase::Internal::Type::BaseModel
309
- # @!attribute interval
310
- # The interval at which the spending limit is enforced.
278
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls#usage
279
+ class Usage < Increase::Internal::Type::BaseModel
280
+ # @!attribute category
281
+ # Whether the card is for a single use or multiple uses.
311
282
  #
312
- # @return [Symbol, Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::Interval]
313
- required :interval,
314
- enum: -> { Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::Interval }
283
+ # @return [Symbol, Increase::Models::CardUpdateParams::AuthorizationControls::Usage::Category]
284
+ required :category, enum: -> { Increase::CardUpdateParams::AuthorizationControls::Usage::Category }
315
285
 
316
- # @!attribute settlement_amount
317
- # The maximum settlement amount permitted in the given interval.
286
+ # @!attribute multi_use
287
+ # Controls for multi-use cards. Required if and only if `category` is `multi_use`.
318
288
  #
319
- # @return [Integer]
320
- required :settlement_amount, Integer
289
+ # @return [Increase::Models::CardUpdateParams::AuthorizationControls::Usage::MultiUse, nil]
290
+ optional :multi_use, -> { Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse }
321
291
 
322
- # @!attribute merchant_category_codes
323
- # The Merchant Category Codes this spending limit applies to. If not set, the
324
- # limit applies to all transactions.
292
+ # @!attribute single_use
293
+ # Controls for single-use cards. Required if and only if `category` is
294
+ # `single_use`.
325
295
  #
326
- # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode>, nil]
327
- optional :merchant_category_codes,
328
- -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode] }
296
+ # @return [Increase::Models::CardUpdateParams::AuthorizationControls::Usage::SingleUse, nil]
297
+ optional :single_use, -> { Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse }
329
298
 
330
- # @!method initialize(interval:, settlement_amount:, merchant_category_codes: nil)
299
+ # @!method initialize(category:, multi_use: nil, single_use: nil)
331
300
  # Some parameter documentations has been truncated, see
332
- # {Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit} for
333
- # more details.
301
+ # {Increase::Models::CardUpdateParams::AuthorizationControls::Usage} for more
302
+ # details.
303
+ #
304
+ # Controls how many times this card can be used.
334
305
  #
335
- # @param interval [Symbol, Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::Interval] The interval at which the spending limit is enforced.
306
+ # @param category [Symbol, Increase::Models::CardUpdateParams::AuthorizationControls::Usage::Category] Whether the card is for a single use or multiple uses.
336
307
  #
337
- # @param settlement_amount [Integer] The maximum settlement amount permitted in the given interval.
308
+ # @param multi_use [Increase::Models::CardUpdateParams::AuthorizationControls::Usage::MultiUse] Controls for multi-use cards. Required if and only if `category` is `multi_use`.
338
309
  #
339
- # @param merchant_category_codes [Array<Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode>] The Merchant Category Codes this spending limit applies to. If not set, the limi
310
+ # @param single_use [Increase::Models::CardUpdateParams::AuthorizationControls::Usage::SingleUse] Controls for single-use cards. Required if and only if `category` is `single_use
340
311
 
341
- # The interval at which the spending limit is enforced.
312
+ # Whether the card is for a single use or multiple uses.
342
313
  #
343
- # @see Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit#interval
344
- module Interval
314
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls::Usage#category
315
+ module Category
345
316
  extend Increase::Internal::Type::Enum
346
317
 
347
- # The spending limit applies over the lifetime of the card.
348
- ALL_TIME = :all_time
349
-
350
- # The spending limit applies per transaction.
351
- PER_TRANSACTION = :per_transaction
318
+ # The card can only be used for a single authorization.
319
+ SINGLE_USE = :single_use
352
320
 
353
- # The spending limit applies per day. Resets nightly at midnight UTC.
354
- PER_DAY = :per_day
355
-
356
- # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
357
- PER_WEEK = :per_week
358
-
359
- # The spending limit applies per month. Resets on the first of the month, midnight UTC.
360
- PER_MONTH = :per_month
321
+ # The card can be used for multiple authorizations.
322
+ MULTI_USE = :multi_use
361
323
 
362
324
  # @!method self.values
363
325
  # @return [Array<Symbol>]
364
326
  end
365
327
 
366
- class MerchantCategoryCode < Increase::Internal::Type::BaseModel
367
- # @!attribute code
368
- # The Merchant Category Code.
328
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls::Usage#multi_use
329
+ class MultiUse < Increase::Internal::Type::BaseModel
330
+ # @!attribute spending_limits
331
+ # Spending limits for this card. The most restrictive limit applies if multiple
332
+ # limits match.
369
333
  #
370
- # @return [String]
371
- required :code, String
334
+ # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit>, nil]
335
+ optional :spending_limits,
336
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit] }
337
+
338
+ # @!method initialize(spending_limits: nil)
339
+ # Some parameter documentations has been truncated, see
340
+ # {Increase::Models::CardUpdateParams::AuthorizationControls::Usage::MultiUse} for
341
+ # more details.
342
+ #
343
+ # Controls for multi-use cards. Required if and only if `category` is `multi_use`.
344
+ #
345
+ # @param spending_limits [Array<Increase::Models::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit>] Spending limits for this card. The most restrictive limit applies if multiple li
346
+
347
+ class SpendingLimit < Increase::Internal::Type::BaseModel
348
+ # @!attribute interval
349
+ # The interval at which the spending limit is enforced.
350
+ #
351
+ # @return [Symbol, Increase::Models::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval]
352
+ required :interval,
353
+ enum: -> { Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval }
354
+
355
+ # @!attribute settlement_amount
356
+ # The maximum settlement amount permitted in the given interval.
357
+ #
358
+ # @return [Integer]
359
+ required :settlement_amount, Integer
360
+
361
+ # @!attribute merchant_category_codes
362
+ # The Merchant Category Codes this spending limit applies to. If not set, the
363
+ # limit applies to all transactions.
364
+ #
365
+ # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode>, nil]
366
+ optional :merchant_category_codes,
367
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode] }
368
+
369
+ # @!method initialize(interval:, settlement_amount:, merchant_category_codes: nil)
370
+ # Some parameter documentations has been truncated, see
371
+ # {Increase::Models::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit}
372
+ # for more details.
373
+ #
374
+ # @param interval [Symbol, Increase::Models::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval] The interval at which the spending limit is enforced.
375
+ #
376
+ # @param settlement_amount [Integer] The maximum settlement amount permitted in the given interval.
377
+ #
378
+ # @param merchant_category_codes [Array<Increase::Models::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode>] The Merchant Category Codes this spending limit applies to. If not set, the limi
379
+
380
+ # The interval at which the spending limit is enforced.
381
+ #
382
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit#interval
383
+ module Interval
384
+ extend Increase::Internal::Type::Enum
385
+
386
+ # The spending limit applies over the lifetime of the card.
387
+ ALL_TIME = :all_time
388
+
389
+ # The spending limit applies per transaction.
390
+ PER_TRANSACTION = :per_transaction
391
+
392
+ # The spending limit applies per day. Resets nightly at midnight UTC.
393
+ PER_DAY = :per_day
394
+
395
+ # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
396
+ PER_WEEK = :per_week
397
+
398
+ # The spending limit applies per month. Resets on the first of the month, midnight UTC.
399
+ PER_MONTH = :per_month
400
+
401
+ # @!method self.values
402
+ # @return [Array<Symbol>]
403
+ end
404
+
405
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
406
+ # @!attribute code
407
+ # The Merchant Category Code.
408
+ #
409
+ # @return [String]
410
+ required :code, String
411
+
412
+ # @!method initialize(code:)
413
+ # @param code [String] The Merchant Category Code.
414
+ end
415
+ end
416
+ end
372
417
 
373
- # @!method initialize(code:)
374
- # @param code [String] The Merchant Category Code.
418
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls::Usage#single_use
419
+ class SingleUse < Increase::Internal::Type::BaseModel
420
+ # @!attribute settlement_amount
421
+ # The settlement amount constraint for this single-use card.
422
+ #
423
+ # @return [Increase::Models::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount]
424
+ required :settlement_amount,
425
+ -> { Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount }
426
+
427
+ # @!method initialize(settlement_amount:)
428
+ # Controls for single-use cards. Required if and only if `category` is
429
+ # `single_use`.
430
+ #
431
+ # @param settlement_amount [Increase::Models::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount] The settlement amount constraint for this single-use card.
432
+
433
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls::Usage::SingleUse#settlement_amount
434
+ class SettlementAmount < Increase::Internal::Type::BaseModel
435
+ # @!attribute comparison
436
+ # The operator used to compare the settlement amount.
437
+ #
438
+ # @return [Symbol, Increase::Models::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison]
439
+ required :comparison,
440
+ enum: -> { Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison }
441
+
442
+ # @!attribute value
443
+ # The settlement amount value.
444
+ #
445
+ # @return [Integer]
446
+ required :value, Integer
447
+
448
+ # @!method initialize(comparison:, value:)
449
+ # The settlement amount constraint for this single-use card.
450
+ #
451
+ # @param comparison [Symbol, Increase::Models::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison] The operator used to compare the settlement amount.
452
+ #
453
+ # @param value [Integer] The settlement amount value.
454
+
455
+ # The operator used to compare the settlement amount.
456
+ #
457
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount#comparison
458
+ module Comparison
459
+ extend Increase::Internal::Type::Enum
460
+
461
+ # The settlement amount must be exactly the specified value.
462
+ EQUALS = :equals
463
+
464
+ # The settlement amount must be less than or equal to the specified value.
465
+ LESS_THAN_OR_EQUALS = :less_than_or_equals
466
+
467
+ # @!method self.values
468
+ # @return [Array<Symbol>]
469
+ end
470
+ end
375
471
  end
376
472
  end
377
473
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.282.0"
4
+ VERSION = "1.284.0"
5
5
  end