increase 1.282.0 → 1.283.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.
@@ -137,24 +137,6 @@ module Increase
137
137
  )
138
138
  end
139
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
140
  # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
159
141
  # on this card.
160
142
  sig do
@@ -212,49 +194,36 @@ module Increase
212
194
  end
213
195
  attr_writer :merchant_country
214
196
 
215
- # Spending limits for this card. The most restrictive limit applies if multiple
216
- # limits match.
197
+ # Controls how many times this card can be used.
217
198
  sig do
218
199
  returns(
219
- T.nilable(
220
- T::Array[
221
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit
222
- ]
223
- )
200
+ T.nilable(Increase::CardUpdateParams::AuthorizationControls::Usage)
224
201
  )
225
202
  end
226
- attr_reader :spending_limits
203
+ attr_reader :usage
227
204
 
228
205
  sig do
229
206
  params(
230
- spending_limits:
231
- T::Array[
232
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::OrHash
233
- ]
207
+ usage:
208
+ Increase::CardUpdateParams::AuthorizationControls::Usage::OrHash
234
209
  ).void
235
210
  end
236
- attr_writer :spending_limits
211
+ attr_writer :usage
237
212
 
238
213
  # Controls that restrict how this card can be used.
239
214
  sig do
240
215
  params(
241
- maximum_authorization_count:
242
- Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount::OrHash,
243
216
  merchant_acceptor_identifier:
244
217
  Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::OrHash,
245
218
  merchant_category_code:
246
219
  Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::OrHash,
247
220
  merchant_country:
248
221
  Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::OrHash,
249
- spending_limits:
250
- T::Array[
251
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::OrHash
252
- ]
222
+ usage:
223
+ Increase::CardUpdateParams::AuthorizationControls::Usage::OrHash
253
224
  ).returns(T.attached_class)
254
225
  end
255
226
  def self.new(
256
- # Limits the number of authorizations that can be approved on this card.
257
- maximum_authorization_count: nil,
258
227
  # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
259
228
  # on this card.
260
229
  merchant_acceptor_identifier: nil,
@@ -264,61 +233,27 @@ module Increase
264
233
  # Restricts which merchant countries are allowed or blocked for authorizations on
265
234
  # this card.
266
235
  merchant_country: nil,
267
- # Spending limits for this card. The most restrictive limit applies if multiple
268
- # limits match.
269
- spending_limits: nil
236
+ # Controls how many times this card can be used.
237
+ usage: nil
270
238
  )
271
239
  end
272
240
 
273
241
  sig do
274
242
  override.returns(
275
243
  {
276
- maximum_authorization_count:
277
- Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount,
278
244
  merchant_acceptor_identifier:
279
245
  Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier,
280
246
  merchant_category_code:
281
247
  Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode,
282
248
  merchant_country:
283
249
  Increase::CardUpdateParams::AuthorizationControls::MerchantCountry,
284
- spending_limits:
285
- T::Array[
286
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit
287
- ]
250
+ usage: Increase::CardUpdateParams::AuthorizationControls::Usage
288
251
  }
289
252
  )
290
253
  end
291
254
  def to_hash
292
255
  end
293
256
 
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
257
  class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
323
258
  OrHash =
324
259
  T.type_alias do
@@ -760,170 +695,501 @@ module Increase
760
695
  end
761
696
  end
762
697
 
763
- class SpendingLimit < Increase::Internal::Type::BaseModel
698
+ class Usage < Increase::Internal::Type::BaseModel
764
699
  OrHash =
765
700
  T.type_alias do
766
701
  T.any(
767
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit,
702
+ Increase::CardUpdateParams::AuthorizationControls::Usage,
768
703
  Increase::Internal::AnyHash
769
704
  )
770
705
  end
771
706
 
772
- # The interval at which the spending limit is enforced.
707
+ # Whether the card is for a single use or multiple uses.
708
+ sig do
709
+ returns(
710
+ Increase::CardUpdateParams::AuthorizationControls::Usage::Category::OrSymbol
711
+ )
712
+ end
713
+ attr_accessor :category
714
+
715
+ # Controls for multi-use cards. Required if and only if `category` is `multi_use`.
773
716
  sig do
774
717
  returns(
775
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::Interval::OrSymbol
718
+ T.nilable(
719
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse
720
+ )
776
721
  )
777
722
  end
778
- attr_accessor :interval
723
+ attr_reader :multi_use
779
724
 
780
- # The maximum settlement amount permitted in the given interval.
781
- sig { returns(Integer) }
782
- attr_accessor :settlement_amount
725
+ sig do
726
+ params(
727
+ multi_use:
728
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::OrHash
729
+ ).void
730
+ end
731
+ attr_writer :multi_use
783
732
 
784
- # The Merchant Category Codes this spending limit applies to. If not set, the
785
- # limit applies to all transactions.
733
+ # Controls for single-use cards. Required if and only if `category` is
734
+ # `single_use`.
786
735
  sig do
787
736
  returns(
788
737
  T.nilable(
789
- T::Array[
790
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode
791
- ]
738
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse
792
739
  )
793
740
  )
794
741
  end
795
- attr_reader :merchant_category_codes
742
+ attr_reader :single_use
796
743
 
797
744
  sig do
798
745
  params(
799
- merchant_category_codes:
800
- T::Array[
801
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode::OrHash
802
- ]
746
+ single_use:
747
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::OrHash
803
748
  ).void
804
749
  end
805
- attr_writer :merchant_category_codes
750
+ attr_writer :single_use
806
751
 
752
+ # Controls how many times this card can be used.
807
753
  sig do
808
754
  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
- ]
755
+ category:
756
+ Increase::CardUpdateParams::AuthorizationControls::Usage::Category::OrSymbol,
757
+ multi_use:
758
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::OrHash,
759
+ single_use:
760
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::OrHash
816
761
  ).returns(T.attached_class)
817
762
  end
818
763
  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
764
+ # Whether the card is for a single use or multiple uses.
765
+ category:,
766
+ # Controls for multi-use cards. Required if and only if `category` is `multi_use`.
767
+ multi_use: nil,
768
+ # Controls for single-use cards. Required if and only if `category` is
769
+ # `single_use`.
770
+ single_use: nil
826
771
  )
827
772
  end
828
773
 
829
774
  sig do
830
775
  override.returns(
831
776
  {
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
- ]
777
+ category:
778
+ Increase::CardUpdateParams::AuthorizationControls::Usage::Category::OrSymbol,
779
+ multi_use:
780
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse,
781
+ single_use:
782
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse
839
783
  }
840
784
  )
841
785
  end
842
786
  def to_hash
843
787
  end
844
788
 
845
- # The interval at which the spending limit is enforced.
846
- module Interval
789
+ # Whether the card is for a single use or multiple uses.
790
+ module Category
847
791
  extend Increase::Internal::Type::Enum
848
792
 
849
793
  TaggedSymbol =
850
794
  T.type_alias do
851
795
  T.all(
852
796
  Symbol,
853
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::Interval
797
+ Increase::CardUpdateParams::AuthorizationControls::Usage::Category
854
798
  )
855
799
  end
856
800
  OrSymbol = T.type_alias { T.any(Symbol, String) }
857
801
 
858
- # The spending limit applies over the lifetime of the card.
859
- ALL_TIME =
802
+ # The card can only be used for a single authorization.
803
+ SINGLE_USE =
860
804
  T.let(
861
- :all_time,
862
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
805
+ :single_use,
806
+ Increase::CardUpdateParams::AuthorizationControls::Usage::Category::TaggedSymbol
863
807
  )
864
808
 
865
- # The spending limit applies per transaction.
866
- PER_TRANSACTION =
809
+ # The card can be used for multiple authorizations.
810
+ MULTI_USE =
867
811
  T.let(
868
- :per_transaction,
869
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
812
+ :multi_use,
813
+ Increase::CardUpdateParams::AuthorizationControls::Usage::Category::TaggedSymbol
870
814
  )
871
815
 
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
816
+ sig do
817
+ override.returns(
818
+ T::Array[
819
+ Increase::CardUpdateParams::AuthorizationControls::Usage::Category::TaggedSymbol
820
+ ]
877
821
  )
822
+ end
823
+ def self.values
824
+ end
825
+ end
878
826
 
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
- )
827
+ class MultiUse < Increase::Internal::Type::BaseModel
828
+ OrHash =
829
+ T.type_alias do
830
+ T.any(
831
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse,
832
+ Increase::Internal::AnyHash
833
+ )
834
+ end
885
835
 
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
836
+ # Spending limits for this card. The most restrictive limit applies if multiple
837
+ # limits match.
838
+ sig do
839
+ returns(
840
+ T.nilable(
841
+ T::Array[
842
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit
843
+ ]
844
+ )
891
845
  )
846
+ end
847
+ attr_reader :spending_limits
848
+
849
+ sig do
850
+ params(
851
+ spending_limits:
852
+ T::Array[
853
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::OrHash
854
+ ]
855
+ ).void
856
+ end
857
+ attr_writer :spending_limits
858
+
859
+ # Controls for multi-use cards. Required if and only if `category` is `multi_use`.
860
+ sig do
861
+ params(
862
+ spending_limits:
863
+ T::Array[
864
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::OrHash
865
+ ]
866
+ ).returns(T.attached_class)
867
+ end
868
+ def self.new(
869
+ # Spending limits for this card. The most restrictive limit applies if multiple
870
+ # limits match.
871
+ spending_limits: nil
872
+ )
873
+ end
892
874
 
893
875
  sig do
894
876
  override.returns(
895
- T::Array[
896
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::Interval::TaggedSymbol
897
- ]
877
+ {
878
+ spending_limits:
879
+ T::Array[
880
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit
881
+ ]
882
+ }
898
883
  )
899
884
  end
900
- def self.values
885
+ def to_hash
886
+ end
887
+
888
+ class SpendingLimit < Increase::Internal::Type::BaseModel
889
+ OrHash =
890
+ T.type_alias do
891
+ T.any(
892
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit,
893
+ Increase::Internal::AnyHash
894
+ )
895
+ end
896
+
897
+ # The interval at which the spending limit is enforced.
898
+ sig do
899
+ returns(
900
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::OrSymbol
901
+ )
902
+ end
903
+ attr_accessor :interval
904
+
905
+ # The maximum settlement amount permitted in the given interval.
906
+ sig { returns(Integer) }
907
+ attr_accessor :settlement_amount
908
+
909
+ # The Merchant Category Codes this spending limit applies to. If not set, the
910
+ # limit applies to all transactions.
911
+ sig do
912
+ returns(
913
+ T.nilable(
914
+ T::Array[
915
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode
916
+ ]
917
+ )
918
+ )
919
+ end
920
+ attr_reader :merchant_category_codes
921
+
922
+ sig do
923
+ params(
924
+ merchant_category_codes:
925
+ T::Array[
926
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode::OrHash
927
+ ]
928
+ ).void
929
+ end
930
+ attr_writer :merchant_category_codes
931
+
932
+ sig do
933
+ params(
934
+ interval:
935
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::OrSymbol,
936
+ settlement_amount: Integer,
937
+ merchant_category_codes:
938
+ T::Array[
939
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode::OrHash
940
+ ]
941
+ ).returns(T.attached_class)
942
+ end
943
+ def self.new(
944
+ # The interval at which the spending limit is enforced.
945
+ interval:,
946
+ # The maximum settlement amount permitted in the given interval.
947
+ settlement_amount:,
948
+ # The Merchant Category Codes this spending limit applies to. If not set, the
949
+ # limit applies to all transactions.
950
+ merchant_category_codes: nil
951
+ )
952
+ end
953
+
954
+ sig do
955
+ override.returns(
956
+ {
957
+ interval:
958
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::OrSymbol,
959
+ settlement_amount: Integer,
960
+ merchant_category_codes:
961
+ T::Array[
962
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode
963
+ ]
964
+ }
965
+ )
966
+ end
967
+ def to_hash
968
+ end
969
+
970
+ # The interval at which the spending limit is enforced.
971
+ module Interval
972
+ extend Increase::Internal::Type::Enum
973
+
974
+ TaggedSymbol =
975
+ T.type_alias do
976
+ T.all(
977
+ Symbol,
978
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval
979
+ )
980
+ end
981
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
982
+
983
+ # The spending limit applies over the lifetime of the card.
984
+ ALL_TIME =
985
+ T.let(
986
+ :all_time,
987
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
988
+ )
989
+
990
+ # The spending limit applies per transaction.
991
+ PER_TRANSACTION =
992
+ T.let(
993
+ :per_transaction,
994
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
995
+ )
996
+
997
+ # The spending limit applies per day. Resets nightly at midnight UTC.
998
+ PER_DAY =
999
+ T.let(
1000
+ :per_day,
1001
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
1002
+ )
1003
+
1004
+ # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
1005
+ PER_WEEK =
1006
+ T.let(
1007
+ :per_week,
1008
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
1009
+ )
1010
+
1011
+ # The spending limit applies per month. Resets on the first of the month, midnight UTC.
1012
+ PER_MONTH =
1013
+ T.let(
1014
+ :per_month,
1015
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
1016
+ )
1017
+
1018
+ sig do
1019
+ override.returns(
1020
+ T::Array[
1021
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::Interval::TaggedSymbol
1022
+ ]
1023
+ )
1024
+ end
1025
+ def self.values
1026
+ end
1027
+ end
1028
+
1029
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
1030
+ OrHash =
1031
+ T.type_alias do
1032
+ T.any(
1033
+ Increase::CardUpdateParams::AuthorizationControls::Usage::MultiUse::SpendingLimit::MerchantCategoryCode,
1034
+ Increase::Internal::AnyHash
1035
+ )
1036
+ end
1037
+
1038
+ # The Merchant Category Code.
1039
+ sig { returns(String) }
1040
+ attr_accessor :code
1041
+
1042
+ sig { params(code: String).returns(T.attached_class) }
1043
+ def self.new(
1044
+ # The Merchant Category Code.
1045
+ code:
1046
+ )
1047
+ end
1048
+
1049
+ sig { override.returns({ code: String }) }
1050
+ def to_hash
1051
+ end
1052
+ end
901
1053
  end
902
1054
  end
903
1055
 
904
- class MerchantCategoryCode < Increase::Internal::Type::BaseModel
1056
+ class SingleUse < Increase::Internal::Type::BaseModel
905
1057
  OrHash =
906
1058
  T.type_alias do
907
1059
  T.any(
908
- Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode,
1060
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse,
909
1061
  Increase::Internal::AnyHash
910
1062
  )
911
1063
  end
912
1064
 
913
- # The Merchant Category Code.
914
- sig { returns(String) }
915
- attr_accessor :code
1065
+ # The settlement amount constraint for this single-use card.
1066
+ sig do
1067
+ returns(
1068
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount
1069
+ )
1070
+ end
1071
+ attr_reader :settlement_amount
916
1072
 
917
- sig { params(code: String).returns(T.attached_class) }
1073
+ sig do
1074
+ params(
1075
+ settlement_amount:
1076
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::OrHash
1077
+ ).void
1078
+ end
1079
+ attr_writer :settlement_amount
1080
+
1081
+ # Controls for single-use cards. Required if and only if `category` is
1082
+ # `single_use`.
1083
+ sig do
1084
+ params(
1085
+ settlement_amount:
1086
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::OrHash
1087
+ ).returns(T.attached_class)
1088
+ end
918
1089
  def self.new(
919
- # The Merchant Category Code.
920
- code:
1090
+ # The settlement amount constraint for this single-use card.
1091
+ settlement_amount:
921
1092
  )
922
1093
  end
923
1094
 
924
- sig { override.returns({ code: String }) }
1095
+ sig do
1096
+ override.returns(
1097
+ {
1098
+ settlement_amount:
1099
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount
1100
+ }
1101
+ )
1102
+ end
925
1103
  def to_hash
926
1104
  end
1105
+
1106
+ class SettlementAmount < Increase::Internal::Type::BaseModel
1107
+ OrHash =
1108
+ T.type_alias do
1109
+ T.any(
1110
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount,
1111
+ Increase::Internal::AnyHash
1112
+ )
1113
+ end
1114
+
1115
+ # The operator used to compare the settlement amount.
1116
+ sig do
1117
+ returns(
1118
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::OrSymbol
1119
+ )
1120
+ end
1121
+ attr_accessor :comparison
1122
+
1123
+ # The settlement amount value.
1124
+ sig { returns(Integer) }
1125
+ attr_accessor :value
1126
+
1127
+ # The settlement amount constraint for this single-use card.
1128
+ sig do
1129
+ params(
1130
+ comparison:
1131
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::OrSymbol,
1132
+ value: Integer
1133
+ ).returns(T.attached_class)
1134
+ end
1135
+ def self.new(
1136
+ # The operator used to compare the settlement amount.
1137
+ comparison:,
1138
+ # The settlement amount value.
1139
+ value:
1140
+ )
1141
+ end
1142
+
1143
+ sig do
1144
+ override.returns(
1145
+ {
1146
+ comparison:
1147
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::OrSymbol,
1148
+ value: Integer
1149
+ }
1150
+ )
1151
+ end
1152
+ def to_hash
1153
+ end
1154
+
1155
+ # The operator used to compare the settlement amount.
1156
+ module Comparison
1157
+ extend Increase::Internal::Type::Enum
1158
+
1159
+ TaggedSymbol =
1160
+ T.type_alias do
1161
+ T.all(
1162
+ Symbol,
1163
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison
1164
+ )
1165
+ end
1166
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1167
+
1168
+ # The settlement amount must be exactly the specified value.
1169
+ EQUALS =
1170
+ T.let(
1171
+ :equals,
1172
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::TaggedSymbol
1173
+ )
1174
+
1175
+ # The settlement amount must be less than or equal to the specified value.
1176
+ LESS_THAN_OR_EQUALS =
1177
+ T.let(
1178
+ :less_than_or_equals,
1179
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::TaggedSymbol
1180
+ )
1181
+
1182
+ sig do
1183
+ override.returns(
1184
+ T::Array[
1185
+ Increase::CardUpdateParams::AuthorizationControls::Usage::SingleUse::SettlementAmount::Comparison::TaggedSymbol
1186
+ ]
1187
+ )
1188
+ end
1189
+ def self.values
1190
+ end
1191
+ end
1192
+ end
927
1193
  end
928
1194
  end
929
1195
  end