mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 14:11:20 +00:00
17 lines
333 B
TypeScript
17 lines
333 B
TypeScript
import * as mutation from './mutations'
|
|
import { CheckoutCustomerAttach } from '../schema'
|
|
|
|
export const checkoutAttach = async (
|
|
fetch: any,
|
|
{ variables, headers }: any,
|
|
): Promise<CheckoutCustomerAttach> => {
|
|
const data = await fetch({
|
|
query: mutation.AttachCheckout,
|
|
variables,
|
|
headers
|
|
})
|
|
|
|
return data;
|
|
}
|
|
|