OrderBuilderQuery
Namespace
IO\Builder\Order
Type | Name | Description |
---|---|---|
|
||
|
||
|
Methods
public __construct($app, $basketService, $type, $plentyId)
OrderBuilderQuery constructor.
Type |
Name |
Description |
|
||
|
||
|
||
|
public done():array
Return the order array
public fromBasket($basket = null):OrderBuilderQuery
Build order from basket data
Type |
Name |
Description |
|
public withLang($lang)
Add the lang to the order
Type |
Name |
Description |
|
public withStatus($status):OrderBuilderQuery
Add the status to the order
Type |
Name |
Description |
|
public withOwner($ownerId):OrderBuilderQuery
Add the owner to the order
Type |
Name |
Description |
|
public withOrderItem($orderItem):OrderBuilderQuery
Add an order item to the order
Type |
Name |
Description |
|
public withOrderItems($orderItems):OrderBuilderQuery
Add order items to the order
Type |
Name |
Description |
|
public withAddressId($addressId, $type):OrderBuilderQuery
Add an address to the order
Type |
Name |
Description |
|
||
|
public withRelation($type, $referenceId, $relationType):OrderBuilderQuery
Add the relation to the order
Type |
Name |
Description |
|
||
|
||
|
public withContactId($customerId):OrderBuilderQuery
Add a contact to the order
Type |
Name |
Description |
|
public withOrderProperty($type, $subType, $value, $required = true):OrderBuilderQuery
Add an order option to the order
Type |
Name |
Description |
|
||
|
||
|
||
|
public withComment($isVisibleForContact, $text):OrderBuilderQuery
Add a comment to the order. (e.g. customer wish)
Type |
Name |
Description |
|
||
|