mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-08-14 00:02:11 -04:00
Compare commits
2 Commits
c70287156e
...
2f44078b6e
Author | SHA1 | Date | |
---|---|---|---|
|
2f44078b6e | ||
|
d9118a7dfe |
@ -1 +1 @@
|
|||||||
v299
|
v309
|
@ -5,7 +5,7 @@ module Stripe
|
|||||||
module Tax
|
module Tax
|
||||||
# A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://stripe.com/docs/tax).
|
# A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://stripe.com/docs/tax).
|
||||||
#
|
#
|
||||||
# Stripe will not register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://stripe.com/docs/tax/registering).
|
# Stripe doesn't register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://stripe.com/docs/tax/registering).
|
||||||
class Registration < APIResource
|
class Registration < APIResource
|
||||||
extend Stripe::APIOperations::Create
|
extend Stripe::APIOperations::Create
|
||||||
extend Stripe::APIOperations::List
|
extend Stripe::APIOperations::List
|
||||||
|
@ -1365,6 +1365,17 @@ module Stripe
|
|||||||
)
|
)
|
||||||
assert_requested :post, "#{Stripe.api_base}/v1/plans"
|
assert_requested :post, "#{Stripe.api_base}/v1/plans"
|
||||||
end
|
end
|
||||||
|
should "support requests with args: amount, currency, interval, product2" do
|
||||||
|
Stripe::Plan.create(
|
||||||
|
{
|
||||||
|
amount: 2000,
|
||||||
|
currency: "usd",
|
||||||
|
interval: "month",
|
||||||
|
product: { name: "My product" },
|
||||||
|
}
|
||||||
|
)
|
||||||
|
assert_requested :post, "#{Stripe.api_base}/v1/plans"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
context "Plan.delete" do
|
context "Plan.delete" do
|
||||||
should "support requests with args: id" do
|
should "support requests with args: id" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user