Skip to content

Commit

Permalink
TASK: Updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Jun 22, 2022
1 parent 920e88d commit afe4173
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions lib/commercetools-api/docs/RequestBuilder.md
Original file line number Diff line number Diff line change
Expand Up @@ -1216,10 +1216,10 @@ $request = $builder
```
## `withProjectKey("projectKey")->inStoreKeyWithStoreKeyValue("storeKey")->carts()->post(null)`

Creates a cart in the store specified by {storeKey}.
When using this endpoint the cart's store field is always set to the store specified in the path parameter.
Creating a cart can fail with an InvalidOperation if the referenced shipping method
in the CartDraft has a predicate which does not match the cart.
Creates a [Cart](ctp:api:type:Cart) in the Store specified by `storeKey`.
When using this endpoint the Cart's `store` field is always set to the store specified in the path parameter.
Creating a Cart can fail with an [InvalidOperationError](ctp:api:type:InvalidOperationError) if the referenced [ShippingMethod](ctp:api:type:ShippingMethod)
in the [CartDraft](ctp:api:type:CartDraft) has a predicate which does not match the Cart.


### Example
Expand Down Expand Up @@ -1256,9 +1256,9 @@ $request = $builder
```
## `withProjectKey("projectKey")->inStoreKeyWithStoreKeyValue("storeKey")->carts()->withId("ID")->post(null)`

Updates a cart in the store specified by {storeKey}.
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 error.
Updates a [Cart](ctp:api:type:Cart) in the Store specified by `storeKey`.
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 [ResourceNotFoundError](ctp:api:type:ResourceNotFoundError).


### Example
Expand Down Expand Up @@ -1335,9 +1335,9 @@ $request = $builder
```
## `withProjectKey("projectKey")->inStoreKeyWithStoreKeyValue("storeKey")->carts()->withKey("key")->post(null)`

Updates a cart in the store specified by {storeKey}.
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 error.
Updates a [Cart](ctp:api:type:Cart) in the Store specified by `storeKey`.
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:ResourceNotFound) error.


### Example
Expand Down Expand Up @@ -2217,9 +2217,9 @@ $request = $builder
```
## `withProjectKey("projectKey")->inStoreKeyWithStoreKeyValue("storeKey")->productProjections()->get()`

You can use the product projections query endpoint to get the current or staged representations of Products.
When used with an API client that has the view_published_products:{projectKey} scope,
this endpoint only returns published (current) product projections.
Use this endpoint to get the current or staged projection of [Products](ctp:api:type:Product) in the Store specified by `storeKey`.
When used with an [API Client](ctp:api:type:ApiClient) that has the `view_published_products:{projectKey}` scope,
this endpoint only returns published (current) Product Projections.


### Example
Expand All @@ -2235,7 +2235,7 @@ $request = $builder
```
## `withProjectKey("projectKey")->inStoreKeyWithStoreKeyValue("storeKey")->productProjections()->withId("ID")->get()`

Gets the current or staged representation of a product by its ID from a specific Store.
Gets the current or staged representation of a [Product](ctp:api:type:Product) by its ID from the specified Store.

### Example
```php
Expand All @@ -2251,7 +2251,7 @@ $request = $builder
```
## `withProjectKey("projectKey")->inStoreKeyWithStoreKeyValue("storeKey")->productProjections()->withKey("key")->get()`

Gets the current or staged representation of a product by its ID from a specific Store.
Gets the current or staged representation of a [Product](ctp:api:type:Product) by its key from the specified Store.

### Example
```php
Expand Down

0 comments on commit afe4173

Please sign in to comment.