feat(payment): fix zibal refund api, add maskable fields, receipt modal, standardized buttons and order refund options
Deploy Canina / deploy (push) Successful in 41s
Deploy Canina / deploy (push) Successful in 41s
This commit is contained in:
1 parent
f9e40564cf
commit
d62787cd99
22 files changed
+10934
-9318
No files matched your search
@@ -172,6 +172,21 @@ export class AdminController {
|
||||
return { success: true, data: order };
|
||||
}
|
||||
|
||||
@Post('orders/:id/refund-wallet')
|
||||
@ApiOperation({ summary: 'استرداد مستقیم مبلغ سفارش به کیف پول کاربر' })
|
||||
async refundOrderToWallet(
|
||||
@Param('id') id: string,
|
||||
@Body('amount') amount?: number,
|
||||
@Body('reason') reason?: string,
|
||||
) {
|
||||
const result = await this.adminService.refundOrderToWallet(
|
||||
id,
|
||||
amount ? Number(amount) : undefined,
|
||||
reason,
|
||||
);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Get('coupons')
|
||||
@ApiOperation({ summary: 'لیست کد تخفیفها' })
|
||||
@ApiQuery({ name: 'page', required: false, description: 'شماره صفحه' })
|
||||
|
||||
Reference in new issue
Block a user