UNPKG

@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.

73 lines 4.95 kB
"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.componentSchema = void 0; var schema_js_1 = require("../schema.js"); var componentKind_js_1 = require("./componentKind.js"); var componentPrice_js_1 = require("./componentPrice.js"); var creditType_js_1 = require("./creditType.js"); var intervalUnit_js_1 = require("./intervalUnit.js"); var itemCategory_js_1 = require("./itemCategory.js"); var pricingScheme_js_1 = require("./pricingScheme.js"); exports.componentSchema = (0, schema_js_1.lazy)(function () { return (0, schema_js_1.expandoObject)({ id: ['id', (0, schema_js_1.optional)((0, schema_js_1.number)())], name: ['name', (0, schema_js_1.optional)((0, schema_js_1.string)())], handle: ['handle', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], pricingScheme: ['pricing_scheme', (0, schema_js_1.optional)((0, schema_js_1.nullable)(pricingScheme_js_1.pricingSchemeSchema))], unitName: ['unit_name', (0, schema_js_1.optional)((0, schema_js_1.string)())], unitPrice: ['unit_price', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], productFamilyId: ['product_family_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], productFamilyName: ['product_family_name', (0, schema_js_1.optional)((0, schema_js_1.string)())], productFamilyHandle: ['product_family_handle', (0, schema_js_1.optional)((0, schema_js_1.string)())], pricePerUnitInCents: [ 'price_per_unit_in_cents', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.bigint)())), ], kind: ['kind', (0, schema_js_1.optional)(componentKind_js_1.componentKindSchema)], archived: ['archived', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], description: ['description', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], defaultPricePointId: [ 'default_price_point_id', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())), ], overagePrices: [ 'overage_prices', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.array)(componentPrice_js_1.componentPriceSchema))), ], prices: ['prices', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.array)(componentPrice_js_1.componentPriceSchema)))], pricePointCount: ['price_point_count', (0, schema_js_1.optional)((0, schema_js_1.number)())], pricePointsUrl: ['price_points_url', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], defaultPricePointName: ['default_price_point_name', (0, schema_js_1.optional)((0, schema_js_1.string)())], taxable: ['taxable', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], taxCode: ['tax_code', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], recurring: ['recurring', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], 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))], createdAt: ['created_at', (0, schema_js_1.optional)((0, schema_js_1.string)())], updatedAt: ['updated_at', (0, schema_js_1.optional)((0, schema_js_1.string)())], archivedAt: ['archived_at', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], hideDateRangeOnInvoice: ['hide_date_range_on_invoice', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], allowFractionalQuantities: [ 'allow_fractional_quantities', (0, schema_js_1.optional)((0, schema_js_1.boolean)()), ], itemCategory: ['item_category', (0, schema_js_1.optional)((0, schema_js_1.nullable)(itemCategory_js_1.itemCategorySchema))], useSiteExchangeRate: [ 'use_site_exchange_rate', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.boolean)())), ], accountingCode: ['accounting_code', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], eventBasedBillingMetricId: [ 'event_based_billing_metric_id', (0, schema_js_1.optional)((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=component.js.map