Options
All
  • Public
  • Public/Protected
  • All
Menu
namespace

TapjawMessage

Index

Type aliases

TapjawMessageDigest: string
TapjawPayload: Record<string, unknown>

Payload schema

Functions

  • sortObjectArrays<T>(payload: Record<string, unknown>): T
  • This support method is used to prevent TapjawMessage signatures incorrectly changing between API responses.

    If a API payload contains properties which are arrays, in some cases an API will provide the array in a different order between requests which affects the signature of the TapjawMessage.

    This function supports arrays containing objects or any scalar types.

    Type parameters

    Parameters

    • payload: Record<string, unknown>

      Payload

    Returns T

Generated using TypeDoc