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.

79 lines 5.3 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.productSchema = void 0; var schema_js_1 = require("../schema.js"); var expirationIntervalUnit_js_1 = require("./expirationIntervalUnit.js"); var intervalUnit_js_1 = require("./intervalUnit.js"); var productFamily_js_1 = require("./productFamily.js"); var publicSignupPage_js_1 = require("./publicSignupPage.js"); exports.productSchema = (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)()))], description: ['description', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], accountingCode: ['accounting_code', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], requestCreditCard: ['request_credit_card', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], expirationInterval: ['expiration_interval', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))], expirationIntervalUnit: [ 'expiration_interval_unit', (0, schema_js_1.optional)((0, schema_js_1.nullable)(expirationIntervalUnit_js_1.expirationIntervalUnitSchema)), ], 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)())], priceInCents: ['price_in_cents', (0, schema_js_1.optional)((0, schema_js_1.bigint)())], interval: ['interval', (0, schema_js_1.optional)((0, schema_js_1.number)())], intervalUnit: ['interval_unit', (0, schema_js_1.optional)(intervalUnit_js_1.intervalUnitSchema)], initialChargeInCents: [ 'initial_charge_in_cents', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.bigint)())), ], trialPriceInCents: ['trial_price_in_cents', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.bigint)()))], trialInterval: ['trial_interval', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))], trialIntervalUnit: [ 'trial_interval_unit', (0, schema_js_1.optional)((0, schema_js_1.nullable)(intervalUnit_js_1.intervalUnitSchema)), ], archivedAt: ['archived_at', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], requireCreditCard: ['require_credit_card', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], returnParams: ['return_params', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], taxable: ['taxable', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], updateReturnUrl: ['update_return_url', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], initialChargeAfterTrial: [ 'initial_charge_after_trial', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.boolean)())), ], versionNumber: ['version_number', (0, schema_js_1.optional)((0, schema_js_1.number)())], updateReturnParams: ['update_return_params', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], productFamily: ['product_family', (0, schema_js_1.optional)(productFamily_js_1.productFamilySchema)], publicSignupPages: [ 'public_signup_pages', (0, schema_js_1.optional)((0, schema_js_1.array)(publicSignupPage_js_1.publicSignupPageSchema)), ], productPricePointName: ['product_price_point_name', (0, schema_js_1.optional)((0, schema_js_1.string)())], requestBillingAddress: ['request_billing_address', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], requireBillingAddress: ['require_billing_address', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], requireShippingAddress: ['require_shipping_address', (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)()))], defaultProductPricePointId: [ 'default_product_price_point_id', (0, schema_js_1.optional)((0, schema_js_1.number)()), ], useSiteExchangeRate: [ 'use_site_exchange_rate', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.boolean)())), ], itemCategory: ['item_category', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], productPricePointId: ['product_price_point_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], productPricePointHandle: [ 'product_price_point_handle', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())), ], }); }); //# sourceMappingURL=product.js.map