Add updateBalance method to credit service
This commit is contained in:
parent
d870bb5a87
commit
3c23d5e31f
1 changed files with 7 additions and 0 deletions
|
|
@ -104,6 +104,13 @@ class CreditService
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function updateBalance($adjustment)
|
||||
{
|
||||
$this->credit->balance -= $adjustment;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function fillDefaults()
|
||||
{
|
||||
$settings = $this->credit->client->getMergedSettings();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue