Interface OrderWriteServiceInterface
| category |
System |
|---|---|
| package |
Order |
| subpackage |
Interfaces |
addOrderItem(\IdType $orderId, \OrderItemInterface $orderItem) : integer
integerID of the StoredOrderItem.
addOrderItemAttribute(\IdType $orderItemId, \OrderItemAttributeInterface $orderItemAttribute) : integer
integerID of stored order item attribute.
addOrderStatusHistoryEntry(\IdType $orderId, \StringType $comment, \IdType $customerId)
Add an order status history entry to an order, without changing the status or notifying the customer.
addOrderTotal(\IdType $orderId, \OrderTotalInterface $orderTotal) : integer
integerID of stored order total.
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) : integer
\KeyValueCollectionOptional key => value collection of addon values - e.g. cookies (default = null).
integerOrder ID.
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) : integer
\StringTYpeVAT ID number of the customer.
\KeyValueCollectionOptional key => value collection of addon values - e.g. cookies (default = null).
integerOrder ID.
removeOrderById(\IdType $orderId)
removeOrderItem(\StoredOrderItemInterface $orderItem)
removeOrderItemAttribute(\StoredOrderItemAttributeInterface $orderItemAttribute)
removeOrderTotal(\StoredOrderTotalInterface $orderTotal)
updateBillingAddress(\IdType $orderId, \AddressBlockInterface $newAddress)
updateComment(\IdType $orderId, \StringType $newComment)
updateCustomerAddress(\IdType $orderId, \AddressBlockInterface $newAddress)
updateDeliveryAddress(\IdType $orderId, \AddressBlockInterface $newAddress)
updateOrder(\OrderInterface $order)
updateOrderItem(\StoredOrderItemInterface $orderItem)
updateOrderItemAttribute(\StoredOrderItemAttributeInterface $orderItemAttribute)
updateOrderStatus(\IdType $orderId, \IntType $newOrderStatusId, \StringType $comment, \BoolType $customerNotified, \IdType $customerId = null)
updateOrderTotal(\StoredOrderTotalInterface $orderTotal)
updatePaymentType(\IdType $orderId, \OrderPaymentType $newPaymentType)
updateShippingType(\IdType $orderId, \OrderShippingType $newShippingType)