示例#1
0
 private static char Mask(OrderCommentTarget data)
 {
     switch (data)
     {
         case OrderCommentTarget.Contribution: return 'C';
         case OrderCommentTarget.LineItem: return 'L';
         case OrderCommentTarget.Order: return 'O';
     }
     throw new ApiParameterMaskException(data.ToString());
 }
示例#2
0
        private static void DoAddOrderComment(string sessionKey, string comment,
				OrderCommentTarget target, int? targetId, int? constituentId, int? categoryId)
        {
            SecureTess.AddOrderCommentsEx2(
                    SessionKey: Mask(sessionKey),
                    Comment: Mask(comment),
                    LineItemID: targetId ?? 0,
                    LineItemType: Mask(target),
                    CustomerNo: constituentId ?? 0,
                    CategoryNo: categoryId ?? 0);
        }