@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.29 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.UpdateSubscriptionSnapDay = exports.updateSubscriptionSnapDaySchema = void 0;
var schema_1 = require("../../schema");
var snapDay_1 = require("../snapDay");
exports.updateSubscriptionSnapDaySchema = (0, schema_1.oneOf)([snapDay_1.snapDaySchema, (0, schema_1.number)()]);
var UpdateSubscriptionSnapDay;
(function (UpdateSubscriptionSnapDay) {
/**
* Validation method to narrow down union type to SnapDay type case.
*
* This is SnapDay case.
*/
function isSnapDay(value) {
var validationResult = (0, schema_1.validateAndMap)(value, snapDay_1.snapDaySchema);
return validationResult.errors === false;
}
UpdateSubscriptionSnapDay.isSnapDay = isSnapDay;
/**
* Validation method to narrow down union type to number type case.
*
* This is Number case.
*/
function isNumber(value) {
return typeof value === 'number';
}
UpdateSubscriptionSnapDay.isNumber = isNumber;
})(UpdateSubscriptionSnapDay = exports.UpdateSubscriptionSnapDay || (exports.UpdateSubscriptionSnapDay = {}));
//# sourceMappingURL=updateSubscriptionSnapDay.js.map