ez-shp-storefront
Version:
A helper function collection for Shopify storefront.
23 lines (22 loc) • 754 B
TypeScript
import { EventBus } from "./eventBus";
export declare class CheckoutPageData {
shopify_checkout_token: string;
shopify_checkout_authorization_token?: string;
}
export declare class CheckoutPageError {
errorMessage: string;
}
export declare class Checkout {
static instance: Checkout;
private eventBus;
private getCheckoutPagePromise;
private shopify_checkout_token;
private shopify_checkout_authorization_token;
private constructor();
static getInstance(): Checkout;
setEventBus(eventBus: EventBus): this;
getEventBus(): EventBus;
private getCheckoutPageError;
getCheckoutPage(): Promise<[CheckoutPageData, CheckoutPageError]>;
putDiscountCode(discount_code: string): Promise<[any, string]>;
}