Compare commits

...

8 Commits

Author SHA1 Message Date
Stripe OpenAPI
33544c7c25 Update generated code for v260 2023-03-15 21:20:26 +00:00
stripe-openapi[bot]
8f210e251a
Update generated code for v258 (#1188)
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
2023-03-15 16:05:31 +00:00
pakrym-stripe
3b31fb29a6
Merge pull request #1187 from stripe/merge-upstream-master
Merge upstream master
2023-03-15 09:02:18 -07:00
Pavel Krymets
4519e8fa19 Merge branch 'master' into beta 2023-03-15 08:41:42 -07:00
stripe-openapi[bot]
5e3d38b675
Update generated code for v258 (#1186)
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
2023-03-15 15:38:11 +00:00
pakrym-stripe
414ca367af
Run bundle install before formatting code (#1185)
* Run bundle install before formatting code

* qq
2023-03-15 15:31:08 +00:00
Annie Li
f471a2c6a4 Bump version to 8.4.0-beta.3 2023-03-09 13:02:58 -08:00
anniel-stripe
1e3428e87d
Merge pull request #1184 from stripe/latest-codegen-beta
API Updates for beta branch
2023-03-09 12:50:40 -08:00
8 changed files with 20 additions and 9 deletions

View File

@ -1,5 +1,10 @@
# Changelog
## 8.4.0-beta.3 - 2023-03-09
* [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
* Updated stable APIs to the latest version
* Remove support for `list_transactions` method on resource `Tax.Transaction`
## 8.4.0-beta.2 - 2023-03-03
* [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
* Updated stable APIs to the latest version

View File

@ -4,4 +4,5 @@ update-version:
@perl -pi -e 's|VERSION = "[.\-\w\d]+"|VERSION = "$(VERSION)"|' lib/stripe/version.rb
codegen-format:
bundle install --quiet
bundle exec rubocop -o /dev/null --auto-correct

View File

@ -1 +1 @@
v249
v260

View File

@ -1 +1 @@
8.4.0-beta.2
8.4.0-beta.3

View File

@ -6,7 +6,7 @@ module Stripe
#
# When a customer opens a payment link it will open a new [checkout session](https://stripe.com/docs/api/checkout/sessions) to render the payment page. You can use [checkout session events](https://stripe.com/docs/api/events/types#event_types-checkout.session.completed) to track payments through payment links.
#
# Related guide: [Payment Links API](https://stripe.com/docs/payments/payment-links/api)
# Related guide: [Payment Links API](https://stripe.com/docs/payment-links)
class PaymentLink < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List

View File

@ -7,7 +7,7 @@ module Stripe
# They can be used in conjunction with [Prices](https://stripe.com/docs/api#prices) to configure pricing in Payment Links, Checkout, and Subscriptions.
#
# Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription),
# [share a Payment Link](https://stripe.com/docs/payments/payment-links/overview),
# [share a Payment Link](https://stripe.com/docs/payment-links),
# [accept payments with Checkout](https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront),
# and more about [Products and Prices](https://stripe.com/docs/products-prices/overview)
class Product < APIResource

View File

@ -83,10 +83,10 @@ module Stripe
)
end
def preview_invoice_lines(params = {}, opts = {})
def preview_invoice_lines(preview_invoice, params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/quotes/%<quote>s/preview_invoice_lines", { quote: CGI.escape(self["id"]) }),
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
params: params,
opts: opts
)
@ -191,10 +191,15 @@ module Stripe
)
end
def self.preview_invoice_lines(quote, params = {}, opts = {})
def self.preview_invoice_lines(
quote,
preview_invoice,
params = {},
opts = {}
)
request_stripe_object(
method: :get,
path: format("/v1/quotes/%<quote>s/preview_invoice_lines", { quote: CGI.escape(quote) }),
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
params: params,
opts: opts
)

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module Stripe
VERSION = "8.4.0-beta.2"
VERSION = "8.4.0-beta.3"
end