Skip to content

Commit

Permalink
Update generated code for v1105
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jun 28, 2024
1 parent 26db537 commit 3cf1683
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1103
v1105
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

0 comments on commit 3cf1683

Please sign in to comment.