Skip to content

Commit

Permalink
Merge pull request #1268 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Sep 7, 2023
2 parents 600c5fb + 65768f9 commit 44a1547
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 26 deletions.
17 changes: 11 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ⚠️**
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v484
v513
1 change: 1 addition & 0 deletions lib/stripe/object_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions lib/stripe/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/account_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
18 changes: 0 additions & 18 deletions lib/stripe/resources/issuing/card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/%<card>s/shipping/submit", { card: CGI.escape(card) }),
params: params,
opts: opts
)
end

def deliver_card(params = {}, opts = {})
@resource.request_stripe_object(
method: :post,
Expand Down Expand Up @@ -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/%<card>s/shipping/submit", { card: CGI.escape(@resource["id"]) }),
params: params,
opts: opts
)
end
end
end
end
Expand Down
34 changes: 34 additions & 0 deletions lib/stripe/resources/payment_method_domain.rb
Original file line number Diff line number Diff line change
@@ -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/%<payment_method_domain>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/%<payment_method_domain>s/validate", { payment_method_domain: CGI.escape(payment_method_domain) }),
params: params,
opts: opts
)
end
end
end

0 comments on commit 44a1547

Please sign in to comment.