Browse Source

Added currency properties. Close #4

pull/49/head
gdlcf88 6 years ago
parent
commit
04f69836b9
  1. 3
      modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/BasketItems/BasketItem.cs
  2. 3
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/Orders/Order.cs
  3. 3
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/Orders/OrderLine.cs
  4. 4
      modules/EasyAbp.EShop.Payment/src/EasyAbp.EShop.Payment.Domain/PaymentRecordOrders/PaymentRecordOrder.cs
  5. 3
      modules/EasyAbp.EShop.Payment/src/EasyAbp.EShop.Payment.Domain/PaymentRecords/PaymentRecord.cs
  6. 3
      modules/EasyAbp.EShop.Payment/src/EasyAbp.EShop.Payment.Domain/RefundRecords/RefundRecord.cs
  7. 7
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Products/ProductSku.cs

3
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/BasketItems/BasketItem.cs

@ -26,6 +26,9 @@ namespace EasyAbp.EShop.Baskets.BasketItems
[NotNull]
public virtual string SkuDescription { get; protected set; }
[NotNull]
public virtual string Currency { get; protected set; }
public virtual decimal UnitPrice { get; protected set; }
public virtual decimal TotalPrice { get; protected set; }

3
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/Orders/Order.cs

@ -22,6 +22,9 @@ namespace EasyAbp.EShop.Orders.Orders
public virtual Guid? ShippingMethodId { get; protected set; }
[NotNull]
public virtual string Currency { get; protected set; }
public virtual decimal Freight { get; protected set; }
public virtual decimal ProductTotalPrice { get; protected set; }

3
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/Orders/OrderLine.cs

@ -21,6 +21,9 @@ namespace EasyAbp.EShop.Orders.Orders
[CanBeNull]
public virtual string MediaResources { get; protected set; }
[NotNull]
public virtual string Currency { get; protected set; }
public virtual decimal UnitPrice { get; protected set; }
public virtual decimal TotalPrice { get; protected set; }

4
modules/EasyAbp.EShop.Payment/src/EasyAbp.EShop.Payment.Domain/PaymentRecordOrders/PaymentRecordOrder.cs

@ -1,5 +1,6 @@
using System;
using EasyAbp.EShop.Stores.Stores;
using JetBrains.Annotations;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
@ -13,6 +14,9 @@ namespace EasyAbp.EShop.Payment.PaymentRecordOrders
public virtual Guid OrderId { get; protected set; }
[NotNull]
public virtual string Currency { get; protected set; }
public virtual decimal OriginalPaymentAmount { get; protected set; }
public virtual decimal PaymentDiscount { get; protected set; }

3
modules/EasyAbp.EShop.Payment/src/EasyAbp.EShop.Payment.Domain/PaymentRecords/PaymentRecord.cs

@ -16,6 +16,9 @@ namespace EasyAbp.EShop.Payment.PaymentRecords
[NotNull]
public virtual string ExternalTradingCode { get; protected set; }
[NotNull]
public virtual string Currency { get; protected set; }
public virtual decimal OriginalPaymentAmount { get; protected set; }
public virtual decimal PaymentDiscount { get; protected set; }

3
modules/EasyAbp.EShop.Payment/src/EasyAbp.EShop.Payment.Domain/RefundRecords/RefundRecord.cs

@ -20,6 +20,9 @@ namespace EasyAbp.EShop.Payment.RefundRecords
[NotNull]
public virtual string ExternalTradingCode { get; protected set; }
[NotNull]
public virtual string Currency { get; protected set; }
public virtual decimal RefundAmount { get; protected set; }
[CanBeNull]

7
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Products/ProductSku.cs

@ -9,10 +9,13 @@ namespace EasyAbp.EShop.Products.Products
[NotNull]
public virtual string SerializedAttributeOptionIds { get; protected set; }
[NotNull]
public virtual string Currency { get; protected set; }
public virtual decimal OriginalPrice { get; protected set; }
public virtual decimal Price { get; protected set; }
public virtual int Inventory { get; protected set; }
public virtual int Sold { get; protected set; }
@ -24,6 +27,7 @@ namespace EasyAbp.EShop.Products.Products
public ProductSku(
Guid id,
[NotNull] string serializedAttributeOptionIds,
[NotNull] string currency,
decimal originalPrice,
decimal price,
int inventory,
@ -31,6 +35,7 @@ namespace EasyAbp.EShop.Products.Products
int orderMinQuantity) : base(id)
{
SerializedAttributeOptionIds = serializedAttributeOptionIds;
Currency = currency;
OriginalPrice = originalPrice;
Price = price;
Inventory = inventory;

Loading…
Cancel
Save