mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-18 00:00:44 -04:00
Compare commits
3 Commits
fee9143bb1
...
600c5fb883
Author | SHA1 | Date | |
---|---|---|---|
|
600c5fb883 | ||
|
8dfa6f6eaa | ||
|
c3b05c5e71 |
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 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`
|
||||
|
@ -1 +1 @@
|
||||
v482
|
||||
v484
|
@ -8,9 +8,14 @@ module Stripe
|
||||
extend Stripe::APIOperations::Create
|
||||
extend Stripe::APIOperations::List
|
||||
include Stripe::APIOperations::Save
|
||||
extend Stripe::APIOperations::NestedResource
|
||||
|
||||
OBJECT_NAME = "quote"
|
||||
|
||||
nested_resource_class_methods :preview_invoice, operations: %i[list]
|
||||
nested_resource_class_methods :preview_subscription_schedule,
|
||||
operations: %i[list]
|
||||
|
||||
def accept(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
@ -104,24 +109,6 @@ module Stripe
|
||||
)
|
||||
end
|
||||
|
||||
def preview_invoices(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def preview_subscription_schedules(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def reestimate(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
@ -229,24 +216,6 @@ module Stripe
|
||||
)
|
||||
end
|
||||
|
||||
def self.preview_invoices(quote, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(quote) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.preview_subscription_schedules(quote, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(quote) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.reestimate(quote, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
|
@ -35,6 +35,8 @@ module Stripe
|
||||
#
|
||||
# Related guide: [Send invoices to customers](https://stripe.com/docs/billing/invoices/sending)
|
||||
class QuotePreviewInvoice < APIResource
|
||||
extend Stripe::APIOperations::List
|
||||
|
||||
OBJECT_NAME = "quote_preview_invoice"
|
||||
end
|
||||
end
|
||||
|
@ -3,6 +3,8 @@
|
||||
|
||||
module Stripe
|
||||
class QuotePreviewSchedule < APIResource
|
||||
extend Stripe::APIOperations::List
|
||||
|
||||
OBJECT_NAME = "quote_preview_schedule"
|
||||
end
|
||||
end
|
||||
|
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
VERSION = "9.0.0-beta.1"
|
||||
VERSION = "9.2.0-beta.1"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user