|
@@ 180-194 (lines=15) @@
|
| 177 |
|
* @description Bir ürünün N11 ürün ID si kullanılarak ürünün sadece baz fiyat bilgilerini, |
| 178 |
|
* ürün stok birimi fiyat bilgilerini veya her ikisinin güncellenmesi için kullanılır. |
| 179 |
|
*/ |
| 180 |
|
public function updateProductPriceById(int $productId, float $price, $currencyType = self::TL, string $sellerStockCode = null, float $optionPrice = null): object |
| 181 |
|
{ |
| 182 |
|
$this->_parameters["productId"] = $productId; |
| 183 |
|
$this->_parameters["price"] = $price; |
| 184 |
|
$this->_parameters["currencyType"] = $currencyType; |
| 185 |
|
$this->_parameters["product"] = [ |
| 186 |
|
"stockItems" => [ |
| 187 |
|
"stockItem" => [ |
| 188 |
|
"sellerStockCode" => $sellerStockCode, |
| 189 |
|
"optionPrice" => $optionPrice, |
| 190 |
|
] |
| 191 |
|
] |
| 192 |
|
]; |
| 193 |
|
return $this->_client->UpdateProductPriceById($this->_parameters); |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
/** |
| 197 |
|
* @param string $productSellerCode |
|
@@ 206-220 (lines=15) @@
|
| 203 |
|
* @description Bir ürünün N11 ürün ID si kullanılarak ürünün sadece baz fiyat bilgilerini, |
| 204 |
|
* ürün stok birimi fiyat bilgilerini veya her ikisinin güncellenmesi için kullanılır. |
| 205 |
|
*/ |
| 206 |
|
public function updateProductPriceBySellerCode(string $productSellerCode, float $price, $currencyType = self::TL, string $sellerStockCode = null, float $optionPrice = null): object |
| 207 |
|
{ |
| 208 |
|
$this->_parameters["productSellerCode"] = $productSellerCode; |
| 209 |
|
$this->_parameters["price"] = $price; |
| 210 |
|
$this->_parameters["currencyType"] = $currencyType; |
| 211 |
|
$this->_parameters["product"] = [ |
| 212 |
|
"stockItems" => [ |
| 213 |
|
"stockItem" => [ |
| 214 |
|
"sellerStockCode" => $sellerStockCode, |
| 215 |
|
"optionPrice" => $optionPrice, |
| 216 |
|
] |
| 217 |
|
] |
| 218 |
|
]; |
| 219 |
|
return $this->_client->UpdateProductPriceBySellerCode($this->_parameters); |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
/** |
| 223 |
|
* @param array $data |