Skip to content

Instantly share code, notes, and snippets.

View StephenPAdams's full-sized avatar
💭
In search of more hours in the day

Stephen Adams StephenPAdams

💭
In search of more hours in the day
View GitHub Profile
@StephenPAdams
StephenPAdams / gist:d3a9ec8c41eea5bbef7acde71ace08c2
Created August 22, 2017 22:54
DotNetShipping - Response (USPS)
<?xml version="1.0" encoding="UTF-8"?>
<RateV4Response>
<Package ID="0">
<ZipOrigination>21401</ZipOrigination>
<ZipDestination>54937</ZipDestination>
<Pounds>2</Pounds>
<Ounces>0</Ounces>
<Size>LARGE</Size>
<Machinable>TRUE</Machinable>
<Zone>5</Zone>
@StephenPAdams
StephenPAdams / examineProductSearch
Created July 14, 2016 15:59
Examine Product Search
/// <summary>
/// Retrieves products by product category ids, tag ids, etc.
/// </summary>
/// <param name="productCategoryIds"></param>
/// <param name="tagIds"></param>
/// <param name="memberTypeIds"></param>
/// <param name="maxItems"></param>
/// <param name="pageNumber"></param>
/// <param name="pagingInfo"></param>
/// <param name="sortBy"></param>
@StephenPAdams
StephenPAdams / weightedExamineSearch
Last active July 14, 2016 15:49
Weighted Examine Search
/// <summary>
/// List of products, ordered by weight
/// </summary>
/// <param name="searchTerm"></param>
/// <param name="maxItems"></param>
/// <param name="pageNumber"></param>
/// <param name="memberTypeIds"></param>
/// <param name="pagingInfo"></param>
/// <returns>List of SearchResultItems</returns>
public IList<BaseProduct> SearchProducts(string searchTerm, int maxItems, int pageNumber, IList<int> memberTypeIds, out PagingInfo pagingInfo)