|
@@ -656,16 +656,16 @@ discard block |
|
|
block discarded – undo |
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 |
|
|
block discarded – undo |
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); |
|
@@ -841,16 +841,16 @@ discard block |
|
|
block discarded – undo |
841
|
841
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateOrderStatus($requestBody), $fetch); |
842
|
842
|
} |
843
|
843
|
/** |
844
|
|
- * Deletes an order status. Retrieves the updated `OrderItem` object. |
|
844
|
+ * Deletes an order status. Retrieves the updated `OrderItem` object. |
845
|
845
|
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) |
846
|
|
- * |
847
|
|
- * @param int $orderStatusId The order status id |
848
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
849
|
|
- * @throws \Starweb\Api\Generated\Exception\DeleteOrderStatusForbiddenException |
850
|
|
- * @throws \Starweb\Api\Generated\Exception\DeleteOrderStatusNotFoundException |
851
|
|
- * |
852
|
|
- * @return null|\Psr\Http\Message\ResponseInterface |
853
|
|
- */ |
|
846
|
+ * |
|
847
|
+ * @param int $orderStatusId The order status id |
|
848
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
849
|
+ * @throws \Starweb\Api\Generated\Exception\DeleteOrderStatusForbiddenException |
|
850
|
+ * @throws \Starweb\Api\Generated\Exception\DeleteOrderStatusNotFoundException |
|
851
|
+ * |
|
852
|
+ * @return null|\Psr\Http\Message\ResponseInterface |
|
853
|
+ */ |
854
|
854
|
public function deleteOrderStatus(int $orderStatusId, string $fetch = self::FETCH_OBJECT) |
855
|
855
|
{ |
856
|
856
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\DeleteOrderStatus($orderStatusId), $fetch); |
|
@@ -869,35 +869,35 @@ discard block |
|
|
block discarded – undo |
869
|
869
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetOrderStatus($orderStatusId), $fetch); |
870
|
870
|
} |
871
|
871
|
/** |
872
|
|
- * Updates an order status. Retrieves the updated `Orderstatus` object. |
|
872
|
+ * Updates an order status. Retrieves the updated `Orderstatus` object. |
873
|
873
|
NB! You are not allowed to update standard order statuses (all statuses with an idCode set) |
874
|
|
- * |
875
|
|
- * @param int $orderStatusId The order status id |
876
|
|
- * @param \Starweb\Api\Generated\Model\OrderStatusModel $requestBody |
877
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
878
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusBadRequestException |
879
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusForbiddenException |
880
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusNotFoundException |
881
|
|
- * |
882
|
|
- * @return null|\Starweb\Api\Generated\Model\OrderStatusModelItem|\Psr\Http\Message\ResponseInterface |
883
|
|
- */ |
|
874
|
+ * |
|
875
|
+ * @param int $orderStatusId The order status id |
|
876
|
+ * @param \Starweb\Api\Generated\Model\OrderStatusModel $requestBody |
|
877
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
878
|
+ * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusBadRequestException |
|
879
|
+ * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusForbiddenException |
|
880
|
+ * @throws \Starweb\Api\Generated\Exception\PatchOrderStatusNotFoundException |
|
881
|
+ * |
|
882
|
+ * @return null|\Starweb\Api\Generated\Model\OrderStatusModelItem|\Psr\Http\Message\ResponseInterface |
|
883
|
+ */ |
884
|
884
|
public function patchOrderStatus(int $orderStatusId, \Starweb\Api\Generated\Model\OrderStatusModel $requestBody, string $fetch = self::FETCH_OBJECT) |
885
|
885
|
{ |
886
|
886
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchOrderStatus($orderStatusId, $requestBody), $fetch); |
887
|
887
|
} |
888
|
888
|
/** |
889
|
|
- * Updates an order status. Retrieves the updated `Orderstatus` object. |
|
889
|
+ * Updates an order status. Retrieves the updated `Orderstatus` object. |
890
|
890
|
NB! You are not allowed to update standard order statuses (all statuses with an idCode set) |
891
|
|
- * |
892
|
|
- * @param int $orderStatusId The order status id |
893
|
|
- * @param \Starweb\Api\Generated\Model\OrderStatusModel $requestBody |
894
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
895
|
|
- * @throws \Starweb\Api\Generated\Exception\PutOrderStatusBadRequestException |
896
|
|
- * @throws \Starweb\Api\Generated\Exception\PutOrderStatusForbiddenException |
897
|
|
- * @throws \Starweb\Api\Generated\Exception\PutOrderStatusNotFoundException |
898
|
|
- * |
899
|
|
- * @return null|\Starweb\Api\Generated\Model\OrderStatusModelItem|\Psr\Http\Message\ResponseInterface |
900
|
|
- */ |
|
891
|
+ * |
|
892
|
+ * @param int $orderStatusId The order status id |
|
893
|
+ * @param \Starweb\Api\Generated\Model\OrderStatusModel $requestBody |
|
894
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
895
|
+ * @throws \Starweb\Api\Generated\Exception\PutOrderStatusBadRequestException |
|
896
|
+ * @throws \Starweb\Api\Generated\Exception\PutOrderStatusForbiddenException |
|
897
|
+ * @throws \Starweb\Api\Generated\Exception\PutOrderStatusNotFoundException |
|
898
|
+ * |
|
899
|
+ * @return null|\Starweb\Api\Generated\Model\OrderStatusModelItem|\Psr\Http\Message\ResponseInterface |
|
900
|
+ */ |
901
|
901
|
public function putOrderStatus(int $orderStatusId, \Starweb\Api\Generated\Model\OrderStatusModel $requestBody, string $fetch = self::FETCH_OBJECT) |
902
|
902
|
{ |
903
|
903
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutOrderStatus($orderStatusId, $requestBody), $fetch); |
|
@@ -980,15 +980,15 @@ discard block |
|
|
block discarded – undo |
980
|
980
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductsVariantsAttributes(), $fetch); |
981
|
981
|
} |
982
|
982
|
/** |
983
|
|
- * Creates a product variant attribute. |
|
983
|
+ * Creates a product variant attribute. |
984
|
984
|
Retrieves the created `ProductVariantAttribute` object. |
985
|
|
- * |
986
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
987
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
988
|
|
- * @throws \Starweb\Api\Generated\Exception\CreateAttributeBadRequestException |
989
|
|
- * |
990
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
991
|
|
- */ |
|
985
|
+ * |
|
986
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
|
987
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
988
|
+ * @throws \Starweb\Api\Generated\Exception\CreateAttributeBadRequestException |
|
989
|
+ * |
|
990
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
|
991
|
+ */ |
992
|
992
|
public function createAttribute(\Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
993
|
993
|
{ |
994
|
994
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateAttribute($requestBody), $fetch); |
|
@@ -1020,31 +1020,31 @@ discard block |
|
|
block discarded – undo |
1020
|
1020
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductsVariantsAttribute($attributeId), $fetch); |
1021
|
1021
|
} |
1022
|
1022
|
/** |
1023
|
|
- * Updates a product variant attribute. |
|
1023
|
+ * Updates a product variant attribute. |
1024
|
1024
|
Retrieves the updated `ProductVariantAttribute` object. |
1025
|
|
- * |
1026
|
|
- * @param int $attributeId The attribute value id |
1027
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
1028
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
1029
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchAttributeBadRequestException |
1030
|
|
- * |
1031
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
1032
|
|
- */ |
|
1025
|
+ * |
|
1026
|
+ * @param int $attributeId The attribute value id |
|
1027
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
|
1028
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1029
|
+ * @throws \Starweb\Api\Generated\Exception\PatchAttributeBadRequestException |
|
1030
|
+ * |
|
1031
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
|
1032
|
+ */ |
1033
|
1033
|
public function patchAttribute(int $attributeId, \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
1034
|
1034
|
{ |
1035
|
1035
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchAttribute($attributeId, $requestBody), $fetch); |
1036
|
1036
|
} |
1037
|
1037
|
/** |
1038
|
|
- * Updates a product variant attribute. |
|
1038
|
+ * Updates a product variant attribute. |
1039
|
1039
|
Retrieves the updated `ProductVariantAttribute` object. |
1040
|
|
- * |
1041
|
|
- * @param int $attributeId The attribute value id |
1042
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
1043
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
1044
|
|
- * @throws \Starweb\Api\Generated\Exception\PutAttributeBadRequestException |
1045
|
|
- * |
1046
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
1047
|
|
- */ |
|
1040
|
+ * |
|
1041
|
+ * @param int $attributeId The attribute value id |
|
1042
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody |
|
1043
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1044
|
+ * @throws \Starweb\Api\Generated\Exception\PutAttributeBadRequestException |
|
1045
|
+ * |
|
1046
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeModelItem|\Psr\Http\Message\ResponseInterface |
|
1047
|
+ */ |
1048
|
1048
|
public function putAttribute(int $attributeId, \Starweb\Api\Generated\Model\ProductVariantAttributeModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
1049
|
1049
|
{ |
1050
|
1050
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutAttribute($attributeId, $requestBody), $fetch); |
|
@@ -1066,16 +1066,16 @@ discard block |
|
|
block discarded – undo |
1066
|
1066
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductsVariantsAttributeValues($attributeId, $queryParameters), $fetch); |
1067
|
1067
|
} |
1068
|
1068
|
/** |
1069
|
|
- * Creates a product variant attribute value. |
|
1069
|
+ * Creates a product variant attribute value. |
1070
|
1070
|
Retrieves the created `ProductVariantAttributeValue` object. |
1071
|
|
- * |
1072
|
|
- * @param int $attributeId The attribute id |
1073
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
1074
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
1075
|
|
- * @throws \Starweb\Api\Generated\Exception\CreateProductsVariantsAttributeValuesBadRequestException |
1076
|
|
- * |
1077
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelCollection|\Psr\Http\Message\ResponseInterface |
1078
|
|
- */ |
|
1071
|
+ * |
|
1072
|
+ * @param int $attributeId The attribute id |
|
1073
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
|
1074
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1075
|
+ * @throws \Starweb\Api\Generated\Exception\CreateProductsVariantsAttributeValuesBadRequestException |
|
1076
|
+ * |
|
1077
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelCollection|\Psr\Http\Message\ResponseInterface |
|
1078
|
+ */ |
1079
|
1079
|
public function createProductsVariantsAttributeValues(int $attributeId, \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
1080
|
1080
|
{ |
1081
|
1081
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateProductsVariantsAttributeValues($attributeId, $requestBody), $fetch); |
|
@@ -1112,33 +1112,33 @@ discard block |
|
|
block discarded – undo |
1112
|
1112
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductsVariantsAttributeValue($attributeId, $attributeValueId, $queryParameters), $fetch); |
1113
|
1113
|
} |
1114
|
1114
|
/** |
1115
|
|
- * Updates a product variant attribute value. |
|
1115
|
+ * Updates a product variant attribute value. |
1116
|
1116
|
Retrieves the updated`ProductVariantAttributeValue` object. |
1117
|
|
- * |
1118
|
|
- * @param int $attributeId The attribute id |
1119
|
|
- * @param int $attributeValueId The attribe value id |
1120
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
1121
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
1122
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsAttributeValuesBadRequestException |
1123
|
|
- * |
1124
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelCollection|\Psr\Http\Message\ResponseInterface |
1125
|
|
- */ |
|
1117
|
+ * |
|
1118
|
+ * @param int $attributeId The attribute id |
|
1119
|
+ * @param int $attributeValueId The attribe value id |
|
1120
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
|
1121
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1122
|
+ * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsAttributeValuesBadRequestException |
|
1123
|
+ * |
|
1124
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelCollection|\Psr\Http\Message\ResponseInterface |
|
1125
|
+ */ |
1126
|
1126
|
public function patchProductsVariantsAttributeValues(int $attributeId, int $attributeValueId, \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
1127
|
1127
|
{ |
1128
|
1128
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchProductsVariantsAttributeValues($attributeId, $attributeValueId, $requestBody), $fetch); |
1129
|
1129
|
} |
1130
|
1130
|
/** |
1131
|
|
- * Updates a product variant attribute value. |
|
1131
|
+ * Updates a product variant attribute value. |
1132
|
1132
|
Retrieves the updated`ProductVariantAttributeValue` object. |
1133
|
|
- * |
1134
|
|
- * @param int $attributeId The attribute id |
1135
|
|
- * @param int $attributeValueId The attribe value id |
1136
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
1137
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
1138
|
|
- * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsAttributeValuesBadRequestException |
1139
|
|
- * |
1140
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelCollection|\Psr\Http\Message\ResponseInterface |
1141
|
|
- */ |
|
1133
|
+ * |
|
1134
|
+ * @param int $attributeId The attribute id |
|
1135
|
+ * @param int $attributeValueId The attribe value id |
|
1136
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody |
|
1137
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1138
|
+ * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsAttributeValuesBadRequestException |
|
1139
|
+ * |
|
1140
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantAttributeValueModelCollection|\Psr\Http\Message\ResponseInterface |
|
1141
|
+ */ |
1142
|
1142
|
public function putProductsVariantsAttributeValues(int $attributeId, int $attributeValueId, \Starweb\Api\Generated\Model\ProductVariantAttributeValueModelUpdatable $requestBody, string $fetch = self::FETCH_OBJECT) |
1143
|
1143
|
{ |
1144
|
1144
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductsVariantsAttributeValues($attributeId, $attributeValueId, $requestBody), $fetch); |
|
@@ -1819,16 +1819,16 @@ discard block |
|
|
block discarded – undo |
1819
|
1819
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductsMediaFileLinks($productId), $fetch); |
1820
|
1820
|
} |
1821
|
1821
|
/** |
1822
|
|
- * Creates a product media file link. |
|
1822
|
+ * Creates a product media file link. |
1823
|
1823
|
Retrieves the create `ProductMediaFileLink` object. |
1824
|
|
- * |
1825
|
|
- * @param int $productId The products id |
1826
|
|
- * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
1827
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
1828
|
|
- * @throws \Starweb\Api\Generated\Exception\CreateProductsMediaFileLinkBadRequestException |
1829
|
|
- * |
1830
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
1831
|
|
- */ |
|
1824
|
+ * |
|
1825
|
+ * @param int $productId The products id |
|
1826
|
+ * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
|
1827
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1828
|
+ * @throws \Starweb\Api\Generated\Exception\CreateProductsMediaFileLinkBadRequestException |
|
1829
|
+ * |
|
1830
|
+ * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
|
1831
|
+ */ |
1832
|
1832
|
public function createProductsMediaFileLink(int $productId, \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody, string $fetch = self::FETCH_OBJECT) |
1833
|
1833
|
{ |
1834
|
1834
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateProductsMediaFileLink($productId, $requestBody), $fetch); |
|
@@ -1862,35 +1862,35 @@ discard block |
|
|
block discarded – undo |
1862
|
1862
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductsMediaFileLink($productId, $mediaFileId), $fetch); |
1863
|
1863
|
} |
1864
|
1864
|
/** |
1865
|
|
- * Updates a product media file link. |
|
1865
|
+ * Updates a product media file link. |
1866
|
1866
|
Retrieves the update `ProductMediaFileLink` object. |
1867
|
|
- * |
1868
|
|
- * @param int $productId The product id |
1869
|
|
- * @param int $mediaFileId The media file id of the link you want to fetch/change |
1870
|
|
- * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
1871
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
1872
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchProductsMediaFileLinkBadRequestException |
1873
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchProductsMediaFileLinkNotFoundException |
1874
|
|
- * |
1875
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
1876
|
|
- */ |
|
1867
|
+ * |
|
1868
|
+ * @param int $productId The product id |
|
1869
|
+ * @param int $mediaFileId The media file id of the link you want to fetch/change |
|
1870
|
+ * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
|
1871
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1872
|
+ * @throws \Starweb\Api\Generated\Exception\PatchProductsMediaFileLinkBadRequestException |
|
1873
|
+ * @throws \Starweb\Api\Generated\Exception\PatchProductsMediaFileLinkNotFoundException |
|
1874
|
+ * |
|
1875
|
+ * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
|
1876
|
+ */ |
1877
|
1877
|
public function patchProductsMediaFileLink(int $productId, int $mediaFileId, \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody, string $fetch = self::FETCH_OBJECT) |
1878
|
1878
|
{ |
1879
|
1879
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchProductsMediaFileLink($productId, $mediaFileId, $requestBody), $fetch); |
1880
|
1880
|
} |
1881
|
1881
|
/** |
1882
|
|
- * Updates a product media file link. |
|
1882
|
+ * Updates a product media file link. |
1883
|
1883
|
Retrieves the update `ProductMediaFileLink` object. |
1884
|
|
- * |
1885
|
|
- * @param int $productId The product id |
1886
|
|
- * @param int $mediaFileId The media file id of the link you want to fetch/change |
1887
|
|
- * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
1888
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
1889
|
|
- * @throws \Starweb\Api\Generated\Exception\PutProductsMediaFileLinkBadRequestException |
1890
|
|
- * @throws \Starweb\Api\Generated\Exception\PutProductsMediaFileLinkNotFoundException |
1891
|
|
- * |
1892
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
1893
|
|
- */ |
|
1884
|
+ * |
|
1885
|
+ * @param int $productId The product id |
|
1886
|
+ * @param int $mediaFileId The media file id of the link you want to fetch/change |
|
1887
|
+ * @param \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody |
|
1888
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
1889
|
+ * @throws \Starweb\Api\Generated\Exception\PutProductsMediaFileLinkBadRequestException |
|
1890
|
+ * @throws \Starweb\Api\Generated\Exception\PutProductsMediaFileLinkNotFoundException |
|
1891
|
+ * |
|
1892
|
+ * @return null|\Starweb\Api\Generated\Model\ProductMediaFileLinkModelItem|\Psr\Http\Message\ResponseInterface |
|
1893
|
+ */ |
1894
|
1894
|
public function putProductsMediaFileLink(int $productId, int $mediaFileId, \Starweb\Api\Generated\Model\ProductMediaFileLinkModel $requestBody, string $fetch = self::FETCH_OBJECT) |
1895
|
1895
|
{ |
1896
|
1896
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductsMediaFileLink($productId, $mediaFileId, $requestBody), $fetch); |
|
@@ -2198,17 +2198,17 @@ discard block |
|
|
block discarded – undo |
2198
|
2198
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductsVariantsPricelistPrices($productId, $variantId), $fetch); |
2199
|
2199
|
} |
2200
|
2200
|
/** |
2201
|
|
- * Creates a product variant pricelist price. |
|
2201
|
+ * Creates a product variant pricelist price. |
2202
|
2202
|
Retrieves the created `ProductVariantPricelistPrice` object |
2203
|
|
- * |
2204
|
|
- * @param int $productId The products id |
2205
|
|
- * @param int $variantId The products variants id |
2206
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
2207
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
2208
|
|
- * @throws \Starweb\Api\Generated\Exception\CreateProductVariantPricelistPriceBadRequestException |
2209
|
|
- * |
2210
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
2211
|
|
- */ |
|
2203
|
+ * |
|
2204
|
+ * @param int $productId The products id |
|
2205
|
+ * @param int $variantId The products variants id |
|
2206
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
2207
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2208
|
+ * @throws \Starweb\Api\Generated\Exception\CreateProductVariantPricelistPriceBadRequestException |
|
2209
|
+ * |
|
2210
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2211
|
+ */ |
2212
|
2212
|
public function createProductVariantPricelistPrice(int $productId, int $variantId, \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2213
|
2213
|
{ |
2214
|
2214
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateProductVariantPricelistPrice($productId, $variantId, $requestBody), $fetch); |
|
@@ -2244,37 +2244,37 @@ discard block |
|
|
block discarded – undo |
2244
|
2244
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductsVariantsPricelistPrice($productId, $variantId, $pricelistId), $fetch); |
2245
|
2245
|
} |
2246
|
2246
|
/** |
2247
|
|
- * Updates a product variant pricelist price. |
|
2247
|
+ * Updates a product variant pricelist price. |
2248
|
2248
|
Retrieves the updated `ProductVariantPricelistPrice` object |
2249
|
|
- * |
2250
|
|
- * @param int $productId The product id |
2251
|
|
- * @param int $variantId The products variants id |
2252
|
|
- * @param int $pricelistId The pricelist id |
2253
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
2254
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
2255
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistPriceBadRequestException |
2256
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistPriceNotFoundException |
2257
|
|
- * |
2258
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
2259
|
|
- */ |
|
2249
|
+ * |
|
2250
|
+ * @param int $productId The product id |
|
2251
|
+ * @param int $variantId The products variants id |
|
2252
|
+ * @param int $pricelistId The pricelist id |
|
2253
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
2254
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2255
|
+ * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistPriceBadRequestException |
|
2256
|
+ * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistPriceNotFoundException |
|
2257
|
+ * |
|
2258
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2259
|
+ */ |
2260
|
2260
|
public function patchProductsVariantsPricelistPrice(int $productId, int $variantId, int $pricelistId, \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2261
|
2261
|
{ |
2262
|
2262
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchProductsVariantsPricelistPrice($productId, $variantId, $pricelistId, $requestBody), $fetch); |
2263
|
2263
|
} |
2264
|
2264
|
/** |
2265
|
|
- * Updates a product variant pricelist price. |
|
2265
|
+ * Updates a product variant pricelist price. |
2266
|
2266
|
Retrieves the updated `ProductVariantPricelistPrice` object |
2267
|
|
- * |
2268
|
|
- * @param int $productId The product id |
2269
|
|
- * @param int $variantId The products variants id |
2270
|
|
- * @param int $pricelistId The pricelist id |
2271
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
2272
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
2273
|
|
- * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistPriceBadRequestException |
2274
|
|
- * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistPriceNotFoundException |
2275
|
|
- * |
2276
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
2277
|
|
- */ |
|
2267
|
+ * |
|
2268
|
+ * @param int $productId The product id |
|
2269
|
+ * @param int $variantId The products variants id |
|
2270
|
+ * @param int $pricelistId The pricelist id |
|
2271
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody |
|
2272
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2273
|
+ * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistPriceBadRequestException |
|
2274
|
+ * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistPriceNotFoundException |
|
2275
|
+ * |
|
2276
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2277
|
+ */ |
2278
|
2278
|
public function putProductsVariantsPricelistPrice(int $productId, int $variantId, int $pricelistId, \Starweb\Api\Generated\Model\ProductVariantPriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2279
|
2279
|
{ |
2280
|
2280
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductsVariantsPricelistPrice($productId, $variantId, $pricelistId, $requestBody), $fetch); |
|
@@ -2294,17 +2294,17 @@ discard block |
|
|
block discarded – undo |
2294
|
2294
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductBundledProductsPricelistPrices($productId, $bundledProductId), $fetch); |
2295
|
2295
|
} |
2296
|
2296
|
/** |
2297
|
|
- * Creates a bundled product pricelist price. |
|
2297
|
+ * Creates a bundled product pricelist price. |
2298
|
2298
|
Retrieves the created `ProductBundleProductPricelistPrice` object |
2299
|
|
- * |
2300
|
|
- * @param int $productId The products id |
2301
|
|
- * @param int $bundledProductId The bundled products id |
2302
|
|
- * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
2303
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
2304
|
|
- * @throws \Starweb\Api\Generated\Exception\CreateProductBundleProductPricelistPriceBadRequestException |
2305
|
|
- * |
2306
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
2307
|
|
- */ |
|
2299
|
+ * |
|
2300
|
+ * @param int $productId The products id |
|
2301
|
+ * @param int $bundledProductId The bundled products id |
|
2302
|
+ * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
|
2303
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2304
|
+ * @throws \Starweb\Api\Generated\Exception\CreateProductBundleProductPricelistPriceBadRequestException |
|
2305
|
+ * |
|
2306
|
+ * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2307
|
+ */ |
2308
|
2308
|
public function createProductBundleProductPricelistPrice(int $productId, int $bundledProductId, \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2309
|
2309
|
{ |
2310
|
2310
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateProductBundleProductPricelistPrice($productId, $bundledProductId, $requestBody), $fetch); |
|
@@ -2340,37 +2340,37 @@ discard block |
|
|
block discarded – undo |
2340
|
2340
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductBundledProductsPricelistPrice($productId, $bundledProductId, $pricelistId), $fetch); |
2341
|
2341
|
} |
2342
|
2342
|
/** |
2343
|
|
- * Updates a bundled product pricelist price. |
|
2343
|
+ * Updates a bundled product pricelist price. |
2344
|
2344
|
Retrieves the updated `ProductBundleProductPricelistPrice` object |
2345
|
|
- * |
2346
|
|
- * @param int $productId The product id |
2347
|
|
- * @param int $bundledProductId The bundled products id |
2348
|
|
- * @param int $pricelistId The pricelist id |
2349
|
|
- * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
2350
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
2351
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchProductBundledProductsPricelistPriceBadRequestException |
2352
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchProductBundledProductsPricelistPriceNotFoundException |
2353
|
|
- * |
2354
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
2355
|
|
- */ |
|
2345
|
+ * |
|
2346
|
+ * @param int $productId The product id |
|
2347
|
+ * @param int $bundledProductId The bundled products id |
|
2348
|
+ * @param int $pricelistId The pricelist id |
|
2349
|
+ * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
|
2350
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2351
|
+ * @throws \Starweb\Api\Generated\Exception\PatchProductBundledProductsPricelistPriceBadRequestException |
|
2352
|
+ * @throws \Starweb\Api\Generated\Exception\PatchProductBundledProductsPricelistPriceNotFoundException |
|
2353
|
+ * |
|
2354
|
+ * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2355
|
+ */ |
2356
|
2356
|
public function patchProductBundledProductsPricelistPrice(int $productId, int $bundledProductId, int $pricelistId, \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2357
|
2357
|
{ |
2358
|
2358
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchProductBundledProductsPricelistPrice($productId, $bundledProductId, $pricelistId, $requestBody), $fetch); |
2359
|
2359
|
} |
2360
|
2360
|
/** |
2361
|
|
- * Updates a bundled product pricelist price. |
|
2361
|
+ * Updates a bundled product pricelist price. |
2362
|
2362
|
Retrieves the updated `ProductBundleProductPricelistPrice` object |
2363
|
|
- * |
2364
|
|
- * @param int $productId The product id |
2365
|
|
- * @param int $bundledProductId The bundled products id |
2366
|
|
- * @param int $pricelistId The pricelist id |
2367
|
|
- * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
2368
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
2369
|
|
- * @throws \Starweb\Api\Generated\Exception\PutProductBundledProductsPricelistPriceBadRequestException |
2370
|
|
- * @throws \Starweb\Api\Generated\Exception\PutProductBundledProductsPricelistPriceNotFoundException |
2371
|
|
- * |
2372
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
2373
|
|
- */ |
|
2363
|
+ * |
|
2364
|
+ * @param int $productId The product id |
|
2365
|
+ * @param int $bundledProductId The bundled products id |
|
2366
|
+ * @param int $pricelistId The pricelist id |
|
2367
|
+ * @param \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody |
|
2368
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2369
|
+ * @throws \Starweb\Api\Generated\Exception\PutProductBundledProductsPricelistPriceBadRequestException |
|
2370
|
+ * @throws \Starweb\Api\Generated\Exception\PutProductBundledProductsPricelistPriceNotFoundException |
|
2371
|
+ * |
|
2372
|
+ * @return null|\Starweb\Api\Generated\Model\ProductBundleProductPriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2373
|
+ */ |
2374
|
2374
|
public function putProductBundledProductsPricelistPrice(int $productId, int $bundledProductId, int $pricelistId, \Starweb\Api\Generated\Model\ProductBundleProductPriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2375
|
2375
|
{ |
2376
|
2376
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductBundledProductsPricelistPrice($productId, $bundledProductId, $pricelistId, $requestBody), $fetch); |
|
@@ -2391,18 +2391,18 @@ discard block |
|
|
block discarded – undo |
2391
|
2391
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\ListProductsVariantsPricelistVolumePrices($productId, $variantId, $pricelistId), $fetch); |
2392
|
2392
|
} |
2393
|
2393
|
/** |
2394
|
|
- * Creates a variant volume pricelist price. |
|
2394
|
+ * Creates a variant volume pricelist price. |
2395
|
2395
|
Retrieves the created `ProductVariantPricelistVolumePrice` object |
2396
|
|
- * |
2397
|
|
- * @param int $productId The products id |
2398
|
|
- * @param int $variantId The products variants id |
2399
|
|
- * @param int $pricelistId The pricelist id |
2400
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
2401
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
2402
|
|
- * @throws \Starweb\Api\Generated\Exception\CreateProductVariantPricelistVolumePriceBadRequestException |
2403
|
|
- * |
2404
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
2405
|
|
- */ |
|
2396
|
+ * |
|
2397
|
+ * @param int $productId The products id |
|
2398
|
+ * @param int $variantId The products variants id |
|
2399
|
+ * @param int $pricelistId The pricelist id |
|
2400
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
|
2401
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2402
|
+ * @throws \Starweb\Api\Generated\Exception\CreateProductVariantPricelistVolumePriceBadRequestException |
|
2403
|
+ * |
|
2404
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2405
|
+ */ |
2406
|
2406
|
public function createProductVariantPricelistVolumePrice(int $productId, int $variantId, int $pricelistId, \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2407
|
2407
|
{ |
2408
|
2408
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\CreateProductVariantPricelistVolumePrice($productId, $variantId, $pricelistId, $requestBody), $fetch); |
|
@@ -2440,39 +2440,39 @@ discard block |
|
|
block discarded – undo |
2440
|
2440
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductsVariantsPricelistVolumePrice($productId, $variantId, $pricelistId, $quantity), $fetch); |
2441
|
2441
|
} |
2442
|
2442
|
/** |
2443
|
|
- * Updates a product variant pricelist volume price. |
|
2443
|
+ * Updates a product variant pricelist volume price. |
2444
|
2444
|
Retrieves the updated `ProductVariantPricelistVolumePrice` object |
2445
|
|
- * |
2446
|
|
- * @param int $productId The product id |
2447
|
|
- * @param int $variantId The products variants id |
2448
|
|
- * @param int $pricelistId The pricelist id |
2449
|
|
- * @param int $quantity The volume quantity |
2450
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
2451
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
2452
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistVolumePriceBadRequestException |
2453
|
|
- * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistVolumePriceNotFoundException |
2454
|
|
- * |
2455
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
2456
|
|
- */ |
|
2445
|
+ * |
|
2446
|
+ * @param int $productId The product id |
|
2447
|
+ * @param int $variantId The products variants id |
|
2448
|
+ * @param int $pricelistId The pricelist id |
|
2449
|
+ * @param int $quantity The volume quantity |
|
2450
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
|
2451
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2452
|
+ * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistVolumePriceBadRequestException |
|
2453
|
+ * @throws \Starweb\Api\Generated\Exception\PatchProductsVariantsPricelistVolumePriceNotFoundException |
|
2454
|
+ * |
|
2455
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2456
|
+ */ |
2457
|
2457
|
public function patchProductsVariantsPricelistVolumePrice(int $productId, int $variantId, int $pricelistId, int $quantity, \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2458
|
2458
|
{ |
2459
|
2459
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PatchProductsVariantsPricelistVolumePrice($productId, $variantId, $pricelistId, $quantity, $requestBody), $fetch); |
2460
|
2460
|
} |
2461
|
2461
|
/** |
2462
|
|
- * Updates a product variant pricelist volume price. |
|
2462
|
+ * Updates a product variant pricelist volume price. |
2463
|
2463
|
Retrieves the updated `ProductVariantPricelistVolumePrice` object |
2464
|
|
- * |
2465
|
|
- * @param int $productId The product id |
2466
|
|
- * @param int $variantId The products variants id |
2467
|
|
- * @param int $pricelistId The pricelist id |
2468
|
|
- * @param int $quantity The volume quantity |
2469
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
2470
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
2471
|
|
- * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistVolumePriceBadRequestException |
2472
|
|
- * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistVolumePriceNotFoundException |
2473
|
|
- * |
2474
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
2475
|
|
- */ |
|
2464
|
+ * |
|
2465
|
+ * @param int $productId The product id |
|
2466
|
+ * @param int $variantId The products variants id |
|
2467
|
+ * @param int $pricelistId The pricelist id |
|
2468
|
+ * @param int $quantity The volume quantity |
|
2469
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody |
|
2470
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2471
|
+ * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistVolumePriceBadRequestException |
|
2472
|
+ * @throws \Starweb\Api\Generated\Exception\PutProductsVariantsPricelistVolumePriceNotFoundException |
|
2473
|
+ * |
|
2474
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantVolumePriceModelItem|\Psr\Http\Message\ResponseInterface |
|
2475
|
+ */ |
2476
|
2476
|
public function putProductsVariantsPricelistVolumePrice(int $productId, int $variantId, int $pricelistId, int $quantity, \Starweb\Api\Generated\Model\ProductVariantVolumePriceModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2477
|
2477
|
{ |
2478
|
2478
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductsVariantsPricelistVolumePrice($productId, $variantId, $pricelistId, $quantity, $requestBody), $fetch); |
|
@@ -2522,19 +2522,19 @@ discard block |
|
|
block discarded – undo |
2522
|
2522
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\GetProductVariantStock($productId, $variantId, $stockLocationId), $fetch); |
2523
|
2523
|
} |
2524
|
2524
|
/** |
2525
|
|
- * Update or set the stock for a product variant at a stock location. |
|
2525
|
+ * Update or set the stock for a product variant at a stock location. |
2526
|
2526
|
Retrieves the updated `ProductVariantStock` object |
2527
|
|
- * |
2528
|
|
- * @param int $productId The product id |
2529
|
|
- * @param int $variantId The products variants id |
2530
|
|
- * @param int $stockLocationId The stock location id |
2531
|
|
- * @param \Starweb\Api\Generated\Model\ProductVariantStockPutRequestModel $requestBody |
2532
|
|
- * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
2533
|
|
- * @throws \Starweb\Api\Generated\Exception\PutProductVariantStockBadRequestException |
2534
|
|
- * @throws \Starweb\Api\Generated\Exception\PutProductVariantStockNotFoundException |
2535
|
|
- * |
2536
|
|
- * @return null|\Starweb\Api\Generated\Model\ProductVariantStockModelItem|\Psr\Http\Message\ResponseInterface |
2537
|
|
- */ |
|
2527
|
+ * |
|
2528
|
+ * @param int $productId The product id |
|
2529
|
+ * @param int $variantId The products variants id |
|
2530
|
+ * @param int $stockLocationId The stock location id |
|
2531
|
+ * @param \Starweb\Api\Generated\Model\ProductVariantStockPutRequestModel $requestBody |
|
2532
|
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
|
2533
|
+ * @throws \Starweb\Api\Generated\Exception\PutProductVariantStockBadRequestException |
|
2534
|
+ * @throws \Starweb\Api\Generated\Exception\PutProductVariantStockNotFoundException |
|
2535
|
+ * |
|
2536
|
+ * @return null|\Starweb\Api\Generated\Model\ProductVariantStockModelItem|\Psr\Http\Message\ResponseInterface |
|
2537
|
+ */ |
2538
|
2538
|
public function putProductVariantStock(int $productId, int $variantId, int $stockLocationId, \Starweb\Api\Generated\Model\ProductVariantStockPutRequestModel $requestBody, string $fetch = self::FETCH_OBJECT) |
2539
|
2539
|
{ |
2540
|
2540
|
return $this->executePsr7Endpoint(new \Starweb\Api\Generated\Endpoint\PutProductVariantStock($productId, $variantId, $stockLocationId, $requestBody), $fetch); |