C# Class Agathas.Storefront.Shopping.Model.Promotions.Promotion

Mostrar archivo Open project: elbandit/PPPDDD Class Usage Examples

Public Methods

Method Description
Promotion ( string voucher_code, Agathas.Storefront.Common.Money discount, Agathas.Storefront.Common.Money threshold ) : System
calculate_discount_for ( IEnumerable items ) : Agathas.Storefront.Common.Money
create_coupon_for ( System.Guid basket_id ) : Coupon
is_applicable_for ( IEnumerable items ) : bool
is_still_active ( ) : bool
reason_why_cannot_be_applied_to ( IEnumerable items ) : CouponIssues

Private Methods

Method Description
Promotion ( ) : System

Method Details

Promotion() public method

public Promotion ( string voucher_code, Agathas.Storefront.Common.Money discount, Agathas.Storefront.Common.Money threshold ) : System
voucher_code string
discount Agathas.Storefront.Common.Money
threshold Agathas.Storefront.Common.Money
return System

calculate_discount_for() public method

public calculate_discount_for ( IEnumerable items ) : Agathas.Storefront.Common.Money
items IEnumerable
return Agathas.Storefront.Common.Money

create_coupon_for() public method

public create_coupon_for ( System.Guid basket_id ) : Coupon
basket_id System.Guid
return Coupon

is_applicable_for() public method

public is_applicable_for ( IEnumerable items ) : bool
items IEnumerable
return bool

is_still_active() public method

public is_still_active ( ) : bool
return bool

reason_why_cannot_be_applied_to() public method

public reason_why_cannot_be_applied_to ( IEnumerable items ) : CouponIssues
items IEnumerable
return CouponIssues