C# Класс Agathas.Storefront.Shopping.Model.Promotions.Promotion

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Promotion ( ) : System

Описание методов

Promotion() публичный Метод

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
Результат System

calculate_discount_for() публичный Метод

public calculate_discount_for ( IEnumerable items ) : Agathas.Storefront.Common.Money
items IEnumerable
Результат Agathas.Storefront.Common.Money

create_coupon_for() публичный Метод

public create_coupon_for ( System.Guid basket_id ) : Coupon
basket_id System.Guid
Результат Coupon

is_applicable_for() публичный Метод

public is_applicable_for ( IEnumerable items ) : bool
items IEnumerable
Результат bool

is_still_active() публичный Метод

public is_still_active ( ) : bool
Результат bool

reason_why_cannot_be_applied_to() публичный Метод

public reason_why_cannot_be_applied_to ( IEnumerable items ) : CouponIssues
items IEnumerable
Результат CouponIssues