Skip to content

Commit 02db7be

Browse files
docs(api): update exp_month/exp_year descriptions in card create/renew params
1 parent a209f16 commit 02db7be

6 files changed

Lines changed: 33 additions & 17 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 191
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ab626b78e088455e814b80debc85d420839bc11f95416491fef6a0460f2d95ed.yml
3-
openapi_spec_hash: f6ae1bbed371a5d45927cd63797a9908
3+
openapi_spec_hash: b615a0eb16502b4de874f9ae28491894
44
config_hash: ac8326134e692f3f3bdec82396bbec80

lib/lithic/models/card_create_params.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,16 @@ class CardCreateParams < Lithic::Internal::Type::BaseModel
7272

7373
# @!attribute exp_month
7474
# Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
75-
# an expiration date will be generated.
75+
# an expiration date five years in the future will be generated. Five years is the
76+
# maximum expiration date.
7677
#
7778
# @return [String, nil]
7879
optional :exp_month, String
7980

8081
# @!attribute exp_year
8182
# Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
82-
# provided, an expiration date will be generated.
83+
# provided, an expiration date five years in the future will be generated. Five
84+
# years is the maximum expiration date.
8385
#
8486
# @return [String, nil]
8587
optional :exp_year, String

lib/lithic/models/card_renew_params.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ class CardRenewParams < Lithic::Internal::Type::BaseModel
2626

2727
# @!attribute exp_month
2828
# Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
29-
# an expiration date six years in the future will be generated.
29+
# an expiration date five years in the future will be generated. Five years is the
30+
# maximum expiration date.
3031
#
3132
# @return [String, nil]
3233
optional :exp_month, String
3334

3435
# @!attribute exp_year
3536
# Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
36-
# provided, an expiration date six years in the future will be generated.
37+
# provided, an expiration date five years in the future will be generated. Five
38+
# years is the maximum expiration date.
3739
#
3840
# @return [String, nil]
3941
optional :exp_year, String

rbi/lithic/models/card_create_params.rbi

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,17 @@ module Lithic
7878
attr_writer :digital_card_art_token
7979

8080
# Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
81-
# an expiration date will be generated.
81+
# an expiration date five years in the future will be generated. Five years is the
82+
# maximum expiration date.
8283
sig { returns(T.nilable(String)) }
8384
attr_reader :exp_month
8485

8586
sig { params(exp_month: String).void }
8687
attr_writer :exp_month
8788

8889
# Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
89-
# provided, an expiration date will be generated.
90+
# provided, an expiration date five years in the future will be generated. Five
91+
# years is the maximum expiration date.
9092
sig { returns(T.nilable(String)) }
9193
attr_reader :exp_year
9294

@@ -339,10 +341,12 @@ module Lithic
339341
# [Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
340342
digital_card_art_token: nil,
341343
# Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
342-
# an expiration date will be generated.
344+
# an expiration date five years in the future will be generated. Five years is the
345+
# maximum expiration date.
343346
exp_month: nil,
344347
# Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
345-
# provided, an expiration date will be generated.
348+
# provided, an expiration date five years in the future will be generated. Five
349+
# years is the maximum expiration date.
346350
exp_year: nil,
347351
# Friendly name to identify the card.
348352
memo: nil,

rbi/lithic/models/card_renew_params.rbi

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@ module Lithic
2929
attr_writer :carrier
3030

3131
# Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
32-
# an expiration date six years in the future will be generated.
32+
# an expiration date five years in the future will be generated. Five years is the
33+
# maximum expiration date.
3334
sig { returns(T.nilable(String)) }
3435
attr_reader :exp_month
3536

3637
sig { params(exp_month: String).void }
3738
attr_writer :exp_month
3839

3940
# Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
40-
# provided, an expiration date six years in the future will be generated.
41+
# provided, an expiration date five years in the future will be generated. Five
42+
# years is the maximum expiration date.
4143
sig { returns(T.nilable(String)) }
4244
attr_reader :exp_year
4345

@@ -100,10 +102,12 @@ module Lithic
100102
# If omitted, the previous carrier will be used.
101103
carrier: nil,
102104
# Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
103-
# an expiration date six years in the future will be generated.
105+
# an expiration date five years in the future will be generated. Five years is the
106+
# maximum expiration date.
104107
exp_month: nil,
105108
# Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
106-
# provided, an expiration date six years in the future will be generated.
109+
# provided, an expiration date five years in the future will be generated. Five
110+
# years is the maximum expiration date.
107111
exp_year: nil,
108112
# Specifies the configuration (e.g. physical card art) that the card should be
109113
# manufactured with, and only applies to cards of type `PHYSICAL`. This must be

rbi/lithic/resources/cards.rbi

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ module Lithic
8080
# [Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
8181
digital_card_art_token: nil,
8282
# Body param: Two digit (MM) expiry month. If neither `exp_month` nor `exp_year`
83-
# is provided, an expiration date will be generated.
83+
# is provided, an expiration date five years in the future will be generated. Five
84+
# years is the maximum expiration date.
8485
exp_month: nil,
8586
# Body param: Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year`
86-
# is provided, an expiration date will be generated.
87+
# is provided, an expiration date five years in the future will be generated. Five
88+
# years is the maximum expiration date.
8789
exp_year: nil,
8890
# Body param: Friendly name to identify the card.
8991
memo: nil,
@@ -556,10 +558,12 @@ module Lithic
556558
# If omitted, the previous carrier will be used.
557559
carrier: nil,
558560
# Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
559-
# an expiration date six years in the future will be generated.
561+
# an expiration date five years in the future will be generated. Five years is the
562+
# maximum expiration date.
560563
exp_month: nil,
561564
# Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
562-
# provided, an expiration date six years in the future will be generated.
565+
# provided, an expiration date five years in the future will be generated. Five
566+
# years is the maximum expiration date.
563567
exp_year: nil,
564568
# Specifies the configuration (e.g. physical card art) that the card should be
565569
# manufactured with, and only applies to cards of type `PHYSICAL`. This must be

0 commit comments

Comments
 (0)