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.

35 lines (29 loc) 941 B
/** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { number, oneOf, Schema, string } from '../../schema'; /** This is a container type for one-of types. */ export type CreateInvoiceItemProductPricePointId = string | number; export const createInvoiceItemProductPricePointIdSchema: Schema<CreateInvoiceItemProductPricePointId> = oneOf( [string(), number()] ); export namespace CreateInvoiceItemProductPricePointId { /** * Validation method to narrow down union type to string type case. * * This is String case. */ export function isString(value: unknown): value is string { return typeof value === 'string'; } /** * Validation method to narrow down union type to number type case. * * This is Number case. */ export function isNumber(value: unknown): value is number { return typeof value === 'number'; } }