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