@shipengine/connect-order-source-api
Version:
This is the typescript/javascript definitions for the order source api
43 lines • 1.86 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TaxIdentifierSchema = exports.TaxIdentifier = exports.TaxIdentifierTypeSchema = exports.TaxIdentifierType = void 0;
const tslib_1 = require("tslib");
const joi_1 = tslib_1.__importDefault(require("joi"));
/** @description Supported tax identifier types */
var TaxIdentifierType;
(function (TaxIdentifierType) {
/** @description Tax Identification Number */
TaxIdentifierType["TIN"] = "tin";
/** @description Employer Identification Number */
TaxIdentifierType["EIN"] = "ein";
/** @description Social Security Number */
TaxIdentifierType["SSN"] = "ssn";
/** @description VAT Identification Number */
TaxIdentifierType["VAT"] = "vat";
/** @description Australian tax id */
TaxIdentifierType["ABN"] = "abn";
/** @description EU or UK IOSS number */
TaxIdentifierType["IOSS"] = "ioss";
/** @description New Zealand tax id */
TaxIdentifierType["IRD"] = "ird";
/** @description Germany VAT id */
TaxIdentifierType["OSS"] = "oss";
/** @description Norway tax id*/
TaxIdentifierType["VOEC"] = "voec";
/** @description Other tax id */
TaxIdentifierType["Other"] = "other";
})(TaxIdentifierType || (exports.TaxIdentifierType = TaxIdentifierType = {}));
exports.TaxIdentifierTypeSchema = joi_1.default.string().valid(...Object.values(TaxIdentifierType));
/** @description Tax identifier information corresponding to a tax */
class TaxIdentifier {
/** @description A tax identifier */
value;
/** @description The tax identifier type */
type;
}
exports.TaxIdentifier = TaxIdentifier;
exports.TaxIdentifierSchema = joi_1.default.object({
value: joi_1.default.string().optional().empty(),
type: exports.TaxIdentifierTypeSchema.optional(),
});
//# sourceMappingURL=tax-identifier.js.map