public Subscription(Customer customer) { this._id = Guid.NewGuid (); this._createtimestamp = SNDK.Date.CurrentDateTimeToTimestamp (); this._updatetimestamp = SNDK.Date.CurrentDateTimeToTimestamp (); this._type = qnaxLib.Enums.SubscriptionType.Monthly; this._customerid = customer.Id; this._title = "Subscription"; this._items = new List<SubscriptionItem> (); // this._nextbilling = SNDK.Date.DateTimeToTimestamp (DateTime.Today.AddDays (1)); // this._nextbilling = SNDK.Date.DateTimeToTimestamp (DateTime.Today); this._nextbilling = SNDK.Date.DateTimeToTimestamp (new DateTime (2012, 9, 13)); Console.WriteLine (SNDK.Date.TimestampToDateTime (this._nextbilling)); }
private Subscription() { this._id = Guid.Empty; this._createtimestamp = 0; this._updatetimestamp = 0; this._type = AllectusLib.Enums.SubscriptionType.Monthly; this._customerid = Guid.Empty; this._title = string.Empty; this._nextbilling = 0; this._status = AllectusLib.Enums.SubscriptionStatus.Inactive; }
public Subscription(Customer customer) { this._id = Guid.NewGuid (); this._createtimestamp = SNDK.Date.CurrentDateTimeToTimestamp (); this._updatetimestamp = SNDK.Date.CurrentDateTimeToTimestamp (); this._type = Enums.SubscriptionType.Monthly; this._customerid = customer.Id; this._title = string.Empty; this._nextbilling = SNDK.Date.DateTimeToTimestamp (DateTime.Today.AddDays (2)); this._status = Enums.SubscriptionStatus.Active; }