Class OrderWriteService
Class OrderWriteService
- OrderWriteService implements OrderWriteServiceInterface
Methods summary
public
__construct( OrderRepositoryInterface $orderRepository, OrderItemRepositoryInterface $orderItemRepository, OrderItemAttributeRepositoryFactoryInterface $orderItemAttributeRepositoryFactory, OrderTotalRepository $orderTotalRepository, OrderStatusHistoryStorage $orderStatusHistoryWriter, OrderServiceSettingsInterface $orderServiceSetting )
Class Constructor
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 )
: integer
Create New Customer Order
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 )
: integer
Create New Standalone Order
public
updateCustomerAddress( IdType $orderId, AddressBlockInterface $newAddress )
Update Customer Address
public
updateBillingAddress( IdType $orderId, AddressBlockInterface $newAddress )
Update Billing Address
public
updateDeliveryAddress( IdType $orderId, AddressBlockInterface $newAddress )
Update Delivery Address
public
addOrderItemAttribute( IdType $orderItemId, OrderItemAttributeInterface $orderItemAttribute )
: integer
Add Order Item Attribute
public
updateOrderItemAttribute( StoredOrderItemAttributeInterface $orderItemAttribute )
Update Order Item Attribute
public
removeOrderItemAttribute( StoredOrderItemAttributeInterface $orderItemAttribute )
Remove Order Item Attribute
public
updateShippingType( IdType $orderId, OrderShippingType $newShippingType )
Update Shipping Type
public
updateOrderStatus( IdType $orderId, IntType $newOrderStatusId, StringType $comment, BoolType $customerNotified, IdType $customerId = null )
Update Order Status
public
addOrderStatusHistoryEntry( IdType $orderId, StringType $comment, IdType $customerId )
Add Order Status History Entry