@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.
29 lines • 1.19 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';
import { collectionMethodSchema } from './collectionMethod';
import { createAllocationSchema } from './createAllocation';
import { creditTypeSchema } from './creditType';
export const allocateComponentsSchema = expandoObject({
prorationUpgradeScheme: ['proration_upgrade_scheme', optional(string())],
prorationDowngradeScheme: [
'proration_downgrade_scheme',
optional(string()),
],
allocations: [
'allocations',
optional(array(lazy(() => 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