Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Methods

addMinutes

  • addMinutes(date: Date, time: number): Date
  • Helper method to add minutes to given Date object.

    If a parameter specified is outside of the expected range, set*() attempts to update the date information in the Date object accordingly

    Parameters

    • date: Date
    • time: number

    Returns Date

formatTime

  • formatTime(date: Date): string
  • Helper method to format time string.

    Parameters

    • date: Date

    Returns string

makeSoapRequest

  • makeSoapRequest(url: string, body: __type): Promise<any>
  • makeSoapRequest(url: string, body: __type, signatureKey: Key, trustStore: TrustStore): Promise<any>
  • Make soap request.

    Parameters

    • url: string

      Endpoint url.

    • body: __type

      Soap request body element.

    Returns Promise<any>

  • Parameters

    • url: string
    • body: __type
    • signatureKey: Key
    • trustStore: TrustStore

    Returns Promise<any>

requestId

  • requestId(): string
  • Generate 35 character long random request id.

    Returns string

Private signEnvelope

  • signEnvelope(body: string, key: Key): string
  • Sign soap envelope

    Parameters

    • body: string
    • key: Key

      Signing key in pem format

    Returns string

Private verifyEnvelopeSignature

  • verifyEnvelopeSignature(body: string, document: any, trustStore: TrustStore): Promise<boolean>
  • Verify soap envelope signature

    throws

    if signature verification fails

    Parameters

    • body: string

      xml document

    • document: any

      parsed xml dom

    • trustStore: TrustStore

    Returns Promise<boolean>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc