Skip to content

Update generated code for beta #1509

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

Merged
merged 49 commits into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
baa7157
Update generated code for v1722
stripe-openapi[bot] May 1, 2025
b5ef59b
Update generated code for v1723
stripe-openapi[bot] May 2, 2025
af48fad
Update generated code for v1724
stripe-openapi[bot] May 2, 2025
23f2207
Update generated code for v1725
stripe-openapi[bot] May 2, 2025
c2db8b4
Update generated code for v1726
stripe-openapi[bot] May 2, 2025
ff0a1bc
Update generated code for v1727
stripe-openapi[bot] May 2, 2025
9283e81
Require merge commit for merge PR (+ new rules.yml file) (#1510)
jar-stripe May 2, 2025
0e025eb
adds CONTRIBUTING.md (#1511)
jar-stripe May 2, 2025
d8ebb3b
Merge upstream and update generated code for v1728
stripe-openapi[bot] May 4, 2025
fea9051
Update generated code for v1729
stripe-openapi[bot] May 5, 2025
e8a1079
Update generated code for v1734
stripe-openapi[bot] May 6, 2025
077e396
Update generated code for v1735
stripe-openapi[bot] May 6, 2025
28e5848
Update generated code for v1736
stripe-openapi[bot] May 7, 2025
2e40f98
Update generated code for v1739
stripe-openapi[bot] May 8, 2025
4623b5f
Update generated code for v1740
stripe-openapi[bot] May 8, 2025
2927806
Update generated code for v1741
stripe-openapi[bot] May 8, 2025
cb8aa13
Update generated code for v1741
stripe-openapi[bot] May 9, 2025
7241725
Update generated code for v1742
stripe-openapi[bot] May 9, 2025
e7d6f10
Update generated code for v1743
stripe-openapi[bot] May 9, 2025
7db7345
Rename beta SDKs to public preview SDKs in readme (#1515)
ramya-stripe May 9, 2025
6db1772
Merge upstream and update generated code for v1745
stripe-openapi[bot] May 9, 2025
8c1b7e3
Update generated code for v1746
stripe-openapi[bot] May 10, 2025
0477b6b
Update generated code for v1747
stripe-openapi[bot] May 12, 2025
f069ba2
Update generated code for v1748
stripe-openapi[bot] May 13, 2025
fb840b4
Update generated code for v1750
stripe-openapi[bot] May 13, 2025
ab30476
Update generated code for v1751
stripe-openapi[bot] May 13, 2025
f6b916c
Update generated code for v1752
stripe-openapi[bot] May 14, 2025
1cdaa81
Update generated code for v1753
stripe-openapi[bot] May 14, 2025
9c513d3
Update generated code for v1754
stripe-openapi[bot] May 14, 2025
6e27593
Update generated code for v1755
stripe-openapi[bot] May 14, 2025
0811b07
Update generated code for v1756
stripe-openapi[bot] May 15, 2025
1505eec
Update generated code for v1756
stripe-openapi[bot] May 15, 2025
8cf70be
Update generated code for v1757
stripe-openapi[bot] May 15, 2025
336fe6b
Update generated code for v1758
stripe-openapi[bot] May 15, 2025
d718dae
Update generated code for v1759
stripe-openapi[bot] May 15, 2025
cab73da
Update generated code for v1760
stripe-openapi[bot] May 15, 2025
055c458
Update generated code for v1761
stripe-openapi[bot] May 15, 2025
cd26b6e
Update generated code for v1762
stripe-openapi[bot] May 15, 2025
2729558
Update generated code for v1763
stripe-openapi[bot] May 16, 2025
f326391
Update generated code for v1764
stripe-openapi[bot] May 16, 2025
bcd9da8
Update generated code for v1765
stripe-openapi[bot] May 16, 2025
7466290
Update generated code for v1766
stripe-openapi[bot] May 16, 2025
9f23a64
Update generated code for v1767
stripe-openapi[bot] May 16, 2025
92a4421
Update generated code for v1768
stripe-openapi[bot] May 16, 2025
438dc11
Update generated code for v1769
stripe-openapi[bot] May 16, 2025
31510c5
Update generated code for v1770
stripe-openapi[bot] May 19, 2025
5835b20
Update generated code for v1770
stripe-openapi[bot] May 20, 2025
6060c4e
Update generated code for v1771
stripe-openapi[bot] May 21, 2025
9f0511e
Update generated code for v1773
stripe-openapi[bot] May 22, 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
21 changes: 21 additions & 0 deletions .github/workflows/rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

name: rules

on:
workflow_dispatch: {}
pull_request:
types:
- auto_merge_enabled

jobs:
require_merge_commit_on_merge_script_pr:
name: Merge script PRs must create merge commits
if: ${{ contains(github.head_ref, '/merge-') }}
runs-on: ubuntu-latest
steps:
- run: |
if ${{ github.event.pull_request.auto_merge.merge_method != 'merge' }}; then
echo "Auto-merge method must be 'merge' instead of '${{github.event.pull_request.auto_merge.merge_method}}'"
exit 1
fi
25 changes: 25 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# Contributing

We welcome bug reports, feature requests, and code contributions in a pull request.

For most pull requests, we request that you identify or create an associated issue that has the necessary context. We use these issues to reach agreement on an approach and save the PR author from having to redo work. Fixing typos or documentation issues likely do not need an issue; for any issue that introduces substantial code changes, changes the public interface, or if you aren't sure, please find or [create an issue](https://www.github.com/stripe/stripe-python/issues/new/choose).

## Contributor License Agreement

All contributors must sign the Contributor License Agreement (CLA) before we can accept their contribution. If you have not yet signed the agreement, you will be given an option to do so when you open a pull request. You can then sign by clicking on the badge in the comment from @CLAassistant.

## Generated code

This project has a combination of manually maintained code and code generated from our private code generator. If your contribution involves changes to generated code, please call this out in the issue or pull request as we will likely need to make a change to our code generator before accepting the contribution.

To identify files with purely generated code, look for the comment `File generated from our OpenAPI spec.` at the start of the file. Generated blocks of code within hand-written files will be between comments that say `The beginning of the section generated from our OpenAPI spec` and `The end of the section generated from our OpenAPI spec`.

## Compatibility with supported language and runtime versions

This project supports [many different langauge and runtime versions](README.md#requirements) and we are unable to accept any contribution that does not work on _all_ supported versions. If, after discussing the approach in the associated issue, your change must use an API / feature that isn't available in all supported versions, please call this out explicitly in the issue or pull request so we can help figure out the best way forward.

## Set up your dev environment

Please refer to this project's [README.md](README.md#development) for instructions on how to set up your development environment.

2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1719
v1773
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,22 +246,21 @@ sends by default. If you are overriding `stripe.api_version` / `stripe_version`
[webhook endpoint](https://stripe.com/docs/webhooks#api-versions) tied to an older version,
be aware that the data you see at runtime may not match the types.

## Beta SDKs
### Public Preview SDKs

Stripe has features in the beta phase that can be accessed via the beta version of this package.
We would love for you to try these and share feedback with us before these features reach the stable phase.
To install a beta version use `pip install` with the exact version you'd like to use:
Stripe has features in the [public preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-beta.X` suffix like `12.2.0-beta.2`.
We would love for you to try these as we incrementally release new features and improve them based on your feedback.

The public preview SDKs are different versions of the same package as the stable SDKs. They are appended with `b.X` such as `10.1.0b1`. To install, choose the version that includes support for the preview feature you are interested in by reviewing the [releases page](https://github.com/stripe/stripe-dotnet/releases/) and then use it in the `pip install` command:

```
pip install --pre stripe
pip install stripe==<replace-with-the-version-of-your-choice>
```

> **Note**
> There can be breaking changes between beta versions. Therefore we recommend pinning the package version to a specific beta version in your [requirements file](https://pip.pypa.io/en/stable/user_guide/#requirements-files) or `setup.py`. This way you can install the same version each time without breaking changes unless you are intentionally looking for the latest beta version.

We highly recommend keeping an eye on when the beta feature you are interested in goes from beta to stable so that you can move from using a beta version of the SDK to the stable version.
> There can be breaking changes between two versions of the public preview SDKs without a bump in the major version. Therefore we recommend pinning the package version to a specific version in your [requirements file](https://pip.pypa.io/en/stable/user_guide/#requirements-files) or `setup.py`. This way you can install the same version each time without breaking changes unless you are intentionally looking for the latest public preview SDK.

If your beta feature requires a `Stripe-Version` header to be sent, set the `stripe.api_version` field using the `stripe.add_beta_version` function:
Some preview features require a name and version to be set in the `Stripe-Version` header like `feature_beta=v3`. If your preview feature has this requirement, use the `stripe.add_beta_version` function (available only in the public preview SDKs):

```python
stripe.add_beta_version("feature_beta", "v3")
Expand Down
2 changes: 0 additions & 2 deletions stripe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ def __getattr__(name):
events as events,
financial_connections as financial_connections,
forwarding as forwarding,
gift_cards as gift_cards,
identity as identity,
issuing as issuing,
privacy as privacy,
Expand Down Expand Up @@ -480,7 +479,6 @@ def __getattr__(name):
)
from stripe._fx_quote import FxQuote as FxQuote
from stripe._fx_quote_service import FxQuoteService as FxQuoteService
from stripe._gift_cards_service import GiftCardsService as GiftCardsService
from stripe._identity_service import IdentityService as IdentityService
from stripe._invoice import Invoice as Invoice
from stripe._invoice_item import InvoiceItem as InvoiceItem
Expand Down
Loading