holdOrder method
Hold order
Implementation
Future<bool> holdOrder(String orderId) async {
try {
final response = await _client.authenticatedRequest<Map<String, dynamic>>(
'/rest/V1/orders/$orderId/hold',
options: Options(method: 'POST'),
);
return response.statusCode == 200;
} on DioException catch (e) {
throw Exception('Failed to hold order: ${e.message}');
} catch (e) {
throw Exception('Failed to hold order: $e');
}
}