C# 클래스 Kona.Model.Order

파일 보기 프로젝트 열기: BenHall/Kona 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

AddItem() 공개 메소드

Adds a product to the cart
public AddItem ( Product product ) : void
product Product
리턴 void

AddItem() 공개 메소드

Adds a product to the cart
public AddItem ( Product product, int quantity ) : void
product Product
quantity int
리턴 void

AdjustQuantity() 공개 메소드

Adjusts the quantity of an item in the cart
public AdjustQuantity ( Product product, int newQuantity ) : void
product Product
newQuantity int
리턴 void

ClearItems() 공개 메소드

Removes all items from cart
public ClearItems ( ) : void
리턴 void

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

FindItem() 공개 메소드

Finds an item in the cart
public FindItem ( Product product ) : OrderItem
product Product
리턴 OrderItem

FindItem() 공개 메소드

Finds an item in the cart
public FindItem ( string sku ) : OrderItem
sku string
리턴 OrderItem

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

RemoveItem() 공개 메소드

Remmoves a product from the cart
public RemoveItem ( Product product ) : void
product Product
리턴 void

RemoveItem() 공개 메소드

Remmoves a product from the cart
public RemoveItem ( string sku ) : void
sku string
리턴 void

RepriceItems() 공개 메소드

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

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ValidateForCheckout() 공개 메소드

public ValidateForCheckout ( ) : void
리턴 void