public void Apply(ApiCallbackResponse response) { response.Plain.Salt = SaltProvider.Generate(); string scriptPath = response.Endpoint.GetScriptPath(); List<string> values = _valueProvider.GetValuesToSign(response.Plain); response.Plain.Signature = Sign(scriptPath, values); }
public string Serialize(ApiCallbackResponse request) { Ensure.ArgumentNotNull(request, nameof(request)); return(Serialize(request.Plain, ResponseRoot)); }