Exemple #1
0
        public void ListOrderByCreatedAt()
        {
            Webhook.Order orderDesc = Webhook.CreateOrder().ByCreatedAt().Desc();
            Webhook.Order orderAsc  = Webhook.CreateOrder().ByCreatedAt().Asc();

            List <Webhook> webhooksDesc = _paymill.WebhookService.ListAsync(null, orderDesc).Result.Data;
            List <Webhook> webhooksAsc  = _paymill.WebhookService.ListAsync(null, orderAsc).Result.Data;

            if (webhooksDesc.Count > 1 &&
                webhooksAsc.Count > 1)
            {
                Assert.AreNotEqual(webhooksDesc[0].Id, webhooksAsc[0].Id);
            }
        }
 /// <summary>
 /// This function returns a <see cref="PaymillList"/> of PAYMILL objects. In which order this list is returned depends on the
 /// optional parameters. If null is given, no filter or order will be applied, overriding the default count and
 /// offset.
 /// </summary>
 /// <param name="filter">Filter or null</param>
 /// <param name="order">Order or null.</param>
 /// <param name="count">Max count of returned objects in the PaymillList</param>
 /// <param name="offset">The offset to start from.</param>
 /// <returns>PaymillList which contains a List of PAYMILL objects and their total count.</returns>
 public async Task <PaymillWrapper.Models.PaymillList <Webhook> > ListAsync(Webhook.Filter filter, Webhook.Order order, int?count, int?offset)
 {
     return(await base.listAsync(filter, order, count, offset));
 }
 /// This function returns a <see cref="PaymillList"/>of PAYMILL Client objects. In which order this list is returned depends on the
 /// </summary>
 /// <param name="filter">Filter or null</param>
 /// <param name="order">Order or null.</param>
 /// <returns>PaymillList which contains a List of PAYMILL Client object and their total count.</returns>
 public async Task <PaymillWrapper.Models.PaymillList <Webhook> > ListAsync(Webhook.Filter filter, Webhook.Order order)
 {
     return(await base.listAsync(filter, order, null, null));
 }