client/jsonapi/src/Client/JsonApi/Order/Standard.php
protected function createOrder( $baseId )
	{
		$context = $this->getContext();
		$cntl = \Aimeos\Controller\Frontend::create( $context, 'order' );
		$item = $cntl->add( $baseId, ['order.type' => 'jsonapi'] )->store();

		$context->getSession()->set( 'aimeos/orderid', $item->getId() );

		return $item;
	}
protected function createOrder( $baseId )
	{
		$context = $this->getContext();
		$cntl = \Aimeos\Controller\Frontend::create( $context, 'order' );
		$item = $cntl->add( $baseId, ['order.type' => 'jsonapi'] )->store();

		$context->getSession()->set( 'aimeos/orderid', $item->getId() );

		return $item;
	}
protected function createOrder ( $ baseId ) { $ context = $ this -> getContext ( ) ; $ cntl = \ Aimeos \ Controller \ Frontend :: create ( $ context , 'order' ) ; $ item = $ cntl -> add ( $ baseId , [ 'order.type' => 'jsonapi' ] ) -> store ( ) ; $ context -> getSession ( ) -> set ( 'aimeos/orderid' , $ item -> getId ( ) ) ; return $ item ; }
Adds and returns a new order item for the given order base ID

@param string $baseId Unique order base ID
@return \Aimeos\MShop\Order\Item\Iface New order item
Adds and returns a new order item for the given order base ID