Class ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete,Customer>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete
All Implemented Interfaces:
ConflictingTrait<ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete>, DataerasureTrait<ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete>, Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete>, ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete>, VersionedTrait<ByProjectKeyInStoreKeyByStoreKeyCustomersByIDDelete>, ClientRequestCommand<Customer>, CreateHttpRequestCommand, HttpRequestCommand<Customer>, RequestCommand<Customer>

Deleting a Customer produces the CustomerDeleted Message.

If the Customer exists in the Project but the stores field references a different Store, this method returns a ResourceNotFound error.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.customer.Customer>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .customers()
            .withId("{ID}")
            .delete()
            .withVersion(version)
            .execute()