예제 #1
0
        /// <summary>
        /// Finds the carts.
        /// </summary>
        /// <param name="parameters">The parameters.</param>
        /// <param name="options">The options.</param>
        /// <param name="totalRecords">The total records.</param>
        /// <returns></returns>
        public Cart[] FindCarts(OrderSearchParameters parameters, OrderSearchOptions options, out int totalRecords)
        {
            OrderSearch search = new OrderSearch(this);

            search.SearchOptions    = options;
            search.SearchParameters = parameters;
            MetaStorageCollectionBase <Cart> orders = Cart.Search(search, out totalRecords);

            return(orders.ToArray());
        }
예제 #2
0
        /// <summary>
        /// Finds the organizations.
        /// </summary>
        /// <param name="parameters">The parameters.</param>
        /// <param name="options">The options.</param>
        /// <param name="totalRecords">The total records.</param>
        /// <returns></returns>
        public Organization[] FindOrganizations(ProfileSearchParameters parameters, ProfileSearchOptions options, out int totalRecords)
        {
            ProfileSearch search = new ProfileSearch(this);

            search.SearchOptions    = options;
            search.SearchParameters = parameters;

            MetaStorageCollectionBase <Organization> orgs = Organization.Search(search, out totalRecords);

            return(orgs.ToArray());
        }
예제 #3
0
        /// <summary>
        /// Finds the accounts.
        /// </summary>
        /// <param name="parameters">The parameters.</param>
        /// <param name="options">The options.</param>
        /// <param name="totalRecords">The total records.</param>
        /// <returns></returns>
        public Account[] FindAccounts(ProfileSearchParameters parameters, ProfileSearchOptions options, out int totalRecords)
        {
            ProfileSearch search = new ProfileSearch(this);

            search.SearchOptions    = options;
            search.SearchParameters = parameters;

            MetaStorageCollectionBase <Account> accounts = Account.Search(search, out totalRecords);

            return(accounts.ToArray());
        }
예제 #4
0
        /// <summary>
        /// Finds the payment plans.
        /// </summary>
        /// <param name="parameters">The parameters.</param>
        /// <param name="options">The options.</param>
        /// <param name="totalRecords">The total records.</param>
        /// <returns></returns>
        public PaymentPlan[] FindPaymentPlans(OrderSearchParameters parameters, OrderSearchOptions options, out int totalRecords)
        {
            OrderSearch search = new OrderSearch(this);

            search.SearchOptions    = options;
            search.SearchParameters = parameters;

            MetaStorageCollectionBase <PaymentPlan> orders = PaymentPlan.Search(search, out totalRecords);

            return(orders.ToArray());
        }
예제 #5
0
        /// <summary>
        /// Gets the payment plans.
        /// </summary>
        /// <param name="customerId">The customer id.</param>
        /// <returns></returns>
        public PaymentPlan[] GetPaymentPlans(Guid customerId)
        {
            MetaStorageCollectionBase <PaymentPlan> orders = PaymentPlan.LoadByCustomer(customerId);

            return(orders.ToArray());
        }
예제 #6
0
        /// <summary>
        /// Gets the purchase orders.
        /// </summary>
        /// <param name="customerId">The customer id.</param>
        /// <returns></returns>
        public PurchaseOrder[] GetPurchaseOrders(Guid customerId)
        {
            MetaStorageCollectionBase <PurchaseOrder> orders = PurchaseOrder.LoadByCustomer(customerId);

            return(orders.ToArray());
        }