@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.
36 lines (32 loc) • 1.05 kB
text/typescript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import {
boolean,
expandoObject,
number,
optional,
Schema,
string,
} from '../schema';
export interface NestedSubscriptionGroup {
/** The UID for the group */
uid?: string;
/** Whether the group is configured to rely on a primary subscription for billing. At this time, it will always be 1. */
scheme?: number;
/** The subscription ID of the primary within the group. Applicable to scheme 1. */
primarySubscriptionId?: number;
/** A boolean indicating whether the subscription is the primary in the group. Applicable to scheme 1. */
primary?: boolean;
[key: string]: unknown;
}
export const nestedSubscriptionGroupSchema: Schema<NestedSubscriptionGroup> = expandoObject(
{
uid: ['uid', optional(string())],
scheme: ['scheme', optional(number())],
primarySubscriptionId: ['primary_subscription_id', optional(number())],
primary: ['primary', optional(boolean())],
}
);