@elasticpath/js-sdk 29.5.0 → 30.0.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/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3389,6 +3389,7 @@ interface CartSettings {
|
|
|
3389
3389
|
discounts?: {
|
|
3390
3390
|
custom_discounts_enabled?: boolean
|
|
3391
3391
|
}
|
|
3392
|
+
show_all_carts: boolean
|
|
3392
3393
|
}
|
|
3393
3394
|
|
|
3394
3395
|
interface SubscriptionSettings {
|
|
@@ -3443,6 +3444,7 @@ interface SettingsEndpoint {
|
|
|
3443
3444
|
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/cart-settings.html#put-cart-settings
|
|
3444
3445
|
* @param body.type - The type is settings.
|
|
3445
3446
|
* @param body.cart_expiry_days - The number of days in which the cart will expire.
|
|
3447
|
+
* @param body.show_all_carts - When true, admins (users with admin scope) can retrieve all carts in the store via GET /v2/carts, regardless of customer or account associations. When false, admins can only see carts that are registered (associated with customers or accounts).
|
|
3446
3448
|
*/
|
|
3447
3449
|
UpdateCart(body: CartSettings): Promise<Resource<CartSettings>>
|
|
3448
3450
|
|
|
@@ -3456,7 +3458,9 @@ interface SettingsEndpoint {
|
|
|
3456
3458
|
* Update Subscriptions Settings
|
|
3457
3459
|
* Description: You can update the Subscriptions Settings using this endpoint
|
|
3458
3460
|
*/
|
|
3459
|
-
UpdateSubscriptions(
|
|
3461
|
+
UpdateSubscriptions(
|
|
3462
|
+
body: SubscriptionSettings
|
|
3463
|
+
): Promise<Resource<SubscriptionSettings>>
|
|
3460
3464
|
|
|
3461
3465
|
/**
|
|
3462
3466
|
* Get Promotions Settings
|
package/dist/index.esm.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED