C# Класс Agathas.Storefront.Shopping.Model.Baskets.Basket

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

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

Метод Описание
Basket ( System.Guid id ) : System
add ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot, IBasketPricingService basket_pricing_service ) : void
apply ( Promotion promotion, IBasketPricingService basket_pricing_service ) : void
change_quantity_of_product ( NonNegativeQuantity quantity, Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot, IBasketPricingService basket_pricing_service ) : void
contains_product ( bool>.Func func ) : bool
remove_coupon ( string coupon_code, IBasketPricingService basket_pricing_service ) : void
remove_product_with_id_of ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product, IBasketPricingService basket_pricing_service ) : void

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

Метод Описание
Basket ( ) : System
basket_contains_an_item_for ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot ) : bool
get_item_for ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot ) : BasketItem
recalculate_basket_totals ( IBasketPricingService basket_pricing_service ) : void

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

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

public Basket ( System.Guid id ) : System
id System.Guid
Результат System

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

public add ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot, IBasketPricingService basket_pricing_service ) : void
product_snapshot Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot
basket_pricing_service IBasketPricingService
Результат void

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

public apply ( Promotion promotion, IBasketPricingService basket_pricing_service ) : void
promotion Promotion
basket_pricing_service IBasketPricingService
Результат void

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

public change_quantity_of_product ( NonNegativeQuantity quantity, Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product_snapshot, IBasketPricingService basket_pricing_service ) : void
quantity NonNegativeQuantity
product_snapshot Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot
basket_pricing_service IBasketPricingService
Результат void

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

public contains_product ( bool>.Func func ) : bool
func bool>.Func
Результат bool

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

public remove_coupon ( string coupon_code, IBasketPricingService basket_pricing_service ) : void
coupon_code string
basket_pricing_service IBasketPricingService
Результат void

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

public remove_product_with_id_of ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product, IBasketPricingService basket_pricing_service ) : void
product Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot
basket_pricing_service IBasketPricingService
Результат void