Skip to content

Commit 628752d

Browse files
feat(api): updates to Auth Rules and Card provisioning
- removes Auth Performance reports from the API - adds additional response type to Card provisioning - adds new field to 3DS and ASA webhooks
1 parent 8a6b869 commit 628752d

129 files changed

Lines changed: 2982 additions & 10982 deletions

File tree

Some content is hidden

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

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 170
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b1839661d8405911184d5cb7230f16e626a616e5b744634bd7f0bb4e730bf899.yml
3-
openapi_spec_hash: c1c2c5a5c2a4067a714b35f873e3846f
4-
config_hash: 98214f2eab6804b5c0048331e32c08e3
1+
configured_endpoints: 169
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-6432801dcf017d9234739b9f6153a8cfecd91255af4765f24ba5209f3e320b5c.yml
3+
openapi_spec_hash: c2cfee2f044ba15d15b5bfdbd37280c0
4+
config_hash: 8ac73ccdb428816c89c84802c794a3f8

lib/lithic.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@
108108
require_relative "lithic/models/auth_rules/v2_list_response"
109109
require_relative "lithic/models/auth_rules/v2_promote_params"
110110
require_relative "lithic/models/auth_rules/v2_promote_response"
111-
require_relative "lithic/models/auth_rules/v2_report_params"
112-
require_relative "lithic/models/auth_rules/v2_report_response"
113111
require_relative "lithic/models/auth_rules/v2_retrieve_features_params"
114112
require_relative "lithic/models/auth_rules/v2_retrieve_features_response"
115113
require_relative "lithic/models/auth_rules/v2_retrieve_params"
@@ -285,6 +283,7 @@
285283
require_relative "lithic/models/payment_simulate_release_response"
286284
require_relative "lithic/models/payment_simulate_return_params"
287285
require_relative "lithic/models/payment_simulate_return_response"
286+
require_relative "lithic/models/provision_response"
288287
require_relative "lithic/models/reports/settlement/network_total_list_params"
289288
require_relative "lithic/models/reports/settlement/network_total_list_response"
290289
require_relative "lithic/models/reports/settlement/network_total_retrieve_params"

lib/lithic/internal/type/union.rb

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,27 @@ module Type
88
# @example
99
# # `account_activity_list_response` is a `Lithic::Models::AccountActivityListResponse`
1010
# case account_activity_list_response
11-
# when Lithic::Models::AccountActivityListResponse::FinancialTransaction
11+
# when Lithic::Models::AccountActivityListResponse::Internal
1212
# puts(account_activity_list_response.token)
13-
# when Lithic::Models::AccountActivityListResponse::BookTransferTransaction
13+
# when Lithic::BookTransferResponse
1414
# puts(account_activity_list_response.category)
15-
# when Lithic::Models::AccountActivityListResponse::CardTransaction
15+
# when Lithic::Models::AccountActivityListResponse::Card
1616
# # ...
1717
# else
1818
# puts(account_activity_list_response)
1919
# end
20+
#
21+
# @example
22+
# case account_activity_list_response
23+
# in {family: :INTERNAL, token: token, category: category, created: created}
24+
# puts(token)
25+
# in {family: :TRANSFER, token: token, category: category, created: created}
26+
# puts(category)
27+
# in {family: :PAYMENT, token: token, category: category, created: created}
28+
# puts(created)
29+
# else
30+
# puts(account_activity_list_response)
31+
# end
2032
module Union
2133
include Lithic::Internal::Type::Converter
2234
include Lithic::Internal::Util::SorbetRuntimeSupport

lib/lithic/models.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ module Lithic
308308

309309
PaymentSimulateReturnParams = Lithic::Models::PaymentSimulateReturnParams
310310

311+
ProvisionResponse = Lithic::Models::ProvisionResponse
312+
311313
Reports = Lithic::Models::Reports
312314

313315
RequiredDocument = Lithic::Models::RequiredDocument

lib/lithic/models/account_activity_list_response.rb

Lines changed: 47 additions & 1141 deletions
Large diffs are not rendered by default.

lib/lithic/models/account_activity_retrieve_transaction_response.rb

Lines changed: 47 additions & 1151 deletions
Large diffs are not rendered by default.

lib/lithic/models/auth_rules/auth_rule_condition.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class AuthRuleCondition < Lithic::Internal::Type::BaseModel
5252
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
5353
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
5454
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
55+
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
56+
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
57+
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
5558
#
5659
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAttribute, nil]
5760
optional :attribute, enum: -> { Lithic::AuthRules::ConditionalAttribute }

lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ class Condition < Lithic::Internal::Type::BaseModel
5757
# - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
5858
# risk level, with a higher value indicating a higher amount of risk.
5959
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
60+
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
61+
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
62+
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
6063
#
6164
# @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute, nil]
6265
optional :attribute, enum: -> { Lithic::AuthRules::Conditional3DSActionParameters::Condition::Attribute }
@@ -105,6 +108,9 @@ class Condition < Lithic::Internal::Type::BaseModel
105108
# - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
106109
# risk level, with a higher value indicating a higher amount of risk.
107110
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
111+
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
112+
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
113+
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
108114
#
109115
# @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#attribute
110116
module Attribute
@@ -118,6 +124,7 @@ module Attribute
118124
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
119125
RISK_SCORE = :RISK_SCORE
120126
MESSAGE_CATEGORY = :MESSAGE_CATEGORY
127+
ADDRESS_MATCH = :ADDRESS_MATCH
121128

122129
# @!method self.values
123130
# @return [Array<Symbol>]

lib/lithic/models/auth_rules/conditional_attribute.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ module AuthRules
5050
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
5151
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
5252
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
53+
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
54+
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
55+
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
5356
module ConditionalAttribute
5457
extend Lithic::Internal::Type::Enum
5558

@@ -69,6 +72,7 @@ module ConditionalAttribute
6972
PIN_ENTERED = :PIN_ENTERED
7073
PIN_STATUS = :PIN_STATUS
7174
WALLET_TYPE = :WALLET_TYPE
75+
ADDRESS_MATCH = :ADDRESS_MATCH
7276

7377
# @!method self.values
7478
# @return [Array<Symbol>]

lib/lithic/models/auth_rules/v2_apply_response.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ class Condition < Lithic::Internal::Type::BaseModel
250250
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
251251
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
252252
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
253+
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
254+
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
255+
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
253256
#
254257
# @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil]
255258
optional :attribute,
@@ -331,6 +334,9 @@ class Condition < Lithic::Internal::Type::BaseModel
331334
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
332335
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
333336
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
337+
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
338+
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
339+
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
334340
#
335341
# @see Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute
336342
module Attribute
@@ -354,6 +360,7 @@ module Attribute
354360
PIN_STATUS = :PIN_STATUS
355361
WALLET_TYPE = :WALLET_TYPE
356362
TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR
363+
ADDRESS_MATCH = :ADDRESS_MATCH
357364

358365
# @!method self.values
359366
# @return [Array<Symbol>]
@@ -539,6 +546,9 @@ class Condition < Lithic::Internal::Type::BaseModel
539546
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
540547
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
541548
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
549+
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
550+
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
551+
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
542552
#
543553
# @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil]
544554
optional :attribute,
@@ -620,6 +630,9 @@ class Condition < Lithic::Internal::Type::BaseModel
620630
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
621631
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
622632
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
633+
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
634+
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
635+
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
623636
#
624637
# @see Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute
625638
module Attribute
@@ -643,6 +656,7 @@ module Attribute
643656
PIN_STATUS = :PIN_STATUS
644657
WALLET_TYPE = :WALLET_TYPE
645658
TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR
659+
ADDRESS_MATCH = :ADDRESS_MATCH
646660

647661
# @!method self.values
648662
# @return [Array<Symbol>]

0 commit comments

Comments
 (0)