@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.
57 lines • 3.06 kB
JavaScript
"use strict";
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.quantityBasedComponentSchema = void 0;
var schema_js_1 = require("../schema.js");
var componentPricePointItem_js_1 = require("./componentPricePointItem.js");
var quantityBasedComponentUnitPrice_js_1 = require("./containers/quantityBasedComponentUnitPrice.js");
var creditType_js_1 = require("./creditType.js");
var intervalUnit_js_1 = require("./intervalUnit.js");
var price_js_1 = require("./price.js");
var pricingScheme_js_1 = require("./pricingScheme.js");
exports.quantityBasedComponentSchema = (0, schema_js_1.lazy)(function () {
return (0, schema_js_1.expandoObject)({
name: ['name', (0, schema_js_1.string)()],
unitName: ['unit_name', (0, schema_js_1.string)()],
description: ['description', (0, schema_js_1.optional)((0, schema_js_1.string)())],
handle: ['handle', (0, schema_js_1.optional)((0, schema_js_1.string)())],
taxable: ['taxable', (0, schema_js_1.optional)((0, schema_js_1.boolean)())],
pricingScheme: ['pricing_scheme', pricingScheme_js_1.pricingSchemeSchema],
prices: ['prices', (0, schema_js_1.optional)((0, schema_js_1.array)(price_js_1.priceSchema))],
upgradeCharge: ['upgrade_charge', (0, schema_js_1.optional)((0, schema_js_1.nullable)(creditType_js_1.creditTypeSchema))],
downgradeCredit: [
'downgrade_credit',
(0, schema_js_1.optional)((0, schema_js_1.nullable)(creditType_js_1.creditTypeSchema)),
],
pricePoints: [
'price_points',
(0, schema_js_1.optional)((0, schema_js_1.array)(componentPricePointItem_js_1.componentPricePointItemSchema)),
],
unitPrice: [
'unit_price',
(0, schema_js_1.optional)(quantityBasedComponentUnitPrice_js_1.quantityBasedComponentUnitPriceSchema),
],
taxCode: ['tax_code', (0, schema_js_1.optional)((0, schema_js_1.string)())],
hideDateRangeOnInvoice: [
'hide_date_range_on_invoice',
(0, schema_js_1.optional)((0, schema_js_1.boolean)()),
],
recurring: ['recurring', (0, schema_js_1.optional)((0, schema_js_1.boolean)())],
displayOnHostedPage: ['display_on_hosted_page', (0, schema_js_1.optional)((0, schema_js_1.boolean)())],
allowFractionalQuantities: [
'allow_fractional_quantities',
(0, schema_js_1.optional)((0, schema_js_1.boolean)()),
],
publicSignupPageIds: [
'public_signup_page_ids',
(0, schema_js_1.optional)((0, schema_js_1.array)((0, schema_js_1.number)())),
],
interval: ['interval', (0, schema_js_1.optional)((0, schema_js_1.number)())],
intervalUnit: ['interval_unit', (0, schema_js_1.optional)((0, schema_js_1.nullable)(intervalUnit_js_1.intervalUnitSchema))],
});
});
//# sourceMappingURL=quantityBasedComponent.js.map