@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.
44 lines (37 loc) • 1.17 kB
text/typescript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { boolean, number, oneOf, Schema, string } from '../../schema';
/** This is a container type for one-of types. */
export type SegmentSegmentProperty1Value = string | number | boolean;
export const segmentSegmentProperty1ValueSchema: Schema<SegmentSegmentProperty1Value> = oneOf(
[string(), number(), boolean()]
);
export namespace SegmentSegmentProperty1Value {
/**
* 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 Precision case.
*/
export function isNumber(value: unknown): value is number {
return typeof value === 'number';
}
/**
* 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';
}
}