@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) • 967 B
text/typescript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { bigint, oneOf, Schema, string } from '../../schema';
/** This is a container type for one-of types. */
export type SubscriptionCustomPriceInitialChargeInCents = string | bigint;
export const subscriptionCustomPriceInitialChargeInCentsSchema: Schema<SubscriptionCustomPriceInitialChargeInCents> = oneOf(
[string(), bigint()]
);
export namespace SubscriptionCustomPriceInitialChargeInCents {
/**
* 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 bigint type case.
*
* This is Long case.
*/
export function isBigint(value: unknown): value is bigint {
return typeof value === 'bigint';
}
}