From 4e1b9710f1691053c58fe4a91b8877ede10611a8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 15 Jan 2025 19:25:56 +0000 Subject: [PATCH] feat(api): api update --- .stats.yml | 2 +- src/orb/resources/subscriptions.py | 6 ++++-- src/orb/types/subscription_schedule_plan_change_params.py | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index b1872c09..147f6727 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 101 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-1720084d65e39f50455fe3a8756afc68fedf57306a727f92e4d020c28878df87.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-ac2f736602bc631b92de358a7edb395cf53ed506b2cb3d0494fffa31be9e2d9f.yml diff --git a/src/orb/resources/subscriptions.py b/src/orb/resources/subscriptions.py index a377b5fa..96863c6c 100644 --- a/src/orb/resources/subscriptions.py +++ b/src/orb/resources/subscriptions.py @@ -1578,7 +1578,8 @@ def schedule_plan_change( billing cycle alignment. change_date: The date that the plan change should take effect. This parameter can only be - passed if the `change_option` is `requested_date`. + passed if the `change_option` is `requested_date`. If a date with no time is + passed, the plan change will happen at midnight in the customer's timezone. coupon_redemption_code: Redemption code to be used for this subscription. If the coupon cannot be found by its redemption code, or cannot be redeemed, an error response will be @@ -3541,7 +3542,8 @@ async def schedule_plan_change( billing cycle alignment. change_date: The date that the plan change should take effect. This parameter can only be - passed if the `change_option` is `requested_date`. + passed if the `change_option` is `requested_date`. If a date with no time is + passed, the plan change will happen at midnight in the customer's timezone. coupon_redemption_code: Redemption code to be used for this subscription. If the coupon cannot be found by its redemption code, or cannot be redeemed, an error response will be diff --git a/src/orb/types/subscription_schedule_plan_change_params.py b/src/orb/types/subscription_schedule_plan_change_params.py index 6b3c7074..49d63699 100644 --- a/src/orb/types/subscription_schedule_plan_change_params.py +++ b/src/orb/types/subscription_schedule_plan_change_params.py @@ -212,7 +212,9 @@ class SubscriptionSchedulePlanChangeParams(TypedDict, total=False): change_date: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")] """The date that the plan change should take effect. - This parameter can only be passed if the `change_option` is `requested_date`. + This parameter can only be passed if the `change_option` is `requested_date`. If + a date with no time is passed, the plan change will happen at midnight in the + customer's timezone. """ coupon_redemption_code: Optional[str]