getPurchaseOrder method

Future<PurchaseOrder> getPurchaseOrder(
  1. String orderId
)

Get purchase order by ID

Implementation

Future<PurchaseOrder> getPurchaseOrder(String orderId) async {
  final response = await _apiClient.get<Map<String, dynamic>>(
    '/api/v1/purchase/orders/$orderId',
  );

  return PurchaseOrder.fromJson(response);
}