| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- import { gql, type TypedDocumentNode } from "@apollo/client";
- import type { GetCartItemData } from "@/types/cart/type";
- export const GET_CART_ITEM: TypedDocumentNode<GetCartItemData> = gql`
- mutation GetCartItem {
- createReadCart(input: {}) {
- readCart {
- id
- appliedTaxes
- itemsQty
- isGuest
- itemsCount
- items {
- edges {
- node {
- id
- cartId
- productId
- name
- price
- baseImage
- sku
- quantity
- type
- productUrlKey
- canChangeQty
- options
- }
- }
- }
- earnableRewardPoints
- rewardPoints
- rewardPointsUsed
- rewardPointsAmount
- baseRewardPointsAmount
- formattedRewardPointsAmount
- useShippingInsurance
- shippingInsuranceEnabled
- shippingInsuranceName
- shippingInsuranceType
- shippingInsuranceValue
- shippingInsuranceAmount
- baseShippingInsuranceAmount
- formattedShippingInsuranceAmount
- isVip
- vipDiscountAmount
- formattedVipDiscountAmount
- giftcardNumber
- subtotal
- subTotalInclTax
- discountAmount
- giftcardAmount
- vipPlusAmount
- vipExpireDate
- taxAmount
- taxTotal
- shippingAmount
- shippingAmountInclTax
- grandTotal
- formattedSubtotal
- formattedSubTotalInclTax
- formattedGiftcardAmount
- formattedDiscountAmount
- formattedVipPlusAmount
- formattedTaxAmount
- formattedTaxTotal
- formattedShippingAmount
- formattedShippingAmountInclTax
- formattedGrandTotal
- couponCode
- selectedShippingRate
- selectedShippingRateTitle
- paymentMethod
- paymentMethodTitle
- haveStockableItems
- billingAddress
- shippingAddress
- }
- }
- }
- `;
|