mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 05:18:11 +00:00
feat(freight-api): seal EDR side of contracts with the one global stamp
This commit is contained in:
@@ -111,11 +111,14 @@ export interface ConsolidationDetails {
|
||||
splitBilling: { bookingShare: number; partnerShare: number } | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* No stamp field: the backoffice only ever signs as STAFF, and EDR's seal is
|
||||
* the ONE global company stamp applied server-side. Customer stamps are posted
|
||||
* from the portal, not here.
|
||||
*/
|
||||
export interface SignContractPayload {
|
||||
role: "CUSTOMER" | "STAFF";
|
||||
signatureImageBase64: string;
|
||||
/** Company stamp/seal image; the API requires one for CUSTOMER and STAFF. */
|
||||
stampImageBase64?: string;
|
||||
signerDisplayName: string;
|
||||
consentText?: string;
|
||||
}
|
||||
|
||||
@@ -118,11 +118,14 @@ export interface ContractView {
|
||||
} | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* No stamp field: the backoffice only ever counter-signs as STAFF, and EDR's
|
||||
* seal is the ONE global company stamp, snapshotted server-side from
|
||||
* StampSettingsService when the signature is stored.
|
||||
*/
|
||||
export interface SignContractPayload {
|
||||
role: "CUSTOMER" | "STAFF";
|
||||
signatureImageBase64: string;
|
||||
/** Company stamp/seal image; required to sign a contract. */
|
||||
stampImageBase64?: string;
|
||||
signerDisplayName: string;
|
||||
consentText?: string;
|
||||
}
|
||||
|
||||
@@ -9,12 +9,16 @@ export interface SavedSignature {
|
||||
stampImageUrl?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Signature only. A backoffice employee has no personal stamp — EDR seals with
|
||||
* the one global company stamp managed under Settings — so the stamp half of
|
||||
* PUT /me/signature is deliberately not exposed here, even though the shared
|
||||
* endpoint still accepts it for portal (customer) users.
|
||||
*/
|
||||
export interface SaveSignaturePayload {
|
||||
signerDisplayName: string;
|
||||
/** Omit to keep the existing saved signature (stamp-only update). */
|
||||
/** Omit to keep the existing saved signature. */
|
||||
signatureImageBase64?: string;
|
||||
/** Omit to keep the existing saved stamp. */
|
||||
stampImageBase64?: string;
|
||||
}
|
||||
|
||||
export const signaturesService = {
|
||||
|
||||
Reference in New Issue
Block a user