Skip to content

Update generated code for beta #1535

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

Open
wants to merge 36 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
1b3c54c
Update generated code (#1526)
stripe-openapi[bot] Jul 1, 2025
1f4f42c
Bump version to 12.3.0
prathmesh-stripe Jul 1, 2025
83ba1f0
Merge upstream and update generated code for v1819 and 2025-06-30.pre…
stripe-openapi[bot] Jul 2, 2025
559a745
Update generated code for v1820 and 2025-06-30.preview
stripe-openapi[bot] Jul 7, 2025
f2476ec
Update generated code for v1821 and 2025-06-30.preview
stripe-openapi[bot] Jul 8, 2025
2ce5101
Update generated code for v1822 and 2025-06-30.preview
stripe-openapi[bot] Jul 8, 2025
9d57483
Update generated code for v1822 and 2025-06-30.preview
stripe-openapi[bot] Jul 8, 2025
4f0f4ec
Update generated code for v1826 and 2025-06-30.preview
stripe-openapi[bot] Jul 9, 2025
c86e100
Update generated code for v1827 and 2025-06-30.preview
stripe-openapi[bot] Jul 9, 2025
83b7ff9
Update generated code for v1829 and 2025-06-30.preview
stripe-openapi[bot] Jul 9, 2025
a74a3fa
Update generated code for v1830 and 2025-06-30.preview
stripe-openapi[bot] Jul 10, 2025
1758911
Update generated code for v1832 and 2025-06-30.preview
stripe-openapi[bot] Jul 11, 2025
4c53c6d
Fix timeout type hint in RequestsClient (#1537)
abe-101 Jul 11, 2025
7203c80
Merge upstream and update generated code for v1833 and 2025-06-30.pre…
stripe-openapi[bot] Jul 11, 2025
9fd5498
Update generated code for v1835 and 2025-06-30.preview
stripe-openapi[bot] Jul 11, 2025
2aa1c1a
Update generated code for v1836 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
1e3b174
Update generated code for v1837 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
c9623a7
Update generated code for v1838 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
70ef7b9
Update generated code for v1839 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
6970412
Update generated code for v1841 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
09d8f32
Update generated code for v1842 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
b96335e
Update generated code for v1843 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
974ce0a
Update generated code for v1845 and 2025-06-30.preview
stripe-openapi[bot] Jul 15, 2025
af8dbe2
Update generated code for v1847 and 2025-06-30.preview
stripe-openapi[bot] Jul 15, 2025
9f720d5
Update generated code for v1848 and 2025-06-30.preview
stripe-openapi[bot] Jul 16, 2025
7380cf5
Update generated code for v1849 and 2025-06-30.preview
stripe-openapi[bot] Jul 16, 2025
de72cc3
Update generated code for v1850 and 2025-07-30.preview
stripe-openapi[bot] Jul 16, 2025
949aad0
Update generated code for v1852 and 2025-07-30.preview
stripe-openapi[bot] Jul 16, 2025
4b0a680
Update generated code for v1853 and 2025-07-30.preview
stripe-openapi[bot] Jul 17, 2025
6162afa
Update generated code for v1854 and 2025-07-30.preview
stripe-openapi[bot] Jul 17, 2025
9ec1e3c
Update generated code for v1855 and 2025-07-30.preview
stripe-openapi[bot] Jul 17, 2025
99b6d18
Update generated code for v1864 and 2025-07-30.preview
stripe-openapi[bot] Jul 21, 2025
96b6344
Update generated code for v1865 and 2025-07-30.preview
stripe-openapi[bot] Jul 21, 2025
1a3ed2c
Update generated code for v1867 and 2025-07-30.preview
stripe-openapi[bot] Jul 21, 2025
b53a728
Update generated code for v1868 and 2025-07-30.preview
stripe-openapi[bot] Jul 22, 2025
341909d
Update generated code for v1868 and 2025-07-30.preview
stripe-openapi[bot] Jul 23, 2025
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
Prev Previous commit
Next Next commit
Update generated code for v1854 and 2025-07-30.preview
  • Loading branch information
stripe-openapi[bot] committed Jul 17, 2025
commit 6162afa18ef36f7de98f8494e9adeae708cc0917
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1853
v1854
1 change: 1 addition & 0 deletions stripe/_object_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
stripe.terminal.Configuration.OBJECT_NAME: stripe.terminal.Configuration,
stripe.terminal.ConnectionToken.OBJECT_NAME: stripe.terminal.ConnectionToken,
stripe.terminal.Location.OBJECT_NAME: stripe.terminal.Location,
stripe.terminal.OnboardingLink.OBJECT_NAME: stripe.terminal.OnboardingLink,
stripe.terminal.Reader.OBJECT_NAME: stripe.terminal.Reader,
stripe.terminal.ReaderCollectedData.OBJECT_NAME: stripe.terminal.ReaderCollectedData,
stripe.test_helpers.TestClock.OBJECT_NAME: stripe.test_helpers.TestClock,
Expand Down
2 changes: 2 additions & 0 deletions stripe/_terminal_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from stripe.terminal._configuration_service import ConfigurationService
from stripe.terminal._connection_token_service import ConnectionTokenService
from stripe.terminal._location_service import LocationService
from stripe.terminal._onboarding_link_service import OnboardingLinkService
from stripe.terminal._reader_collected_data_service import (
ReaderCollectedDataService,
)
Expand All @@ -16,6 +17,7 @@ def __init__(self, requestor):
self.configurations = ConfigurationService(self._requestor)
self.connection_tokens = ConnectionTokenService(self._requestor)
self.locations = LocationService(self._requestor)
self.onboarding_links = OnboardingLinkService(self._requestor)
self.readers = ReaderService(self._requestor)
self.reader_collected_data = ReaderCollectedDataService(
self._requestor
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/terminal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from stripe.api_resources.terminal.configuration import Configuration
from stripe.api_resources.terminal.connection_token import ConnectionToken
from stripe.api_resources.terminal.location import Location
from stripe.api_resources.terminal.onboarding_link import OnboardingLink
from stripe.api_resources.terminal.reader import Reader
from stripe.api_resources.terminal.reader_collected_data import (
ReaderCollectedData,
Expand Down
21 changes: 21 additions & 0 deletions stripe/api_resources/terminal/onboarding_link.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from typing_extensions import TYPE_CHECKING
from warnings import warn

warn(
"""
The stripe.api_resources.terminal.onboarding_link package is deprecated, please change your
imports to import from stripe.terminal directly.
From:
from stripe.api_resources.terminal.onboarding_link import OnboardingLink
To:
from stripe.terminal import OnboardingLink
""",
DeprecationWarning,
stacklevel=2,
)
if not TYPE_CHECKING:
from stripe.terminal._onboarding_link import ( # noqa
OnboardingLink,
)
4 changes: 4 additions & 0 deletions stripe/terminal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
from stripe.terminal._location_service import (
LocationService as LocationService,
)
from stripe.terminal._onboarding_link import OnboardingLink as OnboardingLink
from stripe.terminal._onboarding_link_service import (
OnboardingLinkService as OnboardingLinkService,
)
from stripe.terminal._reader import Reader as Reader
from stripe.terminal._reader_collected_data import (
ReaderCollectedData as ReaderCollectedData,
Expand Down
124 changes: 124 additions & 0 deletions stripe/terminal/_onboarding_link.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._createable_api_resource import CreateableAPIResource
from stripe._request_options import RequestOptions
from stripe._stripe_object import StripeObject
from typing import ClassVar, List, Optional, cast
from typing_extensions import Literal, NotRequired, TypedDict, Unpack


class OnboardingLink(CreateableAPIResource["OnboardingLink"]):
"""
Returns redirect links used for onboarding onto Tap to Pay on iPhone.
"""

OBJECT_NAME: ClassVar[Literal["terminal.onboarding_link"]] = (
"terminal.onboarding_link"
)

class LinkOptions(StripeObject):
class AppleTermsAndConditions(StripeObject):
allow_relinking: Optional[bool]
"""
Whether the link should also support users relinking their Apple account.
"""
merchant_display_name: str
"""
The business name of the merchant accepting Apple's Terms and Conditions.
"""

apple_terms_and_conditions: Optional[AppleTermsAndConditions]
"""
The options associated with the Apple Terms and Conditions link type.
"""
_inner_class_types = {
"apple_terms_and_conditions": AppleTermsAndConditions,
}

class CreateParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
link_options: "OnboardingLink.CreateParamsLinkOptions"
"""
Specific fields needed to generate the desired link type.
"""
link_type: Literal["apple_terms_and_conditions"]
"""
The type of link being generated.
"""
on_behalf_of: NotRequired[str]
"""
Stripe account ID to generate the link for.
"""

class CreateParamsLinkOptions(TypedDict):
apple_terms_and_conditions: NotRequired[
"OnboardingLink.CreateParamsLinkOptionsAppleTermsAndConditions"
]
"""
The options associated with the Apple Terms and Conditions link type.
"""

class CreateParamsLinkOptionsAppleTermsAndConditions(TypedDict):
allow_relinking: NotRequired[bool]
"""
Whether the link should also support users relinking their Apple account.
"""
merchant_display_name: str
"""
The business name of the merchant accepting Apple's Terms and Conditions.
"""

link_options: LinkOptions
"""
Link type options associated with the current onboarding link object.
"""
link_type: Literal["apple_terms_and_conditions"]
"""
The type of link being generated.
"""
object: Literal["terminal.onboarding_link"]
on_behalf_of: Optional[str]
"""
Stripe account ID to generate the link for.
"""
redirect_url: str
"""
The link passed back to the user for their onboarding.
"""

@classmethod
def create(
cls, **params: Unpack["OnboardingLink.CreateParams"]
) -> "OnboardingLink":
"""
Creates a new OnboardingLink object that contains a redirect_url used for onboarding onto Tap to Pay on iPhone.
"""
return cast(
"OnboardingLink",
cls._static_request(
"post",
cls.class_url(),
params=params,
),
)

@classmethod
async def create_async(
cls, **params: Unpack["OnboardingLink.CreateParams"]
) -> "OnboardingLink":
"""
Creates a new OnboardingLink object that contains a redirect_url used for onboarding onto Tap to Pay on iPhone.
"""
return cast(
"OnboardingLink",
await cls._static_request_async(
"post",
cls.class_url(),
params=params,
),
)

_inner_class_types = {"link_options": LinkOptions}
83 changes: 83 additions & 0 deletions stripe/terminal/_onboarding_link_service.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from stripe._stripe_service import StripeService
from stripe.terminal._onboarding_link import OnboardingLink
from typing import List, cast
from typing_extensions import Literal, NotRequired, TypedDict


class OnboardingLinkService(StripeService):
class CreateParams(TypedDict):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
link_options: "OnboardingLinkService.CreateParamsLinkOptions"
"""
Specific fields needed to generate the desired link type.
"""
link_type: Literal["apple_terms_and_conditions"]
"""
The type of link being generated.
"""
on_behalf_of: NotRequired[str]
"""
Stripe account ID to generate the link for.
"""

class CreateParamsLinkOptions(TypedDict):
apple_terms_and_conditions: NotRequired[
"OnboardingLinkService.CreateParamsLinkOptionsAppleTermsAndConditions"
]
"""
The options associated with the Apple Terms and Conditions link type.
"""

class CreateParamsLinkOptionsAppleTermsAndConditions(TypedDict):
allow_relinking: NotRequired[bool]
"""
Whether the link should also support users relinking their Apple account.
"""
merchant_display_name: str
"""
The business name of the merchant accepting Apple's Terms and Conditions.
"""

def create(
self,
params: "OnboardingLinkService.CreateParams",
options: RequestOptions = {},
) -> OnboardingLink:
"""
Creates a new OnboardingLink object that contains a redirect_url used for onboarding onto Tap to Pay on iPhone.
"""
return cast(
OnboardingLink,
self._request(
"post",
"/v1/terminal/onboarding_links",
base_address="api",
params=params,
options=options,
),
)

async def create_async(
self,
params: "OnboardingLinkService.CreateParams",
options: RequestOptions = {},
) -> OnboardingLink:
"""
Creates a new OnboardingLink object that contains a redirect_url used for onboarding onto Tap to Pay on iPhone.
"""
return cast(
OnboardingLink,
await self._request_async(
"post",
"/v1/terminal/onboarding_links",
base_address="api",
params=params,
options=options,
),
)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy