bc-payments-sdk
Version:
BetterCommerce's Payments NodeJS SDK is a complete solution for storefront clients that integrate payments. `bc-payments-sdk` is a single point interface for storefront clients for interacting with payment gateways.
19 lines (18 loc) • 874 B
TypeScript
/**
* The {Order} class provides methods for interacting with the Order endpoint on the CommerceHub API.
*/
export declare class Order {
/**
* Retrieves the details of an order using the specified data.
*
* This method makes an API call to fetch order information based on the provided
* data, headers, and cookies. It constructs a set of parameters including country,
* currency, and basket ID, which are used in the API request.
*
* @param data - The data required to identify the order.
* @param headers - The headers to include in the request.
* @param cookies - Cookies to use for setting additional headers like Currency, Language, etc.
* @returns A promise that resolves to the order details or an error object if the request fails.
*/
static get(data: any, { headers, cookies }: any): Promise<any>;
}