Skip to content

Commit 5fddd95

Browse files
feat(api): remove accidental null (#215)
1 parent 0380a59 commit 5fddd95

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

src/orb/resources/customers/costs.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def list(
4343
self,
4444
customer_id: Optional[str],
4545
*,
46-
timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
47-
timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
46+
timeframe_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
47+
timeframe_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
4848
view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN,
4949
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5050
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -232,8 +232,8 @@ def list_by_external_id(
232232
self,
233233
external_customer_id: Optional[str],
234234
*,
235-
timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
236-
timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
235+
timeframe_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
236+
timeframe_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
237237
view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN,
238238
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
239239
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -433,8 +433,8 @@ async def list(
433433
self,
434434
customer_id: Optional[str],
435435
*,
436-
timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
437-
timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
436+
timeframe_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
437+
timeframe_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
438438
view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN,
439439
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
440440
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -622,8 +622,8 @@ async def list_by_external_id(
622622
self,
623623
external_customer_id: Optional[str],
624624
*,
625-
timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
626-
timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
625+
timeframe_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
626+
timeframe_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
627627
view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN,
628628
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
629629
# The extra values given here take precedence over values defined on the client or passed to this method.

src/orb/resources/subscriptions.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,8 @@ def fetch_costs(
757757
self,
758758
subscription_id: str,
759759
*,
760-
timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
761-
timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
760+
timeframe_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
761+
timeframe_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
762762
view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN,
763763
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
764764
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2387,8 +2387,8 @@ async def fetch_costs(
23872387
self,
23882388
subscription_id: str,
23892389
*,
2390-
timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
2391-
timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
2390+
timeframe_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
2391+
timeframe_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
23922392
view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN,
23932393
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
23942394
# The extra values given here take precedence over values defined on the client or passed to this method.

src/orb/types/customers/cost_list_by_external_id_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313

1414
class CostListByExternalIDParams(TypedDict, total=False):
15-
timeframe_end: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
15+
timeframe_end: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
1616
"""Costs returned are exclusive of `timeframe_end`."""
1717

18-
timeframe_start: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
18+
timeframe_start: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
1919
"""Costs returned are inclusive of `timeframe_start`."""
2020

2121
view_mode: Optional[Literal["periodic", "cumulative"]]

src/orb/types/customers/cost_list_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313

1414
class CostListParams(TypedDict, total=False):
15-
timeframe_end: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
15+
timeframe_end: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
1616
"""Costs returned are exclusive of `timeframe_end`."""
1717

18-
timeframe_start: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
18+
timeframe_start: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
1919
"""Costs returned are inclusive of `timeframe_start`."""
2020

2121
view_mode: Optional[Literal["periodic", "cumulative"]]

src/orb/types/subscription_fetch_costs_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313

1414
class SubscriptionFetchCostsParams(TypedDict, total=False):
15-
timeframe_end: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
15+
timeframe_end: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
1616
"""Costs returned are exclusive of `timeframe_end`."""
1717

18-
timeframe_start: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
18+
timeframe_start: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
1919
"""Costs returned are inclusive of `timeframe_start`."""
2020

2121
view_mode: Optional[Literal["periodic", "cumulative"]]

0 commit comments

Comments
 (0)