Skip to content

Commit 1e1fb23

Browse files
feat(api): introduce dedicated model for SpendLimitDuration
1 parent 59781eb commit 1e1fb23

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 164
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-a0d3bcd9c54616729a7e43847e3134205e0695d78f357cc7a25c2775b588dbbd.yml
3-
openapi_spec_hash: 36c423c286ca426f7510b27fadbdd66f
4-
config_hash: 56632a1c934324aa46c1e5c610c2de85
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-cf48017e61eb3ac8aeaaa9d933186532f476b2f3c7e12fa9c962d52e5a9a272b.yml
3+
openapi_spec_hash: b58989fdc04768fc1eb758e180c5f128
4+
config_hash: e4d87bd83b304f6ab3f032db994e0093

src/lithic/types/non_pci_card.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from typing_extensions import Literal
66

77
from .._models import BaseModel
8+
from .spend_limit_duration import SpendLimitDuration
89

910
__all__ = ["NonPCICard", "Funding"]
1011

@@ -79,8 +80,20 @@ class NonPCICard(BaseModel):
7980
be declined.
8081
"""
8182

82-
spend_limit_duration: Literal["ANNUALLY", "FOREVER", "MONTHLY", "TRANSACTION", "DAILY"]
83-
"""Spend limit duration"""
83+
spend_limit_duration: SpendLimitDuration
84+
"""Spend limit duration values:
85+
86+
- `ANNUALLY` - Card will authorize transactions up to spend limit for the
87+
trailing year.
88+
- `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
89+
of the card.
90+
- `MONTHLY` - Card will authorize transactions up to spend limit for the
91+
trailing month. To support recurring monthly payments, which can occur on
92+
different day every month, the time window we consider for monthly velocity
93+
starts 6 days after the current calendar date one month prior.
94+
- `TRANSACTION` - Card will authorize multiple transactions if each individual
95+
transaction is under the spend limit.
96+
"""
8497

8598
state: Literal["CLOSED", "OPEN", "PAUSED", "PENDING_ACTIVATION", "PENDING_FULFILLMENT"]
8699
"""Card state values: \\** `CLOSED` - Card will no longer approve authorizations.

0 commit comments

Comments
 (0)