mirror of
https://github.com/vercel/commerce.git
synced 2025-03-31 09:15:53 +00:00
42 lines
640 B
TypeScript
42 lines
640 B
TypeScript
export const checkoutDetailsFragment = /* GraphQL */ `
|
|
id
|
|
webUrl
|
|
subtotalPrice
|
|
totalTax
|
|
totalPrice
|
|
currencyCode
|
|
lineItems(first: 250) {
|
|
pageInfo {
|
|
hasNextPage
|
|
hasPreviousPage
|
|
}
|
|
edges {
|
|
node {
|
|
id
|
|
title
|
|
variant {
|
|
id
|
|
sku
|
|
title
|
|
image {
|
|
src
|
|
}
|
|
price
|
|
}
|
|
quantity
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
const getCheckoutQuery = /* GraphQL */ `
|
|
query($checkoutId: ID!) {
|
|
node(id: $checkoutId) {
|
|
... on Checkout {
|
|
${checkoutDetailsFragment}
|
|
}
|
|
}
|
|
}
|
|
`
|
|
export default getCheckoutQuery
|