1 package org.onap.nbi.apis.serviceorder.workflow;
3 import org.onap.nbi.apis.serviceorder.MultiClient;
4 import org.onap.nbi.apis.serviceorder.model.orchestrator.ServiceOrderInfo;
5 import org.springframework.beans.factory.annotation.Autowired;
6 import org.springframework.stereotype.Service;
9 public class CreateAAICustomerManager {
13 private MultiClient serviceOrderConsumerService;
16 public void createAAICustomer(ServiceOrderInfo serviceOrderInfo) {
19 if (serviceOrderInfo.isUseServiceOrderCustomer() && serviceOrderInfo.isAllItemsInAdd()
20 && !serviceOrderConsumerService
21 .isCustomerPresentInAAI(serviceOrderInfo.getSubscriberInfo().getGlobalSubscriberId())) {
22 serviceOrderConsumerService.putCustomer(serviceOrderInfo.getSubscriberInfo());