public OneSpanSign.API.Verification ToAPISignerVerification() { if (sdkSignerVerification == null) { return(apiSignerVerification); } OneSpanSign.API.Verification result = new OneSpanSign.API.Verification(); result.TypeId = sdkSignerVerification.TypeId; result.Payload = sdkSignerVerification.Payload; return(result); }
internal void UpdateSignerVerification(PackageId packageId, string roleId, OneSpanSign.API.Verification verification) { string path = template.UrlFor(UrlTemplate.UPDATE_SIGNER_VERIFICATION_PATH) .Replace("{packageId}", packageId.Id) .Replace("{roleId}", roleId) .Build(); try { string json = JsonConvert.SerializeObject(verification, settings); restClient.Put(path, json); } catch (OssServerException e) { throw new OssServerException("Could not update signer verification." + " Exception: " + e.Message, e.ServerError, e); } catch (Exception e) { throw new OssException("Could not add update verification." + " Exception: " + e.Message, e); } }
public SignerVerificationConverter(OneSpanSign.API.Verification verification) { this.apiSignerVerification = verification; }