New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@commercetools/platform-sdk

Package Overview
Dependencies
Maintainers
12
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools/platform-sdk - npm Package Compare versions

Comparing version 6.0.0 to 7.0.0

dist/declarations/src/generated/client/approval-flows/by-project-key-as-associate-by-associate-id-in-business-unit-key-by-business-unit-key-approval-flows-by-id-request-builder.d.ts

@@ -45,2 +45,10 @@ /**

}): ApiRequest<Cart>;
/**
* Checks if an active Cart exists. Returns a `200 OK` status if an active Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -42,2 +42,10 @@ /**

}): ApiRequest<Cart>;
/**
* Checks if an active Cart exists. Returns a `200 OK` status if an active Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -33,2 +33,10 @@ /**

}): ApiRequest<ApiClient>;
/**
* Checks if an API Client exists for a given `id`. Returns a `200 OK` status if the API Client exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
delete(methodArgs?: {

@@ -35,0 +43,0 @@ headers?: {

@@ -44,2 +44,14 @@ /**

}): ApiRequest<ApiClientPagedQueryResponse>;
/**
* Checks if an API Client exists for a given Query Predicate. Returns a `200 OK` status if any API Clients match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -46,0 +58,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<AssociateRole>;
/**
* Checks if an AssociateRole exists for a given `id`. Returns a `200 OK` status if the AssociateRole exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<AssociateRole>;
/**
* Checks if an AssociateRole exists for a given `key`. Returns a `200 OK` status if the AssociateRole exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -49,2 +49,14 @@ /**

/**
* Checks if an AssociateRole exists for a given Query Predicate. Returns a `200 OK` status if any AssociateRole match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Creating a Associate Role generates the [AssociateRoleCreated](ctp:api:type:AssociateRoleCreatedMessage) Message.

@@ -51,0 +63,0 @@ *

@@ -37,2 +37,10 @@ /**

}): ApiRequest<AttributeGroup>;
/**
* Checks if an AttributeGroup exists for a given `id`. Returns a `200 OK` status if the AttributeGroup exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<AttributeGroup>;
/**
* Checks if an AttributeGroup exists for a given `key`. Returns `200 OK` status if the AttributeGroup exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<AttributeGroupPagedQueryResponse>;
/**
* Checks if an AttributeGroup exists for a given Query Predicate. Returns `200 OK` status if any AttributeGroups match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -39,2 +39,10 @@ /**

}): ApiRequest<BusinessUnit>;
/**
* Checks if a BusinessUnit exists for a given `id`. Returns a `200 OK` status if the BusinessUnit exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -41,0 +49,0 @@ queryArgs?: {

@@ -39,2 +39,10 @@ /**

}): ApiRequest<BusinessUnit>;
/**
* Checks if a BusinessUnit exists for a given `key`. Returns a `200 OK` status if the BusinessUnit exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -41,0 +49,0 @@ queryArgs?: {

@@ -50,2 +50,14 @@ /**

}): ApiRequest<BusinessUnitPagedQueryResponse>;
/**
* Checks if a BusinessUnit exists for a given Query Predicate. Returns a `200 OK` status if any BusinessUnits match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -52,0 +64,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<BusinessUnit>;
/**
* Checks if a BusinessUnit exists for a given `id`. Returns a `200 OK` status if the BusinessUnit exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<BusinessUnit>;
/**
* Checks if a BusinessUnit exists for a given `key`. Returns a `200 OK` status if the BusinessUnit exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<BusinessUnitPagedQueryResponse>;
/**
* Checks if a BusinessUnit exists for a given Query Predicate. Returns a `200 OK` status if any BusinessUnits match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -38,2 +38,10 @@ /**

}): ApiRequest<BusinessUnit>;
/**
* Checks if a BusinessUnit exists for a given `id`. Returns a `200 OK` status if the BusinessUnit exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -40,0 +48,0 @@ queryArgs?: {

@@ -38,2 +38,10 @@ /**

}): ApiRequest<BusinessUnit>;
/**
* Checks if a BusinessUnit exists for a given `key`. Returns a `200 OK` status if the BusinessUnit exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -40,0 +48,0 @@ queryArgs?: {

@@ -50,2 +50,14 @@ /**

/**
* Checks if a BusinessUnit exists for a given Query Predicate. Returns a `200 OK` status if any BusinessUnits match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Automatically assigns the Associate to the Business Unit in the default [Associate Role](ctp:api:type:AssociateRole) defined in [BusinessUnitConfiguration](ctp:api:type:BusinessUnitConfiguration). If there is no default Associate Role configured, this request fails with an [InvalidOperation](ctp:api:type:InvalidOperationError) error. When creating a Division, the Associate must have the `AddChildUnits` [Permission](ctp:api:type:Permission) in the parent unit. If the required [Permission](/projects/associate-roles#permission) is missing, an [AssociateMissingPermission](/errors#associatemissingpermission) error is returned.

@@ -52,0 +64,0 @@ *

@@ -246,2 +246,10 @@ /**

}): ApiRequest<Project>;
/**
* Checks if a Project exists for a given `projectKey`. Returns a `200 OK` status if the Project exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -248,0 +256,0 @@ body: ProjectUpdate;

@@ -37,2 +37,10 @@ /**

}): ApiRequest<CartDiscount>;
/**
* Checks if a CartDiscount exists for a given `id`. Returns a `200 OK` status if the CartDiscount exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<CartDiscount>;
/**
* Checks if a CartDiscount exists for a given `key`. Returns a `200 OK` status if the CartDiscount exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<CartDiscountPagedQueryResponse>;
/**
* Checks if a CartDiscount exists for a given Query Predicate. Returns a `200 OK` status if any CartDiscounts match the Query Predicate, or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -40,2 +40,10 @@ /**

/**
* Checks if a CartDiscount exists for a given `id`. Returns a `200 OK` status if the CartDiscount exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* To update a CartDiscount, you must have permissions for all Stores the CartDiscount is associated with, except when [removing a Store](ctp:api:type:CartDiscountRemoveStoreAction).

@@ -42,0 +50,0 @@ *

@@ -40,2 +40,10 @@ /**

/**
* Checks if a CartDiscount exists for a given `key`. Returns a `200 OK` status if the CartDiscount exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* To update a CartDiscount, you must have permissions for all Stores the CartDiscount is associated with, except when [removing a Store](ctp:api:type:CartDiscountRemoveStoreAction).

@@ -42,0 +50,0 @@ *

14

dist/declarations/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-request-builder.d.ts

@@ -7,3 +7,3 @@ /**

import { CartDiscount, CartDiscountDraft } from "../../models/cart-discount.js";
import { executeRequest } from "../../shared/utils/common-types.js";
import { executeRequest, QueryParam } from "../../shared/utils/common-types.js";
import { ApiRequest } from "../../shared/utils/requests-utils.js";

@@ -43,2 +43,14 @@ import { ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDRequestBuilder } from "./by-project-key-in-store-key-by-store-key-cart-discounts-by-id-request-builder.js";

/**
* Checks if a CartDiscount exists for a given Query Predicate. Returns a `200 OK` status if any CartDiscounts match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* When using the endpoint, the Store specified in the path and the Stores specified in the payload's `stores` field are added to the CartDiscount.

@@ -45,0 +57,0 @@ *

@@ -46,2 +46,10 @@ /**

/**
* Checks if a Cart exists for a given `id`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Cart exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.

@@ -48,0 +56,0 @@ *

@@ -46,2 +46,10 @@ /**

/**
* Checks if a Cart exists for a given `key`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Cart exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.

@@ -48,0 +56,0 @@ *

@@ -55,2 +55,14 @@ /**

/**
* Checks if a Cart exists for a given Query Predicate. Returns a `200 OK` status if any Carts match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Creates a [Cart](ctp:api:type:Cart) in the [BusinessUnit](ctp:api:type:BusinessUnit) referenced by `businessUnitKey`. As such, the `businessUnit` field on [CartDraft](ctp:api:type:CartDraft) is ignored for this request.

@@ -57,0 +69,0 @@ * Creating a Cart can fail with an [InvalidOperation](ctp:api:type:InvalidOperationError) if the referenced [ShippingMethod](ctp:api:type:ShippingMethod) in the [CartDraft](ctp:api:type:CartDraft) has a predicate that does not match the Cart.

@@ -41,2 +41,10 @@ /**

}): ApiRequest<Cart>;
/**
* Checks if a Cart exists for a given `id`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -43,0 +51,0 @@ queryArgs?: {

@@ -43,2 +43,10 @@ /**

}): ApiRequest<Cart>;
/**
* Checks if a Cart of a Customer exists. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -41,2 +41,10 @@ /**

}): ApiRequest<Cart>;
/**
* Checks if a Cart exists for a given `key`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -43,0 +51,0 @@ queryArgs?: {

@@ -55,2 +55,14 @@ /**

/**
* Checks if a Cart exists for a given Query Predicate. Returns a `200 OK` status if any Carts match the Query Predicate, or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Creating a Cart fails with an [InvalidOperation](ctp:api:type:InvalidOperationError) error if the

@@ -57,0 +69,0 @@ * [ShippingMethod](ctp:api:type:ShippingMethod) referenced in the CartDraft

@@ -46,2 +46,10 @@ /**

/**
* Checks if a Cart exists for a given `id`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Updates a [Cart](ctp:api:type:Cart) in the [Store](ctp:api:type:Store) specified by `storeKey`.

@@ -48,0 +56,0 @@ * If the Cart exists in the Project but does not have the `store` field, or the `store` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.

@@ -47,2 +47,10 @@ /**

}): ApiRequest<Cart>;
/**
* Checks if a Cart of a Customer exists. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -46,2 +46,10 @@ /**

/**
* Checks if a Cart exists for a given `key`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Cart exists in the Project but does not have the `store` field, or the `store` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.

@@ -48,0 +56,0 @@ *

@@ -60,2 +60,14 @@ /**

/**
* Checks if a Cart exists for a given Query Predicate. Returns a `200 OK` status if any Carts match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Creates a [Cart](ctp:api:type:Cart) in the [Store](ctp:api:type:Store) specified by `storeKey`.

@@ -62,0 +74,0 @@ * When using this endpoint the Cart's `store` field is always set to the [Store](ctp:api:type:Store) specified in the path parameter.

@@ -41,2 +41,10 @@ /**

/**
* Checks ifa My Cart exists for a given `id`. Returns a `200 OK` status if the My Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Cart exists in the Project but does not have the `store` field, or the `store` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.

@@ -43,0 +51,0 @@ *

@@ -48,2 +48,14 @@ /**

/**
* Checks if a Cart exists for a given Query Predicate. Returns a `200 OK` status if any Carts match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* The `store` field in the created [Cart](ctp:api:type:Cart) is set to the Store specified by the `storeKey` path parameter.

@@ -50,0 +62,0 @@ *

@@ -38,2 +38,10 @@ /**

}): ApiRequest<Cart>;
/**
* Checks if a Cart exists for a given `id`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -40,0 +48,0 @@ queryArgs?: {

@@ -38,2 +38,10 @@ /**

}): ApiRequest<Cart>;
/**
* Checks if a Cart exists for a given `key`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -40,0 +48,0 @@ queryArgs?: {

@@ -51,2 +51,14 @@ /**

}): ApiRequest<CartPagedQueryResponse>;
/**
* Checks if a Cart exists for a given Query Predicate. Returns a `200 OK` status if any Carts match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -53,0 +65,0 @@ queryArgs?: {

@@ -42,2 +42,10 @@ /**

/**
* Checks if a Category exists for a given `id`. Returns a `200 OK` status if the Category exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Either the [scope](/../api/scopes) `manage_products:{projectKey}` or `manage_categories:{projectKey}` is required.

@@ -44,0 +52,0 @@ *

@@ -42,2 +42,10 @@ /**

/**
* Checks if a Category exists for a given `key`. Returns a `200 OK` status if the Category exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Either the [scope](/../api/scopes) `manage_products:{projectKey}` or `manage_categories:{projectKey}` is required.

@@ -44,0 +52,0 @@ *

@@ -53,2 +53,14 @@ /**

/**
* Checks if a Category exists for on a given Query Predicate. Returns a `200 OK` status if any Categories match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Either the [scope](/../api/scopes) `manage_products:{projectKey}` or `manage_categories:{projectKey}` is required.

@@ -55,0 +67,0 @@ *

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Channel>;
/**
* Checks if a Channel exists for a given `id`. Returns a `200 OK` status if the Channel exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -44,2 +44,14 @@ /**

}): ApiRequest<ChannelPagedQueryResponse>;
/**
* Checks if a Channel exists for a given Query Predicate. Returns a `200 OK` status if any Channels match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -46,0 +58,0 @@ queryArgs?: {

@@ -57,2 +57,14 @@ /**

/**
* Checks if a CustomObject exists for a given Query Predicate. Returns a `200 OK` status if any CustomObjects match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If an object with the given container/key exists, the object will be replaced with the new value and the version is incremented.

@@ -59,0 +71,0 @@ * If the request contains a version and an object with the given container/key, then the version must match the version of the existing object. Concurrent updates to the same Custom Object returns a [ConcurrentModification](ctp:api:type:ConcurrentModificationError) error even if the version is not provided.

@@ -37,2 +37,10 @@ /**

}): ApiRequest<CustomerGroup>;
/**
* Checks if a CustomerGroup exists for a given `id`. Returns a `200 OK` status if the CustomerGroup exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<CustomerGroup>;
/**
* Checks if a CustomerGroup exists for a given `key`. Returns a `200 OK` status if the CustomerGroup exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<CustomerGroupPagedQueryResponse>;
/**
* Checks if a CustomerGroup exists for a given Query Predicate. Returns a `200 OK` status if any CustomerGroup match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Customer>;
/**
* Checks if a Customer exists for a given `id`. Returns a `200 OK` status if the Customer exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Customer>;
/**
* Checks if a Customer exists for a given `key`. Returns a `200 OK` status if the Customer exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -45,2 +45,5 @@ /**

passwordReset(): ByProjectKeyCustomersPasswordResetRequestBuilder;
/**
* Produces the [CustomerPasswordTokenCreated](ctp:api:type:CustomerPasswordTokenCreatedMessage) Message.
*/
passwordToken(): ByProjectKeyCustomersPasswordTokenRequestBuilder;

@@ -68,2 +71,14 @@ withKey(childPathArgs: {

/**
* Checks if a Customer exists for a given Query Predicate. Returns a `200 OK` status if any Customers match the Query Predicate, or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the `anonymousCart` field is set on the [CustomerDraft](ctp:api:type:CustomerDraft), then the newly created Customer will be assigned to that [Cart](ctp:api:type:Cart).

@@ -70,0 +85,0 @@ * Similarly, if the `anonymousId` field is set, the Customer will be set on all [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [ShoppingLists](ctp:api:type:ShoppingList) and [Payments](ctp:api:type:Payment) with the same `anonymousId`.

@@ -44,2 +44,10 @@ /**

/**
* Checks if a Customer exists for a given `id`. Returns a `200 OK` status if the Customer exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.

@@ -46,0 +54,0 @@ *

@@ -44,2 +44,10 @@ /**

/**
* Checks if a Customer exists for a given `key`. Returns a `200 OK` status if the Customer exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.

@@ -46,0 +54,0 @@ *

@@ -69,2 +69,14 @@ /**

/**
* Checks if a Customer exists for a given Query Predicate. Returns a `200 OK` status if any Customers match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* When using this endpoint, if omitted, the Customer `stores` field is set to the [Store](ctp:api:type:Store) specified in the path parameter.

@@ -71,0 +83,0 @@ *

@@ -41,2 +41,10 @@ /**

/**
* Checks if a DiscountCode exists for a given `id`. Returns a `200 OK` status if the DiscountCode exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Deprecated scope: `manage_orders:{projectKey}`

@@ -43,0 +51,0 @@ */

@@ -48,2 +48,14 @@ /**

/**
* Checks if a DiscountCode exists for a given Query Predicate. Returns a `200 OK` status if any DiscountCodes match the Query Predicate, or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Deprecated scope: `manage_orders:{projectKey}`

@@ -50,0 +62,0 @@ */

@@ -39,2 +39,10 @@ /**

}): ApiRequest<OrderEdit>;
/**
* Checks if an OrderEdit exists for a given `id`. Returns a `200 OK` status if the OrderEdit exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -41,0 +49,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<OrderEdit>;
/**
* Checks if an OrderEdit exists for a given `key`. Returns a `200 OK` status if the OrderEdit exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -49,2 +49,14 @@ /**

/**
* Checks if an OrderEdit exists for a given Query Predicate. Returns a `200 OK` status if any OrderEdits match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* You can either create multiple Order Edits for an Order and apply them sequentially to an Order, or create multiple Order Edits parallelly (as alternatives to each other) and apply one of them to the Order.

@@ -51,0 +63,0 @@ *

@@ -26,2 +26,5 @@ /**

});
/**
* Produces the [CustomerEmailTokenCreated](ctp:api:type:CustomerEmailTokenCreatedMessage) Message.
*/
post(methodArgs: {

@@ -28,0 +31,0 @@ body: CustomerCreateEmailToken;

@@ -33,2 +33,10 @@ /**

}): ApiRequest<Extension>;
/**
* Checks if an Extension exists for a given `id`. Returns a `200 OK` status if the Extension exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -35,0 +43,0 @@ body: ExtensionUpdate;

@@ -33,2 +33,10 @@ /**

}): ApiRequest<Extension>;
/**
* Checks if an Extension exists for a given `key`. Returns a `200 OK` status if the Extension exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -35,0 +43,0 @@ body: ExtensionUpdate;

@@ -47,2 +47,14 @@ /**

}): ApiRequest<ExtensionPagedQueryResponse>;
/**
* Checks if an Extension exists for a given Query Predicate. Returns a `200 OK` status if any Extensions match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -49,0 +61,0 @@ body: ExtensionDraft;

@@ -7,2 +7,4 @@ /**

import { executeRequest } from "../../shared/utils/common-types.js";
import { ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalFlowsRequestBuilder } from "../approval-flows/by-project-key-as-associate-by-associate-id-in-business-unit-key-by-business-unit-key-approval-flows-request-builder.js";
import { ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesRequestBuilder } from "../approval-rules/by-project-key-as-associate-by-associate-id-in-business-unit-key-by-business-unit-key-approval-rules-request-builder.js";
import { ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsRequestBuilder } from "../carts/by-project-key-as-associate-by-associate-id-in-business-unit-key-by-business-unit-key-carts-request-builder.js";

@@ -34,2 +36,12 @@ import { ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersRequestBuilder } from "../orders/by-project-key-as-associate-by-associate-id-in-business-unit-key-by-business-unit-key-orders-request-builder.js";

/**
* An Approval Rule describes the conditions determining whether an Order that matches the predicate needs approval by an approver before it can be ordered by an requester within a Business Unit.
*/
approvalRules(): ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalRulesRequestBuilder;
/**
* Approval Flows connect Orders that require approval with the Approval Rules that initiate the approval requirement.
* They represent the approval process by including information about approvals, rejections, and all involved parties.
*
*/
approvalFlows(): ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyApprovalFlowsRequestBuilder;
/**
* A shopping cart holds product variants and can be ordered.

@@ -36,0 +48,0 @@ */

@@ -37,2 +37,10 @@ /**

}): ApiRequest<InventoryEntry>;
/**
* Checks if an InventoryEntry exists for a given `id`. Returns a `200 OK` status if the InventoryEntry exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<InventoryEntry>;
/**
* Checks if an InventoryEntry exists for a given `key`. Returns a `200 OK` status if the InventoryEntry exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -49,2 +49,14 @@ /**

/**
* Checks if an InventoryEntry exists for a given Query Predicate. Returns a `200 OK` status if any Inventory Entries match the Query Predicate, a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Produces the [InventoryEntryCreated](ctp:api:type:InventoryEntryCreatedMessage) Message.

@@ -51,0 +63,0 @@ */

@@ -45,2 +45,16 @@ /**

}): ApiRequest<ShippingMethodPagedQueryResponse>;
/**
* Checks if a ShippingMethod that can ship to the given [Location](ctp:api:type:Location) exists for the given Cart. Returns a `200 OK` status if the ShippingMethod exists or a `404 Not Found` otherwise.
*/
head(methodArgs: {
queryArgs: {
country: string;
state?: string;
cartId: string;
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -44,2 +44,14 @@ /**

}): ApiRequest<ShippingMethodPagedQueryResponse>;
/**
* Checks if a ShippingMethod that can ship to the shipping address of the given Cart exists in the given [Store](ctp:api:type:Store). Returns a `200 OK` status if the ShippingMethod exists or a `404 Not Found` otherwise.
*/
head(methodArgs: {
queryArgs: {
cartId: string;
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -42,2 +42,14 @@ /**

}): ApiRequest<ShippingMethodPagedQueryResponse>;
/**
* Checks if a ShippingMethod exists for the given Cart. Returns a `200 OK` status if the ShippingMethod exists or a `404 Not Found` otherwise.
*/
head(methodArgs: {
queryArgs: {
cartId: string;
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -47,2 +47,16 @@ /**

}): ApiRequest<ShippingMethodPagedQueryResponse>;
/**
* Checks if a ShippingMethod that can ship to the given [Location](ctp:api:type:Location) exists. Returns a `200 OK` status if the ShippingMethod exists or a `404 Not Found` otherwise.
*/
head(methodArgs: {
queryArgs: {
country: string;
state?: string;
currency?: string;
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -43,2 +43,16 @@ /**

}): ApiRequest<ShippingMethodPagedQueryResponse>;
/**
* Checks if a ShippingMethod that can ship to the given [Location](ctp:api:type:Location) exists for the given [OrderEdit](ctp:api:type:OrderEdit). Returns a `200 OK` status if the ShippingMethod exists or a `404 Not Found` otherwise.
*/
head(methodArgs: {
queryArgs: {
orderEditId: string;
country: string;
state?: string;
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -40,2 +40,10 @@ /**

}): ApiRequest<Message>;
/**
* Checks if a Message exists for a given `id`. Returns a `200 OK` status if the Message exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -47,2 +47,14 @@ /**

}): ApiRequest<MessagePagedQueryResponse>;
/**
* Checks if a Message exists for a given Query Predicate. Returns a `200 OK` status if any Messages match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -46,2 +46,10 @@ /**

/**
* Checks if an Order exists for a given `id`. Returns a `200 OK` status if the Order exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Order exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.

@@ -48,0 +56,0 @@ *

@@ -46,2 +46,10 @@ /**

/**
* Checks if an Order exists for a given `orderNumber`. Returns a `200 OK` status if the Order exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Order exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.

@@ -48,0 +56,0 @@ *

@@ -55,2 +55,14 @@ /**

/**
* Checks if an Order exists for a given Query Predicate. Returns a `200 OK` status if any Orders match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Creates an Order from a [Cart](ctp:api:type:Cart) in a [BusinessUnit](ctp:api:type:BusinessUnit).

@@ -57,0 +69,0 @@ * The Cart must have a shipping address set before creating an Order.

@@ -43,2 +43,10 @@ /**

}): ApiRequest<Order>;
/**
* Checks if an Order exists for a given `id`. Returns a `200 OK` status if the My Order exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -48,2 +48,14 @@ /**

/**
* Checks if an Order exists for a given Query Predicate. Returns a `200 OK` status if any Orders match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* The Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction) for taxes to be calculated. When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts` [Permission](ctp:api:type:Permission).

@@ -50,0 +62,0 @@ *

@@ -44,2 +44,10 @@ /**

/**
* Checks if an Order exists for a given `id`. Returns a `200 OK` status if the Order exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Order exists in the Project but does not have the `store` field, or the `store` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.

@@ -46,0 +54,0 @@ *

@@ -44,2 +44,10 @@ /**

/**
* Checks if an Order exists for a given `orderNumber`. Returns a `200 OK` status if the Order exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Order exists in the Project but does not have the `store` field, or the `store` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.

@@ -46,0 +54,0 @@ *

@@ -51,2 +51,14 @@ /**

/**
* Checks if an Order exists for a given Query Predicate. Returns a `200 OK` status if any Orders match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).

@@ -53,0 +65,0 @@ * The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Order>;
/**
* Checks if an Order exists for a given `id`. Returns a `200 OK` status if the Order exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -48,2 +48,14 @@ /**

/**
* Checks if an Order exists for a given Query Predicate. Returns a `200 OK` status if any Orders match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* The Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction) for taxes to be calculated. When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts` [Permission](ctp:api:type:Permission).

@@ -50,0 +62,0 @@ *

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Order>;
/**
* Checks if an Order exists for a given `id`. Returns a `200 OK` status if the Order exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Order>;
/**
* Checks if an Order exists for a given `orderNumber`. Returns a `200 OK` status if the Order exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -64,2 +64,14 @@ /**

/**
* Checks if an Order exists for a given Query Predicate. Returns a `200 OK` status if any Orders match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).

@@ -66,0 +78,0 @@ * The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).

@@ -38,2 +38,10 @@ /**

/**
* Checks if a Payment exists for a given `id`. Returns a `200 OK` status if the Payment exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* This endpoint can only update a Payment when it has no [Transactions](ctp:api:type:Transaction).

@@ -40,0 +48,0 @@ *

@@ -45,2 +45,14 @@ /**

/**
* Checks if a Payment exists for a given Query Predicate. Returns a `200 OK` status if any Payments match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Creating a Payment produces the [PaymentCreated](ctp:api:type:PaymentCreatedMessage) Message.

@@ -47,0 +59,0 @@ *

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Payment>;
/**
* Checks if a Payment exists for a given `id`. Returns a `200 OK` status if the Payment exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Payment>;
/**
* Checks if a Payment exists for a given `key`. Returns a `200 OK` status if the Payment exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -49,2 +49,14 @@ /**

/**
* Checks if a Payment exists for a given Query Predicate. Returns a `200 OK` status if any Payments match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Creating a Payment produces the [PaymentCreated](ctp:api:type:PaymentCreatedMessage) Message.

@@ -51,0 +63,0 @@ *

@@ -37,2 +37,10 @@ /**

}): ApiRequest<ProductDiscount>;
/**
* Checks if a ProductDiscount exists for a given `id`. Returns a `200 OK` status if the ProductDiscount exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<ProductDiscount>;
/**
* Checks if a ProductDiscount exists for a given `key`. Returns a `200 OK` status if the ProductDiscount exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -50,2 +50,14 @@ /**

}): ApiRequest<ProductDiscountPagedQueryResponse>;
/**
* Checks if a ProductDiscount exists for a given Query Predicate. Returns a `200 OK` status if any ProductDiscounts match the Query Predicate, or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -52,0 +64,0 @@ queryArgs?: {

@@ -54,2 +54,10 @@ /**

}): ApiRequest<ProductProjection>;
/**
* Checks if the current or staged representations of a Product exists for a given `id` in the specified [Store](ctp:api:type:Store). Returns a `200 OK` status if the ProductProjection exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -54,2 +54,10 @@ /**

}): ApiRequest<ProductProjection>;
/**
* Checks if the current or staged representations of a Product exists for a given `key` in the specified [Store](ctp:api:type:Store). Returns a `200 OK` status if the ProductProjection exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -48,2 +48,10 @@ /**

}): ApiRequest<ProductProjection>;
/**
* Checks if the current or staged representation of a Product exists for a given `id`. Returns a `200 OK` status if the ProductProjection exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -50,2 +50,10 @@ /**

}): ApiRequest<ProductProjection>;
/**
* Checks if the current or staged representation of a Product exists for a given `key`. Returns a `200 OK` status if the ProductProjection exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -75,2 +75,14 @@ /**

}): ApiRequest<ProductProjectionPagedQueryResponse>;
/**
* Checks if the current or staged representation of a Product exists for a given Query Predicate. Returns a `200 OK` status if any ProductProjections match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -39,2 +39,10 @@ /**

}): ApiRequest<ProductSelection>;
/**
* Checks if a ProductSelection exists for a given `id`. Returns a `200 OK` status if the ProductSelection exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -41,0 +49,0 @@ queryArgs?: {

@@ -39,2 +39,10 @@ /**

}): ApiRequest<ProductSelection>;
/**
* Checks if a ProductSelection exists for a given `key`. Returns a `200 OK` status if the ProductSelection exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -41,0 +49,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<ProductSelectionPagedQueryResponse>;
/**
* Checks if a ProductSelection exists for a given Query Predicate. Returns a `200 OK` status if any ProductSelections match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

2

dist/declarations/src/generated/client/product-types/by-project-key-product-types-by-id-request-builder.d.ts

@@ -38,3 +38,3 @@ /**

/**
* Checks if a Product Type with given `id` exists. Responds with a `200 OK` status if the `Product Type` exists or `404 Not Found` otherwise.
* Checks if a ProductType exists for a given `id`. Returns a `200 OK` status if the ProductType exists or a `404 Not Found` otherwise.
*/

@@ -41,0 +41,0 @@ head(methodArgs?: {

@@ -38,3 +38,3 @@ /**

/**
* Checks if a Product Type with given `key` exists. Responds with a `200 OK` status if the `Product Type` exists or `404 Not Found` otherwise.
* Checks if a ProductType exists for a given `key`. Returns a `200 OK` status if the ProductType exists or a `404 Not Found` otherwise.
*/

@@ -41,0 +41,0 @@ head(methodArgs?: {

@@ -49,3 +49,3 @@ /**

/**
* Check if Product Types exist. Responds with a `200 OK` status if any Product Types match the Query Predicate, or `404 Not Found` otherwise.
* Checks if a ProductType exists for a given Query Predicate. Returns a `200 OK` status if any ProductTypes match the Query Predicate or a `404 Not Found` otherwise.
*/

@@ -52,0 +52,0 @@ head(methodArgs?: {

@@ -50,3 +50,3 @@ /**

/**
* Check if a Product exists with a specified `id`. Responds with a `200 OK` status if the Product exists or `404 Not Found` otherwise.
* Checks if a Product exists for a given `id`. Returns a `200 OK` status if the Product exists or a `404 Not Found` otherwise.
*/

@@ -53,0 +53,0 @@ head(methodArgs?: {

@@ -48,3 +48,3 @@ /**

/**
* Check if a Product exists with a specified `key`. Responds with a `200 OK` status if the Product exists or `404 Not Found` otherwise.
* Checks if a Product exists for a given `key`. Returns a `200 OK` status if the Product exists or a `404 Not Found` otherwise.
*/

@@ -51,0 +51,0 @@ head(methodArgs?: {

@@ -57,3 +57,3 @@ /**

/**
* Check if Products exist. Responds with a `200 OK` status if any Products match the Query Predicate, or `404 Not Found` otherwise.
* Checks if a Product exists for a given Query Predicate. Returns a `200 OK` status if any Products match the Query Predicate or a `404 Not Found` otherwise.
*/

@@ -60,0 +60,0 @@ head(methodArgs?: {

@@ -46,2 +46,10 @@ /**

/**
* Checks if a QuoteRequest exists for a given `id`. Returns a `200 OK` status if the QuoteRequest exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the QuoteRequest exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.

@@ -48,0 +56,0 @@ *

@@ -46,2 +46,10 @@ /**

/**
* Checks if a QuoteRequest exists for a given `key`. Returns a `200 OK` status if the QuoteRequest exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the QuoteRequest exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.

@@ -48,0 +56,0 @@ *

@@ -53,2 +53,14 @@ /**

/**
* Checks if a QuoteRequest exists for a given Query Predicate. Returns a `200 OK` status if any QuoteRequests match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Creates a QuoteRequest in a [BusinessUnit](ctp:api:type:BusinessUnit). Creating QuoteRequest fails with an [InvalidOperation](ctp:api:type:InvalidOperationError) if the Cart does not reference the same BusinessUnit as the `businessUnitKey` path parameter.

@@ -55,0 +67,0 @@ */

@@ -38,2 +38,10 @@ /**

}): ApiRequest<QuoteRequest>;
/**
* Checks if my QuoteRequest exists for a given `id`. Returns a `200 OK` status if the QuoteRequest exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -40,0 +48,0 @@ queryArgs?: {

@@ -38,2 +38,10 @@ /**

}): ApiRequest<QuoteRequest>;
/**
* Checks if my QuoteRequest exists for a given `key`. Returns a `200 OK` status if the QuoteRequest exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -40,0 +48,0 @@ queryArgs?: {

@@ -49,2 +49,14 @@ /**

}): ApiRequest<QuoteRequestPagedQueryResponse>;
/**
* Checks if my QuoteRequest exists for a given Query Predicate. Returns a `200 OK` status if any QuoteRequests match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -51,0 +63,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<QuoteRequest>;
/**
* Checks if a QuoteRequest exists for a given `id`. Returns a `200 OK` status if the QuoteRequest exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<QuoteRequest>;
/**
* Checks if a QuoteRequest exists for a given `key`. Returns a `200 OK` status if the QuoteRequest exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<QuoteRequestPagedQueryResponse>;
/**
* Checks if a QuoteRequest exists for a given Query Predicate. Returns a `200 OK` status if any QuoteRequests match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -46,2 +46,10 @@ /**

/**
* Checks if a Quote exists for a given `id`. Returns a `200 OK` status if the Quote exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Quote exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.

@@ -48,0 +56,0 @@ *

@@ -46,2 +46,10 @@ /**

/**
* Checks if a Quote exists for a given `key`. Returns a `200 OK` status if the Quote exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If the Quote exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.

@@ -48,0 +56,0 @@ *

@@ -52,2 +52,14 @@ /**

}): ApiRequest<QuotePagedQueryResponse>;
/**
* Checks if a Quote exists for a given Query Predicate. Returns a `200 OK` status if any Quotes match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -38,2 +38,10 @@ /**

}): ApiRequest<Quote>;
/**
* Checks if a Quote exists for a given `id`. Returns a `200 OK` status if the Quote exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -40,0 +48,0 @@ queryArgs?: {

@@ -38,2 +38,10 @@ /**

}): ApiRequest<Quote>;
/**
* Checks if a Quote exists for a given `key`. Returns a `200 OK` status if the Quote exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -40,0 +48,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<QuotePagedQueryResponse>;
/**
* Checks if a Quote exists for a given Query Predicate. Returns a `200 OK` status if any Quotes match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
}

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Quote>;
/**
* Checks if a Quote exists for a given `id`. Returns a `200 OK` status if the Quote exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Quote>;
/**
* Checks if a Quote exists for a given `key`. Returns a `200 OK` status if the Quote exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<QuotePagedQueryResponse>;
/**
* Checks if a Quote exists for a given Query Predicate. Returns a `200 OK` status if any Quotes match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Review>;
/**
* Checks if a Review exists for a given `id`. Returns a `200 OK` status if the Review exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Review>;
/**
* Checks if a Review exists for a given `key`. Returns a `200 OK` status if the Review exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<ReviewPagedQueryResponse>;
/**
* Checks if a Review exists for a given Query Predicate. Returns a `200 OK` status if any Reviews match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<ShippingMethod>;
/**
* Checks if a ShippingMethod exists for a given `id`. Returns a `200 OK` status if the ShippingMethod exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<ShippingMethod>;
/**
* Checks if a ShippingMethod exists for a given `key`. Returns a `200 OK` status if the ShippingMethod exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -68,2 +68,14 @@ /**

}): ApiRequest<ShippingMethodPagedQueryResponse>;
/**
* Checks if a ShippingMethod exists for a given Query Predicate. Returns a `200 OK` status if any ShippingMethods match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -70,0 +82,0 @@ queryArgs?: {

@@ -46,2 +46,10 @@ /**

/**
* Checks if a ShoppingList exists for a given `id`. Returns a `200 OK` status if the ShoppingList exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different [Store](ctp:api:type:Store),

@@ -48,0 +56,0 @@ * the [ResourceNotFound](/errors#404-not-found-1) error is returned.

@@ -45,2 +45,10 @@ /**

/**
* Checks if a ShoppingList exists for a given `key`. Returns a `200 OK` status if the ShoppingList exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different [Store](ctp:api:type:Store),

@@ -47,0 +55,0 @@ * the [ResourceNotFound](/errors#404-not-found-1) error is returned.

@@ -52,2 +52,14 @@ /**

/**
* Checks if a ShoppingList exists for a given Query Predicate. Returns a `200 OK` status if any ShoppingLists match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* When using this endpoint, the `store` field of a ShoppingList is always set to the [Store](ctp:api:type:Store) specified in the path parameter.

@@ -54,0 +66,0 @@ *

@@ -45,2 +45,10 @@ /**

/**
* Checks if a ShoppingList exists for a given `id`. Returns a `200 OK` status if the ShoppingList exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different [Store](ctp:api:type:Store),

@@ -47,0 +55,0 @@ * the [ResourceNotFound](/errors#404-not-found-1) error is returned.

@@ -45,2 +45,10 @@ /**

/**
* Checks if a ShoppingList exists for a given `key`. Returns a `200 OK` status if the ShoppingList exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different [Store](ctp:api:type:Store),

@@ -47,0 +55,0 @@ * the [ResourceNotFound](/errors#404-not-found-1) error is returned.

@@ -51,2 +51,14 @@ /**

/**
* Checks if a ShoppingList exists for a given Query Predicate. Returns a `200 OK` status if any ShoppingLists match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* When using this endpoint, the `store` field of a ShoppingList is always set to the [Store](ctp:api:type:Store) specified in the path parameter.

@@ -53,0 +65,0 @@ *

@@ -38,2 +38,10 @@ /**

}): ApiRequest<ShoppingList>;
/**
* Checks if a ShoppingList exists for a given `id`. Returns a `200 OK` status if the ShoppingList exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -40,0 +48,0 @@ queryArgs?: {

@@ -38,2 +38,10 @@ /**

}): ApiRequest<ShoppingList>;
/**
* Checks if a ShoppingList exists for a given `key`. Returns a `200 OK` status if the ShoppingList exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -40,0 +48,0 @@ queryArgs?: {

@@ -49,2 +49,14 @@ /**

}): ApiRequest<ShoppingListPagedQueryResponse>;
/**
* Checks if a ShoppingList exists for a given Query Predicate. Returns a `200 OK` status if any ShoppingLists match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -51,0 +63,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<ShoppingList>;
/**
* Checks if a ShoppingList exists for a given `id`. Returns a `200 OK` status if the ShoppingList exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<ShoppingList>;
/**
* Checks if a ShoppingList exists for a given `key`. Returns a `200 OK` status if the ShoppingList exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<ShoppingListPagedQueryResponse>;
/**
* Checks if a ShoppingList exists for a given Query Predicate. Returns a `200 OK` status if any ShoppingLists match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<StagedQuote>;
/**
* Checks if a StagedQuote exists for a given `id`. Returns a `200 OK` status if the StagedQuote exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<StagedQuote>;
/**
* Checks if a StagedQuote exists for a given `key`. Returns a `200 OK` status if the StagedQuote exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<StagedQuotePagedQueryResponse>;
/**
* Checks if a StagedQuote exists for a given Query Predicate. Returns a `200 OK` status if any StagedQuotes match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<StandalonePrice>;
/**
* Checks if a StandalonePrice exists for a given `id`. Returns a `200 OK` status if the StandalonePrice exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<StandalonePrice>;
/**
* Checks if a StandalonePrice exists for a given `key`. Returns a `200 OK` status if the StandalonePrice exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -49,2 +49,14 @@ /**

/**
* Checks if a StandalonePrice exists for a given Query Predicate. Returns a `200 OK` status if any StandalonePrices match the Query Predicate, or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* Produces the [StandalonePriceCreated](ctp:api:type:StandalonePriceCreatedMessage) Message.

@@ -51,0 +63,0 @@ *

@@ -37,2 +37,10 @@ /**

}): ApiRequest<State>;
/**
* Checks if a State exists for a given `id`. Returns a `200 OK` status if the State exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<State>;
/**
* Checks if a State exists for a given `key`. Returns a `200 OK` status if the State exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<StatePagedQueryResponse>;
/**
* Checks if a State exists for a given Query Predicate. Returns a `200 OK` status if any States match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Store>;
/**
* Checks if a Store exists for a given `id`. Returns a `200 OK` status if the Store exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Store>;
/**
* Checks if a Store exists for a given `key`. Returns a `200 OK` status if the Store exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<StorePagedQueryResponse>;
/**
* Checks if a Store exists for a given Query Predicate. Returns a `200 OK` status if any Stores match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -35,2 +35,10 @@ /**

}): ApiRequest<Subscription>;
/**
* Checks if a Subscription exists for a given `id`. Returns a `200 OK` status if the Subscription exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -37,0 +45,0 @@ body: SubscriptionUpdate;

@@ -33,2 +33,10 @@ /**

}): ApiRequest<Subscription>;
/**
* Checks if a Subscription exists for a given `key`. Returns a `200 OK` status if the Subscription exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -35,0 +43,0 @@ body: SubscriptionUpdate;

@@ -48,2 +48,14 @@ /**

/**
* Checks if a Subscription exists for a given Query Predicate. Returns a `200 OK` status if any Subscriptions match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
/**
* A test message is sent to ensure the correct configuration of the Destination. If the message cannot be delivered, the Subscription will not be created. The payload of the test message is a notification of type [ResourceCreated](/../api/projects/subscriptions#resourcecreateddeliverypayload) for the `resourceTypeId` `subscription`.

@@ -50,0 +62,0 @@ *

@@ -37,2 +37,10 @@ /**

}): ApiRequest<TaxCategory>;
/**
* Checks if a TaxCategory exists for a given `id`. Returns a `200 OK` status if the TaxCategory exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<TaxCategory>;
/**
* Checks if a TaxCategory exists for a given `key`. Returns a `200 OK` status if the Tax Category exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<TaxCategoryPagedQueryResponse>;
/**
* Checks if a TaxCategory exists for a given Query Predicate. Returns a `200 OK` status if any TaxCategories match the Query Predicate, or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Type>;
/**
* Checks if a Type exists for a given `id`. Returns a `200 OK` status if the Type exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Type>;
/**
* Checks if a Type exists for a given `key`. Returns a `200 OK` status if the Type exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<TypePagedQueryResponse>;
/**
* Checks if a Type exists for a given Query Predicate. Returns a `200 OK` status if any Types match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Zone>;
/**
* Checks if a Zone exists for a given `id`. Returns a `200 OK` status if the Zone exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -37,2 +37,10 @@ /**

}): ApiRequest<Zone>;
/**
* Checks if a Zone exists for a given `key`. Returns a `200 OK` status if the Zone exists or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -39,0 +47,0 @@ queryArgs?: {

@@ -48,2 +48,14 @@ /**

}): ApiRequest<ZonePagedQueryResponse>;
/**
* Checks if a Zone exists for a given Query Predicate. Returns a `200 OK` status if any Zones match the Query Predicate or a `404 Not Found` otherwise.
*/
head(methodArgs?: {
queryArgs?: {
where?: string | string[];
[key: string]: QueryParam;
};
headers?: {
[key: string]: string | string[];
};
}): ApiRequest<void>;
post(methodArgs: {

@@ -50,0 +62,0 @@ queryArgs?: {

@@ -8,2 +8,4 @@ /**

export * from "./models/api-client.js";
export * from "./models/approval-flow.js";
export * from "./models/approval-rule.js";
export * from "./models/associate-role.js";

@@ -10,0 +12,0 @@ export * from "./models/attribute-group.js";

@@ -216,6 +216,6 @@ /**

/**
* Permissions grant granular access to [Business Units](ctp:api:type:BusinessUnit), [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), and [QuoteRequests](ctp:api:type:QuoteRequest).
* Permissions grant granular access to [Approval Rules](ctp:api:type:ApprovalRule), [Approval Flows](ctp:api:type:ApprovalFlow), [Business Units](ctp:api:type:BusinessUnit), [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), and [Quote Requests](ctp:api:type:QuoteRequest).
*
*/
export type Permission = 'AcceptMyQuotes' | 'AcceptOthersQuotes' | 'AddChildUnits' | 'CreateMyCarts' | 'CreateMyOrdersFromMyCarts' | 'CreateMyOrdersFromMyQuotes' | 'CreateMyQuoteRequestsFromMyCarts' | 'CreateOrdersFromOthersCarts' | 'CreateOrdersFromOthersQuotes' | 'CreateOthersCarts' | 'CreateQuoteRequestsFromOthersCarts' | 'DeclineMyQuotes' | 'DeclineOthersQuotes' | 'DeleteMyCarts' | 'DeleteOthersCarts' | 'ReassignMyQuotes' | 'ReassignOthersQuotes' | 'RenegotiateMyQuotes' | 'RenegotiateOthersQuotes' | 'UpdateAssociates' | 'UpdateBusinessUnitDetails' | 'UpdateMyCarts' | 'UpdateMyOrders' | 'UpdateMyQuoteRequests' | 'UpdateOthersCarts' | 'UpdateOthersOrders' | 'UpdateOthersQuoteRequests' | 'UpdateParentUnit' | 'ViewMyCarts' | 'ViewMyOrders' | 'ViewMyQuoteRequests' | 'ViewMyQuotes' | 'ViewOthersCarts' | 'ViewOthersOrders' | 'ViewOthersQuoteRequests' | 'ViewOthersQuotes' | string;
export type Permission = 'AcceptMyQuotes' | 'AcceptOthersQuotes' | 'AddChildUnits' | 'CreateApprovalRules' | 'CreateMyCarts' | 'CreateMyOrdersFromMyCarts' | 'CreateMyOrdersFromMyQuotes' | 'CreateMyQuoteRequestsFromMyCarts' | 'CreateOrdersFromOthersCarts' | 'CreateOrdersFromOthersQuotes' | 'CreateOthersCarts' | 'CreateQuoteRequestsFromOthersCarts' | 'DeclineMyQuotes' | 'DeclineOthersQuotes' | 'DeleteMyCarts' | 'DeleteOthersCarts' | 'ReassignMyQuotes' | 'ReassignOthersQuotes' | 'RenegotiateMyQuotes' | 'RenegotiateOthersQuotes' | 'UpdateApprovalFlows' | 'UpdateApprovalRules' | 'UpdateAssociates' | 'UpdateBusinessUnitDetails' | 'UpdateMyCarts' | 'UpdateMyOrders' | 'UpdateMyQuoteRequests' | 'UpdateOthersCarts' | 'UpdateOthersOrders' | 'UpdateOthersQuoteRequests' | 'UpdateParentUnit' | 'ViewMyCarts' | 'ViewMyOrders' | 'ViewMyQuoteRequests' | 'ViewMyQuotes' | 'ViewOthersCarts' | 'ViewOthersOrders' | 'ViewOthersQuoteRequests' | 'ViewOthersQuotes' | string;
/**

@@ -222,0 +222,0 @@ * Adding a Permission to an [AssociateRole](ctp:api:type:AssociateRole) generates an [AssociateRolePermissionAdded](ctp:api:type:AssociateRolePermissionAddedMessage) Message.

@@ -1000,2 +1000,6 @@ /**

}
/**
* Adding a Custom Field to an Address of a Business Unit generates the [BusinessUnitAddressCustomFieldAdded](ctp:api:type:BusinessUnitAddressCustomFieldAddedMessage) Message, removing one generates the [BusinessUnitAddressCustomFieldRemoved](ctp:api:type:BusinessUnitAddressCustomFieldRemovedMessage) Message, and updating an existing one generates the [BusinessUnitAddressCustomFieldChanged](ctp:api:type:BusinessUnitAddressCustomFieldChangedMessage) Message.
*
*/
export interface BusinessUnitSetAddressCustomFieldAction {

@@ -1024,2 +1028,6 @@ readonly action: 'setAddressCustomField';

}
/**
* Adding or updating a Custom Type on an Address of a Business Unit generates the [BusinessUnitAddressCustomTypeSet](ctp:api:type:BusinessUnitAddressCustomTypeSetMessage) Message, and removing one generates the [BusinessUnitAddressCustomTypeRemoved](ctp:api:type:BusinessUnitAddressCustomTypeRemovedMessage) Message.
*
*/
export interface BusinessUnitSetAddressCustomTypeAction {

@@ -1074,6 +1082,10 @@ readonly action: 'setAddressCustomType';

}
/**
* Adding a Custom Field to a Business Unit generates the [BusinessUnitCustomFieldAdded](ctp:api:type:BusinessUnitCustomFieldAddedMessage) Message, removing one generates the [BusinessUnitCustomFieldRemoved](ctp:api:type:BusinessUnitCustomFieldRemovedMessage) Message, and updating an existing one generates the [BusinessUnitCustomFieldChanged](ctp:api:type:BusinessUnitCustomFieldChangedMessage) Message.
*
*/
export interface BusinessUnitSetCustomFieldAction {
readonly action: 'setCustomField';
/**
* Name of the [Custom Field](/../api/projects/custom-fields).
* Name of the [Custom Field](/../api/projects/custom-fields) to add, update, or remove.
*

@@ -1092,2 +1104,6 @@ *

}
/**
* Adding or updating a Custom Type on a Business Unit generates the [BusinessUnitCustomTypeSet](ctp:api:type:BusinessUnitCustomTypeSetMessage) Message, removing one generates the [BusinessUnitCustomTypeRemoved](ctp:api:type:BusinessUnitCustomTypeRemovedMessage) Message.
*
*/
export interface BusinessUnitSetCustomTypeAction {

@@ -1094,0 +1110,0 @@ readonly action: 'setCustomType';

@@ -120,3 +120,3 @@ /**

/**
* Indicates if the Discount can be used in connection with a [DiscountCode](ctp:api:type:DiscountCode).
* Indicates if the Discount is used in connection with a [DiscountCode](ctp:api:type:DiscountCode).
*

@@ -320,3 +320,3 @@ *

}
export type CartDiscountTarget = CartDiscountCustomLineItemsTarget | CartDiscountLineItemsTarget | CartDiscountShippingCostTarget | MultiBuyCustomLineItemsTarget | MultiBuyLineItemsTarget;
export type CartDiscountTarget = CartDiscountCustomLineItemsTarget | CartDiscountLineItemsTarget | CartDiscountShippingCostTarget | CartDiscountTotalPriceTarget | MultiBuyCustomLineItemsTarget | MultiBuyLineItemsTarget;
/**

@@ -355,2 +355,9 @@ * Discount is applied to [CustomLineItems](ctp:api:type:CustomLineItem) matching the `predicate`.

}
/**
* Discount is applied to the total price of the [Cart](ctp:api:type:Cart).
*
*/
export interface CartDiscountTotalPriceTarget {
readonly type: 'totalPrice';
}
export interface CartDiscountUpdate {

@@ -390,5 +397,7 @@ /**

* Money values in different currencies.
* An absolute Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.
* An absolute Cart Discount will match a price only if the array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$. If the array has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
*
* If the array is empty, the discount does not apply.
*
*
*/

@@ -418,5 +427,7 @@ readonly money: Money[];

* Money values provided either in [cent precision](ctp:api:type:Money) or [high precision](ctp:api:type:HighPrecisionMoneyDraft) for different currencies.
* A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
* A fixed Cart Discount will match a price only if the array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$. If the array has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
*
* If the array is empty, the discount does not apply.
*
*
*/

@@ -423,0 +434,0 @@ readonly money: TypedMoneyDraft[];

@@ -6,2 +6,4 @@ /**

*/
import { ApprovalFlow } from "./approval-flow.js";
import { ApprovalRule } from "./approval-rule.js";
import { AssociateRole, AssociateRoleKeyReference, AssociateRoleReference, AssociateRoleResourceIdentifier } from "./associate-role.js";

@@ -15,3 +17,3 @@ import { AttributeGroup, AttributeGroupReference, AttributeGroupResourceIdentifier } from "./attribute-group.js";

import { CustomObject, CustomObjectReference } from "./custom-object.js";
import { Customer, CustomerReference, CustomerResourceIdentifier } from "./customer.js";
import { Customer, CustomerEmailTokenReference, CustomerPasswordTokenReference, CustomerReference, CustomerResourceIdentifier } from "./customer.js";
import { CustomerGroup, CustomerGroupReference, CustomerGroupResourceIdentifier } from "./customer-group.js";

@@ -425,3 +427,3 @@ import { DiscountCode, DiscountCodeReference, DiscountCodeResourceIdentifier } from "./discount-code.js";

}
export type _BaseResource = BaseResource | AssociateRole | AttributeGroup | BusinessUnit | Cart | CartDiscount | Category | Channel | CustomObject | Customer | CustomerGroup | DiscountCode | Extension | InventoryEntry | Message | Order | OrderEdit | Payment | Product | ProductDiscount | ProductProjection | ProductSelection | ProductType | Quote | QuoteRequest | Review | ShippingMethod | ShoppingList | StagedQuote | StandalonePrice | State | Store | Subscription | TaxCategory | Type | Zone;
export type _BaseResource = BaseResource | ApprovalFlow | ApprovalRule | AssociateRole | AttributeGroup | BusinessUnit | Cart | CartDiscount | Category | Channel | CustomObject | Customer | CustomerGroup | DiscountCode | Extension | InventoryEntry | Message | Order | OrderEdit | Payment | Product | ProductDiscount | ProductProjection | ProductSelection | ProductType | Quote | QuoteRequest | Review | ShippingMethod | ShoppingList | StagedQuote | StandalonePrice | State | Store | Subscription | TaxCategory | Type | Zone;
/**

@@ -909,3 +911,3 @@ * These objects represent information about which [API Client](/../api/projects/api-clients) created or modified a resource. For more information, see [Client Logging](/client-logging).

*/
export type Reference = AssociateRoleReference | AttributeGroupReference | BusinessUnitReference | CartDiscountReference | CartReference | CategoryReference | ChannelReference | CustomObjectReference | CustomerGroupReference | CustomerReference | DirectDiscountReference | DiscountCodeReference | InventoryEntryReference | OrderEditReference | OrderReference | PaymentReference | ProductDiscountReference | ProductReference | ProductSelectionReference | ProductTypeReference | QuoteReference | QuoteRequestReference | ReviewReference | ShippingMethodReference | ShoppingListReference | StagedQuoteReference | StandalonePriceReference | StateReference | StoreReference | TaxCategoryReference | TypeReference | ZoneReference;
export type Reference = AssociateRoleReference | AttributeGroupReference | BusinessUnitReference | CartDiscountReference | CartReference | CategoryReference | ChannelReference | CustomObjectReference | CustomerEmailTokenReference | CustomerGroupReference | CustomerPasswordTokenReference | CustomerReference | DirectDiscountReference | DiscountCodeReference | InventoryEntryReference | OrderEditReference | OrderReference | PaymentReference | ProductDiscountReference | ProductReference | ProductSelectionReference | ProductTypeReference | QuoteReference | QuoteRequestReference | ReviewReference | ShippingMethodReference | ShoppingListReference | StagedQuoteReference | StandalonePriceReference | StateReference | StoreReference | TaxCategoryReference | TypeReference | ZoneReference;
/**

@@ -915,3 +917,3 @@ * Type of resource the value should reference. Supported resource type identifiers are:

*/
export type ReferenceTypeId = 'associate-role' | 'attribute-group' | 'business-unit' | 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'direct-discount' | 'discount-code' | 'extension' | 'inventory-entry' | 'key-value-document' | 'order' | 'order-edit' | 'payment' | 'product' | 'product-discount' | 'product-price' | 'product-selection' | 'product-type' | 'quote' | 'quote-request' | 'review' | 'shipping-method' | 'shopping-list' | 'staged-quote' | 'standalone-price' | 'state' | 'store' | 'subscription' | 'tax-category' | 'type' | 'zone' | string;
export type ReferenceTypeId = 'approval-flow' | 'approval-rule' | 'associate-role' | 'attribute-group' | 'business-unit' | 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-email-token' | 'customer-group' | 'customer-password-token' | 'direct-discount' | 'discount-code' | 'extension' | 'inventory-entry' | 'key-value-document' | 'order' | 'order-edit' | 'payment' | 'product' | 'product-discount' | 'product-price' | 'product-selection' | 'product-type' | 'quote' | 'quote-request' | 'review' | 'shipping-method' | 'shopping-list' | 'staged-quote' | 'standalone-price' | 'state' | 'store' | 'subscription' | 'tax-category' | 'type' | 'zone' | string;
/**

@@ -918,0 +920,0 @@ * Draft type to create a [Reference](ctp:api:type:Reference) or a [KeyReference](ctp:api:type:KeyReference) to a resource. Provide either the `id` or (wherever supported) the `key` of the resource to reference, but depending on the API endpoint the response returns either a Reference or a KeyReference. For example, the field `parent` of a [CategoryDraft](ctp:api:type:CategoryDraft) takes a ResourceIdentifier for its value while the value of the corresponding field of a [Category](ctp:api:type:Category) is a Reference.

@@ -444,2 +444,15 @@ /**

}
/**
* [Reference](ctp:api:type:Reference) to a [CustomerToken](ctp:api:type:CustomerToken) for email verification.
*
*/
export interface CustomerEmailTokenReference {
readonly typeId: 'customer-email-token';
/**
* Unique identifier of the referenced [CustomerToken](ctp:api:type:CustomerToken).
*
*
*/
readonly id: string;
}
export interface CustomerEmailVerify {

@@ -500,2 +513,15 @@ /**

/**
* [Reference](ctp:api:type:Reference) to a [CustomerToken](ctp:api:type:CustomerToken) for password reset.
*
*/
export interface CustomerPasswordTokenReference {
readonly typeId: 'customer-password-token';
/**
* Unique identifier of the referenced [CustomerToken](ctp:api:type:CustomerToken).
*
*
*/
readonly id: string;
}
/**
* [Reference](ctp:api:type:Reference) to a [Customer](ctp:api:type:Customer).

@@ -629,31 +655,31 @@ *

/**
* Date and time (UTC) the token was initially created.
* The `id` of the Customer.
*
*
*/
readonly createdAt: string;
readonly customerId: string;
/**
* When the token is created, `lastModifiedAt` is set to `createdAt`.
* Value of the token.
*
*
*/
readonly lastModifiedAt?: string;
readonly value: string;
/**
* The `id` of the Customer.
* Date and time (UTC) the token expires.
*
*
*/
readonly customerId: string;
readonly expiresAt: string;
/**
* Date and time (UTC) the token expires.
* Date and time (UTC) the token was initially created.
*
*
*/
readonly expiresAt: string;
readonly createdAt: string;
/**
* Value of the token.
* When the token is created, `lastModifiedAt` is set to `createdAt`.
*
*
*/
readonly value: string;
readonly lastModifiedAt?: string;
}

@@ -926,2 +952,6 @@ export interface CustomerUpdate {

}
/**
* Adding a Custom Field to an Address of a Customer generates the [CustomerAddressCustomFieldAdded](ctp:api:type:CustomerAddressCustomFieldAddedMessage) Message, removing one generates the [CustomerAddressCustomFieldRemoved](ctp:api:type:CustomerAddressCustomFieldRemovedMessage) Message, and updating an existing one generates the [CustomerAddressCustomFieldChanged](ctp:api:type:CustomerAddressCustomFieldChangedMessage) Message.
*
*/
export interface CustomerSetAddressCustomFieldAction {

@@ -950,2 +980,6 @@ readonly action: 'setAddressCustomField';

}
/**
* Adding or updating a Custom Type on an Address of a Customer generates the [CustomerAddressCustomTypeSet](ctp:api:type:CustomerAddressCustomTypeSetMessage) Message, and removing one generates the [CustomerAddressCustomTypeRemoved](ctp:api:type:CustomerAddressCustomTypeRemovedMessage) Message.
*
*/
export interface CustomerSetAddressCustomTypeAction {

@@ -1003,2 +1037,6 @@ readonly action: 'setAddressCustomType';

}
/**
* Adding a Custom Field to a Customer generates the [CustomerCustomFieldAdded](ctp:api:type:CustomerCustomFieldAddedMessage) Message, removing one generates the [CustomerCustomFieldRemoved](ctp:api:type:CustomerCustomFieldRemovedMessage) Message, and updating an existing one generates the [CustomerCustomFieldChanged](ctp:api:type:CustomerCustomFieldChangedMessage) Message.
*
*/
export interface CustomerSetCustomFieldAction {

@@ -1021,2 +1059,6 @@ readonly action: 'setCustomField';

}
/**
* Adding or updating a Custom Type on a Customer generates the [CustomerCustomTypeSet](ctp:api:type:CustomerCustomTypeSetMessage) Message, removing one generates the [CustomerCustomTypeRemoved](ctp:api:type:CustomerCustomTypeRemovedMessage) Message.
*
*/
export interface CustomerSetCustomTypeAction {

@@ -1023,0 +1065,0 @@ readonly action: 'setCustomType';

@@ -308,5 +308,8 @@ /**

/**
* Money values in different currencies. An absolute [ProductDiscount](ctp:api:type:ProductDiscount) will only match a price if this array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15\$.
* Money values in different currencies.
* An absolute Product Discount will match a price only if the array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$. If the array has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
*
* If the array is empty, the discount does not apply.
*
*
*/

@@ -313,0 +316,0 @@ readonly money: Money[];

@@ -166,3 +166,3 @@ /**

* - `variantSelection` field for a Product Selection with `Individual` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
* - `variantExclusion` field for a Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode) ([BETA](/../offering/api-contract#public-beta)).
* - `variantExclusion` field for a Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
*/

@@ -169,0 +169,0 @@ export interface ProductSelectionAssignment {

@@ -7,3 +7,4 @@ /**

export type Expansion = string;
export type Locale = string;
export type QueryPredicate = string;
export type Sort = string;

@@ -65,3 +65,3 @@ /**

/**
* Name of the ShippingMethod.
* Unique name of the ShippingMethod within a [Project](ctp:api:type:Project).
*

@@ -121,3 +121,3 @@ */

/**
* Name of the ShippingMethod.
* Unique name for the ShippingMethod within a [Project](ctp:api:type:Project).
*

@@ -458,3 +458,3 @@ */

/**
* Value to set. Must not be empty.
* Unique value to set within a [Project](ctp:api:type:Project). Must not be empty.
*

@@ -461,0 +461,0 @@ */

@@ -30,3 +30,3 @@ /**

*/
export type ChangeSubscriptionResourceTypeId = 'associate-role' | 'business-unit' | 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-email-token' | 'customer-group' | 'customer-password-token' | 'discount-code' | 'extension' | 'inventory-entry' | 'key-value-document' | 'order' | 'order-edit' | 'payment' | 'product' | 'product-discount' | 'product-price' | 'product-selection' | 'product-type' | 'quote' | 'quote-request' | 'review' | 'shipping-method' | 'shopping-list' | 'staged-quote' | 'standalone-price' | 'state' | 'store' | 'subscription' | 'tax-category' | 'type' | 'zone' | string;
export type ChangeSubscriptionResourceTypeId = 'approval-flow' | 'approval-rule' | 'associate-role' | 'business-unit' | 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-email-token' | 'customer-group' | 'customer-password-token' | 'discount-code' | 'extension' | 'inventory-entry' | 'key-value-document' | 'order' | 'order-edit' | 'payment' | 'product' | 'product-discount' | 'product-price' | 'product-selection' | 'product-type' | 'quote' | 'quote-request' | 'review' | 'shipping-method' | 'shopping-list' | 'staged-quote' | 'standalone-price' | 'state' | 'store' | 'subscription' | 'tax-category' | 'type' | 'zone' | string;
/**

@@ -334,3 +334,3 @@ * The [CloudEventsFormat](ctp:api:type:CloudEventsFormat) represents event data in a way that conforms to a common specification. The message payload can be found inside the `data` field.

*/
export type MessageSubscriptionResourceTypeId = 'associate-role' | 'business-unit' | 'category' | 'customer' | 'inventory-entry' | 'order' | 'payment' | 'product' | 'product-selection' | 'quote' | 'quote-request' | 'review' | 'staged-quote' | 'standalone-price' | 'store' | string;
export type MessageSubscriptionResourceTypeId = 'approval-flow' | 'approval-rule' | 'associate-role' | 'business-unit' | 'category' | 'customer' | 'customer-email-token' | 'customer-group' | 'customer-password-token' | 'inventory-entry' | 'order' | 'payment' | 'product' | 'product-selection' | 'quote' | 'quote-request' | 'review' | 'staged-quote' | 'standalone-price' | 'store' | string;
export interface PayloadNotIncluded {

@@ -337,0 +337,0 @@ /**

@@ -7,3 +7,3 @@ {

"name": "@commercetools/platform-sdk",
"version": "6.0.0",
"version": "7.0.0",
"engines": {

@@ -30,3 +30,3 @@ "node": ">=14"

"dependencies": {
"@commercetools/sdk-client-v2": "^2.1.6",
"@commercetools/sdk-client-v2": "^2.2.2",
"@commercetools/sdk-middleware-auth": "^7.0.0",

@@ -33,0 +33,0 @@ "@commercetools/sdk-middleware-http": "^7.0.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc