import { gql } from 'apollo-boost';
export default gql `
fragment PropertiesInCartBuyInfo on CartBuyInfo {
availability {
instore
}
pricing {
buymoresavemore {
minquantity
maxquantity
}
currencycode
prices {
ismin
ismax
label
value
type
}
}
instock
inventorystatus
preorder
preorderdate
deliverydate
availablequantity
}
fragment PropertiesInSkuInfo on SkuInfo {
size1 {
name
}
color {
image
name
}
style {
name
}
}
fragment PropertiesInCartInfo on CartInfo {
quantity
discount {
label
value
}
discounttotal
discountonlytotal
giftitem
iseligible
pretaxtotal
shippingcharge
shippingmethods {
estdate
esttime
notes
name
selected
code
date
identifier
notification
prices {
label
value
}
time
type
}
shippingtax
subtotal
total
totaltax
valueaddedtaxes {
label
value
}
valuesapplied {
shiptotal
}
}
fragment PropertiesInCartProductItemInfo on CartProductItemInfo {
additionalinfo {
label
value
}
category
categoryids {
value
}
description {
value
}
shortdescription {
label
value
}
flags {
label
value
}
specifications {
label
value
}
isgiftcard
itemid
prices {
label
value
type
}
sku
}
fragment PropertiesInCartMath on Math {
cost
currency
discountcost
discount
estTotalShippingDiscount
estTotalShippingPrice
estTotalShippingTax
estTotalTax
estunittax
esttax
estfulfilcost
estfulfilsale
estfulfiltax
fulfiltax
fulfilcost
fulfilsale
giftdiscount
giftcost
giftsale
estUnitTax
grandTotal
grandTotalAfterPayment
grandTotalTax
maxBagCount
quantity
sale
tax
totalBagCount
totalBagCountWithErrors
totalCost
totalDiscount
totalGiftWrapCost
totalGiftWrapDiscount
totalGiftWrapPrice
totalGiftWrapTax
totalSale
unittax
unitCost
unitSale
}
fragment PropertiesInProduct on CartProductProperties {
buyinfo {
...PropertiesInCartBuyInfo
}
cartinfo {
...PropertiesInCartInfo
}
userinfo {
...PropertiesInCartAddressInfo
}
deliveryInstructions
iteminfo {
...PropertiesInCartProductItemInfo
}
skuinfo {
...PropertiesInSkuInfo
}
math {
...PropertiesInCartMath
}
state {
errormessage
}
}
fragment PropertiesInCartState on CartState {
# additionalinfo {
# label
# value
# }
status
}
fragment PropertiesInCartAddressInfo on AddressInfo {
addresstype
city
country
county
state
postalCode
addressLine1
addressLine2
firstName
middleName
lastName
emailAddress
telephone
}
fragment PropertiesInCartUserInfo on CartUserInfo {
guid
userid
addressinfo {
...PropertiesInCartAddressInfo
}
deliveryInstructions
}
fragment PropertiesInCart on Cart {
buyinfo {
...PropertiesInCartBuyInfo
}
cartinfo {
...PropertiesInCartInfo
}
math {
...PropertiesInCartMath
}
iteminfo {
giftoption {
giftwraptax
giftwrapcost
}
}
paymentcardinfo {
adjustedamount
}
state {
...PropertiesInCartState
}
userinfo {
...PropertiesInCartUserInfo
}
properties {
state {
status
}
}
}
fragment ProductInCart on CartProduct {
image
identifier
name
type
children {
products {
image
identifier
name
identifier
type
properties {
...PropertiesInProduct
}
productOptions {
type
value
}
}
}
productOptions {
type
value
}
properties {
...PropertiesInProduct
}
promotion {
name
description
type
total
quantity
}
}
`;
//# sourceMappingURL=CartFragments.graphql.js.map