@@ -304,6 +304,8 @@ def update(
304304 self ,
305305 auth_rule_token : str ,
306306 * ,
307+ account_tokens : SequenceNotStr [str ] | Omit = omit ,
308+ business_account_tokens : SequenceNotStr [str ] | Omit = omit ,
307309 name : Optional [str ] | Omit = omit ,
308310 state : Literal ["INACTIVE" ] | Omit = omit ,
309311 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -321,46 +323,10 @@ def update(
321323 entities.
322324
323325 Args:
324- name: Auth Rule Name
325-
326- state: The desired state of the Auth Rule.
327-
328- Note that only deactivating an Auth Rule through this endpoint is supported at
329- this time. If you need to (re-)activate an Auth Rule the /promote endpoint
330- should be used to promote a draft to the currently active version.
331-
332- extra_headers: Send extra headers
333-
334- extra_query: Add additional query parameters to the request
335-
336- extra_body: Add additional JSON properties to the request
337-
338- timeout: Override the client-level default timeout for this request, in seconds
339- """
340- ...
341-
342- @overload
343- def update (
344- self ,
345- auth_rule_token : str ,
346- * ,
347- name : Optional [str ] | Omit = omit ,
348- state : Literal ["INACTIVE" ] | Omit = omit ,
349- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
350- # The extra values given here take precedence over values defined on the client or passed to this method.
351- extra_headers : Headers | None = None ,
352- extra_query : Query | None = None ,
353- extra_body : Body | None = None ,
354- timeout : float | httpx .Timeout | None | NotGiven = not_given ,
355- ) -> V2UpdateResponse :
356- """
357- Updates a V2 Auth rule's properties
326+ account_tokens: Account tokens to which the Auth Rule applies.
358327
359- If `account_tokens`, `card_tokens`, `program_level`, or `excluded_card_tokens`
360- is provided, this will replace existing associations with the provided list of
361- entities.
328+ business_account_tokens: Business Account tokens to which the Auth Rule applies.
362329
363- Args:
364330 name: Auth Rule Name
365331
366332 state: The desired state of the Auth Rule.
@@ -472,6 +438,8 @@ def update(
472438 self ,
473439 auth_rule_token : str ,
474440 * ,
441+ account_tokens : SequenceNotStr [str ] | Omit = omit ,
442+ business_account_tokens : SequenceNotStr [str ] | Omit = omit ,
475443 name : Optional [str ] | Omit = omit ,
476444 state : Literal ["INACTIVE" ] | Omit = omit ,
477445 card_tokens : SequenceNotStr [str ] | Omit = omit ,
@@ -490,6 +458,8 @@ def update(
490458 f"/v2/auth_rules/{ auth_rule_token } " ,
491459 body = maybe_transform (
492460 {
461+ "account_tokens" : account_tokens ,
462+ "business_account_tokens" : business_account_tokens ,
493463 "name" : name ,
494464 "state" : state ,
495465 "card_tokens" : card_tokens ,
@@ -1282,6 +1252,8 @@ async def update(
12821252 self ,
12831253 auth_rule_token : str ,
12841254 * ,
1255+ account_tokens : SequenceNotStr [str ] | Omit = omit ,
1256+ business_account_tokens : SequenceNotStr [str ] | Omit = omit ,
12851257 name : Optional [str ] | Omit = omit ,
12861258 state : Literal ["INACTIVE" ] | Omit = omit ,
12871259 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1299,46 +1271,10 @@ async def update(
12991271 entities.
13001272
13011273 Args:
1302- name: Auth Rule Name
1303-
1304- state: The desired state of the Auth Rule.
1305-
1306- Note that only deactivating an Auth Rule through this endpoint is supported at
1307- this time. If you need to (re-)activate an Auth Rule the /promote endpoint
1308- should be used to promote a draft to the currently active version.
1309-
1310- extra_headers: Send extra headers
1311-
1312- extra_query: Add additional query parameters to the request
1313-
1314- extra_body: Add additional JSON properties to the request
1315-
1316- timeout: Override the client-level default timeout for this request, in seconds
1317- """
1318- ...
1319-
1320- @overload
1321- async def update (
1322- self ,
1323- auth_rule_token : str ,
1324- * ,
1325- name : Optional [str ] | Omit = omit ,
1326- state : Literal ["INACTIVE" ] | Omit = omit ,
1327- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1328- # The extra values given here take precedence over values defined on the client or passed to this method.
1329- extra_headers : Headers | None = None ,
1330- extra_query : Query | None = None ,
1331- extra_body : Body | None = None ,
1332- timeout : float | httpx .Timeout | None | NotGiven = not_given ,
1333- ) -> V2UpdateResponse :
1334- """
1335- Updates a V2 Auth rule's properties
1274+ account_tokens: Account tokens to which the Auth Rule applies.
13361275
1337- If `account_tokens`, `card_tokens`, `program_level`, or `excluded_card_tokens`
1338- is provided, this will replace existing associations with the provided list of
1339- entities.
1276+ business_account_tokens: Business Account tokens to which the Auth Rule applies.
13401277
1341- Args:
13421278 name: Auth Rule Name
13431279
13441280 state: The desired state of the Auth Rule.
@@ -1450,6 +1386,8 @@ async def update(
14501386 self ,
14511387 auth_rule_token : str ,
14521388 * ,
1389+ account_tokens : SequenceNotStr [str ] | Omit = omit ,
1390+ business_account_tokens : SequenceNotStr [str ] | Omit = omit ,
14531391 name : Optional [str ] | Omit = omit ,
14541392 state : Literal ["INACTIVE" ] | Omit = omit ,
14551393 card_tokens : SequenceNotStr [str ] | Omit = omit ,
@@ -1468,6 +1406,8 @@ async def update(
14681406 f"/v2/auth_rules/{ auth_rule_token } " ,
14691407 body = await async_maybe_transform (
14701408 {
1409+ "account_tokens" : account_tokens ,
1410+ "business_account_tokens" : business_account_tokens ,
14711411 "name" : name ,
14721412 "state" : state ,
14731413 "card_tokens" : card_tokens ,
0 commit comments