create order -> upload bill
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user