Skip to content

Commit 184cf61

Browse files
feat(api): add IS_NEW_MERCHANT attribute to auth rules conditional authorization
1 parent 45a3647 commit 184cf61

4 files changed

Lines changed: 30 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 191
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-a46ebb10f6bb217a591206f0574450c324f108dbd32a2d62727cd8186d85e94f.yml
3-
openapi_spec_hash: f320c173152f74b0799166b6ef5b82cd
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-92d7ce0702a494edb7beb0ad484c4f24aca65777197d40b2108d05c13c3fa505.yml
3+
openapi_spec_hash: 35e4b9edb38ef23f528fcfbfeaabac02
44
config_hash: ac8326134e692f3f3bdec82396bbec80

lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ class Condition < Lithic::Internal::Type::BaseModel
132132
# transaction for the entity. Requires `parameters.scope`.
133133
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
134134
# the entity's transaction history. Requires `parameters.scope`.
135+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
136+
# card's approved transaction history (capped at the 1000 most recently seen
137+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
138+
# `parameters` required.
135139
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
136140
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
137141
#
@@ -271,6 +275,10 @@ class Condition < Lithic::Internal::Type::BaseModel
271275
# transaction for the entity. Requires `parameters.scope`.
272276
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
273277
# the entity's transaction history. Requires `parameters.scope`.
278+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
279+
# card's approved transaction history (capped at the 1000 most recently seen
280+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
281+
# `parameters` required.
274282
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
275283
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
276284
#
@@ -313,6 +321,7 @@ module Attribute
313321
CONSECUTIVE_DECLINES = :CONSECUTIVE_DECLINES
314322
TIME_SINCE_LAST_TRANSACTION = :TIME_SINCE_LAST_TRANSACTION
315323
DISTINCT_COUNTRY_COUNT = :DISTINCT_COUNTRY_COUNT
324+
IS_NEW_MERCHANT = :IS_NEW_MERCHANT
316325
THREE_DS_SUCCESS_RATE = :THREE_DS_SUCCESS_RATE
317326

318327
# @!method self.values

rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ module Lithic
201201
# transaction for the entity. Requires `parameters.scope`.
202202
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
203203
# the entity's transaction history. Requires `parameters.scope`.
204+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
205+
# card's approved transaction history (capped at the 1000 most recently seen
206+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
207+
# `parameters` required.
204208
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
205209
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
206210
sig do
@@ -347,6 +351,10 @@ module Lithic
347351
# transaction for the entity. Requires `parameters.scope`.
348352
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
349353
# the entity's transaction history. Requires `parameters.scope`.
354+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
355+
# card's approved transaction history (capped at the 1000 most recently seen
356+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
357+
# `parameters` required.
350358
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
351359
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
352360
attribute:,
@@ -474,6 +482,10 @@ module Lithic
474482
# transaction for the entity. Requires `parameters.scope`.
475483
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
476484
# the entity's transaction history. Requires `parameters.scope`.
485+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
486+
# card's approved transaction history (capped at the 1000 most recently seen
487+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
488+
# `parameters` required.
477489
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
478490
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
479491
module Attribute
@@ -663,6 +675,11 @@ module Lithic
663675
:DISTINCT_COUNTRY_COUNT,
664676
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
665677
)
678+
IS_NEW_MERCHANT =
679+
T.let(
680+
:IS_NEW_MERCHANT,
681+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
682+
)
666683
THREE_DS_SUCCESS_RATE =
667684
T.let(
668685
:THREE_DS_SUCCESS_RATE,

sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ module Lithic
104104
| :CONSECUTIVE_DECLINES
105105
| :TIME_SINCE_LAST_TRANSACTION
106106
| :DISTINCT_COUNTRY_COUNT
107+
| :IS_NEW_MERCHANT
107108
| :THREE_DS_SUCCESS_RATE
108109

109110
module Attribute
@@ -144,6 +145,7 @@ module Lithic
144145
CONSECUTIVE_DECLINES: :CONSECUTIVE_DECLINES
145146
TIME_SINCE_LAST_TRANSACTION: :TIME_SINCE_LAST_TRANSACTION
146147
DISTINCT_COUNTRY_COUNT: :DISTINCT_COUNTRY_COUNT
148+
IS_NEW_MERCHANT: :IS_NEW_MERCHANT
147149
THREE_DS_SUCCESS_RATE: :THREE_DS_SUCCESS_RATE
148150

149151
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute]

0 commit comments

Comments
 (0)