mirror of https://github.com/EasyAbp/EShop.git
committed by
GitHub
99 changed files with 520 additions and 156 deletions
@ -1,14 +0,0 @@ |
|||
using System; |
|||
using Volo.Abp; |
|||
|
|||
namespace EasyAbp.EShop.Orders.Orders |
|||
{ |
|||
public class CurrencyIsLimitException : BusinessException |
|||
{ |
|||
public CurrencyIsLimitException(string expectedCurrency) : base( |
|||
"CurrencyIsLimit", |
|||
$"Only the specified currency {expectedCurrency} is allowed.") |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using System; |
|||
using Volo.Abp; |
|||
|
|||
namespace EasyAbp.EShop.Orders.Orders |
|||
{ |
|||
public class UnexpectedCurrencyException : BusinessException |
|||
{ |
|||
public UnexpectedCurrencyException(string expectedCurrency) : base(OrdersErrorCodes.UnexpectedCurrency) |
|||
{ |
|||
WithData(nameof(expectedCurrency), expectedCurrency); |
|||
} |
|||
} |
|||
} |
|||
@ -1,11 +1,11 @@ |
|||
using Volo.Abp; |
|||
using EasyAbp.EShop.Plugins.Coupons; |
|||
|
|||
namespace EasyAbp.EShop.Orders.Plugins.Coupons.OrderDiscount |
|||
{ |
|||
public class CouponNotFoundOrHasExpiredException : BusinessException |
|||
{ |
|||
public CouponNotFoundOrHasExpiredException() : base("CouponNotFoundOrHasExpired", |
|||
"Coupon not found or has expired.") |
|||
public CouponNotFoundOrHasExpiredException() : base(CouponsErrorCodes.CouponNotFoundOrHasExpired) |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,11 +1,11 @@ |
|||
using Volo.Abp; |
|||
using EasyAbp.EShop.Plugins.Coupons; |
|||
|
|||
namespace EasyAbp.EShop.Orders.Plugins.Coupons.OrderDiscount |
|||
{ |
|||
public class CouponTemplateNotFoundOrUnavailableException : BusinessException |
|||
{ |
|||
public CouponTemplateNotFoundOrUnavailableException() : base("CouponTemplateNotFoundOrUnavailable", |
|||
"Coupon template not found or unavailable.") |
|||
public CouponTemplateNotFoundOrUnavailableException() : base(CouponsErrorCodes.CouponTemplateNotFoundOrUnavailable) |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,11 +1,11 @@ |
|||
using Volo.Abp; |
|||
using EasyAbp.EShop.Plugins.Coupons; |
|||
|
|||
namespace EasyAbp.EShop.Orders.Plugins.Coupons.OrderDiscount |
|||
{ |
|||
public class OrderDoesNotMeetCouponUsageConditionException : BusinessException |
|||
{ |
|||
public OrderDoesNotMeetCouponUsageConditionException() : base("OrderDoesNotMeetCouponUsageCondition", |
|||
"Order does not meet the coupon usage condition.") |
|||
public OrderDoesNotMeetCouponUsageConditionException() : base(CouponsErrorCodes.OrderDoesNotMeetCouponUsageCondition) |
|||
{ |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue