|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | 5 | import typing_extensions |
6 | | -from typing import List, Union, Optional |
| 6 | +from typing import Union, Optional |
7 | 7 | from datetime import date |
8 | 8 | from typing_extensions import Literal, overload |
9 | 9 |
|
10 | 10 | import httpx |
11 | 11 |
|
12 | 12 | from .... import _legacy_response |
13 | | -from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven |
| 13 | +from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, SequenceNotStr |
14 | 14 | from ...._utils import required_args, maybe_transform, async_maybe_transform |
15 | 15 | from .backtests import ( |
16 | 16 | Backtests, |
@@ -74,7 +74,7 @@ def with_streaming_response(self) -> V2WithStreamingResponse: |
74 | 74 | def create( |
75 | 75 | self, |
76 | 76 | *, |
77 | | - account_tokens: List[str], |
| 77 | + account_tokens: SequenceNotStr[str], |
78 | 78 | name: Optional[str] | NotGiven = NOT_GIVEN, |
79 | 79 | parameters: v2_create_params.CreateAuthRuleRequestAccountTokensParameters | NotGiven = NOT_GIVEN, |
80 | 80 | type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_3DS_ACTION"] |
@@ -118,7 +118,7 @@ def create( |
118 | 118 | def create( |
119 | 119 | self, |
120 | 120 | *, |
121 | | - card_tokens: List[str], |
| 121 | + card_tokens: SequenceNotStr[str], |
122 | 122 | name: Optional[str] | NotGiven = NOT_GIVEN, |
123 | 123 | parameters: v2_create_params.CreateAuthRuleRequestCardTokensParameters | NotGiven = NOT_GIVEN, |
124 | 124 | type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_3DS_ACTION"] |
@@ -163,7 +163,7 @@ def create( |
163 | 163 | self, |
164 | 164 | *, |
165 | 165 | program_level: bool, |
166 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 166 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
167 | 167 | name: Optional[str] | NotGiven = NOT_GIVEN, |
168 | 168 | parameters: v2_create_params.CreateAuthRuleRequestProgramLevelParameters | NotGiven = NOT_GIVEN, |
169 | 169 | type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_3DS_ACTION"] |
@@ -209,14 +209,14 @@ def create( |
209 | 209 | def create( |
210 | 210 | self, |
211 | 211 | *, |
212 | | - account_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 212 | + account_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
213 | 213 | name: Optional[str] | NotGiven = NOT_GIVEN, |
214 | 214 | parameters: v2_create_params.CreateAuthRuleRequestAccountTokensParameters | NotGiven = NOT_GIVEN, |
215 | 215 | type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_3DS_ACTION"] |
216 | 216 | | NotGiven = NOT_GIVEN, |
217 | | - card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 217 | + card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
218 | 218 | program_level: bool | NotGiven = NOT_GIVEN, |
219 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 219 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
220 | 220 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
221 | 221 | # The extra values given here take precedence over values defined on the client or passed to this method. |
222 | 222 | extra_headers: Headers | None = None, |
@@ -282,7 +282,7 @@ def update( |
282 | 282 | self, |
283 | 283 | auth_rule_token: str, |
284 | 284 | *, |
285 | | - account_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 285 | + account_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
286 | 286 | name: Optional[str] | NotGiven = NOT_GIVEN, |
287 | 287 | state: Literal["INACTIVE"] | NotGiven = NOT_GIVEN, |
288 | 288 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -325,7 +325,7 @@ def update( |
325 | 325 | self, |
326 | 326 | auth_rule_token: str, |
327 | 327 | *, |
328 | | - card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 328 | + card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
329 | 329 | name: Optional[str] | NotGiven = NOT_GIVEN, |
330 | 330 | state: Literal["INACTIVE"] | NotGiven = NOT_GIVEN, |
331 | 331 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -368,7 +368,7 @@ def update( |
368 | 368 | self, |
369 | 369 | auth_rule_token: str, |
370 | 370 | *, |
371 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 371 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
372 | 372 | name: Optional[str] | NotGiven = NOT_GIVEN, |
373 | 373 | program_level: bool | NotGiven = NOT_GIVEN, |
374 | 374 | state: Literal["INACTIVE"] | NotGiven = NOT_GIVEN, |
@@ -413,11 +413,11 @@ def update( |
413 | 413 | self, |
414 | 414 | auth_rule_token: str, |
415 | 415 | *, |
416 | | - account_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 416 | + account_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
417 | 417 | name: Optional[str] | NotGiven = NOT_GIVEN, |
418 | 418 | state: Literal["INACTIVE"] | NotGiven = NOT_GIVEN, |
419 | | - card_tokens: List[str] | NotGiven = NOT_GIVEN, |
420 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 419 | + card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
| 420 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
421 | 421 | program_level: bool | NotGiven = NOT_GIVEN, |
422 | 422 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
423 | 423 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -555,7 +555,7 @@ def apply( |
555 | 555 | self, |
556 | 556 | auth_rule_token: str, |
557 | 557 | *, |
558 | | - account_tokens: List[str], |
| 558 | + account_tokens: SequenceNotStr[str], |
559 | 559 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
560 | 560 | # The extra values given here take precedence over values defined on the client or passed to this method. |
561 | 561 | extra_headers: Headers | None = None, |
@@ -588,7 +588,7 @@ def apply( |
588 | 588 | self, |
589 | 589 | auth_rule_token: str, |
590 | 590 | *, |
591 | | - card_tokens: List[str], |
| 591 | + card_tokens: SequenceNotStr[str], |
592 | 592 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
593 | 593 | # The extra values given here take precedence over values defined on the client or passed to this method. |
594 | 594 | extra_headers: Headers | None = None, |
@@ -622,7 +622,7 @@ def apply( |
622 | 622 | auth_rule_token: str, |
623 | 623 | *, |
624 | 624 | program_level: bool, |
625 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 625 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
626 | 626 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
627 | 627 | # The extra values given here take precedence over values defined on the client or passed to this method. |
628 | 628 | extra_headers: Headers | None = None, |
@@ -657,10 +657,10 @@ def apply( |
657 | 657 | self, |
658 | 658 | auth_rule_token: str, |
659 | 659 | *, |
660 | | - account_tokens: List[str] | NotGiven = NOT_GIVEN, |
661 | | - card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 660 | + account_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
| 661 | + card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
662 | 662 | program_level: bool | NotGiven = NOT_GIVEN, |
663 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 663 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
664 | 664 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
665 | 665 | # The extra values given here take precedence over values defined on the client or passed to this method. |
666 | 666 | extra_headers: Headers | None = None, |
@@ -936,7 +936,7 @@ def with_streaming_response(self) -> AsyncV2WithStreamingResponse: |
936 | 936 | async def create( |
937 | 937 | self, |
938 | 938 | *, |
939 | | - account_tokens: List[str], |
| 939 | + account_tokens: SequenceNotStr[str], |
940 | 940 | name: Optional[str] | NotGiven = NOT_GIVEN, |
941 | 941 | parameters: v2_create_params.CreateAuthRuleRequestAccountTokensParameters | NotGiven = NOT_GIVEN, |
942 | 942 | type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_3DS_ACTION"] |
@@ -980,7 +980,7 @@ async def create( |
980 | 980 | async def create( |
981 | 981 | self, |
982 | 982 | *, |
983 | | - card_tokens: List[str], |
| 983 | + card_tokens: SequenceNotStr[str], |
984 | 984 | name: Optional[str] | NotGiven = NOT_GIVEN, |
985 | 985 | parameters: v2_create_params.CreateAuthRuleRequestCardTokensParameters | NotGiven = NOT_GIVEN, |
986 | 986 | type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_3DS_ACTION"] |
@@ -1025,7 +1025,7 @@ async def create( |
1025 | 1025 | self, |
1026 | 1026 | *, |
1027 | 1027 | program_level: bool, |
1028 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1028 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1029 | 1029 | name: Optional[str] | NotGiven = NOT_GIVEN, |
1030 | 1030 | parameters: v2_create_params.CreateAuthRuleRequestProgramLevelParameters | NotGiven = NOT_GIVEN, |
1031 | 1031 | type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_3DS_ACTION"] |
@@ -1071,14 +1071,14 @@ async def create( |
1071 | 1071 | async def create( |
1072 | 1072 | self, |
1073 | 1073 | *, |
1074 | | - account_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1074 | + account_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1075 | 1075 | name: Optional[str] | NotGiven = NOT_GIVEN, |
1076 | 1076 | parameters: v2_create_params.CreateAuthRuleRequestAccountTokensParameters | NotGiven = NOT_GIVEN, |
1077 | 1077 | type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_3DS_ACTION"] |
1078 | 1078 | | NotGiven = NOT_GIVEN, |
1079 | | - card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1079 | + card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1080 | 1080 | program_level: bool | NotGiven = NOT_GIVEN, |
1081 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1081 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1082 | 1082 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
1083 | 1083 | # The extra values given here take precedence over values defined on the client or passed to this method. |
1084 | 1084 | extra_headers: Headers | None = None, |
@@ -1144,7 +1144,7 @@ async def update( |
1144 | 1144 | self, |
1145 | 1145 | auth_rule_token: str, |
1146 | 1146 | *, |
1147 | | - account_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1147 | + account_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1148 | 1148 | name: Optional[str] | NotGiven = NOT_GIVEN, |
1149 | 1149 | state: Literal["INACTIVE"] | NotGiven = NOT_GIVEN, |
1150 | 1150 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -1187,7 +1187,7 @@ async def update( |
1187 | 1187 | self, |
1188 | 1188 | auth_rule_token: str, |
1189 | 1189 | *, |
1190 | | - card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1190 | + card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1191 | 1191 | name: Optional[str] | NotGiven = NOT_GIVEN, |
1192 | 1192 | state: Literal["INACTIVE"] | NotGiven = NOT_GIVEN, |
1193 | 1193 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -1230,7 +1230,7 @@ async def update( |
1230 | 1230 | self, |
1231 | 1231 | auth_rule_token: str, |
1232 | 1232 | *, |
1233 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1233 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1234 | 1234 | name: Optional[str] | NotGiven = NOT_GIVEN, |
1235 | 1235 | program_level: bool | NotGiven = NOT_GIVEN, |
1236 | 1236 | state: Literal["INACTIVE"] | NotGiven = NOT_GIVEN, |
@@ -1275,11 +1275,11 @@ async def update( |
1275 | 1275 | self, |
1276 | 1276 | auth_rule_token: str, |
1277 | 1277 | *, |
1278 | | - account_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1278 | + account_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1279 | 1279 | name: Optional[str] | NotGiven = NOT_GIVEN, |
1280 | 1280 | state: Literal["INACTIVE"] | NotGiven = NOT_GIVEN, |
1281 | | - card_tokens: List[str] | NotGiven = NOT_GIVEN, |
1282 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1281 | + card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
| 1282 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1283 | 1283 | program_level: bool | NotGiven = NOT_GIVEN, |
1284 | 1284 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
1285 | 1285 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -1417,7 +1417,7 @@ async def apply( |
1417 | 1417 | self, |
1418 | 1418 | auth_rule_token: str, |
1419 | 1419 | *, |
1420 | | - account_tokens: List[str], |
| 1420 | + account_tokens: SequenceNotStr[str], |
1421 | 1421 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
1422 | 1422 | # The extra values given here take precedence over values defined on the client or passed to this method. |
1423 | 1423 | extra_headers: Headers | None = None, |
@@ -1450,7 +1450,7 @@ async def apply( |
1450 | 1450 | self, |
1451 | 1451 | auth_rule_token: str, |
1452 | 1452 | *, |
1453 | | - card_tokens: List[str], |
| 1453 | + card_tokens: SequenceNotStr[str], |
1454 | 1454 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
1455 | 1455 | # The extra values given here take precedence over values defined on the client or passed to this method. |
1456 | 1456 | extra_headers: Headers | None = None, |
@@ -1484,7 +1484,7 @@ async def apply( |
1484 | 1484 | auth_rule_token: str, |
1485 | 1485 | *, |
1486 | 1486 | program_level: bool, |
1487 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1487 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1488 | 1488 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
1489 | 1489 | # The extra values given here take precedence over values defined on the client or passed to this method. |
1490 | 1490 | extra_headers: Headers | None = None, |
@@ -1519,10 +1519,10 @@ async def apply( |
1519 | 1519 | self, |
1520 | 1520 | auth_rule_token: str, |
1521 | 1521 | *, |
1522 | | - account_tokens: List[str] | NotGiven = NOT_GIVEN, |
1523 | | - card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1522 | + account_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
| 1523 | + card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1524 | 1524 | program_level: bool | NotGiven = NOT_GIVEN, |
1525 | | - excluded_card_tokens: List[str] | NotGiven = NOT_GIVEN, |
| 1525 | + excluded_card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
1526 | 1526 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
1527 | 1527 | # The extra values given here take precedence over values defined on the client or passed to this method. |
1528 | 1528 | extra_headers: Headers | None = None, |
|
0 commit comments