Beispiel #1
0
 public SubscriptionPlan(string name, string?description, BillingReference billingReference, List <SubscriptionPlanPrice>?prices = null)
 {
     Id               = Guid.NewGuid();
     Name             = name;
     Description      = description;
     BillingReference = billingReference;
     Prices           = prices ?? new List <SubscriptionPlanPrice>();
 }
Beispiel #2
0
 public Customer(Guid id, Guid userId, BillingReference billingReference, Subscription?subscription = null, List <PaymentMethod>?paymentMethods = null)
 {
     Id               = id;
     UserId           = userId;
     BillingReference = billingReference;
     Subscription     = subscription;
     PaymentMethods   = paymentMethods ?? new List <PaymentMethod>();
 }
Beispiel #3
0
 public SubscriptionPlan(Guid id, string name, string?description, BillingReference billingReference, List <SubscriptionPlanPrice>?prices = null, Guid?roleId = null)
 {
     Id               = id;
     Name             = name;
     Description      = description;
     BillingReference = billingReference;
     Prices           = prices ?? new List <SubscriptionPlanPrice>();
     RoleId           = roleId;
 }
Beispiel #4
0
 public PaymentMethod(Guid id, string brand, string last4, bool isDefault, ExpirationDate expiration, BillingReference billingReference)
 {
     Id               = id;
     Brand            = brand;
     Last4            = last4;
     IsDefault        = isDefault;
     Expiration       = expiration;
     BillingReference = billingReference;
 }
Beispiel #5
0
 public Subscription(Guid id, SubscriptionStatus status, Period trialPeriod, Period period, bool cancellingAtPeriodEnd, SubscriptionPlanReference planReference, BillingReference billingReference)
 {
     Id                    = id;
     Status                = status;
     TrialPeriod           = trialPeriod;
     Period                = period;
     CancellingAtPeriodEnd = cancellingAtPeriodEnd;
     PlanReference         = planReference;
     BillingReference      = billingReference;
 }
Beispiel #6
0
 public SubscriptionPlanPrice(decimal amount, string interval, BillingReference billingReference)
 {
     Amount           = amount;
     Interval         = interval;
     BillingReference = billingReference;
 }