@commercelayer/sdk 6.0.2 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -265,10 +265,10 @@ Many resources have relationships with other resources and instead of including
265
265
 
266
266
  ```javascript
267
267
  // Fetch 1-to-1 related resource: billing address of an order
268
- const billingAddress = cl.orders.billing_address('xYZkjABcde')
268
+ const billingAddress = await cl.orders.billing_address('xYZkjABcde')
269
269
 
270
270
  // Fetch 1-to-N related resources: orders associated to a customer
271
- const orders = cl.customers.orders('XyzKjAbCDe', { fields: ['status', 'number'] })
271
+ const orders = await cl.customers.orders('XyzKjAbCDe', { fields: ['status', 'number'] })
272
272
  ```
273
273
 
274
274
  In general:
@@ -291,7 +291,7 @@ resources.
291
291
 
292
292
  ```javascript
293
293
  // Get the total number of placed orders
294
- const placedOrders = cl.orders.count({ filters: { status_eq: 'placed' } })
294
+ const placedOrders = await cl.orders.count({ filters: { status_eq: 'placed' } })
295
295
 
296
296
  ```
297
297