ExchangeRateLocked
Published by this service. The first lock for a pair and business date was created; later locks that day reuse it.
When
The first lock for a currency pair and business date was taken (normally when a PO line is submitted for approval or committed). Later locks for the same pair and date return this lock and do not raise the event again.
What to do with it
Optional: accounting can audit which rate each day used. Callers store lockId and rate on the line and reuse the lock when the line is edited.
Routing
Exchange pvc.integrations.exchange-rate-locked (fanout). Bind your own queue to it. The JSON envelope's messageType is urn:message:Integrations.Contracts.Events:ExchangeRateLocked.
Fields
| Field | Type | Meaning |
|---|---|---|
lockId | Guid | Lock id every line committed that day for the pair shares. |
from | string | Source currency. |
to | string | Target currency. |
rateDate | DateOnly | Business date locked. |
observationDate | DateOnly | Date the source published the rate. |
rate | decimal | Locked rate. |
source | string | Rate source. |
occurredAt | DateTimeOffset | When the lock was created. |