/** * AUTO_GENERATED */ public CancelPreapprovalResponse CancelPreapproval(CancelPreapprovalRequest cancelPreapprovalRequest, string apiUserName) { string response = Call("CancelPreapproval", cancelPreapprovalRequest.ToNVPString(""), apiUserName); NVPUtil util = new NVPUtil(); return(CancelPreapprovalResponse.CreateInstance(util.ParseNVPString(response), "", -1)); }
/// <summary> /// /// </summary> ///<param name="cancelPreapprovalRequest"></param> ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> public CancelPreapprovalResponse CancelPreapproval(CancelPreapprovalRequest cancelPreapprovalRequest, ICredential credential) { IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, cancelPreapprovalRequest.ToNVPString(string.Empty), ServiceName, "CancelPreapproval", credential); ((PlatformAPICallPreHandler)apiCallPreHandler).SDKName = SDKName; ((PlatformAPICallPreHandler)apiCallPreHandler).SDKVersion = SDKVersion; ((PlatformAPICallPreHandler)apiCallPreHandler).PortName = "AdaptivePayments"; NVPUtil util = new NVPUtil(); return(CancelPreapprovalResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1)); }