@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.
41 lines • 1.88 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { boolean, expandoObject, lazy, nullable, number, optional, string, } from '../schema.js';
import { billingScheduleSchema } from './billingSchedule.js';
import { componentCustomPriceSchema, } from './componentCustomPrice.js';
import { createAllocationPricePointIdSchema, } from './containers/createAllocationPricePointId.js';
import { downgradeCreditCreditTypeSchema, } from './downgradeCreditCreditType.js';
import { upgradeChargeCreditTypeSchema, } from './upgradeChargeCreditType.js';
export const createAllocationSchema = lazy(() => expandoObject({
quantity: ['quantity', number()],
decimalQuantity: ['decimal_quantity', optional(string())],
previousQuantity: ['previous_quantity', optional(number())],
decimalPreviousQuantity: ['decimal_previous_quantity', optional(string())],
componentId: ['component_id', optional(number())],
memo: ['memo', optional(string())],
prorationDowngradeScheme: [
'proration_downgrade_scheme',
optional(string()),
],
prorationUpgradeScheme: ['proration_upgrade_scheme', optional(string())],
downgradeCredit: [
'downgrade_credit',
optional(nullable(downgradeCreditCreditTypeSchema)),
],
upgradeCharge: [
'upgrade_charge',
optional(nullable(upgradeChargeCreditTypeSchema)),
],
accrueCharge: ['accrue_charge', optional(boolean())],
initiateDunning: ['initiate_dunning', optional(boolean())],
pricePointId: [
'price_point_id',
optional(nullable(createAllocationPricePointIdSchema)),
],
billingSchedule: ['billing_schedule', optional(billingScheduleSchema)],
customPrice: ['custom_price', optional(componentCustomPriceSchema)],
}));
//# sourceMappingURL=createAllocation.js.map