Connectster.Shopify.ShopifyCommunicator.GetOrder C# (CSharp) 메소드

GetOrder() 공개 메소드

public GetOrder ( ShopifyStoreAuth storeAuth, int orderId ) : ShopifyResponse
storeAuth ShopifyStoreAuth
orderId int
리턴 ShopifyResponse
        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);
        }