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

Afficher le fichier Open project: elbandit/PPPDDD Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Promotion ( ) : System

Method Details

Promotion() public méthode

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
Résultat System

calculate_discount_for() public méthode

public calculate_discount_for ( IEnumerable items ) : Agathas.Storefront.Common.Money
items IEnumerable
Résultat Agathas.Storefront.Common.Money

create_coupon_for() public méthode

public create_coupon_for ( System.Guid basket_id ) : Coupon
basket_id System.Guid
Résultat Coupon

is_applicable_for() public méthode

public is_applicable_for ( IEnumerable items ) : bool
items IEnumerable
Résultat bool

is_still_active() public méthode

public is_still_active ( ) : bool
Résultat bool

reason_why_cannot_be_applied_to() public méthode

public reason_why_cannot_be_applied_to ( IEnumerable items ) : CouponIssues
items IEnumerable
Résultat CouponIssues