@openmeter/client 1.0.0-beta-91f1e5a08260 → 1.0.0-beta-ede95f611444
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/models/schemas.d.ts +11 -26
- package/dist/models/schemas.js +17 -36
- package/dist/models/types.d.ts +17 -24
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -40,5 +40,5 @@ export type * from './models/operations/addons.js';
|
|
|
40
40
|
export type * from './models/operations/planAddons.js';
|
|
41
41
|
export type * from './models/operations/defaults.js';
|
|
42
42
|
export type * from './models/operations/governance.js';
|
|
43
|
-
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, TaxConfigStripe, TaxConfigExternalInvoicing, ChargeFlatFeeDiscounts, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, WorkflowCollectionAlignmentSubscription, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, InvoiceLineExternalReferences, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, UpdateMeterRequest, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, ListCostBasesParamsFilter, CurrencyAmount, PriceFlat, PriceUnit, RateCardDiscounts, Totals, SpendCommitments, InvoiceLineCreditsApplied, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, FeatureReference, AppReference, ChargeReference,
|
|
43
|
+
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, TaxConfigStripe, TaxConfigExternalInvoicing, ChargeFlatFeeDiscounts, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, WorkflowCollectionAlignmentSubscription, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, InvoiceLineExternalReferences, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, UpdateMeterRequest, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CurrencyFiat, ListCostBasesParamsFilter, CurrencyAmount, PriceFlat, PriceUnit, RateCardDiscounts, Totals, SpendCommitments, InvoiceLineCreditsApplied, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, FeatureReference, AppReference, ChargeReference, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, SubscriptionAddonTimelineSegment, CostBasis, CreateCostBasisRequest, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, CreateCreditGrantFilters, CreditGrantFilters, UpsertPlanAddonRequest, ResourceWithKey, CreateMeterRequest, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, Address, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RateCardMeteredEntitlement, RecurringPeriod, CreditGrantPurchase, UpdateCreditGrantExternalSettlementRequest, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, SubscriptionCreate, RateCardProrationConfiguration, Subscription, UnitConfig, AppCatalogItem, TaxCodeAppMapping, PartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, CurrencyCustom, CreateCurrencyCustomRequest, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, CreateCreditAdjustmentRequest, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, TaxConfig, RateCardTaxConfig, OrganizationDefaultTaxCodes, UpdateOrganizationDefaultTaxCodesRequest, PlanAddon, CreatePlanAddonRequest, ProfileAppReferences, InvoiceWorkflowAppsReferences, ListEventsParamsFilter, ListInvoicesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, CreateCustomerRequest, Customer, UpsertCustomerRequest, PartyAddresses, InvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, WorkflowCollectionAlignmentAnchored, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionCancel, SubscriptionChange, CreateSubscriptionAddonRequest, InvoiceUsageQuantityDetail, AppStripe, AppSandbox, AppExternalInvoicing, CreateTaxCodeRequest, TaxCode, UpsertTaxCodeRequest, InvoiceWorkflow, InvoiceStatusDetails, InvoiceLineDiscounts, GovernanceFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, PricePagePaginatedResponse, CreateCreditGrantRequest, CreditGrant, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, Supplier, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, InvoiceWorkflowSettings, InvoiceDetailedLine, CurrencyPagePaginatedResponse, GovernanceQueryResult, Feature, CreateFeatureRequest, UpdateFeatureRequest, CreditGrantPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, AppPagePaginatedResponse, ProfileApps, GovernanceQueryResponse, ChargeFlatFee, ChargeUsageBased, CreateChargeUsageBasedRequest, RateCard, InvoiceLineRateCard, FeaturePagePaginatedResponse, Workflow, SubscriptionAddonRateCard, PlanPhase, Addon, CreateAddonRequest, UpsertAddonRequest, InvoiceStandardLine, Profile, CreateBillingProfileRequest, UpsertBillingProfileRequest, ChargePagePaginatedResponse, SubscriptionAddon, Plan, CreatePlanRequest, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, SubscriptionAddonPagePaginatedResponse, PlanPagePaginatedResponse, InvoiceStandard, InvoicePagePaginatedResponse, SortQueryInput, BaseErrorInput, WorkflowPaymentSendInvoiceSettingsInput, InvoiceWorkflowInvoicingSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, CreateCreditGrantPurchaseInput, RateCardMeteredEntitlementInput, CreditGrantPurchaseInput, UnitConfigInput, WorkflowInvoicingSettingsInput, GovernanceQueryRequestInput, IngestedEventInput, SubscriptionCancelInput, InvoiceUsageQuantityDetailInput, InvoiceWorkflowInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, CreditGrantPagePaginatedResponseInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, RateCardInput, WorkflowInput, SubscriptionAddonRateCardInput, PlanPhaseInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, SubscriptionAddonInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionAddonPagePaginatedResponseInput, PlanPagePaginatedResponseInput, InvoiceStandardInput, InvoicePagePaginatedResponseInput, } from './models/types.js';
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/models/schemas.d.ts
CHANGED
|
@@ -490,6 +490,12 @@ export declare const appCustomerDataExternalInvoicing: z.ZodObject<{
|
|
|
490
490
|
}, z.core.$strip>;
|
|
491
491
|
export declare const billingCurrencyCode: z.ZodUnion<readonly [z.ZodString]>;
|
|
492
492
|
export declare const createCurrencyCode: z.ZodUnion<readonly [z.ZodString]>;
|
|
493
|
+
export declare const currencyFiat: z.ZodObject<{
|
|
494
|
+
type: z.ZodLiteral<"fiat">;
|
|
495
|
+
name: z.ZodString;
|
|
496
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
497
|
+
code: z.ZodString;
|
|
498
|
+
}, z.core.$strip>;
|
|
493
499
|
export declare const listCostBasesParamsFilter: z.ZodObject<{
|
|
494
500
|
fiat_code: z.ZodOptional<z.ZodString>;
|
|
495
501
|
}, z.core.$strip>;
|
|
@@ -707,14 +713,6 @@ export declare const appReference: z.ZodObject<{
|
|
|
707
713
|
export declare const chargeReference: z.ZodObject<{
|
|
708
714
|
id: z.ZodString;
|
|
709
715
|
}, z.core.$strip>;
|
|
710
|
-
export declare const currencyFiat: z.ZodObject<{
|
|
711
|
-
id: z.ZodString;
|
|
712
|
-
type: z.ZodLiteral<"fiat">;
|
|
713
|
-
name: z.ZodString;
|
|
714
|
-
description: z.ZodOptional<z.ZodString>;
|
|
715
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
716
|
-
code: z.ZodString;
|
|
717
|
-
}, z.core.$strip>;
|
|
718
716
|
export declare const dateTimeFieldFilter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
719
717
|
eq: z.ZodOptional<z.ZodString>;
|
|
720
718
|
lt: z.ZodOptional<z.ZodString>;
|
|
@@ -1439,17 +1437,15 @@ export declare const listCurrenciesParamsFilter: z.ZodObject<{
|
|
|
1439
1437
|
}, z.core.$strip>]>>;
|
|
1440
1438
|
}, z.core.$strip>;
|
|
1441
1439
|
export declare const currencyCustom: z.ZodObject<{
|
|
1442
|
-
id: z.ZodString;
|
|
1443
1440
|
type: z.ZodLiteral<"custom">;
|
|
1444
1441
|
name: z.ZodString;
|
|
1445
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1446
1442
|
symbol: z.ZodOptional<z.ZodString>;
|
|
1443
|
+
id: z.ZodString;
|
|
1447
1444
|
code: z.ZodString;
|
|
1448
1445
|
created_at: z.ZodString;
|
|
1449
1446
|
}, z.core.$strip>;
|
|
1450
1447
|
export declare const createCurrencyCustomRequest: z.ZodObject<{
|
|
1451
1448
|
name: z.ZodString;
|
|
1452
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1453
1449
|
symbol: z.ZodOptional<z.ZodString>;
|
|
1454
1450
|
code: z.ZodString;
|
|
1455
1451
|
}, z.core.$strip>;
|
|
@@ -2828,18 +2824,15 @@ export declare const invoiceLineDiscounts: z.ZodObject<{
|
|
|
2828
2824
|
}, z.core.$strip>>>;
|
|
2829
2825
|
}, z.core.$strip>;
|
|
2830
2826
|
export declare const currency: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2831
|
-
id: z.ZodString;
|
|
2832
2827
|
type: z.ZodLiteral<"fiat">;
|
|
2833
2828
|
name: z.ZodString;
|
|
2834
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2835
2829
|
symbol: z.ZodOptional<z.ZodString>;
|
|
2836
2830
|
code: z.ZodString;
|
|
2837
2831
|
}, z.core.$strip>, z.ZodObject<{
|
|
2838
|
-
id: z.ZodString;
|
|
2839
2832
|
type: z.ZodLiteral<"custom">;
|
|
2840
2833
|
name: z.ZodString;
|
|
2841
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2842
2834
|
symbol: z.ZodOptional<z.ZodString>;
|
|
2835
|
+
id: z.ZodString;
|
|
2843
2836
|
code: z.ZodString;
|
|
2844
2837
|
created_at: z.ZodString;
|
|
2845
2838
|
}, z.core.$strip>], "type">;
|
|
@@ -3703,18 +3696,15 @@ export declare const invoiceDetailedLine: z.ZodObject<{
|
|
|
3703
3696
|
}, z.core.$strip>;
|
|
3704
3697
|
export declare const currencyPagePaginatedResponse: z.ZodObject<{
|
|
3705
3698
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3706
|
-
id: z.ZodString;
|
|
3707
3699
|
type: z.ZodLiteral<"fiat">;
|
|
3708
3700
|
name: z.ZodString;
|
|
3709
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3710
3701
|
symbol: z.ZodOptional<z.ZodString>;
|
|
3711
3702
|
code: z.ZodString;
|
|
3712
3703
|
}, z.core.$strip>, z.ZodObject<{
|
|
3713
|
-
id: z.ZodString;
|
|
3714
3704
|
type: z.ZodLiteral<"custom">;
|
|
3715
3705
|
name: z.ZodString;
|
|
3716
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3717
3706
|
symbol: z.ZodOptional<z.ZodString>;
|
|
3707
|
+
id: z.ZodString;
|
|
3718
3708
|
code: z.ZodString;
|
|
3719
3709
|
created_at: z.ZodString;
|
|
3720
3710
|
}, z.core.$strip>], "type">>;
|
|
@@ -13010,18 +13000,15 @@ export declare const listCurrenciesQueryParams: z.ZodObject<{
|
|
|
13010
13000
|
}, z.core.$strip>;
|
|
13011
13001
|
export declare const listCurrenciesResponse: z.ZodObject<{
|
|
13012
13002
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13013
|
-
id: z.ZodString;
|
|
13014
13003
|
type: z.ZodLiteral<"fiat">;
|
|
13015
13004
|
name: z.ZodString;
|
|
13016
|
-
description: z.ZodOptional<z.ZodString>;
|
|
13017
13005
|
symbol: z.ZodOptional<z.ZodString>;
|
|
13018
13006
|
code: z.ZodString;
|
|
13019
13007
|
}, z.core.$strip>, z.ZodObject<{
|
|
13020
|
-
id: z.ZodString;
|
|
13021
13008
|
type: z.ZodLiteral<"custom">;
|
|
13022
13009
|
name: z.ZodString;
|
|
13023
|
-
description: z.ZodOptional<z.ZodString>;
|
|
13024
13010
|
symbol: z.ZodOptional<z.ZodString>;
|
|
13011
|
+
id: z.ZodString;
|
|
13025
13012
|
code: z.ZodString;
|
|
13026
13013
|
created_at: z.ZodString;
|
|
13027
13014
|
}, z.core.$strip>], "type">>;
|
|
@@ -13035,16 +13022,14 @@ export declare const listCurrenciesResponse: z.ZodObject<{
|
|
|
13035
13022
|
}, z.core.$strip>;
|
|
13036
13023
|
export declare const createCustomCurrencyBody: z.ZodObject<{
|
|
13037
13024
|
name: z.ZodString;
|
|
13038
|
-
description: z.ZodOptional<z.ZodString>;
|
|
13039
13025
|
symbol: z.ZodOptional<z.ZodString>;
|
|
13040
13026
|
code: z.ZodString;
|
|
13041
13027
|
}, z.core.$strip>;
|
|
13042
13028
|
export declare const createCustomCurrencyResponse: z.ZodObject<{
|
|
13043
|
-
id: z.ZodString;
|
|
13044
13029
|
type: z.ZodLiteral<"custom">;
|
|
13045
13030
|
name: z.ZodString;
|
|
13046
|
-
description: z.ZodOptional<z.ZodString>;
|
|
13047
13031
|
symbol: z.ZodOptional<z.ZodString>;
|
|
13032
|
+
id: z.ZodString;
|
|
13048
13033
|
code: z.ZodString;
|
|
13049
13034
|
created_at: z.ZodString;
|
|
13050
13035
|
}, z.core.$strip>;
|
package/dist/models/schemas.js
CHANGED
|
@@ -936,6 +936,22 @@ export const billingCurrencyCode = z
|
|
|
936
936
|
export const createCurrencyCode = z
|
|
937
937
|
.union([currencyCode])
|
|
938
938
|
.describe('Fiat or custom currency code.');
|
|
939
|
+
export const currencyFiat = z
|
|
940
|
+
.object({
|
|
941
|
+
type: z.literal('fiat').describe('The type of the currency.'),
|
|
942
|
+
name: z
|
|
943
|
+
.string()
|
|
944
|
+
.min(1)
|
|
945
|
+
.max(256)
|
|
946
|
+
.describe('The name of the currency. It should be a human-readable string that represents the name of the currency, such as "US Dollar" or "Euro".'),
|
|
947
|
+
symbol: z
|
|
948
|
+
.string()
|
|
949
|
+
.min(1)
|
|
950
|
+
.optional()
|
|
951
|
+
.describe('The symbol of the currency. It should be a string that represents the symbol of the currency, such as "$" for US Dollar or "€" for Euro.'),
|
|
952
|
+
code: currencyCode,
|
|
953
|
+
})
|
|
954
|
+
.describe('Currency describes a currency supported by the billing system.');
|
|
939
955
|
export const listCostBasesParamsFilter = z
|
|
940
956
|
.object({
|
|
941
957
|
fiat_code: currencyCode.optional(),
|
|
@@ -1154,29 +1170,6 @@ export const chargeReference = z
|
|
|
1154
1170
|
id: ulid,
|
|
1155
1171
|
})
|
|
1156
1172
|
.describe('Reference to a charge associated with an invoice line.');
|
|
1157
|
-
export const currencyFiat = z
|
|
1158
|
-
.object({
|
|
1159
|
-
id: ulid,
|
|
1160
|
-
type: z.literal('fiat').describe('The type of the currency.'),
|
|
1161
|
-
name: z
|
|
1162
|
-
.string()
|
|
1163
|
-
.min(1)
|
|
1164
|
-
.max(256)
|
|
1165
|
-
.describe('The name of the currency. It should be a human-readable string that represents the name of the currency, such as "US Dollar" or "Euro".'),
|
|
1166
|
-
description: z
|
|
1167
|
-
.string()
|
|
1168
|
-
.min(1)
|
|
1169
|
-
.max(256)
|
|
1170
|
-
.optional()
|
|
1171
|
-
.describe('Description of the currency.'),
|
|
1172
|
-
symbol: z
|
|
1173
|
-
.string()
|
|
1174
|
-
.min(1)
|
|
1175
|
-
.optional()
|
|
1176
|
-
.describe('The symbol of the currency. It should be a string that represents the symbol of the currency, such as "$" for US Dollar or "€" for Euro.'),
|
|
1177
|
-
code: currencyCode,
|
|
1178
|
-
})
|
|
1179
|
-
.describe('Currency describes a currency supported by the billing system.');
|
|
1180
1173
|
export const dateTimeFieldFilter = z
|
|
1181
1174
|
.union([
|
|
1182
1175
|
dateTime,
|
|
@@ -2017,24 +2010,18 @@ export const listCurrenciesParamsFilter = z
|
|
|
2017
2010
|
.describe('Filter options for listing currencies.');
|
|
2018
2011
|
export const currencyCustom = z
|
|
2019
2012
|
.object({
|
|
2020
|
-
id: ulid,
|
|
2021
2013
|
type: z.literal('custom').describe('The type of the currency.'),
|
|
2022
2014
|
name: z
|
|
2023
2015
|
.string()
|
|
2024
2016
|
.min(1)
|
|
2025
2017
|
.max(256)
|
|
2026
2018
|
.describe('The name of the currency. It should be a human-readable string that represents the name of the currency, such as "US Dollar" or "Euro".'),
|
|
2027
|
-
description: z
|
|
2028
|
-
.string()
|
|
2029
|
-
.min(1)
|
|
2030
|
-
.max(256)
|
|
2031
|
-
.optional()
|
|
2032
|
-
.describe('Description of the currency.'),
|
|
2033
2019
|
symbol: z
|
|
2034
2020
|
.string()
|
|
2035
2021
|
.min(1)
|
|
2036
2022
|
.optional()
|
|
2037
2023
|
.describe('The symbol of the currency. It should be a string that represents the symbol of the currency, such as "$" for US Dollar or "€" for Euro.'),
|
|
2024
|
+
id: ulid,
|
|
2038
2025
|
code: currencyCodeCustom,
|
|
2039
2026
|
created_at: dateTime,
|
|
2040
2027
|
})
|
|
@@ -2046,12 +2033,6 @@ export const createCurrencyCustomRequest = z
|
|
|
2046
2033
|
.min(1)
|
|
2047
2034
|
.max(256)
|
|
2048
2035
|
.describe('The name of the currency. It should be a human-readable string that represents the name of the currency, such as "US Dollar" or "Euro".'),
|
|
2049
|
-
description: z
|
|
2050
|
-
.string()
|
|
2051
|
-
.min(1)
|
|
2052
|
-
.max(256)
|
|
2053
|
-
.optional()
|
|
2054
|
-
.describe('Description of the currency.'),
|
|
2055
2036
|
symbol: z
|
|
2056
2037
|
.string()
|
|
2057
2038
|
.min(1)
|
package/dist/models/types.d.ts
CHANGED
|
@@ -421,6 +421,22 @@ export interface AppCustomerDataExternalInvoicing {
|
|
|
421
421
|
/** Labels for this external invoicing integration on the customer. */
|
|
422
422
|
labels?: Labels;
|
|
423
423
|
}
|
|
424
|
+
/** Currency describes a currency supported by the billing system. */
|
|
425
|
+
export interface CurrencyFiat {
|
|
426
|
+
/** The type of the currency. */
|
|
427
|
+
type: 'fiat';
|
|
428
|
+
/**
|
|
429
|
+
* The name of the currency. It should be a human-readable string that represents
|
|
430
|
+
* the name of the currency, such as "US Dollar" or "Euro".
|
|
431
|
+
*/
|
|
432
|
+
name: string;
|
|
433
|
+
/**
|
|
434
|
+
* The symbol of the currency. It should be a string that represents the symbol of
|
|
435
|
+
* the currency, such as "$" for US Dollar or "€" for Euro.
|
|
436
|
+
*/
|
|
437
|
+
symbol?: string;
|
|
438
|
+
code: string;
|
|
439
|
+
}
|
|
424
440
|
/** Filter options for listing cost bases. */
|
|
425
441
|
export interface ListCostBasesParamsFilter {
|
|
426
442
|
/** Filter cost bases by fiat currency code. */
|
|
@@ -733,25 +749,6 @@ export interface ChargeReference {
|
|
|
733
749
|
/** Unique identifier for the charge. */
|
|
734
750
|
id: string;
|
|
735
751
|
}
|
|
736
|
-
/** Currency describes a currency supported by the billing system. */
|
|
737
|
-
export interface CurrencyFiat {
|
|
738
|
-
id: string;
|
|
739
|
-
/** The type of the currency. */
|
|
740
|
-
type: 'fiat';
|
|
741
|
-
/**
|
|
742
|
-
* The name of the currency. It should be a human-readable string that represents
|
|
743
|
-
* the name of the currency, such as "US Dollar" or "Euro".
|
|
744
|
-
*/
|
|
745
|
-
name: string;
|
|
746
|
-
/** Description of the currency. */
|
|
747
|
-
description?: string;
|
|
748
|
-
/**
|
|
749
|
-
* The symbol of the currency. It should be a string that represents the symbol of
|
|
750
|
-
* the currency, such as "$" for US Dollar or "€" for Euro.
|
|
751
|
-
*/
|
|
752
|
-
symbol?: string;
|
|
753
|
-
code: string;
|
|
754
|
-
}
|
|
755
752
|
/** Metering event following the CloudEvents specification. */
|
|
756
753
|
export interface Event {
|
|
757
754
|
/** Identifies the event. */
|
|
@@ -1924,7 +1921,6 @@ export interface ListCurrenciesParamsFilter {
|
|
|
1924
1921
|
}
|
|
1925
1922
|
/** Describes custom currency. */
|
|
1926
1923
|
export interface CurrencyCustom {
|
|
1927
|
-
id: string;
|
|
1928
1924
|
/** The type of the currency. */
|
|
1929
1925
|
type: 'custom';
|
|
1930
1926
|
/**
|
|
@@ -1932,13 +1928,12 @@ export interface CurrencyCustom {
|
|
|
1932
1928
|
* the name of the currency, such as "US Dollar" or "Euro".
|
|
1933
1929
|
*/
|
|
1934
1930
|
name: string;
|
|
1935
|
-
/** Description of the currency. */
|
|
1936
|
-
description?: string;
|
|
1937
1931
|
/**
|
|
1938
1932
|
* The symbol of the currency. It should be a string that represents the symbol of
|
|
1939
1933
|
* the currency, such as "$" for US Dollar or "€" for Euro.
|
|
1940
1934
|
*/
|
|
1941
1935
|
symbol?: string;
|
|
1936
|
+
id: string;
|
|
1942
1937
|
code: string;
|
|
1943
1938
|
/** An ISO-8601 timestamp representation of the custom currency creation date. */
|
|
1944
1939
|
created_at: string;
|
|
@@ -1950,8 +1945,6 @@ export interface CreateCurrencyCustomRequest {
|
|
|
1950
1945
|
* the name of the currency, such as "US Dollar" or "Euro".
|
|
1951
1946
|
*/
|
|
1952
1947
|
name: string;
|
|
1953
|
-
/** Description of the currency. */
|
|
1954
|
-
description?: string;
|
|
1955
1948
|
/**
|
|
1956
1949
|
* The symbol of the currency. It should be a string that represents the symbol of
|
|
1957
1950
|
* the currency, such as "$" for US Dollar or "€" for Euro.
|