Interface OrderItemInterface

Interface OrderItemInterface

Direct known implementers

OrderItem, StoredOrderItemInterface

Indirect known implementers

StoredOrderItem

Methods summary

public getProductModel( void ) : string

Returns the product model of the order item.

public getName( void ) : string

Returns the name of the order item.

public getPrice( void ) : float

Returns the price of the order item.

public getQuantity( void ) : float

Returns the quantity of the order item.

public getFinalPrice( void ) : float

Returns the final price of the order item.

public getTax( void ) : float

Returns the tax of the order item.

public isTaxAllowed( void ) : boolean

Is tax of the order item allowed?

public getDiscountMade( void ) : float

Returns the amount of discount of the order item.

public getShippingTimeInfo( void ) : string

Returns the shipping time of the order item.

public getAttributes( void ) : OrderItemAttributeCollection

Returns the attributes of the order item.

public getQuantityUnitName( void ) : string

Returns the name of quantity unit of the order item.

public getCheckoutInformation( void ) : string

Returns the checkout information of the order item.

public getDownloadInformation( void ) : OrderItemDownloadInformationCollection

Returns the download information collection of the order item.

public getGXCustomizerData( void ) : OrderItemGXCustomizerDataCollection

Returns the gx customizer data collection of the order item.

public setProductModel( StringType $model ) : OrderItemInterface

Sets the product model of the order item.

public setName( StringType $name ) : OrderItemInterface

Sets the name of the order item.

public setPrice( DecimalType $price ) : OrderItemInterface

Sets the price of the order item.

public setQuantity( DecimalType $quantity ) : OrderItemInterface

Sets the quantity of the order item.

public setTax( DecimalType $tax ) : OrderItemInterface

Sets the tax of the order item.

public setTaxAllowed( BoolType $allow ) : OrderItemInterface

Sets whether tax of the OrderItem is allowed or not.

public setDiscountMade( DecimalType $discount ) : OrderItemInterface

Sets the discount of the order item.

public setShippingTimeInfo( StringType $time ) : OrderItemInterface

Sets the shipping time of the order item.

public setAttributes( OrderItemAttributeCollection $attributeCollection ) : OrderItemInterface

Sets the attributes of the order item.

public setQuantityUnitName( StringType $name ) : OrderItemInterface

Sets the name of quantity unit of the order item.

public setCheckoutInformation( StringType $checkoutInformation ) : OrderItemInterface

Sets the checkout information.

public setDownloadInformation( OrderItemDownloadInformationCollection $downloads ) : OrderItemInterface

Sets the download information of the order item.

public setGXCustomizerData( OrderItemGXCustomizerDataCollection $gxCustomizerData ) : OrderItemInterface

Sets the gx customizer data of the order item.

public getAddonValues( void ) : EditableKeyValueCollection

Returns the addon collection of the order item.

public getAddonValue( StringType $key ) : string

Returns the order addon key value from collection.

public setAddonValue( StringType $key, StringType $value ) : OrderItemInterface

Adds/updates a key value in the addon value collection.

public addAddonValues( KeyValueCollection $addonValues ) : OrderItemInterface

Merges the existing addon values with new ones.

public deleteAddonValue( StringType $key ) : OrderItemInterface

Deletes a specific addon value entry by key.