You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e043c7a
Browse filesBrowse the repository at this point in the historyBrowse files
* Fall back to aliases after network token enrollment failures ([5930892](https://github.com/kernel/kernel-python-sdk/commit/5930892a91a3f212f27dfdaab4412bf972a4973f))
9
+
10
+
11
+
### Bug Fixes
12
+
13
+
* continue offset pagination past empty pages ([80908e4](https://github.com/kernel/kernel-python-sdk/commit/80908e4a5fae05aedc1db65f67b70a34781273d2))
14
+
* follow offset cursors in either direction ([bfcfa9a](https://github.com/kernel/kernel-python-sdk/commit/bfcfa9aac5a1420fced2960757ce80f197be257a))
Copy file name to clipboardExpand all lines: src/kernel/types/vaults/card_vault_item_spec.py
+30-1Lines changed: 30 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
"LinkCardVaultItemSpec",
13
13
"LinkCardVaultItemSpecLineItem",
14
14
"LinkCardVaultItemSpecLineItemTotal",
15
+
"LinkCardVaultItemSpecRecurring",
15
16
"LinkCardVaultItemSpecTotal",
16
17
"AgentCardCardVaultItemSpec",
17
18
]
@@ -47,6 +48,18 @@ class LinkCardVaultItemSpecLineItem(BaseModel):
47
48
url: Optional[str] =None
48
49
49
50
51
+
classLinkCardVaultItemSpecRecurring(BaseModel):
52
+
"""Recurring terms for a subscription or other repeated purchase.
53
+
54
+
The amount becomes the spending limit for each period of interval_count intervals, for example every 2 weeks. The merchant schedules charges. The card stays ready after each charge until it expires or is deleted; do not create a new card each period. Deleting the card, its wallet or its vault first cancels the credential with Link, so later charges decline; if Link cannot be reached, deletion returns 409 provider_revocation_pending and should be retried. Deletion does not cancel the subscription with the merchant. Recurring terms cannot be changed once the card is authorized.
55
+
"""
56
+
57
+
interval: Literal["day", "week", "month", "year"]
58
+
59
+
interval_count: Optional[int] =None
60
+
"""Number of intervals per period. Link defaults it to 1."""
61
+
62
+
50
63
classLinkCardVaultItemSpecTotal(BaseModel):
51
64
amount: int
52
65
"""Total amount in minor currency units."""
@@ -63,7 +76,10 @@ class LinkCardVaultItemSpec(BaseModel):
63
76
"""
64
77
65
78
amount: int
66
-
"""Integer amount in minor currency units, at most 50000."""
79
+
"""Integer amount in minor currency units, at most 50000.
80
+
81
+
With recurring, the spending limit per period, not a lifetime total.
82
+
"""
67
83
68
84
context: str
69
85
@@ -89,6 +105,19 @@ class LinkCardVaultItemSpec(BaseModel):
"""Recurring terms for a subscription or other repeated purchase.
53
+
54
+
The amount becomes the spending limit for each period of interval_count intervals, for example every 2 weeks. The merchant schedules charges. The card stays ready after each charge until it expires or is deleted; do not create a new card each period. Deleting the card, its wallet or its vault first cancels the credential with Link, so later charges decline; if Link cannot be reached, deletion returns 409 provider_revocation_pending and should be retried. Deletion does not cancel the subscription with the merchant. Recurring terms cannot be changed once the card is authorized.
0 commit comments