Class ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyRequestBuilder

Constructors

Properties

Methods

Constructors

Properties

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

Methods

  • If the Cart exists in the Project but does not have a store specified, or the store field references a different Store, this method returns a ResourceNotFound error.

    Parameters

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

    Returns ApiRequest<Cart>

  • If the Cart exists in the Project but does not have a store specified, or the store field references a different Store, this method returns a ResourceNotFound error.

    To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the [Recalculate](ctp:api:type:CartRecalculateAction) update action.
    

    Parameters

    • OptionalmethodArgs: {
          headers?: { [key: string]: string | string[] };
          queryArgs?: { expand?: string | string[]; [key: string]: QueryParam };
      }

    Returns ApiRequest<Cart>