phpDocumentor

OrderWriteServiceInterface

Interface OrderWriteServiceInterface

Tags
category

System

subpackage

Interfaces

Table of Contents

addOrderItem()  : int
Adds an item to the order.
addOrderItemAttribute()  : int
Adds an order item attribute to the order.
addOrderStatusHistoryEntry()  : mixed
Add Order Status History Entry
addOrderTotal()  : int
Adds a total price to an order.
createNewCustomerOrder()  : int
Creates a new customer order and returns the order ID as an integer.
createNewStandaloneOrder()  : int
Creates a new standalone order (e.g. for guests) and returns the order ID as an integer.
removeOrderById()  : mixed
Removes a specific order, depending on the provided order ID.
removeOrderItem()  : mixed
Removes an item from an order.
removeOrderItemAttribute()  : mixed
Removes an item attribute of an order.
removeOrderTotal()  : mixed
Removes a total price of an order.
updateBillingAddress()  : mixed
Updates the customers billing address.
updateComment()  : mixed
Updates the comment of an order.
updateCustomerAddress()  : mixed
Updates the customers address.
updateDeliveryAddress()  : mixed
Updates the customers delivery address.
updateOrder()  : mixed
Updates the provided order.
updateOrderItem()  : mixed
Updates an order item.
updateOrderItemAttribute()  : mixed
Updates an item attribute of an order.
updateOrderStatus()  : mixed
Updates the order status of an order.
updateOrderTotal()  : mixed
Updates a total price of an order.
updatePaymentType()  : mixed
Updates the payment type of an order.
updateShippingType()  : mixed
Updates the shipping type of an order.

Methods

addOrderStatusHistoryEntry()

Add Order Status History Entry

public addOrderStatusHistoryEntry(IdType $orderId, StringType $comment, IdType $customerId) : mixed

Add an order status history entry to an order, without changing the status or notifying the customer.

Parameters
$orderId : IdType

Order ID of the order to update

$comment : StringType

Comment of the order status history item

$customerId : IdType

Customer ID of the admin

Return values
mixed

createNewCustomerOrder()

Creates a new customer order and returns the order ID as an integer.

public createNewCustomerOrder(IdType $customerId, CustomerStatusInformation $customerStatusInfo, StringType $customerNumber, EmailStringType $customerEmail, StringType $customerTelephone, StringType $vatIdNumber, AddressBlockInterface $customerAddress, AddressBlockInterface $billingAddress, AddressBlockInterface $deliveryAddress, OrderItemCollection $orderItemCollection, OrderTotalCollection $orderTotalCollection, OrderShippingType $shippingType, OrderPaymentType $paymentType, CurrencyCode $currencyCode, LanguageCode $languageCode, DecimalType $totalWeight[, StringType $comment = null ][, IntType $orderStatusId = null ][, KeyValueCollection $addonValues = null ]) : int
Parameters
$customerId : IdType

Customer ID.

$customerStatusInfo : CustomerStatusInformation

Customer Status Information.

$customerNumber : StringType

Customer Number.

$customerEmail : EmailStringType

Customer Email.

$customerTelephone : StringType

Customer Telephone.

$vatIdNumber : StringType

VAT ID Number.

$customerAddress : AddressBlockInterface

Address of the customer.

$billingAddress : AddressBlockInterface

Billing address of the customer.

$deliveryAddress : AddressBlockInterface

Delivery address of the customer.

$orderItemCollection : OrderItemCollection

Collection of the order items.

$orderTotalCollection : OrderTotalCollection

Total collection of the order.

$shippingType : OrderShippingType

Shipping type of the order.

$paymentType : OrderPaymentType

Payment type of the order.

$currencyCode : CurrencyCode

Currency code of the order.

$languageCode : LanguageCode

Language code of the order.

$totalWeight : DecimalType

Total weight of the order in kg.

$comment : StringType = null

Optional comment of the order (default = null).

$orderStatusId : IntType = null

Optional id of the initial order status (default = null).

$addonValues : KeyValueCollection = null

Optional key => value collection of addon values - e.g. cookies (default = null).

Return values
int

Order ID.

createNewStandaloneOrder()

Creates a new standalone order (e.g. for guests) and returns the order ID as an integer.

public createNewStandaloneOrder(StringType $customerNumber, EmailStringType $customerEmail, StringType $customerTelephone, StringTYpe $vatIdNumber, AddressBlockInterface $customerAddress, AddressBlockInterface $billingAddress, AddressBlockInterface $deliveryAddress, OrderItemCollection $orderItemCollection, OrderTotalCollection $orderTotalCollection, OrderShippingType $shippingType, OrderPaymentType $paymentType, CurrencyCode $currencyCode, LanguageCode $languageCode, DecimalType $totalWeight[, StringType $comment = null ][, IntType $orderStatusId = null ][, KeyValueCollection $addonValues = null ]) : int
Parameters
$customerNumber : StringType

Customer Number.

$customerEmail : EmailStringType

Customer Email.

$customerTelephone : StringType

Customer Telephone.

$vatIdNumber : StringTYpe

VAT ID number of the customer.

$customerAddress : AddressBlockInterface

Address of the customer.

$billingAddress : AddressBlockInterface

Billing address of the customer.

$deliveryAddress : AddressBlockInterface

Delivery address of the customer.

$orderItemCollection : OrderItemCollection

Collection of the order items.

$orderTotalCollection : OrderTotalCollection

Total collection of the order.

$shippingType : OrderShippingType

Shipping type of the order.

$paymentType : OrderPaymentType

Payment type of the order.

$currencyCode : CurrencyCode

Currency code of the order.

$languageCode : LanguageCode

Language code of the order.

$totalWeight : DecimalType

Total weight of the order in kg.

$comment : StringType = null

Optional comment of the order (default = null).

$orderStatusId : IntType = null

Optional id of the initial order status (default = null).

$addonValues : KeyValueCollection = null

Optional key => value collection of addon values - e.g. cookies (default = null).

Return values
int

Order ID.

removeOrderById()

Removes a specific order, depending on the provided order ID.

public removeOrderById(IdType $orderId) : mixed
Parameters
$orderId : IdType

Order ID of the order to remove.

Return values
mixed

updateOrderStatus()

Updates the order status of an order.

public updateOrderStatus(IdType $orderId, IntType $newOrderStatusId, StringType $comment, BoolType $customerNotified[, IdType $customerId = null ]) : mixed
Parameters
$orderId : IdType

Order ID of the order to update.

$newOrderStatusId : IntType

The new status ID.

$comment : StringType

Comment of the order status history item.

$customerNotified : BoolType

Customer notified flag.

$customerId : IdType = null

Customer ID of the admin account.

Return values
mixed

Search results