/// <summary> /// /// </summary> ///<param name="updateAuthorizationReq"></param> ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> public UpdateAuthorizationResponseType UpdateAuthorization(UpdateAuthorizationReq updateAuthorizationReq, ICredential credential) { setStandardParams(updateAuthorizationReq.UpdateAuthorizationRequest); DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(this.config, updateAuthorizationReq.ToXMLString(null, "UpdateAuthorizationReq"), null, null); IAPICallPreHandler apiCallPreHandler = new MerchantAPICallPreHandler(this.config, defaultHandler, credential); ((MerchantAPICallPreHandler) apiCallPreHandler).SDKName = SDKName; ((MerchantAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion; ((MerchantAPICallPreHandler) apiCallPreHandler).PortName = "PayPalAPIAA"; XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(Call(apiCallPreHandler)); return new UpdateAuthorizationResponseType( xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='UpdateAuthorizationResponse']") ); }
/// <summary> /// /// </summary> ///<param name="updateAuthorizationReq"></param> public UpdateAuthorizationResponseType UpdateAuthorization(UpdateAuthorizationReq updateAuthorizationReq) { return UpdateAuthorization(updateAuthorizationReq,(string) null); }