mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-15 00:00:49 -04:00
Compare commits
7 Commits
34608c9adf
...
fb655489eb
Author | SHA1 | Date | |
---|---|---|---|
|
fb655489eb | ||
|
aa05b84acc | ||
|
4143d3930d | ||
|
23bc1b1f3b | ||
|
e33a1da93e | ||
|
e1080cdd1e | ||
|
57f61c09ce |
12
CHANGELOG.md
12
CHANGELOG.md
@ -1,5 +1,17 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 8.5.0-beta.1 - 2023-03-23
|
||||||
|
* [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
|
||||||
|
* Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
|
||||||
|
* Add support for `collect_inputs` method on resource `Terminal.Reader`
|
||||||
|
|
||||||
|
## 8.4.0 - 2023-03-23
|
||||||
|
* [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
|
||||||
|
* Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
|
||||||
|
* Add support for `create` and `list_line_items` methods on resource `Calculation`
|
||||||
|
* Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
|
||||||
|
* [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
|
||||||
|
|
||||||
## 8.4.0-beta.4 - 2023-03-16
|
## 8.4.0-beta.4 - 2023-03-16
|
||||||
* [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
|
* [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
|
||||||
* Add support for `create_from_calculation` method on resource `Tax.Transaction`
|
* Add support for `create_from_calculation` method on resource `Tax.Transaction`
|
||||||
|
@ -1 +1 @@
|
|||||||
v266
|
v283
|
@ -72,7 +72,9 @@ module Stripe
|
|||||||
initialize_from(resp.data, opts)
|
initialize_from(resp.data, opts)
|
||||||
end
|
end
|
||||||
extend Gem::Deprecate
|
extend Gem::Deprecate
|
||||||
deprecate :save, :update, 2022, 11
|
deprecate :save, "the `update` class method (for examples"\
|
||||||
|
" see https://github.com/stripe/stripe-ruby"\
|
||||||
|
"/wiki/Migration-guide-for-v8)", 2022, 11
|
||||||
|
|
||||||
def self.included(base)
|
def self.included(base)
|
||||||
# Set `metadata` as additive so that when it's set directly we remember
|
# Set `metadata` as additive so that when it's set directly we remember
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
module Stripe
|
module Stripe
|
||||||
module Tax
|
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
|
class Transaction < APIResource
|
||||||
extend Stripe::APIOperations::Create
|
extend Stripe::APIOperations::Create
|
||||||
|
|
||||||
|
@ -23,6 +23,15 @@ module Stripe
|
|||||||
)
|
)
|
||||||
end
|
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 = {})
|
def process_payment_intent(params = {}, opts = {})
|
||||||
request_stripe_object(
|
request_stripe_object(
|
||||||
method: :post,
|
method: :post,
|
||||||
@ -68,6 +77,15 @@ module Stripe
|
|||||||
)
|
)
|
||||||
end
|
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 = {})
|
def self.process_payment_intent(reader, params = {}, opts = {})
|
||||||
request_stripe_object(
|
request_stripe_object(
|
||||||
method: :post,
|
method: :post,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Stripe
|
module Stripe
|
||||||
VERSION = "8.4.0-beta.4"
|
VERSION = "8.5.0-beta.1"
|
||||||
end
|
end
|
||||||
|
@ -1543,6 +1543,12 @@ module Stripe
|
|||||||
assert_requested :get, "#{Stripe.api_base}/v1/quotes?limit=3"
|
assert_requested :get, "#{Stripe.api_base}/v1/quotes?limit=3"
|
||||||
end
|
end
|
||||||
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
|
context "Quote.retrieve" do
|
||||||
should "support requests with args: id" do
|
should "support requests with args: id" do
|
||||||
Stripe::Quote.retrieve("qt_xxxxxxxxxxxxx")
|
Stripe::Quote.retrieve("qt_xxxxxxxxxxxxx")
|
||||||
@ -2020,6 +2026,12 @@ module Stripe
|
|||||||
assert_requested :post, "#{Stripe.api_base}/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx"
|
assert_requested :post, "#{Stripe.api_base}/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx"
|
||||||
end
|
end
|
||||||
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
|
context "Tax.Transaction.create_from_calculation" do
|
||||||
should "support requests with args: calculation, reference" do
|
should "support requests with args: calculation, reference" do
|
||||||
Stripe::Tax::Transaction.create_from_calculation(
|
Stripe::Tax::Transaction.create_from_calculation(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user