@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.
54 lines • 2.29 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { boolean, expandoObject, nullable, number, optional, string, } from '../schema.js';
export const customerSchema = expandoObject({
firstName: ['first_name', optional(string())],
lastName: ['last_name', optional(string())],
email: ['email', optional(string())],
ccEmails: ['cc_emails', optional(nullable(string()))],
organization: ['organization', optional(nullable(string()))],
reference: ['reference', optional(nullable(string()))],
id: ['id', optional(number())],
createdAt: ['created_at', optional(string())],
updatedAt: ['updated_at', optional(string())],
address: ['address', optional(nullable(string()))],
address2: ['address_2', optional(nullable(string()))],
city: ['city', optional(nullable(string()))],
state: ['state', optional(nullable(string()))],
stateName: ['state_name', optional(nullable(string()))],
zip: ['zip', optional(nullable(string()))],
country: ['country', optional(nullable(string()))],
countryName: ['country_name', optional(nullable(string()))],
phone: ['phone', optional(nullable(string()))],
verified: ['verified', optional(nullable(boolean()))],
portalCustomerCreatedAt: [
'portal_customer_created_at',
optional(nullable(string())),
],
portalInviteLastSentAt: [
'portal_invite_last_sent_at',
optional(nullable(string())),
],
portalInviteLastAcceptedAt: [
'portal_invite_last_accepted_at',
optional(nullable(string())),
],
taxExempt: ['tax_exempt', optional(boolean())],
vatNumber: ['vat_number', optional(nullable(string()))],
parentId: ['parent_id', optional(nullable(number()))],
locale: ['locale', optional(nullable(string()))],
defaultSubscriptionGroupUid: [
'default_subscription_group_uid',
optional(nullable(string())),
],
salesforceId: ['salesforce_id', optional(nullable(string()))],
taxExemptReason: ['tax_exempt_reason', optional(nullable(string()))],
defaultAutoRenewalProfileId: [
'default_auto_renewal_profile_id',
optional(nullable(number())),
],
});
//# sourceMappingURL=customer.js.map