Update mailer page to show actual data
This commit is contained in:
parent
0b005c3e76
commit
8fd86d478c
7 changed files with 31 additions and 85 deletions
|
|
@ -659,7 +659,7 @@ export interface User {
|
|||
uri: string;
|
||||
username: string;
|
||||
}
|
||||
type MailerStatus = "created" | "printed" | "mailed" | "completed";
|
||||
export type MailerStatus = "created" | "printed" | "mailed" | "completed";
|
||||
export interface MailerDTO {
|
||||
address: Address;
|
||||
compliance_report_request_id?: string;
|
||||
|
|
@ -699,6 +699,9 @@ export class Mailer {
|
|||
this.status = options.status;
|
||||
this.uri = options.uri;
|
||||
}
|
||||
pdfUrl(): string {
|
||||
return `/mailer/mode-3/${this.compliance_report_request_id}/preview`;
|
||||
}
|
||||
static fromJSON(json: MailerDTO): Mailer {
|
||||
return new Mailer({
|
||||
...json,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue