Hide prices until admin sends the invoice, enforce status transitions, add customer/admin SMS+in-app notifications, schedule cash invoice reminders, and ship updated dist/prisma-client/deploy-bundle for git-pull deploys. Co-authored-by: Cursor <cursoragent@cursor.com>
70 lines
1.8 KiB
TypeScript
70 lines
1.8 KiB
TypeScript
import { CheckRegistrationMode, OrderStatus, SettlementType } from '@prisma/client';
|
|
export declare class SubmitOrderItemDto {
|
|
productId: string;
|
|
meterage: number;
|
|
requestedMeterage?: number;
|
|
notes?: string;
|
|
}
|
|
export declare class SubmitOrderCheckDto {
|
|
amount: number;
|
|
dueDate: string;
|
|
sayadId?: string;
|
|
checkNumber?: string;
|
|
ownerNationalId?: string;
|
|
ownerFirstName?: string;
|
|
ownerLastName?: string;
|
|
bankName?: string;
|
|
branchName?: string;
|
|
frontImage?: string;
|
|
backImage?: string;
|
|
notes?: string;
|
|
mode?: CheckRegistrationMode;
|
|
}
|
|
export declare class SubmitOrderDto {
|
|
companyId: string;
|
|
settlementType?: SettlementType;
|
|
settlementMethod?: SettlementType;
|
|
checkMode?: CheckRegistrationMode;
|
|
notes?: string;
|
|
items: SubmitOrderItemDto[];
|
|
checks?: SubmitOrderCheckDto[];
|
|
}
|
|
export declare class ChooseSettlementDto {
|
|
settlementType: SettlementType;
|
|
checkMode?: CheckRegistrationMode;
|
|
}
|
|
export declare class AdminCreateOrderDto {
|
|
userId?: string;
|
|
customerPhone?: string;
|
|
customerName?: string;
|
|
companyId: string;
|
|
settlementType?: SettlementType;
|
|
settlementMethod?: SettlementType;
|
|
meterage?: number;
|
|
notes?: string;
|
|
items?: SubmitOrderItemDto[];
|
|
}
|
|
export declare class OrderItemPricingDto {
|
|
id: string;
|
|
confirmedMeterage?: number;
|
|
unitPrice?: number;
|
|
supplyPrice?: number;
|
|
unitDiscount?: number;
|
|
}
|
|
export declare class UpdateOrderPricingDto {
|
|
items: OrderItemPricingDto[];
|
|
shippingCost?: number;
|
|
totalDiscount?: number;
|
|
note?: string;
|
|
}
|
|
export declare class UpdateOrderStatusDto {
|
|
status: OrderStatus;
|
|
note?: string;
|
|
reason?: string;
|
|
force?: boolean;
|
|
}
|
|
export declare class UpdateOrderChecksDto {
|
|
checks: SubmitOrderCheckDto[];
|
|
checkMode?: CheckRegistrationMode;
|
|
}
|