public ShopifyResponse<ShopifyOrder> GetOrder(ShopifyStoreAuth storeAuth, int orderId)
{
//Ensure the orderID makes sense
if (orderId < 0)
{
Logger.Warn("ShopifyCommunicator::GetOrder(): Was passed orderId<0, returning null");
return null;
}
//Retrieve the order from shopify
XmlDocument retrievedOrder =
ShopifyGet(
(_protocol + storeAuth.StoreSubDomain + _domain + "/admin/orders/" + orderId + ".xml"),
HashString(_appAuth.Secret + storeAuth.StoreAuthToken));
//Create e responseObject out of the response.
return new ShopifyResponse<ShopifyOrder>(retrievedOrder);
}