Skip to content

Commit 8e94d66

Browse files
docs(api): clarify exp_month/exp_year generation in cards create/renew methods
1 parent 66cbc65 commit 8e94d66

4 files changed

Lines changed: 25 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: 190
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

src/lithic/resources/cards/cards.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,12 @@ def create(
183183
[Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
184184
185185
exp_month: Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
186-
an expiration date will be generated.
186+
an expiration date five years in the future will be generated. Five years is the
187+
maximum expiration date.
187188
188189
exp_year: Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
189-
provided, an expiration date will be generated.
190+
provided, an expiration date five years in the future will be generated. Five
191+
years is the maximum expiration date.
190192
191193
memo: Friendly name to identify the card.
192194
@@ -1051,10 +1053,12 @@ def renew(
10511053
carrier: If omitted, the previous carrier will be used.
10521054
10531055
exp_month: Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
1054-
an expiration date six years in the future will be generated.
1056+
an expiration date five years in the future will be generated. Five years is the
1057+
maximum expiration date.
10551058
10561059
exp_year: Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
1057-
provided, an expiration date six years in the future will be generated.
1060+
provided, an expiration date five years in the future will be generated. Five
1061+
years is the maximum expiration date.
10581062
10591063
product_id: Specifies the configuration (e.g. physical card art) that the card should be
10601064
manufactured with, and only applies to cards of type `PHYSICAL`. This must be
@@ -1369,10 +1373,12 @@ async def create(
13691373
[Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
13701374
13711375
exp_month: Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
1372-
an expiration date will be generated.
1376+
an expiration date five years in the future will be generated. Five years is the
1377+
maximum expiration date.
13731378
13741379
exp_year: Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
1375-
provided, an expiration date will be generated.
1380+
provided, an expiration date five years in the future will be generated. Five
1381+
years is the maximum expiration date.
13761382
13771383
memo: Friendly name to identify the card.
13781384
@@ -2237,10 +2243,12 @@ async def renew(
22372243
carrier: If omitted, the previous carrier will be used.
22382244
22392245
exp_month: Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
2240-
an expiration date six years in the future will be generated.
2246+
an expiration date five years in the future will be generated. Five years is the
2247+
maximum expiration date.
22412248
22422249
exp_year: Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
2243-
provided, an expiration date six years in the future will be generated.
2250+
provided, an expiration date five years in the future will be generated. Five
2251+
years is the maximum expiration date.
22442252
22452253
product_id: Specifies the configuration (e.g. physical card art) that the card should be
22462254
manufactured with, and only applies to cards of type `PHYSICAL`. This must be

src/lithic/types/card_create_params.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ class CardCreateParams(TypedDict, total=False):
7070
exp_month: str
7171
"""Two digit (MM) expiry month.
7272
73-
If neither `exp_month` nor `exp_year` is provided, an expiration date will be
74-
generated.
73+
If neither `exp_month` nor `exp_year` is provided, an expiration date five years
74+
in the future will be generated. Five years is the maximum expiration date.
7575
"""
7676

7777
exp_year: str
7878
"""Four digit (yyyy) expiry year.
7979
80-
If neither `exp_month` nor `exp_year` is provided, an expiration date will be
81-
generated.
80+
If neither `exp_month` nor `exp_year` is provided, an expiration date five years
81+
in the future will be generated. Five years is the maximum expiration date.
8282
"""
8383

8484
memo: str

src/lithic/types/card_renew_params.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ class CardRenewParams(TypedDict, total=False):
2020
exp_month: str
2121
"""Two digit (MM) expiry month.
2222
23-
If neither `exp_month` nor `exp_year` is provided, an expiration date six years
24-
in the future will be generated.
23+
If neither `exp_month` nor `exp_year` is provided, an expiration date five years
24+
in the future will be generated. Five years is the maximum expiration date.
2525
"""
2626

2727
exp_year: str
2828
"""Four digit (yyyy) expiry year.
2929
30-
If neither `exp_month` nor `exp_year` is provided, an expiration date six years
31-
in the future will be generated.
30+
If neither `exp_month` nor `exp_year` is provided, an expiration date five years
31+
in the future will be generated. Five years is the maximum expiration date.
3232
"""
3333

3434
product_id: str

0 commit comments

Comments
 (0)