Esempio n. 1
0
 public BillingCycleEntry(BillingCycleSubject subject)
 {
     Id          = subject.Id;
     Subject     = subject;
     SubjectType = subject.SubjectType;
     LastSettled = DateTime.UtcNow;
 }
Esempio n. 2
0
        public UserProjectAssignment(Guid id, User user, Project project, Resources quota)
        {
            Id      = id;
            User    = user;
            Project = project;
            Quota   = quota;

            Payer               = new Payer(this);
            UseCycleSubject     = new UseCycleSubject(this);
            BillingCycleSubject = new BillingCycleSubject(this);
        }
Esempio n. 3
0
        public Domain(Guid id, User payer, Resources quota, System system)
        {
            Id      = id;
            PayUser = payer;
            Quota   = quota;
            System  = system;

            Payer               = new Payer(this);
            Receiver            = new Receiver(this);
            UseCycleSubject     = new UseCycleSubject(this);
            BillingCycleSubject = new BillingCycleSubject(this);
        }
Esempio n. 4
0
        public Project(Guid id, User payUser, Domain domain, Resources quota)
        {
            Id      = id;
            PayUser = payUser;
            Domain  = domain;
            Quota   = quota;

            Payer               = new Payer(this);
            Receiver            = new Receiver(this);
            UseCycleSubject     = new UseCycleSubject(this);
            BillingCycleSubject = new BillingCycleSubject(this);
        }
Esempio n. 5
0
 bool IBillingCycleSubject.Settle(decimal price, Resources quota, DateTime lastSettled, DateTime now, TransactionReason reason)
 {
     return(BillingCycleSubject.Settle(price, quota, lastSettled, now, reason));
 }