mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
eims integration master test complete
This commit is contained in:
@@ -9,7 +9,8 @@ export type EimsInvoiceStatus =
|
||||
| "SUBMITTING"
|
||||
| "REGISTERED"
|
||||
| "FAILED"
|
||||
| "UNKNOWN";
|
||||
| "UNKNOWN"
|
||||
| "CANCELLED";
|
||||
|
||||
/** Sanitized gateway failure: MoR's own error fields, never our signed envelope. */
|
||||
export interface EimsInvoiceError {
|
||||
@@ -30,6 +31,28 @@ export interface EimsInvoiceStatusView {
|
||||
/** MoR returns a Java ZonedDateTime string, stored verbatim — display as-is. */
|
||||
eimsAckDate: string | null;
|
||||
eimsLastError: EimsInvoiceError | null;
|
||||
/** Base64 PNG from MoR, already rendered on their side — embed as `data:image/png;base64,...`. */
|
||||
eimsSignedQr: string | null;
|
||||
eimsCancelledAt: string | null;
|
||||
/** MoR's own confirmation string (a Java `Date#toString()`), stored verbatim — display as-is. */
|
||||
eimsCancellationDate: string | null;
|
||||
eimsCancellationReasonCode: string | null;
|
||||
eimsCancellationRemark: string | null;
|
||||
}
|
||||
|
||||
/** One `EimsReceipt` row — mirrors `entities/eims-receipt.entity.ts`. */
|
||||
export interface EimsReceiptView {
|
||||
id: string;
|
||||
invoiceId: string;
|
||||
kind: "SALES" | "WITHHOLDING";
|
||||
status: EimsInvoiceStatus;
|
||||
receiptNumber: string;
|
||||
rrn: string | null;
|
||||
/** Base64 PNG, same convention as `eimsSignedQr`. */
|
||||
qr: string | null;
|
||||
ackStatus: string | null;
|
||||
submittedAt: string | null;
|
||||
lastError: EimsInvoiceError | null;
|
||||
}
|
||||
|
||||
/** `POST /v1/verify` response, echoed back from the gateway. */
|
||||
|
||||
Reference in New Issue
Block a user