@ihreapotheken/ia-sdk - v1.0.0
    Preparing search index...

    Class IaSdk

    Base definitions for the ia.de SDK service, including any relevant methods, fields, and callbacks.

    Hierarchy

    • Observable
      • IaSdk
    Index

    Constructors

    • Returns IaSdk

    Properties

    signatureListener: OrderSignatureListener = ...

    [Observable] object notifying of any updates with the ia.de checkout process, forwarding the SDK and any submitted order codes to listeners.

    The notifier value will be updated with "change" callback identifier:

    signatureListener.addEventListener(
    "change",
    (data: EventData) => {
    const observable = (data.object as OrderSignatureListener)
    console.log(observable.value.iaOrderCode);
    console.log(observable.value.hostAppOrderCode);
    }
    )

    Methods

    • Clears the user cart.

      Returns Promise<void>

    • Configures the ia.de SDK settings.

      Parameters

      • options: {
            footerShouldShowDataProcessing?: boolean;
            onboardingShouldBeShown?: boolean;
            shouldFetchThemeFromRemote?: boolean;
        }

        Configuration options object:

        • footerShouldShowDataProcessing: Whether to show data processing information in the footer
        • onboardingShouldBeShown: Whether to show the onboarding flow during SDK initialisation (iOS only, defaults to false)
        • shouldFetchThemeFromRemote: Whether to fetch theme configuration from a remote server (defaults to false)

      Returns void

    • Launches the dashboard screen on top of the navigation stack.

      Returns Promise<void>

    • Allocate the resources required for the ia.de SDK runtime execution.

      The method must be called before accessing any additional SDK resources.

      Parameters

      • accessKey: string

        Authentication key used to identify the host app.

      • clientId: string

        Client identifier used for pharmacy selection services.

      • serverEnvironment: ServerEnvironment = IaSdkBase.ServerEnvironment.Staging

        Specified server environment for the ia.de services.

      Returns Promise<void>

    • Clears all user data and preferences.

      Returns Promise<void>

    • Forwards the client personal information to the ia.de library for checkout purposes.

      Parameters

      • salutation: Salutation

        Customer pronouns.

      • firstName: string

        First / personal customer name.

      • lastName: string

        Last name or customer surname.

      • email: string

        Email address used for communication purposes.

      • phoneNumberCountryCode: number

        Phone number country code (e.g., 49).

      • phoneNumberWithoutCountryCode: number

        Phone number without country code.

      Returns Promise<void>

    • Sets the pharmacy ID for the SDK.

      Parameters

      • pharmacyId: string

        The pharmacy identifier.

      Returns Promise<void>

    • Launches the dashboard screen on top of the navigation stack.

      Returns Promise<void>

    • Transfers a collection of prescription entries to the ia.de backend for checkout purposes.

      Parameters

      • images: string[]

        Base64-encoded PDF or JPG images.

      • pdfs: string[]

        Base64-encoded PDF files.

      • codes: string[]

        JSON-encoded eRezept codes (e.g., ["{\"urls\":[\"Task/test9ba2fee0d07e4ef2b6205f8012e1445b/$accept?ac=5e24cc059ff244bdbb01efcccf834a6329bdac67a4a64733938fe1b799ac19a9\"]}"]).

      • orderId: string

        Client order identifier forwarded in order to differentiate between orders on

      Returns Promise<void>

    • Transfers user data from SDK v1 to the current SDK. iOS only.

      Returns Promise<void>