hydrogen icon indicating copy to clipboard operation
hydrogen copied to clipboard

Add `removeGiftCardCodes`

Open wizardlyhel opened this issue 1 month ago • 1 comments

WHY are these changes introduced?

SFAPI 2025-01 added a new mutation cartGiftCardCodesRemove. Update skeleton code to use it

WHAT is this pull request doing?

  • [x] Update skeleton to use the new method removeGiftCardCodes from createCartHandler
  • [ ] Update docs on the new methods context.cart.removeGiftCardCodes and cartGiftCardCodesRemoveDefault
  • [ ] Bug: Add a couple gift card codes to cart, go to checkout and remove one of the gift card. When navigate back to shop, all the gift card code disappeared. After refresh, they come back.

HOW to test your changes?

Post-merge steps

Checklist

  • [ ] I've read the Contributing Guidelines
  • [ ] I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • [ ] I've added a changeset if this PR contains user-facing or noteworthy changes
  • [ ] I've added tests to cover my changes
  • [ ] I've added or updated the documentation

wizardlyhel avatar Jan 24 '25 21:01 wizardlyhel