Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1371 commits
Select commit Hold shift + click to select a range
f8e3983
Update generated code for v1430
stripe-openapi[bot] Jan 3, 2025
4096082
Update generated code for v1431
stripe-openapi[bot] Jan 7, 2025
5278522
Update generated code for v1432
stripe-openapi[bot] Jan 7, 2025
83edc4d
Update generated code for v1433
stripe-openapi[bot] Jan 7, 2025
f6a85d9
Update generated code for v1435
stripe-openapi[bot] Jan 8, 2025
dc5e6b6
Update generated code for v1436
stripe-openapi[bot] Jan 8, 2025
2692d87
Merge pull request #1433 from stripe/latest-codegen-beta
stripe-openapi[bot] Jan 9, 2025
46741a7
Bump version to 11.5.0b1
xavdid Jan 9, 2025
782f8f0
Update generated code for v1439
stripe-openapi[bot] Jan 10, 2025
0ef90fd
Update generated code for v1441
stripe-openapi[bot] Jan 10, 2025
62b5dc5
Merge upstream and update generated code for v1441
stripe-openapi[bot] Jan 13, 2025
cc1038f
Update generated code for v1442
stripe-openapi[bot] Jan 14, 2025
a2b3b25
Update generated code for v1443
stripe-openapi[bot] Jan 14, 2025
9f9fe80
Update generated code for v1444
stripe-openapi[bot] Jan 14, 2025
7202fe1
Update generated code for v1446
stripe-openapi[bot] Jan 14, 2025
cdd8254
Merge upstream and update generated code for v1447
stripe-openapi[bot] Jan 15, 2025
3dec4a3
Update generated code for v1448
stripe-openapi[bot] Jan 15, 2025
00f0852
Update generated code for v1449
stripe-openapi[bot] Jan 15, 2025
dec80d0
Update generated code for v1450
stripe-openapi[bot] Jan 15, 2025
d251768
Merge upstream and update generated code for v1450
stripe-openapi[bot] Jan 16, 2025
c10eb40
Merge upstream and update generated code for v1451
stripe-openapi[bot] Jan 17, 2025
95631af
Update generated code for v1452
stripe-openapi[bot] Jan 17, 2025
4ff9da0
Update generated code for v1453
stripe-openapi[bot] Jan 17, 2025
4ae0b97
Update generated code for v1454
stripe-openapi[bot] Jan 17, 2025
6546a70
added CONTRIBUTING.md
jar-stripe Jan 18, 2025
be43bda
Merge branch 'latest-codegen-beta' of github.com:stripe/stripe-python…
jar-stripe Jan 18, 2025
4e0f89b
Merge pull request #1439 from stripe/latest-codegen-beta
stripe-openapi[bot] Jan 18, 2025
c56f3f8
Bump version to 11.5.0b2
jar-stripe Jan 18, 2025
4efadea
Update generated code for beta (#1447)
stripe-openapi[bot] Jan 23, 2025
28e22d6
Bump version to 11.5.0b3
prathmesh-stripe Jan 23, 2025
4465603
Merge upstream and update generated code for v1461
stripe-openapi[bot] Jan 24, 2025
0a6f492
Update generated code for v1462
stripe-openapi[bot] Jan 24, 2025
812665d
Update generated code for v1463
stripe-openapi[bot] Jan 24, 2025
e786ecb
Merge upstream and update generated code for v1463
stripe-openapi[bot] Jan 27, 2025
5dd6832
Merge upstream and update generated code for v1463
stripe-openapi[bot] Jan 28, 2025
f03b508
Update generated code for v1464
stripe-openapi[bot] Jan 29, 2025
35e2f50
Update generated code for v1466
stripe-openapi[bot] Jan 30, 2025
3fa0acd
Update generated code for v1467
stripe-openapi[bot] Jan 31, 2025
01c9508
Update generated code for v1472
stripe-openapi[bot] Feb 7, 2025
3f1f902
Merge pull request #1449 from stripe/latest-codegen-beta
stripe-openapi[bot] Feb 7, 2025
e2336a1
Bump version to 11.6.0b1
xavdid Feb 7, 2025
83644d1
Merge python-beta (#1467)
jar-stripe Mar 7, 2025
de194b2
Generating for Open API version 1505 (#1469)
ramya-stripe Mar 17, 2025
54e39cc
Merge upstream and update generated code for v1566
stripe-openapi[bot] Mar 17, 2025
93a0159
Bump version to 11.7.0b1
helenye-stripe Mar 18, 2025
e5d23b7
Prathmesh/merge python beta (#1470)
prathmesh-stripe Mar 19, 2025
486ccf5
Update generated code for v1572
stripe-openapi[bot] Mar 19, 2025
adbccd0
Update generated code for v1573
stripe-openapi[bot] Mar 19, 2025
e9813d8
Update generated code for v1574
stripe-openapi[bot] Mar 19, 2025
33eee5b
Merge upstream and update generated code for v1583
stripe-openapi[bot] Mar 19, 2025
646e346
Update generated code for v1585
stripe-openapi[bot] Mar 19, 2025
c92a9f0
Update generated code for v1586
stripe-openapi[bot] Mar 20, 2025
65d4972
Update generated code for v1587
stripe-openapi[bot] Mar 20, 2025
a77ce12
Update generated code for v1588
stripe-openapi[bot] Mar 20, 2025
1a157af
Update generated code for v1590
stripe-openapi[bot] Mar 20, 2025
7bee425
Update generated code for v1591
stripe-openapi[bot] Mar 20, 2025
db34439
Update generated code for v1593
stripe-openapi[bot] Mar 20, 2025
2a4b743
Update generated code for v1594
stripe-openapi[bot] Mar 20, 2025
a0d0a97
Update generated code for v1595
stripe-openapi[bot] Mar 20, 2025
92b06d1
Update generated code for v1596
stripe-openapi[bot] Mar 20, 2025
086b195
Update generated code for v1597
stripe-openapi[bot] Mar 20, 2025
6827f12
Update generated code for v1598
stripe-openapi[bot] Mar 20, 2025
11c9ce2
Update generated code for v1599
stripe-openapi[bot] Mar 20, 2025
b86bdb0
Update generated code for v1601
stripe-openapi[bot] Mar 20, 2025
f209c7c
Update generated code for v1602
stripe-openapi[bot] Mar 20, 2025
8f7fcdb
Update generated code for v1604
stripe-openapi[bot] Mar 21, 2025
566594a
Update generated code for v1605
stripe-openapi[bot] Mar 21, 2025
1eb183e
Update generated code for v1606
stripe-openapi[bot] Mar 21, 2025
40ffa65
Update generated code for v1607
stripe-openapi[bot] Mar 21, 2025
053191a
Update generated code for v1608
stripe-openapi[bot] Mar 21, 2025
402d77c
Update generated code for v1609
stripe-openapi[bot] Mar 21, 2025
4adf43f
Update generated code for v1610
stripe-openapi[bot] Mar 21, 2025
7eef973
Update generated code for v1611
stripe-openapi[bot] Mar 21, 2025
ae27c44
Update generated code for v1612
stripe-openapi[bot] Mar 21, 2025
db9d59e
Update generated code for v1613
stripe-openapi[bot] Mar 24, 2025
8628a07
Update generated code for v1615
stripe-openapi[bot] Mar 24, 2025
209747d
Update generated code for v1618
stripe-openapi[bot] Mar 25, 2025
1fd93da
Update generated code for v1620
stripe-openapi[bot] Mar 25, 2025
1a1c694
Update generated code for v1621
stripe-openapi[bot] Mar 25, 2025
c62f3c4
Update generated code for v1622
stripe-openapi[bot] Mar 25, 2025
cc451f2
Update generated code for v1625
stripe-openapi[bot] Mar 25, 2025
557264a
Update generated code for v1626
stripe-openapi[bot] Mar 25, 2025
2b52bad
Merge upstream and update generated code for v1626
stripe-openapi[bot] Mar 26, 2025
b2af933
Update generated code for v1626
stripe-openapi[bot] Mar 26, 2025
a410300
Update generated code for v1626
stripe-openapi[bot] Mar 26, 2025
a4e8268
Update generated code for v1627
stripe-openapi[bot] Mar 26, 2025
b9f8d8e
Update generated code for v1628
stripe-openapi[bot] Mar 26, 2025
24a5a1e
Update generated code for v1628
stripe-openapi[bot] Mar 26, 2025
db1a99c
Update generated code for v1629
stripe-openapi[bot] Mar 26, 2025
474de70
Merge branch 'beta' into latest-codegen-beta
mbroshi-stripe Mar 27, 2025
e2871c6
Merge pull request #1455 from stripe/latest-codegen-beta
stripe-openapi[bot] Mar 27, 2025
1eafac1
Update add_beta_version logic
mbroshi-stripe Mar 27, 2025
85cbd49
Update generated code for v1630
stripe-openapi[bot] Mar 27, 2025
94bec1d
Update generated code for v1631
stripe-openapi[bot] Mar 27, 2025
44a7bd7
Remove re import
mbroshi-stripe Mar 27, 2025
91b609b
Fix linting error
mbroshi-stripe Mar 27, 2025
2c87abe
Update generated code for v1632
stripe-openapi[bot] Mar 27, 2025
f2716eb
Update generated code for v1633
stripe-openapi[bot] Mar 27, 2025
e01101d
Fix formatting again?
mbroshi-stripe Mar 27, 2025
a2c3c20
Update generated code for v1634
stripe-openapi[bot] Mar 27, 2025
4b63098
Update generated code for v1635
stripe-openapi[bot] Mar 27, 2025
54ab699
Remove conflicting lint check
mbroshi-stripe Mar 27, 2025
dccac56
Update generated code for v1636
stripe-openapi[bot] Mar 27, 2025
b9f7617
Update generated code for v1637
stripe-openapi[bot] Mar 27, 2025
171d620
Merge pull request #1476 from stripe/mbroshi/update-add-beta-version
mbroshi-stripe Mar 28, 2025
5737b0a
Update generated code for v1637
stripe-openapi[bot] Mar 28, 2025
f0707f3
Update generated code for v1638
stripe-openapi[bot] Mar 28, 2025
d2bdbc7
Update generated code for v1639
stripe-openapi[bot] Mar 28, 2025
fcf94ac
Update generated code for v1640
stripe-openapi[bot] Mar 28, 2025
a8f388a
Update generated code for v1641
stripe-openapi[bot] Mar 28, 2025
d8f6c64
Update generated code for v1641
stripe-openapi[bot] Mar 28, 2025
00ea964
Update generated code for v1641
stripe-openapi[bot] Mar 28, 2025
d0fdd1b
Update generated code for v1641
stripe-openapi[bot] Mar 31, 2025
05bf1b4
update pyflakes version
helenye-stripe Apr 1, 2025
5d841ad
update ci version to get passing during brownout (#1480)
helenye-stripe Apr 1, 2025
12fdede
Merge branch 'beta' into latest-codegen-beta
helenye-stripe Apr 1, 2025
4d905c7
Merge pull request #1477 from stripe/latest-codegen-beta
stripe-openapi[bot] Apr 1, 2025
9562486
Generate beta SDKs for Open API version 1648 (#1482)
ramya-stripe Apr 1, 2025
201a842
Fix event names and related objects (#1483)
ramya-stripe Apr 2, 2025
fcc3650
Bump version to 12.1.0b1
ramya-stripe Apr 2, 2025
dc1a438
Include v2 APIs in changelog (#1484)
ramya-stripe Apr 2, 2025
5eb5d9c
Merge changes from stripe/stripe-python master
xavdid Apr 5, 2025
ad26466
fix merge
xavdid Apr 5, 2025
ca1b9ae
fix again
xavdid Apr 5, 2025
be3ac43
Merge pull request #1488 from stripe/xavdid/merge-python-beta
xavdid-stripe Apr 5, 2025
afee334
Update generated code for v1662
stripe-openapi[bot] Apr 5, 2025
cf74264
Update generated code for v1663
stripe-openapi[bot] Apr 7, 2025
907ec24
Handle external_account field
mbroshi-stripe Apr 7, 2025
5e8ccfd
Revert "Handle external_account field"
mbroshi-stripe Apr 7, 2025
9f5d338
Update generated code for v1664
stripe-openapi[bot] Apr 7, 2025
728b4f1
Handle external_account field (#1490)
mbroshi-stripe Apr 8, 2025
9e03800
Update generated code for v1665
stripe-openapi[bot] Apr 8, 2025
d36dad6
Update generated code for v1666
stripe-openapi[bot] Apr 8, 2025
8cad2d4
Update CHANGELOG.md
jar-stripe Apr 8, 2025
279a4a4
Update generated code for v1667
stripe-openapi[bot] Apr 8, 2025
279962f
Update generated code for v1668
stripe-openapi[bot] Apr 8, 2025
e6118cb
Merge upstream and update generated code for v1668
stripe-openapi[bot] Apr 9, 2025
ab53ffa
Merge upstream and update generated code for v1668
stripe-openapi[bot] Apr 9, 2025
4540098
Update generated code for v1669
stripe-openapi[bot] Apr 9, 2025
2069983
Update generated code for v1669
stripe-openapi[bot] Apr 10, 2025
44dab76
Merge branch 'beta' into latest-codegen-beta
ramya-stripe Apr 10, 2025
687696d
Merge pull request #1489 from stripe/latest-codegen-beta
stripe-openapi[bot] Apr 10, 2025
e135c9a
Update generated code for v1670
stripe-openapi[bot] Apr 10, 2025
cf985be
Bump version to 12.1.0b2
ramya-stripe Apr 10, 2025
2bc7362
Update generated code for v1671
stripe-openapi[bot] Apr 11, 2025
318c637
Update generated code for v1672
stripe-openapi[bot] Apr 11, 2025
c32b7ad
Update generated code for v1673
stripe-openapi[bot] Apr 11, 2025
178073c
Update generated code for v1673
stripe-openapi[bot] Apr 11, 2025
2eb7041
Update generated code for v1675
stripe-openapi[bot] Apr 14, 2025
d07ee6c
Update generated code for v1675
stripe-openapi[bot] Apr 14, 2025
04c0c48
Update generated code for v1679
stripe-openapi[bot] Apr 15, 2025
7282fc1
Merge upstream and update generated code for v1679
stripe-openapi[bot] Apr 15, 2025
b8c327a
Update generated code for v1680
stripe-openapi[bot] Apr 15, 2025
b830fb4
Update generated code for v1682
stripe-openapi[bot] Apr 16, 2025
67eb46e
Update generated code for v1685
stripe-openapi[bot] Apr 16, 2025
0f27622
Update generated code for v1686
stripe-openapi[bot] Apr 16, 2025
dcdbe70
Merge branch 'beta' into latest-codegen-beta
ramya-stripe Apr 16, 2025
4fa99a7
Update generated code for v1686
stripe-openapi[bot] Apr 16, 2025
60f9525
Update generated code for v1686
stripe-openapi[bot] Apr 16, 2025
9028f6c
Update generated code for v1687
stripe-openapi[bot] Apr 17, 2025
d65ded6
Update generated code for v1688
stripe-openapi[bot] Apr 17, 2025
c4d28de
Update generated code for v1689
stripe-openapi[bot] Apr 17, 2025
94ff136
Update generated code for v1691
stripe-openapi[bot] Apr 17, 2025
6f4e55b
Update generated code for v1692
stripe-openapi[bot] Apr 17, 2025
6fafae3
Update generated code for v1694
stripe-openapi[bot] Apr 17, 2025
535e11d
Update generated code for v1695
stripe-openapi[bot] Apr 17, 2025
d55d529
Update generated code for v1696
stripe-openapi[bot] Apr 17, 2025
b80a4c8
Update generated code for v1697
stripe-openapi[bot] Apr 17, 2025
28ce99a
Merge pull request #1495 from stripe/latest-codegen-beta
stripe-openapi[bot] Apr 17, 2025
c8d78c7
Bump version to 12.1.0b3
prathmesh-stripe Apr 17, 2025
038a83b
Update generated code for v1698
stripe-openapi[bot] Apr 17, 2025
f5c1431
Update generated code for v1703
stripe-openapi[bot] Apr 18, 2025
c6f3966
Update generated code for v1704
stripe-openapi[bot] Apr 18, 2025
c39a095
Update generated code for v1707
stripe-openapi[bot] Apr 18, 2025
79dd5f7
Update generated code for v1708
stripe-openapi[bot] Apr 18, 2025
a721640
Merge upstream and update generated code for v1708
stripe-openapi[bot] Apr 18, 2025
7255ece
Update generated code for v1709
stripe-openapi[bot] Apr 18, 2025
f0fb252
Update generated code for v1710
stripe-openapi[bot] Apr 18, 2025
b896613
Update generated code for v1711
stripe-openapi[bot] Apr 18, 2025
b5b06ed
Update generated code for v1712
stripe-openapi[bot] Apr 21, 2025
188c0ac
Update generated code for v1712
stripe-openapi[bot] Apr 21, 2025
e951217
Merge pull request #1498 from stripe/latest-codegen-beta
stripe-openapi[bot] Apr 21, 2025
cf5603b
Merge upstream and update generated code for v1714
stripe-openapi[bot] Apr 21, 2025
f55c920
Merge upstream and update generated code for v1715
stripe-openapi[bot] Apr 22, 2025
393c892
Update generated code for v1716
stripe-openapi[bot] Apr 22, 2025
c9b0493
Update generated code for v1717
stripe-openapi[bot] Apr 22, 2025
eab1686
Update generated code for v1718
stripe-openapi[bot] Apr 22, 2025
5b02479
Update generated code for v1718
stripe-openapi[bot] Apr 22, 2025
ebbebb7
Update generated code for v1719
stripe-openapi[bot] Apr 22, 2025
f992e3a
Merge pull request #1501 from stripe/latest-codegen-beta
stripe-openapi[bot] Apr 24, 2025
6c724b3
Merge upstream and update generated code for v1719
stripe-openapi[bot] Apr 24, 2025
3f1bd20
Merge pull request #1504 from stripe/latest-codegen-beta
stripe-openapi[bot] Apr 24, 2025
da62224
Merge changes from stripe/stripe-python master
mbroshi-stripe Apr 30, 2025
ae0e7d7
Empty commit
mbroshi-stripe Apr 30, 2025
3a78c9a
Merge pull request #1508 from stripe/mbroshi/merge-python-beta
mbroshi-stripe Apr 30, 2025
5d4fcd8
Update generated code for v1719
stripe-openapi[bot] Apr 30, 2025
2615a28
Merge pull request #1507 from stripe/latest-codegen-beta
stripe-openapi[bot] Apr 30, 2025
518b65e
Bump version to 12.2.0b1
helenye-stripe Apr 30, 2025
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
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
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
4811449
Merge pull request #1509 from stripe/latest-codegen-beta
stripe-openapi[bot] May 27, 2025
4028746
Merge upstream and update generated code for v1773
stripe-openapi[bot] May 28, 2025
78244ef
Merge pull request #1519 from stripe/latest-codegen-beta
stripe-openapi[bot] May 28, 2025
b49cae1
Bump version to 12.3.0b1
ramya-stripe May 28, 2025
ff27555
Merge changes from stripe/stripe-python master
prathmesh-stripe Jun 5, 2025
90c3d97
Added import for the new deprecated services in stripe_client
prathmesh-stripe Jun 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ indent_size = 2

[Makefile]
indent_style = tab

[CHANGELOG.md]
trim_trailing_whitespace = false
5 changes: 4 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# explicitly when using `ignore`.
# E704 is disabled in the default configuration, but by specifying `ignore`, we wipe that out.
# ruff formatting creates code that violates it, so we have to disable it manually
ignore = E501, W503, E704
# E203 checks that `:` is not preceded by whitespace, but in some cases,
# formatting adds the whitespace. We let formatting be the source of truth in that case.
ignore = E501, W503, E704, E203
per-file-ignores =
*/__init__.py: IMP100, E402, F401
# we test various import patterns
Expand All @@ -17,6 +19,7 @@ per-file-ignores =

# IMP101: Do not import stripe
# breaking circular dependencies in overrides
stripe/tax/_form.py: IMP101
stripe/_file.py: IMP101
stripe/_account.py: IMP101
stripe/_person.py: IMP101
Expand Down
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# .git-blame-ignore-revs
# mass formatted w/ ruff (2024-05-10)
c46b4b950ea77e9d18ab98885cda721b3de247c0
# (beta) mass formatted w/ ruff (2024-05-13)
11c92dc754cf1e93ed1910624c182aa244d3981c
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
fail-fast: false
matrix:
python_version:
# - "3.6"
- "3.7"
- "3.8"
- "3.9"
Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
}
},

"[markdown]": {
"editor.formatOnSave": false,
},

// Tests
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
Expand Down
1,095 changes: 1,052 additions & 43 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.2.0
12.3.0b1
101 changes: 98 additions & 3 deletions stripe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,39 @@ def set_app_info(
}


# Add a beta version to the API version.
def add_beta_version(
beta_name: str,
beta_version: str,
):
# Validate beta_version format
if not beta_version.startswith("v") or not beta_version[1:].isdigit():
raise ValueError(
f"Invalid beta_version format: {beta_version}. Expected format is 'v' followed by a number (e.g., 'v3')."
)

# Check if beta_name already exists
beta_entry = f"; {beta_name}="
if beta_entry in stripe.api_version:
start_index = stripe.api_version.index(beta_entry) + len(beta_entry)
end_index = stripe.api_version.find(";", start_index)
end_index = end_index if end_index != -1 else len(stripe.api_version)
existing_version = int(
stripe.api_version[(start_index + 1) : end_index]
)
new_version = int(beta_version[1:])
if new_version <= existing_version:
return # Keep the higher version, no update needed
# Remove the existing beta entry
stripe.api_version = (
stripe.api_version[: stripe.api_version.index(beta_entry)]
+ stripe.api_version[end_index:]
)

# Add the new beta version
stripe.api_version = f"{stripe.api_version}; {beta_name}={beta_version}"


# Infrastructure types
from stripe._api_resource import APIResource as APIResource
from stripe._error_object import ErrorObject as ErrorObject
Expand Down Expand Up @@ -257,6 +290,7 @@ def __getattr__(name):
apps as apps,
billing as billing,
billing_portal as billing_portal,
capital as capital,
checkout as checkout,
climate as climate,
entitlements as entitlements,
Expand All @@ -265,6 +299,7 @@ def __getattr__(name):
forwarding as forwarding,
identity as identity,
issuing as issuing,
privacy as privacy,
radar as radar,
reporting as reporting,
sigma as sigma,
Expand All @@ -288,6 +323,10 @@ def __getattr__(name):
from stripe._account_login_link_service import (
AccountLoginLinkService as AccountLoginLinkService,
)
from stripe._account_notice import AccountNotice as AccountNotice
from stripe._account_notice_service import (
AccountNoticeService as AccountNoticeService,
)
from stripe._account_person_service import (
AccountPersonService as AccountPersonService,
)
Expand All @@ -314,6 +353,10 @@ def __getattr__(name):
from stripe._apps_service import AppsService as AppsService
from stripe._balance import Balance as Balance
from stripe._balance_service import BalanceService as BalanceService
from stripe._balance_settings import BalanceSettings as BalanceSettings
from stripe._balance_settings_service import (
BalanceSettingsService as BalanceSettingsService,
)
from stripe._balance_transaction import (
BalanceTransaction as BalanceTransaction,
)
Expand All @@ -326,6 +369,7 @@ def __getattr__(name):
)
from stripe._billing_service import BillingService as BillingService
from stripe._capability import Capability as Capability
from stripe._capital_service import CapitalService as CapitalService
from stripe._card import Card as Card
from stripe._cash_balance import CashBalance as CashBalance
from stripe._charge import Charge as Charge
Expand Down Expand Up @@ -400,6 +444,17 @@ def __getattr__(name):
EphemeralKeyService as EphemeralKeyService,
)
from stripe._error import (
AlreadyCanceledError as AlreadyCanceledError,
BlockedByStripeError as BlockedByStripeError,
ControlledByDashboardError as ControlledByDashboardError,
FeatureNotEnabledError as FeatureNotEnabledError,
FinancialAccountNotOpenError as FinancialAccountNotOpenError,
InsufficientFundsError as InsufficientFundsError,
InvalidPaymentMethodError as InvalidPaymentMethodError,
InvalidPayoutMethodError as InvalidPayoutMethodError,
NotCancelableError as NotCancelableError,
QuotaExceededError as QuotaExceededError,
RecipientNotNotifiableError as RecipientNotNotifiableError,
TemporarySessionExpiredError as TemporarySessionExpiredError,
)
from stripe._event import Event as Event
Expand All @@ -408,6 +463,9 @@ def __getattr__(name):
from stripe._exchange_rate_service import (
ExchangeRateService as ExchangeRateService,
)
from stripe._external_account_service import (
ExternalAccountService as ExternalAccountService,
)
from stripe._file import File as File
from stripe._file_link import FileLink as FileLink
from stripe._file_link_service import FileLinkService as FileLinkService
Expand All @@ -419,6 +477,8 @@ def __getattr__(name):
from stripe._funding_instructions import (
FundingInstructions as FundingInstructions,
)
from stripe._fx_quote import FxQuote as FxQuote
from stripe._fx_quote_service import FxQuoteService as FxQuoteService
from stripe._identity_service import IdentityService as IdentityService
from stripe._invoice import Invoice as Invoice
from stripe._invoice_item import InvoiceItem as InvoiceItem
Expand All @@ -430,9 +490,6 @@ def __getattr__(name):
InvoiceLineItemService as InvoiceLineItemService,
)
from stripe._invoice_payment import InvoicePayment as InvoicePayment
from stripe._invoice_payment_service import (
InvoicePaymentService as InvoicePaymentService,
)
from stripe._invoice_rendering_template import (
InvoiceRenderingTemplate as InvoiceRenderingTemplate,
)
Expand All @@ -445,7 +502,26 @@ def __getattr__(name):
from stripe._login_link import LoginLink as LoginLink
from stripe._mandate import Mandate as Mandate
from stripe._mandate_service import MandateService as MandateService
from stripe._margin import Margin as Margin
from stripe._margin_service import MarginService as MarginService
from stripe._order import Order as Order
from stripe._order_line_item_service import (
OrderLineItemService as OrderLineItemService,
)
from stripe._order_service import OrderService as OrderService
from stripe._payment_attempt_record import (
PaymentAttemptRecord as PaymentAttemptRecord,
)
from stripe._payment_attempt_record_service import (
PaymentAttemptRecordService as PaymentAttemptRecordService,
)
from stripe._payment_intent import PaymentIntent as PaymentIntent
from stripe._payment_intent_amount_details_line_item import (
PaymentIntentAmountDetailsLineItem as PaymentIntentAmountDetailsLineItem,
)
from stripe._payment_intent_amount_details_line_item_service import (
PaymentIntentAmountDetailsLineItemService as PaymentIntentAmountDetailsLineItemService,
)
from stripe._payment_intent_service import (
PaymentIntentService as PaymentIntentService,
)
Expand All @@ -472,13 +548,18 @@ def __getattr__(name):
from stripe._payment_method_service import (
PaymentMethodService as PaymentMethodService,
)
from stripe._payment_record import PaymentRecord as PaymentRecord
from stripe._payment_record_service import (
PaymentRecordService as PaymentRecordService,
)
from stripe._payout import Payout as Payout
from stripe._payout_service import PayoutService as PayoutService
from stripe._person import Person as Person
from stripe._plan import Plan as Plan
from stripe._plan_service import PlanService as PlanService
from stripe._price import Price as Price
from stripe._price_service import PriceService as PriceService
from stripe._privacy_service import PrivacyService as PrivacyService
from stripe._product import Product as Product
from stripe._product_feature import ProductFeature as ProductFeature
from stripe._product_feature_service import (
Expand All @@ -493,9 +574,23 @@ def __getattr__(name):
from stripe._quote_computed_upfront_line_items_service import (
QuoteComputedUpfrontLineItemsService as QuoteComputedUpfrontLineItemsService,
)
from stripe._quote_line import QuoteLine as QuoteLine
from stripe._quote_line_item_service import (
QuoteLineItemService as QuoteLineItemService,
)
from stripe._quote_line_service import QuoteLineService as QuoteLineService
from stripe._quote_preview_invoice import (
QuotePreviewInvoice as QuotePreviewInvoice,
)
from stripe._quote_preview_invoice_service import (
QuotePreviewInvoiceService as QuotePreviewInvoiceService,
)
from stripe._quote_preview_subscription_schedule import (
QuotePreviewSubscriptionSchedule as QuotePreviewSubscriptionSchedule,
)
from stripe._quote_preview_subscription_schedule_service import (
QuotePreviewSubscriptionScheduleService as QuotePreviewSubscriptionScheduleService,
)
from stripe._quote_service import QuoteService as QuoteService
from stripe._radar_service import RadarService as RadarService
from stripe._refund import Refund as Refund
Expand Down
Loading
Loading