Skip to content

Commit

Permalink
Reseller addfunds added
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanersu committed Feb 18, 2019
1 parent f21bf17 commit f230b36
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Api/Reseller.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,16 @@ public function loginToken($id, $ip)
'ip' => $ip,
], 'GET', false);
}

public function addFunds($id, $amount, $description, $transactionType = 'credit', $transactionKey = false, $updateTotal = true)
{
return $this->request('billing/add-reseller-fund.json', [
'reseller-id' => $id,
'amount' => $amount,
'description' => $description,
'transaction-type' => $transactionType,
'transaction-key' => $transactionKey ?? md5(uniqid($id, true)),
'update-total-receipt' => $updateTotal,
], 'POST', false);
}
}

0 comments on commit f230b36

Please sign in to comment.