|
@@ 1683-1692 (lines=10) @@
|
| 1680 |
|
* @param int $status The status to set (-1 to cancel, 0 to pending, 1 to completed)
|
| 1681 |
|
* @return array
|
| 1682 |
|
*/
|
| 1683 |
|
public function setStatusPayouts($payoutId, $status)
|
| 1684 |
|
{
|
| 1685 |
|
$payoutsTable = Database::get_main_table(self::TABLE_PAYPAL_PAYOUTS);
|
| 1686 |
|
|
| 1687 |
|
Database::update(
|
| 1688 |
|
$payoutsTable,
|
| 1689 |
|
['status' => intval($status)],
|
| 1690 |
|
['id = ?' => intval($payoutId)]
|
| 1691 |
|
);
|
| 1692 |
|
}
|
| 1693 |
|
|
| 1694 |
|
/**
|
| 1695 |
|
* Gets the stored platform commission params
|
|
@@ 2141-2150 (lines=10) @@
|
| 2138 |
|
* @param int $newStatus The new status
|
| 2139 |
|
* @return boolean
|
| 2140 |
|
*/
|
| 2141 |
|
private function updateServiceSaleStatus($serviceSaleId, $newStatus = self::SERVICE_STATUS_PENDING)
|
| 2142 |
|
{
|
| 2143 |
|
$serviceSaleTable = Database::get_main_table(self::TABLE_SERVICES_SALE);
|
| 2144 |
|
|
| 2145 |
|
return Database::update(
|
| 2146 |
|
$serviceSaleTable,
|
| 2147 |
|
['status' => intval($newStatus)],
|
| 2148 |
|
['id = ?' => intval($serviceSaleId)]
|
| 2149 |
|
);
|
| 2150 |
|
}
|
| 2151 |
|
|
| 2152 |
|
/**
|
| 2153 |
|
* Register a Service sale
|