Skip to content

Commit 13b07cb

Browse files
feat(api): add WALLET_RECOMMENDATION_REASONS attribute for tokenization rules
feat(api): provide a unified model for AuthRule fix(api): make certain payoff fields nullable fix(api): fix examples in spec that were not fully valid
1 parent 635f951 commit 13b07cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+994
-6494
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 172
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-9791980619fc7ce8afb01f77dfe3c660a540975327378287cb666136ae4b0a99.yml
3-
openapi_spec_hash: 0752074b2a7b0534329a1e3176c94a62
4-
config_hash: aab05d0cf41f1f6b9f4d5677273c1600
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-a9de2732e7a28b7fc5b8b7b171781d617337b6223d82ef7d6a554d0bd2b33bab.yml
3+
openapi_spec_hash: fc6111d286c7002cd854af23841d137e
4+
config_hash: f6f5c7f37033e89a3cf91a48371a718a

lib/lithic.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,16 @@
105105
require_relative "lithic/models/auth_rules/v2/backtest_results"
106106
require_relative "lithic/models/auth_rules/v2/backtest_retrieve_params"
107107
require_relative "lithic/models/auth_rules/v2_create_params"
108-
require_relative "lithic/models/auth_rules/v2_create_response"
109108
require_relative "lithic/models/auth_rules/v2_delete_params"
110109
require_relative "lithic/models/auth_rules/v2_draft_params"
111-
require_relative "lithic/models/auth_rules/v2_draft_response"
112110
require_relative "lithic/models/auth_rules/v2_list_params"
113-
require_relative "lithic/models/auth_rules/v2_list_response"
114111
require_relative "lithic/models/auth_rules/v2_promote_params"
115-
require_relative "lithic/models/auth_rules/v2_promote_response"
116112
require_relative "lithic/models/auth_rules/v2_retrieve_features_params"
117113
require_relative "lithic/models/auth_rules/v2_retrieve_features_response"
118114
require_relative "lithic/models/auth_rules/v2_retrieve_params"
119115
require_relative "lithic/models/auth_rules/v2_retrieve_report_params"
120116
require_relative "lithic/models/auth_rules/v2_retrieve_report_response"
121-
require_relative "lithic/models/auth_rules/v2_retrieve_response"
122117
require_relative "lithic/models/auth_rules/v2_update_params"
123-
require_relative "lithic/models/auth_rules/v2_update_response"
124118
require_relative "lithic/models/auth_rules/velocity_limit_params"
125119
require_relative "lithic/models/auth_rules/velocity_limit_period"
126120
require_relative "lithic/models/auth_stream_enrollment_retrieve_secret_params"
@@ -339,10 +333,8 @@
339333
require_relative "lithic/models/tokenization_retrieve_params"
340334
require_relative "lithic/models/tokenization_secret"
341335
require_relative "lithic/models/tokenization_simulate_params"
342-
require_relative "lithic/models/tokenization_simulate_response"
343336
require_relative "lithic/models/tokenization_unpause_params"
344337
require_relative "lithic/models/tokenization_update_digital_card_art_params"
345-
require_relative "lithic/models/tokenization_update_digital_card_art_response"
346338
require_relative "lithic/models/transaction_expire_authorization_params"
347339
require_relative "lithic/models/transaction_list_params"
348340
require_relative "lithic/models/transaction_retrieve_params"

lib/lithic/models/auth_rules/auth_rule.rb

Lines changed: 224 additions & 49 deletions
Large diffs are not rendered by default.

lib/lithic/models/auth_rules/conditional_operation.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ module ConditionalOperation
1717
IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
1818
IS_LESS_THAN = :IS_LESS_THAN
1919
IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
20+
CONTAINS_ANY = :CONTAINS_ANY
21+
CONTAINS_ALL = :CONTAINS_ALL
22+
CONTAINS_NONE = :CONTAINS_NONE
2023

2124
# @!method self.values
2225
# @return [Array<Symbol>]

lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,14 @@ class Condition < Lithic::Internal::Type::BaseModel
175175
# - `WALLET_RECOMMENDED_DECISION`: The decision recommended by the digital wallet
176176
# provider. Valid values include APPROVE, DECLINE,
177177
# REQUIRE_ADDITIONAL_AUTHENTICATION.
178+
# - `WALLET_RECOMMENDATION_REASONS`: List of reasons provided by the digital
179+
# wallet provider for the recommended decision. Valid values are
180+
# `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`, `ACCOUNT_TOO_NEW`,
181+
# `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
182+
# `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`, `LOW_ACCOUNT_SCORE`,
183+
# `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`, `SUSPICIOUS_ACTIVITY`,
184+
# `TOO_MANY_DIFFERENT_CARDHOLDERS`, `TOO_MANY_RECENT_ATTEMPTS`,
185+
# `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`.
178186
# - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.
179187
# - `WALLET_TOKEN_STATUS`: The current status of the wallet token.
180188
#
@@ -227,6 +235,14 @@ class Condition < Lithic::Internal::Type::BaseModel
227235
# - `WALLET_RECOMMENDED_DECISION`: The decision recommended by the digital wallet
228236
# provider. Valid values include APPROVE, DECLINE,
229237
# REQUIRE_ADDITIONAL_AUTHENTICATION.
238+
# - `WALLET_RECOMMENDATION_REASONS`: List of reasons provided by the digital
239+
# wallet provider for the recommended decision. Valid values are
240+
# `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`, `ACCOUNT_TOO_NEW`,
241+
# `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
242+
# `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`, `LOW_ACCOUNT_SCORE`,
243+
# `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`, `SUSPICIOUS_ACTIVITY`,
244+
# `TOO_MANY_DIFFERENT_CARDHOLDERS`, `TOO_MANY_RECENT_ATTEMPTS`,
245+
# `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`.
230246
# - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.
231247
# - `WALLET_TOKEN_STATUS`: The current status of the wallet token.
232248
#
@@ -241,6 +257,7 @@ module Attribute
241257
WALLET_ACCOUNT_SCORE = :WALLET_ACCOUNT_SCORE
242258
WALLET_DEVICE_SCORE = :WALLET_DEVICE_SCORE
243259
WALLET_RECOMMENDED_DECISION = :WALLET_RECOMMENDED_DECISION
260+
WALLET_RECOMMENDATION_REASONS = :WALLET_RECOMMENDATION_REASONS
244261
TOKEN_REQUESTOR_ID = :TOKEN_REQUESTOR_ID
245262
WALLET_TOKEN_STATUS = :WALLET_TOKEN_STATUS
246263

lib/lithic/models/auth_rules/v2_create_response.rb

Lines changed: 0 additions & 280 deletions
This file was deleted.

0 commit comments

Comments
 (0)