@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.
70 lines • 4.33 kB
JavaScript
"use strict";
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.subscriptionComponentSchema = void 0;
var schema_1 = require("../schema");
var componentKind_1 = require("./componentKind");
var subscriptionComponentAllocatedQuantity_1 = require("./containers/subscriptionComponentAllocatedQuantity");
var creditType_1 = require("./creditType");
var historicUsage_1 = require("./historicUsage");
var intervalUnit_1 = require("./intervalUnit");
var pricePointType_1 = require("./pricePointType");
var pricingScheme_1 = require("./pricingScheme");
var subscriptionComponentSubscription_1 = require("./subscriptionComponentSubscription");
exports.subscriptionComponentSchema = (0, schema_1.expandoObject)({
id: ['id', (0, schema_1.optional)((0, schema_1.number)())],
name: ['name', (0, schema_1.optional)((0, schema_1.string)())],
kind: ['kind', (0, schema_1.optional)(componentKind_1.componentKindSchema)],
unitName: ['unit_name', (0, schema_1.optional)((0, schema_1.string)())],
enabled: ['enabled', (0, schema_1.optional)((0, schema_1.boolean)())],
unitBalance: ['unit_balance', (0, schema_1.optional)((0, schema_1.number)())],
currency: ['currency', (0, schema_1.optional)((0, schema_1.string)())],
allocatedQuantity: [
'allocated_quantity',
(0, schema_1.optional)(subscriptionComponentAllocatedQuantity_1.subscriptionComponentAllocatedQuantitySchema),
],
pricingScheme: ['pricing_scheme', (0, schema_1.optional)((0, schema_1.nullable)(pricingScheme_1.pricingSchemeSchema))],
componentId: ['component_id', (0, schema_1.optional)((0, schema_1.number)())],
componentHandle: ['component_handle', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
subscriptionId: ['subscription_id', (0, schema_1.optional)((0, schema_1.number)())],
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))],
archivedAt: ['archived_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
pricePointId: ['price_point_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
pricePointHandle: ['price_point_handle', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
pricePointType: [
'price_point_type',
(0, schema_1.optional)((0, schema_1.nullable)(pricePointType_1.pricePointTypeSchema)),
],
pricePointName: ['price_point_name', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
productFamilyId: ['product_family_id', (0, schema_1.optional)((0, schema_1.number)())],
productFamilyHandle: ['product_family_handle', (0, schema_1.optional)((0, schema_1.string)())],
createdAt: ['created_at', (0, schema_1.optional)((0, schema_1.string)())],
updatedAt: ['updated_at', (0, schema_1.optional)((0, schema_1.string)())],
useSiteExchangeRate: [
'use_site_exchange_rate',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.boolean)())),
],
description: ['description', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
allowFractionalQuantities: [
'allow_fractional_quantities',
(0, schema_1.optional)((0, schema_1.boolean)()),
],
subscription: [
'subscription',
(0, schema_1.optional)((0, schema_1.lazy)(function () { return subscriptionComponentSubscription_1.subscriptionComponentSubscriptionSchema; })),
],
historicUsages: [
'historic_usages',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return historicUsage_1.historicUsageSchema; }))),
],
displayOnHostedPage: ['display_on_hosted_page', (0, schema_1.optional)((0, schema_1.boolean)())],
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=subscriptionComponent.js.map