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.

42 lines (36 loc) 1.15 kB
/** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { boolean, isMappedValueValidForSchema, lazy, oneOf, Schema, } from '../../schema.js'; import { ResumeOptions, resumeOptionsSchema } from '../resumeOptions.js'; /** This is a container type for one-of types. */ export type ReactivateSubscriptionRequestResume = boolean | ResumeOptions; export const reactivateSubscriptionRequestResumeSchema: Schema<ReactivateSubscriptionRequestResume> = lazy( () => oneOf([boolean(), resumeOptionsSchema]) ); export namespace ReactivateSubscriptionRequestResume { /** * Validation method to narrow down union type to boolean type case. * * This is Boolean case. */ export function isBoolean(value: unknown): value is boolean { return typeof value === 'boolean'; } /** * Validation method to narrow down union type to ResumeOptions type case. * * This is Resume Options case. */ export function isResumeOptions(value: unknown): value is ResumeOptions { return isMappedValueValidForSchema(value, resumeOptionsSchema); } }