@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.
55 lines • 3.17 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.productPricePointSchema = void 0;
var schema_1 = require("../schema");
var currencyPrice_1 = require("./currencyPrice");
var expirationIntervalUnit_1 = require("./expirationIntervalUnit");
var intervalUnit_1 = require("./intervalUnit");
var pricePointType_1 = require("./pricePointType");
exports.productPricePointSchema = (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)()))],
priceInCents: ['price_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())],
interval: ['interval', (0, schema_1.optional)((0, schema_1.number)())],
intervalUnit: ['interval_unit', (0, schema_1.optional)(intervalUnit_1.intervalUnitSchema)],
trialPriceInCents: ['trial_price_in_cents', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.bigint)()))],
trialInterval: ['trial_interval', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
trialIntervalUnit: [
'trial_interval_unit',
(0, schema_1.optional)((0, schema_1.nullable)(intervalUnit_1.intervalUnitSchema)),
],
trialType: ['trial_type', (0, schema_1.optional)((0, schema_1.string)())],
introductoryOffer: ['introductory_offer', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.boolean)()))],
initialChargeInCents: [
'initial_charge_in_cents',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.bigint)())),
],
initialChargeAfterTrial: [
'initial_charge_after_trial',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.boolean)())),
],
expirationInterval: ['expiration_interval', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
expirationIntervalUnit: [
'expiration_interval_unit',
(0, schema_1.optional)((0, schema_1.nullable)(expirationIntervalUnit_1.expirationIntervalUnitSchema)),
],
productId: ['product_id', (0, schema_1.optional)((0, schema_1.number)())],
archivedAt: ['archived_at', (0, schema_1.optional)((0, schema_1.nullable)((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.boolean)())],
type: ['type', (0, schema_1.optional)(pricePointType_1.pricePointTypeSchema)],
taxIncluded: ['tax_included', (0, schema_1.optional)((0, schema_1.boolean)())],
subscriptionId: ['subscription_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
currencyPrices: [
'currency_prices',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return currencyPrice_1.currencyPriceSchema; }))),
]
});
//# sourceMappingURL=productPricePoint.js.map