示例#1
0
 /// <summary>
 /// Get the next page of shipments based on the original parameters used to generate the list
 /// </summary>
 /// <param name="client">Easy post client to use</param>
 /// <returns>A new ShipmentList instance.</returns>
 public async Task<ShipmentList> Next(
     IEasyPostClient client)
 {
     var options = Options ?? new ShipmentListOptions();
     options.BeforeId = Shipments.Last().Id;
     return await client.ListShipments(options);
 }
示例#2
0
        /// <summary>
        /// Get the next page of reports based on the original parameters used to generate the list
        /// </summary>
        /// <param name="client">Easy post client to use</param>
        /// <returns>A new ReportList instance.</returns>
        public async Task <ReportList> Next(
            IEasyPostClient client)
        {
            var options = Options ?? new ReportListOptions();

            options.BeforeId = Reports.Last().Id;
            return(await client.ListReports(Type, options));
        }
        /// <summary>
        /// Get the next page of scan forms based on the original parameters used to generate the list
        /// </summary>
        /// <param name="client">Easy post client to use</param>
        /// <returns>A new ScanFormList instance.</returns>
        public async Task <ScanFormList> Next(
            IEasyPostClient client)
        {
            var options = Options ?? new ScanFormListOptions();

            options.BeforeId = ScanForms.Last().Id;
            return(await client.ListScanForms(options));
        }
示例#4
0
        /// <summary>
        /// Get the next page of shipments based on the original parameters used to generate the list
        /// </summary>
        /// <param name="client">Easy post client to use</param>
        /// <returns>A new ShipmentList instance.</returns>
        public async Task <TrackerList> Next(
            IEasyPostClient client)
        {
            var options = Options ?? new TrackerListOptions();

            options.BeforeId = Trackers.Last().Id;
            return(await client.ListTrackers(options));
        }
示例#5
0
 public void Setup()
 {
     _client = new EasyPostClient(TEST_API_KEY);
 }