Class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyRequestBuilder

Constructors

Properties

Methods

Constructors

Properties

args: {
    baseUri?: string;
    executeRequest: executeRequest;
    pathArgs: {
        key: string;
        projectKey: string;
        storeKey: string;
    };
}

Type declaration

  • Optional baseUri?: string
  • executeRequest: executeRequest
  • pathArgs: {
        key: string;
        projectKey: string;
        storeKey: string;
    }
    • key: string
    • projectKey: string
    • storeKey: string

Methods

  • To delete a CartDiscount, specify the manage_cart_discounts:{projectKey}:{storeKey} scope for all Stores associated with the CartDiscount.

    Deleting a Cart Discount produces the [CartDiscountDeleted](ctp:api:type:CartDiscountDeletedMessage) Message.
    

    Parameters

    • methodArgs: {
          headers?: {
              [key: string]: string | string[];
          };
          queryArgs: {
              expand?: string | string[];
              version: number;
              [key: string]: QueryParam;
          };
      }
      • Optional headers?: {
            [key: string]: string | string[];
        }
        • [key: string]: string | string[]
      • queryArgs: {
            expand?: string | string[];
            version: number;
            [key: string]: QueryParam;
        }
        • [key: string]: QueryParam
        • Optional expand?: string | string[]
        • version: number

    Returns ApiRequest<CartDiscount>