mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-20 00:01:05 -05:00
Merge upstream and update generated code for v2124 and
This commit is contained in:
commit
8ed5c9d479
@ -1 +1 @@
|
||||
e62524b587909bee231a15ce0dc618f1d04f69a4
|
||||
c0dacb8d26f5b7c5d68ef88b3f51d40c1eafeab7
|
||||
@ -7985,7 +7985,7 @@ module Stripe
|
||||
should "Test v2 billing license fee get (service)" do
|
||||
stub_request(
|
||||
:get,
|
||||
"#{Stripe::DEFAULT_API_BASE}/v2/billing/license_fees?lookup_keys=lookup_keys"
|
||||
"#{Stripe::DEFAULT_API_BASE}/v2/billing/license_fees?lookup_keys[0]=lookup_keys"
|
||||
).to_return(
|
||||
body: '{"data":[{"active":true,"created":"1970-01-12T21:42:34.472Z","currency":"usd","display_name":"display_name","id":"obj_123","latest_version":"latest_version","licensed_item":{"created":"1970-01-12T21:42:34.472Z","display_name":"display_name","id":"obj_123","object":"v2.billing.licensed_item","livemode":true},"live_version":"live_version","object":"v2.billing.license_fee","service_interval":"month","service_interval_count":1375336415,"tax_behavior":"exclusive","tiers":[{}],"livemode":true}],"next_page_url":null,"previous_page_url":null}',
|
||||
status: 200
|
||||
@ -7993,7 +7993,7 @@ module Stripe
|
||||
client = Stripe::StripeClient.new("sk_test_123")
|
||||
|
||||
license_fees = client.v2.billing.license_fees.list({ lookup_keys: ["lookup_keys"] })
|
||||
assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/billing/license_fees?lookup_keys=lookup_keys"
|
||||
assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/billing/license_fees?lookup_keys[0]=lookup_keys"
|
||||
end
|
||||
should "Test v2 billing license fee post (service)" do
|
||||
stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/billing/license_fees").to_return(
|
||||
@ -8415,7 +8415,7 @@ module Stripe
|
||||
should "Test v2 billing profile get (service)" do
|
||||
stub_request(
|
||||
:get,
|
||||
"#{Stripe::DEFAULT_API_BASE}/v2/billing/profiles?lookup_keys=lookup_keys"
|
||||
"#{Stripe::DEFAULT_API_BASE}/v2/billing/profiles?lookup_keys[0]=lookup_keys"
|
||||
).to_return(
|
||||
body: '{"data":[{"created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.billing.profile","status":"active","livemode":true}],"next_page_url":null,"previous_page_url":null}',
|
||||
status: 200
|
||||
@ -8423,7 +8423,7 @@ module Stripe
|
||||
client = Stripe::StripeClient.new("sk_test_123")
|
||||
|
||||
profiles = client.v2.billing.profiles.list({ lookup_keys: ["lookup_keys"] })
|
||||
assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/billing/profiles?lookup_keys=lookup_keys"
|
||||
assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/billing/profiles?lookup_keys[0]=lookup_keys"
|
||||
end
|
||||
should "Test v2 billing profile post (service)" do
|
||||
stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/billing/profiles").to_return(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user