UNPKG

@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.

33 lines (29 loc) 1.18 kB
/** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { expandoObject, nullable, optional, Schema, string } from '../schema'; import { CreditType, creditTypeSchema } from './creditType'; export interface AllocationSettings { /** * The type of credit to be created when upgrading/downgrading. Defaults to the component and then site setting if one is not provided. * Available values: `full`, `prorated`, `none`. */ upgradeCharge?: CreditType | null; /** * The type of credit to be created when upgrading/downgrading. Defaults to the component and then site setting if one is not provided. * Available values: `full`, `prorated`, `none`. */ downgradeCredit?: CreditType | null; /** Either "true" or "false". */ accrueCharge?: string; [key: string]: unknown; } export const allocationSettingsSchema: Schema<AllocationSettings> = expandoObject( { upgradeCharge: ['upgrade_charge', optional(nullable(creditTypeSchema))], downgradeCredit: ['downgrade_credit', optional(nullable(creditTypeSchema))], accrueCharge: ['accrue_charge', optional(string())], } );