public void CancelSubscription(PostSubscriptionIdVM postSubscriptionIdVM) { var postSubscriptionCancel = new Fusebill.ApiWrapper.Dto.Post.SubscriptionCancel { SubscriptionId = postSubscriptionIdVM.SubscriptionID, CancellationOption = "Full" }; ApiClient.PostSubscriptionCancel(postSubscriptionCancel); }
public ActionResult ActivateSubscription(PostSubscriptionIdVM postSubscriptionIdVM) { var postSubscriptionActivation = new Fusebill.ApiWrapper.Dto.Post.SubscriptionActivation { Id = postSubscriptionIdVM.SubscriptionID, InvoiceDay = Convert.ToInt32(postSubscriptionIdVM.InputValuesForActivationAndProvision[0]), InvoiceMonth = Convert.ToInt32(postSubscriptionIdVM.InputValuesForActivationAndProvision[1]) }; var returnedSubscription = ApiClient.PostSubscriptionActivation(postSubscriptionActivation); return Json(returnedSubscription); }
public void DeleteSubscription(PostSubscriptionIdVM postSubscriptionIdVM) { ApiClient.DeleteSubscription(postSubscriptionIdVM.SubscriptionID); }
public void ProvisionSubscription(PostSubscriptionIdVM postSubscriptionIdVM) { var postSubscriptionProvision = new Fusebill.ApiWrapper.Dto.Post.SubscriptionProvision { Id = postSubscriptionIdVM.SubscriptionID, InvoiceDay = Convert.ToInt32(postSubscriptionIdVM.InputValuesForActivationAndProvision[0]), InvoiceMonth = Convert.ToInt32(postSubscriptionIdVM.InputValuesForActivationAndProvision[0]) }; ApiClient.PostSubscriptionProvision(postSubscriptionProvision); }