@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.
18 lines • 788 B
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { array, expandoObject, lazy, nullable, optional, string, } from '../schema.js';
import { createAllocationSchema, } from './createAllocation.js';
import { creditTypeSchema } from './creditType.js';
export const previewAllocationsRequestSchema = lazy(() => expandoObject({
allocations: ['allocations', array(createAllocationSchema)],
effectiveProrationDate: ['effective_proration_date', optional(string())],
upgradeCharge: ['upgrade_charge', optional(nullable(creditTypeSchema))],
downgradeCredit: [
'downgrade_credit',
optional(nullable(creditTypeSchema)),
],
}));
//# sourceMappingURL=previewAllocationsRequest.js.map