Skip to content

Commit

Permalink
Update generated code for v648
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 6, 2023
1 parent c552f82 commit 3d824cd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v645
v648
12 changes: 12 additions & 0 deletions stripe/api_resources/quote.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ class SubscriptionData(StripeObject):
"""
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.
"""
metadata: Optional[Dict[str, str]]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
"""
trial_period_days: Optional[int]
"""
Integer representing the number of trial period days before the customer is charged for the first time.
Expand Down Expand Up @@ -524,6 +528,10 @@ class CreateParamsSubscriptionData(TypedDict):
"""
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
"""
metadata: NotRequired["Dict[str, str]"]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
"""
trial_period_days: NotRequired["Literal['']|int"]
"""
Integer representing the number of trial period days before the customer is charged for the first time.
Expand Down Expand Up @@ -804,6 +812,10 @@ class ModifyParamsSubscriptionData(TypedDict):
"""
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
"""
metadata: NotRequired["Dict[str, str]"]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
"""
trial_period_days: NotRequired["Literal['']|int"]
"""
Integer representing the number of trial period days before the customer is charged for the first time.
Expand Down

0 comments on commit 3d824cd

Please sign in to comment.