C# Class Kona.Model.Order

Afficher le fichier Open project: BenHall/Kona Class Usage Examples

Méthodes publiques

Méthode Description
AddItem ( Product product ) : void

Adds a product to the cart

AddItem ( Product product, int quantity ) : void

Adds a product to the cart

AdjustQuantity ( Product product, int newQuantity ) : void

Adjusts the quantity of an item in the cart

ClearItems ( ) : void

Removes all items from cart

Equals ( object obj ) : bool
FindItem ( Product product ) : OrderItem

Finds an item in the cart

FindItem ( string sku ) : OrderItem

Finds an item in the cart

GetHashCode ( ) : int
RemoveItem ( Product product ) : void

Remmoves a product from the cart

RemoveItem ( string sku ) : void

Remmoves a product from the cart

RepriceItems ( ) : bool

Reprices all items in the cart to reflect update item prices.

ToString ( ) : string
ValidateForCheckout ( ) : void

Method Details

AddItem() public méthode

Adds a product to the cart
public AddItem ( Product product ) : void
product Product
Résultat void

AddItem() public méthode

Adds a product to the cart
public AddItem ( Product product, int quantity ) : void
product Product
quantity int
Résultat void

AdjustQuantity() public méthode

Adjusts the quantity of an item in the cart
public AdjustQuantity ( Product product, int newQuantity ) : void
product Product
newQuantity int
Résultat void

ClearItems() public méthode

Removes all items from cart
public ClearItems ( ) : void
Résultat void

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

FindItem() public méthode

Finds an item in the cart
public FindItem ( Product product ) : OrderItem
product Product
Résultat OrderItem

FindItem() public méthode

Finds an item in the cart
public FindItem ( string sku ) : OrderItem
sku string
Résultat OrderItem

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

RemoveItem() public méthode

Remmoves a product from the cart
public RemoveItem ( Product product ) : void
product Product
Résultat void

RemoveItem() public méthode

Remmoves a product from the cart
public RemoveItem ( string sku ) : void
sku string
Résultat void

RepriceItems() public méthode

Reprices all items in the cart to reflect update item prices.
/// Throws an InvalidOperationException if the cart /// has been checked out. ///
public RepriceItems ( ) : bool
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string

ValidateForCheckout() public méthode

public ValidateForCheckout ( ) : void
Résultat void