UNPKG

@shipengine/connect-carrier-api

Version:

This is the typescript/javascript definitions for carrier api

13 lines (11 loc) 570 B
import { DocumentType } from './document-type'; import { DocumentFormat } from '../labels/document-formats'; /** @description Basic structure for a document */ export class Document { /** @description The document type(s) being returned. In most cases this is just a single document type; however, some carriers return multiple document types in the same PDF or ZPL */ type!: DocumentType[]; /** @description Base64 encoded data for the document */ data!: string; /** @description The format the document is in (Pdf, Zpl, etc) */ format!: DocumentFormat; }