increase 1.279.0 → 1.282.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.
@@ -3,6 +3,7 @@ module Increase
3
3
  type card_update_params =
4
4
  {
5
5
  card_id: String,
6
+ authorization_controls: Increase::CardUpdateParams::AuthorizationControls,
6
7
  billing_address: Increase::CardUpdateParams::BillingAddress,
7
8
  description: String,
8
9
  digital_wallet: Increase::CardUpdateParams::DigitalWallet,
@@ -17,6 +18,12 @@ module Increase
17
18
 
18
19
  attr_accessor card_id: String
19
20
 
21
+ attr_reader authorization_controls: Increase::CardUpdateParams::AuthorizationControls?
22
+
23
+ def authorization_controls=: (
24
+ Increase::CardUpdateParams::AuthorizationControls
25
+ ) -> Increase::CardUpdateParams::AuthorizationControls
26
+
20
27
  attr_reader billing_address: Increase::CardUpdateParams::BillingAddress?
21
28
 
22
29
  def billing_address=: (
@@ -45,6 +52,7 @@ module Increase
45
52
 
46
53
  def initialize: (
47
54
  card_id: String,
55
+ ?authorization_controls: Increase::CardUpdateParams::AuthorizationControls,
48
56
  ?billing_address: Increase::CardUpdateParams::BillingAddress,
49
57
  ?description: String,
50
58
  ?digital_wallet: Increase::CardUpdateParams::DigitalWallet,
@@ -55,6 +63,7 @@ module Increase
55
63
 
56
64
  def to_hash: -> {
57
65
  card_id: String,
66
+ authorization_controls: Increase::CardUpdateParams::AuthorizationControls,
58
67
  billing_address: Increase::CardUpdateParams::BillingAddress,
59
68
  description: String,
60
69
  digital_wallet: Increase::CardUpdateParams::DigitalWallet,
@@ -63,6 +72,288 @@ module Increase
63
72
  request_options: Increase::RequestOptions
64
73
  }
65
74
 
75
+ type authorization_controls =
76
+ {
77
+ maximum_authorization_count: Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount,
78
+ merchant_acceptor_identifier: Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier,
79
+ merchant_category_code: Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode,
80
+ merchant_country: Increase::CardUpdateParams::AuthorizationControls::MerchantCountry,
81
+ spending_limits: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]
82
+ }
83
+
84
+ class AuthorizationControls < Increase::Internal::Type::BaseModel
85
+ attr_reader maximum_authorization_count: Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount?
86
+
87
+ def maximum_authorization_count=: (
88
+ Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount
89
+ ) -> Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount
90
+
91
+ attr_reader merchant_acceptor_identifier: Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier?
92
+
93
+ def merchant_acceptor_identifier=: (
94
+ Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier
95
+ ) -> Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier
96
+
97
+ attr_reader merchant_category_code: Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode?
98
+
99
+ def merchant_category_code=: (
100
+ Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode
101
+ ) -> Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode
102
+
103
+ attr_reader merchant_country: Increase::CardUpdateParams::AuthorizationControls::MerchantCountry?
104
+
105
+ def merchant_country=: (
106
+ Increase::CardUpdateParams::AuthorizationControls::MerchantCountry
107
+ ) -> Increase::CardUpdateParams::AuthorizationControls::MerchantCountry
108
+
109
+ attr_reader spending_limits: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]?
110
+
111
+ def spending_limits=: (
112
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]
113
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]
114
+
115
+ def initialize: (
116
+ ?maximum_authorization_count: Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount,
117
+ ?merchant_acceptor_identifier: Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier,
118
+ ?merchant_category_code: Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode,
119
+ ?merchant_country: Increase::CardUpdateParams::AuthorizationControls::MerchantCountry,
120
+ ?spending_limits: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]
121
+ ) -> void
122
+
123
+ def to_hash: -> {
124
+ maximum_authorization_count: Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount,
125
+ merchant_acceptor_identifier: Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier,
126
+ merchant_category_code: Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode,
127
+ merchant_country: Increase::CardUpdateParams::AuthorizationControls::MerchantCountry,
128
+ spending_limits: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]
129
+ }
130
+
131
+ type maximum_authorization_count = { all_time: Integer }
132
+
133
+ class MaximumAuthorizationCount < Increase::Internal::Type::BaseModel
134
+ attr_accessor all_time: Integer
135
+
136
+ def initialize: (all_time: Integer) -> void
137
+
138
+ def to_hash: -> { all_time: Integer }
139
+ end
140
+
141
+ type merchant_acceptor_identifier =
142
+ {
143
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed],
144
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
145
+ }
146
+
147
+ class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
148
+ attr_reader allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]?
149
+
150
+ def allowed=: (
151
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]
152
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]
153
+
154
+ attr_reader blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]?
155
+
156
+ def blocked=: (
157
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
158
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
159
+
160
+ def initialize: (
161
+ ?allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed],
162
+ ?blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
163
+ ) -> void
164
+
165
+ def to_hash: -> {
166
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed],
167
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
168
+ }
169
+
170
+ type allowed = { identifier: String }
171
+
172
+ class Allowed < Increase::Internal::Type::BaseModel
173
+ attr_accessor identifier: String
174
+
175
+ def initialize: (identifier: String) -> void
176
+
177
+ def to_hash: -> { identifier: String }
178
+ end
179
+
180
+ type blocked = { identifier: String }
181
+
182
+ class Blocked < Increase::Internal::Type::BaseModel
183
+ attr_accessor identifier: String
184
+
185
+ def initialize: (identifier: String) -> void
186
+
187
+ def to_hash: -> { identifier: String }
188
+ end
189
+ end
190
+
191
+ type merchant_category_code =
192
+ {
193
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed],
194
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
195
+ }
196
+
197
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
198
+ attr_reader allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed]?
199
+
200
+ def allowed=: (
201
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed]
202
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed]
203
+
204
+ attr_reader blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]?
205
+
206
+ def blocked=: (
207
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
208
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
209
+
210
+ def initialize: (
211
+ ?allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed],
212
+ ?blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
213
+ ) -> void
214
+
215
+ def to_hash: -> {
216
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed],
217
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
218
+ }
219
+
220
+ type allowed = { code: String }
221
+
222
+ class Allowed < Increase::Internal::Type::BaseModel
223
+ attr_accessor code: String
224
+
225
+ def initialize: (code: String) -> void
226
+
227
+ def to_hash: -> { code: String }
228
+ end
229
+
230
+ type blocked = { code: String }
231
+
232
+ class Blocked < Increase::Internal::Type::BaseModel
233
+ attr_accessor code: String
234
+
235
+ def initialize: (code: String) -> void
236
+
237
+ def to_hash: -> { code: String }
238
+ end
239
+ end
240
+
241
+ type merchant_country =
242
+ {
243
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed],
244
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]
245
+ }
246
+
247
+ class MerchantCountry < Increase::Internal::Type::BaseModel
248
+ attr_reader allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed]?
249
+
250
+ def allowed=: (
251
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed]
252
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed]
253
+
254
+ attr_reader blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]?
255
+
256
+ def blocked=: (
257
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]
258
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]
259
+
260
+ def initialize: (
261
+ ?allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed],
262
+ ?blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]
263
+ ) -> void
264
+
265
+ def to_hash: -> {
266
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed],
267
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]
268
+ }
269
+
270
+ type allowed = { country: String }
271
+
272
+ class Allowed < Increase::Internal::Type::BaseModel
273
+ attr_accessor country: String
274
+
275
+ def initialize: (country: String) -> void
276
+
277
+ def to_hash: -> { country: String }
278
+ end
279
+
280
+ type blocked = { country: String }
281
+
282
+ class Blocked < Increase::Internal::Type::BaseModel
283
+ attr_accessor country: String
284
+
285
+ def initialize: (country: String) -> void
286
+
287
+ def to_hash: -> { country: String }
288
+ end
289
+ end
290
+
291
+ type spending_limit =
292
+ {
293
+ interval: Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::interval,
294
+ settlement_amount: Integer,
295
+ merchant_category_codes: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
296
+ }
297
+
298
+ class SpendingLimit < Increase::Internal::Type::BaseModel
299
+ attr_accessor interval: Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::interval
300
+
301
+ attr_accessor settlement_amount: Integer
302
+
303
+ attr_reader merchant_category_codes: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]?
304
+
305
+ def merchant_category_codes=: (
306
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
307
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
308
+
309
+ def initialize: (
310
+ interval: Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::interval,
311
+ settlement_amount: Integer,
312
+ ?merchant_category_codes: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
313
+ ) -> void
314
+
315
+ def to_hash: -> {
316
+ interval: Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::interval,
317
+ settlement_amount: Integer,
318
+ merchant_category_codes: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
319
+ }
320
+
321
+ type interval =
322
+ :all_time | :per_transaction | :per_day | :per_week | :per_month
323
+
324
+ module Interval
325
+ extend Increase::Internal::Type::Enum
326
+
327
+ # The spending limit applies over the lifetime of the card.
328
+ ALL_TIME: :all_time
329
+
330
+ # The spending limit applies per transaction.
331
+ PER_TRANSACTION: :per_transaction
332
+
333
+ # The spending limit applies per day. Resets nightly at midnight UTC.
334
+ PER_DAY: :per_day
335
+
336
+ # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
337
+ PER_WEEK: :per_week
338
+
339
+ # The spending limit applies per month. Resets on the first of the month, midnight UTC.
340
+ PER_MONTH: :per_month
341
+
342
+ def self?.values: -> ::Array[Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::interval]
343
+ end
344
+
345
+ type merchant_category_code = { code: String }
346
+
347
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
348
+ attr_accessor code: String
349
+
350
+ def initialize: (code: String) -> void
351
+
352
+ def to_hash: -> { code: String }
353
+ end
354
+ end
355
+ end
356
+
66
357
  type billing_address =
67
358
  {
68
359
  city: String,
@@ -3,6 +3,7 @@ module Increase
3
3
  class Cards
4
4
  def create: (
5
5
  account_id: String,
6
+ ?authorization_controls: Increase::CardCreateParams::AuthorizationControls,
6
7
  ?billing_address: Increase::CardCreateParams::BillingAddress,
7
8
  ?description: String,
8
9
  ?digital_wallet: Increase::CardCreateParams::DigitalWallet,
@@ -17,6 +18,7 @@ module Increase
17
18
 
18
19
  def update: (
19
20
  String card_id,
21
+ ?authorization_controls: Increase::CardUpdateParams::AuthorizationControls,
20
22
  ?billing_address: Increase::CardUpdateParams::BillingAddress,
21
23
  ?description: String,
22
24
  ?digital_wallet: Increase::CardUpdateParams::DigitalWallet,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.279.0
4
+ version: 1.282.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-02 00:00:00.000000000 Z
11
+ date: 2026-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi