increase 1.156.0 → 1.157.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.
@@ -67,6 +67,23 @@ module Increase
67
67
  end
68
68
  attr_writer :card_authorization
69
69
 
70
+ # If the Real-Time Decision relates to a card balance inquiry attempt, this object
71
+ # contains your response to the inquiry.
72
+ sig do
73
+ returns(
74
+ T.nilable(Increase::RealTimeDecisionActionParams::CardBalanceInquiry)
75
+ )
76
+ end
77
+ attr_reader :card_balance_inquiry
78
+
79
+ sig do
80
+ params(
81
+ card_balance_inquiry:
82
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::OrHash
83
+ ).void
84
+ end
85
+ attr_writer :card_balance_inquiry
86
+
70
87
  # If the Real-Time Decision relates to a digital wallet authentication attempt,
71
88
  # this object contains your response to the authentication.
72
89
  sig do
@@ -111,6 +128,8 @@ module Increase
111
128
  Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::OrHash,
112
129
  card_authorization:
113
130
  Increase::RealTimeDecisionActionParams::CardAuthorization::OrHash,
131
+ card_balance_inquiry:
132
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::OrHash,
114
133
  digital_wallet_authentication:
115
134
  Increase::RealTimeDecisionActionParams::DigitalWalletAuthentication::OrHash,
116
135
  digital_wallet_token:
@@ -128,6 +147,9 @@ module Increase
128
147
  # If the Real-Time Decision relates to a card authorization attempt, this object
129
148
  # contains your response to the authorization.
130
149
  card_authorization: nil,
150
+ # If the Real-Time Decision relates to a card balance inquiry attempt, this object
151
+ # contains your response to the inquiry.
152
+ card_balance_inquiry: nil,
131
153
  # If the Real-Time Decision relates to a digital wallet authentication attempt,
132
154
  # this object contains your response to the authentication.
133
155
  digital_wallet_authentication: nil,
@@ -147,6 +169,8 @@ module Increase
147
169
  Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge,
148
170
  card_authorization:
149
171
  Increase::RealTimeDecisionActionParams::CardAuthorization,
172
+ card_balance_inquiry:
173
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry,
150
174
  digital_wallet_authentication:
151
175
  Increase::RealTimeDecisionActionParams::DigitalWalletAuthentication,
152
176
  digital_wallet_token:
@@ -798,6 +822,140 @@ module Increase
798
822
  end
799
823
  end
800
824
 
825
+ class CardBalanceInquiry < Increase::Internal::Type::BaseModel
826
+ OrHash =
827
+ T.type_alias do
828
+ T.any(
829
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry,
830
+ Increase::Internal::AnyHash
831
+ )
832
+ end
833
+
834
+ # Whether the card balance inquiry should be approved or declined.
835
+ sig do
836
+ returns(
837
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Decision::OrSymbol
838
+ )
839
+ end
840
+ attr_accessor :decision
841
+
842
+ # If your application approves the balance inquiry, this contains metadata about
843
+ # your decision to approve.
844
+ sig do
845
+ returns(
846
+ T.nilable(
847
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Approval
848
+ )
849
+ )
850
+ end
851
+ attr_reader :approval
852
+
853
+ sig do
854
+ params(
855
+ approval:
856
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Approval::OrHash
857
+ ).void
858
+ end
859
+ attr_writer :approval
860
+
861
+ # If the Real-Time Decision relates to a card balance inquiry attempt, this object
862
+ # contains your response to the inquiry.
863
+ sig do
864
+ params(
865
+ decision:
866
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Decision::OrSymbol,
867
+ approval:
868
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Approval::OrHash
869
+ ).returns(T.attached_class)
870
+ end
871
+ def self.new(
872
+ # Whether the card balance inquiry should be approved or declined.
873
+ decision:,
874
+ # If your application approves the balance inquiry, this contains metadata about
875
+ # your decision to approve.
876
+ approval: nil
877
+ )
878
+ end
879
+
880
+ sig do
881
+ override.returns(
882
+ {
883
+ decision:
884
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Decision::OrSymbol,
885
+ approval:
886
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Approval
887
+ }
888
+ )
889
+ end
890
+ def to_hash
891
+ end
892
+
893
+ # Whether the card balance inquiry should be approved or declined.
894
+ module Decision
895
+ extend Increase::Internal::Type::Enum
896
+
897
+ TaggedSymbol =
898
+ T.type_alias do
899
+ T.all(
900
+ Symbol,
901
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Decision
902
+ )
903
+ end
904
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
905
+
906
+ # Approve the authorization.
907
+ APPROVE =
908
+ T.let(
909
+ :approve,
910
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Decision::TaggedSymbol
911
+ )
912
+
913
+ # Decline the authorization.
914
+ DECLINE =
915
+ T.let(
916
+ :decline,
917
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Decision::TaggedSymbol
918
+ )
919
+
920
+ sig do
921
+ override.returns(
922
+ T::Array[
923
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Decision::TaggedSymbol
924
+ ]
925
+ )
926
+ end
927
+ def self.values
928
+ end
929
+ end
930
+
931
+ class Approval < Increase::Internal::Type::BaseModel
932
+ OrHash =
933
+ T.type_alias do
934
+ T.any(
935
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Approval,
936
+ Increase::Internal::AnyHash
937
+ )
938
+ end
939
+
940
+ # The balance on the card in the settlement currency of the transaction.
941
+ sig { returns(Integer) }
942
+ attr_accessor :balance
943
+
944
+ # If your application approves the balance inquiry, this contains metadata about
945
+ # your decision to approve.
946
+ sig { params(balance: Integer).returns(T.attached_class) }
947
+ def self.new(
948
+ # The balance on the card in the settlement currency of the transaction.
949
+ balance:
950
+ )
951
+ end
952
+
953
+ sig { override.returns({ balance: Integer }) }
954
+ def to_hash
955
+ end
956
+ end
957
+ end
958
+
801
959
  class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel
802
960
  OrHash =
803
961
  T.type_alias do
@@ -27,6 +27,8 @@ module Increase
27
27
  Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::OrHash,
28
28
  card_authorization:
29
29
  Increase::RealTimeDecisionActionParams::CardAuthorization::OrHash,
30
+ card_balance_inquiry:
31
+ Increase::RealTimeDecisionActionParams::CardBalanceInquiry::OrHash,
30
32
  digital_wallet_authentication:
31
33
  Increase::RealTimeDecisionActionParams::DigitalWalletAuthentication::OrHash,
32
34
  digital_wallet_token:
@@ -46,6 +48,9 @@ module Increase
46
48
  # If the Real-Time Decision relates to a card authorization attempt, this object
47
49
  # contains your response to the authorization.
48
50
  card_authorization: nil,
51
+ # If the Real-Time Decision relates to a card balance inquiry attempt, this object
52
+ # contains your response to the inquiry.
53
+ card_balance_inquiry: nil,
49
54
  # If the Real-Time Decision relates to a digital wallet authentication attempt,
50
55
  # this object contains your response to the authentication.
51
56
  digital_wallet_authentication: nil,
@@ -127,6 +127,7 @@ module Increase
127
127
  | :"proof_of_authorization_request.created"
128
128
  | :"proof_of_authorization_request.updated"
129
129
  | :"real_time_decision.card_authorization_requested"
130
+ | :"real_time_decision.card_balance_inquiry_requested"
130
131
  | :"real_time_decision.digital_wallet_token_requested"
131
132
  | :"real_time_decision.digital_wallet_authentication_requested"
132
133
  | :"real_time_decision.card_authentication_requested"
@@ -401,6 +402,9 @@ module Increase
401
402
  # Occurs whenever a Real-Time Decision is created in response to a card authorization.
402
403
  REAL_TIME_DECISION_CARD_AUTHORIZATION_REQUESTED: :"real_time_decision.card_authorization_requested"
403
404
 
405
+ # Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
406
+ REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED: :"real_time_decision.card_balance_inquiry_requested"
407
+
404
408
  # Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
405
409
  REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED: :"real_time_decision.digital_wallet_token_requested"
406
410
 
@@ -160,6 +160,7 @@ module Increase
160
160
  | :"proof_of_authorization_request.created"
161
161
  | :"proof_of_authorization_request.updated"
162
162
  | :"real_time_decision.card_authorization_requested"
163
+ | :"real_time_decision.card_balance_inquiry_requested"
163
164
  | :"real_time_decision.digital_wallet_token_requested"
164
165
  | :"real_time_decision.digital_wallet_authentication_requested"
165
166
  | :"real_time_decision.card_authentication_requested"
@@ -434,6 +435,9 @@ module Increase
434
435
  # Occurs whenever a Real-Time Decision is created in response to a card authorization.
435
436
  REAL_TIME_DECISION_CARD_AUTHORIZATION_REQUESTED: :"real_time_decision.card_authorization_requested"
436
437
 
438
+ # Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
439
+ REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED: :"real_time_decision.card_balance_inquiry_requested"
440
+
437
441
  # Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
438
442
  REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED: :"real_time_decision.digital_wallet_token_requested"
439
443
 
@@ -137,6 +137,7 @@ module Increase
137
137
  | :"proof_of_authorization_request.created"
138
138
  | :"proof_of_authorization_request.updated"
139
139
  | :"real_time_decision.card_authorization_requested"
140
+ | :"real_time_decision.card_balance_inquiry_requested"
140
141
  | :"real_time_decision.digital_wallet_token_requested"
141
142
  | :"real_time_decision.digital_wallet_authentication_requested"
142
143
  | :"real_time_decision.card_authentication_requested"
@@ -411,6 +412,9 @@ module Increase
411
412
  # Occurs whenever a Real-Time Decision is created in response to a card authorization.
412
413
  REAL_TIME_DECISION_CARD_AUTHORIZATION_REQUESTED: :"real_time_decision.card_authorization_requested"
413
414
 
415
+ # Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
416
+ REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED: :"real_time_decision.card_balance_inquiry_requested"
417
+
414
418
  # Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
415
419
  REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED: :"real_time_decision.digital_wallet_token_requested"
416
420
 
@@ -140,6 +140,7 @@ module Increase
140
140
  | :"proof_of_authorization_request.created"
141
141
  | :"proof_of_authorization_request.updated"
142
142
  | :"real_time_decision.card_authorization_requested"
143
+ | :"real_time_decision.card_balance_inquiry_requested"
143
144
  | :"real_time_decision.digital_wallet_token_requested"
144
145
  | :"real_time_decision.digital_wallet_authentication_requested"
145
146
  | :"real_time_decision.card_authentication_requested"
@@ -414,6 +415,9 @@ module Increase
414
415
  # Occurs whenever a Real-Time Decision is created in response to a card authorization.
415
416
  REAL_TIME_DECISION_CARD_AUTHORIZATION_REQUESTED: :"real_time_decision.card_authorization_requested"
416
417
 
418
+ # Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
419
+ REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED: :"real_time_decision.card_balance_inquiry_requested"
420
+
417
421
  # Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
418
422
  REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED: :"real_time_decision.digital_wallet_token_requested"
419
423