/// <summary> /// This function makes API call to Get Subscription detail /// </summary> /// <param name="MerchantSubscriptionId">MerchantSubscriptionId</param> /// <param name="ConsumerId">ConsumerId</param> public SubscriptionDetailResponseObj.RootObject getSubscriptionDetail(string MerchantSubscriptionId, string ConsumerId) { APIRequest apiRequest = new APIRequest("Subscriptions/" + MerchantSubscriptionId + "/Detail/" + ConsumerId); if (apiService.get(apiRequest)) { SubscriptionDetailResponseObj responseObj = new SubscriptionDetailResponseObj(); return(responseObj.deserializeSubscriptionDetailResponse(apiService.apiResponse.getResponseData())); } throw new Exception(apiService.errorResponse); }
/// <summary> /// This function makes API call to Get Subscription detail /// </summary> /// <param name="MerchantSubscriptionId">MerchantSubscriptionId</param> /// <param name="ConsumerId">ConsumerId</param> public SubscriptionDetailResponseObj.RootObject getSubscriptionDetail(string MerchantSubscriptionId, string ConsumerId) { APIRequest apiRequest = new APIRequest("Subscriptions/" + MerchantSubscriptionId + "/Detail/" + ConsumerId); if (apiService.get(apiRequest)) { SubscriptionDetailResponseObj responseObj = new SubscriptionDetailResponseObj(); return responseObj.deserializeSubscriptionDetailResponse(apiService.apiResponse.getResponseData()); } throw new Exception(apiService.errorResponse); }