@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.
39 lines • 2.24 kB
JavaScript
"use strict";
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.meteredComponentSchema = void 0;
var schema_1 = require("../schema");
var componentPricePointItem_1 = require("./componentPricePointItem");
var meteredComponentUnitPrice_1 = require("./containers/meteredComponentUnitPrice");
var intervalUnit_1 = require("./intervalUnit");
var price_1 = require("./price");
var pricingScheme_1 = require("./pricingScheme");
exports.meteredComponentSchema = (0, schema_1.expandoObject)({
name: ['name', (0, schema_1.string)()],
unitName: ['unit_name', (0, schema_1.string)()],
description: ['description', (0, schema_1.optional)((0, schema_1.string)())],
handle: ['handle', (0, schema_1.optional)((0, schema_1.string)())],
taxable: ['taxable', (0, schema_1.optional)((0, schema_1.boolean)())],
pricingScheme: ['pricing_scheme', pricingScheme_1.pricingSchemeSchema],
prices: ['prices', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return price_1.priceSchema; })))],
pricePoints: [
'price_points',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return componentPricePointItem_1.componentPricePointItemSchema; }))),
],
unitPrice: ['unit_price', (0, schema_1.optional)(meteredComponentUnitPrice_1.meteredComponentUnitPriceSchema)],
taxCode: ['tax_code', (0, schema_1.optional)((0, schema_1.string)())],
hideDateRangeOnInvoice: ['hide_date_range_on_invoice', (0, schema_1.optional)((0, schema_1.boolean)())],
displayOnHostedPage: ['display_on_hosted_page', (0, schema_1.optional)((0, schema_1.boolean)())],
allowFractionalQuantities: [
'allow_fractional_quantities',
(0, schema_1.optional)((0, schema_1.boolean)()),
],
publicSignupPageIds: ['public_signup_page_ids', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.number)()))],
interval: ['interval', (0, schema_1.optional)((0, schema_1.number)())],
intervalUnit: ['interval_unit', (0, schema_1.optional)((0, schema_1.nullable)(intervalUnit_1.intervalUnitSchema))]
});
//# sourceMappingURL=meteredComponent.js.map