@@ 135-145 (lines=11) @@ | ||
132 | * Girilen indirim miktarı ürün listeleme fiyatına uygulanır. |
|
133 | * Liste fiyatı ile ürünün indirimli fiyatı arasındaki fark kadar ürün stok birim fiyatlarına da indirim uygulanır. |
|
134 | */ |
|
135 | public function updateDiscountValueByProductId(int $productId, int $discountType = self::DISCOUNT_AMOUNT, float $discountValue = 0, string $startDate = null, string $endDate = null): object |
|
136 | { |
|
137 | $this->_parameters["productId"] = $productId; |
|
138 | $this->_parameters["discountType"] = $discountType; |
|
139 | $this->_parameters["productDiscount"] = [ |
|
140 | "discountValue" => $discountValue, |
|
141 | "discountStartDate" => $startDate, |
|
142 | "discountEndDate" => $endDate, |
|
143 | ]; |
|
144 | return $this->_client->UpdateDiscountValueByProductId($this->_parameters); |
|
145 | } |
|
146 | ||
147 | /** |
|
148 | * @param string $productSellerCode |
|
@@ 158-168 (lines=11) @@ | ||
155 | * Girilen indirim miktarı ürün listeleme fiyatına uygulanır. |
|
156 | * Liste fiyatı ile ürünün indirimli fiyatı arasındaki fark kadar ürün stok birim fiyatlarına da indirim uygulanır. |
|
157 | */ |
|
158 | public function updateDiscountValueByProductSellerCode(string $productSellerCode, int $discountType = self::DISCOUNT_AMOUNT, float $discountValue = 0, string $startDate = null, string $endDate = null): object |
|
159 | { |
|
160 | $this->_parameters["productSellerCode"] = $productSellerCode; |
|
161 | $this->_parameters["discountType"] = $discountType; |
|
162 | $this->_parameters["productDiscount"] = [ |
|
163 | "discountValue" => $discountValue, |
|
164 | "discountStartDate" => $startDate, |
|
165 | "discountEndDate" => $endDate, |
|
166 | ]; |
|
167 | return $this->_client->UpdateDiscountValueByProductSellerCode($this->_parameters); |
|
168 | } |
|
169 | ||
170 | /** |
|
171 | * @param int $productId |