Skip to content

Commit 10673c1

Browse files
feat(api): add CardTransactionFeature type to auth_rules
1 parent ee77480 commit 10673c1

6 files changed

Lines changed: 40 additions & 12 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: 212
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-b42f0fb5ca219622c46728ac767a2a23ec6a8aecd2b32c92efa449fd69576a6d.yml
3-
openapi_spec_hash: b591dcd3405c0738c10b626852284a1b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-6200f208b7ffdb9b4c7dd8468dbfe69f0078f8b8b0fd171ba2edc1c2a641f185.yml
3+
openapi_spec_hash: 2c396033aca49407378b3982e46d19e6
44
config_hash: 126e04f676f61e5871a82889336dbf9d

src/lithic/resources/auth_rules/v2/v2.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ def create(
104104
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
105105
stream.
106106
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
107-
ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
107+
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
108+
stream.
108109
109110
account_tokens: Account tokens to which the Auth Rule applies.
110111
@@ -161,7 +162,8 @@ def create(
161162
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
162163
stream.
163164
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
164-
ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
165+
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
166+
stream.
165167
166168
event_stream: The event stream during which the rule will be evaluated.
167169
@@ -217,7 +219,8 @@ def create(
217219
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
218220
stream.
219221
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
220-
ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
222+
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
223+
stream.
221224
222225
event_stream: The event stream during which the rule will be evaluated.
223226
@@ -985,7 +988,8 @@ async def create(
985988
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
986989
stream.
987990
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
988-
ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
991+
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
992+
stream.
989993
990994
account_tokens: Account tokens to which the Auth Rule applies.
991995
@@ -1042,7 +1046,8 @@ async def create(
10421046
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
10431047
stream.
10441048
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
1045-
ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
1049+
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
1050+
stream.
10461051
10471052
event_stream: The event stream during which the rule will be evaluated.
10481053
@@ -1098,7 +1103,8 @@ async def create(
10981103
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
10991104
stream.
11001105
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
1101-
ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
1106+
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
1107+
stream.
11021108
11031109
event_stream: The event stream during which the rule will be evaluated.
11041110

src/lithic/types/auth_rules/auth_rule.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ class AuthRule(BaseModel):
138138
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
139139
stream.
140140
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
141-
ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
141+
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
142+
stream.
142143
"""
143144

144145
excluded_account_tokens: Optional[List[str]] = None

src/lithic/types/auth_rules/rule_feature.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"AuthenticationFeature",
1414
"TokenizationFeature",
1515
"ACHReceiptFeature",
16+
"CardTransactionFeature",
1617
"CardFeature",
1718
"AccountHolderFeature",
1819
"IPMetadataFeature",
@@ -49,6 +50,13 @@ class ACHReceiptFeature(BaseModel):
4950
"""The variable name for this feature in the rule function signature"""
5051

5152

53+
class CardTransactionFeature(BaseModel):
54+
type: Literal["CARD_TRANSACTION"]
55+
56+
name: Optional[str] = None
57+
"""The variable name for this feature in the rule function signature"""
58+
59+
5260
class CardFeature(BaseModel):
5361
type: Literal["CARD"]
5462

@@ -100,6 +108,7 @@ class TransactionHistorySignalsFeature(BaseModel):
100108
AuthenticationFeature,
101109
TokenizationFeature,
102110
ACHReceiptFeature,
111+
CardTransactionFeature,
103112
CardFeature,
104113
AccountHolderFeature,
105114
IPMetadataFeature,

src/lithic/types/auth_rules/rule_feature_param.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"AuthenticationFeature",
1515
"TokenizationFeature",
1616
"ACHReceiptFeature",
17+
"CardTransactionFeature",
1718
"CardFeature",
1819
"AccountHolderFeature",
1920
"IPMetadataFeature",
@@ -50,6 +51,13 @@ class ACHReceiptFeature(TypedDict, total=False):
5051
"""The variable name for this feature in the rule function signature"""
5152

5253

54+
class CardTransactionFeature(TypedDict, total=False):
55+
type: Required[Literal["CARD_TRANSACTION"]]
56+
57+
name: str
58+
"""The variable name for this feature in the rule function signature"""
59+
60+
5361
class CardFeature(TypedDict, total=False):
5462
type: Required[Literal["CARD"]]
5563

@@ -101,6 +109,7 @@ class TransactionHistorySignalsFeature(TypedDict, total=False):
101109
AuthenticationFeature,
102110
TokenizationFeature,
103111
ACHReceiptFeature,
112+
CardTransactionFeature,
104113
CardFeature,
105114
AccountHolderFeature,
106115
IPMetadataFeature,

src/lithic/types/auth_rules/v2_create_params.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class AccountLevelRule(TypedDict, total=False):
5252
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
5353
stream.
5454
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
55-
ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
55+
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
56+
stream.
5657
"""
5758

5859
account_tokens: SequenceNotStr[str]
@@ -106,7 +107,8 @@ class CardLevelRule(TypedDict, total=False):
106107
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
107108
stream.
108109
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
109-
ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
110+
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
111+
stream.
110112
"""
111113

112114
event_stream: EventStream
@@ -154,7 +156,8 @@ class ProgramLevelRule(TypedDict, total=False):
154156
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
155157
stream.
156158
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
157-
ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
159+
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
160+
stream.
158161
"""
159162

160163
event_stream: EventStream

0 commit comments

Comments
 (0)