MergeOrdersStrategy

MergeOrdersStrategy

Merges both Orders. If the guest order contains items which are already in the existing Order, the guest Order quantity will replace that of the existing Order.

Signature

class MergeOrdersStrategy implements OrderMergeStrategy {
  merge(guestOrder: Order, existingOrder: Order) => OrderLine[];
}

Members

merge

method
type:
(guestOrder: Order, existingOrder: Order) => OrderLine[]