Interface UcrxContext

Charge processing context.

Hierarchy

  • UcrxContext

Properties

data: Record<PropertyKey, unknown>

Custom data passed to deserializer.

meta: Mutable

Metadata for currently charged value.

opaqueRx: Ucrx

Opaque charge receiver that ignores charge.

Used e.g. for unexpected charge after error reported.

Methods

  • Processes entity.

    Parameters

    • entity: string

      Entity to process represented as array of tokens.

    Returns 0 | 1

    Either 1 if entity recognized, or 0 for unrecognized entity.

  • Processes formatted data.

    Parameters

    • format: string

      Name of format to process.

    • data: readonly UcToken[]

      Formatted data tokens.

    Returns 0 | 1

    Either 1 if format and its data recognized, or 0 otherwise.

  • Processes metadata attribute.

    Parameters

    • attribute: string

      Metadata attribute name.

    Returns undefined | Ucrx

    Either metadata argument receiver, or undefined if metadata attribute can not be recognized.

Generated using TypeDoc