コード例 #1
0
        public void CancelSubscription(PostSubscriptionIdVM postSubscriptionIdVM)
        {
            var postSubscriptionCancel = new Fusebill.ApiWrapper.Dto.Post.SubscriptionCancel
            {
                SubscriptionId = postSubscriptionIdVM.SubscriptionID,
                CancellationOption = "Full"
            };

            ApiClient.PostSubscriptionCancel(postSubscriptionCancel);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void DeleteSubscription(PostSubscriptionIdVM postSubscriptionIdVM)
 {
     ApiClient.DeleteSubscription(postSubscriptionIdVM.SubscriptionID);
 }
コード例 #4
0
        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);
        }