lib/stripe/resources/credit_note.rb in stripe-6.5.0 vs lib/stripe/resources/credit_note.rb in stripe-6.6.0.pre.beta.1
- old
+ new
@@ -16,31 +16,31 @@
params: params,
opts: opts
)
end
- def self.void_credit_note(id, params = {}, opts = {})
+ def self.list_preview_line_items(params = {}, opts = {})
request_stripe_object(
- method: :post,
- path: format("/v1/credit_notes/%<id>s/void", { id: CGI.escape(id) }),
+ method: :get,
+ path: "/v1/credit_notes/preview/lines",
params: params,
opts: opts
)
end
- def self.preview(params, opts = {})
+ def self.preview(params = {}, opts = {})
request_stripe_object(
method: :get,
- path: resource_url + "/preview",
+ path: "/v1/credit_notes/preview",
params: params,
opts: opts
)
end
- def self.list_preview_line_items(params, opts = {})
+ def self.void_credit_note(id, params = {}, opts = {})
request_stripe_object(
- method: :get,
- path: resource_url + "/preview/lines",
+ method: :post,
+ path: format("/v1/credit_notes/%<id>s/void", { id: CGI.escape(id) }),
params: params,
opts: opts
)
end
end