Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/types/settings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export interface CartSettings {
discounts?: {
custom_discounts_enabled?: boolean
}
show_all_carts: boolean
}

export interface SubscriptionSettings {
Expand Down Expand Up @@ -112,6 +113,7 @@ export interface SettingsEndpoint {
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/cart-settings.html#put-cart-settings
* @param body.type - The type is settings.
* @param body.cart_expiry_days - The number of days in which the cart will expire.
* @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).
*/
UpdateCart(body: CartSettings): Promise<Resource<CartSettings>>

Expand All @@ -125,7 +127,9 @@ export interface SettingsEndpoint {
* Update Subscriptions Settings
* Description: You can update the Subscriptions Settings using this endpoint
*/
UpdateSubscriptions(body: SubscriptionSettings): Promise<Resource<SubscriptionSettings>>
UpdateSubscriptions(
body: SubscriptionSettings
): Promise<Resource<SubscriptionSettings>>

/**
* Get Promotions Settings
Expand Down