@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.
71 lines • 4.42 kB
JavaScript
"use strict";
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.componentSchema = void 0;
var schema_1 = require("../schema");
var componentKind_1 = require("./componentKind");
var componentPrice_1 = require("./componentPrice");
var creditType_1 = require("./creditType");
var intervalUnit_1 = require("./intervalUnit");
var itemCategory_1 = require("./itemCategory");
var pricingScheme_1 = require("./pricingScheme");
exports.componentSchema = (0, schema_1.expandoObject)({
id: ['id', (0, schema_1.optional)((0, schema_1.number)())],
name: ['name', (0, schema_1.optional)((0, schema_1.string)())],
handle: ['handle', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
pricingScheme: ['pricing_scheme', (0, schema_1.optional)((0, schema_1.nullable)(pricingScheme_1.pricingSchemeSchema))],
unitName: ['unit_name', (0, schema_1.optional)((0, schema_1.string)())],
unitPrice: ['unit_price', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
productFamilyId: ['product_family_id', (0, schema_1.optional)((0, schema_1.number)())],
productFamilyName: ['product_family_name', (0, schema_1.optional)((0, schema_1.string)())],
productFamilyHandle: ['product_family_handle', (0, schema_1.optional)((0, schema_1.string)())],
pricePerUnitInCents: [
'price_per_unit_in_cents',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.bigint)())),
],
kind: ['kind', (0, schema_1.optional)(componentKind_1.componentKindSchema)],
archived: ['archived', (0, schema_1.optional)((0, schema_1.boolean)())],
taxable: ['taxable', (0, schema_1.optional)((0, schema_1.boolean)())],
description: ['description', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
defaultPricePointId: ['default_price_point_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
overagePrices: [
'overage_prices',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.array)((0, schema_1.lazy)(function () { return componentPrice_1.componentPriceSchema; })))),
],
prices: [
'prices',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.array)((0, schema_1.lazy)(function () { return componentPrice_1.componentPriceSchema; })))),
],
pricePointCount: ['price_point_count', (0, schema_1.optional)((0, schema_1.number)())],
pricePointsUrl: ['price_points_url', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
defaultPricePointName: ['default_price_point_name', (0, schema_1.optional)((0, schema_1.string)())],
taxCode: ['tax_code', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
recurring: ['recurring', (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))],
createdAt: ['created_at', (0, schema_1.optional)((0, schema_1.string)())],
updatedAt: ['updated_at', (0, schema_1.optional)((0, schema_1.string)())],
archivedAt: ['archived_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
hideDateRangeOnInvoice: ['hide_date_range_on_invoice', (0, schema_1.optional)((0, schema_1.boolean)())],
allowFractionalQuantities: [
'allow_fractional_quantities',
(0, schema_1.optional)((0, schema_1.boolean)()),
],
itemCategory: ['item_category', (0, schema_1.optional)((0, schema_1.nullable)(itemCategory_1.itemCategorySchema))],
useSiteExchangeRate: [
'use_site_exchange_rate',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.boolean)())),
],
accountingCode: ['accounting_code', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
eventBasedBillingMetricId: [
'event_based_billing_metric_id',
(0, schema_1.optional)((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=component.js.map