package org.hso.ecommerce.action.shop;

import org.hso.ecommerce.api.RestServiceForDelivery;
import org.hso.ecommerce.entities.shop.CustomerOrder;
import org.springframework.web.client.ResourceAccessException;

public class EnableTrackingAction {

    public static void addTrackingInfo(CustomerOrder customerOrder) throws ResourceAccessException {

        customerOrder.trackingId = new RestServiceForDelivery().getDeliveryID(customerOrder);
    }
}
