Skip to content

Commit d8d98d9

Browse files
feat(api): add card decline count attributes to auth_rules conditional authorization
1 parent 5624e72 commit d8d98d9

4 files changed

Lines changed: 56 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: 190
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-eb2cf51467f505a1d29c3ca40b9595ecbf6d6a3743f53bc42a52c8135a252ff0.yml
3-
openapi_spec_hash: 2fbd71b69d71138b3e54432a38d759ed
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-27d13d3d5226c710b07f9fc954fa53a8e6923e74d90d3f587d96399c1baf4de3.yml
3+
openapi_spec_hash: 99a60cbd91f32b25617a9536fadebf07
44
config_hash: edbdfefeb0d3d927c2f9fe3402793215

lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ class Condition < Lithic::Internal::Type::BaseModel
7575
# trailing hour up and until the authorization.
7676
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
7777
# trailing 24 hours up and until the authorization.
78+
# - `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
79+
# the trailing 15 minutes before the authorization.
80+
# - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
81+
# the trailing hour up and until the authorization.
82+
# - `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
83+
# the trailing 24 hours up and until the authorization.
7884
# - `CARD_STATE`: The current state of the card associated with the transaction.
7985
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
8086
# `PENDING_FULFILLMENT`.
@@ -168,6 +174,12 @@ class Condition < Lithic::Internal::Type::BaseModel
168174
# trailing hour up and until the authorization.
169175
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
170176
# trailing 24 hours up and until the authorization.
177+
# - `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
178+
# the trailing 15 minutes before the authorization.
179+
# - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
180+
# the trailing hour up and until the authorization.
181+
# - `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
182+
# the trailing 24 hours up and until the authorization.
171183
# - `CARD_STATE`: The current state of the card associated with the transaction.
172184
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
173185
# `PENDING_FULFILLMENT`.
@@ -212,6 +224,9 @@ module Attribute
212224
CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
213225
CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
214226
CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H
227+
CARD_DECLINE_COUNT_15_M = :CARD_DECLINE_COUNT_15M
228+
CARD_DECLINE_COUNT_1_H = :CARD_DECLINE_COUNT_1H
229+
CARD_DECLINE_COUNT_24_H = :CARD_DECLINE_COUNT_24H
215230
CARD_STATE = :CARD_STATE
216231
PIN_ENTERED = :PIN_ENTERED
217232
PIN_STATUS = :PIN_STATUS

rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ module Lithic
144144
# trailing hour up and until the authorization.
145145
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
146146
# trailing 24 hours up and until the authorization.
147+
# - `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
148+
# the trailing 15 minutes before the authorization.
149+
# - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
150+
# the trailing hour up and until the authorization.
151+
# - `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
152+
# the trailing 24 hours up and until the authorization.
147153
# - `CARD_STATE`: The current state of the card associated with the transaction.
148154
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
149155
# `PENDING_FULFILLMENT`.
@@ -233,6 +239,12 @@ module Lithic
233239
# trailing hour up and until the authorization.
234240
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
235241
# trailing 24 hours up and until the authorization.
242+
# - `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
243+
# the trailing 15 minutes before the authorization.
244+
# - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
245+
# the trailing hour up and until the authorization.
246+
# - `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
247+
# the trailing 24 hours up and until the authorization.
236248
# - `CARD_STATE`: The current state of the card associated with the transaction.
237249
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
238250
# `PENDING_FULFILLMENT`.
@@ -319,6 +331,12 @@ module Lithic
319331
# trailing hour up and until the authorization.
320332
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
321333
# trailing 24 hours up and until the authorization.
334+
# - `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
335+
# the trailing 15 minutes before the authorization.
336+
# - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
337+
# the trailing hour up and until the authorization.
338+
# - `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
339+
# the trailing 24 hours up and until the authorization.
322340
# - `CARD_STATE`: The current state of the card associated with the transaction.
323341
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
324342
# `PENDING_FULFILLMENT`.
@@ -422,6 +440,21 @@ module Lithic
422440
:CARD_TRANSACTION_COUNT_24H,
423441
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
424442
)
443+
CARD_DECLINE_COUNT_15_M =
444+
T.let(
445+
:CARD_DECLINE_COUNT_15M,
446+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
447+
)
448+
CARD_DECLINE_COUNT_1_H =
449+
T.let(
450+
:CARD_DECLINE_COUNT_1H,
451+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
452+
)
453+
CARD_DECLINE_COUNT_24_H =
454+
T.let(
455+
:CARD_DECLINE_COUNT_24H,
456+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
457+
)
425458
CARD_STATE =
426459
T.let(
427460
:CARD_STATE,

sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ module Lithic
7373
| :CARD_TRANSACTION_COUNT_15M
7474
| :CARD_TRANSACTION_COUNT_1H
7575
| :CARD_TRANSACTION_COUNT_24H
76+
| :CARD_DECLINE_COUNT_15M
77+
| :CARD_DECLINE_COUNT_1H
78+
| :CARD_DECLINE_COUNT_24H
7679
| :CARD_STATE
7780
| :PIN_ENTERED
7881
| :PIN_STATUS
@@ -100,6 +103,9 @@ module Lithic
100103
CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
101104
CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
102105
CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H
106+
CARD_DECLINE_COUNT_15_M: :CARD_DECLINE_COUNT_15M
107+
CARD_DECLINE_COUNT_1_H: :CARD_DECLINE_COUNT_1H
108+
CARD_DECLINE_COUNT_24_H: :CARD_DECLINE_COUNT_24H
103109
CARD_STATE: :CARD_STATE
104110
PIN_ENTERED: :PIN_ENTERED
105111
PIN_STATUS: :PIN_STATUS

0 commit comments

Comments
 (0)