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.

31 lines 1.1 kB
/** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { number, oneOf, validateAndMap } from '../../schema'; import { snapDaySchema } from '../snapDay'; export const updateSubscriptionSnapDaySchema = oneOf([snapDaySchema, number()]); export var UpdateSubscriptionSnapDay; (function (UpdateSubscriptionSnapDay) { /** * Validation method to narrow down union type to SnapDay type case. * * This is SnapDay case. */ function isSnapDay(value) { const validationResult = validateAndMap(value, snapDaySchema); return validationResult.errors === false; } UpdateSubscriptionSnapDay.isSnapDay = isSnapDay; /** * Validation method to narrow down union type to number type case. * * This is Number case. */ function isNumber(value) { return typeof value === 'number'; } UpdateSubscriptionSnapDay.isNumber = isNumber; })(UpdateSubscriptionSnapDay || (UpdateSubscriptionSnapDay = {})); //# sourceMappingURL=updateSubscriptionSnapDay.js.map