public bool CanSendInvoice(string authToken, string boxId, byte[] certificateBytes) { if (string.IsNullOrEmpty(boxId)) { throw new ArgumentNullException("boxId"); } if (certificateBytes == null || certificateBytes.Length == 0) { throw new ArgumentNullException("certificateBytes"); } return(diadocHttpApi.CanSendInvoice(authToken, boxId, certificateBytes)); }