Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update object tags for meter-related classes #1471

Merged
merged 2 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/stripe/resources/v2/billing/meter_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ module V2
module Billing
# Fix me empty_doc_string.
class MeterEvent < APIResource
OBJECT_NAME = "billing.meter_event"
OBJECT_NAME = "v2.billing.meter_event"
def self.object_name
"billing.meter_event"
"v2.billing.meter_event"
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/v2/billing/meter_event_adjustment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module Stripe
module V2
module Billing
class MeterEventAdjustment < APIResource
OBJECT_NAME = "billing.meter_event_adjustment"
OBJECT_NAME = "v2.billing.meter_event_adjustment"
def self.object_name
"billing.meter_event_adjustment"
"v2.billing.meter_event_adjustment"
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/v2/billing/meter_event_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module Stripe
module V2
module Billing
class MeterEventSession < APIResource
OBJECT_NAME = "billing.meter_event_session"
OBJECT_NAME = "v2.billing.meter_event_session"
def self.object_name
"billing.meter_event_session"
"v2.billing.meter_event_session"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/stripe/api_resource_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ def self.object_name

should "raise an NotImplementedError on refresh" do
stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/billing/meter_event_session")
.to_return(body: JSON.generate(object: "billing.meter_event_session"))
.to_return(body: JSON.generate(object: "v2.billing.meter_event_session"))

client = Stripe::StripeClient.new("sk_test_123")
session = client.v2.billing.meter_event_session.create
Expand Down
2 changes: 1 addition & 1 deletion test/stripe/stripe_service_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class StripeServiceTest < Test::Unit::TestCase

should "correctly deserialize v2 account object" do
stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/billing/meter_event_session")
.to_return(body: JSON.generate(object: "billing.meter_event_session"))
.to_return(body: JSON.generate(object: "v2.billing.meter_event_session"))

client = Stripe::StripeClient.new("sk_test_123")

Expand Down
Loading