Skip to content

Commit

Permalink
Fix parameter name for removeGiftCard in checkout-resource
Browse files Browse the repository at this point in the history
  • Loading branch information
John Farr committed Jan 10, 2019
1 parent b5b03f4 commit b689078
Show file tree
Hide file tree
Showing 30 changed files with 44 additions and 44 deletions.
4 changes: 2 additions & 2 deletions docs/CheckoutResource.html
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ <h5>Parameters:</h5>



<td class="description last"><p>giftCardId The ID of the gift card to remove</p></td>
<td class="description last"><p>appliedGiftCardId The ID of the gift card to remove</p></td>
</tr>


Expand Down Expand Up @@ -3134,7 +3134,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/Client.html
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/CollectionResource.html
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/Config.html
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/ImageHelpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/ImageResource.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/ProductHelpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/ProductResource.html
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/ShopResource.html
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
8 changes: 4 additions & 4 deletions docs/checkout-resource.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,12 @@ <h1 class="page-title">Source: checkout-resource.js</h1>
* });
*
* @param {String} checkoutId The ID of the checkout to remove the gift card from.
* @param (String) giftCardId The ID of the gift card to remove
* @param (String) appliedGiftCardId The ID of the gift card to remove
* @return {Promise|GraphModel} A promise resolving with the updated checkout.
*/
removeGiftCard(checkoutId, giftCardId) {
removeGiftCard(checkoutId, appliedGiftCardId) {
return this.graphQLClient
.send(checkoutGiftCardRemoveV2Mutation, {giftCardId, checkoutId})
.send(checkoutGiftCardRemoveV2Mutation, {appliedGiftCardId, checkoutId})
.then(handleCheckoutMutation('checkoutGiftCardRemoveV2', this.graphQLClient));
}

Expand Down Expand Up @@ -406,7 +406,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/client.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/collection-resource.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/config.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/image-helpers.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/image-resource.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/product-helpers.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/product-resource.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/shop-resource.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial-MIGRATION_GUIDE.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutR
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Jan 09 2019 17:38:47 GMT-0800 (PST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 10 2019 14:32:11 GMT-0800 (PST)
</footer>

<script> prettyPrint(); </script>
Expand Down
6 changes: 3 additions & 3 deletions index.amd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.amd.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.es.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.umd.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/checkout-resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@ class CheckoutResource extends Resource {
* });
*
* @param {String} checkoutId The ID of the checkout to remove the gift card from.
* @param (String) giftCardId The ID of the gift card to remove
* @param (String) appliedGiftCardId The ID of the gift card to remove
* @return {Promise|GraphModel} A promise resolving with the updated checkout.
*/
removeGiftCard(checkoutId, giftCardId) {
removeGiftCard(checkoutId, appliedGiftCardId) {
return this.graphQLClient
.send(checkoutGiftCardRemoveV2Mutation, {giftCardId, checkoutId})
.send(checkoutGiftCardRemoveV2Mutation, {appliedGiftCardId, checkoutId})
.then(handleCheckoutMutation('checkoutGiftCardRemoveV2', this.graphQLClient));
}

Expand Down

0 comments on commit b689078

Please sign in to comment.