|
|
|
|
|
|
|
|
$this->producerSolver = $this->loadService(ProducerSolver::class); |
|
|
$this->producerSolver = $this->loadService(ProducerSolver::class); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function creditUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment): void |
|
|
|
|
|
|
|
|
public function creditUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment = null): void |
|
|
{ |
|
|
{ |
|
|
$this->paymentBuilder->createPayment( |
|
|
$this->paymentBuilder->createPayment( |
|
|
Payment::TYPE_CREDIT, |
|
|
Payment::TYPE_CREDIT, |
|
|
|
|
|
|
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function debitUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment): void |
|
|
|
|
|
|
|
|
public function debitUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment = null): void |
|
|
{ |
|
|
{ |
|
|
$this->paymentBuilder->createPayment( |
|
|
$this->paymentBuilder->createPayment( |
|
|
Payment::TYPE_DEBIT, |
|
|
Payment::TYPE_DEBIT, |