Skip to content

Commit c7a3247

Browse files
committed
refactor: move currencies endpoints under Currencies section
1 parent 2ab8cd0 commit c7a3247

5 files changed

Lines changed: 274 additions & 261 deletions

File tree

api/spec/packages/aip/src/konnect.tsp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ using TypeSpec.OpenAPI;
4747
)
4848
@tagMetadata(Shared.AppsTag, #{ description: Shared.AppsDescription })
4949
@tagMetadata(Shared.BillingTag, #{ description: Shared.BillingDescription })
50+
@tagMetadata(
51+
Shared.CurrenciesTag,
52+
#{ description: Shared.CurrenciesDescription }
53+
)
5054
@tagMetadata(Shared.TaxTag, #{ description: Shared.TaxDescription })
5155
@tagMetadata(Shared.FeaturesTag, #{ description: Shared.FeaturesDescription })
5256
@tagMetadata(Shared.LLMCostTag, #{ description: Shared.LLMCostDescription })
@@ -146,16 +150,16 @@ interface BillingProfilesEndpoints extends Billing.BillingProfilesOperations {}
146150
interface TaxCodesEndpoints extends Tax.TaxCodesOperations {}
147151

148152
@route("/openmeter/currencies")
149-
@tag(Shared.BillingTag)
153+
@tag(Shared.CurrenciesTag)
150154
interface CurrenciesEndpoints extends Currencies.CurrenciesOperations {}
151155

152156
@route("/openmeter/currencies/custom")
153-
@tag(Shared.BillingTag)
157+
@tag(Shared.CurrenciesTag)
154158
interface CurrenciesCustomEndpoints
155159
extends Currencies.CurrenciesCustomOperations {}
156160

157161
@route("/openmeter/currencies/custom/{currencyId}/cost-bases")
158-
@tag(Shared.BillingTag)
162+
@tag(Shared.CurrenciesTag)
159163
interface CurrenciesCustomCostBasesEndpoints
160164
extends Currencies.CurrenciesCustomCostBasesOperations {}
161165

api/spec/packages/aip/src/openmeter.tsp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ using TypeSpec.OpenAPI;
5353
)
5454
@tagMetadata(Shared.AppsTag, #{ description: Shared.AppsDescription })
5555
@tagMetadata(Shared.BillingTag, #{ description: Shared.BillingDescription })
56+
@tagMetadata(
57+
Shared.CurrenciesTag,
58+
#{ description: Shared.CurrenciesDescription }
59+
)
5660
@tagMetadata(Shared.TaxTag, #{ description: Shared.TaxDescription })
5761
@tagMetadata(Shared.FeaturesTag, #{ description: Shared.FeaturesDescription })
5862
@tagMetadata(Shared.LLMCostTag, #{ description: Shared.LLMCostDescription })
@@ -151,16 +155,16 @@ interface BillingProfilesEndpoints extends Billing.BillingProfilesOperations {}
151155
interface TaxCodesEndpoints extends Tax.TaxCodesOperations {}
152156

153157
@route("/openmeter/currencies")
154-
@tag(Shared.BillingTag)
158+
@tag(Shared.CurrenciesTag)
155159
interface CurrenciesEndpoints extends Currencies.CurrenciesOperations {}
156160

157161
@route("/openmeter/currencies/custom")
158-
@tag(Shared.BillingTag)
162+
@tag(Shared.CurrenciesTag)
159163
interface CurrenciesCustomEndpoints
160164
extends Currencies.CurrenciesCustomOperations {}
161165

162166
@route("/openmeter/currencies/custom/{currencyId}/cost-bases")
163-
@tag(Shared.BillingTag)
167+
@tag(Shared.CurrenciesTag)
164168
interface CurrenciesCustomCostBasesEndpoints
165169
extends Currencies.CurrenciesCustomCostBasesOperations {}
166170

api/spec/packages/aip/src/shared/consts.tsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ const AppsDescription = "Apps enable you to extend and customize billing and usa
2424
const BillingTag = "OpenMeter Billing";
2525
const BillingDescription = "Billing manages the billing profiles, currencies, cost bases, and invoices for customers.";
2626

27+
const CurrenciesTag = "OpenMeter Currencies";
28+
const CurrenciesDescription = "Currencies and cost bases for customers.";
29+
2730
const TaxTag = "OpenMeter Tax";
2831
const TaxDescription = "Tax codes are used to calculate taxes for customers.";
2932

0 commit comments

Comments
 (0)