Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Interfaces

  • OrderFactoryInterface
  • OrderInterface
  • OrderItemAttributeInterface
  • OrderItemAttributeRepositoryDeleterInterface
  • OrderItemAttributeRepositoryFactoryInterface
  • OrderItemAttributeRepositoryInterface
  • OrderItemAttributeRepositoryReaderInterface
  • OrderItemAttributeRepositoryWriterInterface
  • OrderItemFactoryInterface
  • OrderItemInterface
  • OrderItemPropertyFactoryInterface
  • OrderItemPropertyRepositoryDeleterInterface
  • OrderItemPropertyRepositoryReaderInterface
  • OrderItemPropertyRepositoryWriterInterface
  • OrderItemRepositoryDeleterInterface
  • OrderItemRepositoryInterface
  • OrderItemRepositoryReaderInterface
  • OrderItemRepositoryWriterInterface
  • OrderListGeneratorInterface
  • OrderObjectServiceInterface
  • OrderPaymentTypeInterface
  • OrderReadServiceInterface
  • OrderRepositoryDeleterInterface
  • OrderRepositoryInterface
  • OrderRepositoryReaderInterface
  • OrderRepositoryWriterInterface
  • OrderServiceSettingsInterface
  • OrderShippingTypeInterface
  • OrderStatusHistoryReaderInterface
  • OrderStatusHistoryWriterInterface
  • OrderTotalFactoryInterface
  • OrderTotalInterface
  • OrderTotalRepositoryDeleterInterface
  • OrderTotalRepositoryInterface
  • OrderTotalRepositoryReaderInterface
  • OrderTotalRepositoryWriterInterface
  • OrderWriteServiceInterface
  • StoredOrderItemAttributeInterface
  • StoredOrderItemInterface
  • StoredOrderTotalInterface

Interface OrderWriteServiceInterface

Interface OrderWriteServiceInterface

Direct known implementers

OrderWriteService

Package: Order\Interfaces
Category: System
Located at CoreServices/Order/Interfaces/OrderWriteServiceInterface.inc.php

Methods summary

public integer
# 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, StringType $comment = null, IdType $orderStatusId = null, KeyValueCollection $addonValues = null )

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

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

Parameters

$customerId
Customer ID.
$customerStatusInfo
Customer Status Information.
$customerNumber
Customer Number.
$customerEmail
Customer Email.
$customerTelephone
Customer Telephone.
$vatIdNumber
VAT ID Number.
$customerAddress
Address of the customer.
$billingAddress
Billing address of the customer.
$deliveryAddress
Delivery address of the customer.
$orderItemCollection
Collection of the order items.
$orderTotalCollection
Total collection of the order.
$shippingType
Shipping type of the order.
$paymentType
Payment type of the order.
$currencyCode
Currency code of the order.
$languageCode
Language code of the order.
$comment
Optional comment of the order (default = null).
$orderStatusId
Optional id of the initial order status (default = null).
$addonValues

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

Returns

integer
Order ID.
public integer
# 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, StringType $comment = null, IdType $orderStatusId = null, KeyValueCollection $addonValues = null )

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

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

Parameters

$customerNumber
Customer Number.
$customerEmail
Customer Email.
$customerTelephone
Customer Telephone.
$vatIdNumber
VAT ID number of the customer.
$customerAddress
Address of the customer.
$billingAddress
Billing address of the customer.
$deliveryAddress
Delivery address of the customer.
$orderItemCollection
Collection of the order items.
$orderTotalCollection
Total collection of the order.
$shippingType
Shipping type of the order.
$paymentType
Payment type of the order.
$currencyCode
Currency code of the order.
$languageCode
Language code of the order.
$comment
Optional comment of the order (default = null).
$orderStatusId
Optional id of the initial order status (default = null).
$addonValues

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

Returns

integer
Order ID.
public
# updateCustomerAddress( IdType $orderId, AddressBlockInterface $newAddress )

Updates the customers address.

Updates the customers address.

Parameters

$orderId
Order ID which holds the current address.
$newAddress
New address of the customer.
public
# updateBillingAddress( IdType $orderId, AddressBlockInterface $newAddress )

Updates the customers billing address.

Updates the customers billing address.

Parameters

$orderId
Order ID which holds the current address.
$newAddress
New billing address.
public
# updateDeliveryAddress( IdType $orderId, AddressBlockInterface $newAddress )

Updates the customers delivery address.

Updates the customers delivery address.

Parameters

$orderId
Order ID which holds the current address.
$newAddress
New delivery address.
public integer
# addOrderItem( IdType $orderId, OrderItemInterface $orderItem )

Adds an item to the order.

Adds an item to the order.

Parameters

$orderId
Order ID of the order to add the item.
$orderItem
The order item to add.

Returns

integer
ID of the StoredOrderItem.
public
# updateOrderItem( StoredOrderItemInterface $orderItem )

Updates an order item.

Updates an order item.

Parameters

$orderItem
The order item to update.
public
# removeOrderItem( StoredOrderItemInterface $orderItem )

Removes an item from an order.

Removes an item from an order.

Parameters

$orderItem
The order item to remove.
public integer
# addOrderItemAttribute( IdType $orderItemId, OrderItemAttributeInterface $orderItemAttribute )

Adds an order item attribute to the order.

Adds an order item attribute to the order.

Parameters

$orderItemId
Order ID of the order item to add the attribute.
$orderItemAttribute
The order item attribute to add.

Returns

integer
ID of stored order item attribute.
public
# updateOrderItemAttribute( StoredOrderItemAttributeInterface $orderItemAttribute )

Updates an item attribute of an order.

Updates an item attribute of an order.

Parameters

$orderItemAttribute
The order item attribute to update.
public
# removeOrderItemAttribute( StoredOrderItemAttributeInterface $orderItemAttribute )

Removes an item attribute of an order.

Removes an item attribute of an order.

Parameters

$orderItemAttribute
The order item attribute to remove.
public integer
# addOrderTotal( IdType $orderId, OrderTotalInterface $orderTotal )

Adds a total price to an order.

Adds a total price to an order.

Parameters

$orderId
Order ID of the order to add the total price.
$orderTotal
Total price to add to the order.

Returns

integer
ID of stored order total.
public
# updateOrderTotal( StoredOrderTotalInterface $orderTotal )

Updates a total price of an order.

Updates a total price of an order.

Parameters

$orderTotal
The total price of an order to update.
public
# removeOrderTotal( StoredOrderTotalInterface $orderTotal )

Removes a total price of an order.

Removes a total price of an order.

Parameters

$orderTotal
The total price of an order to remove.
public
# updateShippingType( IdType $orderId, OrderShippingType $newShippingType )

Updates the shipping type of an order.

Updates the shipping type of an order.

Parameters

$orderId
Order ID of the order to update.
$newShippingType
The new shipping type.
public
# updatePaymentType( IdType $orderId, OrderPaymentType $newPaymentType )

Updates the payment type of an order.

Updates the payment type of an order.

Parameters

$orderId
Order ID of the order to update.
$newPaymentType
The new payment type.
public
# updateComment( IdType $orderId, StringType $newComment )

Updates the comment of an order.

Updates the comment of an order.

Parameters

$orderId
Order ID of the order to update.
$newComment
The new comment.
public
# updateOrderStatus( IdType $orderId, IdType $newOrderStatusId, StringType $comment, BoolType $customerNotified )

Updates the order status of an order.

Updates the order status of an order.

Parameters

$orderId
Order ID of the order to update.
$newOrderStatusId
The new status ID.
$comment
Comment of the order status history item.
$customerNotified
Customer notified flag.
public
# updateOrder( OrderInterface $order )

Updates the provided order.

Updates the provided order.

Parameters

$order
Order to update.
public
# removeOrderById( IdType $orderId )

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

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

Parameters

$orderId
Order ID of the order to remove.
API documentation generated by ApiGen