mirror of
https://github.com/vercel/commerce.git
synced 2025-05-12 04:37:51 +00:00
64 lines
1.1 KiB
TypeScript
64 lines
1.1 KiB
TypeScript
import addressFragment from './address';
|
|
import lineItemFragment from './line-item';
|
|
import orderMetafieldsFragment from './order-metafields';
|
|
import orderTrasactionFragment from './order-transaction';
|
|
import priceFragment from './price';
|
|
|
|
const orderCard = /* GraphQL */ `
|
|
fragment OrderCard on Order {
|
|
id
|
|
number
|
|
name
|
|
processedAt
|
|
createdAt
|
|
financialStatus
|
|
fulfillments(first: 1) {
|
|
edges {
|
|
node {
|
|
status
|
|
}
|
|
}
|
|
}
|
|
totalPrice {
|
|
...Price
|
|
}
|
|
subtotal {
|
|
...Price
|
|
}
|
|
totalShipping {
|
|
...Price
|
|
}
|
|
totalTax {
|
|
...Price
|
|
}
|
|
shippingLine {
|
|
title
|
|
originalPrice {
|
|
...Price
|
|
}
|
|
}
|
|
lineItems(first: 20) {
|
|
nodes {
|
|
...LineItem
|
|
}
|
|
}
|
|
shippingAddress {
|
|
...Address
|
|
}
|
|
billingAddress {
|
|
...Address
|
|
}
|
|
transactions {
|
|
...OrderTransaction
|
|
}
|
|
...OrderMetafields
|
|
}
|
|
${lineItemFragment}
|
|
${addressFragment}
|
|
${priceFragment}
|
|
${orderTrasactionFragment}
|
|
${orderMetafieldsFragment}
|
|
`;
|
|
|
|
export default orderCard;
|