@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.
40 lines • 1.91 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.couponPayloadSchema = void 0;
var schema_1 = require("../schema");
var compoundingStrategy_1 = require("./compoundingStrategy");
var couponPayloadPercentage_1 = require("./containers/couponPayloadPercentage");
exports.couponPayloadSchema = (0, schema_1.expandoObject)({
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)())],
percentage: ['percentage', (0, schema_1.optional)(couponPayloadPercentage_1.couponPayloadPercentageSchema)],
amountInCents: ['amount_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())],
allowNegativeBalance: ['allow_negative_balance', (0, schema_1.optional)((0, schema_1.boolean)())],
recurring: ['recurring', (0, schema_1.optional)((0, schema_1.boolean)())],
endDate: ['end_date', (0, schema_1.optional)((0, schema_1.string)())],
productFamilyId: ['product_family_id', (0, schema_1.optional)((0, schema_1.string)())],
stackable: ['stackable', (0, schema_1.optional)((0, schema_1.boolean)())],
compoundingStrategy: [
'compounding_strategy',
(0, schema_1.optional)(compoundingStrategy_1.compoundingStrategySchema),
],
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)()),
]
});
//# sourceMappingURL=couponPayload.js.map