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.

34 lines 1.73 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.RefundInvoiceRequestRefund = exports.refundInvoiceRequestRefundSchema = void 0; var schema_js_1 = require("../../schema.js"); var refundConsolidatedInvoice_js_1 = require("../refundConsolidatedInvoice.js"); var refundInvoice_js_1 = require("../refundInvoice.js"); exports.refundInvoiceRequestRefundSchema = (0, schema_js_1.lazy)(function () { return (0, schema_js_1.anyOf)([refundInvoice_js_1.refundInvoiceSchema, refundConsolidatedInvoice_js_1.refundConsolidatedInvoiceSchema]); }); var RefundInvoiceRequestRefund; (function (RefundInvoiceRequestRefund) { /** * Validation method to narrow down union type to RefundInvoice type case. * * This is Refund Invoice case. */ function isRefundInvoice(value) { return (0, schema_js_1.isMappedValueValidForSchema)(value, refundInvoice_js_1.refundInvoiceSchema); } RefundInvoiceRequestRefund.isRefundInvoice = isRefundInvoice; /** * Validation method to narrow down union type to RefundConsolidatedInvoice type case. * * This is Refund Consolidated Invoice case. */ function isRefundConsolidatedInvoice(value) { return (0, schema_js_1.isMappedValueValidForSchema)(value, refundConsolidatedInvoice_js_1.refundConsolidatedInvoiceSchema); } RefundInvoiceRequestRefund.isRefundConsolidatedInvoice = isRefundConsolidatedInvoice; })(RefundInvoiceRequestRefund || (exports.RefundInvoiceRequestRefund = RefundInvoiceRequestRefund = {})); //# sourceMappingURL=refundInvoiceRequestRefund.js.map