Overview

Namespaces

  • Apptus
    • ESales
      • Connector
        • Report
        • Time
    • Util
      • Cache
  • PHP

Classes

  • Ad
  • Ads
  • ArgMap
  • Attribute
  • AttributeValidation
  • Authorization
  • Category
  • CategoryData
  • CategoryList
  • CategoryNode
  • CloudConnector
  • ClusterUriIterator
  • Completion
  • Completions
  • CompressionMode
  • Connector
  • ConnectorSettingsBuilder
  • Correction
  • Corrections
  • Count
  • CssClass
  • CustomerKeyAuthentication
  • DynamicPage
  • EventDataJobResult
  • FacetList
  • FacetRange
  • Facets
  • Filter
  • FilterBuilder
  • ImportData
  • JavaScriptNotifier
  • MessageAuthentication
  • OnPremConnector
  • Order
  • OrderLine
  • Panel
  • PanelContent
  • Path
  • Phrase
  • Phrases
  • Product
  • Products
  • Reporter
  • ResultType
  • Session
  • Status
  • Subpanel
  • Value
  • Values
  • Variant

Interfaces

  • Facet
  • Result

Exceptions

  • BusyClusterException
  • ClusterUnavailableException
  • DuplicateSubpanelException
  • FetchClusterException
  • IOException
  • MalformedJsonException
  • MalformedURLException
  • MissingSubpanelException
  • PanelException
  • ParseException
  • ReportException
  • RequestFailedException
  • ResultTypeException
  • Overview
  • Namespace
  • Class
  • Tree

Class OrderLine

An order line in a sale order.

Namespace: Apptus\ESales\Connector
Located at Connector/OrderLine.php
Methods summary
public Apptus\ESales\Connector\OrderLine
# putCurrentUnitPrice( float|integer $price )

Adds information about the current price (the price displayed in the shop) for each unit to this order line.

Adds information about the current price (the price displayed in the shop) for each unit to this order line.

Deprecated

Current unit price is ignored by eSales. Use Apptus\ESales\Connector\OrderLine::putUnitSellingPrice() instead.

Parameters

$price
price, in units of the market currency.

Returns

Apptus\ESales\Connector\OrderLine
The line itself.
public Apptus\ESales\Connector\OrderLine
# putUnitCost( float|integer $price )

Adds information about the cost (what it costs for the shop to acquire the product, including VAT) for each unit to this order line.

Adds information about the cost (what it costs for the shop to acquire the product, including VAT) for each unit to this order line.

Note: Some parts of eSales might behave strangely if cost is included in some, but not all, notified orders.

Parameters

$price
cost, in units of the market currency.

Returns

Apptus\ESales\Connector\OrderLine
The line itself.
public Apptus\ESales\Connector\OrderLine
# putUnitSellingPrice( float|integer $price )

Adds information about the selling price (the actual price that the customer pays, including VAT but excluding delivery costs) for each unit to this order line.

Adds information about the selling price (the actual price that the customer pays, including VAT but excluding delivery costs) for each unit to this order line.

Parameters

$price
price, in units of the market currency.

Returns

Apptus\ESales\Connector\OrderLine
The line itself.
public Apptus\ESales\Connector\OrderLine
# putQuantity( integer $units )

Adds information about the quantity. Default quantity is 1.

Adds information about the quantity. Default quantity is 1.

Parameters

$units
number of units, a positive non-zero integer.

Returns

Apptus\ESales\Connector\OrderLine
The line itself.

Throws

InvalidArgumentException
if quantity is not an integer.
Apptus ESales Connector PHP API documentation generated by ApiGen