OrderBuilderQuery

Namespace

IO\Builder\Order

Properties
Type Name Description

array

$order

Application

$app

BasketService

$basketService

Methods
public __construct($app, $basketService, $type, $plentyId)

OrderBuilderQuery constructor.

Parameters

Type

Name

Description

Application

$app

BasketService

$basketService

int

$type

int

$plentyId

public done():array

Return the order array

public fromBasket($basket = null):OrderBuilderQuery

Build order from basket data

Parameters

Type

Name

Description

null

$basket

public withLang($lang)

Add the lang to the order

Parameters

Type

Name

Description

string

$lang

public withStatus($status):OrderBuilderQuery

Add the status to the order

Parameters

Type

Name

Description

float

$status

public withOwner($ownerId):OrderBuilderQuery

Add the owner to the order

Parameters

Type

Name

Description

int

$ownerId

public withOrderItem($orderItem):OrderBuilderQuery

Add an order item to the order

Parameters

Type

Name

Description

array

$orderItem

public withOrderItems($orderItems):OrderBuilderQuery

Add order items to the order

Parameters

Type

Name

Description

array

$orderItems

public withAddressId($addressId, $type):OrderBuilderQuery

Add an address to the order

Parameters

Type

Name

Description

int

$addressId

int

$type

public withRelation($type, $referenceId, $relationType):OrderBuilderQuery

Add the relation to the order

Parameters

Type

Name

Description

string

$type

int

$referenceId

string

$relationType

public withContactId($customerId):OrderBuilderQuery

Add a contact to the order

Parameters

Type

Name

Description

int

$customerId

public withComment($isVisibleForContact, $text):OrderBuilderQuery

Add a comment to the order. (e.g. customer wish)

Parameters

Type

Name

Description

bool

$isVisibleForContact

string

$text