public async Task <List <OrderAsyncModel> > GetOrderList(ShopResponseDto shop, DateTime startTime, DateTime endTime)
        {
            var res = await _client.GetRequestAsync <OrderListResponse>(new OrderRequest(shop.ApiUrl, shop.ApiKey, shop.ApiKeyValue) {
                created_at_min = startTime,
                created_at_max = endTime
            });

            return(res.orders.MapTo <List <OrderAsyncModel> >());
        }
        public async Task <List <OrderAsyncModel> > GetOrderList(ShopResponseDto shop, DateTime startTime, DateTime endTime)
        {
            var list = new List <OrderAsyncModel>();

            for (int page = 1; ; page++)
            {
                var res = await _client.GetRequestAsync(new OrderListRequest(shop.ApiKey, shop.ApiKeyValue, shop.ShareKey)
                {
                    page       = page,
                    limit      = 100,
                    time_start = startTime,
                    time_end   = endTime
                });

                if (res.data.data.Count == 0)
                {
                    break;
                }
                list.AddRange(res.data.data.MapTo <List <OrderAsyncModel> >());
            }
            return(list);
        }