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.
@@ -88,10 +88,11 @@ module Increase
88
88
  sig { returns(Increase::Card::Type::TaggedSymbol) }
89
89
  attr_accessor :type
90
90
 
91
- # Cards are commercial credit cards. They'll immediately work for online purchases
92
- # after you create them. All cards maintain a credit limit of 100% of the
93
- # Account’s available balance at the time of transaction. Funds are deducted from
94
- # the Account upon transaction settlement.
91
+ # Cards may operate on credit, debit or prepaid BINs. Theyll immediately work for
92
+ # online purchases after you create them. All cards work on a good funds model,
93
+ # and maintain a maximum limit of 100% of the Account’s available balance at the
94
+ # time of transaction. Funds are deducted from the Account upon transaction
95
+ # settlement.
95
96
  sig do
96
97
  params(
97
98
  id: String,
@@ -182,26 +183,6 @@ module Increase
182
183
  )
183
184
  end
184
185
 
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
186
  # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
206
187
  # on this card.
207
188
  sig do
@@ -263,24 +244,21 @@ module Increase
263
244
  end
264
245
  attr_writer :merchant_country
265
246
 
266
- # Spending limits for this card. The most restrictive limit applies if multiple
267
- # limits match.
247
+ # Controls how many times this card can be used.
248
+ sig { returns(T.nilable(Increase::Card::AuthorizationControls::Usage)) }
249
+ attr_reader :usage
250
+
268
251
  sig do
269
- returns(
270
- T.nilable(
271
- T::Array[Increase::Card::AuthorizationControls::SpendingLimit]
272
- )
273
- )
252
+ params(
253
+ usage:
254
+ T.nilable(Increase::Card::AuthorizationControls::Usage::OrHash)
255
+ ).void
274
256
  end
275
- attr_accessor :spending_limits
257
+ attr_writer :usage
276
258
 
277
259
  # Controls that restrict how this card can be used.
278
260
  sig do
279
261
  params(
280
- maximum_authorization_count:
281
- T.nilable(
282
- Increase::Card::AuthorizationControls::MaximumAuthorizationCount::OrHash
283
- ),
284
262
  merchant_acceptor_identifier:
285
263
  T.nilable(
286
264
  Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::OrHash
@@ -293,17 +271,11 @@ module Increase
293
271
  T.nilable(
294
272
  Increase::Card::AuthorizationControls::MerchantCountry::OrHash
295
273
  ),
296
- spending_limits:
297
- T.nilable(
298
- T::Array[
299
- Increase::Card::AuthorizationControls::SpendingLimit::OrHash
300
- ]
301
- )
274
+ usage:
275
+ T.nilable(Increase::Card::AuthorizationControls::Usage::OrHash)
302
276
  ).returns(T.attached_class)
303
277
  end
304
278
  def self.new(
305
- # Limits the number of authorizations that can be approved on this card.
306
- maximum_authorization_count:,
307
279
  # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
308
280
  # on this card.
309
281
  merchant_acceptor_identifier:,
@@ -313,19 +285,14 @@ module Increase
313
285
  # Restricts which merchant countries are allowed or blocked for authorizations on
314
286
  # this card.
315
287
  merchant_country:,
316
- # Spending limits for this card. The most restrictive limit applies if multiple
317
- # limits match.
318
- spending_limits:
288
+ # Controls how many times this card can be used.
289
+ usage:
319
290
  )
320
291
  end
321
292
 
322
293
  sig do
323
294
  override.returns(
324
295
  {
325
- maximum_authorization_count:
326
- T.nilable(
327
- Increase::Card::AuthorizationControls::MaximumAuthorizationCount
328
- ),
329
296
  merchant_acceptor_identifier:
330
297
  T.nilable(
331
298
  Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier
@@ -338,44 +305,13 @@ module Increase
338
305
  T.nilable(
339
306
  Increase::Card::AuthorizationControls::MerchantCountry
340
307
  ),
341
- spending_limits:
342
- T.nilable(
343
- T::Array[Increase::Card::AuthorizationControls::SpendingLimit]
344
- )
308
+ usage: T.nilable(Increase::Card::AuthorizationControls::Usage)
345
309
  }
346
310
  )
347
311
  end
348
312
  def to_hash
349
313
  end
350
314
 
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
315
  class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
380
316
  OrHash =
381
317
  T.type_alias do
@@ -769,164 +705,497 @@ module Increase
769
705
  end
770
706
  end
771
707
 
772
- class SpendingLimit < Increase::Internal::Type::BaseModel
708
+ class Usage < Increase::Internal::Type::BaseModel
773
709
  OrHash =
774
710
  T.type_alias do
775
711
  T.any(
776
- Increase::Card::AuthorizationControls::SpendingLimit,
712
+ Increase::Card::AuthorizationControls::Usage,
777
713
  Increase::Internal::AnyHash
778
714
  )
779
715
  end
780
716
 
781
- # The interval at which the spending limit is enforced.
717
+ # Whether the card is for a single use or multiple uses.
782
718
  sig do
783
719
  returns(
784
- Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
720
+ Increase::Card::AuthorizationControls::Usage::Category::TaggedSymbol
785
721
  )
786
722
  end
787
- attr_accessor :interval
723
+ attr_accessor :category
788
724
 
789
- # The Merchant Category Codes (MCCs) this spending limit applies to. If not set,
790
- # the limit applies to all transactions.
725
+ # Controls for multi-use cards. Required if and only if `category` is `multi_use`.
791
726
  sig do
792
727
  returns(
793
- T.nilable(
794
- T::Array[
795
- Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode
796
- ]
797
- )
728
+ T.nilable(Increase::Card::AuthorizationControls::Usage::MultiUse)
798
729
  )
799
730
  end
800
- attr_accessor :merchant_category_codes
731
+ attr_reader :multi_use
801
732
 
802
- # The maximum settlement amount permitted in the given interval.
803
- sig { returns(Integer) }
804
- attr_accessor :settlement_amount
733
+ sig do
734
+ params(
735
+ multi_use:
736
+ T.nilable(
737
+ Increase::Card::AuthorizationControls::Usage::MultiUse::OrHash
738
+ )
739
+ ).void
740
+ end
741
+ attr_writer :multi_use
742
+
743
+ # Controls for single-use cards. Required if and only if `category` is
744
+ # `single_use`.
745
+ sig do
746
+ returns(
747
+ T.nilable(Increase::Card::AuthorizationControls::Usage::SingleUse)
748
+ )
749
+ end
750
+ attr_reader :single_use
805
751
 
806
752
  sig do
807
753
  params(
808
- interval:
809
- Increase::Card::AuthorizationControls::SpendingLimit::Interval::OrSymbol,
810
- merchant_category_codes:
754
+ single_use:
811
755
  T.nilable(
812
- T::Array[
813
- Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode::OrHash
814
- ]
756
+ Increase::Card::AuthorizationControls::Usage::SingleUse::OrHash
757
+ )
758
+ ).void
759
+ end
760
+ attr_writer :single_use
761
+
762
+ # Controls how many times this card can be used.
763
+ sig do
764
+ params(
765
+ category:
766
+ Increase::Card::AuthorizationControls::Usage::Category::OrSymbol,
767
+ multi_use:
768
+ T.nilable(
769
+ Increase::Card::AuthorizationControls::Usage::MultiUse::OrHash
815
770
  ),
816
- settlement_amount: Integer
771
+ single_use:
772
+ T.nilable(
773
+ Increase::Card::AuthorizationControls::Usage::SingleUse::OrHash
774
+ )
817
775
  ).returns(T.attached_class)
818
776
  end
819
777
  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:
778
+ # Whether the card is for a single use or multiple uses.
779
+ category:,
780
+ # Controls for multi-use cards. Required if and only if `category` is `multi_use`.
781
+ multi_use:,
782
+ # Controls for single-use cards. Required if and only if `category` is
783
+ # `single_use`.
784
+ single_use:
827
785
  )
828
786
  end
829
787
 
830
788
  sig do
831
789
  override.returns(
832
790
  {
833
- interval:
834
- Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol,
835
- merchant_category_codes:
791
+ category:
792
+ Increase::Card::AuthorizationControls::Usage::Category::TaggedSymbol,
793
+ multi_use:
836
794
  T.nilable(
837
- T::Array[
838
- Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode
839
- ]
795
+ Increase::Card::AuthorizationControls::Usage::MultiUse
840
796
  ),
841
- settlement_amount: Integer
797
+ single_use:
798
+ T.nilable(
799
+ Increase::Card::AuthorizationControls::Usage::SingleUse
800
+ )
842
801
  }
843
802
  )
844
803
  end
845
804
  def to_hash
846
805
  end
847
806
 
848
- # The interval at which the spending limit is enforced.
849
- module Interval
807
+ # Whether the card is for a single use or multiple uses.
808
+ module Category
850
809
  extend Increase::Internal::Type::Enum
851
810
 
852
811
  TaggedSymbol =
853
812
  T.type_alias do
854
813
  T.all(
855
814
  Symbol,
856
- Increase::Card::AuthorizationControls::SpendingLimit::Interval
815
+ Increase::Card::AuthorizationControls::Usage::Category
857
816
  )
858
817
  end
859
818
  OrSymbol = T.type_alias { T.any(Symbol, String) }
860
819
 
861
- # The spending limit applies over the lifetime of the card.
862
- ALL_TIME =
820
+ # The card can only be used for a single authorization.
821
+ SINGLE_USE =
863
822
  T.let(
864
- :all_time,
865
- Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
823
+ :single_use,
824
+ Increase::Card::AuthorizationControls::Usage::Category::TaggedSymbol
866
825
  )
867
826
 
868
- # The spending limit applies per transaction.
869
- PER_TRANSACTION =
827
+ # The card can be used for multiple authorizations.
828
+ MULTI_USE =
870
829
  T.let(
871
- :per_transaction,
872
- Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
830
+ :multi_use,
831
+ Increase::Card::AuthorizationControls::Usage::Category::TaggedSymbol
873
832
  )
874
833
 
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
834
+ sig do
835
+ override.returns(
836
+ T::Array[
837
+ Increase::Card::AuthorizationControls::Usage::Category::TaggedSymbol
838
+ ]
880
839
  )
840
+ end
841
+ def self.values
842
+ end
843
+ end
881
844
 
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
- )
845
+ class MultiUse < Increase::Internal::Type::BaseModel
846
+ OrHash =
847
+ T.type_alias do
848
+ T.any(
849
+ Increase::Card::AuthorizationControls::Usage::MultiUse,
850
+ Increase::Internal::AnyHash
851
+ )
852
+ end
888
853
 
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
854
+ # Spending limits for this card. The most restrictive limit applies if multiple
855
+ # limits match.
856
+ sig do
857
+ returns(
858
+ T.nilable(
859
+ T::Array[
860
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit
861
+ ]
862
+ )
894
863
  )
864
+ end
865
+ attr_accessor :spending_limits
866
+
867
+ # Controls for multi-use cards. Required if and only if `category` is `multi_use`.
868
+ sig do
869
+ params(
870
+ spending_limits:
871
+ T.nilable(
872
+ T::Array[
873
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::OrHash
874
+ ]
875
+ )
876
+ ).returns(T.attached_class)
877
+ end
878
+ def self.new(
879
+ # Spending limits for this card. The most restrictive limit applies if multiple
880
+ # limits match.
881
+ spending_limits:
882
+ )
883
+ end
895
884
 
896
885
  sig do
897
886
  override.returns(
898
- T::Array[
899
- Increase::Card::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
900
- ]
887
+ {
888
+ spending_limits:
889
+ T.nilable(
890
+ T::Array[
891
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit
892
+ ]
893
+ )
894
+ }
901
895
  )
902
896
  end
903
- def self.values
897
+ def to_hash
898
+ end
899
+
900
+ class SpendingLimit < Increase::Internal::Type::BaseModel
901
+ OrHash =
902
+ T.type_alias do
903
+ T.any(
904
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit,
905
+ Increase::Internal::AnyHash
906
+ )
907
+ end
908
+
909
+ # The interval at which the spending limit is enforced.
910
+ sig do
911
+ returns(
912
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
913
+ )
914
+ end
915
+ attr_accessor :interval
916
+
917
+ # The Merchant Category Codes (MCCs) this spending limit applies to. If not set,
918
+ # the limit applies to all transactions.
919
+ sig do
920
+ returns(
921
+ T.nilable(
922
+ T::Array[
923
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode
924
+ ]
925
+ )
926
+ )
927
+ end
928
+ attr_accessor :merchant_category_codes
929
+
930
+ # The maximum settlement amount permitted in the given interval.
931
+ sig { returns(Integer) }
932
+ attr_accessor :settlement_amount
933
+
934
+ sig do
935
+ params(
936
+ interval:
937
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::OrSymbol,
938
+ merchant_category_codes:
939
+ T.nilable(
940
+ T::Array[
941
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode::OrHash
942
+ ]
943
+ ),
944
+ settlement_amount: Integer
945
+ ).returns(T.attached_class)
946
+ end
947
+ def self.new(
948
+ # The interval at which the spending limit is enforced.
949
+ interval:,
950
+ # The Merchant Category Codes (MCCs) this spending limit applies to. If not set,
951
+ # the limit applies to all transactions.
952
+ merchant_category_codes:,
953
+ # The maximum settlement amount permitted in the given interval.
954
+ settlement_amount:
955
+ )
956
+ end
957
+
958
+ sig do
959
+ override.returns(
960
+ {
961
+ interval:
962
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol,
963
+ merchant_category_codes:
964
+ T.nilable(
965
+ T::Array[
966
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode
967
+ ]
968
+ ),
969
+ settlement_amount: Integer
970
+ }
971
+ )
972
+ end
973
+ def to_hash
974
+ end
975
+
976
+ # The interval at which the spending limit is enforced.
977
+ module Interval
978
+ extend Increase::Internal::Type::Enum
979
+
980
+ TaggedSymbol =
981
+ T.type_alias do
982
+ T.all(
983
+ Symbol,
984
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval
985
+ )
986
+ end
987
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
988
+
989
+ # The spending limit applies over the lifetime of the card.
990
+ ALL_TIME =
991
+ T.let(
992
+ :all_time,
993
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
994
+ )
995
+
996
+ # The spending limit applies per transaction.
997
+ PER_TRANSACTION =
998
+ T.let(
999
+ :per_transaction,
1000
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
1001
+ )
1002
+
1003
+ # The spending limit applies per day. Resets nightly at midnight UTC.
1004
+ PER_DAY =
1005
+ T.let(
1006
+ :per_day,
1007
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
1008
+ )
1009
+
1010
+ # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
1011
+ PER_WEEK =
1012
+ T.let(
1013
+ :per_week,
1014
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
1015
+ )
1016
+
1017
+ # The spending limit applies per month. Resets on the first of the month, midnight UTC.
1018
+ PER_MONTH =
1019
+ T.let(
1020
+ :per_month,
1021
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
1022
+ )
1023
+
1024
+ sig do
1025
+ override.returns(
1026
+ T::Array[
1027
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
1028
+ ]
1029
+ )
1030
+ end
1031
+ def self.values
1032
+ end
1033
+ end
1034
+
1035
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
1036
+ OrHash =
1037
+ T.type_alias do
1038
+ T.any(
1039
+ Increase::Card::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode,
1040
+ Increase::Internal::AnyHash
1041
+ )
1042
+ end
1043
+
1044
+ # The Merchant Category Code (MCC).
1045
+ sig { returns(String) }
1046
+ attr_accessor :code
1047
+
1048
+ sig { params(code: String).returns(T.attached_class) }
1049
+ def self.new(
1050
+ # The Merchant Category Code (MCC).
1051
+ code:
1052
+ )
1053
+ end
1054
+
1055
+ sig { override.returns({ code: String }) }
1056
+ def to_hash
1057
+ end
1058
+ end
904
1059
  end
905
1060
  end
906
1061
 
907
- class MerchantCategoryCode < Increase::Internal::Type::BaseModel
1062
+ class SingleUse < Increase::Internal::Type::BaseModel
908
1063
  OrHash =
909
1064
  T.type_alias do
910
1065
  T.any(
911
- Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode,
1066
+ Increase::Card::AuthorizationControls::Usage::SingleUse,
912
1067
  Increase::Internal::AnyHash
913
1068
  )
914
1069
  end
915
1070
 
916
- # The Merchant Category Code (MCC).
917
- sig { returns(String) }
918
- attr_accessor :code
1071
+ # The settlement amount constraint for this single-use card.
1072
+ sig do
1073
+ returns(
1074
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount
1075
+ )
1076
+ end
1077
+ attr_reader :settlement_amount
919
1078
 
920
- sig { params(code: String).returns(T.attached_class) }
1079
+ sig do
1080
+ params(
1081
+ settlement_amount:
1082
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::OrHash
1083
+ ).void
1084
+ end
1085
+ attr_writer :settlement_amount
1086
+
1087
+ # Controls for single-use cards. Required if and only if `category` is
1088
+ # `single_use`.
1089
+ sig do
1090
+ params(
1091
+ settlement_amount:
1092
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::OrHash
1093
+ ).returns(T.attached_class)
1094
+ end
921
1095
  def self.new(
922
- # The Merchant Category Code (MCC).
923
- code:
1096
+ # The settlement amount constraint for this single-use card.
1097
+ settlement_amount:
924
1098
  )
925
1099
  end
926
1100
 
927
- sig { override.returns({ code: String }) }
1101
+ sig do
1102
+ override.returns(
1103
+ {
1104
+ settlement_amount:
1105
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount
1106
+ }
1107
+ )
1108
+ end
928
1109
  def to_hash
929
1110
  end
1111
+
1112
+ class SettlementAmount < Increase::Internal::Type::BaseModel
1113
+ OrHash =
1114
+ T.type_alias do
1115
+ T.any(
1116
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount,
1117
+ Increase::Internal::AnyHash
1118
+ )
1119
+ end
1120
+
1121
+ # The operator used to compare the settlement amount.
1122
+ sig do
1123
+ returns(
1124
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::TaggedSymbol
1125
+ )
1126
+ end
1127
+ attr_accessor :comparison
1128
+
1129
+ # The settlement amount value.
1130
+ sig { returns(Integer) }
1131
+ attr_accessor :value
1132
+
1133
+ # The settlement amount constraint for this single-use card.
1134
+ sig do
1135
+ params(
1136
+ comparison:
1137
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::OrSymbol,
1138
+ value: Integer
1139
+ ).returns(T.attached_class)
1140
+ end
1141
+ def self.new(
1142
+ # The operator used to compare the settlement amount.
1143
+ comparison:,
1144
+ # The settlement amount value.
1145
+ value:
1146
+ )
1147
+ end
1148
+
1149
+ sig do
1150
+ override.returns(
1151
+ {
1152
+ comparison:
1153
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::TaggedSymbol,
1154
+ value: Integer
1155
+ }
1156
+ )
1157
+ end
1158
+ def to_hash
1159
+ end
1160
+
1161
+ # The operator used to compare the settlement amount.
1162
+ module Comparison
1163
+ extend Increase::Internal::Type::Enum
1164
+
1165
+ TaggedSymbol =
1166
+ T.type_alias do
1167
+ T.all(
1168
+ Symbol,
1169
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison
1170
+ )
1171
+ end
1172
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1173
+
1174
+ # The settlement amount must be exactly the specified value.
1175
+ EQUALS =
1176
+ T.let(
1177
+ :equals,
1178
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::TaggedSymbol
1179
+ )
1180
+
1181
+ # The settlement amount must be less than or equal to the specified value.
1182
+ LESS_THAN_OR_EQUALS =
1183
+ T.let(
1184
+ :less_than_or_equals,
1185
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::TaggedSymbol
1186
+ )
1187
+
1188
+ sig do
1189
+ override.returns(
1190
+ T::Array[
1191
+ Increase::Card::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::TaggedSymbol
1192
+ ]
1193
+ )
1194
+ end
1195
+ def self.values
1196
+ end
1197
+ end
1198
+ end
930
1199
  end
931
1200
  end
932
1201
  end