def submit_service_for_approval(self, payload): service = ServiceFactory().create_service_entity_model( self.org_uuid, self.service_uuid, payload, ServiceStatus.APPROVAL_PENDING.value) service = ServiceRepository().save_service( self.username, service, ServiceStatus.APPROVAL_PENDING.value) return service.to_response()
def save_service(self, payload): service = ServiceFactory().create_service_entity_model( self.org_uuid, self.service_uuid, payload, ServiceStatus.DRAFT.value) service = ServiceRepository().save_service(self.username, service, ServiceStatus.DRAFT.value) return service.to_response()