UNPKG

@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.

210 lines 9.21 kB
/** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { isMappedValueValidForSchema, lazy, oneOf, } from '../../schema.js'; import { componentAllocationChangeSchema, } from '../componentAllocationChange.js'; import { creditAccountBalanceChangedSchema, } from '../creditAccountBalanceChanged.js'; import { customFieldValueChangeSchema, } from '../customFieldValueChange.js'; import { dunningStepReachedSchema, } from '../dunningStepReached.js'; import { invoiceIssuedSchema } from '../invoiceIssued.js'; import { itemPricePointChangedSchema, } from '../itemPricePointChanged.js'; import { meteredUsageSchema } from '../meteredUsage.js'; import { paymentCollectionMethodChangedSchema, } from '../paymentCollectionMethodChanged.js'; import { paymentRelatedEventsSchema, } from '../paymentRelatedEvents.js'; import { pendingCancellationChangeSchema, } from '../pendingCancellationChange.js'; import { prepaidSubscriptionBalanceChangedSchema, } from '../prepaidSubscriptionBalanceChanged.js'; import { prepaidUsageSchema } from '../prepaidUsage.js'; import { prepaymentAccountBalanceChangedSchema, } from '../prepaymentAccountBalanceChanged.js'; import { proformaInvoiceIssuedSchema, } from '../proformaInvoiceIssued.js'; import { refundSuccessSchema } from '../refundSuccess.js'; import { subscriptionGroupSignupEventDataSchema, } from '../subscriptionGroupSignupEventData.js'; import { subscriptionProductChangeSchema, } from '../subscriptionProductChange.js'; import { subscriptionStateChangeSchema, } from '../subscriptionStateChange.js'; export const eventEventSpecificDataSchema = lazy(() => oneOf([ subscriptionProductChangeSchema, subscriptionStateChangeSchema, paymentRelatedEventsSchema, refundSuccessSchema, componentAllocationChangeSchema, meteredUsageSchema, prepaidUsageSchema, dunningStepReachedSchema, invoiceIssuedSchema, pendingCancellationChangeSchema, prepaidSubscriptionBalanceChangedSchema, proformaInvoiceIssuedSchema, subscriptionGroupSignupEventDataSchema, creditAccountBalanceChangedSchema, prepaymentAccountBalanceChangedSchema, paymentCollectionMethodChangedSchema, itemPricePointChangedSchema, customFieldValueChangeSchema, ])); export var EventEventSpecificData; (function (EventEventSpecificData) { /** * Validation method to narrow down union type to SubscriptionProductChange type case. * * This is Subscription Product Change case. */ function isSubscriptionProductChange(value) { return isMappedValueValidForSchema(value, subscriptionProductChangeSchema); } EventEventSpecificData.isSubscriptionProductChange = isSubscriptionProductChange; /** * Validation method to narrow down union type to SubscriptionStateChange type case. * * This is Subscription State Change case. */ function isSubscriptionStateChange(value) { return isMappedValueValidForSchema(value, subscriptionStateChangeSchema); } EventEventSpecificData.isSubscriptionStateChange = isSubscriptionStateChange; /** * Validation method to narrow down union type to PaymentRelatedEvents type case. * * This is Payment Related Events case. */ function isPaymentRelatedEvents(value) { return isMappedValueValidForSchema(value, paymentRelatedEventsSchema); } EventEventSpecificData.isPaymentRelatedEvents = isPaymentRelatedEvents; /** * Validation method to narrow down union type to RefundSuccess type case. * * This is Refund Success case. */ function isRefundSuccess(value) { return isMappedValueValidForSchema(value, refundSuccessSchema); } EventEventSpecificData.isRefundSuccess = isRefundSuccess; /** * Validation method to narrow down union type to ComponentAllocationChange type case. * * This is Component Allocation Change case. */ function isComponentAllocationChange(value) { return isMappedValueValidForSchema(value, componentAllocationChangeSchema); } EventEventSpecificData.isComponentAllocationChange = isComponentAllocationChange; /** * Validation method to narrow down union type to MeteredUsage type case. * * This is Metered Usage case. */ function isMeteredUsage(value) { return isMappedValueValidForSchema(value, meteredUsageSchema); } EventEventSpecificData.isMeteredUsage = isMeteredUsage; /** * Validation method to narrow down union type to PrepaidUsage type case. * * This is Prepaid Usage case. */ function isPrepaidUsage(value) { return isMappedValueValidForSchema(value, prepaidUsageSchema); } EventEventSpecificData.isPrepaidUsage = isPrepaidUsage; /** * Validation method to narrow down union type to DunningStepReached type case. * * This is Dunning Step Reached case. */ function isDunningStepReached(value) { return isMappedValueValidForSchema(value, dunningStepReachedSchema); } EventEventSpecificData.isDunningStepReached = isDunningStepReached; /** * Validation method to narrow down union type to InvoiceIssued type case. * * This is Invoice Issued case. */ function isInvoiceIssued(value) { return isMappedValueValidForSchema(value, invoiceIssuedSchema); } EventEventSpecificData.isInvoiceIssued = isInvoiceIssued; /** * Validation method to narrow down union type to PendingCancellationChange type case. * * This is Pending Cancellation Change case. */ function isPendingCancellationChange(value) { return isMappedValueValidForSchema(value, pendingCancellationChangeSchema); } EventEventSpecificData.isPendingCancellationChange = isPendingCancellationChange; /** * Validation method to narrow down union type to PrepaidSubscriptionBalanceChanged type case. * * This is Prepaid Subscription Balance Changed case. */ function isPrepaidSubscriptionBalanceChanged(value) { return isMappedValueValidForSchema(value, prepaidSubscriptionBalanceChangedSchema); } EventEventSpecificData.isPrepaidSubscriptionBalanceChanged = isPrepaidSubscriptionBalanceChanged; /** * Validation method to narrow down union type to ProformaInvoiceIssued type case. * * This is Proforma Invoice Issued case. */ function isProformaInvoiceIssued(value) { return isMappedValueValidForSchema(value, proformaInvoiceIssuedSchema); } EventEventSpecificData.isProformaInvoiceIssued = isProformaInvoiceIssued; /** * Validation method to narrow down union type to SubscriptionGroupSignupEventData type case. * * This is Subscription Group Signup Event Data case. */ function isSubscriptionGroupSignupEventData(value) { return isMappedValueValidForSchema(value, subscriptionGroupSignupEventDataSchema); } EventEventSpecificData.isSubscriptionGroupSignupEventData = isSubscriptionGroupSignupEventData; /** * Validation method to narrow down union type to CreditAccountBalanceChanged type case. * * This is Credit Account Balance Changed case. */ function isCreditAccountBalanceChanged(value) { return isMappedValueValidForSchema(value, creditAccountBalanceChangedSchema); } EventEventSpecificData.isCreditAccountBalanceChanged = isCreditAccountBalanceChanged; /** * Validation method to narrow down union type to PrepaymentAccountBalanceChanged type case. * * This is Prepayment Account Balance Changed case. */ function isPrepaymentAccountBalanceChanged(value) { return isMappedValueValidForSchema(value, prepaymentAccountBalanceChangedSchema); } EventEventSpecificData.isPrepaymentAccountBalanceChanged = isPrepaymentAccountBalanceChanged; /** * Validation method to narrow down union type to PaymentCollectionMethodChanged type case. * * This is Payment Collection Method Changed case. */ function isPaymentCollectionMethodChanged(value) { return isMappedValueValidForSchema(value, paymentCollectionMethodChangedSchema); } EventEventSpecificData.isPaymentCollectionMethodChanged = isPaymentCollectionMethodChanged; /** * Validation method to narrow down union type to ItemPricePointChanged type case. * * This is Item Price Point Changed case. */ function isItemPricePointChanged(value) { return isMappedValueValidForSchema(value, itemPricePointChangedSchema); } EventEventSpecificData.isItemPricePointChanged = isItemPricePointChanged; /** * Validation method to narrow down union type to CustomFieldValueChange type case. * * This is Custom Field Value Change case. */ function isCustomFieldValueChange(value) { return isMappedValueValidForSchema(value, customFieldValueChangeSchema); } EventEventSpecificData.isCustomFieldValueChange = isCustomFieldValueChange; })(EventEventSpecificData || (EventEventSpecificData = {})); //# sourceMappingURL=eventEventSpecificData.js.map