Astrada TypeScript SDK
    Preparing search index...

    Class TransactionDateTime

    Index
    day: number
    hour: number
    millisecond: number
    minute: number
    month: number

    1 to 12.

    offsetMinutes: number

    Minutes east of UTC (0 for Z), or null when the API sent no offset (Mastercard).

    parsed: boolean

    False when the API sent a form this SDK cannot read; only raw holds it then.

    raw: string

    The value as the API sent it, such as 2026-01-01T10:00:00 or 2026-01-01T10:00:00Z.

    second: number
    year: number
    • get hasOffset(): boolean

      True when the API sent an offset (Visa, Amex): the value is an exact moment.

      Returns boolean

    • The exact moment, or null when the API sent no offset (Mastercard local time). Use toDateAtOffset if you know the merchant's offset, or show the local parts as they are.

      Returns Date

    • The moment this wall-clock time is at the given offset (minutes east of UTC). Throws RangeError when parsed is false.

      Parameters

      • offsetMinutes: number

      Returns Date

    • For the generated model: reads the JSON value. null and undefined pass through; a string this SDK cannot read is kept in raw with parsed false, so one value never fails a response.

      Parameters

      • value: null

      Returns null

    • For the generated model: reads the JSON value. null and undefined pass through; a string this SDK cannot read is kept in raw with parsed false, so one value never fails a response.

      Parameters

      • value: undefined

      Returns undefined

    • For the generated model: reads the JSON value. null and undefined pass through; a string this SDK cannot read is kept in raw with parsed false, so one value never fails a response.

      Parameters

      • value: unknown

      Returns TransactionDateTime