increase 1.156.0 → 1.158.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_payment.rb +1313 -255
- data/lib/increase/models/event.rb +3 -0
- data/lib/increase/models/event_list_params.rb +3 -0
- data/lib/increase/models/event_subscription.rb +3 -0
- data/lib/increase/models/event_subscription_create_params.rb +3 -0
- data/lib/increase/models/real_time_decision.rb +1053 -8
- data/lib/increase/models/real_time_decision_action_params.rb +68 -1
- data/lib/increase/resources/real_time_decisions.rb +3 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/card_payment.rbi +2275 -244
- data/rbi/increase/models/event.rbi +7 -0
- data/rbi/increase/models/event_list_params.rbi +7 -0
- data/rbi/increase/models/event_subscription.rbi +7 -0
- data/rbi/increase/models/event_subscription_create_params.rbi +7 -0
- data/rbi/increase/models/real_time_decision.rbi +2033 -10
- data/rbi/increase/models/real_time_decision_action_params.rbi +158 -0
- data/rbi/increase/resources/real_time_decisions.rbi +5 -0
- data/sig/increase/models/card_payment.rbs +940 -254
- data/sig/increase/models/event.rbs +4 -0
- data/sig/increase/models/event_list_params.rbs +4 -0
- data/sig/increase/models/event_subscription.rbs +4 -0
- data/sig/increase/models/event_subscription_create_params.rbs +4 -0
- data/sig/increase/models/real_time_decision.rbs +694 -10
- data/sig/increase/models/real_time_decision_action_params.rbs +59 -0
- data/sig/increase/resources/real_time_decisions.rbs +1 -0
- metadata +1 -1
|
@@ -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,
|