@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.
31 lines • 1.39 kB
JavaScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { anyOf, isMappedValueValidForSchema, lazy, } from '../../schema.js';
import { refundConsolidatedInvoiceSchema, } from '../refundConsolidatedInvoice.js';
import { refundInvoiceSchema } from '../refundInvoice.js';
export const refundInvoiceRequestRefundSchema = lazy(() => anyOf([refundInvoiceSchema, refundConsolidatedInvoiceSchema]));
export var RefundInvoiceRequestRefund;
(function (RefundInvoiceRequestRefund) {
/**
* Validation method to narrow down union type to RefundInvoice type case.
*
* This is Refund Invoice case.
*/
function isRefundInvoice(value) {
return isMappedValueValidForSchema(value, 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 isMappedValueValidForSchema(value, refundConsolidatedInvoiceSchema);
}
RefundInvoiceRequestRefund.isRefundConsolidatedInvoice = isRefundConsolidatedInvoice;
})(RefundInvoiceRequestRefund || (RefundInvoiceRequestRefund = {}));
//# sourceMappingURL=refundInvoiceRequestRefund.js.map