@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.
30 lines • 1.04 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { isMappedValueValidForSchema, number, oneOf, } from '../../schema.js';
import { snapDaySchema } from '../snapDay.js';
export const calendarBillingSnapDaySchema = oneOf([number(), snapDaySchema]);
export var CalendarBillingSnapDay;
(function (CalendarBillingSnapDay) {
/**
* Validation method to narrow down union type to number type case.
*
* This is Number case.
*/
function isNumber(value) {
return typeof value === 'number';
}
CalendarBillingSnapDay.isNumber = isNumber;
/**
* Validation method to narrow down union type to SnapDay type case.
*
* This is SnapDay case.
*/
function isSnapDay(value) {
return isMappedValueValidForSchema(value, snapDaySchema);
}
CalendarBillingSnapDay.isSnapDay = isSnapDay;
})(CalendarBillingSnapDay || (CalendarBillingSnapDay = {}));
//# sourceMappingURL=calendarBillingSnapDay.js.map