/// <summary> /// To Activate POS - For a POC - Internal Purposes /// /// /// /// /// /// </summary> ///<param name="activateProductRequest"></param> ///<param name="apiUserName">API Username that you want to authenticate this call against. This username and the corresponding 3-token/certificate credentials must be available in Web.Config/App.Config</param> public ActivateProductResponse ActivateProduct(ActivateProductRequest activateProductRequest, string apiUserName) { IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, activateProductRequest.ToNVPString(string.Empty), ServiceName, "ActivateProduct", apiUserName, getAccessToken(), getAccessTokenSecret()); ((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); }
/// <summary> /// To Activate POS - For a POC - Internal Purposes /// /// /// /// /// /// </summary> ///<param name="activateProductRequest"></param> public ActivateProductResponse ActivateProduct(ActivateProductRequest activateProductRequest) { return ActivateProduct(activateProductRequest,(string) null); }
/** * 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); }