14
0
forked from pool/python-stripe

Compare commits

7 Commits

Author SHA256 Message Date
dc0bf89025 Accepting request 1307102 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1307102
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-stripe?expand=0&rev=7
2025-09-25 16:45:55 +00:00
b27cd1a876 Accepting request 1307091 from home:glaubitz:branches:devel:languages:python
- Update to 12.5.1
  * #1563 fix: Paginate backwards if `starting_after == None`
  * Addresses an #1562 where List iteration would be forwards when
    `starting_after` was set to `None` but backwards if it was not
    set at all. Now, it will paginate backwards in both cases.
- Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/request/show/1307091
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=15
2025-09-25 12:12:05 +00:00
da3513ace5 Accepting request 1302960 from devel:languages:python
- update to 12.5.0:
  * #1554 Add section on private preview SDKs in readme
  * #1544 Update generated code. This release changes the pinned
    API version to `2025-08-27.basil`.
  * Add support for `balance_report`, `payout_details`, and
    `payout_reconciliation_report` on `AccountSession.Component`
    and `AccountSession.CreateParamsComponent`
  * Add support for `name` on `BillingPortal.Configuration`,
    `billing_portal.Configuration.CreateParams`, and
    `billing_portal.Configuration.ModifyParams`
  * Add support for `installments` on
    `Charge.PaymentMethodDetail.Alma`
  * Add support for `transaction_id` on
    `Charge.PaymentMethodDetail.Alma`,
    `Charge.PaymentMethodDetail.AmazonPay`,
    `Charge.PaymentMethodDetail.Billie`,
    `Charge.PaymentMethodDetail.KakaoPay`,
    `Charge.PaymentMethodDetail.KrCard`,
    `Charge.PaymentMethodDetail.NaverPay`,
    `Charge.PaymentMethodDetail.Payco`,
    `Charge.PaymentMethodDetail.RevolutPay`,
    `Charge.PaymentMethodDetail.SamsungPay`, and
    `Charge.PaymentMethodDetail.Satispay`
  * Add support for `location` and `reader` on
    `Charge.PaymentMethodDetail.Paynow`
  * Add support for `amount_includes_iof` on
    `Checkout.Session.PaymentMethodOption.Pix`,
    `PaymentIntent.ConfirmParamsPaymentMethodOptionPix`,
    `PaymentIntent.CreateParamsPaymentMethodOptionPix`,
    `PaymentIntent.ModifyParamsPaymentMethodOptionPix`,

OBS-URL: https://build.opensuse.org/request/show/1302960
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-stripe?expand=0&rev=6
2025-09-08 07:56:56 +00:00
427258f5a8 - update to 12.5.0:
* #1554 Add section on private preview SDKs in readme
  * #1544 Update generated code. This release changes the pinned
    API version to `2025-08-27.basil`.
  * Add support for `balance_report`, `payout_details`, and
    `payout_reconciliation_report` on `AccountSession.Component`
    and `AccountSession.CreateParamsComponent`
  * Add support for `name` on `BillingPortal.Configuration`,
    `billing_portal.Configuration.CreateParams`, and
    `billing_portal.Configuration.ModifyParams`
  * Add support for `installments` on
    `Charge.PaymentMethodDetail.Alma`
  * Add support for `transaction_id` on
    `Charge.PaymentMethodDetail.Alma`,
    `Charge.PaymentMethodDetail.AmazonPay`,
    `Charge.PaymentMethodDetail.Billie`,
    `Charge.PaymentMethodDetail.KakaoPay`,
    `Charge.PaymentMethodDetail.KrCard`,
    `Charge.PaymentMethodDetail.NaverPay`,
    `Charge.PaymentMethodDetail.Payco`,
    `Charge.PaymentMethodDetail.RevolutPay`,
    `Charge.PaymentMethodDetail.SamsungPay`, and
    `Charge.PaymentMethodDetail.Satispay`
  * Add support for `location` and `reader` on
    `Charge.PaymentMethodDetail.Paynow`
  * Add support for `amount_includes_iof` on
    `Checkout.Session.PaymentMethodOption.Pix`,
    `PaymentIntent.ConfirmParamsPaymentMethodOptionPix`,
    `PaymentIntent.CreateParamsPaymentMethodOptionPix`,
    `PaymentIntent.ModifyParamsPaymentMethodOptionPix`,

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=13
2025-09-05 20:09:14 +00:00
16ba351adc Accepting request 1245182 from devel:languages:python
- We must run stripe-mock during check. 

- Update to 11.5.0:
  * Fix regression when using httpx HTTP client
  * Change the pinned API version to 2024-12-18.acacia.
  * Deserialize into correct v2 EventData types
  * update object tags for meter-related classes
  * Update the class for ThinEvent to include livemode
  * Add method to list invoice line items
  * Bump aiohttp from 3.9.0 to 3.9.4
  * Use stdlib AsyncMock when available
  * Add TaxIds API
  * Remove http client base
  * Testing: unify http client mock
  * Remove broken child methods
  * Move StripeClient usage collection onto StripeService
  * Measure StripeClient usage
  * Introduce StripeClient and a service-based call pattern.
- Do not run stripe-mock during check, the testsuite handles it for us.
- Drop patch use-sys-executable.patch, included upstream.

OBS-URL: https://build.opensuse.org/request/show/1245182
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-stripe?expand=0&rev=5
2025-02-12 20:31:38 +00:00
f9fad7015b - We must run stripe-mock during check.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=11
2025-02-12 03:27:50 +00:00
ca3bd9f1db - Update to 11.5.0:
* Fix regression when using httpx HTTP client
  * Change the pinned API version to 2024-12-18.acacia.
  * Deserialize into correct v2 EventData types
  * update object tags for meter-related classes
  * Update the class for ThinEvent to include livemode
  * Add method to list invoice line items
  * Bump aiohttp from 3.9.0 to 3.9.4
  * Use stdlib AsyncMock when available
  * Add TaxIds API
  * Remove http client base
  * Testing: unify http client mock
  * Remove broken child methods
  * Move StripeClient usage collection onto StripeService
  * Measure StripeClient usage
  * Introduce StripeClient and a service-based call pattern.
- Do not run stripe-mock during check, the testsuite handles it for us.
- Drop patch use-sys-executable.patch, included upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=10
2025-02-05 05:12:11 +00:00
5 changed files with 233 additions and 46 deletions

View File

@@ -1,3 +1,215 @@
-------------------------------------------------------------------
Thu Sep 25 11:28:04 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 12.5.1
* #1563 fix: Paginate backwards if `starting_after == None`
* Addresses an #1562 where List iteration would be forwards when
`starting_after` was set to `None` but backwards if it was not
set at all. Now, it will paginate backwards in both cases.
- Use Python 3.11 on SLE-15 by default
-------------------------------------------------------------------
Fri Sep 5 20:08:01 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 12.5.0:
* #1554 Add section on private preview SDKs in readme
* #1544 Update generated code. This release changes the pinned
API version to `2025-08-27.basil`.
* Add support for `balance_report`, `payout_details`, and
`payout_reconciliation_report` on `AccountSession.Component`
and `AccountSession.CreateParamsComponent`
* Add support for `name` on `BillingPortal.Configuration`,
`billing_portal.Configuration.CreateParams`, and
`billing_portal.Configuration.ModifyParams`
* Add support for `installments` on
`Charge.PaymentMethodDetail.Alma`
* Add support for `transaction_id` on
`Charge.PaymentMethodDetail.Alma`,
`Charge.PaymentMethodDetail.AmazonPay`,
`Charge.PaymentMethodDetail.Billie`,
`Charge.PaymentMethodDetail.KakaoPay`,
`Charge.PaymentMethodDetail.KrCard`,
`Charge.PaymentMethodDetail.NaverPay`,
`Charge.PaymentMethodDetail.Payco`,
`Charge.PaymentMethodDetail.RevolutPay`,
`Charge.PaymentMethodDetail.SamsungPay`, and
`Charge.PaymentMethodDetail.Satispay`
* Add support for `location` and `reader` on
`Charge.PaymentMethodDetail.Paynow`
* Add support for `amount_includes_iof` on
`Checkout.Session.PaymentMethodOption.Pix`,
`PaymentIntent.ConfirmParamsPaymentMethodOptionPix`,
`PaymentIntent.CreateParamsPaymentMethodOptionPix`,
`PaymentIntent.ModifyParamsPaymentMethodOptionPix`,
`PaymentIntent.PaymentMethodOption.Pix`, and
`checkout.Session.CreateParamsPaymentMethodOptionPix`
* Add support for new values `block` and `resolution` on enum
`Dispute.PaymentMethodDetail.Card.case_type`
* Add support for new value `terminal_android_apk` on enums
`File.ListParams.purpose` and `File.purpose`
* Add support for new value `terminal_android_apk` on enum
`File.CreateParams.purpose`
* Add support for `metadata` and `period` on `Invoice.CreatePre
viewParamsScheduleDetailPhaseAddInvoiceItem`,
`Subscription.CreateParamsAddInvoiceItem`,
`Subscription.ModifyParamsAddInvoiceItem`,
`SubscriptionSchedule.CreateParamsPhaseAddInvoiceItem`,
`SubscriptionSchedule.ModifyParamsPhaseAddInvoiceItem`, and
`SubscriptionSchedule.Phase.AddInvoiceItem`
* Add support for `exp_month` and `exp_year` on
`issuing.Card.CreateParams`
* Add support for `excluded_payment_method_types` on
`PaymentIntent.CreateParams` and `PaymentIntent`
* Add support for `payout_method` on `Payout.CreateParams` and
`Payout`
* Add support for `mxn` on `Terminal.Configuration.Tipping`,
`terminal.Configuration.CreateParamsTipping`, and
`terminal.Configuration.ModifyParamsTipping`
* Add support for `card` on
`terminal.Reader.PresentPaymentMethodParams`
* Add support for new value `card` on enum
`terminal.Reader.PresentPaymentMethodParams.type`
* Add support for new value `2025-08-27.basil` on enum
`WebhookEndpoint.CreateParams.api_version`
* Add support for error codes `customer_session_expired` and
`india_recurring_payment_mandate_canceled` on
`Invoice.LastFinalizationError`,
`PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`,
`SetupIntent.LastSetupError`, and `StripeError`
* #1553 Import available http libraries more efficiently
* #1549 Introduce V1 namespaces in StripeClient
* All the top level non-namespaced services under StripeClient
services(eg. customers, products) are copied under the new V1
namespace. These top level non-namespaced services will be
marked as deprecated in the next major release and will be
removed in a future release. Eg.
* ```diff
* client = StripeClient("sk_test...")
* # Accessing V1 Stripe services on a StripeClient should be
through the V1 namespace
* client.customers.list()
* + client.v1.customers.list()
* ```
* Refer to the migration guide for help upgrading.
* ## 12.4.0 - 2025-07-30
* This release changes the pinned API version to
`2025-07-30.basil`.
* #1541 Update generated code
* Add support for `instant_payouts_promotion` on
`AccountSession.Component` and
`AccountSession.CreateParamsComponent`
* Add support for `adjustable_quantity` on `BillingPortal.Confi
guration.Feature.SubscriptionUpdate.Product`, `billing_portal
.Configuration.CreateParamsFeatureSubscriptionUpdateProduct`,
and `billing_portal.Configuration.ModifyParamsFeatureSubscrip
tionUpdateProduct`
* Remove support for value `disabled` from enum
`Capability.status`
* Add support for `transaction_id` on
`Charge.PaymentMethodDetail.Cashapp`
* Add support for `origin_context` on `Checkout.Session` and
`checkout.Session.CreateParams`
* Add support for `template` on `Checkout.Session.InvoiceCreati
on.InvoiceDatum.RenderingOption`, `PaymentLink.CreateParamsIn
voiceCreationInvoiceDatumRenderingOption`,
`PaymentLink.InvoiceCreation.InvoiceDatum.RenderingOption`, `
PaymentLink.ModifyParamsInvoiceCreationInvoiceDatumRenderingO
ption`, and `checkout.Session.CreateParamsInvoiceCreationInvo
iceDatumRenderingOption`
* Add support for `setup_future_usage` on
`Checkout.Session.PaymentMethodOption.Pix` and
`checkout.Session.CreateParamsPaymentMethodOptionPix`
* Add support for new value `nz_bank_account` on enum
`checkout.Session.CreateParams.payment_method_types`
* Change `Identity.VerificationSession.RelatedPerson.account`
to be required
* Change `Identity.VerificationSession.RelatedPerson.person` to
be required
* Add support for `duration` on
`Invoice.CreatePreviewParamsScheduleDetailPhase`,
`SubscriptionSchedule.CreateParamsPhase`, and
`SubscriptionSchedule.ModifyParamsPhase`
* Change type of
`Invoice.CreatePreviewParamsSubscriptionDetail.cancel_at`,
`Subscription.CreateParams.cancel_at`, and
`Subscription.ModifyParams.cancel_at` from `DateTime` to
`DateTime | enum('max_period_end'|'min_period_end')`
* Add support for `price_data` on
`PaymentLink.CreateParamsLineItem`
* Change `PaymentLink.CreateParamsLineItem.price` to be
optional
* Add support for new value `America/Coyhaique` on enum
`reporting.ReportRun.CreateParamsParameter.timezone`
* Add support for `standard` on
`Tax.Registration.CountryOption.Ae`,
`Tax.Registration.CountryOption.Au`,
`Tax.Registration.CountryOption.Ch`,
`Tax.Registration.CountryOption.Gb`,
`Tax.Registration.CountryOption.Jp`,
`Tax.Registration.CountryOption.No`,
`Tax.Registration.CountryOption.Nz`,
`Tax.Registration.CountryOption.Sg`,
`tax.Registration.CreateParamsCountryOptionAe`,
`tax.Registration.CreateParamsCountryOptionAl`,
`tax.Registration.CreateParamsCountryOptionAo`,
`tax.Registration.CreateParamsCountryOptionAu`,
`tax.Registration.CreateParamsCountryOptionAw`,
`tax.Registration.CreateParamsCountryOptionB`,
`tax.Registration.CreateParamsCountryOptionBa`,
`tax.Registration.CreateParamsCountryOptionBb`,
`tax.Registration.CreateParamsCountryOptionBd`,
`tax.Registration.CreateParamsCountryOptionBf`,
`tax.Registration.CreateParamsCountryOptionBh`,
`tax.Registration.CreateParamsCountryOptionCd`,
`tax.Registration.CreateParamsCountryOptionCh`,
`tax.Registration.CreateParamsCountryOptionEt`,
`tax.Registration.CreateParamsCountryOptionGb`,
`tax.Registration.CreateParamsCountryOptionGn`,
`tax.Registration.CreateParamsCountryOptionIs`,
`tax.Registration.CreateParamsCountryOptionJp`,
`tax.Registration.CreateParamsCountryOptionMe`,
`tax.Registration.CreateParamsCountryOptionMk`,
`tax.Registration.CreateParamsCountryOptionMr`,
`tax.Registration.CreateParamsCountryOptionNo`,
`tax.Registration.CreateParamsCountryOptionNz`,
`tax.Registration.CreateParamsCountryOptionOm`,
`tax.Registration.CreateParamsCountryOptionR`,
`tax.Registration.CreateParamsCountryOptionSg`,
`tax.Registration.CreateParamsCountryOptionSr`,
`tax.Registration.CreateParamsCountryOptionUy`,
`tax.Registration.CreateParamsCountryOptionZa`, and
`tax.Registration.CreateParamsCountryOptionZw`
-------------------------------------------------------------------
Wed Feb 12 03:27:26 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- We must run stripe-mock during check.
-------------------------------------------------------------------
Wed Feb 5 05:11:47 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 11.5.0:
* Fix regression when using httpx HTTP client
* Change the pinned API version to 2024-12-18.acacia.
* Deserialize into correct v2 EventData types
* update object tags for meter-related classes
* Update the class for ThinEvent to include livemode
* Add method to list invoice line items
* Bump aiohttp from 3.9.0 to 3.9.4
* Use stdlib AsyncMock when available
* Add TaxIds API
* Remove http client base
* Testing: unify http client mock
* Remove broken child methods
* Move StripeClient usage collection onto StripeService
* Measure StripeClient usage
* Introduce StripeClient and a service-based call pattern.
- Do not run stripe-mock during check, the testsuite handles it for us.
- Drop patch use-sys-executable.patch, included upstream.
-------------------------------------------------------------------
Fri Jan 19 03:23:20 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
@@ -58,7 +270,7 @@ Wed Jan 17 03:12:47 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch use-sys-executable.patch:
* Use sys.executable when checking exports.
- Add patch also-skip-streaming.patch:
* Also skip streaming tests.
* Also skip streaming tests.
* Switch to autosetup and pyproject macros.
-------------------------------------------------------------------
@@ -66,11 +278,11 @@ Sat Dec 11 16:24:22 UTC 2021 - Axel Braun <axel.braun@gmx.de>
- version 2.63.0
* skip python2
* API Updates
** Add support for new resource ShippingRate
** Add support for expire method on resource Checkout.Session
* API Updates
** Add support for new resource ShippingRate
** Add support for expire method on resource Checkout.Session
** Add support for list_payment_methods method on resource Customer
* Stop sending raw exception message as part of Stripe user agent.
* Stop sending raw exception message as part of Stripe user agent.
-------------------------------------------------------------------
Fri Aug 13 08:34:39 UTC 2021 - Danilo Spinella <danilo.spinella@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-stripe
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,23 +15,25 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-stripe
Version: 7.12.0
Version: 12.5.1
Release: 0
Summary: Python bindings for the Stripe API
License: MIT
URL: https://github.com/stripe/stripe-python
Source: https://files.pythonhosted.org/packages/source/s/stripe/stripe-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#stripe/stripe-python#1195
Patch0: use-sys-executable.patch
BuildRequires: %{python_module aiohttp >= 3.9.4}
BuildRequires: %{python_module anyio}
BuildRequires: %{python_module httpx}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 6.0}
BuildRequires: %{python_module pytest-mock >= 2.0}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module requests >= 2.20}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module trio}
BuildRequires: %{python_module typing_extensions >= 4.5.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: stripe-mock
@@ -57,7 +59,11 @@ Python bindings for the Stripe API.
%check
stripe-mock &
pid=$!
%pytest
# Raises invalid request
donttest="test_terminal_readers_process_setup_intent_post "
# Requires network
donttest+="or TestLiveHTTPClients or test_async_raw_request_timeout"
%pytest -k "not ($donttest)"
kill $pid
%files %{python_files}

3
stripe-12.5.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5407d092c355c31393e767d2dcb2d5a8c3980caa9a073acb32d0ccb3c01b04b5
size 1432826

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:121971bef27a79a20c3f0676f4d4ccf1207d04b7758327b3725e694bf53106b6
size 783948

View File

@@ -1,31 +0,0 @@
From 46b7f4b2facac4a73828a736d69101828dda71e0 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Wed, 17 Jan 2024 11:52:06 +1100
Subject: [PATCH] Use sys.executable in test_exports
Not all systems will have 'python' in the path to execute to check
exports -- and indeed, it may not even be the interpreter that is under
test and can import the module. Since we are already running under the
test suite, use sys.executable to check.
---
tests/test_exports.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/test_exports.py b/tests/test_exports.py
index 9c7d9b980..149032109 100644
--- a/tests/test_exports.py
+++ b/tests/test_exports.py
@@ -3,11 +3,12 @@
from typing import Any
import stripe
import subprocess
+import sys
def assert_output(code: str, expected: str) -> None:
process = subprocess.Popen(
- ["python", "-c", f"import stripe; print({code})"],
+ [sys.executable, "-c", f"import stripe; print({code})"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)