Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • KENALL

Index

Constructors

  • The constructor.

    Parameters

    • apikey: string

      The key string that you want to call the API with. The key is shown in the dashboard you will be navigated to right after signing in to the service.

    • config: Config = {}

      Specfies the configuration given by Config.

    Returns KENALL

Properties

apibase: string
apikey: string
timeout: number

Methods

  • getAddress<T>(postalCode: string, version?: string, apiVersion?: T): Promise<AddressResolverResponseForVersion<T>>
  • Invokes "getAddress" API (endpoint: /postalcode/{postalcode}).

    Type Parameters

    • T extends undefined | APIVersion = undefined

    Parameters

    • postalCode: string

      The postal code to query with.

    • Optional version: string

      The version of the database that the query has to be performed against. Will default to the latest available version if not specified.

    • Optional apiVersion: T

      The API version. The return type is determined based on this argument, and thus it cannot be a variable.

    Returns Promise<AddressResolverResponseForVersion<T>>

  • getCities<T>(prefectureCode: string, version?: string, apiVersion?: T): Promise<CityResolverResponseForVersion<T>>
  • Invokes "getCities" API (endpoint: /cities/{prefectureCode}).

    Type Parameters

    • T extends undefined | APIVersion = undefined

    Parameters

    • prefectureCode: string

      The prefecture code to query with.

    • Optional version: string

      The version of the database that the query has to be performed against. Will default to the latest available version if not specified.

    • Optional apiVersion: T

      The API version. The return type is determined based on this argument, and thus it cannot be a variable.

    Returns Promise<CityResolverResponseForVersion<T>>

  • getNTACorporateInfo<T>(corporateNumber: string, apiVersion?: T): Promise<NTACorporateInfoResolverResponseForVersion<T>>
  • Invokes "getNTACorporateInfo" API (endpoint: /houjinbangou/{corporateNumber}).

    Type Parameters

    • T extends undefined | APIVersion = undefined

    Parameters

    • corporateNumber: string

      The corporate number to query with.

    • Optional apiVersion: T

      The API version. The return type is determined based on this argument, and thus it cannot be a variable.

    Returns Promise<NTACorporateInfoResolverResponseForVersion<T>>

  • Invokes "getNTAQualifiedInvoiceIssuerInfo" API (endpoint: /invoice/{issuerNumber}).

    Type Parameters

    • T extends undefined | APIVersion = undefined

    Parameters

    • issuerNumber: string

      The qualified invoice issuer number to query with.

    • Optional apiVersion: T

      The API version. The return type is determined based on this argument, and thus it cannot be a variable.

    Returns Promise<NTAQualifiedInvoiceIssuerInfoResolverResponse>

    An {@link NTAQualifiedInvoiceIssuerResolverResponse}.

  • request(endpoint: string, params?: {}, apiVersion?: string): Promise<unknown>
  • Parameters

    • endpoint: string
    • params: {} = {}
      • Optional apiVersion: string

      Returns Promise<unknown>

    • searchAddresses<T>(options: AddressSearcherOptions, apiVersion?: T): Promise<AddressSearcherResponseForVersion<T>>
    • Invokes "searchAddresses" API (endpoint: /postalcode/?...).

      Type Parameters

      • T extends undefined | APIVersion = undefined

      Parameters

      • options: AddressSearcherOptions

        The query.

      • Optional apiVersion: T

        The API version. The return type is determined based on this argument, and thus it cannot be a variable.

      Returns Promise<AddressSearcherResponseForVersion<T>>

    • searchNTACorporateInfo<T>(options: NTACorporateInfoSearcherOptions, apiVersion?: T): Promise<NTACorporateInfoSearcherResponseForVersion<T>>
    • Invokes "searchNTACorporateInfo" API (endpoint: /houjinbangou?...).

      Type Parameters

      • T extends undefined | APIVersion = undefined

      Parameters

      • options: NTACorporateInfoSearcherOptions

        The query.

      • Optional apiVersion: T

        The API version. The return type is determined based on this argument, and thus it cannot be a variable.

      Returns Promise<NTACorporateInfoSearcherResponseForVersion<T>>

    Generated using TypeDoc