use-shopify
Version:
React hooks to work with Shopify's Storefront API
8 lines (7 loc) • 345 B
TypeScript
import { CheckoutResponse } from '../../types';
export interface CheckoutDiscountCodeApplyInput {
checkoutId: string;
discountCode: string;
}
export declare type CheckoutDiscountCodeApplyResponse = CheckoutResponse<'checkoutDiscountCodeApplyV2'>;
export declare const CHECKOUT_DISCOUNT_CODE_APPLY: import("graphql").DocumentNode;