diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 103b9dcfb..bfd5e01b8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v406 \ No newline at end of file +v417 \ No newline at end of file diff --git a/stripe/api_resources/__init__.py b/stripe/api_resources/__init__.py index ac8eb8d7a..f15e55b27 100644 --- a/stripe/api_resources/__init__.py +++ b/stripe/api_resources/__init__.py @@ -67,6 +67,9 @@ from stripe.api_resources.payment_intent import PaymentIntent from stripe.api_resources.payment_link import PaymentLink from stripe.api_resources.payment_method import PaymentMethod +from stripe.api_resources.payment_method_configuration import ( + PaymentMethodConfiguration, +) from stripe.api_resources.payout import Payout from stripe.api_resources.person import Person from stripe.api_resources.plan import Plan diff --git a/stripe/api_resources/payment_method_configuration.py b/stripe/api_resources/payment_method_configuration.py new file mode 100644 index 000000000..655a49918 --- /dev/null +++ b/stripe/api_resources/payment_method_configuration.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from __future__ import absolute_import, division, print_function + +from stripe.api_resources.abstract import CreateableAPIResource +from stripe.api_resources.abstract import ListableAPIResource +from stripe.api_resources.abstract import UpdateableAPIResource + + +class PaymentMethodConfiguration( + CreateableAPIResource, + ListableAPIResource, + UpdateableAPIResource, +): + """ + An object detailing payment method configurations. + """ + + OBJECT_NAME = "payment_method_configuration" diff --git a/stripe/api_version.py b/stripe/api_version.py index 258ce80da..b3ea20af2 100644 --- a/stripe/api_version.py +++ b/stripe/api_version.py @@ -4,4 +4,4 @@ class _ApiVersion: CURRENT = "2022-11-15" - PREVIEW = "2023-06-08.preview-v2" + PREVIEW = "20230712T200515" diff --git a/stripe/object_classes.py b/stripe/object_classes.py index e523287ef..2c4251a36 100644 --- a/stripe/object_classes.py +++ b/stripe/object_classes.py @@ -73,6 +73,7 @@ api_resources.PaymentIntent.OBJECT_NAME: api_resources.PaymentIntent, api_resources.PaymentLink.OBJECT_NAME: api_resources.PaymentLink, api_resources.PaymentMethod.OBJECT_NAME: api_resources.PaymentMethod, + api_resources.PaymentMethodConfiguration.OBJECT_NAME: api_resources.PaymentMethodConfiguration, api_resources.Payout.OBJECT_NAME: api_resources.Payout, api_resources.Person.OBJECT_NAME: api_resources.Person, api_resources.Plan.OBJECT_NAME: api_resources.Plan,