-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beta' into pakrym/Add_raw_request
- Loading branch information
Showing
38 changed files
with
1,122 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,65 @@ | ||
# Changelog | ||
|
||
## 5.5.0b2 - 2023-04-13 | ||
* [#954](https://github.com/stripe/stripe-python/pull/954) Update generated code for beta | ||
* Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader` | ||
* [#953](https://github.com/stripe/stripe-python/pull/953) Update generated code for beta | ||
|
||
|
||
## 5.5.0b1 - 2023-03-30 | ||
* [#950](https://github.com/stripe/stripe-python/pull/950) Update generated code for beta | ||
|
||
|
||
## 5.4.0 - 2023-03-30 | ||
* [#951](https://github.com/stripe/stripe-python/pull/951) Update generated code | ||
* Remove support for `create` method on resource `Tax.Transaction` | ||
* This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `create_from_calculation` method. | ||
|
||
## 5.4.0b1 - 2023-03-23 | ||
* [#941](https://github.com/stripe/stripe-python/pull/941) Update generated code for beta (new) | ||
* Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem` | ||
* Add support for `collect_inputs` method on resource `Terminal.Reader` | ||
|
||
## 5.3.0 - 2023-03-23 | ||
* [#947](https://github.com/stripe/stripe-python/pull/947) Update generated code | ||
* Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction` | ||
* Add support for `create` and `list_line_items` methods on resource `Calculation` | ||
* Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction` | ||
|
||
## 5.3.0b4 - 2023-03-16 | ||
* [#940](https://github.com/stripe/stripe-python/pull/940) Update generated code for beta (new) | ||
* Add support for `create_from_calculation` method on resource `Tax.Transaction` | ||
* [#938](https://github.com/stripe/stripe-python/pull/938) Update generated code for beta (new) | ||
* Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary` | ||
* Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer` | ||
* Remove support for `retrieve` method on resource `FinancingSummary` | ||
|
||
## 5.3.0b3 - 2023-03-09 | ||
* [#936](https://github.com/stripe/stripe-python/pull/936) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* Remove support for `list_transactions` method on resource `Tax.Transaction` | ||
|
||
## 5.3.0b2 - 2023-03-03 | ||
* [#935](https://github.com/stripe/stripe-python/pull/935) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign` | ||
* Add support for `list` and `retrieve` methods on resource `CardBundle` | ||
* Add support for `list`, `modify`, and `retrieve` methods on resource `CardDesign` | ||
|
||
## 5.3.0b1 - 2023-02-23 | ||
* [#931](https://github.com/stripe/stripe-python/pull/931) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
|
||
## 5.2.0 - 2023-02-16 | ||
* [#924](https://github.com/stripe/stripe-python/pull/924) API Updates | ||
* Add support for `refund_payment` method on resource `Terminal.Reader` | ||
|
||
## 5.2.0b1 - 2023-02-02 | ||
* [#921](https://github.com/stripe/stripe-python/pull/921) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* Add support for new resource `FinancialConnections.Transaction` | ||
* Add support for `list` method on resource `Transaction` | ||
|
||
## 5.1.1 - 2023-02-06 | ||
* [#923](https://github.com/stripe/stripe-python/pull/923) Bugfix: revert "Pass params into logger.{info,debug}" | ||
|
||
|
@@ -23,6 +68,45 @@ | |
* Add support for `resume` method on resource `Subscription` | ||
* [#913](https://github.com/stripe/stripe-python/pull/913) Pass params into logger.{info,debug} | ||
|
||
## 5.1.0b7 - 2023-01-26 | ||
* [#917](https://github.com/stripe/stripe-python/pull/917) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* Add support for `list_transactions` method on resource `Tax.Transaction` | ||
|
||
## 5.1.0b6 - 2023-01-19 | ||
* [#915](https://github.com/stripe/stripe-python/pull/915) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* Add support for `Tax.Settings` resource. | ||
|
||
## 5.1.0b5 - 2023-01-12 | ||
* [#914](https://github.com/stripe/stripe-python/pull/914) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft` | ||
* Add support for `tax.Registration` resource | ||
|
||
## 5.1.0b4 - 2023-01-05 | ||
* [#912](https://github.com/stripe/stripe-python/pull/912) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* Add support for `mark_stale_quote` method on resource `Quote` | ||
|
||
## 5.1.0b3 - 2022-12-22 | ||
* [#910](https://github.com/stripe/stripe-python/pull/910) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* Move `stripe.TaxCalculation` and `stripe.TaxTranscation` to `stripe.tax.Calculation` and `stripe.tax.Transaction`. | ||
|
||
## 5.1.0b2 - 2022-12-15 | ||
* [#906](https://github.com/stripe/stripe-python/pull/906) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* Add support for new resources `QuoteLine`, `TaxCalculation`, and `TaxTransaction` | ||
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation` | ||
* Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction` | ||
|
||
## 5.1.0b1 - 2022-12-08 | ||
* [#902](https://github.com/stripe/stripe-python/pull/902) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* [#898](https://github.com/stripe/stripe-python/pull/898) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
|
||
## 5.0.0 - 2022-11-16 | ||
|
||
Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15. | ||
|
@@ -35,25 +119,17 @@ Breaking changes that arose during code generation of the library that we postpo | |
* [#888](https://github.com/stripe/stripe-python/pull/888) Do not run Coveralls if secret token is not available | ||
* [#875](https://github.com/stripe/stripe-python/pull/875) hide misleading ssl security warning in python>=2.7.9 | ||
|
||
### ⚠️ Changed | ||
- Dropped support for Python version 3.4 and 3.5 (#881). We now support Python 2.7 or 3.6+. | ||
- Fixed mistyped names for two OAuth exceptions: `UnsupportedGrantTypError`->`UnsupportedGrantTypeError` and `UnsupportedResponseTypError`->`UnsupportedResponseTypeError` (#872). | ||
|
||
### Deprecated | ||
- Deprecate `save` method on resources (#887). Use `modify` instead. | ||
```python | ||
# Before | ||
customer = stripe.Customer.retrieve("cus_123") | ||
customer.email = "[email protected]" | ||
customer.save() | ||
## 4.3.0b3 - 2022-11-02 | ||
* [#890](https://github.com/stripe/stripe-python/pull/890) API Updates for beta branch | ||
* Updated beta APIs to the latest stable version | ||
* [#885](https://github.com/stripe/stripe-python/pull/885) Update changelog for the Gift Card API | ||
* [#884](https://github.com/stripe/stripe-python/pull/884) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
|
||
# After | ||
stripe.Customer.modify("cus_123", email="[email protected]") | ||
``` | ||
|
||
### ⚠️ Removed | ||
- Removed `Orders` resource (#882). | ||
- Removed `SKU` resource (#883). | ||
## 4.3.0b1 - 2022-09-26 | ||
* [#878](https://github.com/stripe/stripe-python/pull/878) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources. | ||
|
||
## 4.2.0 - 2022-09-23 | ||
* [#877](https://github.com/stripe/stripe-python/pull/877) API Updates | ||
|
@@ -62,12 +138,32 @@ Breaking changes that arose during code generation of the library that we postpo | |
* [#867](https://github.com/stripe/stripe-python/pull/867) API Updates | ||
* Update links in documentation to be absolute. | ||
|
||
## 4.2.0b2 - 2022-08-26 | ||
* [#869](https://github.com/stripe/stripe-python/pull/869) API Updates for beta branch | ||
* Updated stable APIs to the latest version | ||
* Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards). | ||
|
||
## 4.2.0b1 - 2022-08-23 | ||
* [#866](https://github.com/stripe/stripe-python/pull/866) API Updates for beta branch | ||
- Updated stable APIs to the latest version | ||
- `Stripe-Version` beta headers are not pinned by-default and need to be manually specified, please refer to [beta SDKs README section](https://github.com/stripe/stripe-dotnet/blob/master/README.md#beta-sdks) | ||
|
||
## 4.1.0 - 2022-08-19 | ||
* [#861](https://github.com/stripe/stripe-python/pull/861) API Updates | ||
* Add support for new resource `CustomerCashBalanceTransaction` | ||
* [#860](https://github.com/stripe/stripe-python/pull/860) Add a support section to the readme | ||
* [#717](https://github.com/stripe/stripe-python/pull/717) Fix test TestCharge.test_is_saveable(). | ||
|
||
## 4.1.0b2 - 2022-08-11 | ||
* [#859](https://github.com/stripe/stripe-python/pull/859) API Updates for beta branch | ||
- Updated stable APIs to the latest version | ||
- Add `refund_payment` method to Terminal resource | ||
|
||
## 4.1.0b1 - 2022-08-03 | ||
* [#848](https://github.com/stripe/stripe-python/pull/848) API Updates for beta branch | ||
- Updated stable APIs to the latest version | ||
- Added the `Order` resource support | ||
|
||
## 4.0.2 - 2022-08-03 | ||
* [#855](https://github.com/stripe/stripe-python/pull/855) Fix issue where auto_paging_iter failed on nested list objects. | ||
|
||
|
@@ -86,21 +182,19 @@ Breaking changes that arose during code generation of the library that we postpo | |
* [#836](https://github.com/stripe/stripe-python/pull/836) API Updates. Add Price.create tests. | ||
* [#835](https://github.com/stripe/stripe-python/pull/835) API Updates. Use auto-generation for credit_note and invoice methods. | ||
|
||
### ⚠️ Removed | ||
- Removed deprecated `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `IssuerFraudRecord`, `Recipient`, `RecipientTransfer`, and `ThreeDSecure` classes. | ||
- Removed deprecated `Charge.update_dispute` and `Charge.close_dispute` methods that were using legacy REST API endpoint. Prefer [Dispute.modify](https://stripe.com/docs/api/disputes/update?lang=python) and [Dispute.close](https://stripe.com/docs/api/disputes/close?lang=python) | ||
- Removed deprecated `Card.details` method and `CardDetails` resource. The REST API endpoint is not longer supported. | ||
- Removed the deprecated `Source.source_transactions` method. Prefer `SubscriptionItem.list_source_transactions` | ||
- Removed the deprecated `SubscriptionItem.usage_record_summaries` method. Prefer `SubscriptionItem.list_usage_record_summaries` | ||
- Removed the deprecated `Charge.refund` method. Prefer [Refund.create](https://stripe.com/docs/api/refunds/create) | ||
|
||
### ⚠️ Changed | ||
- To be consistent with other resource methods, `ApplicationFee.refund` returns an instance of `ApplicationFee` and doesn't mutate the instance of `ApplicationFee`. | ||
- To be consistent with other resource methods, the `Customer.delete_discount` no longer resets the `discount` property to `None` and returns the deleted discount instead. If you were relying on this behavior, reset the discount property manually: | ||
- The `LineItem` resource now inherits from `StripeObject` as it has no methods of it's own. | ||
- To be consistent with other resource methods, the `Subscription.delete_discount` returns an instance of deleted discount and doesn't mutate the instance of `Subscription`. | ||
- Update the CA certificate bundle. | ||
- Request sending logic unified across standard and custom methods (https://github.com/stripe/stripe-python/pull/832) | ||
## 3.6.0b1 - 2022-07-22 | ||
* [#843](https://github.com/stripe/stripe-python/pull/843) API Updates for beta branch | ||
- Updated stable APIs to the latest version | ||
- Add `QuotePhase` resource | ||
* [#840](https://github.com/stripe/stripe-python/pull/840) API Updates for beta branch | ||
- Updated stable APIs to the latest version | ||
- Add `SubscriptionSchedule.amend` method. | ||
* [#837](https://github.com/stripe/stripe-python/pull/837) API Updates for beta branch | ||
- Include `server_side_confirmation_beta=v1` beta | ||
- Add `secretKeyConfirmation` to `PaymentIntent` | ||
* [#834](https://github.com/stripe/stripe-python/pull/834) API Updates for beta branch | ||
- Updated stable APIs to the latest version | ||
* [#826](https://github.com/stripe/stripe-python/pull/826) Use the generated API version | ||
|
||
## 3.5.0 - 2022-06-30 | ||
* [#831](https://github.com/stripe/stripe-python/pull/831) API Updates | ||
|
@@ -130,7 +224,6 @@ Breaking changes that arose during code generation of the library that we postpo | |
* [#806](https://github.com/stripe/stripe-python/pull/806) Start testing on pypy-3.8 | ||
* [#811](https://github.com/stripe/stripe-python/pull/811) Add sanitize_id method | ||
|
||
|
||
## 3.0.0 - 2022-05-09 | ||
* [#809](https://github.com/stripe/stripe-python/pull/809) Release of major version v3.0.0. The [migration guide](https://github.com/stripe/stripe-python/wiki/Migration-Guide-for-v3) contains more information. | ||
(⚠️ = breaking changes): | ||
|
@@ -878,11 +971,6 @@ Pull requests included in this release: | |
* PEP8ified the codebase and enforced with a test. | ||
* Proper encoding of timezone aware datetimes | ||
|
||
### Backwards incompatible changes | ||
* The `to_dict` and `values` methods on resources no longer recursively convert objects to plain `dict`s. All resources now inherit from `dict` but are functionally different in that you cannot set a value to an empty string and cannot delete items. | ||
* The `previous_metadata` attribute on resources is now protected. | ||
* Timezone aware `datetime` objects passed to the API will now be encoded in a way that does not depend on the local system time. If you are passing timezone-aware datetimes to our API and your server time is not already in UTC, this will change the value passed to our API. | ||
|
||
## 1.10.8 - 2013-12-02 | ||
* Add stripe.ApplicationFee resource | ||
|
||
|
@@ -959,3 +1047,4 @@ Pull requests included in this release: | |
|
||
## 1.6.1 - 2011-09-14 | ||
* Parameters with value None are no longer included in API requests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v291 | ||
v316 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.4.0 | ||
5.5.0b2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,14 @@ | |
# Andrew Metcalf <[email protected]> | ||
|
||
# Configuration variables | ||
from stripe.api_version import _ApiVersion | ||
|
||
api_key = None | ||
client_id = None | ||
api_base = "https://api.stripe.com" | ||
connect_api_base = "https://connect.stripe.com" | ||
upload_api_base = "https://files.stripe.com" | ||
api_version = None | ||
api_version = _ApiVersion.CURRENT | ||
verify_ssl_certs = True | ||
proxy = None | ||
default_http_client = None | ||
|
Oops, something went wrong.