Exemple #1
0
 public void AddSubscription(ApiSubscriptionClientResponseModel item)
 {
     if (!this.Subscriptions.Any(x => x.Id == item.Id))
     {
         this.Subscriptions.Add(item);
     }
 }
Exemple #2
0
        public virtual ApiSubscriptionClientRequestModel MapClientResponseToRequest(
            ApiSubscriptionClientResponseModel response)
        {
            var request = new ApiSubscriptionClientRequestModel();

            request.SetProperties(
                response.Name,
                response.StripePlanName);
            return(request);
        }