@shipengine/connect-order-source-api
Version:
This is the typescript/javascript definitions for the order source api
29 lines (28 loc) • 841 B
TypeScript
import Joi from 'joi';
export declare enum DocumentType {
'Label' = "label",
'CustomsForm' = "customs_form",
'CommercialInvoice' = "commercial_invoice"
}
export declare const DocumentTypeSchema: Joi.StringSchema;
export declare enum DocumentFormat {
'Pdf' = "PDF",
'Zpl' = "ZPL",
'Png' = "PNG"
}
export declare const DocumentFormatSchema: Joi.StringSchema;
export declare class Document {
/**
* @description Usually there will only be 1 type present, but sometimes multiple documents can be combined
*/
type?: DocumentType[];
/**
* @description Base64 encoded string of the document in the specified format
*/
data?: string;
/**
* @description The format the document is in
*/
format: DocumentFormat;
}
export declare const DocumentSchema: Joi.ObjectSchema<any>;