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