Methods |
public
|
addVoucher(array<string, mixed> $data): int
|
#
|
public
|
editVoucher(int $voucher_id, array<string, mixed> $data): void
|
#
|
public
|
deleteVoucher(int $voucher_id): void
|
#
|
public
|
getVoucher(int $voucher_id): array<string, mixed>
|
#
|
public
|
getVoucherByCode(string $code): array<string, mixed>
|
#
|
public
|
getVouchers(array<string, mixed> $data = []): array<int, array<string, mixed>>
|
#
|
public
|
getTotalVouchers(): int
|
#
|
public
|
getTotalVouchersByVoucherThemeId(int $voucher_theme_id): int
Get Total Vouchers By Voucher Theme ID
Get Total Vouchers By Voucher Theme ID
|
#
|
public
|
deleteHistories(int $voucher_id): void
|
#
|
public
|
deleteHistoriesByOrderId(int $order_id): void
Delete Voucher Histories By Order ID
Delete Voucher Histories By Order ID
|
#
|
public
|
getHistories(int $voucher_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>
|
#
|
public
|
getTotalHistories(int $voucher_id): int
|
#
|