Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit f0aa0e4

Browse files
cart query object improvement (#8352)
1 parent 9bfb643 commit f0aa0e4

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

src/_includes/graphql/cart-object-24.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Attribute | Data Type | Description
55
`applied_gift_cards` | [[`AppliedGiftCard`]][AppliedGiftCard] | An array of `AppliedGiftCard` objects. An `AppliedGiftCard` object contains the `code` text attribute, which specifies the gift card code. `applied_gift_cards` is a Commerce-only attribute, defined in the GiftCardAccountGraphQl module
66
`applied_reward_points`| [`RewardPointsAmount`][RewardPointsAmount] | The amount of reward points applied to the cart
77
`applied_store_credit` | [`AppliedStoreCredit`][AppliedStoreCredit] | Contains store credit information applied to the cart. `applied_store_credit` is a Commerce-only attribute, defined in the CustomerBalanceGraphQl module
8-
`available_gift_wrappings` | [GiftWrapping]! | The list of available gift wrapping options for the cart
8+
`available_gift_wrappings` | [[GiftWrapping]][GiftWrapping]! | The list of available gift wrapping options for the cart
99
`available_payment_methods` | [[AvailablePaymentMethod]][AvailablePaymentMethod] | Available payment methods
1010
`billing_address` | [BillingCartAddress][BillingCartAddress] | Contains the billing address specified in the customer's cart
1111
`email` | String | The customer's email address
1212
`gift_message` | [GiftMessage][GiftMessage] | A gift message added to the cart
1313
`gift_receipt_included` | Boolean! | Indicates if the customer requested a gift receipt for the cart
14-
`gift_wrapping` | GiftWrapping | The selected gift wrapping for the cart
14+
`gift_wrapping` | [GiftWrapping][GiftWrapping] | The selected gift wrapping for the cart
1515
`id` | ID! | The ID of the cart
1616
`is_virtual` | Boolean! | Indicates whether the cart contains only virtual products
1717
`items` | [[CartItemInterface]][CartItemInterface] | Contains the items in the customer's cart
@@ -29,6 +29,7 @@ Attribute | Data Type | Description
2929
[CartItemInterface]: {{page.baseurl}}/graphql/queries/cart.html#CartItemInterface
3030
[CartPrices]: {{page.baseurl}}/graphql/queries/cart.html#CartPrices
3131
[GiftMessage]: {{page.baseurl}}/graphql/queries/cart.html#GiftMessage
32+
[GiftWrapping]: {{page.baseurl}}/graphql/queries/cart.html#GiftWrapping
3233
[RewardPointsAmount]: {{page.baseurl}}/graphql/queries/cart.html#RewardPointsAmount
3334
[SelectedPaymentMethod]: {{page.baseurl}}/graphql/queries/cart.html#SelectedPaymentMethod
3435
[ShippingCartAddress]: {{page.baseurl}}/graphql/queries/cart.html#ShippingCartAddress

src/guides/v2.3/graphql/queries/cart.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ The `CartItemPrices` object can contain the following attributes.
696696

697697
Attribute | Data Type | Description
698698
--- | --- | ---
699-
`discounts`| [Discount] | An array of discounts to be applied to the cart item
699+
`discounts`| [[Discount]](#Discount) | An array of discounts to be applied to the cart item
700700
`price` | Money! | The price of the item before any discounts were applied
701701
`row_total` | Money! | The value of the `price` multiplied by the quantity of the item
702702
`row_total_including_tax` | Money! | The value of `row_total` plus the tax applied to the item
@@ -718,8 +718,8 @@ The `CartPrices` object can contain the following attributes.
718718
Attribute | Data Type | Description
719719
--- | --- | ---
720720
`applied_taxes` | [[CartTaxItem]](#CartTaxItem) | An array containing the names and amounts of taxes applied to the item
721-
`discount` | CartDiscount | Deprecated. Use `discounts` instead
722-
`discounts` | [Discount] | An array containing all discounts applied to the cart
721+
`discount` | [CartDiscount](#CartDiscount) | Deprecated. Use `discounts` instead
722+
`discounts` | [[Discount]](#Discount) | An array containing all discounts applied to the cart
723723
`grand_total` | Money | The total, including discounts, taxes, shipping, and other fees
724724
`subtotal_excluding_tax` | Money | Subtotal without taxes
725725
`subtotal_including_tax` | Money | Subtotal with taxes
@@ -786,5 +786,7 @@ Attribute | Data Type | Description
786786

787787
* [createEmptyCart mutation]({{page.baseurl}}/graphql/mutations/create-empty-cart.html)
788788
* [addSimpleProductsToCart mutation]({{page.baseurl}}/graphql/mutations/add-simple-products.html)
789+
* [setShippingAddressesOnCart mutation]({{page.baseurl}}/graphql/mutations/set-shipping-address.html)
790+
* [setShippingMethodsOnCart mutation]({{page.baseurl}}/graphql/mutations/set-shipping-method.html)
789791
* [setBillingAddressOnCart mutation]({{page.baseurl}}/graphql/mutations/set-billing-address.html)
790792
* [setPaymentMethodOnCart mutation]({{page.baseurl}}/graphql/mutations/set-payment-method.html)

src/guides/v2.4/graphql/queries/cart.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ The `CartItemPrices` object can contain the following attributes.
706706

707707
Attribute | Data Type | Description
708708
--- | --- | ---
709-
`discounts`| [Discount] | An array of discounts to be applied to the cart item
709+
`discounts`| [[Discount]](#Discount) | An array of discounts to be applied to the cart item
710710
`price` | Money! | The price of the item before any discounts were applied
711711
`row_total` | Money! | The value of the `price` multiplied by the quantity of the item
712712
`row_total_including_tax` | Money! | The value of `row_total` plus the tax applied to the item
@@ -728,8 +728,8 @@ The `CartPrices` object can contain the following attributes.
728728
Attribute | Data Type | Description
729729
--- | --- | ---
730730
`applied_taxes` | [[CartTaxItem]](#CartTaxItem) | An array containing the names and amounts of taxes applied to the item
731-
`discount` | CartDiscount | Deprecated. Use `discounts` instead
732-
`discounts` | [Discount] | An array containing all discounts applied to the cart
731+
`discount` | [CartDiscount](#CartDiscount) | Deprecated. Use `discounts` instead
732+
`discounts` | [[Discount]](#Discount) | An array containing all discounts applied to the cart
733733
`gift_options` | [GiftOptionsPrices](#GiftOptionsPrices) | The list of prices for the selected gift options
734734
`grand_total` | Money | The total, including discounts, taxes, shipping, and other fees
735735
`subtotal_excluding_tax` | Money | Subtotal without taxes
@@ -825,5 +825,7 @@ Attribute | Data Type | Description
825825

826826
* [createEmptyCart mutation]({{page.baseurl}}/graphql/mutations/create-empty-cart.html)
827827
* [addSimpleProductsToCart mutation]({{page.baseurl}}/graphql/mutations/add-simple-products.html)
828+
* [setShippingAddressesOnCart mutation]({{page.baseurl}}/graphql/mutations/set-shipping-address.html)
829+
* [setShippingMethodsOnCart mutation]({{page.baseurl}}/graphql/mutations/set-shipping-method.html)
828830
* [setBillingAddressOnCart mutation]({{page.baseurl}}/graphql/mutations/set-billing-address.html)
829831
* [setPaymentMethodOnCart mutation]({{page.baseurl}}/graphql/mutations/set-payment-method.html)

0 commit comments

Comments
 (0)