/** * To Activate POS - For a POC - Internal Purposes * * * * * */ public ActivateProductResponse ActivateProduct(ActivateProductRequest activateProductRequest, string apiUserName) { string response = Call("ActivateProduct", activateProductRequest.ToNVPString(""), apiUserName); NVPUtil util = new NVPUtil(); return(ActivateProductResponse.CreateInstance(util.ParseNVPString(response), "", -1)); }
/// <summary> /// To Activate POS - For a POC - Internal Purposes /// /// /// /// /// /// </summary> ///<param name="activateProductRequest"></param> ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> public ActivateProductResponse ActivateProduct(ActivateProductRequest activateProductRequest, ICredential credential) { IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, activateProductRequest.ToNVPString(string.Empty), ServiceName, "ActivateProduct", credential); ((PlatformAPICallPreHandler)apiCallPreHandler).SDKName = SDKName; ((PlatformAPICallPreHandler)apiCallPreHandler).SDKVersion = SDKVersion; ((PlatformAPICallPreHandler)apiCallPreHandler).PortName = "AdaptiveAccounts"; NVPUtil util = new NVPUtil(); return(ActivateProductResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1)); }