@receeco/pos-agent
Version:
Receeco POS Integration Middleware Agent
65 lines • 1.5 kB
TypeScript
export interface TransactionItem {
name: string;
quantity: number;
unitPrice: number;
totalPrice: number;
sku?: string;
category?: string;
}
export interface TransactionData {
merchantId: string;
merchantName?: string;
merchantLogo?: string;
accentColor?: string;
items: TransactionItem[];
totalAmount: number;
currency?: string;
paymentMethod?: string;
location?: string;
timestamp?: string;
transactionId?: string;
cashierId?: string;
terminalId?: string;
}
export interface ProcessedTransaction {
receiptId: string;
receiptUrl: string;
qrCodeUrl: string;
qrCodeSvg: string;
shortCode: string;
deepLinkUrl: string;
status: "success" | "error";
timestamp: string;
error?: string;
}
export interface POSConfig {
merchantId: string;
merchantName: string;
apiKey: string;
rececoApiUrl: string;
enableOfflineMode: boolean;
printQRCodes: boolean;
terminalId?: string;
}
export interface WebhookPayload {
event: string;
data: any;
timestamp: string;
signature?: string;
}
export interface AgentConfig {
merchantId: string;
apiUrl: string;
webUrl: string;
apiKey: string;
port: number;
offlineMode: boolean;
logLevel: string;
}
export interface ReceiptStatusUpdate {
receiptId: string;
status: "pending" | "viewed" | "downloaded";
timestamp: string;
userId?: string;
}
//# sourceMappingURL=index.d.ts.map