@@ -51,7 +51,7 @@ |
||
51 | 51 | { |
52 | 52 | $promise = $next($request); |
53 | 53 | |
54 | - return $promise->then(function (ResponseInterface $response) use ($request, $first) { |
|
54 | + return $promise->then(function(ResponseInterface $response) use ($request, $first) { |
|
55 | 55 | return $this->transformResponseToException($request, $response, $first); |
56 | 56 | }); |
57 | 57 | } |
@@ -656,16 +656,16 @@ discard block |
||
656 | 656 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetOrderExternalServices($orderId), $fetch); |
657 | 657 | } |
658 | 658 | /** |
659 | - * Create an order external service. Retrieves the created `OrderExternalService` |
|
659 | + * Create an order external service. Retrieves the created `OrderExternalService` |
|
660 | 660 | object |
661 | - * |
|
662 | - * @param int $orderId The orders id |
|
663 | - * @param \Starweb\Api\Generated\Model\OrderExternalServiceModel $requestBody |
|
664 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
665 | - * @throws \Starweb\Api\Generated\Exception\CreateOrderExternalServiceBadRequestException |
|
666 | - * |
|
667 | - * @return null|\Starweb\Api\Generated\Model\OrderExternalServicesModelItem|\Psr\Http\Message\ResponseInterface |
|
668 | - */ |
|
661 | + * |
|
662 | + * @param int $orderId The orders id |
|
663 | + * @param \Starweb\Api\Generated\Model\OrderExternalServiceModel $requestBody |
|
664 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
665 | + * @throws \Starweb\Api\Generated\Exception\CreateOrderExternalServiceBadRequestException |
|
666 | + * |
|
667 | + * @return null|\Starweb\Api\Generated\Model\OrderExternalServicesModelItem|\Psr\Http\Message\ResponseInterface |
|
668 | + */ |
|
669 | 669 | public function createOrderExternalService(int $orderId, \Starweb\Api\Generated\Model\OrderExternalServiceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
670 | 670 | { |
671 | 671 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateOrderExternalService($orderId, $requestBody), $fetch); |
@@ -699,35 +699,35 @@ discard block |
||
699 | 699 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetOrderExternalService($orderId, $serviceName), $fetch); |
700 | 700 | } |
701 | 701 | /** |
702 | - * Updates an order external service. |
|
702 | + * Updates an order external service. |
|
703 | 703 | Retrieves the updated `OrderExternalService` object |
704 | - * |
|
705 | - * @param int $orderId The orders id |
|
706 | - * @param string $serviceName The service name |
|
707 | - * @param \Starweb\Api\Generated\Model\OrderExternalServiceModel $requestBody |
|
708 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
709 | - * @throws \Starweb\Api\Generated\Exception\PatchOrderExternalServiceBadRequestException |
|
710 | - * @throws \Starweb\Api\Generated\Exception\PatchOrderExternalServiceNotFoundException |
|
711 | - * |
|
712 | - * @return null|\Starweb\Api\Generated\Model\OrderExternalServicesModelItem|\Psr\Http\Message\ResponseInterface |
|
713 | - */ |
|
704 | + * |
|
705 | + * @param int $orderId The orders id |
|
706 | + * @param string $serviceName The service name |
|
707 | + * @param \Starweb\Api\Generated\Model\OrderExternalServiceModel $requestBody |
|
708 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
709 | + * @throws \Starweb\Api\Generated\Exception\PatchOrderExternalServiceBadRequestException |
|
710 | + * @throws \Starweb\Api\Generated\Exception\PatchOrderExternalServiceNotFoundException |
|
711 | + * |
|
712 | + * @return null|\Starweb\Api\Generated\Model\OrderExternalServicesModelItem|\Psr\Http\Message\ResponseInterface |
|
713 | + */ |
|
714 | 714 | public function patchOrderExternalService(int $orderId, string $serviceName, \Starweb\Api\Generated\Model\OrderExternalServiceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
715 | 715 | { |
716 | 716 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchOrderExternalService($orderId, $serviceName, $requestBody), $fetch); |
717 | 717 | } |
718 | 718 | /** |
719 | - * Updates an order external service. |
|
719 | + * Updates an order external service. |
|
720 | 720 | Retrieves the updated `OrderExternalService` object |
721 | - * |
|
722 | - * @param int $orderId The orders id |
|
723 | - * @param string $serviceName The service name |
|
724 | - * @param \Starweb\Api\Generated\Model\OrderExternalServiceModel $requestBody |
|
725 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
726 | - * @throws \Starweb\Api\Generated\Exception\PutOrderExternalServiceBadRequestException |
|
727 | - * @throws \Starweb\Api\Generated\Exception\PutOrderExternalServiceNotFoundException |
|
728 | - * |
|
729 | - * @return null|\Starweb\Api\Generated\Model\OrderExternalServicesModelItem|\Psr\Http\Message\ResponseInterface |
|
730 | - */ |
|
721 | + * |
|
722 | + * @param int $orderId The orders id |
|
723 | + * @param string $serviceName The service name |
|
724 | + * @param \Starweb\Api\Generated\Model\OrderExternalServiceModel $requestBody |
|
725 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
726 | + * @throws \Starweb\Api\Generated\Exception\PutOrderExternalServiceBadRequestException |
|
727 | + * @throws \Starweb\Api\Generated\Exception\PutOrderExternalServiceNotFoundException |
|
728 | + * |
|
729 | + * @return null|\Starweb\Api\Generated\Model\OrderExternalServicesModelItem|\Psr\Http\Message\ResponseInterface |
|
730 | + */ |
|
731 | 731 | public function putOrderExternalService(int $orderId, string $serviceName, \Starweb\Api\Generated\Model\OrderExternalServiceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
732 | 732 | { |
733 | 733 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutOrderExternalService($orderId, $serviceName, $requestBody), $fetch); |
@@ -844,16 +844,16 @@ discard block |
||
844 | 844 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateOrderStatus($requestBody), $fetch); |
845 | 845 | } |
846 | 846 | /** |
847 | - * Deletes an order status. Retrieves the updated `OrderItem` object. |
|
847 | + * Deletes an order status. Retrieves the updated `OrderItem` object. |
|
848 | 848 | 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) |
849 | - * |
|
850 | - * @param int $orderStatusId The order status id |
|
851 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
852 | - * @throws \Starweb\Api\Generated\Exception\DeleteOrderStatusForbiddenException |
|
853 | - * @throws \Starweb\Api\Generated\Exception\DeleteOrderStatusNotFoundException |
|
854 | - * |
|
855 | - * @return null|\Psr\Http\Message\ResponseInterface |
|
856 | - */ |
|
849 | + * |
|
850 | + * @param int $orderStatusId The order status id |
|
851 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
852 | + * @throws \Starweb\Api\Generated\Exception\DeleteOrderStatusForbiddenException |
|
853 | + * @throws \Starweb\Api\Generated\Exception\DeleteOrderStatusNotFoundException |
|
854 | + * |
|
855 | + * @return null|\Psr\Http\Message\ResponseInterface |
|
856 | + */ |
|
857 | 857 | public function deleteOrderStatus(int $orderStatusId, string $fetch = self::FETCH_OBJECT) |
858 | 858 | { |
859 | 859 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\DeleteOrderStatus($orderStatusId), $fetch); |
@@ -872,35 +872,35 @@ discard block |
||
872 | 872 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetOrderStatus($orderStatusId), $fetch); |
873 | 873 | } |
874 | 874 | /** |
875 | - * Updates an order status. Retrieves the updated `Orderstatus` object. |
|
875 | + * Updates an order status. Retrieves the updated `Orderstatus` object. |
|
876 | 876 | NB! You are not allowed to update standard order statuses (all statuses with an idCode set) |
877 | - * |
|
878 | - * @param int $orderStatusId The order status id |
|
879 | - * @param \Starweb\Api\Generated\Model\OrderStatusModel $requestBody |
|
880 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
881 | - * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusBadRequestException |
|
882 | - * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusForbiddenException |
|
883 | - * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusNotFoundException |
|
884 | - * |
|
885 | - * @return null|\Starweb\Api\Generated\Model\OrderStatusModelItem|\Psr\Http\Message\ResponseInterface |
|
886 | - */ |
|
877 | + * |
|
878 | + * @param int $orderStatusId The order status id |
|
879 | + * @param \Starweb\Api\Generated\Model\OrderStatusModel $requestBody |
|
880 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
881 | + * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusBadRequestException |
|
882 | + * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusForbiddenException |
|
883 | + * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusNotFoundException |
|
884 | + * |
|
885 | + * @return null|\Starweb\Api\Generated\Model\OrderStatusModelItem|\Psr\Http\Message\ResponseInterface |
|
886 | + */ |
|
887 | 887 | public function patchOrderStatus(int $orderStatusId, \Starweb\Api\Generated\Model\OrderStatusModel $requestBody, string $fetch = self::FETCH_OBJECT) |
888 | 888 | { |
889 | 889 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchOrderStatus($orderStatusId, $requestBody), $fetch); |
890 | 890 | } |
891 | 891 | /** |
892 | - * Updates an order status. Retrieves the updated `Orderstatus` object. |
|
892 | + * Updates an order status. Retrieves the updated `Orderstatus` object. |
|
893 | 893 | NB! You are not allowed to update standard order statuses (all statuses with an idCode set) |
894 | - * |
|
895 | - * @param int $orderStatusId The order status id |
|
896 | - * @param \Starweb\Api\Generated\Model\OrderStatusModel $requestBody |
|
897 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
898 | - * @throws \Starweb\Api\Generated\Exception\PutOrderStatusBadRequestException |
|
899 | - * @throws \Starweb\Api\Generated\Exception\PutOrderStatusForbiddenException |
|
900 | - * @throws \Starweb\Api\Generated\Exception\PutOrderStatusNotFoundException |
|
901 | - * |
|
902 | - * @return null|\Starweb\Api\Generated\Model\OrderStatusModelItem|\Psr\Http\Message\ResponseInterface |
|
903 | - */ |
|
894 | + * |
|
895 | + * @param int $orderStatusId The order status id |
|
896 | + * @param \Starweb\Api\Generated\Model\OrderStatusModel $requestBody |
|
897 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
898 | + * @throws \Starweb\Api\Generated\Exception\PutOrderStatusBadRequestException |
|
899 | + * @throws \Starweb\Api\Generated\Exception\PutOrderStatusForbiddenException |
|
900 | + * @throws \Starweb\Api\Generated\Exception\PutOrderStatusNotFoundException |
|
901 | + * |
|
902 | + * @return null|\Starweb\Api\Generated\Model\OrderStatusModelItem|\Psr\Http\Message\ResponseInterface |
|
903 | + */ |
|
904 | 904 | public function putOrderStatus(int $orderStatusId, \Starweb\Api\Generated\Model\OrderStatusModel $requestBody, string $fetch = self::FETCH_OBJECT) |
905 | 905 | { |
906 | 906 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutOrderStatus($orderStatusId, $requestBody), $fetch); |
@@ -1040,15 +1040,15 @@ discard block |
||
1040 | 1040 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductsVariantsAttributes(), $fetch); |
1041 | 1041 | } |
1042 | 1042 | /** |
1043 | - * Creates a product variant attribute. |
|
1043 | + * Creates a product variant attribute. |
|
1044 | 1044 | Retrieves the created `ProductVariantAttribute` object. |
1045 | - * |
|
1046 | - * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
|
1047 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1048 | - * @throws \Starweb\Api\Generated\Exception\CreateAttributeBadRequestException |
|
1049 | - * |
|
1050 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
|
1051 | - */ |
|
1045 | + * |
|
1046 | + * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
|
1047 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1048 | + * @throws \Starweb\Api\Generated\Exception\CreateAttributeBadRequestException |
|
1049 | + * |
|
1050 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
|
1051 | + */ |
|
1052 | 1052 | public function createAttribute(\Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
1053 | 1053 | { |
1054 | 1054 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateAttribute($requestBody), $fetch); |
@@ -1080,31 +1080,31 @@ discard block |
||
1080 | 1080 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductsVariantsAttribute($attributeId), $fetch); |
1081 | 1081 | } |
1082 | 1082 | /** |
1083 | - * Updates a product variant attribute. |
|
1083 | + * Updates a product variant attribute. |
|
1084 | 1084 | Retrieves the updated `ProductVariantAttribute` object. |
1085 | - * |
|
1086 | - * @param int $attributeId The attribute value id |
|
1087 | - * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
|
1088 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1089 | - * @throws \Starweb\Api\Generated\Exception\PatchAttributeBadRequestException |
|
1090 | - * |
|
1091 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
|
1092 | - */ |
|
1085 | + * |
|
1086 | + * @param int $attributeId The attribute value id |
|
1087 | + * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
|
1088 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1089 | + * @throws \Starweb\Api\Generated\Exception\PatchAttributeBadRequestException |
|
1090 | + * |
|
1091 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
|
1092 | + */ |
|
1093 | 1093 | public function patchAttribute(int $attributeId, \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
1094 | 1094 | { |
1095 | 1095 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchAttribute($attributeId, $requestBody), $fetch); |
1096 | 1096 | } |
1097 | 1097 | /** |
1098 | - * Updates a product variant attribute. |
|
1098 | + * Updates a product variant attribute. |
|
1099 | 1099 | Retrieves the updated `ProductVariantAttribute` object. |
1100 | - * |
|
1101 | - * @param int $attributeId The attribute value id |
|
1102 | - * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
|
1103 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1104 | - * @throws \Starweb\Api\Generated\Exception\PutAttributeBadRequestException |
|
1105 | - * |
|
1106 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
|
1107 | - */ |
|
1100 | + * |
|
1101 | + * @param int $attributeId The attribute value id |
|
1102 | + * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
|
1103 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1104 | + * @throws \Starweb\Api\Generated\Exception\PutAttributeBadRequestException |
|
1105 | + * |
|
1106 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
|
1107 | + */ |
|
1108 | 1108 | public function putAttribute(int $attributeId, \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
1109 | 1109 | { |
1110 | 1110 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutAttribute($attributeId, $requestBody), $fetch); |
@@ -1126,16 +1126,16 @@ discard block |
||
1126 | 1126 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductsVariantsAttributeValues($attributeId, $queryParameters), $fetch); |
1127 | 1127 | } |
1128 | 1128 | /** |
1129 | - * Creates a product variant attribute value. |
|
1129 | + * Creates a product variant attribute value. |
|
1130 | 1130 | Retrieves the created `ProductVariantAttributeValue` object. |
1131 | - * |
|
1132 | - * @param int $attributeId The attribute id |
|
1133 | - * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
|
1134 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1135 | - * @throws \Starweb\Api\Generated\Exception\CreateProductsVariantsAttributeValuesBadRequestException |
|
1136 | - * |
|
1137 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelItem|\Psr\Http\Message\ResponseInterface |
|
1138 | - */ |
|
1131 | + * |
|
1132 | + * @param int $attributeId The attribute id |
|
1133 | + * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
|
1134 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1135 | + * @throws \Starweb\Api\Generated\Exception\CreateProductsVariantsAttributeValuesBadRequestException |
|
1136 | + * |
|
1137 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelItem|\Psr\Http\Message\ResponseInterface |
|
1138 | + */ |
|
1139 | 1139 | public function createProductsVariantsAttributeValues(int $attributeId, \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
1140 | 1140 | { |
1141 | 1141 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateProductsVariantsAttributeValues($attributeId, $requestBody), $fetch); |
@@ -1172,33 +1172,33 @@ discard block |
||
1172 | 1172 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductsVariantsAttributeValue($attributeId, $attributeValueId, $queryParameters), $fetch); |
1173 | 1173 | } |
1174 | 1174 | /** |
1175 | - * Updates a product variant attribute value. |
|
1175 | + * Updates a product variant attribute value. |
|
1176 | 1176 | Retrieves the updated`ProductVariantAttributeValue` object. |
1177 | - * |
|
1178 | - * @param int $attributeId The attribute id |
|
1179 | - * @param int $attributeValueId The attribe value id |
|
1180 | - * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
|
1181 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1182 | - * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsAttributeValuesBadRequestException |
|
1183 | - * |
|
1184 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelItem|\Psr\Http\Message\ResponseInterface |
|
1185 | - */ |
|
1177 | + * |
|
1178 | + * @param int $attributeId The attribute id |
|
1179 | + * @param int $attributeValueId The attribe value id |
|
1180 | + * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
|
1181 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1182 | + * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsAttributeValuesBadRequestException |
|
1183 | + * |
|
1184 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelItem|\Psr\Http\Message\ResponseInterface |
|
1185 | + */ |
|
1186 | 1186 | public function patchProductsVariantsAttributeValues(int $attributeId, int $attributeValueId, \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
1187 | 1187 | { |
1188 | 1188 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchProductsVariantsAttributeValues($attributeId, $attributeValueId, $requestBody), $fetch); |
1189 | 1189 | } |
1190 | 1190 | /** |
1191 | - * Updates a product variant attribute value. |
|
1191 | + * Updates a product variant attribute value. |
|
1192 | 1192 | Retrieves the updated`ProductVariantAttributeValue` object. |
1193 | - * |
|
1194 | - * @param int $attributeId The attribute id |
|
1195 | - * @param int $attributeValueId The attribe value id |
|
1196 | - * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
|
1197 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1198 | - * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsAttributeValuesBadRequestException |
|
1199 | - * |
|
1200 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelItem|\Psr\Http\Message\ResponseInterface |
|
1201 | - */ |
|
1193 | + * |
|
1194 | + * @param int $attributeId The attribute id |
|
1195 | + * @param int $attributeValueId The attribe value id |
|
1196 | + * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
|
1197 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1198 | + * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsAttributeValuesBadRequestException |
|
1199 | + * |
|
1200 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelItem|\Psr\Http\Message\ResponseInterface |
|
1201 | + */ |
|
1202 | 1202 | public function putProductsVariantsAttributeValues(int $attributeId, int $attributeValueId, \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
1203 | 1203 | { |
1204 | 1204 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductsVariantsAttributeValues($attributeId, $attributeValueId, $requestBody), $fetch); |
@@ -2157,16 +2157,16 @@ discard block |
||
2157 | 2157 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductsMediaFileLinks($productId), $fetch); |
2158 | 2158 | } |
2159 | 2159 | /** |
2160 | - * Creates a product media file link. |
|
2160 | + * Creates a product media file link. |
|
2161 | 2161 | Retrieves the create `ProductMediaFileLink` object. |
2162 | - * |
|
2163 | - * @param int $productId The products id |
|
2164 | - * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
|
2165 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2166 | - * @throws \Starweb\Api\Generated\Exception\CreateProductsMediaFileLinkBadRequestException |
|
2167 | - * |
|
2168 | - * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
|
2169 | - */ |
|
2162 | + * |
|
2163 | + * @param int $productId The products id |
|
2164 | + * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
|
2165 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2166 | + * @throws \Starweb\Api\Generated\Exception\CreateProductsMediaFileLinkBadRequestException |
|
2167 | + * |
|
2168 | + * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
|
2169 | + */ |
|
2170 | 2170 | public function createProductsMediaFileLink(int $productId, \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2171 | 2171 | { |
2172 | 2172 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateProductsMediaFileLink($productId, $requestBody), $fetch); |
@@ -2200,35 +2200,35 @@ discard block |
||
2200 | 2200 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductsMediaFileLink($productId, $mediaFileId), $fetch); |
2201 | 2201 | } |
2202 | 2202 | /** |
2203 | - * Updates a product media file link. |
|
2203 | + * Updates a product media file link. |
|
2204 | 2204 | Retrieves the update `ProductMediaFileLink` object. |
2205 | - * |
|
2206 | - * @param int $productId The product id |
|
2207 | - * @param int $mediaFileId The media file id of the link you want to fetch/change |
|
2208 | - * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
|
2209 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2210 | - * @throws \Starweb\Api\Generated\Exception\PatchProductsMediaFileLinkBadRequestException |
|
2211 | - * @throws \Starweb\Api\Generated\Exception\PatchProductsMediaFileLinkNotFoundException |
|
2212 | - * |
|
2213 | - * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
|
2214 | - */ |
|
2205 | + * |
|
2206 | + * @param int $productId The product id |
|
2207 | + * @param int $mediaFileId The media file id of the link you want to fetch/change |
|
2208 | + * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
|
2209 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2210 | + * @throws \Starweb\Api\Generated\Exception\PatchProductsMediaFileLinkBadRequestException |
|
2211 | + * @throws \Starweb\Api\Generated\Exception\PatchProductsMediaFileLinkNotFoundException |
|
2212 | + * |
|
2213 | + * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
|
2214 | + */ |
|
2215 | 2215 | public function patchProductsMediaFileLink(int $productId, int $mediaFileId, \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2216 | 2216 | { |
2217 | 2217 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchProductsMediaFileLink($productId, $mediaFileId, $requestBody), $fetch); |
2218 | 2218 | } |
2219 | 2219 | /** |
2220 | - * Updates a product media file link. |
|
2220 | + * Updates a product media file link. |
|
2221 | 2221 | Retrieves the update `ProductMediaFileLink` object. |
2222 | - * |
|
2223 | - * @param int $productId The product id |
|
2224 | - * @param int $mediaFileId The media file id of the link you want to fetch/change |
|
2225 | - * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
|
2226 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2227 | - * @throws \Starweb\Api\Generated\Exception\PutProductsMediaFileLinkBadRequestException |
|
2228 | - * @throws \Starweb\Api\Generated\Exception\PutProductsMediaFileLinkNotFoundException |
|
2229 | - * |
|
2230 | - * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
|
2231 | - */ |
|
2222 | + * |
|
2223 | + * @param int $productId The product id |
|
2224 | + * @param int $mediaFileId The media file id of the link you want to fetch/change |
|
2225 | + * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
|
2226 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2227 | + * @throws \Starweb\Api\Generated\Exception\PutProductsMediaFileLinkBadRequestException |
|
2228 | + * @throws \Starweb\Api\Generated\Exception\PutProductsMediaFileLinkNotFoundException |
|
2229 | + * |
|
2230 | + * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
|
2231 | + */ |
|
2232 | 2232 | public function putProductsMediaFileLink(int $productId, int $mediaFileId, \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2233 | 2233 | { |
2234 | 2234 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductsMediaFileLink($productId, $mediaFileId, $requestBody), $fetch); |
@@ -2539,20 +2539,20 @@ discard block |
||
2539 | 2539 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductsVariantsPricelistPrices($productId, $variantId, $queryParameters), $fetch); |
2540 | 2540 | } |
2541 | 2541 | /** |
2542 | - * Creates a product variant pricelist price. |
|
2542 | + * Creates a product variant pricelist price. |
|
2543 | 2543 | Retrieves the created `ProductVariantPricelistPrice` object |
2544 | - * |
|
2545 | - * @param int $productId The products id |
|
2546 | - * @param int $variantId The products variants id |
|
2547 | - * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
2548 | - * @param array $queryParameters { |
|
2549 | - * @var string $include If you want to include child data in the result. Example: ?include=volumePrices (to include variants volume prices). Available includes: volumePrices |
|
2550 | - * } |
|
2551 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2552 | - * @throws \Starweb\Api\Generated\Exception\CreateProductVariantPricelistPriceBadRequestException |
|
2553 | - * |
|
2554 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2555 | - */ |
|
2544 | + * |
|
2545 | + * @param int $productId The products id |
|
2546 | + * @param int $variantId The products variants id |
|
2547 | + * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
2548 | + * @param array $queryParameters { |
|
2549 | + * @var string $include If you want to include child data in the result. Example: ?include=volumePrices (to include variants volume prices). Available includes: volumePrices |
|
2550 | + * } |
|
2551 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2552 | + * @throws \Starweb\Api\Generated\Exception\CreateProductVariantPricelistPriceBadRequestException |
|
2553 | + * |
|
2554 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2555 | + */ |
|
2556 | 2556 | public function createProductVariantPricelistPrice(int $productId, int $variantId, \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody, array $queryParameters = array(), string $fetch = self::FETCH_OBJECT) |
2557 | 2557 | { |
2558 | 2558 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateProductVariantPricelistPrice($productId, $variantId, $requestBody, $queryParameters), $fetch); |
@@ -2594,43 +2594,43 @@ discard block |
||
2594 | 2594 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductsVariantsPricelistPrice($productId, $variantId, $pricelistId, $queryParameters), $fetch); |
2595 | 2595 | } |
2596 | 2596 | /** |
2597 | - * Updates a product variant pricelist price. |
|
2597 | + * Updates a product variant pricelist price. |
|
2598 | 2598 | Retrieves the updated `ProductVariantPricelistPrice` object |
2599 | - * |
|
2600 | - * @param int $productId The product id |
|
2601 | - * @param int $variantId The products variants id |
|
2602 | - * @param int $pricelistId The pricelist id |
|
2603 | - * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
2604 | - * @param array $queryParameters { |
|
2605 | - * @var string $include If you want to include child data in the result. Example: ?include=volumePrices (to include variants volume prices). Available includes: volumePrices |
|
2606 | - * } |
|
2607 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2608 | - * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistPriceBadRequestException |
|
2609 | - * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistPriceNotFoundException |
|
2610 | - * |
|
2611 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2612 | - */ |
|
2599 | + * |
|
2600 | + * @param int $productId The product id |
|
2601 | + * @param int $variantId The products variants id |
|
2602 | + * @param int $pricelistId The pricelist id |
|
2603 | + * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
2604 | + * @param array $queryParameters { |
|
2605 | + * @var string $include If you want to include child data in the result. Example: ?include=volumePrices (to include variants volume prices). Available includes: volumePrices |
|
2606 | + * } |
|
2607 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2608 | + * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistPriceBadRequestException |
|
2609 | + * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistPriceNotFoundException |
|
2610 | + * |
|
2611 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2612 | + */ |
|
2613 | 2613 | public function patchProductsVariantsPricelistPrice(int $productId, int $variantId, int $pricelistId, \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody, array $queryParameters = array(), string $fetch = self::FETCH_OBJECT) |
2614 | 2614 | { |
2615 | 2615 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchProductsVariantsPricelistPrice($productId, $variantId, $pricelistId, $requestBody, $queryParameters), $fetch); |
2616 | 2616 | } |
2617 | 2617 | /** |
2618 | - * Updates a product variant pricelist price. |
|
2618 | + * Updates a product variant pricelist price. |
|
2619 | 2619 | Retrieves the updated `ProductVariantPricelistPrice` object |
2620 | - * |
|
2621 | - * @param int $productId The product id |
|
2622 | - * @param int $variantId The products variants id |
|
2623 | - * @param int $pricelistId The pricelist id |
|
2624 | - * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
2625 | - * @param array $queryParameters { |
|
2626 | - * @var string $include If you want to include child data in the result. Example: ?include=volumePrices (to include variants volume prices). Available includes: volumePrices |
|
2627 | - * } |
|
2628 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2629 | - * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistPriceBadRequestException |
|
2630 | - * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistPriceNotFoundException |
|
2631 | - * |
|
2632 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2633 | - */ |
|
2620 | + * |
|
2621 | + * @param int $productId The product id |
|
2622 | + * @param int $variantId The products variants id |
|
2623 | + * @param int $pricelistId The pricelist id |
|
2624 | + * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
2625 | + * @param array $queryParameters { |
|
2626 | + * @var string $include If you want to include child data in the result. Example: ?include=volumePrices (to include variants volume prices). Available includes: volumePrices |
|
2627 | + * } |
|
2628 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2629 | + * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistPriceBadRequestException |
|
2630 | + * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistPriceNotFoundException |
|
2631 | + * |
|
2632 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2633 | + */ |
|
2634 | 2634 | public function putProductsVariantsPricelistPrice(int $productId, int $variantId, int $pricelistId, \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody, array $queryParameters = array(), string $fetch = self::FETCH_OBJECT) |
2635 | 2635 | { |
2636 | 2636 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductsVariantsPricelistPrice($productId, $variantId, $pricelistId, $requestBody, $queryParameters), $fetch); |
@@ -2650,17 +2650,17 @@ discard block |
||
2650 | 2650 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductBundledProductsPricelistPrices($productId, $bundledProductId), $fetch); |
2651 | 2651 | } |
2652 | 2652 | /** |
2653 | - * Creates a bundled product pricelist price. |
|
2653 | + * Creates a bundled product pricelist price. |
|
2654 | 2654 | Retrieves the created `ProductBundleProductPricelistPrice` object |
2655 | - * |
|
2656 | - * @param int $productId The products id |
|
2657 | - * @param int $bundledProductId The bundled products id |
|
2658 | - * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
|
2659 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2660 | - * @throws \Starweb\Api\Generated\Exception\CreateProductBundleProductPricelistPriceBadRequestException |
|
2661 | - * |
|
2662 | - * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2663 | - */ |
|
2655 | + * |
|
2656 | + * @param int $productId The products id |
|
2657 | + * @param int $bundledProductId The bundled products id |
|
2658 | + * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
|
2659 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2660 | + * @throws \Starweb\Api\Generated\Exception\CreateProductBundleProductPricelistPriceBadRequestException |
|
2661 | + * |
|
2662 | + * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2663 | + */ |
|
2664 | 2664 | public function createProductBundleProductPricelistPrice(int $productId, int $bundledProductId, \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2665 | 2665 | { |
2666 | 2666 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateProductBundleProductPricelistPrice($productId, $bundledProductId, $requestBody), $fetch); |
@@ -2696,37 +2696,37 @@ discard block |
||
2696 | 2696 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductBundledProductsPricelistPrice($productId, $bundledProductId, $pricelistId), $fetch); |
2697 | 2697 | } |
2698 | 2698 | /** |
2699 | - * Updates a bundled product pricelist price. |
|
2699 | + * Updates a bundled product pricelist price. |
|
2700 | 2700 | Retrieves the updated `ProductBundleProductPricelistPrice` object |
2701 | - * |
|
2702 | - * @param int $productId The product id |
|
2703 | - * @param int $bundledProductId The bundled products id |
|
2704 | - * @param int $pricelistId The pricelist id |
|
2705 | - * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
|
2706 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2707 | - * @throws \Starweb\Api\Generated\Exception\PatchProductBundledProductsPricelistPriceBadRequestException |
|
2708 | - * @throws \Starweb\Api\Generated\Exception\PatchProductBundledProductsPricelistPriceNotFoundException |
|
2709 | - * |
|
2710 | - * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2711 | - */ |
|
2701 | + * |
|
2702 | + * @param int $productId The product id |
|
2703 | + * @param int $bundledProductId The bundled products id |
|
2704 | + * @param int $pricelistId The pricelist id |
|
2705 | + * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
|
2706 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2707 | + * @throws \Starweb\Api\Generated\Exception\PatchProductBundledProductsPricelistPriceBadRequestException |
|
2708 | + * @throws \Starweb\Api\Generated\Exception\PatchProductBundledProductsPricelistPriceNotFoundException |
|
2709 | + * |
|
2710 | + * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2711 | + */ |
|
2712 | 2712 | public function patchProductBundledProductsPricelistPrice(int $productId, int $bundledProductId, int $pricelistId, \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2713 | 2713 | { |
2714 | 2714 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchProductBundledProductsPricelistPrice($productId, $bundledProductId, $pricelistId, $requestBody), $fetch); |
2715 | 2715 | } |
2716 | 2716 | /** |
2717 | - * Updates a bundled product pricelist price. |
|
2717 | + * Updates a bundled product pricelist price. |
|
2718 | 2718 | Retrieves the updated `ProductBundleProductPricelistPrice` object |
2719 | - * |
|
2720 | - * @param int $productId The product id |
|
2721 | - * @param int $bundledProductId The bundled products id |
|
2722 | - * @param int $pricelistId The pricelist id |
|
2723 | - * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
|
2724 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2725 | - * @throws \Starweb\Api\Generated\Exception\PutProductBundledProductsPricelistPriceBadRequestException |
|
2726 | - * @throws \Starweb\Api\Generated\Exception\PutProductBundledProductsPricelistPriceNotFoundException |
|
2727 | - * |
|
2728 | - * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2729 | - */ |
|
2719 | + * |
|
2720 | + * @param int $productId The product id |
|
2721 | + * @param int $bundledProductId The bundled products id |
|
2722 | + * @param int $pricelistId The pricelist id |
|
2723 | + * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
|
2724 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2725 | + * @throws \Starweb\Api\Generated\Exception\PutProductBundledProductsPricelistPriceBadRequestException |
|
2726 | + * @throws \Starweb\Api\Generated\Exception\PutProductBundledProductsPricelistPriceNotFoundException |
|
2727 | + * |
|
2728 | + * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2729 | + */ |
|
2730 | 2730 | public function putProductBundledProductsPricelistPrice(int $productId, int $bundledProductId, int $pricelistId, \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2731 | 2731 | { |
2732 | 2732 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductBundledProductsPricelistPrice($productId, $bundledProductId, $pricelistId, $requestBody), $fetch); |
@@ -2802,18 +2802,18 @@ discard block |
||
2802 | 2802 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductsVariantsPricelistVolumePrices($productId, $variantId, $pricelistId), $fetch); |
2803 | 2803 | } |
2804 | 2804 | /** |
2805 | - * Creates a variant volume pricelist price. |
|
2805 | + * Creates a variant volume pricelist price. |
|
2806 | 2806 | Retrieves the created `ProductVariantPricelistVolumePrice` object |
2807 | - * |
|
2808 | - * @param int $productId The products id |
|
2809 | - * @param int $variantId The products variants id |
|
2810 | - * @param int $pricelistId The pricelist id |
|
2811 | - * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
|
2812 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2813 | - * @throws \Starweb\Api\Generated\Exception\CreateProductVariantPricelistVolumePriceBadRequestException |
|
2814 | - * |
|
2815 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2816 | - */ |
|
2807 | + * |
|
2808 | + * @param int $productId The products id |
|
2809 | + * @param int $variantId The products variants id |
|
2810 | + * @param int $pricelistId The pricelist id |
|
2811 | + * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
|
2812 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2813 | + * @throws \Starweb\Api\Generated\Exception\CreateProductVariantPricelistVolumePriceBadRequestException |
|
2814 | + * |
|
2815 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2816 | + */ |
|
2817 | 2817 | public function createProductVariantPricelistVolumePrice(int $productId, int $variantId, int $pricelistId, \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2818 | 2818 | { |
2819 | 2819 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateProductVariantPricelistVolumePrice($productId, $variantId, $pricelistId, $requestBody), $fetch); |
@@ -2851,39 +2851,39 @@ discard block |
||
2851 | 2851 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductsVariantsPricelistVolumePrice($productId, $variantId, $pricelistId, $quantity), $fetch); |
2852 | 2852 | } |
2853 | 2853 | /** |
2854 | - * Updates a product variant pricelist volume price. |
|
2854 | + * Updates a product variant pricelist volume price. |
|
2855 | 2855 | Retrieves the updated `ProductVariantPricelistVolumePrice` object |
2856 | - * |
|
2857 | - * @param int $productId The product id |
|
2858 | - * @param int $variantId The products variants id |
|
2859 | - * @param int $pricelistId The pricelist id |
|
2860 | - * @param int $quantity The volume quantity |
|
2861 | - * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
|
2862 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2863 | - * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistVolumePriceBadRequestException |
|
2864 | - * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistVolumePriceNotFoundException |
|
2865 | - * |
|
2866 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2867 | - */ |
|
2856 | + * |
|
2857 | + * @param int $productId The product id |
|
2858 | + * @param int $variantId The products variants id |
|
2859 | + * @param int $pricelistId The pricelist id |
|
2860 | + * @param int $quantity The volume quantity |
|
2861 | + * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
|
2862 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2863 | + * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistVolumePriceBadRequestException |
|
2864 | + * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistVolumePriceNotFoundException |
|
2865 | + * |
|
2866 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2867 | + */ |
|
2868 | 2868 | public function patchProductsVariantsPricelistVolumePrice(int $productId, int $variantId, int $pricelistId, int $quantity, \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2869 | 2869 | { |
2870 | 2870 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchProductsVariantsPricelistVolumePrice($productId, $variantId, $pricelistId, $quantity, $requestBody), $fetch); |
2871 | 2871 | } |
2872 | 2872 | /** |
2873 | - * Updates a product variant pricelist volume price. |
|
2873 | + * Updates a product variant pricelist volume price. |
|
2874 | 2874 | Retrieves the updated `ProductVariantPricelistVolumePrice` object |
2875 | - * |
|
2876 | - * @param int $productId The product id |
|
2877 | - * @param int $variantId The products variants id |
|
2878 | - * @param int $pricelistId The pricelist id |
|
2879 | - * @param int $quantity The volume quantity |
|
2880 | - * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
|
2881 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2882 | - * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistVolumePriceBadRequestException |
|
2883 | - * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistVolumePriceNotFoundException |
|
2884 | - * |
|
2885 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2886 | - */ |
|
2875 | + * |
|
2876 | + * @param int $productId The product id |
|
2877 | + * @param int $variantId The products variants id |
|
2878 | + * @param int $pricelistId The pricelist id |
|
2879 | + * @param int $quantity The volume quantity |
|
2880 | + * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
|
2881 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2882 | + * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistVolumePriceBadRequestException |
|
2883 | + * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistVolumePriceNotFoundException |
|
2884 | + * |
|
2885 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2886 | + */ |
|
2887 | 2887 | public function putProductsVariantsPricelistVolumePrice(int $productId, int $variantId, int $pricelistId, int $quantity, \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2888 | 2888 | { |
2889 | 2889 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductsVariantsPricelistVolumePrice($productId, $variantId, $pricelistId, $quantity, $requestBody), $fetch); |
@@ -2933,19 +2933,19 @@ discard block |
||
2933 | 2933 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductVariantStock($productId, $variantId, $stockLocationId), $fetch); |
2934 | 2934 | } |
2935 | 2935 | /** |
2936 | - * Update or set the stock for a product variant at a stock location. |
|
2936 | + * Update or set the stock for a product variant at a stock location. |
|
2937 | 2937 | Retrieves the updated `ProductVariantStock` object |
2938 | - * |
|
2939 | - * @param int $productId The product id |
|
2940 | - * @param int $variantId The products variants id |
|
2941 | - * @param int $stockLocationId The stock location id |
|
2942 | - * @param \Starweb\Api\Generated\Model\ProductVariantStockPutRequestModel $requestBody |
|
2943 | - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2944 | - * @throws \Starweb\Api\Generated\Exception\PutProductVariantStockBadRequestException |
|
2945 | - * @throws \Starweb\Api\Generated\Exception\PutProductVariantStockNotFoundException |
|
2946 | - * |
|
2947 | - * @return null|\Starweb\Api\Generated\Model\ProductVariantStockModelItem|\Psr\Http\Message\ResponseInterface |
|
2948 | - */ |
|
2938 | + * |
|
2939 | + * @param int $productId The product id |
|
2940 | + * @param int $variantId The products variants id |
|
2941 | + * @param int $stockLocationId The stock location id |
|
2942 | + * @param \Starweb\Api\Generated\Model\ProductVariantStockPutRequestModel $requestBody |
|
2943 | + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2944 | + * @throws \Starweb\Api\Generated\Exception\PutProductVariantStockBadRequestException |
|
2945 | + * @throws \Starweb\Api\Generated\Exception\PutProductVariantStockNotFoundException |
|
2946 | + * |
|
2947 | + * @return null|\Starweb\Api\Generated\Model\ProductVariantStockModelItem|\Psr\Http\Message\ResponseInterface |
|
2948 | + */ |
|
2949 | 2949 | public function putProductVariantStock(int $productId, int $variantId, int $stockLocationId, \Starweb\Api\Generated\Model\ProductVariantStockPutRequestModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2950 | 2950 | { |
2951 | 2951 | return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductVariantStock($productId, $variantId, $stockLocationId, $requestBody), $fetch); |
@@ -103,8 +103,7 @@ discard block |
||
103 | 103 | $values[] = $value; |
104 | 104 | } |
105 | 105 | $data->{'attributeValueLinks'} = $values; |
106 | - } |
|
107 | - else { |
|
106 | + } else { |
|
108 | 107 | $data->{'attributeValueLinks'} = null; |
109 | 108 | } |
110 | 109 | if (null !== $object->getVolumePricingInheritancePricelistIds()) { |
@@ -113,8 +112,7 @@ discard block |
||
113 | 112 | $values_1[] = $value_1; |
114 | 113 | } |
115 | 114 | $data->{'volumePricingInheritancePricelistIds'} = $values_1; |
116 | - } |
|
117 | - else { |
|
115 | + } else { |
|
118 | 116 | $data->{'volumePricingInheritancePricelistIds'} = null; |
119 | 117 | } |
120 | 118 | return $data; |
@@ -129,8 +129,7 @@ |
||
129 | 129 | $values[] = $value; |
130 | 130 | } |
131 | 131 | $data->{'visibilityPricelistIds'} = $values; |
132 | - } |
|
133 | - else { |
|
132 | + } else { |
|
134 | 133 | $data->{'visibilityPricelistIds'} = null; |
135 | 134 | } |
136 | 135 | $data->{'moreInfoUrl'} = $object->getMoreInfoUrl(); |
@@ -127,8 +127,7 @@ |
||
127 | 127 | $values_1[] = $value_1; |
128 | 128 | } |
129 | 129 | $data->{'volumePricingInheritancePricelistIds'} = $values_1; |
130 | - } |
|
131 | - else { |
|
130 | + } else { |
|
132 | 131 | $data->{'volumePricingInheritancePricelistIds'} = null; |
133 | 132 | } |
134 | 133 | if (null !== $object->getPrices()) { |
@@ -143,8 +143,7 @@ discard block |
||
143 | 143 | $values[] = $value; |
144 | 144 | } |
145 | 145 | $data->{'visibilityPricelistIds'} = $values; |
146 | - } |
|
147 | - else { |
|
146 | + } else { |
|
148 | 147 | $data->{'visibilityPricelistIds'} = null; |
149 | 148 | } |
150 | 149 | if (null !== $object->getMoreInfoUrl()) { |
@@ -174,8 +173,7 @@ discard block |
||
174 | 173 | $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); |
175 | 174 | } |
176 | 175 | $data->{'bundledProducts'} = $values_2; |
177 | - } |
|
178 | - else { |
|
176 | + } else { |
|
179 | 177 | $data->{'bundledProducts'} = null; |
180 | 178 | } |
181 | 179 | if (null !== $object->getMediaFiles()) { |
@@ -110,8 +110,7 @@ |
||
110 | 110 | $values_1[] = $value_1; |
111 | 111 | } |
112 | 112 | $data->{'volumePricingInheritancePricelistIds'} = $values_1; |
113 | - } |
|
114 | - else { |
|
113 | + } else { |
|
115 | 114 | $data->{'volumePricingInheritancePricelistIds'} = null; |
116 | 115 | } |
117 | 116 | return $data; |
@@ -103,8 +103,7 @@ discard block |
||
103 | 103 | $values[] = $value; |
104 | 104 | } |
105 | 105 | $data->{'attributeValueLinks'} = $values; |
106 | - } |
|
107 | - else { |
|
106 | + } else { |
|
108 | 107 | $data->{'attributeValueLinks'} = null; |
109 | 108 | } |
110 | 109 | if (null !== $object->getVolumePricingInheritancePricelistIds()) { |
@@ -113,8 +112,7 @@ discard block |
||
113 | 112 | $values_1[] = $value_1; |
114 | 113 | } |
115 | 114 | $data->{'volumePricingInheritancePricelistIds'} = $values_1; |
116 | - } |
|
117 | - else { |
|
115 | + } else { |
|
118 | 116 | $data->{'volumePricingInheritancePricelistIds'} = null; |
119 | 117 | } |
120 | 118 | return $data; |
@@ -7,16 +7,16 @@ |
||
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 | - * @param array $queryParameters { |
|
17 | - * @var string $include If you want to include child data in the result. Example: ?include=volumePrices (to include variants volume prices). Available includes: volumePrices |
|
18 | - * } |
|
19 | - */ |
|
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 | + * @param array $queryParameters { |
|
17 | + * @var string $include If you want to include child data in the result. Example: ?include=volumePrices (to include variants volume prices). Available includes: volumePrices |
|
18 | + * } |
|
19 | + */ |
|
20 | 20 | public function __construct(int $productId, int $variantId, \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody, array $queryParameters = array()) |
21 | 21 | { |
22 | 22 | $this->productId = $productId; |