C# Class CloverExamplePOS.POSOrder

Mostrar archivo Open project: clover/remote-pay-windows Class Usage Examples

Public Methods

Method Description
AddItem ( POSItem i, int quantity ) : POSLineItem

manages adding a POSItem to an order. If the POSItem already exists, the quantity is just incremented

AddOrderLineItem ( POSLineItem item ) : void
AddOrderPayment ( POSPayment payment ) : void
AddPayment ( POSPayment payment ) : void
AddRefund ( POSRefund refund ) : void
ModifyPaymentStatus ( string paymentID, POSPayment status ) : void
ModifyTipAmount ( String paymentID, long amount ) : void
POSOrder ( ) : System
Tips ( ) : long

Protected Methods

Method Description
onOrderChange ( POSOrder order, OrderChangeTarget target ) : void

Private Methods

Method Description
RemoveItem ( POSLineItem selectedLineItem ) : void

Method Details

AddItem() public method

manages adding a POSItem to an order. If the POSItem already exists, the quantity is just incremented
public AddItem ( POSItem i, int quantity ) : POSLineItem
i POSItem
quantity int
return POSLineItem

AddOrderLineItem() public method

public AddOrderLineItem ( POSLineItem item ) : void
item POSLineItem
return void

AddOrderPayment() public method

public AddOrderPayment ( POSPayment payment ) : void
payment POSPayment
return void

AddPayment() public method

public AddPayment ( POSPayment payment ) : void
payment POSPayment
return void

AddRefund() public method

public AddRefund ( POSRefund refund ) : void
refund POSRefund
return void

ModifyPaymentStatus() public method

public ModifyPaymentStatus ( string paymentID, POSPayment status ) : void
paymentID string
status POSPayment
return void

ModifyTipAmount() public method

public ModifyTipAmount ( String paymentID, long amount ) : void
paymentID String
amount long
return void

POSOrder() public method

public POSOrder ( ) : System
return System

Tips() public method

public Tips ( ) : long
return long

onOrderChange() protected method

protected onOrderChange ( POSOrder order, OrderChangeTarget target ) : void
order POSOrder
target OrderChangeTarget
return void