create order -> upload bill

This commit is contained in:
Phuoc Nguyen
2025-11-24 14:53:48 +07:00
parent 42d91a5a99
commit 354df3ad01
8 changed files with 545 additions and 71 deletions

View File

@@ -65,4 +65,19 @@ class OrderRepositoryImpl implements OrderRepository {
throw Exception('Failed to generate QR code: $e');
}
}
@override
Future<Map<String, dynamic>> uploadBill({
required String filePath,
required String orderId,
}) async {
try {
return await _remoteDataSource.uploadBill(
filePath: filePath,
orderId: orderId,
);
} catch (e) {
throw Exception('Failed to upload bill: $e');
}
}
}