Skip to content

Commit

Permalink
Update generated code (#1024)
Browse files Browse the repository at this point in the history
* Update generated code for v482

* Update generated code for v495

* Update generated code for v498

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Richard Marmorstein <52928443+richardm-stripe@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] and richardm-stripe authored Aug 31, 2023
1 parent 51faa13 commit 6916bce
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v482
v498
1 change: 1 addition & 0 deletions stripe/api_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

from stripe.api_resources.account import Account
from stripe.api_resources.account_link import AccountLink
from stripe.api_resources.account_session import AccountSession
from stripe.api_resources.apple_pay_domain import ApplePayDomain
from stripe.api_resources.application_fee import ApplicationFee
from stripe.api_resources.application_fee_refund import ApplicationFeeRefund
Expand Down
19 changes: 19 additions & 0 deletions stripe/api_resources/account_session.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function

from stripe.api_resources.abstract import CreateableAPIResource


class AccountSession(CreateableAPIResource["AccountSession"]):
"""
An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded components.
We recommend that you create an AccountSession each time you need to display an embedded component
to your user. Do not save AccountSessions to your database as they expire relatively
quickly, and cannot be used more than once.
Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components)
"""

OBJECT_NAME = "account_session"
1 change: 1 addition & 0 deletions stripe/object_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# business objects
api_resources.Account.OBJECT_NAME: api_resources.Account,
api_resources.AccountLink.OBJECT_NAME: api_resources.AccountLink,
api_resources.AccountSession.OBJECT_NAME: api_resources.AccountSession,
api_resources.ApplePayDomain.OBJECT_NAME: api_resources.ApplePayDomain,
api_resources.ApplicationFee.OBJECT_NAME: api_resources.ApplicationFee,
api_resources.ApplicationFeeRefund.OBJECT_NAME: api_resources.ApplicationFeeRefund,
Expand Down

0 comments on commit 6916bce

Please sign in to comment.