UNPKG

@scayle/storefront-core

Version:

Collection of essential utilities to work with the Storefront API

15 lines (14 loc) 548 B
import type { Order, RpcHandler } from '../../types'; /** * Retrieves order data using a CBD token. * * @param params The parameters for retrieving order data. * @param params.cbdToken The CBD token used for authentication and order identification. * @param context The RPC context. * * @returns The order data. It will return an `ErrorResponse` alternatively if * the CBD token is invalid, expired, or if an error occurs during the order retrieval. */ export declare const getOrderDataByCbd: RpcHandler<{ cbdToken: string; }, Order>;