fragments-shop.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import { graphql } from './graphql-shop';
  2. export const testOrderFragment = graphql(`
  3. fragment TestOrderFragment on Order {
  4. id
  5. code
  6. state
  7. active
  8. subTotal
  9. subTotalWithTax
  10. shipping
  11. shippingWithTax
  12. total
  13. totalWithTax
  14. currencyCode
  15. couponCodes
  16. discounts {
  17. adjustmentSource
  18. amount
  19. amountWithTax
  20. description
  21. type
  22. }
  23. payments {
  24. id
  25. transactionId
  26. method
  27. amount
  28. state
  29. metadata
  30. }
  31. lines {
  32. id
  33. quantity
  34. linePrice
  35. linePriceWithTax
  36. unitPrice
  37. unitPriceWithTax
  38. unitPriceChangeSinceAdded
  39. unitPriceWithTaxChangeSinceAdded
  40. proratedUnitPriceWithTax
  41. productVariant {
  42. id
  43. }
  44. discounts {
  45. adjustmentSource
  46. amount
  47. amountWithTax
  48. description
  49. type
  50. }
  51. }
  52. shippingAddress {
  53. fullName
  54. company
  55. streetLine1
  56. streetLine2
  57. city
  58. province
  59. postalCode
  60. country
  61. phoneNumber
  62. }
  63. shippingLines {
  64. shippingMethod {
  65. id
  66. code
  67. description
  68. }
  69. }
  70. customer {
  71. id
  72. emailAddress
  73. user {
  74. id
  75. identifier
  76. }
  77. }
  78. history {
  79. items {
  80. id
  81. type
  82. data
  83. }
  84. }
  85. }
  86. `);