extends |
Model |
---|
Class Voucher
Methods | ||
---|---|---|
public
|
addVoucher(int $order_id, array<string, mixed> $data): int
|
# |
public
|
deleteVouchersByOrderId(int $order_id): void
|
# |
public
|
disableVoucher(int $order_id): void
|
# |
public
|
getVoucher(string $code): array<string, mixed>
|
# |
public
|
getVoucherByCode(string $code): array<string, mixed>
|
# |
public
|
getVoucherTotal(int $voucher_id): float
|
# |
public
|
addHistory(int $voucher_id, int $order_id, float $value): int
|
# |
public
|
deleteHistoriesByOrderId(int $order_id): void
|
# |
Methods inherited from Opencart\System\Engine\Model |
---|
__construct(), __get(), __set(), __isset() |
Properties inherited from Opencart\System\Engine\Model |
---|
$registry |