UseExistingStrategy

UseExistingStrategy

The guest order is discarded and the existing order is used as the active order.

Signature

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

Members

merge

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