@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.
72 lines • 4.07 kB
JavaScript
"use strict";
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.couponSchema = void 0;
var schema_1 = require("../schema");
var compoundingStrategy_1 = require("./compoundingStrategy");
var couponCurrency_1 = require("./couponCurrency");
var couponRestriction_1 = require("./couponRestriction");
var discountType_1 = require("./discountType");
var recurringScheme_1 = require("./recurringScheme");
exports.couponSchema = (0, schema_1.expandoObject)({
id: ['id', (0, schema_1.optional)((0, schema_1.number)())],
name: ['name', (0, schema_1.optional)((0, schema_1.string)())],
code: ['code', (0, schema_1.optional)((0, schema_1.string)())],
description: ['description', (0, schema_1.optional)((0, schema_1.string)())],
amount: ['amount', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
amountInCents: ['amount_in_cents', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.bigint)()))],
productFamilyId: ['product_family_id', (0, schema_1.optional)((0, schema_1.number)())],
productFamilyName: ['product_family_name', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
startDate: ['start_date', (0, schema_1.optional)((0, schema_1.string)())],
endDate: ['end_date', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
percentage: ['percentage', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
recurring: ['recurring', (0, schema_1.optional)((0, schema_1.boolean)())],
recurringScheme: ['recurring_scheme', (0, schema_1.optional)(recurringScheme_1.recurringSchemeSchema)],
durationPeriodCount: ['duration_period_count', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
durationInterval: ['duration_interval', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
durationIntervalUnit: [
'duration_interval_unit',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)())),
],
durationIntervalSpan: [
'duration_interval_span',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)())),
],
allowNegativeBalance: ['allow_negative_balance', (0, schema_1.optional)((0, schema_1.boolean)())],
archivedAt: ['archived_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
conversionLimit: ['conversion_limit', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
stackable: ['stackable', (0, schema_1.optional)((0, schema_1.boolean)())],
compoundingStrategy: [
'compounding_strategy',
(0, schema_1.optional)((0, schema_1.nullable)(compoundingStrategy_1.compoundingStrategySchema)),
],
useSiteExchangeRate: ['use_site_exchange_rate', (0, schema_1.optional)((0, schema_1.boolean)())],
createdAt: ['created_at', (0, schema_1.optional)((0, schema_1.string)())],
updatedAt: ['updated_at', (0, schema_1.optional)((0, schema_1.string)())],
discountType: ['discount_type', (0, schema_1.optional)(discountType_1.discountTypeSchema)],
excludeMidPeriodAllocations: [
'exclude_mid_period_allocations',
(0, schema_1.optional)((0, schema_1.boolean)()),
],
applyOnCancelAtEndOfPeriod: [
'apply_on_cancel_at_end_of_period',
(0, schema_1.optional)((0, schema_1.boolean)()),
],
applyOnSubscriptionExpiration: [
'apply_on_subscription_expiration',
(0, schema_1.optional)((0, schema_1.boolean)()),
],
couponRestrictions: [
'coupon_restrictions',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return couponRestriction_1.couponRestrictionSchema; }))),
],
currencyPrices: [
'currency_prices',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return couponCurrency_1.couponCurrencySchema; }))),
]
});
//# sourceMappingURL=coupon.js.map