Skip to content

Commit dc58d95

Browse files
feat(api): add hold_adjustment action type to auth rules
1 parent 5bde4bc commit dc58d95

3 files changed

Lines changed: 12 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: 194
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-841a8ecd13fc28d3df06e6e11f63df6106be819aad9fe3dd6637afd7bc142a56.yml
3-
openapi_spec_hash: 705fb3eb9dc54e3b2b542896154cff80
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-93254f6abf9fab9e687be2f48198b5126c298b634e2ad626abf413f560f1cbe1.yml
3+
openapi_spec_hash: 6aaac55fbf96d785ca3867adc3c7ca0e
44
config_hash: a0a579b0564a5c18568a78f5ba2b6653

src/lithic/types/auth_rules/conditional_authorization_adjustment_parameters.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
from .conditional_value import ConditionalValue
88
from .conditional_operation import ConditionalOperation
99

10-
__all__ = ["ConditionalAuthorizationAdjustmentParameters", "Adjustment", "Condition", "ConditionParameters"]
10+
__all__ = ["ConditionalAuthorizationAdjustmentParameters", "Action", "Condition", "ConditionParameters"]
1111

1212

13-
class Adjustment(BaseModel):
14-
"""The hold adjustment to apply if the conditions are met"""
13+
class Action(BaseModel):
14+
"""The hold adjustment to apply if the conditions are met."""
1515

1616
mode: Literal["REPLACE_WITH_AMOUNT", "ADD_PERCENTAGE", "ADD_AMOUNT"]
1717
"""The mode of the hold adjustment, determining how the value is interpreted:
@@ -244,7 +244,7 @@ class Condition(BaseModel):
244244

245245

246246
class ConditionalAuthorizationAdjustmentParameters(BaseModel):
247-
adjustment: Adjustment
248-
"""The hold adjustment to apply if the conditions are met"""
247+
action: Action
248+
"""The hold adjustment to apply if the conditions are met."""
249249

250250
conditions: List[Condition]

src/lithic/types/auth_rules/conditional_authorization_adjustment_parameters_param.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
from .conditional_operation import ConditionalOperation
1010
from .conditional_value_param import ConditionalValueParam
1111

12-
__all__ = ["ConditionalAuthorizationAdjustmentParametersParam", "Adjustment", "Condition", "ConditionParameters"]
12+
__all__ = ["ConditionalAuthorizationAdjustmentParametersParam", "Action", "Condition", "ConditionParameters"]
1313

1414

15-
class Adjustment(TypedDict, total=False):
16-
"""The hold adjustment to apply if the conditions are met"""
15+
class Action(TypedDict, total=False):
16+
"""The hold adjustment to apply if the conditions are met."""
1717

1818
mode: Required[Literal["REPLACE_WITH_AMOUNT", "ADD_PERCENTAGE", "ADD_AMOUNT"]]
1919
"""The mode of the hold adjustment, determining how the value is interpreted:
@@ -248,7 +248,7 @@ class Condition(TypedDict, total=False):
248248

249249

250250
class ConditionalAuthorizationAdjustmentParametersParam(TypedDict, total=False):
251-
adjustment: Required[Adjustment]
252-
"""The hold adjustment to apply if the conditions are met"""
251+
action: Required[Action]
252+
"""The hold adjustment to apply if the conditions are met."""
253253

254254
conditions: Required[Iterable[Condition]]

0 commit comments

Comments
 (0)