Skip to content

Commit

Permalink
refactor: use plurar for category names in billing API (#2087)
Browse files Browse the repository at this point in the history
  • Loading branch information
turip authored Jan 16, 2025
1 parent a1ed658 commit ef183d4
Show file tree
Hide file tree
Showing 7 changed files with 438 additions and 438 deletions.
478 changes: 239 additions & 239 deletions api/api.gen.go

Large diffs are not rendered by default.

380 changes: 190 additions & 190 deletions api/client/go/client.gen.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/openapi.cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ paths:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Billing (Private Preview)
/api/v1/billing/invoices/{invoiceId}/tax/recalculate:
/api/v1/billing/invoices/{invoiceId}/taxes/recalculate:
post:
operationId: recalculateInvoiceTaxAction
summary: Recalculate an invoice's tax amounts
Expand Down
10 changes: 5 additions & 5 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ paths:
$ref: '#/components/schemas/StripeWebhookEvent'
security:
- {}
/api/v1/billing/customer:
/api/v1/billing/customers:
get:
operationId: listBillingProfileCustomerOverrides
summary: List customer overrides
Expand Down Expand Up @@ -479,7 +479,7 @@ paths:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Billing (Private Preview)
/api/v1/billing/customer/{customerId}:
/api/v1/billing/customers/{customerId}:
post:
operationId: upsertBillingProfileCustomerOverride
summary: Create a new or update a customer override
Expand Down Expand Up @@ -1442,7 +1442,7 @@ paths:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Billing (Private Preview)
/api/v1/billing/invoices/{invoiceId}/tax/recalculate:
/api/v1/billing/invoices/{invoiceId}/taxes/recalculate:
post:
operationId: recalculateInvoiceTaxAction
summary: Recalculate an invoice's tax amounts
Expand Down Expand Up @@ -1584,7 +1584,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/VoidInvoiceActionInput'
/api/v1/billing/profile:
/api/v1/billing/profiles:
get:
operationId: listBillingProfiles
summary: List billing profiles
Expand Down Expand Up @@ -1716,7 +1716,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/BillingProfileCreate'
/api/v1/billing/profile/{id}:
/api/v1/billing/profiles/{id}:
delete:
operationId: deleteBillingProfile
summary: Delete a billing profile
Expand Down
2 changes: 1 addition & 1 deletion api/spec/src/billing/customeroverride.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using TypeSpec.OpenAPI;

namespace OpenMeter.Billing;

@route("/api/v1/billing/customer")
@route("/api/v1/billing/customers")
@tag("Billing (Private Preview)")
interface CustomerOverrides {
/**
Expand Down
2 changes: 1 addition & 1 deletion api/spec/src/billing/invoices.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ interface InvoiceEndpoints {
* Note: charges might apply, depending on the tax provider.
*/
@post
@route("/tax/recalculate")
@route("/taxes/recalculate")
@summary("Recalculate an invoice's tax amounts")
@operationId("recalculateInvoiceTaxAction")
recalculateTaxAction(
Expand Down
2 changes: 1 addition & 1 deletion api/spec/src/billing/profile.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using TypeSpec.OpenAPI;

namespace OpenMeter.Billing;

@route("/api/v1/billing/profile")
@route("/api/v1/billing/profiles")
@tag("Billing (Private Preview)")
interface Profiles {
/**
Expand Down

0 comments on commit ef183d4

Please sign in to comment.