increase 1.279.0 → 1.280.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: b5f892862c9f260100b15adb9e899123e69d312ba958d37351b86a46d172acd5
4
- data.tar.gz: a42178b0eb83c3416ff51fc98f6ad0c33b839b090555072b64fbd8399733822c
3
+ metadata.gz: 6dbd3fcca406ab4234d71d7cff0d32c39d2be3cccf051fe07e08b4d94f983120
4
+ data.tar.gz: 88352dcc24a5a4c84e3fa92a8f5636afd03f25b438924cf482a63e8e51314275
5
5
  SHA512:
6
- metadata.gz: 1c2ff3c84a07bf2a6f8b2f5d2654c3dd5ecaa8d3aee866e1283d086e27afce8507702e4590f19b8d3ac8daa72f9fd88f608b2e8162fb46386b27ab5f85ae878f
7
- data.tar.gz: a7d91b24bbdd29df688adb2578444575725d1fa7d9c5e55c703e31af5c8f1392ce9805dd3d27959323163bd26a47a51a8c15889d5136d4b898a8446dfe5e3028
6
+ metadata.gz: 7702a98b17b0c13a5b177eb45c5c1c678d6a0b51ded490f4335bf58f9ec22619c2c2d517c2c6dfa92e194920db6ae5187acc5d9ade70253a53668948add7c0b3
7
+ data.tar.gz: c8e2c921d3afc36fef4a1026c0f903335babfdfa0dc78e4fd5992bf16964152e27e85935ee28f23adedf811a860486cb94b624e358f09405fa415f220c44a3a7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.280.0 (2026-04-03)
4
+
5
+ Full Changelog: [v1.279.0...v1.280.0](https://github.com/Increase/increase-ruby/compare/v1.279.0...v1.280.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([9874e66](https://github.com/Increase/increase-ruby/commit/9874e66054a023a1075ea5d5d1e40cfd11ce6a9a))
10
+
3
11
  ## 1.279.0 (2026-04-02)
4
12
 
5
13
  Full Changelog: [v1.278.2...v1.279.0](https://github.com/Increase/increase-ruby/compare/v1.278.2...v1.279.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.279.0"
18
+ gem "increase", "~> 1.280.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -16,6 +16,12 @@ module Increase
16
16
  # @return [String]
17
17
  required :account_id, String
18
18
 
19
+ # @!attribute authorization_controls
20
+ # Controls that restrict how this card can be used.
21
+ #
22
+ # @return [Increase::Models::Card::AuthorizationControls, nil]
23
+ required :authorization_controls, -> { Increase::Card::AuthorizationControls }, nil?: true
24
+
19
25
  # @!attribute billing_address
20
26
  # The Card's billing address.
21
27
  #
@@ -88,7 +94,7 @@ module Increase
88
94
  # @return [Symbol, Increase::Models::Card::Type]
89
95
  required :type, enum: -> { Increase::Card::Type }
90
96
 
91
- # @!method initialize(id:, account_id:, billing_address:, created_at:, description:, digital_wallet:, entity_id:, expiration_month:, expiration_year:, idempotency_key:, last4:, status:, type:)
97
+ # @!method initialize(id:, account_id:, authorization_controls:, billing_address:, created_at:, description:, digital_wallet:, entity_id:, expiration_month:, expiration_year:, idempotency_key:, last4:, status:, type:)
92
98
  # Some parameter documentations has been truncated, see {Increase::Models::Card}
93
99
  # for more details.
94
100
  #
@@ -101,6 +107,8 @@ module Increase
101
107
  #
102
108
  # @param account_id [String] The identifier for the account this card belongs to.
103
109
  #
110
+ # @param authorization_controls [Increase::Models::Card::AuthorizationControls, nil] Controls that restrict how this card can be used.
111
+ #
104
112
  # @param billing_address [Increase::Models::Card::BillingAddress] The Card's billing address.
105
113
  #
106
114
  # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
@@ -123,6 +131,318 @@ module Increase
123
131
  #
124
132
  # @param type [Symbol, Increase::Models::Card::Type] A constant representing the object's type. For this resource it will always be `
125
133
 
134
+ # @see Increase::Models::Card#authorization_controls
135
+ 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
+ # @!attribute merchant_acceptor_identifier
145
+ # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
146
+ # on this card.
147
+ #
148
+ # @return [Increase::Models::Card::AuthorizationControls::MerchantAcceptorIdentifier, nil]
149
+ required :merchant_acceptor_identifier,
150
+ -> { Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier },
151
+ nil?: true
152
+
153
+ # @!attribute merchant_category_code
154
+ # Restricts which Merchant Category Codes are allowed or blocked for
155
+ # authorizations on this card.
156
+ #
157
+ # @return [Increase::Models::Card::AuthorizationControls::MerchantCategoryCode, nil]
158
+ required :merchant_category_code,
159
+ -> { Increase::Card::AuthorizationControls::MerchantCategoryCode },
160
+ nil?: true
161
+
162
+ # @!attribute merchant_country
163
+ # Restricts which merchant countries are allowed or blocked for authorizations on
164
+ # this card.
165
+ #
166
+ # @return [Increase::Models::Card::AuthorizationControls::MerchantCountry, nil]
167
+ required :merchant_country, -> { Increase::Card::AuthorizationControls::MerchantCountry }, nil?: true
168
+
169
+ # @!attribute spending_limits
170
+ # Spending limits for this card. The most restrictive limit is applied if multiple
171
+ # limits match.
172
+ #
173
+ # @return [Array<Increase::Models::Card::AuthorizationControls::SpendingLimit>, nil]
174
+ required :spending_limits,
175
+ -> {
176
+ Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::SpendingLimit]
177
+ },
178
+ nil?: true
179
+
180
+ # @!method initialize(maximum_authorization_count:, merchant_acceptor_identifier:, merchant_category_code:, merchant_country:, spending_limits:)
181
+ # Some parameter documentations has been truncated, see
182
+ # {Increase::Models::Card::AuthorizationControls} for more details.
183
+ #
184
+ # Controls that restrict how this card can be used.
185
+ #
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
+ # @param merchant_acceptor_identifier [Increase::Models::Card::AuthorizationControls::MerchantAcceptorIdentifier, nil] Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
189
+ #
190
+ # @param merchant_category_code [Increase::Models::Card::AuthorizationControls::MerchantCategoryCode, nil] Restricts which Merchant Category Codes are allowed or blocked for authorization
191
+ #
192
+ # @param merchant_country [Increase::Models::Card::AuthorizationControls::MerchantCountry, nil] Restricts which merchant countries are allowed or blocked for authorizations on
193
+ #
194
+ # @param spending_limits [Array<Increase::Models::Card::AuthorizationControls::SpendingLimit>, nil] Spending limits for this card. The most restrictive limit is applied if multiple
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
214
+
215
+ # @see Increase::Models::Card::AuthorizationControls#merchant_acceptor_identifier
216
+ class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
217
+ # @!attribute allowed
218
+ # The Merchant Acceptor IDs that are allowed for authorizations on this card.
219
+ #
220
+ # @return [Array<Increase::Models::Card::AuthorizationControls::MerchantAcceptorIdentifier::Allowed>, nil]
221
+ required :allowed,
222
+ -> {
223
+ Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]
224
+ },
225
+ nil?: true
226
+
227
+ # @!attribute blocked
228
+ # The Merchant Acceptor IDs that are blocked for authorizations on this card.
229
+ #
230
+ # @return [Array<Increase::Models::Card::AuthorizationControls::MerchantAcceptorIdentifier::Blocked>, nil]
231
+ required :blocked,
232
+ -> {
233
+ Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
234
+ },
235
+ nil?: true
236
+
237
+ # @!method initialize(allowed:, blocked:)
238
+ # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
239
+ # on this card.
240
+ #
241
+ # @param allowed [Array<Increase::Models::Card::AuthorizationControls::MerchantAcceptorIdentifier::Allowed>, nil] The Merchant Acceptor IDs that are allowed for authorizations on this card.
242
+ #
243
+ # @param blocked [Array<Increase::Models::Card::AuthorizationControls::MerchantAcceptorIdentifier::Blocked>, nil] The Merchant Acceptor IDs that are blocked for authorizations on this card.
244
+
245
+ class Allowed < Increase::Internal::Type::BaseModel
246
+ # @!attribute identifier
247
+ # The Merchant Acceptor ID.
248
+ #
249
+ # @return [String]
250
+ required :identifier, String
251
+
252
+ # @!method initialize(identifier:)
253
+ # @param identifier [String] The Merchant Acceptor ID.
254
+ end
255
+
256
+ class Blocked < Increase::Internal::Type::BaseModel
257
+ # @!attribute identifier
258
+ # The Merchant Acceptor ID.
259
+ #
260
+ # @return [String]
261
+ required :identifier, String
262
+
263
+ # @!method initialize(identifier:)
264
+ # @param identifier [String] The Merchant Acceptor ID.
265
+ end
266
+ end
267
+
268
+ # @see Increase::Models::Card::AuthorizationControls#merchant_category_code
269
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
270
+ # @!attribute allowed
271
+ # The Merchant Category Codes that are allowed for authorizations on this card.
272
+ #
273
+ # @return [Array<Increase::Models::Card::AuthorizationControls::MerchantCategoryCode::Allowed>, nil]
274
+ required :allowed,
275
+ -> {
276
+ Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::MerchantCategoryCode::Allowed]
277
+ },
278
+ nil?: true
279
+
280
+ # @!attribute blocked
281
+ # The Merchant Category Codes that are blocked for authorizations on this card.
282
+ #
283
+ # @return [Array<Increase::Models::Card::AuthorizationControls::MerchantCategoryCode::Blocked>, nil]
284
+ required :blocked,
285
+ -> {
286
+ Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::MerchantCategoryCode::Blocked]
287
+ },
288
+ nil?: true
289
+
290
+ # @!method initialize(allowed:, blocked:)
291
+ # Restricts which Merchant Category Codes are allowed or blocked for
292
+ # authorizations on this card.
293
+ #
294
+ # @param allowed [Array<Increase::Models::Card::AuthorizationControls::MerchantCategoryCode::Allowed>, nil] The Merchant Category Codes that are allowed for authorizations on this card.
295
+ #
296
+ # @param blocked [Array<Increase::Models::Card::AuthorizationControls::MerchantCategoryCode::Blocked>, nil] The Merchant Category Codes that are blocked for authorizations on this card.
297
+
298
+ class Allowed < Increase::Internal::Type::BaseModel
299
+ # @!attribute code
300
+ # The Merchant Category Code (MCC).
301
+ #
302
+ # @return [String]
303
+ required :code, String
304
+
305
+ # @!method initialize(code:)
306
+ # @param code [String] The Merchant Category Code (MCC).
307
+ end
308
+
309
+ class Blocked < Increase::Internal::Type::BaseModel
310
+ # @!attribute code
311
+ # The Merchant Category Code (MCC).
312
+ #
313
+ # @return [String]
314
+ required :code, String
315
+
316
+ # @!method initialize(code:)
317
+ # @param code [String] The Merchant Category Code (MCC).
318
+ end
319
+ end
320
+
321
+ # @see Increase::Models::Card::AuthorizationControls#merchant_country
322
+ class MerchantCountry < Increase::Internal::Type::BaseModel
323
+ # @!attribute allowed
324
+ # The merchant countries that are allowed for authorizations on this card.
325
+ #
326
+ # @return [Array<Increase::Models::Card::AuthorizationControls::MerchantCountry::Allowed>, nil]
327
+ required :allowed,
328
+ -> {
329
+ Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::MerchantCountry::Allowed]
330
+ },
331
+ nil?: true
332
+
333
+ # @!attribute blocked
334
+ # The merchant countries that are blocked for authorizations on this card.
335
+ #
336
+ # @return [Array<Increase::Models::Card::AuthorizationControls::MerchantCountry::Blocked>, nil]
337
+ required :blocked,
338
+ -> {
339
+ Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::MerchantCountry::Blocked]
340
+ },
341
+ nil?: true
342
+
343
+ # @!method initialize(allowed:, blocked:)
344
+ # Restricts which merchant countries are allowed or blocked for authorizations on
345
+ # this card.
346
+ #
347
+ # @param allowed [Array<Increase::Models::Card::AuthorizationControls::MerchantCountry::Allowed>, nil] The merchant countries that are allowed for authorizations on this card.
348
+ #
349
+ # @param blocked [Array<Increase::Models::Card::AuthorizationControls::MerchantCountry::Blocked>, nil] The merchant countries that are blocked for authorizations on this card.
350
+
351
+ class Allowed < Increase::Internal::Type::BaseModel
352
+ # @!attribute country
353
+ # The ISO 3166-1 alpha-2 country code.
354
+ #
355
+ # @return [String]
356
+ required :country, String
357
+
358
+ # @!method initialize(country:)
359
+ # @param country [String] The ISO 3166-1 alpha-2 country code.
360
+ end
361
+
362
+ class Blocked < Increase::Internal::Type::BaseModel
363
+ # @!attribute country
364
+ # The ISO 3166-1 alpha-2 country code.
365
+ #
366
+ # @return [String]
367
+ required :country, String
368
+
369
+ # @!method initialize(country:)
370
+ # @param country [String] The ISO 3166-1 alpha-2 country code.
371
+ end
372
+ end
373
+
374
+ class SpendingLimit < Increase::Internal::Type::BaseModel
375
+ # @!attribute interval
376
+ # The interval at which the spending limit is enforced.
377
+ #
378
+ # @return [Symbol, Increase::Models::Card::AuthorizationControls::SpendingLimit::Interval]
379
+ required :interval, enum: -> { Increase::Card::AuthorizationControls::SpendingLimit::Interval }
380
+
381
+ # @!attribute merchant_category_codes
382
+ # The Merchant Category Codes (MCCs) this spending limit applies to. If not set,
383
+ # the limit applies to all transactions.
384
+ #
385
+ # @return [Array<Increase::Models::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode>, nil]
386
+ required :merchant_category_codes,
387
+ -> {
388
+ Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
389
+ },
390
+ nil?: true
391
+
392
+ # @!attribute settlement_amount
393
+ # The maximum settlement amount permitted in the given interval.
394
+ #
395
+ # @return [Integer]
396
+ required :settlement_amount, Integer
397
+
398
+ # @!method initialize(interval:, merchant_category_codes:, settlement_amount:)
399
+ # Some parameter documentations has been truncated, see
400
+ # {Increase::Models::Card::AuthorizationControls::SpendingLimit} for more details.
401
+ #
402
+ # @param interval [Symbol, Increase::Models::Card::AuthorizationControls::SpendingLimit::Interval] The interval at which the spending limit is enforced.
403
+ #
404
+ # @param merchant_category_codes [Array<Increase::Models::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode>, nil] The Merchant Category Codes (MCCs) this spending limit applies to. If not set, t
405
+ #
406
+ # @param settlement_amount [Integer] The maximum settlement amount permitted in the given interval.
407
+
408
+ # The interval at which the spending limit is enforced.
409
+ #
410
+ # @see Increase::Models::Card::AuthorizationControls::SpendingLimit#interval
411
+ module Interval
412
+ extend Increase::Internal::Type::Enum
413
+
414
+ # The spending limit applies over the lifetime of the card.
415
+ ALL_TIME = :all_time
416
+
417
+ # The spending limit applies per transaction.
418
+ PER_TRANSACTION = :per_transaction
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
428
+
429
+ # @!method self.values
430
+ # @return [Array<Symbol>]
431
+ end
432
+
433
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
434
+ # @!attribute code
435
+ # The Merchant Category Code (MCC).
436
+ #
437
+ # @return [String]
438
+ required :code, String
439
+
440
+ # @!method initialize(code:)
441
+ # @param code [String] The Merchant Category Code (MCC).
442
+ end
443
+ end
444
+ end
445
+
126
446
  # @see Increase::Models::Card#billing_address
127
447
  class BillingAddress < Increase::Internal::Type::BaseModel
128
448
  # @!attribute city