Class ProviderCallAudit
- Namespace
- Integrations.Domain.Audit
- Assembly
- Integrations.Domain.dll
One outbound provider call. Payloads are not stored here (only a hash) because they may contain proprietary vendor/customer data; the full tax response is kept on the tax document itself.
public sealed class ProviderCallAudit
- Inheritance
-
ProviderCallAudit
- Inherited Members
Properties
CallerId
Calling client id from the token, if any.
public string? CallerId { get; init; }
Property Value
CorrelationId
Request correlation id (trace id), to join with logs.
public string? CorrelationId { get; init; }
Property Value
DurationMs
Wall-clock duration of the call, retries included.
public int DurationMs { get; init; }
Property Value
EntityId
Entity the call was made for, if any.
public string? EntityId { get; init; }
Property Value
ErrorCode
Provider error code when it failed.
public string? ErrorCode { get; init; }
Property Value
ErrorMessage
Provider error message when it failed (no payload data).
public string? ErrorMessage { get; init; }
Property Value
Id
Audit row id (UUID v7, time-ordered).
public Guid Id { get; init; }
Property Value
OccurredAt
When the call started.
public DateTimeOffset OccurredAt { get; init; }
Property Value
Operation
Operation name, e.g. createOrAdjust, upsertVendor.
public string Operation { get; init; }
Property Value
Provider
Provider called, e.g. AvaTax or BankOfCanada.
public string Provider { get; init; }
Property Value
RequestHash
SHA-256 of the request body, to prove what was sent without storing it.
public string? RequestHash { get; init; }
Property Value
SubjectId
Our document/party/lock id the call was about.
public string? SubjectId { get; init; }
Property Value
Succeeded
Whether the provider accepted the call.
public bool Succeeded { get; init; }