You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/spec/packages/aip-client-javascript/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,7 @@ The full call path, HTTP route, and a short description are listed below.
152
152
|`client.customers.credits.grants.updateExternalSettlement`|`POST /openmeter/customers/{customerId}/credits/grants/{creditGrantId}/settlement/external`| Update the payment settlement status of an externally funded credit grant. Use this endpoint to synchronize the payment state of an external payment with the system so that revenue recognition and credit availability work as expected. |
153
153
|`client.customers.credits.transactions.list`|`GET /openmeter/customers/{customerId}/credits/transactions`| List credit transactions for a customer. Returns an immutable, chronological record of credit movements: funded credits and consumed credits. Transactions are returned in reverse chronological order by default. |
154
154
|`client.customers.charges.list`|`GET /openmeter/customers/{customerId}/charges`| List customer charges. Returns the customer's charges that are represented as either flat fee or usage-based charges. |
@@ -598,12 +598,6 @@ export const chargeStatus = z
598
598
'Lifecycle status of a charge. Values: - `created`: The charge has been created but is not active yet. - `active`: The charge is active. - `final`: The charge is fully finalized and no further changes are expected. - `deleted`: The charge has been deleted.',
599
599
)
600
600
601
-
exportconstpriceFree=z
602
-
.object({
603
-
type: z.literal('free').describe('The type of the price.'),
604
-
})
605
-
.describe('Free price.')
606
-
607
601
exportconstsettlementMode=z
608
602
.enum(['credit_then_invoice','credit_only'])
609
603
@@ -657,6 +651,12 @@ export const rateCardProrationMode = z
657
651
'The proration mode of the rate card. Values: - `no_proration`: No proration. - `prorate_prices`: Prorate the price based on the time remaining in the billing period.',
658
652
)
659
653
654
+
exportconstpriceFree=z
655
+
.object({
656
+
type: z.literal('free').describe('The type of the price.'),
@@ -1241,6 +1241,13 @@ export const listCostBasesParamsFilter = z
1241
1241
})
1242
1242
.describe('Filter options for listing cost bases.')
1243
1243
1244
+
exportconstcurrencyAmount=z
1245
+
.object({
1246
+
amount: numeric,
1247
+
currency: currencyCode,
1248
+
})
1249
+
.describe('Monetary amount in a specific currency.')
1250
+
1244
1251
exportconstpriceFlat=z
1245
1252
.object({
1246
1253
type: z.literal('flat').describe('The type of the price.'),
@@ -1258,13 +1265,6 @@ export const priceUnit = z
1258
1265
'Unit price. Charges a fixed rate per billing unit. When UnitConfig is present on the rate card, billing units are the converted quantities (e.g. GB instead of bytes).',
1259
1266
)
1260
1267
1261
-
exportconstcurrencyAmount=z
1262
-
.object({
1263
-
amount: numeric,
1264
-
currency: currencyCode,
1265
-
})
1266
-
.describe('Monetary amount in a specific currency.')
1267
-
1268
1268
exportconstrateCardDiscounts=z
1269
1269
.object({
1270
1270
percentage: z
@@ -3759,6 +3759,45 @@ export const creditGrant = z
3759
3759
'A credit grant allocates credits to a customer. Credits are drawn down against charges according to the settlement mode configured on the rate card.',
3760
3760
)
3761
3761
3762
+
exportconstcreateFlatFeeChargeRequest=z
3763
+
.object({
3764
+
name: z
3765
+
.string()
3766
+
.min(1)
3767
+
.max(256)
3768
+
.describe('Display name of the resource. Between 1 and 256 characters.'),
3769
+
description: z
3770
+
.string()
3771
+
.max(1024)
3772
+
.optional()
3773
+
3774
+
.describe(
3775
+
'Optional description of the resource. Maximum 1024 characters.',
3776
+
),
3777
+
labels: labels.optional(),
3778
+
type: z.literal('flat_fee').describe('The type of the charge.'),
3779
+
currency: currencyCode,
3780
+
invoice_at: dateTime,
3781
+
service_period: closedPeriod,
3782
+
unique_reference_id: z
3783
+
.string()
3784
+
.optional()
3785
+
.describe('Unique reference ID of the charge.'),
3786
+
settlement_mode: settlementMode,
3787
+
tax_config: taxConfig.optional(),
3788
+
payment_term: pricePaymentTerm,
3789
+
discounts: flatFeeDiscounts.optional(),
3790
+
feature_key: z
3791
+
.string()
3792
+
.optional()
3793
+
.describe('The feature associated with the charge, when applicable.'),
0 commit comments