예제 #1
0
        private string InvoiceMessageAction(InvoiceMessageAction action)
        {
            var memberInfo = action.GetType().GetMember(action.ToString())
                             .FirstOrDefault();

            return(((DescriptionAttribute)memberInfo?.GetCustomAttributes(typeof(DescriptionAttribute), false).FirstOrDefault())?.Description);
        }
예제 #2
0
 public async Task <bool> MarkInvoiceAsync(long invoiceId, string body, InvoiceMessageAction action, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await _createInvoiceMessageActionAsync(invoiceId, body, InvoiceMessageAction(action), cancellationToken));
 }
예제 #3
0
 public bool MarkInvoice(long invoiceId, string body, InvoiceMessageAction action)
 {
     return(_createInvoiceMessageAction(invoiceId, body, InvoiceMessageAction(action)));
 }