diff --git a/CHANGELOG.md b/CHANGELOG.md index 09ad1883c..7f09147a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,13 +2,13 @@ ## 9.2.0-beta.1 - 2023-08-31 * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta - * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list` - -## 9.0.0-beta.1 - 2023-08-24 -* [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta - * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule` -* [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta + * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list` +## 9.1.0 - 2023-08-31 +* [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code + * Add support for new resource `AccountSession` + * Add support for `create` method on resource `AccountSession` +* [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message ## 9.0.0 - 2023-08-16 **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️** @@ -42,6 +42,11 @@ That is, instead of upgrading stripe-ruby and separately upgrading your Stripe API Version through the Stripe Dashboard. whenever you upgrade major versions of stripe-ruby, you should also upgrade your integration to be compatible with the latest Stripe API version. +## 9.0.0-beta.1 - 2023-08-24 +* [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta + * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule` +* [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta + ## 8.8.0-beta.1 - 2023-08-10 * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta * Updated stable APIs to the latest version diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 577f393c0..4f60ba282 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v484 \ No newline at end of file +v513 \ No newline at end of file diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index 4f9250485..44bbcd028 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -78,6 +78,7 @@ def self.object_names_to_classes PaymentLink::OBJECT_NAME => PaymentLink, PaymentMethod::OBJECT_NAME => PaymentMethod, PaymentMethodConfiguration::OBJECT_NAME => PaymentMethodConfiguration, + PaymentMethodDomain::OBJECT_NAME => PaymentMethodDomain, Payout::OBJECT_NAME => Payout, Person::OBJECT_NAME => Person, Plan::OBJECT_NAME => Plan, diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index 5eb02a43d..fc91e7e62 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -65,6 +65,7 @@ require "stripe/resources/payment_link" require "stripe/resources/payment_method" require "stripe/resources/payment_method_configuration" +require "stripe/resources/payment_method_domain" require "stripe/resources/payout" require "stripe/resources/person" require "stripe/resources/plan" diff --git a/lib/stripe/resources/account_link.rb b/lib/stripe/resources/account_link.rb index 071ad020f..f682debed 100644 --- a/lib/stripe/resources/account_link.rb +++ b/lib/stripe/resources/account_link.rb @@ -5,7 +5,7 @@ module Stripe # Account Links are the means by which a Connect platform grants a connected account permission to access # Stripe-hosted applications, such as Connect Onboarding. # - # Related guide: [Connect Onboarding](https://stripe.com/docs/connect/connect-onboarding) + # Related guide: [Connect Onboarding](https://stripe.com/docs/connect/custom/hosted-onboarding) class AccountLink < APIResource extend Stripe::APIOperations::Create diff --git a/lib/stripe/resources/issuing/card.rb b/lib/stripe/resources/issuing/card.rb index 50a43282e..88764b666 100644 --- a/lib/stripe/resources/issuing/card.rb +++ b/lib/stripe/resources/issuing/card.rb @@ -54,15 +54,6 @@ def self.ship_card(card, params = {}, opts = {}) ) end - def self.submit_card(card, params = {}, opts = {}) - request_stripe_object( - method: :post, - path: format("/v1/test_helpers/issuing/cards/%s/shipping/submit", { card: CGI.escape(card) }), - params: params, - opts: opts - ) - end - def deliver_card(params = {}, opts = {}) @resource.request_stripe_object( method: :post, @@ -98,15 +89,6 @@ def ship_card(params = {}, opts = {}) opts: opts ) end - - def submit_card(params = {}, opts = {}) - @resource.request_stripe_object( - method: :post, - path: format("/v1/test_helpers/issuing/cards/%s/shipping/submit", { card: CGI.escape(@resource["id"]) }), - params: params, - opts: opts - ) - end end end end diff --git a/lib/stripe/resources/payment_method_domain.rb b/lib/stripe/resources/payment_method_domain.rb new file mode 100644 index 000000000..184784336 --- /dev/null +++ b/lib/stripe/resources/payment_method_domain.rb @@ -0,0 +1,34 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + # A payment method domain represents a web domain that you have registered with Stripe. + # Stripe Elements use registered payment method domains to control where certain payment methods are shown. + # + # Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration). + class PaymentMethodDomain < APIResource + extend Stripe::APIOperations::Create + extend Stripe::APIOperations::List + include Stripe::APIOperations::Save + + OBJECT_NAME = "payment_method_domain" + + def validate(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_method_domains/%s/validate", { payment_method_domain: CGI.escape(self["id"]) }), + params: params, + opts: opts + ) + end + + def self.validate(payment_method_domain, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_method_domains/%s/validate", { payment_method_domain: CGI.escape(payment_method_domain) }), + params: params, + opts: opts + ) + end + end +end