Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="salesItem"></param>
        /// <param name="action"></param>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        private T GetAcquireAction <T>(
            EzSalesItem salesItem,
            string action
            )
        {
            var item = salesItem.AcquireActions.FirstOrDefault(acquireAction => acquireAction.Action == action);

            if (item == null)
            {
                return(default);
Example #2
0
 public EzBuyResult(
     BuyResult result
     )
 {
     if (result.item != null)
     {
         Item = new EzSalesItem(result.item);
     }
     StampSheet = result.stampSheet;
     StampSheetEncryptionKeyId = result.stampSheetEncryptionKeyId;
 }
Example #3
0
 public SalesItem(string displayItemId, EzSalesItem item)
 {
     DisplayItemId = displayItemId;
     _item         = item;
 }