Class representing an idempotency record. The properties of this class will be reflected in the persistence layer.

Constructors

Properties

expiryTimestamp?: number

The expiry timestamp of the record in milliseconds UTC.

idempotencyKey: string

The idempotency key of the record that is used to identify the record.

inProgressExpiryTimestamp?: number

The expiry timestamp of the in progress record in milliseconds UTC.

payloadHash?: string

The hash of the payload of the request, used for comparing requests.

responseData?: JSONValue

The response data of the request, this will be returned if the payload hash matches.

Methods