kibo-chandradeeptalaha 0e5c68ef58
Feature/icky 194 (#5)
* folder and env setup

* codegen.json headers removed

* use-cart code flow updated

* use-cart code flow updated

* Implemented get-cart functionality

* removed unused file

* getAnonymousShopperToken function added

* normalization mapping updated

* PR points resolved

* Anonymous shopper token query added

* getAnonymousShopperToken function added

* Anonymous shopper token query added

Co-authored-by: Chandradeepta <43542673+Chandradeepta@users.noreply.github.com>
2021-08-30 10:41:10 -05:00

55 lines
963 B
TypeScript

export const getCartQuery = /* GraphQL */`
query cart {
currentCart {
id
userId
orderDiscounts {
impact
discount {
id
name
}
couponCode
}
subtotal
shippingTotal
total
items {
id
subtotal
unitPrice{
extendedAmount
}
product {
productCode
variationProductCode
name
description
imageUrl
options {
attributeFQN
name
value
}
properties {
attributeFQN
name
values {
value
}
}
sku
price {
price
salePrice
}
categories {
id
}
}
quantity
}
}
}
`