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.

215 lines 10.8 kB
"use strict"; /** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ Object.defineProperty(exports, "__esModule", { value: true }); exports.EventEventSpecificData = exports.eventEventSpecificDataSchema = void 0; var schema_js_1 = require("../../schema.js"); var componentAllocationChange_js_1 = require("../componentAllocationChange.js"); var creditAccountBalanceChanged_js_1 = require("../creditAccountBalanceChanged.js"); var customFieldValueChange_js_1 = require("../customFieldValueChange.js"); var dunningStepReached_js_1 = require("../dunningStepReached.js"); var invoiceIssued_js_1 = require("../invoiceIssued.js"); var itemPricePointChanged_js_1 = require("../itemPricePointChanged.js"); var meteredUsage_js_1 = require("../meteredUsage.js"); var paymentCollectionMethodChanged_js_1 = require("../paymentCollectionMethodChanged.js"); var paymentRelatedEvents_js_1 = require("../paymentRelatedEvents.js"); var pendingCancellationChange_js_1 = require("../pendingCancellationChange.js"); var prepaidSubscriptionBalanceChanged_js_1 = require("../prepaidSubscriptionBalanceChanged.js"); var prepaidUsage_js_1 = require("../prepaidUsage.js"); var prepaymentAccountBalanceChanged_js_1 = require("../prepaymentAccountBalanceChanged.js"); var proformaInvoiceIssued_js_1 = require("../proformaInvoiceIssued.js"); var refundSuccess_js_1 = require("../refundSuccess.js"); var subscriptionGroupSignupEventData_js_1 = require("../subscriptionGroupSignupEventData.js"); var subscriptionProductChange_js_1 = require("../subscriptionProductChange.js"); var subscriptionStateChange_js_1 = require("../subscriptionStateChange.js"); exports.eventEventSpecificDataSchema = (0, schema_js_1.lazy)(function () { return (0, schema_js_1.oneOf)([ subscriptionProductChange_js_1.subscriptionProductChangeSchema, subscriptionStateChange_js_1.subscriptionStateChangeSchema, paymentRelatedEvents_js_1.paymentRelatedEventsSchema, refundSuccess_js_1.refundSuccessSchema, componentAllocationChange_js_1.componentAllocationChangeSchema, meteredUsage_js_1.meteredUsageSchema, prepaidUsage_js_1.prepaidUsageSchema, dunningStepReached_js_1.dunningStepReachedSchema, invoiceIssued_js_1.invoiceIssuedSchema, pendingCancellationChange_js_1.pendingCancellationChangeSchema, prepaidSubscriptionBalanceChanged_js_1.prepaidSubscriptionBalanceChangedSchema, proformaInvoiceIssued_js_1.proformaInvoiceIssuedSchema, subscriptionGroupSignupEventData_js_1.subscriptionGroupSignupEventDataSchema, creditAccountBalanceChanged_js_1.creditAccountBalanceChangedSchema, prepaymentAccountBalanceChanged_js_1.prepaymentAccountBalanceChangedSchema, paymentCollectionMethodChanged_js_1.paymentCollectionMethodChangedSchema, itemPricePointChanged_js_1.itemPricePointChangedSchema, customFieldValueChange_js_1.customFieldValueChangeSchema, ]); }); 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 (0, schema_js_1.isMappedValueValidForSchema)(value, subscriptionProductChange_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, subscriptionStateChange_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, paymentRelatedEvents_js_1.paymentRelatedEventsSchema); } EventEventSpecificData.isPaymentRelatedEvents = isPaymentRelatedEvents; /** * Validation method to narrow down union type to RefundSuccess type case. * * This is Refund Success case. */ function isRefundSuccess(value) { return (0, schema_js_1.isMappedValueValidForSchema)(value, refundSuccess_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, componentAllocationChange_js_1.componentAllocationChangeSchema); } EventEventSpecificData.isComponentAllocationChange = isComponentAllocationChange; /** * Validation method to narrow down union type to MeteredUsage type case. * * This is Metered Usage case. */ function isMeteredUsage(value) { return (0, schema_js_1.isMappedValueValidForSchema)(value, meteredUsage_js_1.meteredUsageSchema); } EventEventSpecificData.isMeteredUsage = isMeteredUsage; /** * Validation method to narrow down union type to PrepaidUsage type case. * * This is Prepaid Usage case. */ function isPrepaidUsage(value) { return (0, schema_js_1.isMappedValueValidForSchema)(value, prepaidUsage_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, dunningStepReached_js_1.dunningStepReachedSchema); } EventEventSpecificData.isDunningStepReached = isDunningStepReached; /** * Validation method to narrow down union type to InvoiceIssued type case. * * This is Invoice Issued case. */ function isInvoiceIssued(value) { return (0, schema_js_1.isMappedValueValidForSchema)(value, invoiceIssued_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, pendingCancellationChange_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, prepaidSubscriptionBalanceChanged_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, proformaInvoiceIssued_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, subscriptionGroupSignupEventData_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, creditAccountBalanceChanged_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, prepaymentAccountBalanceChanged_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, paymentCollectionMethodChanged_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, itemPricePointChanged_js_1.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 (0, schema_js_1.isMappedValueValidForSchema)(value, customFieldValueChange_js_1.customFieldValueChangeSchema); } EventEventSpecificData.isCustomFieldValueChange = isCustomFieldValueChange; })(EventEventSpecificData || (exports.EventEventSpecificData = EventEventSpecificData = {})); //# sourceMappingURL=eventEventSpecificData.js.map