@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.
77 lines • 4.74 kB
JavaScript
"use strict";
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.productSchema = void 0;
var schema_1 = require("../schema");
var expirationIntervalUnit_1 = require("./expirationIntervalUnit");
var intervalUnit_1 = require("./intervalUnit");
var productFamily_1 = require("./productFamily");
var publicSignupPage_1 = require("./publicSignupPage");
exports.productSchema = (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)()))],
description: ['description', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
accountingCode: ['accounting_code', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
requestCreditCard: ['request_credit_card', (0, schema_1.optional)((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)),
],
createdAt: ['created_at', (0, schema_1.optional)((0, schema_1.string)())],
updatedAt: ['updated_at', (0, schema_1.optional)((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)],
initialChargeInCents: [
'initial_charge_in_cents',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.bigint)())),
],
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)),
],
archivedAt: ['archived_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
requireCreditCard: ['require_credit_card', (0, schema_1.optional)((0, schema_1.boolean)())],
returnParams: ['return_params', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
taxable: ['taxable', (0, schema_1.optional)((0, schema_1.boolean)())],
updateReturnUrl: ['update_return_url', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
initialChargeAfterTrial: [
'initial_charge_after_trial',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.boolean)())),
],
versionNumber: ['version_number', (0, schema_1.optional)((0, schema_1.number)())],
updateReturnParams: ['update_return_params', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
productFamily: ['product_family', (0, schema_1.optional)((0, schema_1.lazy)(function () { return productFamily_1.productFamilySchema; }))],
publicSignupPages: [
'public_signup_pages',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return publicSignupPage_1.publicSignupPageSchema; }))),
],
productPricePointName: ['product_price_point_name', (0, schema_1.optional)((0, schema_1.string)())],
requestBillingAddress: ['request_billing_address', (0, schema_1.optional)((0, schema_1.boolean)())],
requireBillingAddress: ['require_billing_address', (0, schema_1.optional)((0, schema_1.boolean)())],
requireShippingAddress: ['require_shipping_address', (0, schema_1.optional)((0, schema_1.boolean)())],
taxCode: ['tax_code', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
defaultProductPricePointId: [
'default_product_price_point_id',
(0, schema_1.optional)((0, schema_1.number)()),
],
useSiteExchangeRate: [
'use_site_exchange_rate',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.boolean)())),
],
itemCategory: ['item_category', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
productPricePointId: ['product_price_point_id', (0, schema_1.optional)((0, schema_1.number)())],
productPricePointHandle: [
'product_price_point_handle',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)())),
]
});
//# sourceMappingURL=product.js.map