Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #1354

Merged
merged 7 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1103
v1116
2 changes: 1 addition & 1 deletion stripe/_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ class SearchParams(RequestOptions):
"""
next_invoice_sequence: Optional[int]
"""
The suffix of the customer's next invoice number (for example, 0001).
The suffix of the customer's next invoice number (for example, 0001). When the account uses account level sequencing, this parameter is ignored in API requests and the field omitted in API responses.
"""
object: Literal["customer"]
"""
Expand Down
18 changes: 9 additions & 9 deletions stripe/_customer_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

class CustomerSession(CreateableAPIResource["CustomerSession"]):
"""
A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs)
control over a customer.
A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
control over a Customer.
"""

OBJECT_NAME: ClassVar[Literal["customer_session"]] = "customer_session"
Expand Down Expand Up @@ -58,7 +58,7 @@ class CreateParams(RequestOptions):
"""
customer: str
"""
The ID of an existing customer for which to create the customer session.
The ID of an existing customer for which to create the Customer Session.
"""
expand: NotRequired[List[str]]
"""
Expand Down Expand Up @@ -93,25 +93,25 @@ class CreateParamsComponentsPricingTable(TypedDict):

client_secret: str
"""
The client secret of this customer session. Used on the client to set up secure access to the given `customer`.
The client secret of this Customer Session. Used on the client to set up secure access to the given `customer`.

The client secret can be used to provide access to `customer` from your frontend. It should not be stored, logged, or exposed to anyone other than the relevant customer. Make sure that you have TLS enabled on any page that includes the client secret.
"""
components: Optional[Components]
"""
Configuration for the components supported by this customer session.
Configuration for the components supported by this Customer Session.
"""
created: int
"""
Time at which the object was created. Measured in seconds since the Unix epoch.
"""
customer: ExpandableField["Customer"]
"""
The customer the customer session was created for.
The Customer the Customer Session was created for.
"""
expires_at: int
"""
The timestamp at which this customer session will expire.
The timestamp at which this Customer Session will expire.
"""
livemode: bool
"""
Expand All @@ -127,7 +127,7 @@ def create(
cls, **params: Unpack["CustomerSession.CreateParams"]
) -> "CustomerSession":
"""
Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
"""
return cast(
"CustomerSession",
Expand All @@ -143,7 +143,7 @@ async def create_async(
cls, **params: Unpack["CustomerSession.CreateParams"]
) -> "CustomerSession":
"""
Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
"""
return cast(
"CustomerSession",
Expand Down
6 changes: 3 additions & 3 deletions stripe/_customer_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CreateParams(TypedDict):
"""
customer: str
"""
The ID of an existing customer for which to create the customer session.
The ID of an existing customer for which to create the Customer Session.
"""
expand: NotRequired[List[str]]
"""
Expand Down Expand Up @@ -54,7 +54,7 @@ def create(
options: RequestOptions = {},
) -> CustomerSession:
"""
Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
"""
return cast(
CustomerSession,
Expand All @@ -74,7 +74,7 @@ async def create_async(
options: RequestOptions = {},
) -> CustomerSession:
"""
Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
"""
return cast(
CustomerSession,
Expand Down
Loading
Loading