@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.
34 lines • 1.68 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { array, bigint, expandoObject, lazy, nullable, number, optional, string, } from '../schema.js';
import { offerDiscountSchema } from './offerDiscount.js';
import { offerItemSchema } from './offerItem.js';
import { offerSignupPageSchema } from './offerSignupPage.js';
export const offerSchema = lazy(() => expandoObject({
id: ['id', optional(number())],
siteId: ['site_id', optional(number())],
productFamilyId: ['product_family_id', optional(number())],
productId: ['product_id', optional(number())],
productPricePointId: ['product_price_point_id', optional(number())],
productRevisableNumber: ['product_revisable_number', optional(number())],
name: ['name', optional(string())],
handle: ['handle', optional(string())],
description: ['description', optional(nullable(string()))],
createdAt: ['created_at', optional(string())],
updatedAt: ['updated_at', optional(string())],
archivedAt: ['archived_at', optional(nullable(string()))],
offerItems: ['offer_items', optional(array(offerItemSchema))],
offerDiscounts: ['offer_discounts', optional(array(offerDiscountSchema))],
productFamilyName: ['product_family_name', optional(string())],
productName: ['product_name', optional(string())],
productPricePointName: ['product_price_point_name', optional(string())],
productPriceInCents: ['product_price_in_cents', optional(bigint())],
offerSignupPages: [
'offer_signup_pages',
optional(array(offerSignupPageSchema)),
],
}));
//# sourceMappingURL=offer.js.map