@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.
43 lines (39 loc) • 1.12 kB
text/typescript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import {
bigint,
expandoObject,
nullable,
number,
optional,
Schema,
string,
} from '../schema.js';
import {
ServiceCreditType,
serviceCreditTypeSchema,
} from './serviceCreditType.js';
export interface SubscriptionGroupPrepaymentResponse {
id?: number;
/** The amount in cents of the entry. */
amountInCents?: bigint;
/** The ending balance in cents of the account. */
endingBalanceInCents?: bigint;
/** The type of entry */
entryType?: ServiceCreditType;
/** A memo attached to the entry. */
memo?: string | null;
[key: string]: unknown;
}
export const subscriptionGroupPrepaymentResponseSchema: Schema<SubscriptionGroupPrepaymentResponse> = expandoObject(
{
id: ['id', optional(number())],
amountInCents: ['amount_in_cents', optional(bigint())],
endingBalanceInCents: ['ending_balance_in_cents', optional(bigint())],
entryType: ['entry_type', optional(serviceCreditTypeSchema)],
memo: ['memo', optional(nullable(string()))],
}
);