@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.
26 lines • 1.18 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { array, boolean, expandoObject, lazy, nullable, optional, string, } from '../schema.js';
import { collectionMethodSchema, } from './collectionMethod.js';
import { createAllocationSchema, } from './createAllocation.js';
import { creditTypeSchema } from './creditType.js';
export const allocateComponentsSchema = lazy(() => expandoObject({
prorationUpgradeScheme: ['proration_upgrade_scheme', optional(string())],
prorationDowngradeScheme: [
'proration_downgrade_scheme',
optional(string()),
],
allocations: ['allocations', optional(array(createAllocationSchema))],
accrueCharge: ['accrue_charge', optional(boolean())],
upgradeCharge: ['upgrade_charge', optional(nullable(creditTypeSchema))],
downgradeCredit: ['downgrade_credit', optional(nullable(creditTypeSchema))],
paymentCollectionMethod: [
'payment_collection_method',
optional(collectionMethodSchema),
],
initiateDunning: ['initiate_dunning', optional(boolean())],
}));
//# sourceMappingURL=allocateComponents.js.map