@@ -50,7 +50,7 @@ |
||
50 | 50 | { |
51 | 51 | $promise = $next($request); |
52 | 52 | |
53 | - return $promise->then(function (ResponseInterface $response) use ($request) { |
|
53 | + return $promise->then(function(ResponseInterface $response) use ($request) { |
|
54 | 54 | return $this->transformResponseToException($request, $response); |
55 | 55 | }); |
56 | 56 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | } |
20 | 20 | |
21 | 21 | return [ |
22 | - ['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '""')]], |
|
22 | + ['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'""')]], |
|
23 | 23 | $bodyBuilder->build() |
24 | 24 | ]; |
25 | 25 | } |
@@ -7,13 +7,13 @@ |
||
7 | 7 | protected $productId; |
8 | 8 | protected $bundledProductId; |
9 | 9 | /** |
10 | - * Creates a bundled product pricelist price. |
|
10 | + * Creates a bundled product pricelist price. |
|
11 | 11 | Retrieves the created `ProductBundleProductPricelistPrice` object |
12 | - * |
|
13 | - * @param int $productId The products id |
|
14 | - * @param int $bundledProductId The bundled products id |
|
15 | - * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
|
16 | - */ |
|
12 | + * |
|
13 | + * @param int $productId The products id |
|
14 | + * @param int $bundledProductId The bundled products id |
|
15 | + * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
|
16 | + */ |
|
17 | 17 | public function __construct(int $productId, int $bundledProductId, \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody) |
18 | 18 | { |
19 | 19 | $this->productId = $productId; |
@@ -6,11 +6,11 @@ |
||
6 | 6 | { |
7 | 7 | protected $orderStatusId; |
8 | 8 | /** |
9 | - * Deletes an order status. Retrieves the updated `OrderItem` object. |
|
9 | + * Deletes an order status. Retrieves the updated `OrderItem` object. |
|
10 | 10 | NB! You are not allowed to delete order statuses that is in use by an order, or standard order statuses (all statuses with an idCode set) |
11 | - * |
|
12 | - * @param int $orderStatusId The order status id |
|
13 | - */ |
|
11 | + * |
|
12 | + * @param int $orderStatusId The order status id |
|
13 | + */ |
|
14 | 14 | public function __construct(int $orderStatusId) |
15 | 15 | { |
16 | 16 | $this->orderStatusId = $orderStatusId; |
@@ -7,13 +7,13 @@ |
||
7 | 7 | protected $attributeId; |
8 | 8 | protected $attributeValueId; |
9 | 9 | /** |
10 | - * Updates a product variant attribute value. |
|
10 | + * Updates a product variant attribute value. |
|
11 | 11 | Retrieves the updated`ProductVariantAttributeValue` object. |
12 | - * |
|
13 | - * @param int $attributeId The attribute id |
|
14 | - * @param int $attributeValueId The attribe value id |
|
15 | - * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
|
16 | - */ |
|
12 | + * |
|
13 | + * @param int $attributeId The attribute id |
|
14 | + * @param int $attributeValueId The attribe value id |
|
15 | + * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
|
16 | + */ |
|
17 | 17 | public function __construct(int $attributeId, int $attributeValueId, \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody) |
18 | 18 | { |
19 | 19 | $this->attributeId = $attributeId; |
@@ -7,13 +7,13 @@ |
||
7 | 7 | protected $productId; |
8 | 8 | protected $variantId; |
9 | 9 | /** |
10 | - * Creates a product variant pricelist price. |
|
10 | + * Creates a product variant pricelist price. |
|
11 | 11 | Retrieves the created `ProductVariantPricelistPrice` object |
12 | - * |
|
13 | - * @param int $productId The products id |
|
14 | - * @param int $variantId The products variants id |
|
15 | - * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
16 | - */ |
|
12 | + * |
|
13 | + * @param int $productId The products id |
|
14 | + * @param int $variantId The products variants id |
|
15 | + * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
16 | + */ |
|
17 | 17 | public function __construct(int $productId, int $variantId, \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody) |
18 | 18 | { |
19 | 19 | $this->productId = $productId; |
@@ -8,14 +8,14 @@ |
||
8 | 8 | protected $variantId; |
9 | 9 | protected $pricelistId; |
10 | 10 | /** |
11 | - * Updates a product variant pricelist price. |
|
11 | + * Updates a product variant pricelist price. |
|
12 | 12 | Retrieves the updated `ProductVariantPricelistPrice` object |
13 | - * |
|
14 | - * @param int $productId The product id |
|
15 | - * @param int $variantId The products variants id |
|
16 | - * @param int $pricelistId The pricelist id |
|
17 | - * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
18 | - */ |
|
13 | + * |
|
14 | + * @param int $productId The product id |
|
15 | + * @param int $variantId The products variants id |
|
16 | + * @param int $pricelistId The pricelist id |
|
17 | + * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
18 | + */ |
|
19 | 19 | public function __construct(int $productId, int $variantId, int $pricelistId, \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody) |
20 | 20 | { |
21 | 21 | $this->productId = $productId; |
@@ -9,15 +9,15 @@ |
||
9 | 9 | protected $pricelistId; |
10 | 10 | protected $quantity; |
11 | 11 | /** |
12 | - * Updates a product variant pricelist volume price. |
|
12 | + * Updates a product variant pricelist volume price. |
|
13 | 13 | Retrieves the updated `ProductVariantPricelistVolumePrice` object |
14 | - * |
|
15 | - * @param int $productId The product id |
|
16 | - * @param int $variantId The products variants id |
|
17 | - * @param int $pricelistId The pricelist id |
|
18 | - * @param int $quantity The volume quantity |
|
19 | - * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
|
20 | - */ |
|
14 | + * |
|
15 | + * @param int $productId The product id |
|
16 | + * @param int $variantId The products variants id |
|
17 | + * @param int $pricelistId The pricelist id |
|
18 | + * @param int $quantity The volume quantity |
|
19 | + * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
|
20 | + */ |
|
21 | 21 | public function __construct(int $productId, int $variantId, int $pricelistId, int $quantity, \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody) |
22 | 22 | { |
23 | 23 | $this->productId = $productId; |
@@ -6,12 +6,12 @@ |
||
6 | 6 | { |
7 | 7 | protected $orderStatusId; |
8 | 8 | /** |
9 | - * Updates an order status. Retrieves the updated `Orderstatus` object. |
|
9 | + * Updates an order status. Retrieves the updated `Orderstatus` object. |
|
10 | 10 | NB! You are not allowed to update standard order statuses (all statuses with an idCode set) |
11 | - * |
|
12 | - * @param int $orderStatusId The order status id |
|
13 | - * @param \Starweb\Api\Generated\Model\OrderStatusModel $requestBody |
|
14 | - */ |
|
11 | + * |
|
12 | + * @param int $orderStatusId The order status id |
|
13 | + * @param \Starweb\Api\Generated\Model\OrderStatusModel $requestBody |
|
14 | + */ |
|
15 | 15 | public function __construct(int $orderStatusId, \Starweb\Api\Generated\Model\OrderStatusModel $requestBody) |
16 | 16 | { |
17 | 17 | $this->orderStatusId = $orderStatusId; |