Compare commits

...

4 Commits

Author SHA1 Message Date
Stripe OpenAPI
34608c9adf Update generated code for v277 2023-03-23 20:20:59 +00:00
Stripe OpenAPI
ed6d07d9bc Update generated code for v276 2023-03-23 18:10:36 +00:00
Stripe OpenAPI
fc4bada04a Update generated code for v268 2023-03-20 14:22:07 +00:00
Stripe OpenAPI
3b38c42445 Update generated code for v268 2023-03-20 09:35:22 +00:00
4 changed files with 32 additions and 2 deletions

View File

@ -1 +1 @@
v266
v277

View File

@ -3,7 +3,7 @@
module Stripe
module Tax
# A Tax `Transaction` records the tax collected from or refunded to your customer.
# A Tax transaction records the tax collected from or refunded to your customer.
class Transaction < APIResource
extend Stripe::APIOperations::Create

View File

@ -23,6 +23,15 @@ module Stripe
)
end
def collect_inputs(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def process_payment_intent(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -68,6 +77,15 @@ module Stripe
)
end
def self.collect_inputs(reader, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(reader) }),
params: params,
opts: opts
)
end
def self.process_payment_intent(reader, params = {}, opts = {})
request_stripe_object(
method: :post,

View File

@ -1543,6 +1543,12 @@ module Stripe
assert_requested :get, "#{Stripe.api_base}/v1/quotes?limit=3"
end
end
context "Quote.preview_invoice_lines" do
should "support requests with args: quote, preview_invoice" do
Stripe::Quote.preview_invoice_lines("qt_xyz", "in_xyz")
assert_requested :get, "#{Stripe.api_base}/v1/quotes/qt_xyz/preview_invoices/in_xyz/lines?"
end
end
context "Quote.retrieve" do
should "support requests with args: id" do
Stripe::Quote.retrieve("qt_xxxxxxxxxxxxx")
@ -2020,6 +2026,12 @@ module Stripe
assert_requested :post, "#{Stripe.api_base}/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx"
end
end
context "Tax.Calculation.list_line_items" do
should "support requests with args: calculation" do
Stripe::Tax::Calculation.list_line_items("xxx")
assert_requested :get, "#{Stripe.api_base}/v1/tax/calculations/xxx/line_items?"
end
end
context "Tax.Transaction.create_from_calculation" do
should "support requests with args: calculation, reference" do
Stripe::Tax::Transaction.create_from_calculation(