mirror of
https://github.com/vercel/commerce.git
synced 2025-04-08 20:55:52 +00:00
45 lines
705 B
TypeScript
45 lines
705 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 {
|
|
originalSrc
|
|
altText
|
|
width
|
|
height
|
|
}
|
|
price
|
|
}
|
|
quantity
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
const getCheckoutQuery = /* GraphQL */ `
|
|
query($checkoutId: ID!) {
|
|
node(id: $checkoutId) {
|
|
... on Checkout {
|
|
${checkoutDetailsFragment}
|
|
}
|
|
}
|
|
}
|
|
`
|
|
export default getCheckoutQuery
|