public List<salesOrderEntity> GetNewMagentoOrders() { var table = new ProcessedOrders(); var lastOrder = table.All(where: "where store = @0", args: "Magento", orderBy: "storeentityid DESC", limit: 1).First(); filters mf = new filters(); complexFilter[] cpf = new complexFilter[1]; complexFilter mcpf = new complexFilter(); mcpf.key = "entity_id"; //"increment_id";// associativeEntity mas = new associativeEntity(); mas.key = "gt"; mas.value = lastOrder.StoreEntityId; //"CDO00022569"; mcpf.value = mas; cpf[0] = mcpf; mf.complex_filter = cpf; salesOrderEntity[] soe = _mservice.salesOrderList(_mlogin, mf); return soe.ToList(); }
public salesOrderShipmentEntity[] salesOrderShipmentList(string sessionId, filters filters) { object[] results = this.Invoke("salesOrderShipmentList", new object[] { sessionId, filters}); return ((salesOrderShipmentEntity[])(results[0])); }
public customerCustomerEntity[] customerCustomerList(string sessionId, filters filters) { object[] results = this.Invoke("customerCustomerList", new object[] { sessionId, filters}); return ((customerCustomerEntity[])(results[0])); }
public catalogProductEntity[] catalogProductList(string sessionId, filters filters, string storeView) { object[] results = this.Invoke("catalogProductList", new object[] { sessionId, filters, storeView}); return ((catalogProductEntity[])(results[0])); }
public catalogAssignedProductDetail catalogCategoryAssignedProductsDetail(string sessionId, int categoryId, string storeView, filters filters) { object[] results = this.Invoke("catalogCategoryAssignedProductsDetail", new object[] { sessionId, categoryId, storeView, filters}); return ((catalogAssignedProductDetail)(results[0])); }
/// <remarks/> public System.IAsyncResult BeginsalesOrderShipmentList(string sessionId, filters filters, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("salesOrderShipmentList", new object[] { sessionId, filters}, callback, asyncState); }
/// <remarks/> public System.IAsyncResult BegincustomerCustomerList(string sessionId, filters filters, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("customerCustomerList", new object[] { sessionId, filters}, callback, asyncState); }
/// <remarks/> public System.IAsyncResult BegincatalogProductList(string sessionId, filters filters, string storeView, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("catalogProductList", new object[] { sessionId, filters, storeView}, callback, asyncState); }
/// <remarks/> public System.IAsyncResult BegincatalogCategoryAssignedProductsDetail(string sessionId, int categoryId, string storeView, filters filters, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("catalogCategoryAssignedProductsDetail", new object[] { sessionId, categoryId, storeView, filters}, callback, asyncState); }
public List<salesOrderEntity> GetUpdateMagentoOrders() { var table = new ProcessedOrders(); var lastUpdatedOrder = table.All(where: "where store = @0", args: "Magento", orderBy: "storeupdatedat DESC", limit: 1).First(); var d = lastUpdatedOrder.StoreUpdatedAt.AddSeconds(-2).ToUniversalTime().ToString("yyyy-MM-dd HH:mm:ss"); filters mf = new filters(); complexFilter[] cpf = new complexFilter[1]; complexFilter mcpf = new complexFilter(); mcpf.key = "updated_at"; associativeEntity mas = new associativeEntity(); mas.key = "gt"; mas.value = lastUpdatedOrder.StoreUpdatedAt.AddSeconds(-2).ToUniversalTime().ToString("yyyy-MM-dd HH:mm:ss"); mcpf.value = mas; cpf[0] = mcpf; mf.complex_filter = cpf; salesOrderEntity[] soe = _mservice.salesOrderList(_mlogin, mf); return soe.ToList(); }