@maxio-com/advanced-billing-sdk
Version:
Ultimate billing and pricing flexibility for B2B SaaS. Maxio integrates directly into your product, so you can seamlessly manage your product catalog, bill customers, and collect payments.
56 lines • 3.27 kB
JavaScript
"use strict";
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.componentPricePointSchema = void 0;
var schema_1 = require("../schema");
var componentCurrencyPrice_1 = require("./componentCurrencyPrice");
var componentPrice_1 = require("./componentPrice");
var expirationIntervalUnit_1 = require("./expirationIntervalUnit");
var intervalUnit_1 = require("./intervalUnit");
var pricePointType_1 = require("./pricePointType");
var pricingScheme_1 = require("./pricingScheme");
exports.componentPricePointSchema = (0, schema_1.expandoObject)({
id: ['id', (0, schema_1.optional)((0, schema_1.number)())],
type: ['type', (0, schema_1.optional)(pricePointType_1.pricePointTypeSchema)],
mDefault: ['default', (0, schema_1.optional)((0, schema_1.boolean)())],
name: ['name', (0, schema_1.optional)((0, schema_1.string)())],
pricingScheme: ['pricing_scheme', (0, schema_1.optional)(pricingScheme_1.pricingSchemeSchema)],
componentId: ['component_id', (0, schema_1.optional)((0, schema_1.number)())],
handle: ['handle', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
archivedAt: ['archived_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
createdAt: ['created_at', (0, schema_1.optional)((0, schema_1.string)())],
updatedAt: ['updated_at', (0, schema_1.optional)((0, schema_1.string)())],
prices: ['prices', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return componentPrice_1.componentPriceSchema; })))],
useSiteExchangeRate: ['use_site_exchange_rate', (0, schema_1.optional)((0, schema_1.boolean)())],
subscriptionId: ['subscription_id', (0, schema_1.optional)((0, schema_1.number)())],
taxIncluded: ['tax_included', (0, schema_1.optional)((0, schema_1.boolean)())],
interval: ['interval', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
intervalUnit: ['interval_unit', (0, schema_1.optional)((0, schema_1.nullable)(intervalUnit_1.intervalUnitSchema))],
currencyPrices: [
'currency_prices',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return componentCurrencyPrice_1.componentCurrencyPriceSchema; }))),
],
overagePrices: [
'overage_prices',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return componentPrice_1.componentPriceSchema; }))),
],
overagePricingScheme: [
'overage_pricing_scheme',
(0, schema_1.optional)(pricingScheme_1.pricingSchemeSchema),
],
renewPrepaidAllocation: ['renew_prepaid_allocation', (0, schema_1.optional)((0, schema_1.boolean)())],
rolloverPrepaidRemainder: [
'rollover_prepaid_remainder',
(0, schema_1.optional)((0, schema_1.boolean)()),
],
expirationInterval: ['expiration_interval', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
expirationIntervalUnit: [
'expiration_interval_unit',
(0, schema_1.optional)((0, schema_1.nullable)(expirationIntervalUnit_1.expirationIntervalUnitSchema)),
]
});
//# sourceMappingURL=componentPricePoint.js.map