69 lines
2.5 KiB
TypeScript
69 lines
2.5 KiB
TypeScript
import { CashPaymentStatus } from '@prisma/client';
|
|||
|
|
import { CashPaymentsService } from './cash-payments.service';
|
||
|
|
import type { AuthPrincipal } from '../common/decorators/current-user.decorator';
|
||
|
|
import { SubmitCashReceiptDto, UpdateCashPaymentStatusDto } from './dto/cash-payment.dto';
|
||
|
|
export declare class CashPaymentsController {
|
||
|
|
private readonly cashPaymentsService;
|
||
|
|
constructor(cashPaymentsService: CashPaymentsService);
|
||
|
|
submitReceipt(user: AuthPrincipal, orderId: string, dto: SubmitCashReceiptDto): Promise<{
|
||
|
|
id: string;
|
||
|
|
orderId: string;
|
||
|
|
orderNumber: string;
|
||
|
|
customerName: string;
|
||
|
|
amount: number;
|
||
|
|
paidAmount: number | null;
|
||
|
|
transferDate: string | null;
|
||
|
|
transferTime: string | undefined;
|
||
|
|
trackingNumber: string;
|
||
|
|
trackingCode: string;
|
||
|
|
destinationAccountId: string | undefined;
|
||
|
|
receiptImage: string | undefined;
|
||
|
|
notes: string | undefined;
|
||
|
|
expiresAt: string;
|
||
|
|
status: import("@prisma/client").$Enums.CashPaymentStatus;
|
||
|
|
submittedAt: string | undefined;
|
||
|
|
createdAt: string;
|
||
|
|
updatedAt: string;
|
||
|
|
}>;
|
||
|
|
findAll(status?: CashPaymentStatus): Promise<{
|
||
|
|
id: string;
|
||
|
|
orderId: string;
|
||
|
|
orderNumber: string;
|
||
|
|
customerName: string;
|
||
|
|
amount: number;
|
||
|
|
paidAmount: number | null;
|
||
|
|
transferDate: string | null;
|
||
|
|
transferTime: string | undefined;
|
||
|
|
trackingNumber: string;
|
||
|
|
trackingCode: string;
|
||
|
|
destinationAccountId: string | undefined;
|
||
|
|
receiptImage: string | undefined;
|
||
|
|
notes: string | undefined;
|
||
|
|
expiresAt: string;
|
||
|
|
status: import("@prisma/client").$Enums.CashPaymentStatus;
|
||
|
|
submittedAt: string | undefined;
|
||
|
|
createdAt: string;
|
||
|
|
updatedAt: string;
|
||
|
|
}[]>;
|
||
|
|
updateStatus(user: AuthPrincipal, id: string, dto: UpdateCashPaymentStatusDto): Promise<{
|
||
|
|
id: string;
|
||
|
|
orderId: string;
|
||
|
|
orderNumber: string;
|
||
|
|
customerName: string;
|
||
|
|
amount: number;
|
||
|
|
paidAmount: number | null;
|
||
|
|
transferDate: string | null;
|
||
|
|
transferTime: string | undefined;
|
||
|
|
trackingNumber: string;
|
||
|
|
trackingCode: string;
|
||
|
|
destinationAccountId: string | undefined;
|
||
|
|
receiptImage: string | undefined;
|
||
|
|
notes: string | undefined;
|
||
|
|
expiresAt: string;
|
||
|
|
status: import("@prisma/client").$Enums.CashPaymentStatus;
|
||
|
|
submittedAt: string | undefined;
|
||
|
|
createdAt: string;
|
||
|
|
updatedAt: string;
|
||
|
|
}>;
|
||
|
|
}
|