Skip to content

Commit

Permalink
update object tags for meter-related classes (#3008)
Browse files Browse the repository at this point in the history
* update object tags for meter-related classes

* remove extra line

* improve test
  • Loading branch information
xavdid-stripe authored Oct 18, 2024
1 parent 2fc2a0d commit b7f6718
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,12 @@ public static class StripeTypeRegistry
new Dictionary<string, Type>
{
// V2ObjectsToTypes: The beginning of the section generated from our OpenAPI spec
{ "billing.meter_event", typeof(V2.Billing.MeterEvent) },
{ "billing.meter_event_adjustment", typeof(V2.Billing.MeterEventAdjustment) },
{ "billing.meter_event_session", typeof(V2.Billing.MeterEventSession) },
{ "v2.billing.meter_event", typeof(V2.Billing.MeterEvent) },
{
"v2.billing.meter_event_adjustment", typeof(
V2.Billing.MeterEventAdjustment)
},
{ "v2.billing.meter_event_session", typeof(V2.Billing.MeterEventSession) },
{ "v2.core.event", typeof(V2.Event) },

// V2ObjectsToTypes: The end of the section generated from our OpenAPI spec
Expand Down
2 changes: 1 addition & 1 deletion src/StripeTests/Infrastructure/Public/StripeClientTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public async Task RawRequestAsync_Json()
HttpMethod.Post,
"/v2/billing/meter_event_session",
System.Net.HttpStatusCode.OK,
"{\"id\": \"mes_123\",\"object\":\"billing.meter_event_session\"}");
"{\"id\": \"mes_123\",\"object\":\"v2.billing.meter_event_session\"}");

var rawResponse = await this.stripeClient.RawRequestAsync(
HttpMethod.Post,
Expand Down

0 comments on commit b7f6718

Please sign in to comment.