@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.
75 lines • 4.86 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.subscriptionComponentSchema = void 0;
var schema_js_1 = require("../schema.js");
var componentKind_js_1 = require("./componentKind.js");
var subscriptionComponentAllocatedQuantity_js_1 = require("./containers/subscriptionComponentAllocatedQuantity.js");
var creditType_js_1 = require("./creditType.js");
var historicUsage_js_1 = require("./historicUsage.js");
var intervalUnit_js_1 = require("./intervalUnit.js");
var pricePointType_js_1 = require("./pricePointType.js");
var pricingScheme_js_1 = require("./pricingScheme.js");
var subscriptionComponentSubscription_js_1 = require("./subscriptionComponentSubscription.js");
exports.subscriptionComponentSchema = (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)())],
kind: ['kind', (0, schema_js_1.optional)(componentKind_js_1.componentKindSchema)],
unitName: ['unit_name', (0, schema_js_1.optional)((0, schema_js_1.string)())],
enabled: ['enabled', (0, schema_js_1.optional)((0, schema_js_1.boolean)())],
unitBalance: ['unit_balance', (0, schema_js_1.optional)((0, schema_js_1.number)())],
currency: ['currency', (0, schema_js_1.optional)((0, schema_js_1.string)())],
allocatedQuantity: [
'allocated_quantity',
(0, schema_js_1.optional)(subscriptionComponentAllocatedQuantity_js_1.subscriptionComponentAllocatedQuantitySchema),
],
pricingScheme: [
'pricing_scheme',
(0, schema_js_1.optional)((0, schema_js_1.nullable)(pricingScheme_js_1.pricingSchemeSchema)),
],
componentId: ['component_id', (0, schema_js_1.optional)((0, schema_js_1.number)())],
componentHandle: ['component_handle', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
subscriptionId: ['subscription_id', (0, schema_js_1.optional)((0, schema_js_1.number)())],
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)),
],
archivedAt: ['archived_at', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
pricePointId: ['price_point_id', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
pricePointHandle: ['price_point_handle', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
pricePointType: [
'price_point_type',
(0, schema_js_1.optional)((0, schema_js_1.nullable)(pricePointType_js_1.pricePointTypeSchema)),
],
pricePointName: ['price_point_name', (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)())],
productFamilyHandle: ['product_family_handle', (0, schema_js_1.optional)((0, schema_js_1.string)())],
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)())],
useSiteExchangeRate: [
'use_site_exchange_rate',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.boolean)())),
],
description: ['description', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
allowFractionalQuantities: [
'allow_fractional_quantities',
(0, schema_js_1.optional)((0, schema_js_1.boolean)()),
],
subscription: [
'subscription',
(0, schema_js_1.optional)(subscriptionComponentSubscription_js_1.subscriptionComponentSubscriptionSchema),
],
historicUsages: ['historic_usages', (0, schema_js_1.optional)((0, schema_js_1.array)(historicUsage_js_1.historicUsageSchema))],
displayOnHostedPage: ['display_on_hosted_page', (0, schema_js_1.optional)((0, schema_js_1.boolean)())],
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=subscriptionComponent.js.map