/// <summary> /// /// </summary> ///<param name="initiateRecoupReq"></param> ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> public InitiateRecoupResponseType InitiateRecoup(InitiateRecoupReq initiateRecoupReq, ICredential credential) { setStandardParams(initiateRecoupReq.InitiateRecoupRequest); DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(this.config, initiateRecoupReq.ToXMLString(null, "InitiateRecoupReq"), null, null); IAPICallPreHandler apiCallPreHandler = new MerchantAPICallPreHandler(this.config, defaultHandler, credential); ((MerchantAPICallPreHandler) apiCallPreHandler).SDKName = SDKName; ((MerchantAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion; ((MerchantAPICallPreHandler) apiCallPreHandler).PortName = "PayPalAPI"; XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(Call(apiCallPreHandler)); return new InitiateRecoupResponseType( xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='InitiateRecoupResponse']") ); }
/// <summary> /// /// </summary> ///<param name="initiateRecoupReq"></param> public InitiateRecoupResponseType InitiateRecoup(InitiateRecoupReq initiateRecoupReq) { return InitiateRecoup(initiateRecoupReq,(string) null); }
/** *AUTO_GENERATED */ public InitiateRecoupResponseType InitiateRecoup(InitiateRecoupReq initiateRecoupReq, string apiUserName) { IAPICallPreHandler apiCallPreHandler = null; string portName = "PayPalAPI"; setStandardParams(initiateRecoupReq.InitiateRecoupRequest); DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(initiateRecoupReq.ToXMLString(null, "InitiateRecoupReq"), null, null); apiCallPreHandler = new MerchantAPICallPreHandler(defaultHandler, apiUserName, getAccessToken(), getAccessTokenSecret()); ((MerchantAPICallPreHandler) apiCallPreHandler).SDKName = SDKName; ((MerchantAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion; ((MerchantAPICallPreHandler) apiCallPreHandler).PortName = portName; string response = Call(apiCallPreHandler); XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(response); XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='InitiateRecoupResponse']"); return new InitiateRecoupResponseType(xmlNode); }
/** *AUTO_GENERATED */ public InitiateRecoupResponseType InitiateRecoup(InitiateRecoupReq initiateRecoupReq, string apiUserName) { setStandardParams(initiateRecoupReq.InitiateRecoupRequest); string response = Call("InitiateRecoup", initiateRecoupReq.ToXMLString(), apiUserName); XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(response); XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='InitiateRecoupResponse']"); return new InitiateRecoupResponseType(xmlNode); }
public InitiateRecoupResponseType InitiateRecoup(InitiateRecoupReq InitiateRecoupReq) { return InitiateRecoup(InitiateRecoupReq, null); }
/** * */ public InitiateRecoupResponseType InitiateRecoup(InitiateRecoupReq InitiateRecoupReq, string apiUsername) { setStandardParams(InitiateRecoupReq.InitiateRecoupRequest); string resp = call("InitiateRecoup", InitiateRecoupReq.toXMLString(), apiUsername); return new InitiateRecoupResponseType(resp); }