interfaces/ts/platformservice/letter.ts

34 lines
882 B
TypeScript
Raw Normal View History

2024-02-15 16:46:29 +00:00
import * as plugins from '../plugins.js';
2024-02-15 17:59:23 +00:00
export interface IRequest_SendLetter extends plugins.typedrequestInterfaces.implementsTR<
2024-02-15 16:46:29 +00:00
plugins.typedrequestInterfaces.ITypedRequest,
2024-02-15 17:59:23 +00:00
IRequest_SendLetter
2024-02-15 16:46:29 +00:00
> {
method: 'sendLetter';
request: {
2024-02-16 21:49:10 +00:00
/**
* will be used in logs
*/
description: string;
/**
* if you send any PDF / invoice that you have not made sure to be letterxpress compliant
* we strongly recommend using a cover page
*/
needsCover: boolean;
title?: string;
from?: plugins.tsclass.business.IAddress;
to?: plugins.tsclass.business.IAddress;
coverBody?: string;
2024-02-15 16:46:29 +00:00
service: ('Einschreiben')[];
pdfAttachments?: Array<{
name: string;
binaryAttachmentString: string;
}>
};
response: {
/**
* this process id allows status retrieval of the letter
*/
processId: string;
};
}