Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/04/13 16:30:39 (11 years ago)
Author:
fschoepp
Message:

#1888:

  • Added an overview for users to inspect their orders
  • Order Administrators may now suspend or reactivate orders
  • When creating an order, its necessary to enter payment information (paypal, credit card,...) before
  • Also, the billing period and type must be entered during the creation of an order.
Location:
branches/OaaS/HeuristicLab.Services.Optimization.Web/Models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Optimization.Web/Models/OrderAdminModel.cs

    r9556 r9582  
    99  public class OrderAdminModel {
    1010    public long OrderId { get; set; }
    11     public IList<Order> Orders { get; set; }
     11    public IList<Order> CreatedOrders { get; set; }
     12    public IList<Order> ActiveOrders { get; set; }
     13    public IList<Order> SuspendedOrders { get; set; }
    1214  }
    1315}
  • branches/OaaS/HeuristicLab.Services.Optimization.Web/Models/OrderModel.cs

    r9556 r9582  
    88
    99  public class OrderModel {
    10     public string BillingType { get; set; }
    11     public string BillingPeriod { get; set; }
    12     public DateTime ActiveSince { get; set; }
    13     public DateTime ActiveUntil { get; set; }
     10    public BillingType BillingType { get; set; }
     11    public BillingPeriod BillingPeriod { get; set; }   
     12    public DateTime? ActiveSince { get; set; }
     13    public DateTime? ActiveUntil { get; set; }
     14    public User User { get; set; }
    1415    // product id to quantity mapping
    1516    public IDictionary<long, int> ProductQuantities { get; set; }
    1617    public IDictionary<long, Product> Products { get; set; }
     18    public long PaymentInformationId { get; set; }
    1719
    1820    public double TotalSum() {
     
    3537  }
    3638
     39  public class PaymentModel {
     40    public PaymentMethod Method { get; set; }
     41    public string CardNumber { get; set; }
     42    public string AdditionalInformation { get; set; }
     43  }
     44
    3745  public class ProductsModel {
    3846    public IList<Product> Products { get; set; }
     
    4048    public long ProductId { get; set; }
    4149  }
     50
     51  public class OverviewModel {
     52    public IList<Order> Orders { get; set; }
     53  }
    4254}
Note: See TracChangeset for help on using the changeset viewer.