ia-sdk-react-native-monorepo - v1.0.0
    Preparing search index...

    Interface IaOrderingModule

    Interface for the Ordering module. Provides order management and checkout functionality.

    interface IaOrderingModule {
        moduleType: Ordering;
        clearCart(): Promise<void>;
        deleteOrderHistory(): Promise<void>;
        getCartDetails(): Promise<string | null>;
        launchCartScreen(): Promise<void>;
        register(): Promise<void>;
        transferPrescriptions(params: TransferPrescriptionsParams): Promise<void>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    moduleType: Ordering

    The type of module this instance represents.

    Methods

    • Resets the state of user cart, clearing any added products or prescriptions.

      Returns Promise<void>

    • Deletes the order history (iOS only).

      Returns Promise<void>

    • Gets the current cart details (iOS only).

      Returns Promise<string | null>

      JSON-encoded cart details, or null if empty/unavailable.

    • Launches the cart screen experience on top of the navigation stack.

      Returns Promise<void>