예제 #1
0
        /// <summary>
        /// Get the next page of scan forms based on the original parameters passed to ScanForm.List().
        /// </summary>
        /// <returns>A new EasyPost.ScanFormList instance.</returns>
        public ScanFormList Next()
        {
            filters = filters ?? new Dictionary <string, object>();
            filters["before_id"] = scanForms.Last().id;

            return(ScanForm.List(filters));
        }
예제 #2
0
 /// <summary>
 /// Creates a new ScanForm
 /// </summary>
 /// <param name="model">The ScanForm to be created on the server</param>
 /// <returns>A fully populated ScanForm, included the new Id</returns>
 /// <seealso cref="http://www.easypost.com/docs#scan-forms"/>
 public ScanForm CreateScanForm(ScanForm model)
 {
     return(Execute <ScanForm>(model, EasyPostUrls.SCAN_FORMS));
 }