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.

74 lines 4.56 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.couponSchema = void 0; var schema_js_1 = require("../schema.js"); var compoundingStrategy_js_1 = require("./compoundingStrategy.js"); var couponCurrency_js_1 = require("./couponCurrency.js"); var couponRestriction_js_1 = require("./couponRestriction.js"); var discountType_js_1 = require("./discountType.js"); var recurringScheme_js_1 = require("./recurringScheme.js"); exports.couponSchema = (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)())], code: ['code', (0, schema_js_1.optional)((0, schema_js_1.string)())], description: ['description', (0, schema_js_1.optional)((0, schema_js_1.string)())], amount: ['amount', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))], amountInCents: ['amount_in_cents', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.bigint)()))], productFamilyId: ['product_family_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], productFamilyName: ['product_family_name', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], startDate: ['start_date', (0, schema_js_1.optional)((0, schema_js_1.string)())], endDate: ['end_date', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], percentage: ['percentage', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], recurring: ['recurring', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], recurringScheme: ['recurring_scheme', (0, schema_js_1.optional)(recurringScheme_js_1.recurringSchemeSchema)], durationPeriodCount: [ 'duration_period_count', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())), ], durationInterval: ['duration_interval', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))], durationIntervalUnit: [ 'duration_interval_unit', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())), ], durationIntervalSpan: [ 'duration_interval_span', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())), ], allowNegativeBalance: ['allow_negative_balance', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], archivedAt: ['archived_at', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], conversionLimit: ['conversion_limit', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))], stackable: ['stackable', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], compoundingStrategy: [ 'compounding_strategy', (0, schema_js_1.optional)((0, schema_js_1.nullable)(compoundingStrategy_js_1.compoundingStrategySchema)), ], useSiteExchangeRate: ['use_site_exchange_rate', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], 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)())], discountType: ['discount_type', (0, schema_js_1.optional)(discountType_js_1.discountTypeSchema)], excludeMidPeriodAllocations: [ 'exclude_mid_period_allocations', (0, schema_js_1.optional)((0, schema_js_1.boolean)()), ], applyOnCancelAtEndOfPeriod: [ 'apply_on_cancel_at_end_of_period', (0, schema_js_1.optional)((0, schema_js_1.boolean)()), ], applyOnSubscriptionExpiration: [ 'apply_on_subscription_expiration', (0, schema_js_1.optional)((0, schema_js_1.boolean)()), ], couponRestrictions: [ 'coupon_restrictions', (0, schema_js_1.optional)((0, schema_js_1.array)(couponRestriction_js_1.couponRestrictionSchema)), ], currencyPrices: ['currency_prices', (0, schema_js_1.optional)((0, schema_js_1.array)(couponCurrency_js_1.couponCurrencySchema))], }); }); //# sourceMappingURL=coupon.js.map