Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Conversation

bc-shawnwang
Copy link
Contributor

@bc-shawnwang bc-shawnwang commented Dec 10, 2023

CHECKOUT-7674

What changed?

  • we can assign a giftWrapping to lineItems using the Storefront API
    • POST /api/storefront/carts
    • POST /api/storefront/carts/{cartId}/items
  • we can update an existing giftWrapping using the Storefront API
    • PUT /api/storefront/carts/{cartId}/items/{itemId}
    • PUT /api/storefront/checkouts/{checkoutId}/carts/{cartId}/items/{itemId}
  • we can delete an existing giftWrapping using Storefront API (pass giftWrapping: null). if we don't pass giftWrapping, DO NOT CHANGE CURRENT STATUS
    • PUT /api/storefront/carts/{cartId}/items/{itemId}
    • PUT /api/storefront/checkouts/{checkoutId}/carts/{cartId}/items/{itemId}
Screenshot 2023-12-11 at 10 24 32 am

image

image

Anything else?

related PR to add the feature: https://github.com/bigcommerce/bigcommerce/pull/55726

ping @bigcommerce/team-checkout @bigcommerce/dev-docs

@bc-shawnwang bc-shawnwang force-pushed the CHECKOUT-7918-storefront-api-gift-wrapping branch from 8d77596 to 5f792fe Compare December 10, 2023 23:33
@bc-shawnwang bc-shawnwang force-pushed the CHECKOUT-7918-storefront-api-gift-wrapping branch from 5f792fe to 5a2ad27 Compare December 10, 2023 23:44
@bc-shawnwang bc-shawnwang marked this pull request as ready for review December 10, 2023 23:46
@bc-tgomez bc-tgomez self-assigned this Dec 11, 2023
@bc-tgomez bc-tgomez changed the base branch from main to DEVDOCS-5671-Update-docs-around-CRUDof-gift-wrapping-for-storefront-apis December 11, 2023 21:39
@bc-tgomez
Copy link
Collaborator

Thanks for the PR @bc-shawnwang! Merging into a DevDocs branch where it'll be merged to main.

@bc-tgomez bc-tgomez merged commit 43a03d4 into DEVDOCS-5671-Update-docs-around-CRUDof-gift-wrapping-for-storefront-apis Dec 11, 2023
3 checks passed
@bc-tgomez bc-tgomez deleted the CHECKOUT-7918-storefront-api-gift-wrapping branch December 11, 2023 21:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants