mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 21:51:21 +00:00
59 lines
728 B
TypeScript
59 lines
728 B
TypeScript
export const checkoutDetailsFragment = `
|
|
id
|
|
token
|
|
created
|
|
|
|
totalPrice {
|
|
currency
|
|
gross {
|
|
amount
|
|
}
|
|
}
|
|
subtotalPrice {
|
|
currency
|
|
gross {
|
|
amount
|
|
}
|
|
}
|
|
|
|
lines {
|
|
id
|
|
variant {
|
|
id
|
|
name
|
|
sku
|
|
product {
|
|
slug
|
|
}
|
|
media {
|
|
url
|
|
}
|
|
pricing {
|
|
price {
|
|
gross {
|
|
amount
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
quantity
|
|
totalPrice {
|
|
currency
|
|
gross {
|
|
amount
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
export const getCheckoutQuery = /* GraphQL */ `
|
|
query($checkoutId: UUID!) {
|
|
checkout(token: $checkoutId) {
|
|
... on Checkout {
|
|
${checkoutDetailsFragment}
|
|
}
|
|
}
|
|
}
|
|
`
|