From e02214e4d8f37ed9d2ed543bfab8fd6b6603f880 Mon Sep 17 00:00:00 2001 From: Jamie Dwyer Date: Mon, 25 Feb 2019 17:25:39 -0500 Subject: [PATCH] Documentation and CHANGELOG for v2.1.0 --- CHANGELOG.md | 4 + docs/CheckoutResource.html | 228 +++++++++++++++++++++++++++-- docs/Client.html | 2 +- docs/CollectionResource.html | 2 +- docs/Config.html | 2 +- docs/ImageHelpers.html | 2 +- docs/ImageResource.html | 2 +- docs/ProductHelpers.html | 2 +- docs/ProductResource.html | 2 +- docs/ShopResource.html | 2 +- docs/checkout-resource.js.html | 35 ++++- docs/client.js.html | 2 +- docs/collection-resource.js.html | 2 +- docs/config.js.html | 2 +- docs/image-helpers.js.html | 2 +- docs/image-resource.js.html | 2 +- docs/index.html | 15 +- docs/product-helpers.js.html | 2 +- docs/product-resource.js.html | 2 +- docs/shop-resource.js.html | 2 +- docs/tutorial-MIGRATION_GUIDE.html | 4 +- 21 files changed, 281 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1e245ed1..3d22d2f61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +### v2.1.0 (February 25, 2019) +- Add support for the `checkoutShippingAddressUpdateV2` mutation, which allows clients to update the shipping address of a checkout. +- Add the `checkoutUserErrors` field to all of the checkout mutation fragments that did not previously contain this. + ### v2.0.1 (January 14, 2019) - Build an unoptimized release version that contains all fields that are available in the [Storefront API](https://help.shopify.com/en/api/custom-storefronts/storefront-api/reference). diff --git a/docs/CheckoutResource.html b/docs/CheckoutResource.html index 7ccc0aca4..e1f0853bf 100644 --- a/docs/CheckoutResource.html +++ b/docs/CheckoutResource.html @@ -93,7 +93,7 @@

new C
Source:
@@ -271,7 +271,7 @@

Parameters:
Source:
@@ -464,7 +464,7 @@
Parameters:
Source:
@@ -839,7 +839,7 @@
Properties
Source:
@@ -1012,7 +1012,7 @@
Parameters:
Source:
@@ -1179,7 +1179,7 @@
Parameters:
Source:
@@ -1371,7 +1371,7 @@
Parameters:
Source:
@@ -1564,7 +1564,7 @@
Parameters:
Source:
@@ -1904,7 +1904,7 @@
Properties
Source:
@@ -2097,7 +2097,7 @@
Parameters:
Source:
@@ -2290,7 +2290,7 @@
Parameters:
Source:
@@ -2360,6 +2360,210 @@
Example
+ + + + + +

updateShippingAddress(checkoutId, shippingAddress) → {Promise|GraphModel}

+ + + + + + +
+

Updates shipping address on an existing checkout.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
checkoutId + + +String + + + +

The ID of the checkout to update shipping address.

shippingAddress + + +Object + + + +

A shipping address.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

A promise resolving with the updated checkout.

+
+ + + +
+
+ Type +
+
+ +Promise +| + +GraphModel + + +
+
+ + + + + + +
Example
+ +
const checkoutId = 'Z2lkOi8vc2hvcGlmeS9DaGVja291dC9kMTZmM2EzMDM4Yjc4N=';
+const shippingAddress = {
+   address1: 'Chestnut Street 92',
+   address2: 'Apartment 2"',
+   city: 'Louisville',
+   company: null,
+   country: 'United States',
+   firstName: 'Bob',
+   lastName: 'Norman',
+   phone: '555-625-1199',
+   province: 'Kentucky',
+   zip: '40202'
+ };
+
+client.checkout.updateShippingAddress(checkoutId, shippingAddress).then(checkout => {
+  // Do something with the updated checkout
+});
+ + + + @@ -2381,7 +2585,7 @@

Home

Classes