Skip to content

Commit 778fcbb

Browse files
docs: Remove deprecated tag from MERCHANT_LOCKED card type
1 parent 38a92bb commit 778fcbb

9 files changed

Lines changed: 46 additions & 51 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: 176
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-14b3b5bca66c1e0935b314e469476f91193413c29a47ad4a0affa19beb14c7d3.yml
3-
openapi_spec_hash: afba11ad031397d6e3873485b5b42473
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-a6c56df3bc156ac1e6ee5d635c6cd964f0d60836fe17a97deec8af8429bd339c.yml
3+
openapi_spec_hash: c563acd10d96ddabe6c9643b592bd509
44
config_hash: 31d71922d7838f34ae0875c9b8026d99

lib/lithic/models/card_create_params.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class CardCreateParams < Lithic::Internal::Type::BaseModel
1818
# Reach out at [lithic.com/contact](https://lithic.com/contact) for more
1919
# information.
2020
# - `SINGLE_USE` - Card is closed upon first successful authorization.
21-
# - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
22-
# successfully authorizes the card.
21+
# - `MERCHANT_LOCKED` - Card is locked to the first merchant that successfully
22+
# authorizes the card.
2323
# - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
2424
# VIRTUAL instead.
2525
# - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please
@@ -289,8 +289,8 @@ class CardCreateParams < Lithic::Internal::Type::BaseModel
289289
# Reach out at [lithic.com/contact](https://lithic.com/contact) for more
290290
# information.
291291
# - `SINGLE_USE` - Card is closed upon first successful authorization.
292-
# - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
293-
# successfully authorizes the card.
292+
# - `MERCHANT_LOCKED` - Card is locked to the first merchant that successfully
293+
# authorizes the card.
294294
# - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
295295
# VIRTUAL instead.
296296
# - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please

lib/lithic/models/card_updated_webhook_event.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
module Lithic
44
module Models
55
class CardUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
6-
# @!attribute token
6+
# @!attribute card_token
77
# The token of the card that was updated.
88
#
99
# @return [String]
10-
required :token, String
10+
required :card_token, String
1111

1212
# @!attribute event_type
1313
# The type of event that occurred.
@@ -27,8 +27,8 @@ class CardUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
2727
# @return [String]
2828
required :state, String
2929

30-
# @!method initialize(token:, previous_fields:, state:, event_type: :"card.updated")
31-
# @param token [String] The token of the card that was updated.
30+
# @!method initialize(card_token:, previous_fields:, state:, event_type: :"card.updated")
31+
# @param card_token [String] The token of the card that was updated.
3232
#
3333
# @param previous_fields [Object] The previous values of the fields that were updated.
3434
#

lib/lithic/models/non_pci_card.rb

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,10 @@ class NonPCICard < Lithic::Internal::Type::BaseModel
9797
# wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
9898
# offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
9999
# functionality. _ `SINGLE_USE` - Card is closed upon first successful
100-
# authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
101-
# merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
102-
# Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
103-
# `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
104-
# VIRTUAL instead.
100+
# authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
101+
# successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
102+
# to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
103+
# _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
105104
#
106105
# @return [Symbol, Lithic::Models::NonPCICard::Type]
107106
required :type, enum: -> { Lithic::NonPCICard::Type }
@@ -436,11 +435,10 @@ module State
436435
# wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
437436
# offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
438437
# functionality. _ `SINGLE_USE` - Card is closed upon first successful
439-
# authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
440-
# merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
441-
# Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
442-
# `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
443-
# VIRTUAL instead.
438+
# authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
439+
# successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
440+
# to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
441+
# _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
444442
#
445443
# @see Lithic::Models::NonPCICard#type
446444
module Type

rbi/lithic/models/card_create_params.rbi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ module Lithic
2121
# Reach out at [lithic.com/contact](https://lithic.com/contact) for more
2222
# information.
2323
# - `SINGLE_USE` - Card is closed upon first successful authorization.
24-
# - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
25-
# successfully authorizes the card.
24+
# - `MERCHANT_LOCKED` - Card is locked to the first merchant that successfully
25+
# authorizes the card.
2626
# - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
2727
# VIRTUAL instead.
2828
# - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please
@@ -308,8 +308,8 @@ module Lithic
308308
# Reach out at [lithic.com/contact](https://lithic.com/contact) for more
309309
# information.
310310
# - `SINGLE_USE` - Card is closed upon first successful authorization.
311-
# - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
312-
# successfully authorizes the card.
311+
# - `MERCHANT_LOCKED` - Card is locked to the first merchant that successfully
312+
# authorizes the card.
313313
# - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
314314
# VIRTUAL instead.
315315
# - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please
@@ -484,8 +484,8 @@ module Lithic
484484
# Reach out at [lithic.com/contact](https://lithic.com/contact) for more
485485
# information.
486486
# - `SINGLE_USE` - Card is closed upon first successful authorization.
487-
# - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
488-
# successfully authorizes the card.
487+
# - `MERCHANT_LOCKED` - Card is locked to the first merchant that successfully
488+
# authorizes the card.
489489
# - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
490490
# VIRTUAL instead.
491491
# - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please

rbi/lithic/models/card_updated_webhook_event.rbi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Lithic
1010

1111
# The token of the card that was updated.
1212
sig { returns(String) }
13-
attr_accessor :token
13+
attr_accessor :card_token
1414

1515
# The type of event that occurred.
1616
sig { returns(Symbol) }
@@ -26,15 +26,15 @@ module Lithic
2626

2727
sig do
2828
params(
29-
token: String,
29+
card_token: String,
3030
previous_fields: T.anything,
3131
state: String,
3232
event_type: Symbol
3333
).returns(T.attached_class)
3434
end
3535
def self.new(
3636
# The token of the card that was updated.
37-
token:,
37+
card_token:,
3838
# The previous values of the fields that were updated.
3939
previous_fields:,
4040
# The current state of the card.
@@ -47,7 +47,7 @@ module Lithic
4747
sig do
4848
override.returns(
4949
{
50-
token: String,
50+
card_token: String,
5151
event_type: Symbol,
5252
previous_fields: T.anything,
5353
state: String

rbi/lithic/models/non_pci_card.rbi

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,10 @@ module Lithic
8181
# wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
8282
# offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
8383
# functionality. _ `SINGLE_USE` - Card is closed upon first successful
84-
# authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
85-
# merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
86-
# Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
87-
# `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
88-
# VIRTUAL instead.
84+
# authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
85+
# successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
86+
# to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
87+
# _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
8988
sig { returns(Lithic::NonPCICard::Type::TaggedSymbol) }
9089
attr_accessor :type
9190

@@ -293,11 +292,10 @@ module Lithic
293292
# wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
294293
# offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
295294
# functionality. _ `SINGLE_USE` - Card is closed upon first successful
296-
# authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
297-
# merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
298-
# Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
299-
# `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
300-
# VIRTUAL instead.
295+
# authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
296+
# successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
297+
# to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
298+
# _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
301299
type:,
302300
# List of identifiers for the Auth Rule(s) that are applied on the card. This
303301
# field is deprecated and will no longer be populated in the `Card` object. The
@@ -614,11 +612,10 @@ module Lithic
614612
# wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
615613
# offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
616614
# functionality. _ `SINGLE_USE` - Card is closed upon first successful
617-
# authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
618-
# merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
619-
# Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
620-
# `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
621-
# VIRTUAL instead.
615+
# authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
616+
# successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
617+
# to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
618+
# _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
622619
module Type
623620
extend Lithic::Internal::Type::Enum
624621

rbi/lithic/resources/cards.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ module Lithic
4949
# Reach out at [lithic.com/contact](https://lithic.com/contact) for more
5050
# information.
5151
# - `SINGLE_USE` - Card is closed upon first successful authorization.
52-
# - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
53-
# successfully authorizes the card.
52+
# - `MERCHANT_LOCKED` - Card is locked to the first merchant that successfully
53+
# authorizes the card.
5454
# - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
5555
# VIRTUAL instead.
5656
# - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please

sig/lithic/models/card_updated_webhook_event.rbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ module Lithic
22
module Models
33
type card_updated_webhook_event =
44
{
5-
token: String,
5+
card_token: String,
66
event_type: :"card.updated",
77
previous_fields: top,
88
state: String
99
}
1010

1111
class CardUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
12-
attr_accessor token: String
12+
attr_accessor card_token: String
1313

1414
attr_accessor event_type: :"card.updated"
1515

@@ -18,14 +18,14 @@ module Lithic
1818
attr_accessor state: String
1919

2020
def initialize: (
21-
token: String,
21+
card_token: String,
2222
previous_fields: top,
2323
state: String,
2424
?event_type: :"card.updated"
2525
) -> void
2626

2727
def to_hash: -> {
28-
token: String,
28+
card_token: String,
2929
event_type: :"card.updated",
3030
previous_fields: top,
3131
state: String

0 commit comments

Comments
 (0)