increase 1.278.2 → 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 +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/increase/models/card.rb +321 -1
- data/lib/increase/models/card_create_params.rb +313 -1
- data/lib/increase/models/card_update_params.rb +313 -1
- data/lib/increase/models/group.rb +1 -49
- data/lib/increase/resources/cards.rb +6 -2
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/card.rbi +776 -0
- data/rbi/increase/models/card_create_params.rbi +820 -0
- data/rbi/increase/models/card_update_params.rbi +820 -0
- data/rbi/increase/models/group.rbi +0 -65
- data/rbi/increase/resources/cards.rbi +8 -0
- data/sig/increase/models/card.rbs +239 -0
- data/sig/increase/models/card_create_params.rbs +291 -0
- data/sig/increase/models/card_update_params.rbs +291 -0
- data/sig/increase/models/group.rbs +1 -43
- data/sig/increase/resources/cards.rbs +2 -0
- metadata +2 -2
|
@@ -14,6 +14,18 @@ module Increase
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :account_id
|
|
16
16
|
|
|
17
|
+
# Controls that restrict how this card can be used.
|
|
18
|
+
sig { returns(T.nilable(Increase::Card::AuthorizationControls)) }
|
|
19
|
+
attr_reader :authorization_controls
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
authorization_controls:
|
|
24
|
+
T.nilable(Increase::Card::AuthorizationControls::OrHash)
|
|
25
|
+
).void
|
|
26
|
+
end
|
|
27
|
+
attr_writer :authorization_controls
|
|
28
|
+
|
|
17
29
|
# The Card's billing address.
|
|
18
30
|
sig { returns(Increase::Card::BillingAddress) }
|
|
19
31
|
attr_reader :billing_address
|
|
@@ -84,6 +96,8 @@ module Increase
|
|
|
84
96
|
params(
|
|
85
97
|
id: String,
|
|
86
98
|
account_id: String,
|
|
99
|
+
authorization_controls:
|
|
100
|
+
T.nilable(Increase::Card::AuthorizationControls::OrHash),
|
|
87
101
|
billing_address: Increase::Card::BillingAddress::OrHash,
|
|
88
102
|
created_at: Time,
|
|
89
103
|
description: T.nilable(String),
|
|
@@ -102,6 +116,8 @@ module Increase
|
|
|
102
116
|
id:,
|
|
103
117
|
# The identifier for the account this card belongs to.
|
|
104
118
|
account_id:,
|
|
119
|
+
# Controls that restrict how this card can be used.
|
|
120
|
+
authorization_controls:,
|
|
105
121
|
# The Card's billing address.
|
|
106
122
|
billing_address:,
|
|
107
123
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
@@ -138,6 +154,8 @@ module Increase
|
|
|
138
154
|
{
|
|
139
155
|
id: String,
|
|
140
156
|
account_id: String,
|
|
157
|
+
authorization_controls:
|
|
158
|
+
T.nilable(Increase::Card::AuthorizationControls),
|
|
141
159
|
billing_address: Increase::Card::BillingAddress,
|
|
142
160
|
created_at: Time,
|
|
143
161
|
description: T.nilable(String),
|
|
@@ -155,6 +173,764 @@ module Increase
|
|
|
155
173
|
def to_hash
|
|
156
174
|
end
|
|
157
175
|
|
|
176
|
+
class AuthorizationControls < Increase::Internal::Type::BaseModel
|
|
177
|
+
OrHash =
|
|
178
|
+
T.type_alias do
|
|
179
|
+
T.any(
|
|
180
|
+
Increase::Card::AuthorizationControls,
|
|
181
|
+
Increase::Internal::AnyHash
|
|
182
|
+
)
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Limits the number of authorizations that can be approved on this card.
|
|
186
|
+
sig do
|
|
187
|
+
returns(
|
|
188
|
+
T.nilable(
|
|
189
|
+
Increase::Card::AuthorizationControls::MaximumAuthorizationCount
|
|
190
|
+
)
|
|
191
|
+
)
|
|
192
|
+
end
|
|
193
|
+
attr_reader :maximum_authorization_count
|
|
194
|
+
|
|
195
|
+
sig do
|
|
196
|
+
params(
|
|
197
|
+
maximum_authorization_count:
|
|
198
|
+
T.nilable(
|
|
199
|
+
Increase::Card::AuthorizationControls::MaximumAuthorizationCount::OrHash
|
|
200
|
+
)
|
|
201
|
+
).void
|
|
202
|
+
end
|
|
203
|
+
attr_writer :maximum_authorization_count
|
|
204
|
+
|
|
205
|
+
# Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
|
|
206
|
+
# on this card.
|
|
207
|
+
sig do
|
|
208
|
+
returns(
|
|
209
|
+
T.nilable(
|
|
210
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier
|
|
211
|
+
)
|
|
212
|
+
)
|
|
213
|
+
end
|
|
214
|
+
attr_reader :merchant_acceptor_identifier
|
|
215
|
+
|
|
216
|
+
sig do
|
|
217
|
+
params(
|
|
218
|
+
merchant_acceptor_identifier:
|
|
219
|
+
T.nilable(
|
|
220
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::OrHash
|
|
221
|
+
)
|
|
222
|
+
).void
|
|
223
|
+
end
|
|
224
|
+
attr_writer :merchant_acceptor_identifier
|
|
225
|
+
|
|
226
|
+
# Restricts which Merchant Category Codes are allowed or blocked for
|
|
227
|
+
# authorizations on this card.
|
|
228
|
+
sig do
|
|
229
|
+
returns(
|
|
230
|
+
T.nilable(
|
|
231
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode
|
|
232
|
+
)
|
|
233
|
+
)
|
|
234
|
+
end
|
|
235
|
+
attr_reader :merchant_category_code
|
|
236
|
+
|
|
237
|
+
sig do
|
|
238
|
+
params(
|
|
239
|
+
merchant_category_code:
|
|
240
|
+
T.nilable(
|
|
241
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode::OrHash
|
|
242
|
+
)
|
|
243
|
+
).void
|
|
244
|
+
end
|
|
245
|
+
attr_writer :merchant_category_code
|
|
246
|
+
|
|
247
|
+
# Restricts which merchant countries are allowed or blocked for authorizations on
|
|
248
|
+
# this card.
|
|
249
|
+
sig do
|
|
250
|
+
returns(
|
|
251
|
+
T.nilable(Increase::Card::AuthorizationControls::MerchantCountry)
|
|
252
|
+
)
|
|
253
|
+
end
|
|
254
|
+
attr_reader :merchant_country
|
|
255
|
+
|
|
256
|
+
sig do
|
|
257
|
+
params(
|
|
258
|
+
merchant_country:
|
|
259
|
+
T.nilable(
|
|
260
|
+
Increase::Card::AuthorizationControls::MerchantCountry::OrHash
|
|
261
|
+
)
|
|
262
|
+
).void
|
|
263
|
+
end
|
|
264
|
+
attr_writer :merchant_country
|
|
265
|
+
|
|
266
|
+
# Spending limits for this card. The most restrictive limit is applied if multiple
|
|
267
|
+
# limits match.
|
|
268
|
+
sig do
|
|
269
|
+
returns(
|
|
270
|
+
T.nilable(
|
|
271
|
+
T::Array[Increase::Card::AuthorizationControls::SpendingLimit]
|
|
272
|
+
)
|
|
273
|
+
)
|
|
274
|
+
end
|
|
275
|
+
attr_accessor :spending_limits
|
|
276
|
+
|
|
277
|
+
# Controls that restrict how this card can be used.
|
|
278
|
+
sig do
|
|
279
|
+
params(
|
|
280
|
+
maximum_authorization_count:
|
|
281
|
+
T.nilable(
|
|
282
|
+
Increase::Card::AuthorizationControls::MaximumAuthorizationCount::OrHash
|
|
283
|
+
),
|
|
284
|
+
merchant_acceptor_identifier:
|
|
285
|
+
T.nilable(
|
|
286
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::OrHash
|
|
287
|
+
),
|
|
288
|
+
merchant_category_code:
|
|
289
|
+
T.nilable(
|
|
290
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode::OrHash
|
|
291
|
+
),
|
|
292
|
+
merchant_country:
|
|
293
|
+
T.nilable(
|
|
294
|
+
Increase::Card::AuthorizationControls::MerchantCountry::OrHash
|
|
295
|
+
),
|
|
296
|
+
spending_limits:
|
|
297
|
+
T.nilable(
|
|
298
|
+
T::Array[
|
|
299
|
+
Increase::Card::AuthorizationControls::SpendingLimit::OrHash
|
|
300
|
+
]
|
|
301
|
+
)
|
|
302
|
+
).returns(T.attached_class)
|
|
303
|
+
end
|
|
304
|
+
def self.new(
|
|
305
|
+
# Limits the number of authorizations that can be approved on this card.
|
|
306
|
+
maximum_authorization_count:,
|
|
307
|
+
# Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
|
|
308
|
+
# on this card.
|
|
309
|
+
merchant_acceptor_identifier:,
|
|
310
|
+
# Restricts which Merchant Category Codes are allowed or blocked for
|
|
311
|
+
# authorizations on this card.
|
|
312
|
+
merchant_category_code:,
|
|
313
|
+
# Restricts which merchant countries are allowed or blocked for authorizations on
|
|
314
|
+
# this card.
|
|
315
|
+
merchant_country:,
|
|
316
|
+
# Spending limits for this card. The most restrictive limit is applied if multiple
|
|
317
|
+
# limits match.
|
|
318
|
+
spending_limits:
|
|
319
|
+
)
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
sig do
|
|
323
|
+
override.returns(
|
|
324
|
+
{
|
|
325
|
+
maximum_authorization_count:
|
|
326
|
+
T.nilable(
|
|
327
|
+
Increase::Card::AuthorizationControls::MaximumAuthorizationCount
|
|
328
|
+
),
|
|
329
|
+
merchant_acceptor_identifier:
|
|
330
|
+
T.nilable(
|
|
331
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier
|
|
332
|
+
),
|
|
333
|
+
merchant_category_code:
|
|
334
|
+
T.nilable(
|
|
335
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode
|
|
336
|
+
),
|
|
337
|
+
merchant_country:
|
|
338
|
+
T.nilable(
|
|
339
|
+
Increase::Card::AuthorizationControls::MerchantCountry
|
|
340
|
+
),
|
|
341
|
+
spending_limits:
|
|
342
|
+
T.nilable(
|
|
343
|
+
T::Array[Increase::Card::AuthorizationControls::SpendingLimit]
|
|
344
|
+
)
|
|
345
|
+
}
|
|
346
|
+
)
|
|
347
|
+
end
|
|
348
|
+
def to_hash
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
class MaximumAuthorizationCount < Increase::Internal::Type::BaseModel
|
|
352
|
+
OrHash =
|
|
353
|
+
T.type_alias do
|
|
354
|
+
T.any(
|
|
355
|
+
Increase::Card::AuthorizationControls::MaximumAuthorizationCount,
|
|
356
|
+
Increase::Internal::AnyHash
|
|
357
|
+
)
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# The maximum number of authorizations that can be approved on this card over its
|
|
361
|
+
# lifetime.
|
|
362
|
+
sig { returns(T.nilable(Integer)) }
|
|
363
|
+
attr_accessor :all_time
|
|
364
|
+
|
|
365
|
+
# Limits the number of authorizations that can be approved on this card.
|
|
366
|
+
sig { params(all_time: T.nilable(Integer)).returns(T.attached_class) }
|
|
367
|
+
def self.new(
|
|
368
|
+
# The maximum number of authorizations that can be approved on this card over its
|
|
369
|
+
# lifetime.
|
|
370
|
+
all_time:
|
|
371
|
+
)
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
sig { override.returns({ all_time: T.nilable(Integer) }) }
|
|
375
|
+
def to_hash
|
|
376
|
+
end
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
|
|
380
|
+
OrHash =
|
|
381
|
+
T.type_alias do
|
|
382
|
+
T.any(
|
|
383
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier,
|
|
384
|
+
Increase::Internal::AnyHash
|
|
385
|
+
)
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# The Merchant Acceptor IDs that are allowed for authorizations on this card.
|
|
389
|
+
sig do
|
|
390
|
+
returns(
|
|
391
|
+
T.nilable(
|
|
392
|
+
T::Array[
|
|
393
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Allowed
|
|
394
|
+
]
|
|
395
|
+
)
|
|
396
|
+
)
|
|
397
|
+
end
|
|
398
|
+
attr_accessor :allowed
|
|
399
|
+
|
|
400
|
+
# The Merchant Acceptor IDs that are blocked for authorizations on this card.
|
|
401
|
+
sig do
|
|
402
|
+
returns(
|
|
403
|
+
T.nilable(
|
|
404
|
+
T::Array[
|
|
405
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Blocked
|
|
406
|
+
]
|
|
407
|
+
)
|
|
408
|
+
)
|
|
409
|
+
end
|
|
410
|
+
attr_accessor :blocked
|
|
411
|
+
|
|
412
|
+
# Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
|
|
413
|
+
# on this card.
|
|
414
|
+
sig do
|
|
415
|
+
params(
|
|
416
|
+
allowed:
|
|
417
|
+
T.nilable(
|
|
418
|
+
T::Array[
|
|
419
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Allowed::OrHash
|
|
420
|
+
]
|
|
421
|
+
),
|
|
422
|
+
blocked:
|
|
423
|
+
T.nilable(
|
|
424
|
+
T::Array[
|
|
425
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Blocked::OrHash
|
|
426
|
+
]
|
|
427
|
+
)
|
|
428
|
+
).returns(T.attached_class)
|
|
429
|
+
end
|
|
430
|
+
def self.new(
|
|
431
|
+
# The Merchant Acceptor IDs that are allowed for authorizations on this card.
|
|
432
|
+
allowed:,
|
|
433
|
+
# The Merchant Acceptor IDs that are blocked for authorizations on this card.
|
|
434
|
+
blocked:
|
|
435
|
+
)
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
sig do
|
|
439
|
+
override.returns(
|
|
440
|
+
{
|
|
441
|
+
allowed:
|
|
442
|
+
T.nilable(
|
|
443
|
+
T::Array[
|
|
444
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Allowed
|
|
445
|
+
]
|
|
446
|
+
),
|
|
447
|
+
blocked:
|
|
448
|
+
T.nilable(
|
|
449
|
+
T::Array[
|
|
450
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Blocked
|
|
451
|
+
]
|
|
452
|
+
)
|
|
453
|
+
}
|
|
454
|
+
)
|
|
455
|
+
end
|
|
456
|
+
def to_hash
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
class Allowed < Increase::Internal::Type::BaseModel
|
|
460
|
+
OrHash =
|
|
461
|
+
T.type_alias do
|
|
462
|
+
T.any(
|
|
463
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Allowed,
|
|
464
|
+
Increase::Internal::AnyHash
|
|
465
|
+
)
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
# The Merchant Acceptor ID.
|
|
469
|
+
sig { returns(String) }
|
|
470
|
+
attr_accessor :identifier
|
|
471
|
+
|
|
472
|
+
sig { params(identifier: String).returns(T.attached_class) }
|
|
473
|
+
def self.new(
|
|
474
|
+
# The Merchant Acceptor ID.
|
|
475
|
+
identifier:
|
|
476
|
+
)
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
sig { override.returns({ identifier: String }) }
|
|
480
|
+
def to_hash
|
|
481
|
+
end
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
class Blocked < Increase::Internal::Type::BaseModel
|
|
485
|
+
OrHash =
|
|
486
|
+
T.type_alias do
|
|
487
|
+
T.any(
|
|
488
|
+
Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Blocked,
|
|
489
|
+
Increase::Internal::AnyHash
|
|
490
|
+
)
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# The Merchant Acceptor ID.
|
|
494
|
+
sig { returns(String) }
|
|
495
|
+
attr_accessor :identifier
|
|
496
|
+
|
|
497
|
+
sig { params(identifier: String).returns(T.attached_class) }
|
|
498
|
+
def self.new(
|
|
499
|
+
# The Merchant Acceptor ID.
|
|
500
|
+
identifier:
|
|
501
|
+
)
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
sig { override.returns({ identifier: String }) }
|
|
505
|
+
def to_hash
|
|
506
|
+
end
|
|
507
|
+
end
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
class MerchantCategoryCode < Increase::Internal::Type::BaseModel
|
|
511
|
+
OrHash =
|
|
512
|
+
T.type_alias do
|
|
513
|
+
T.any(
|
|
514
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode,
|
|
515
|
+
Increase::Internal::AnyHash
|
|
516
|
+
)
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
# The Merchant Category Codes that are allowed for authorizations on this card.
|
|
520
|
+
sig do
|
|
521
|
+
returns(
|
|
522
|
+
T.nilable(
|
|
523
|
+
T::Array[
|
|
524
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode::Allowed
|
|
525
|
+
]
|
|
526
|
+
)
|
|
527
|
+
)
|
|
528
|
+
end
|
|
529
|
+
attr_accessor :allowed
|
|
530
|
+
|
|
531
|
+
# The Merchant Category Codes that are blocked for authorizations on this card.
|
|
532
|
+
sig do
|
|
533
|
+
returns(
|
|
534
|
+
T.nilable(
|
|
535
|
+
T::Array[
|
|
536
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode::Blocked
|
|
537
|
+
]
|
|
538
|
+
)
|
|
539
|
+
)
|
|
540
|
+
end
|
|
541
|
+
attr_accessor :blocked
|
|
542
|
+
|
|
543
|
+
# Restricts which Merchant Category Codes are allowed or blocked for
|
|
544
|
+
# authorizations on this card.
|
|
545
|
+
sig do
|
|
546
|
+
params(
|
|
547
|
+
allowed:
|
|
548
|
+
T.nilable(
|
|
549
|
+
T::Array[
|
|
550
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode::Allowed::OrHash
|
|
551
|
+
]
|
|
552
|
+
),
|
|
553
|
+
blocked:
|
|
554
|
+
T.nilable(
|
|
555
|
+
T::Array[
|
|
556
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode::Blocked::OrHash
|
|
557
|
+
]
|
|
558
|
+
)
|
|
559
|
+
).returns(T.attached_class)
|
|
560
|
+
end
|
|
561
|
+
def self.new(
|
|
562
|
+
# The Merchant Category Codes that are allowed for authorizations on this card.
|
|
563
|
+
allowed:,
|
|
564
|
+
# The Merchant Category Codes that are blocked for authorizations on this card.
|
|
565
|
+
blocked:
|
|
566
|
+
)
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
sig do
|
|
570
|
+
override.returns(
|
|
571
|
+
{
|
|
572
|
+
allowed:
|
|
573
|
+
T.nilable(
|
|
574
|
+
T::Array[
|
|
575
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode::Allowed
|
|
576
|
+
]
|
|
577
|
+
),
|
|
578
|
+
blocked:
|
|
579
|
+
T.nilable(
|
|
580
|
+
T::Array[
|
|
581
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode::Blocked
|
|
582
|
+
]
|
|
583
|
+
)
|
|
584
|
+
}
|
|
585
|
+
)
|
|
586
|
+
end
|
|
587
|
+
def to_hash
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
class Allowed < Increase::Internal::Type::BaseModel
|
|
591
|
+
OrHash =
|
|
592
|
+
T.type_alias do
|
|
593
|
+
T.any(
|
|
594
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode::Allowed,
|
|
595
|
+
Increase::Internal::AnyHash
|
|
596
|
+
)
|
|
597
|
+
end
|
|
598
|
+
|
|
599
|
+
# The Merchant Category Code (MCC).
|
|
600
|
+
sig { returns(String) }
|
|
601
|
+
attr_accessor :code
|
|
602
|
+
|
|
603
|
+
sig { params(code: String).returns(T.attached_class) }
|
|
604
|
+
def self.new(
|
|
605
|
+
# The Merchant Category Code (MCC).
|
|
606
|
+
code:
|
|
607
|
+
)
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
sig { override.returns({ code: String }) }
|
|
611
|
+
def to_hash
|
|
612
|
+
end
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
class Blocked < Increase::Internal::Type::BaseModel
|
|
616
|
+
OrHash =
|
|
617
|
+
T.type_alias do
|
|
618
|
+
T.any(
|
|
619
|
+
Increase::Card::AuthorizationControls::MerchantCategoryCode::Blocked,
|
|
620
|
+
Increase::Internal::AnyHash
|
|
621
|
+
)
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
# The Merchant Category Code (MCC).
|
|
625
|
+
sig { returns(String) }
|
|
626
|
+
attr_accessor :code
|
|
627
|
+
|
|
628
|
+
sig { params(code: String).returns(T.attached_class) }
|
|
629
|
+
def self.new(
|
|
630
|
+
# The Merchant Category Code (MCC).
|
|
631
|
+
code:
|
|
632
|
+
)
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
sig { override.returns({ code: String }) }
|
|
636
|
+
def to_hash
|
|
637
|
+
end
|
|
638
|
+
end
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
class MerchantCountry < Increase::Internal::Type::BaseModel
|
|
642
|
+
OrHash =
|
|
643
|
+
T.type_alias do
|
|
644
|
+
T.any(
|
|
645
|
+
Increase::Card::AuthorizationControls::MerchantCountry,
|
|
646
|
+
Increase::Internal::AnyHash
|
|
647
|
+
)
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
# The merchant countries that are allowed for authorizations on this card.
|
|
651
|
+
sig do
|
|
652
|
+
returns(
|
|
653
|
+
T.nilable(
|
|
654
|
+
T::Array[
|
|
655
|
+
Increase::Card::AuthorizationControls::MerchantCountry::Allowed
|
|
656
|
+
]
|
|
657
|
+
)
|
|
658
|
+
)
|
|
659
|
+
end
|
|
660
|
+
attr_accessor :allowed
|
|
661
|
+
|
|
662
|
+
# The merchant countries that are blocked for authorizations on this card.
|
|
663
|
+
sig do
|
|
664
|
+
returns(
|
|
665
|
+
T.nilable(
|
|
666
|
+
T::Array[
|
|
667
|
+
Increase::Card::AuthorizationControls::MerchantCountry::Blocked
|
|
668
|
+
]
|
|
669
|
+
)
|
|
670
|
+
)
|
|
671
|
+
end
|
|
672
|
+
attr_accessor :blocked
|
|
673
|
+
|
|
674
|
+
# Restricts which merchant countries are allowed or blocked for authorizations on
|
|
675
|
+
# this card.
|
|
676
|
+
sig do
|
|
677
|
+
params(
|
|
678
|
+
allowed:
|
|
679
|
+
T.nilable(
|
|
680
|
+
T::Array[
|
|
681
|
+
Increase::Card::AuthorizationControls::MerchantCountry::Allowed::OrHash
|
|
682
|
+
]
|
|
683
|
+
),
|
|
684
|
+
blocked:
|
|
685
|
+
T.nilable(
|
|
686
|
+
T::Array[
|
|
687
|
+
Increase::Card::AuthorizationControls::MerchantCountry::Blocked::OrHash
|
|
688
|
+
]
|
|
689
|
+
)
|
|
690
|
+
).returns(T.attached_class)
|
|
691
|
+
end
|
|
692
|
+
def self.new(
|
|
693
|
+
# The merchant countries that are allowed for authorizations on this card.
|
|
694
|
+
allowed:,
|
|
695
|
+
# The merchant countries that are blocked for authorizations on this card.
|
|
696
|
+
blocked:
|
|
697
|
+
)
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
sig do
|
|
701
|
+
override.returns(
|
|
702
|
+
{
|
|
703
|
+
allowed:
|
|
704
|
+
T.nilable(
|
|
705
|
+
T::Array[
|
|
706
|
+
Increase::Card::AuthorizationControls::MerchantCountry::Allowed
|
|
707
|
+
]
|
|
708
|
+
),
|
|
709
|
+
blocked:
|
|
710
|
+
T.nilable(
|
|
711
|
+
T::Array[
|
|
712
|
+
Increase::Card::AuthorizationControls::MerchantCountry::Blocked
|
|
713
|
+
]
|
|
714
|
+
)
|
|
715
|
+
}
|
|
716
|
+
)
|
|
717
|
+
end
|
|
718
|
+
def to_hash
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
class Allowed < Increase::Internal::Type::BaseModel
|
|
722
|
+
OrHash =
|
|
723
|
+
T.type_alias do
|
|
724
|
+
T.any(
|
|
725
|
+
Increase::Card::AuthorizationControls::MerchantCountry::Allowed,
|
|
726
|
+
Increase::Internal::AnyHash
|
|
727
|
+
)
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
# The ISO 3166-1 alpha-2 country code.
|
|
731
|
+
sig { returns(String) }
|
|
732
|
+
attr_accessor :country
|
|
733
|
+
|
|
734
|
+
sig { params(country: String).returns(T.attached_class) }
|
|
735
|
+
def self.new(
|
|
736
|
+
# The ISO 3166-1 alpha-2 country code.
|
|
737
|
+
country:
|
|
738
|
+
)
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
sig { override.returns({ country: String }) }
|
|
742
|
+
def to_hash
|
|
743
|
+
end
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
class Blocked < Increase::Internal::Type::BaseModel
|
|
747
|
+
OrHash =
|
|
748
|
+
T.type_alias do
|
|
749
|
+
T.any(
|
|
750
|
+
Increase::Card::AuthorizationControls::MerchantCountry::Blocked,
|
|
751
|
+
Increase::Internal::AnyHash
|
|
752
|
+
)
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
# The ISO 3166-1 alpha-2 country code.
|
|
756
|
+
sig { returns(String) }
|
|
757
|
+
attr_accessor :country
|
|
758
|
+
|
|
759
|
+
sig { params(country: String).returns(T.attached_class) }
|
|
760
|
+
def self.new(
|
|
761
|
+
# The ISO 3166-1 alpha-2 country code.
|
|
762
|
+
country:
|
|
763
|
+
)
|
|
764
|
+
end
|
|
765
|
+
|
|
766
|
+
sig { override.returns({ country: String }) }
|
|
767
|
+
def to_hash
|
|
768
|
+
end
|
|
769
|
+
end
|
|
770
|
+
end
|
|
771
|
+
|
|
772
|
+
class SpendingLimit < Increase::Internal::Type::BaseModel
|
|
773
|
+
OrHash =
|
|
774
|
+
T.type_alias do
|
|
775
|
+
T.any(
|
|
776
|
+
Increase::Card::AuthorizationControls::SpendingLimit,
|
|
777
|
+
Increase::Internal::AnyHash
|
|
778
|
+
)
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
# The interval at which the spending limit is enforced.
|
|
782
|
+
sig do
|
|
783
|
+
returns(
|
|
784
|
+
Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
|
|
785
|
+
)
|
|
786
|
+
end
|
|
787
|
+
attr_accessor :interval
|
|
788
|
+
|
|
789
|
+
# The Merchant Category Codes (MCCs) this spending limit applies to. If not set,
|
|
790
|
+
# the limit applies to all transactions.
|
|
791
|
+
sig do
|
|
792
|
+
returns(
|
|
793
|
+
T.nilable(
|
|
794
|
+
T::Array[
|
|
795
|
+
Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode
|
|
796
|
+
]
|
|
797
|
+
)
|
|
798
|
+
)
|
|
799
|
+
end
|
|
800
|
+
attr_accessor :merchant_category_codes
|
|
801
|
+
|
|
802
|
+
# The maximum settlement amount permitted in the given interval.
|
|
803
|
+
sig { returns(Integer) }
|
|
804
|
+
attr_accessor :settlement_amount
|
|
805
|
+
|
|
806
|
+
sig do
|
|
807
|
+
params(
|
|
808
|
+
interval:
|
|
809
|
+
Increase::Card::AuthorizationControls::SpendingLimit::Interval::OrSymbol,
|
|
810
|
+
merchant_category_codes:
|
|
811
|
+
T.nilable(
|
|
812
|
+
T::Array[
|
|
813
|
+
Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode::OrHash
|
|
814
|
+
]
|
|
815
|
+
),
|
|
816
|
+
settlement_amount: Integer
|
|
817
|
+
).returns(T.attached_class)
|
|
818
|
+
end
|
|
819
|
+
def self.new(
|
|
820
|
+
# The interval at which the spending limit is enforced.
|
|
821
|
+
interval:,
|
|
822
|
+
# The Merchant Category Codes (MCCs) this spending limit applies to. If not set,
|
|
823
|
+
# the limit applies to all transactions.
|
|
824
|
+
merchant_category_codes:,
|
|
825
|
+
# The maximum settlement amount permitted in the given interval.
|
|
826
|
+
settlement_amount:
|
|
827
|
+
)
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
sig do
|
|
831
|
+
override.returns(
|
|
832
|
+
{
|
|
833
|
+
interval:
|
|
834
|
+
Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol,
|
|
835
|
+
merchant_category_codes:
|
|
836
|
+
T.nilable(
|
|
837
|
+
T::Array[
|
|
838
|
+
Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode
|
|
839
|
+
]
|
|
840
|
+
),
|
|
841
|
+
settlement_amount: Integer
|
|
842
|
+
}
|
|
843
|
+
)
|
|
844
|
+
end
|
|
845
|
+
def to_hash
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
# The interval at which the spending limit is enforced.
|
|
849
|
+
module Interval
|
|
850
|
+
extend Increase::Internal::Type::Enum
|
|
851
|
+
|
|
852
|
+
TaggedSymbol =
|
|
853
|
+
T.type_alias do
|
|
854
|
+
T.all(
|
|
855
|
+
Symbol,
|
|
856
|
+
Increase::Card::AuthorizationControls::SpendingLimit::Interval
|
|
857
|
+
)
|
|
858
|
+
end
|
|
859
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
860
|
+
|
|
861
|
+
# The spending limit applies over the lifetime of the card.
|
|
862
|
+
ALL_TIME =
|
|
863
|
+
T.let(
|
|
864
|
+
:all_time,
|
|
865
|
+
Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
|
|
866
|
+
)
|
|
867
|
+
|
|
868
|
+
# The spending limit applies per transaction.
|
|
869
|
+
PER_TRANSACTION =
|
|
870
|
+
T.let(
|
|
871
|
+
:per_transaction,
|
|
872
|
+
Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
|
|
873
|
+
)
|
|
874
|
+
|
|
875
|
+
# The spending limit applies per day. Resets nightly at midnight UTC.
|
|
876
|
+
PER_DAY =
|
|
877
|
+
T.let(
|
|
878
|
+
:per_day,
|
|
879
|
+
Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
|
|
880
|
+
)
|
|
881
|
+
|
|
882
|
+
# The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
|
|
883
|
+
PER_WEEK =
|
|
884
|
+
T.let(
|
|
885
|
+
:per_week,
|
|
886
|
+
Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
|
|
887
|
+
)
|
|
888
|
+
|
|
889
|
+
# The spending limit applies per month. Resets on the first of the month, midnight UTC.
|
|
890
|
+
PER_MONTH =
|
|
891
|
+
T.let(
|
|
892
|
+
:per_month,
|
|
893
|
+
Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
|
|
894
|
+
)
|
|
895
|
+
|
|
896
|
+
sig do
|
|
897
|
+
override.returns(
|
|
898
|
+
T::Array[
|
|
899
|
+
Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
|
|
900
|
+
]
|
|
901
|
+
)
|
|
902
|
+
end
|
|
903
|
+
def self.values
|
|
904
|
+
end
|
|
905
|
+
end
|
|
906
|
+
|
|
907
|
+
class MerchantCategoryCode < Increase::Internal::Type::BaseModel
|
|
908
|
+
OrHash =
|
|
909
|
+
T.type_alias do
|
|
910
|
+
T.any(
|
|
911
|
+
Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode,
|
|
912
|
+
Increase::Internal::AnyHash
|
|
913
|
+
)
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
# The Merchant Category Code (MCC).
|
|
917
|
+
sig { returns(String) }
|
|
918
|
+
attr_accessor :code
|
|
919
|
+
|
|
920
|
+
sig { params(code: String).returns(T.attached_class) }
|
|
921
|
+
def self.new(
|
|
922
|
+
# The Merchant Category Code (MCC).
|
|
923
|
+
code:
|
|
924
|
+
)
|
|
925
|
+
end
|
|
926
|
+
|
|
927
|
+
sig { override.returns({ code: String }) }
|
|
928
|
+
def to_hash
|
|
929
|
+
end
|
|
930
|
+
end
|
|
931
|
+
end
|
|
932
|
+
end
|
|
933
|
+
|
|
158
934
|
class BillingAddress < Increase::Internal::Type::BaseModel
|
|
159
935
|
OrHash =
|
|
160
936
|
T.type_alias do
|