@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.
37 lines • 2.14 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.onOffComponentSchema = void 0;
var schema_1 = require("../schema");
var componentPricePointItem_1 = require("./componentPricePointItem");
var onOffComponentUnitPrice_1 = require("./containers/onOffComponentUnitPrice");
var creditType_1 = require("./creditType");
var intervalUnit_1 = require("./intervalUnit");
exports.onOffComponentSchema = (0, schema_1.expandoObject)({
name: ['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)())],
upgradeCharge: ['upgrade_charge', (0, schema_1.optional)((0, schema_1.nullable)(creditType_1.creditTypeSchema))],
downgradeCredit: ['downgrade_credit', (0, schema_1.optional)((0, schema_1.nullable)(creditType_1.creditTypeSchema))],
pricePoints: [
'price_points',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return componentPricePointItem_1.componentPricePointItemSchema; }))),
],
unitPrice: ['unit_price', onOffComponentUnitPrice_1.onOffComponentUnitPriceSchema],
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=onOffComponent.js.map