lithic 0.1.0.pre.alpha.53 → 0.1.0.pre.alpha.55
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 +34 -0
- data/README.md +1 -1
- data/lib/lithic/internal/transport/base_client.rb +7 -1
- data/lib/lithic/internal/transport/pooled_net_requester.rb +6 -2
- data/lib/lithic/models/account_activity_list_response.rb +1 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
- data/lib/lithic/models/account_holder_update_response.rb +4 -4
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +252 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +38 -284
- data/lib/lithic/models/auth_rules/v2_create_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +4 -250
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_list_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_update_response.rb +8 -508
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
- data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
- data/lib/lithic/models/book_transfer_response.rb +5 -5
- data/lib/lithic/models/dispute.rb +510 -242
- data/lib/lithic/models/dispute_create_response.rb +326 -0
- data/lib/lithic/models/dispute_delete_response.rb +326 -0
- data/lib/lithic/models/dispute_list_response.rb +326 -0
- data/lib/lithic/models/dispute_retrieve_response.rb +326 -0
- data/lib/lithic/models/dispute_update_response.rb +326 -0
- data/lib/lithic/models/event.rb +213 -69
- data/lib/lithic/models/event_list_params.rb +112 -6
- data/lib/lithic/models/event_subscription.rb +112 -6
- data/lib/lithic/models/events/subscription_create_params.rb +112 -6
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
- data/lib/lithic/models/events/subscription_update_params.rb +112 -6
- data/lib/lithic/models/financial_account.rb +1 -65
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
- data/lib/lithic/models/financial_accounts/loan_tape.rb +99 -3
- data/lib/lithic/models/financial_accounts/statement.rb +66 -2
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
- data/lib/lithic/models/financial_transaction.rb +1 -0
- data/lib/lithic/models/payment.rb +29 -18
- data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
- data/lib/lithic/models/tokenization.rb +189 -23
- data/lib/lithic/models/transaction.rb +12 -116
- data/lib/lithic/models/transactions/events/enhanced_data.rb +9 -9
- data/lib/lithic/models/transfer.rb +1 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
- data/lib/lithic/resources/auth_rules/v2.rb +13 -56
- data/lib/lithic/resources/disputes.rb +10 -10
- data/lib/lithic/resources/payments.rb +5 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +8 -3
- data/manifest.yaml +1 -0
- data/rbi/lithic/internal/transport/base_client.rbi +5 -0
- data/rbi/lithic/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/lithic/internal/type/base_model.rbi +8 -4
- data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +577 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +85 -679
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -575
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
- data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
- data/rbi/lithic/models/book_transfer_response.rbi +14 -11
- data/rbi/lithic/models/dispute.rbi +942 -395
- data/rbi/lithic/models/dispute_create_response.rbi +599 -0
- data/rbi/lithic/models/dispute_delete_response.rbi +599 -0
- data/rbi/lithic/models/dispute_list_response.rbi +582 -0
- data/rbi/lithic/models/dispute_retrieve_response.rbi +601 -0
- data/rbi/lithic/models/dispute_update_response.rbi +599 -0
- data/rbi/lithic/models/event.rbi +348 -111
- data/rbi/lithic/models/event_list_params.rbi +155 -25
- data/rbi/lithic/models/event_subscription.rbi +155 -25
- data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
- data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
- data/rbi/lithic/models/financial_account.rbi +3 -132
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +132 -9
- data/rbi/lithic/models/financial_accounts/statement.rbi +88 -6
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
- data/rbi/lithic/models/financial_transaction.rbi +5 -0
- data/rbi/lithic/models/payment.rbi +52 -28
- data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
- data/rbi/lithic/models/tokenization.rbi +429 -34
- data/rbi/lithic/models/transaction.rbi +22 -246
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +12 -12
- data/rbi/lithic/models/transfer.rbi +5 -0
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +24 -72
- data/rbi/lithic/resources/disputes.rbi +7 -5
- data/rbi/lithic/resources/payments.rbi +6 -0
- data/sig/lithic/internal/transport/base_client.rbs +2 -0
- data/sig/lithic/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/lithic/models/account_activity_list_response.rbs +2 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
- data/sig/lithic/models/account_holder_update_response.rbs +8 -12
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +163 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +22 -188
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -159
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
- data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
- data/sig/lithic/models/book_transfer_response.rbs +7 -7
- data/sig/lithic/models/dispute.rbs +417 -157
- data/sig/lithic/models/dispute_create_response.rbs +210 -0
- data/sig/lithic/models/dispute_delete_response.rbs +210 -0
- data/sig/lithic/models/dispute_list_response.rbs +210 -0
- data/sig/lithic/models/dispute_retrieve_response.rbs +210 -0
- data/sig/lithic/models/dispute_update_response.rbs +210 -0
- data/sig/lithic/models/event.rbs +25 -13
- data/sig/lithic/models/event_list_params.rbs +25 -13
- data/sig/lithic/models/event_subscription.rbs +25 -13
- data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
- data/sig/lithic/models/financial_account.rbs +3 -45
- data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +87 -9
- data/sig/lithic/models/financial_accounts/statement.rbs +58 -6
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
- data/sig/lithic/models/financial_transaction.rbs +2 -0
- data/sig/lithic/models/payment.rbs +16 -12
- data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
- data/sig/lithic/models/tokenization.rbs +160 -13
- data/sig/lithic/models/transaction.rbs +13 -94
- data/sig/lithic/models/transactions/events/enhanced_data.rbs +15 -15
- data/sig/lithic/models/transfer.rbs +2 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
- data/sig/lithic/resources/disputes.rbs +5 -5
- data/sig/lithic/resources/payments.rbs +2 -0
- metadata +23 -11
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
|
@@ -28,12 +28,6 @@ module Lithic
|
|
|
28
28
|
# @return [Time]
|
|
29
29
|
required :created_at, Time
|
|
30
30
|
|
|
31
|
-
# @!attribute device_id
|
|
32
|
-
# The device identifier associated with the tokenization.
|
|
33
|
-
#
|
|
34
|
-
# @return [String, nil]
|
|
35
|
-
required :device_id, String, nil?: true
|
|
36
|
-
|
|
37
31
|
# @!attribute dpan
|
|
38
32
|
# The dynamic pan assigned to the token by the network.
|
|
39
33
|
#
|
|
@@ -47,11 +41,12 @@ module Lithic
|
|
|
47
41
|
required :status, enum: -> { Lithic::Tokenization::Status }
|
|
48
42
|
|
|
49
43
|
# @!attribute token_requestor_name
|
|
50
|
-
# The entity that requested the tokenization.
|
|
51
|
-
# merchant
|
|
44
|
+
# The entity that requested the tokenization. For digital wallets, this will be
|
|
45
|
+
# one of the defined wallet types. For merchant tokenizations, this will be a
|
|
46
|
+
# free-form merchant name string.
|
|
52
47
|
#
|
|
53
|
-
# @return [Symbol, Lithic::Models::Tokenization::TokenRequestorName]
|
|
54
|
-
required :token_requestor_name,
|
|
48
|
+
# @return [Symbol, String, Lithic::Models::Tokenization::TokenRequestorName]
|
|
49
|
+
required :token_requestor_name, union: -> { Lithic::Tokenization::TokenRequestorName }
|
|
55
50
|
|
|
56
51
|
# @!attribute token_unique_reference
|
|
57
52
|
# The network's unique reference for the tokenization.
|
|
@@ -71,14 +66,20 @@ module Lithic
|
|
|
71
66
|
# @return [Time]
|
|
72
67
|
required :updated_at, Time
|
|
73
68
|
|
|
69
|
+
# @!attribute device_id
|
|
70
|
+
# The device identifier associated with the tokenization.
|
|
71
|
+
#
|
|
72
|
+
# @return [String, nil]
|
|
73
|
+
optional :device_id, String, nil?: true
|
|
74
|
+
|
|
74
75
|
# @!attribute digital_card_art_token
|
|
75
|
-
# Specifies the digital card art displayed in the user
|
|
76
|
+
# Specifies the digital card art displayed in the user's digital wallet after
|
|
76
77
|
# tokenization. This will be null if the tokenization was created without an
|
|
77
78
|
# associated digital card art. See
|
|
78
79
|
# [Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
|
|
79
80
|
#
|
|
80
81
|
# @return [String, nil]
|
|
81
|
-
optional :digital_card_art_token, String
|
|
82
|
+
optional :digital_card_art_token, String, nil?: true
|
|
82
83
|
|
|
83
84
|
# @!attribute events
|
|
84
85
|
# A list of events related to the tokenization.
|
|
@@ -92,7 +93,7 @@ module Lithic
|
|
|
92
93
|
# @return [String, nil]
|
|
93
94
|
optional :payment_account_reference_id, String, nil?: true
|
|
94
95
|
|
|
95
|
-
# @!method initialize(token:, account_token:, card_token:, created_at:,
|
|
96
|
+
# @!method initialize(token:, account_token:, card_token:, created_at:, dpan:, status:, token_requestor_name:, token_unique_reference:, tokenization_channel:, updated_at:, device_id: nil, digital_card_art_token: nil, events: nil, payment_account_reference_id: nil)
|
|
96
97
|
# Some parameter documentations has been truncated, see
|
|
97
98
|
# {Lithic::Models::Tokenization} for more details.
|
|
98
99
|
#
|
|
@@ -104,13 +105,11 @@ module Lithic
|
|
|
104
105
|
#
|
|
105
106
|
# @param created_at [Time] Date and time when the tokenization first occurred. UTC time zone.
|
|
106
107
|
#
|
|
107
|
-
# @param device_id [String, nil] The device identifier associated with the tokenization.
|
|
108
|
-
#
|
|
109
108
|
# @param dpan [String, nil] The dynamic pan assigned to the token by the network.
|
|
110
109
|
#
|
|
111
110
|
# @param status [Symbol, Lithic::Models::Tokenization::Status] The status of the tokenization request
|
|
112
111
|
#
|
|
113
|
-
# @param token_requestor_name [Symbol, Lithic::Models::Tokenization::TokenRequestorName] The entity that requested the tokenization.
|
|
112
|
+
# @param token_requestor_name [Symbol, String, Lithic::Models::Tokenization::TokenRequestorName] The entity that requested the tokenization. For digital wallets, this will be on
|
|
114
113
|
#
|
|
115
114
|
# @param token_unique_reference [String] The network's unique reference for the tokenization.
|
|
116
115
|
#
|
|
@@ -118,7 +117,9 @@ module Lithic
|
|
|
118
117
|
#
|
|
119
118
|
# @param updated_at [Time] Latest date and time when the tokenization was updated. UTC time zone.
|
|
120
119
|
#
|
|
121
|
-
# @param
|
|
120
|
+
# @param device_id [String, nil] The device identifier associated with the tokenization.
|
|
121
|
+
#
|
|
122
|
+
# @param digital_card_art_token [String, nil] Specifies the digital card art displayed in the user's digital wallet after toke
|
|
122
123
|
#
|
|
123
124
|
# @param events [Array<Lithic::Models::Tokenization::Event>] A list of events related to the tokenization.
|
|
124
125
|
#
|
|
@@ -142,12 +143,49 @@ module Lithic
|
|
|
142
143
|
# @return [Array<Symbol>]
|
|
143
144
|
end
|
|
144
145
|
|
|
145
|
-
# The entity that requested the tokenization.
|
|
146
|
-
# merchant
|
|
146
|
+
# The entity that requested the tokenization. For digital wallets, this will be
|
|
147
|
+
# one of the defined wallet types. For merchant tokenizations, this will be a
|
|
148
|
+
# free-form merchant name string.
|
|
147
149
|
#
|
|
148
150
|
# @see Lithic::Models::Tokenization#token_requestor_name
|
|
149
151
|
module TokenRequestorName
|
|
150
|
-
extend Lithic::Internal::Type::
|
|
152
|
+
extend Lithic::Internal::Type::Union
|
|
153
|
+
|
|
154
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::AMAZON_ONE }
|
|
155
|
+
|
|
156
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::ANDROID_PAY }
|
|
157
|
+
|
|
158
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::APPLE_PAY }
|
|
159
|
+
|
|
160
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::FACEBOOK }
|
|
161
|
+
|
|
162
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::FITBIT_PAY }
|
|
163
|
+
|
|
164
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::GARMIN_PAY }
|
|
165
|
+
|
|
166
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::GOOGLE_PAY }
|
|
167
|
+
|
|
168
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::MICROSOFT_PAY }
|
|
169
|
+
|
|
170
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::NETFLIX }
|
|
171
|
+
|
|
172
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::SAMSUNG_PAY }
|
|
173
|
+
|
|
174
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::UNKNOWN }
|
|
175
|
+
|
|
176
|
+
variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::VISA_CHECKOUT }
|
|
177
|
+
|
|
178
|
+
# Merchant name for merchant tokenizations
|
|
179
|
+
variant String
|
|
180
|
+
|
|
181
|
+
# @!method self.variants
|
|
182
|
+
# @return [Array(Symbol, String)]
|
|
183
|
+
|
|
184
|
+
define_sorbet_constant!(:Variants) do
|
|
185
|
+
T.type_alias { T.any(Lithic::Tokenization::TokenRequestorName::TaggedSymbol, String) }
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# @!group
|
|
151
189
|
|
|
152
190
|
AMAZON_ONE = :AMAZON_ONE
|
|
153
191
|
ANDROID_PAY = :ANDROID_PAY
|
|
@@ -155,14 +193,14 @@ module Lithic
|
|
|
155
193
|
FACEBOOK = :FACEBOOK
|
|
156
194
|
FITBIT_PAY = :FITBIT_PAY
|
|
157
195
|
GARMIN_PAY = :GARMIN_PAY
|
|
196
|
+
GOOGLE_PAY = :GOOGLE_PAY
|
|
158
197
|
MICROSOFT_PAY = :MICROSOFT_PAY
|
|
159
198
|
NETFLIX = :NETFLIX
|
|
160
199
|
SAMSUNG_PAY = :SAMSUNG_PAY
|
|
161
200
|
UNKNOWN = :UNKNOWN
|
|
162
201
|
VISA_CHECKOUT = :VISA_CHECKOUT
|
|
163
202
|
|
|
164
|
-
# @!
|
|
165
|
-
# @return [Array<Symbol>]
|
|
203
|
+
# @!endgroup
|
|
166
204
|
end
|
|
167
205
|
|
|
168
206
|
# The channel through which the tokenization was made.
|
|
@@ -197,19 +235,45 @@ module Lithic
|
|
|
197
235
|
# @return [Symbol, Lithic::Models::Tokenization::Event::Result, nil]
|
|
198
236
|
optional :result, enum: -> { Lithic::Tokenization::Event::Result }
|
|
199
237
|
|
|
238
|
+
# @!attribute rule_results
|
|
239
|
+
# Results from rules that were evaluated for this tokenization
|
|
240
|
+
#
|
|
241
|
+
# @return [Array<Lithic::Models::Tokenization::Event::RuleResult>, nil]
|
|
242
|
+
optional :rule_results, -> { Lithic::Internal::Type::ArrayOf[Lithic::Tokenization::Event::RuleResult] }
|
|
243
|
+
|
|
244
|
+
# @!attribute tokenization_decline_reasons
|
|
245
|
+
# List of reasons why the tokenization was declined
|
|
246
|
+
#
|
|
247
|
+
# @return [Array<Symbol, Lithic::Models::Tokenization::Event::TokenizationDeclineReason>, nil]
|
|
248
|
+
optional :tokenization_decline_reasons,
|
|
249
|
+
-> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Tokenization::Event::TokenizationDeclineReason] }
|
|
250
|
+
|
|
251
|
+
# @!attribute tokenization_tfa_reasons
|
|
252
|
+
# List of reasons why two-factor authentication was required
|
|
253
|
+
#
|
|
254
|
+
# @return [Array<Symbol, Lithic::Models::Tokenization::Event::TokenizationTfaReason>, nil]
|
|
255
|
+
optional :tokenization_tfa_reasons,
|
|
256
|
+
-> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Tokenization::Event::TokenizationTfaReason] }
|
|
257
|
+
|
|
200
258
|
# @!attribute type
|
|
201
259
|
# Enum representing the type of tokenization event that occurred
|
|
202
260
|
#
|
|
203
261
|
# @return [Symbol, Lithic::Models::Tokenization::Event::Type, nil]
|
|
204
262
|
optional :type, enum: -> { Lithic::Tokenization::Event::Type }
|
|
205
263
|
|
|
206
|
-
# @!method initialize(token: nil, created_at: nil, result: nil, type: nil)
|
|
264
|
+
# @!method initialize(token: nil, created_at: nil, result: nil, rule_results: nil, tokenization_decline_reasons: nil, tokenization_tfa_reasons: nil, type: nil)
|
|
207
265
|
# @param token [String] Globally unique identifier for a Tokenization Event
|
|
208
266
|
#
|
|
209
267
|
# @param created_at [Time] Date and time when the tokenization event first occurred. UTC time zone.
|
|
210
268
|
#
|
|
211
269
|
# @param result [Symbol, Lithic::Models::Tokenization::Event::Result] Enum representing the result of the tokenization event
|
|
212
270
|
#
|
|
271
|
+
# @param rule_results [Array<Lithic::Models::Tokenization::Event::RuleResult>] Results from rules that were evaluated for this tokenization
|
|
272
|
+
#
|
|
273
|
+
# @param tokenization_decline_reasons [Array<Symbol, Lithic::Models::Tokenization::Event::TokenizationDeclineReason>] List of reasons why the tokenization was declined
|
|
274
|
+
#
|
|
275
|
+
# @param tokenization_tfa_reasons [Array<Symbol, Lithic::Models::Tokenization::Event::TokenizationTfaReason>] List of reasons why two-factor authentication was required
|
|
276
|
+
#
|
|
213
277
|
# @param type [Symbol, Lithic::Models::Tokenization::Event::Type] Enum representing the type of tokenization event that occurred
|
|
214
278
|
|
|
215
279
|
# Enum representing the result of the tokenization event
|
|
@@ -235,6 +299,108 @@ module Lithic
|
|
|
235
299
|
# @return [Array<Symbol>]
|
|
236
300
|
end
|
|
237
301
|
|
|
302
|
+
class RuleResult < Lithic::Internal::Type::BaseModel
|
|
303
|
+
# @!attribute auth_rule_token
|
|
304
|
+
# The Auth Rule Token associated with the rule. If this is set to null, then the
|
|
305
|
+
# result was not associated with a customer-configured rule. This may happen in
|
|
306
|
+
# cases where a tokenization is declined or requires TFA due to a
|
|
307
|
+
# Lithic-configured security or compliance rule, for example.
|
|
308
|
+
#
|
|
309
|
+
# @return [String, nil]
|
|
310
|
+
required :auth_rule_token, String, nil?: true
|
|
311
|
+
|
|
312
|
+
# @!attribute explanation
|
|
313
|
+
# A human-readable explanation outlining the motivation for the rule's result
|
|
314
|
+
#
|
|
315
|
+
# @return [String, nil]
|
|
316
|
+
required :explanation, String, nil?: true
|
|
317
|
+
|
|
318
|
+
# @!attribute name
|
|
319
|
+
# The name for the rule, if any was configured
|
|
320
|
+
#
|
|
321
|
+
# @return [String, nil]
|
|
322
|
+
required :name, String, nil?: true
|
|
323
|
+
|
|
324
|
+
# @!attribute result
|
|
325
|
+
# The result associated with this rule
|
|
326
|
+
#
|
|
327
|
+
# @return [Symbol, Lithic::Models::Tokenization::Event::RuleResult::Result]
|
|
328
|
+
required :result, enum: -> { Lithic::Tokenization::Event::RuleResult::Result }
|
|
329
|
+
|
|
330
|
+
# @!method initialize(auth_rule_token:, explanation:, name:, result:)
|
|
331
|
+
# Some parameter documentations has been truncated, see
|
|
332
|
+
# {Lithic::Models::Tokenization::Event::RuleResult} for more details.
|
|
333
|
+
#
|
|
334
|
+
# @param auth_rule_token [String, nil] The Auth Rule Token associated with the rule. If this is set to null, then the r
|
|
335
|
+
#
|
|
336
|
+
# @param explanation [String, nil] A human-readable explanation outlining the motivation for the rule's result
|
|
337
|
+
#
|
|
338
|
+
# @param name [String, nil] The name for the rule, if any was configured
|
|
339
|
+
#
|
|
340
|
+
# @param result [Symbol, Lithic::Models::Tokenization::Event::RuleResult::Result] The result associated with this rule
|
|
341
|
+
|
|
342
|
+
# The result associated with this rule
|
|
343
|
+
#
|
|
344
|
+
# @see Lithic::Models::Tokenization::Event::RuleResult#result
|
|
345
|
+
module Result
|
|
346
|
+
extend Lithic::Internal::Type::Enum
|
|
347
|
+
|
|
348
|
+
APPROVED = :APPROVED
|
|
349
|
+
DECLINED = :DECLINED
|
|
350
|
+
REQUIRE_TFA = :REQUIRE_TFA
|
|
351
|
+
ERROR = :ERROR
|
|
352
|
+
|
|
353
|
+
# @!method self.values
|
|
354
|
+
# @return [Array<Symbol>]
|
|
355
|
+
end
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Reason code for why a tokenization was declined
|
|
359
|
+
module TokenizationDeclineReason
|
|
360
|
+
extend Lithic::Internal::Type::Enum
|
|
361
|
+
|
|
362
|
+
ACCOUNT_SCORE_1 = :ACCOUNT_SCORE_1
|
|
363
|
+
DEVICE_SCORE_1 = :DEVICE_SCORE_1
|
|
364
|
+
ALL_WALLET_DECLINE_REASONS_PRESENT = :ALL_WALLET_DECLINE_REASONS_PRESENT
|
|
365
|
+
WALLET_RECOMMENDED_DECISION_RED = :WALLET_RECOMMENDED_DECISION_RED
|
|
366
|
+
CVC_MISMATCH = :CVC_MISMATCH
|
|
367
|
+
CARD_EXPIRY_MONTH_MISMATCH = :CARD_EXPIRY_MONTH_MISMATCH
|
|
368
|
+
CARD_EXPIRY_YEAR_MISMATCH = :CARD_EXPIRY_YEAR_MISMATCH
|
|
369
|
+
CARD_INVALID_STATE = :CARD_INVALID_STATE
|
|
370
|
+
CUSTOMER_RED_PATH = :CUSTOMER_RED_PATH
|
|
371
|
+
INVALID_CUSTOMER_RESPONSE = :INVALID_CUSTOMER_RESPONSE
|
|
372
|
+
NETWORK_FAILURE = :NETWORK_FAILURE
|
|
373
|
+
GENERIC_DECLINE = :GENERIC_DECLINE
|
|
374
|
+
DIGITAL_CARD_ART_REQUIRED = :DIGITAL_CARD_ART_REQUIRED
|
|
375
|
+
|
|
376
|
+
# @!method self.values
|
|
377
|
+
# @return [Array<Symbol>]
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# Reason code for why a tokenization required two-factor authentication
|
|
381
|
+
module TokenizationTfaReason
|
|
382
|
+
extend Lithic::Internal::Type::Enum
|
|
383
|
+
|
|
384
|
+
WALLET_RECOMMENDED_TFA = :WALLET_RECOMMENDED_TFA
|
|
385
|
+
SUSPICIOUS_ACTIVITY = :SUSPICIOUS_ACTIVITY
|
|
386
|
+
DEVICE_RECENTLY_LOST = :DEVICE_RECENTLY_LOST
|
|
387
|
+
TOO_MANY_RECENT_ATTEMPTS = :TOO_MANY_RECENT_ATTEMPTS
|
|
388
|
+
TOO_MANY_RECENT_TOKENS = :TOO_MANY_RECENT_TOKENS
|
|
389
|
+
TOO_MANY_DIFFERENT_CARDHOLDERS = :TOO_MANY_DIFFERENT_CARDHOLDERS
|
|
390
|
+
OUTSIDE_HOME_TERRITORY = :OUTSIDE_HOME_TERRITORY
|
|
391
|
+
HAS_SUSPENDED_TOKENS = :HAS_SUSPENDED_TOKENS
|
|
392
|
+
HIGH_RISK = :HIGH_RISK
|
|
393
|
+
ACCOUNT_SCORE_LOW = :ACCOUNT_SCORE_LOW
|
|
394
|
+
DEVICE_SCORE_LOW = :DEVICE_SCORE_LOW
|
|
395
|
+
CARD_STATE_TFA = :CARD_STATE_TFA
|
|
396
|
+
HARDCODED_TFA = :HARDCODED_TFA
|
|
397
|
+
CUSTOMER_RULE_TFA = :CUSTOMER_RULE_TFA
|
|
398
|
+
DEVICE_HOST_CARD_EMULATION = :DEVICE_HOST_CARD_EMULATION
|
|
399
|
+
|
|
400
|
+
# @!method self.values
|
|
401
|
+
# @return [Array<Symbol>]
|
|
402
|
+
end
|
|
403
|
+
|
|
238
404
|
# Enum representing the type of tokenization event that occurred
|
|
239
405
|
#
|
|
240
406
|
# @see Lithic::Models::Tokenization::Event#type
|
|
@@ -378,23 +378,12 @@ module Lithic
|
|
|
378
378
|
|
|
379
379
|
# @see Lithic::Models::Transaction#cardholder_authentication
|
|
380
380
|
class CardholderAuthentication < Lithic::Internal::Type::BaseModel
|
|
381
|
-
# @!attribute
|
|
382
|
-
#
|
|
383
|
-
#
|
|
384
|
-
# The 3DS version used for the authentication
|
|
385
|
-
#
|
|
386
|
-
# @return [String, nil]
|
|
387
|
-
required :three_ds_version, String, api_name: :"3ds_version", nil?: true
|
|
388
|
-
|
|
389
|
-
# @!attribute acquirer_exemption
|
|
390
|
-
# @deprecated
|
|
391
|
-
#
|
|
392
|
-
# Whether an acquirer exemption applied to the transaction. Not currently
|
|
393
|
-
# populated and will be removed in the future.
|
|
381
|
+
# @!attribute authentication_method
|
|
382
|
+
# Indicates the method used to authenticate the cardholder.
|
|
394
383
|
#
|
|
395
|
-
# @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::
|
|
396
|
-
required :
|
|
397
|
-
enum: -> { Lithic::Transaction::CardholderAuthentication::
|
|
384
|
+
# @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationMethod]
|
|
385
|
+
required :authentication_method,
|
|
386
|
+
enum: -> { Lithic::Transaction::CardholderAuthentication::AuthenticationMethod }
|
|
398
387
|
|
|
399
388
|
# @!attribute authentication_result
|
|
400
389
|
# Indicates the outcome of the 3DS authentication process.
|
|
@@ -433,40 +422,11 @@ module Lithic
|
|
|
433
422
|
# @return [String, nil]
|
|
434
423
|
required :three_ds_authentication_token, String, nil?: true
|
|
435
424
|
|
|
436
|
-
# @!
|
|
437
|
-
# @deprecated
|
|
438
|
-
#
|
|
439
|
-
# Indicates whether a 3DS challenge flow was used, and if so, what the
|
|
440
|
-
# verification method was. (deprecated, use `authentication_result`)
|
|
441
|
-
#
|
|
442
|
-
# @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::VerificationAttempted]
|
|
443
|
-
required :verification_attempted,
|
|
444
|
-
enum: -> { Lithic::Transaction::CardholderAuthentication::VerificationAttempted }
|
|
445
|
-
|
|
446
|
-
# @!attribute verification_result
|
|
447
|
-
# @deprecated
|
|
448
|
-
#
|
|
449
|
-
# Indicates whether a transaction is considered 3DS authenticated. (deprecated,
|
|
450
|
-
# use `authentication_result`)
|
|
451
|
-
#
|
|
452
|
-
# @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::VerificationResult]
|
|
453
|
-
required :verification_result,
|
|
454
|
-
enum: -> { Lithic::Transaction::CardholderAuthentication::VerificationResult }
|
|
455
|
-
|
|
456
|
-
# @!attribute authentication_method
|
|
457
|
-
# Indicates the method used to authenticate the cardholder.
|
|
458
|
-
#
|
|
459
|
-
# @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationMethod, nil]
|
|
460
|
-
optional :authentication_method,
|
|
461
|
-
enum: -> { Lithic::Transaction::CardholderAuthentication::AuthenticationMethod }
|
|
462
|
-
|
|
463
|
-
# @!method initialize(three_ds_version:, acquirer_exemption:, authentication_result:, decision_made_by:, liability_shift:, three_ds_authentication_token:, verification_attempted:, verification_result:, authentication_method: nil)
|
|
425
|
+
# @!method initialize(authentication_method:, authentication_result:, decision_made_by:, liability_shift:, three_ds_authentication_token:)
|
|
464
426
|
# Some parameter documentations has been truncated, see
|
|
465
427
|
# {Lithic::Models::Transaction::CardholderAuthentication} for more details.
|
|
466
428
|
#
|
|
467
|
-
# @param
|
|
468
|
-
#
|
|
469
|
-
# @param acquirer_exemption [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AcquirerExemption] Whether an acquirer exemption applied to the transaction. Not currently populate
|
|
429
|
+
# @param authentication_method [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationMethod] Indicates the method used to authenticate the cardholder.
|
|
470
430
|
#
|
|
471
431
|
# @param authentication_result [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationResult] Indicates the outcome of the 3DS authentication process.
|
|
472
432
|
#
|
|
@@ -475,30 +435,16 @@ module Lithic
|
|
|
475
435
|
# @param liability_shift [Symbol, Lithic::Models::Transaction::CardholderAuthentication::LiabilityShift] Indicates whether chargeback liability shift applies to the transaction. Possibl
|
|
476
436
|
#
|
|
477
437
|
# @param three_ds_authentication_token [String, nil] Unique identifier you can use to match a given 3DS authentication (available via
|
|
478
|
-
#
|
|
479
|
-
# @param verification_attempted [Symbol, Lithic::Models::Transaction::CardholderAuthentication::VerificationAttempted] Indicates whether a 3DS challenge flow was used, and if so, what the verificatio
|
|
480
|
-
#
|
|
481
|
-
# @param verification_result [Symbol, Lithic::Models::Transaction::CardholderAuthentication::VerificationResult] Indicates whether a transaction is considered 3DS authenticated. (deprecated, us
|
|
482
|
-
#
|
|
483
|
-
# @param authentication_method [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationMethod] Indicates the method used to authenticate the cardholder.
|
|
484
438
|
|
|
485
|
-
#
|
|
486
|
-
#
|
|
487
|
-
# Whether an acquirer exemption applied to the transaction. Not currently
|
|
488
|
-
# populated and will be removed in the future.
|
|
439
|
+
# Indicates the method used to authenticate the cardholder.
|
|
489
440
|
#
|
|
490
|
-
# @see Lithic::Models::Transaction::CardholderAuthentication#
|
|
491
|
-
module
|
|
441
|
+
# @see Lithic::Models::Transaction::CardholderAuthentication#authentication_method
|
|
442
|
+
module AuthenticationMethod
|
|
492
443
|
extend Lithic::Internal::Type::Enum
|
|
493
444
|
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
MERCHANT_INITIATED_TRANSACTION = :MERCHANT_INITIATED_TRANSACTION
|
|
445
|
+
FRICTIONLESS = :FRICTIONLESS
|
|
446
|
+
CHALLENGE = :CHALLENGE
|
|
497
447
|
NONE = :NONE
|
|
498
|
-
RECURRING_PAYMENT = :RECURRING_PAYMENT
|
|
499
|
-
SECURE_CORPORATE_PAYMENT = :SECURE_CORPORATE_PAYMENT
|
|
500
|
-
STRONG_CUSTOMER_AUTHENTICATION_DELEGATION = :STRONG_CUSTOMER_AUTHENTICATION_DELEGATION
|
|
501
|
-
TRANSACTION_RISK_ANALYSIS = :TRANSACTION_RISK_ANALYSIS
|
|
502
448
|
|
|
503
449
|
# @!method self.values
|
|
504
450
|
# @return [Array<Symbol>]
|
|
@@ -558,56 +504,6 @@ module Lithic
|
|
|
558
504
|
# @!method self.values
|
|
559
505
|
# @return [Array<Symbol>]
|
|
560
506
|
end
|
|
561
|
-
|
|
562
|
-
# @deprecated
|
|
563
|
-
#
|
|
564
|
-
# Indicates whether a 3DS challenge flow was used, and if so, what the
|
|
565
|
-
# verification method was. (deprecated, use `authentication_result`)
|
|
566
|
-
#
|
|
567
|
-
# @see Lithic::Models::Transaction::CardholderAuthentication#verification_attempted
|
|
568
|
-
module VerificationAttempted
|
|
569
|
-
extend Lithic::Internal::Type::Enum
|
|
570
|
-
|
|
571
|
-
NONE = :NONE
|
|
572
|
-
OTHER = :OTHER
|
|
573
|
-
|
|
574
|
-
# @!method self.values
|
|
575
|
-
# @return [Array<Symbol>]
|
|
576
|
-
end
|
|
577
|
-
|
|
578
|
-
# @deprecated
|
|
579
|
-
#
|
|
580
|
-
# Indicates whether a transaction is considered 3DS authenticated. (deprecated,
|
|
581
|
-
# use `authentication_result`)
|
|
582
|
-
#
|
|
583
|
-
# @see Lithic::Models::Transaction::CardholderAuthentication#verification_result
|
|
584
|
-
module VerificationResult
|
|
585
|
-
extend Lithic::Internal::Type::Enum
|
|
586
|
-
|
|
587
|
-
CANCELLED = :CANCELLED
|
|
588
|
-
FAILED = :FAILED
|
|
589
|
-
FRICTIONLESS = :FRICTIONLESS
|
|
590
|
-
NOT_ATTEMPTED = :NOT_ATTEMPTED
|
|
591
|
-
REJECTED = :REJECTED
|
|
592
|
-
SUCCESS = :SUCCESS
|
|
593
|
-
|
|
594
|
-
# @!method self.values
|
|
595
|
-
# @return [Array<Symbol>]
|
|
596
|
-
end
|
|
597
|
-
|
|
598
|
-
# Indicates the method used to authenticate the cardholder.
|
|
599
|
-
#
|
|
600
|
-
# @see Lithic::Models::Transaction::CardholderAuthentication#authentication_method
|
|
601
|
-
module AuthenticationMethod
|
|
602
|
-
extend Lithic::Internal::Type::Enum
|
|
603
|
-
|
|
604
|
-
FRICTIONLESS = :FRICTIONLESS
|
|
605
|
-
CHALLENGE = :CHALLENGE
|
|
606
|
-
NONE = :NONE
|
|
607
|
-
|
|
608
|
-
# @!method self.values
|
|
609
|
-
# @return [Array<Symbol>]
|
|
610
|
-
end
|
|
611
507
|
end
|
|
612
508
|
|
|
613
509
|
# @see Lithic::Models::Transaction#merchant
|
|
@@ -91,8 +91,8 @@ module Lithic
|
|
|
91
91
|
# @!attribute amount
|
|
92
92
|
# The price of the item purchased in merchant currency.
|
|
93
93
|
#
|
|
94
|
-
# @return [
|
|
95
|
-
optional :amount,
|
|
94
|
+
# @return [String, nil]
|
|
95
|
+
optional :amount, String
|
|
96
96
|
|
|
97
97
|
# @!attribute description
|
|
98
98
|
# A human-readable description of the item.
|
|
@@ -109,19 +109,19 @@ module Lithic
|
|
|
109
109
|
# @!attribute quantity
|
|
110
110
|
# The quantity of the item purchased.
|
|
111
111
|
#
|
|
112
|
-
# @return [
|
|
113
|
-
optional :quantity,
|
|
112
|
+
# @return [String, nil]
|
|
113
|
+
optional :quantity, String
|
|
114
114
|
|
|
115
115
|
# @!method initialize(amount: nil, description: nil, product_code: nil, quantity: nil)
|
|
116
116
|
# An L2/L3 enhanced commercial data line item.
|
|
117
117
|
#
|
|
118
|
-
# @param amount [
|
|
118
|
+
# @param amount [String] The price of the item purchased in merchant currency.
|
|
119
119
|
#
|
|
120
120
|
# @param description [String] A human-readable description of the item.
|
|
121
121
|
#
|
|
122
122
|
# @param product_code [String] An identifier for the item purchased.
|
|
123
123
|
#
|
|
124
|
-
# @param quantity [
|
|
124
|
+
# @param quantity [String] The quantity of the item purchased.
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
# @see Lithic::Models::Transactions::Events::EnhancedData::Common#tax
|
|
@@ -253,8 +253,8 @@ module Lithic
|
|
|
253
253
|
# @!attribute quantity
|
|
254
254
|
# The quantity of fuel purchased.
|
|
255
255
|
#
|
|
256
|
-
# @return [
|
|
257
|
-
optional :quantity,
|
|
256
|
+
# @return [String, nil]
|
|
257
|
+
optional :quantity, String
|
|
258
258
|
|
|
259
259
|
# @!attribute type
|
|
260
260
|
# The type of fuel purchased.
|
|
@@ -276,7 +276,7 @@ module Lithic
|
|
|
276
276
|
optional :unit_price, Integer
|
|
277
277
|
|
|
278
278
|
# @!method initialize(quantity: nil, type: nil, unit_of_measure: nil, unit_price: nil)
|
|
279
|
-
# @param quantity [
|
|
279
|
+
# @param quantity [String] The quantity of fuel purchased.
|
|
280
280
|
#
|
|
281
281
|
# @param type [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::Type] The type of fuel purchased.
|
|
282
282
|
#
|
|
@@ -216,6 +216,7 @@ module Lithic
|
|
|
216
216
|
ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED
|
|
217
217
|
ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
|
|
218
218
|
ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED
|
|
219
|
+
ACH_RECEIPT_RELEASED = :ACH_RECEIPT_RELEASED
|
|
219
220
|
ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
|
|
220
221
|
ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
|
|
221
222
|
ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
|
|
@@ -33,7 +33,7 @@ module Lithic
|
|
|
33
33
|
#
|
|
34
34
|
# @overload create(auth_rule_token, end_: nil, start: nil, request_options: {})
|
|
35
35
|
#
|
|
36
|
-
# @param auth_rule_token [String]
|
|
36
|
+
# @param auth_rule_token [String]
|
|
37
37
|
#
|
|
38
38
|
# @param end_ [Time] The end time of the backtest.
|
|
39
39
|
#
|
|
@@ -76,10 +76,8 @@ module Lithic
|
|
|
76
76
|
#
|
|
77
77
|
# @overload retrieve(auth_rule_backtest_token, auth_rule_token:, request_options: {})
|
|
78
78
|
#
|
|
79
|
-
# @param auth_rule_backtest_token [String]
|
|
80
|
-
#
|
|
81
|
-
# @param auth_rule_token [String] Globally unique identifier for the Auth Rule.
|
|
82
|
-
#
|
|
79
|
+
# @param auth_rule_backtest_token [String]
|
|
80
|
+
# @param auth_rule_token [String]
|
|
83
81
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
84
82
|
#
|
|
85
83
|
# @return [Lithic::Models::AuthRules::V2::BacktestResults]
|