| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- import { gql,TypedDocumentNode } from "@apollo/client";
- import { OrderDetailsData } from "@/types/customer/type";
- export const GET_ORDER_DETAILS: TypedDocumentNode<OrderDetailsData> = gql`
- query GetCustomerOrder($id: ID!) {
- customerOrder(id: $id) {
- incrementId
- status
- channelName
- customerEmail
- customerFirstName
- customerLastName
- payment {
- method
- methodTitle
- }
- shippingMethod
- shippingTitle
- couponCode
- totalItemCount
- totalQtyOrdered
- grandTotal
- baseGrandTotal
- grandTotalInvoiced
- grandTotalRefunded
- subTotal
- baseSubTotal
- taxAmount
- baseTaxAmount
- discountAmount
- baseDiscountAmount
- shippingAmount
- baseShippingAmount
- baseCurrencyCode
- channelCurrencyCode
- orderCurrencyCode
- items {
- edges {
- node {
- id
- sku
- type
- name
- additional
- qtyOrdered
- qtyShipped
- qtyInvoiced
- qtyCanceled
- qtyRefunded
- price
- basePrice
- total
- baseTotal
- discountPercent
- discountAmount
- baseDiscountAmount
- }
- }
- }
- addresses {
- edges {
- node {
- id
- _id
- addressType
- orderId
- name
- firstName
- lastName
- companyName
- address
- city
- state
- country
- postcode
- useForShipping
- email
- phone
- defaultAddress
- createdAt
- updatedAt
- }
- }
- }
- createdAt
- updatedAt
- }
- }
- `;
|