public Task AddCreationEvent(int accommodationId, AccommodationChangeEventSources source, Dictionary <string, string> supplierAccommodationCodes, MultilingualAccommodation accommodation, bool isActive, DeactivationReasons deactivationReason = default) { var creationLog = AccommodationChangeLogConverter.GetCreationChangeLog(accommodationId, source, supplierAccommodationCodes, accommodation, isActive, deactivationReason); return(AddAccommodationChangeLog(creationLog)); }
public static AccommodationChangeLog GetMergeChangeLog(int accommodationId, AccommodationChangeEventSources eventSource, int mergedAccommodationId, Dictionary <string, string> sourceAccommodationSupplierCodes, Dictionary <string, string> mergedAccommodationSupplierCodes) { var mergeEventData = new MergeEventData(mergedAccommodationId, sourceAccommodationSupplierCodes, mergedAccommodationSupplierCodes); return(GetAccommodationChangeLog(accommodationId, eventSource, AccommodationChangeEventTypes.Merge, mergeEventData)); }
public Task AddNewSupplierAdditionEvent(int accommodationId, AccommodationChangeEventSources source, Dictionary <string, string> existingAccommodationSupplierCodes, string supplier, string supplierAccommodationCode) { var newSupplierAdditionLog = AccommodationChangeLogConverter.GetNewSupplierAdditionLog(accommodationId, source, existingAccommodationSupplierCodes, supplier, supplierAccommodationCode); return(AddAccommodationChangeLog(newSupplierAdditionLog)); }
public static AccommodationChangeLog GetRemoveChangeLog(int accommodationId, AccommodationChangeEventSources eventSource, AccommodationRemoveReasons reason) { var removeEventData = new RemoveEventData(reason); return(GetAccommodationChangeLog(accommodationId, eventSource, AccommodationChangeEventTypes.Remove, removeEventData)); }
public Task AddDeactivationEvent(int accommodationId, AccommodationChangeEventSources source, DeactivationReasons deactivationReason, string?deactivationReasonDescription) { var deactivationLog = AccommodationChangeLogConverter.GetDeactivationChangeLog(accommodationId, source, deactivationReason, deactivationReasonDescription); return(AddAccommodationChangeLog(deactivationLog)); }
public Task AddActivationEvent(int accommodationId, AccommodationChangeEventSources source, DeactivationReasons deactivationReason, AccommodationKeyData?previousKeyData, AccommodationKeyData?currentKeyData) { var activationLog = AccommodationChangeLogConverter.GetActivationChangeLog(accommodationId, source, deactivationReason, previousKeyData, currentKeyData); return(AddAccommodationChangeLog(activationLog)); }
public Task AddMergeEvent(int accommodationId, AccommodationChangeEventSources source, int mergedAccommodationId, Dictionary <string, string> sourceAccommodationSupplierCodes, Dictionary <string, string> mergedAccommodationSupplierCodes) { var mergeLog = AccommodationChangeLogConverter.GetMergeChangeLog(accommodationId, source, mergedAccommodationId, sourceAccommodationSupplierCodes, mergedAccommodationSupplierCodes); return(AddAccommodationChangeLog(mergeLog)); }
public void CollectMergeEvent(int accommodationId, AccommodationChangeEventSources source, int mergedAccommodationId, Dictionary <string, string> sourceAccommodationSupplierCodes, Dictionary <string, string> mergedAccommodationSupplierCodes) { var mergeLog = AccommodationChangeLogConverter.GetMergeChangeLog(accommodationId, source, mergedAccommodationId, sourceAccommodationSupplierCodes, mergedAccommodationSupplierCodes); AccommodationsChangeLogs.Add(mergeLog); }
public void CollectCreationEvent(int accommodationId, AccommodationChangeEventSources source, Dictionary <string, string> supplierAccommodationCodes, MultilingualAccommodation accommodation, bool isActive, DeactivationReasons deactivationReasons = default) { var creationLog = AccommodationChangeLogConverter.GetCreationChangeLog(accommodationId, source, supplierAccommodationCodes, accommodation, isActive, deactivationReasons); AccommodationsChangeLogs.Add(creationLog); }
public void CollectActivationEvent(int accommodationId, AccommodationChangeEventSources source, DeactivationReasons deactivationReason, AccommodationKeyData?previousKeyData = default, AccommodationKeyData?currentKeyData = default) { var activationLog = AccommodationChangeLogConverter.GetActivationChangeLog(accommodationId, source, deactivationReason, previousKeyData, currentKeyData); AccommodationsChangeLogs.Add(activationLog); }
public void CollectDeactivationEvent(int accommodationId, AccommodationChangeEventSources source, DeactivationReasons deactivationReason, string deactivationReasonService) { var deactivationLog = AccommodationChangeLogConverter.GetDeactivationChangeLog(accommodationId, source, deactivationReason, deactivationReasonService); AccommodationsChangeLogs.Add(deactivationLog); }
public Task AddSupplierCodeRemoveEvent(int accommodationId, AccommodationChangeEventSources source, string supplier, string supplierCode, Dictionary <string, string> accommodationSupplierCodes, SupplierCodeRemoveReasons reason) { var supplierCodeRemoveLog = AccommodationChangeLogConverter.GetSupplierCodeRemoveChangeLog(accommodationId, source, supplier, supplierCode, accommodationSupplierCodes, reason); return(AddAccommodationChangeLog(supplierCodeRemoveLog)); }
public void CollectNewSupplierAdditionEvent(int accommodationId, AccommodationChangeEventSources source, Dictionary <string, string> existingAccommodationSupplierCodes, string supplier, string supplierAccommodationCode) { var newSupplierAdditionLog = AccommodationChangeLogConverter.GetNewSupplierAdditionLog(accommodationId, source, existingAccommodationSupplierCodes, supplier, supplierAccommodationCode); AccommodationsChangeLogs.Add(newSupplierAdditionLog); }
public void CollectSupplierCodeRemoveEvent(int accommodationId, AccommodationChangeEventSources source, string supplier, string supplierCode, Dictionary <string, string> accommodationSupplierCodes, SupplierCodeRemoveReasons reason) { var supplierCodeRemoveLog = AccommodationChangeLogConverter.GetSupplierCodeRemoveChangeLog(accommodationId, source, supplier, supplierCode, accommodationSupplierCodes, reason); AccommodationsChangeLogs.Add(supplierCodeRemoveLog); }
public void CollectDeactivationReasonChangeEvent(int accommodationId, AccommodationChangeEventSources source, DeactivationReasons oldDeactivationReason, DeactivationReasons newDeactivationReason) { var changeLog = AccommodationChangeLogConverter.GetDeactivationReasonChangeLog(accommodationId, source, oldDeactivationReason, newDeactivationReason); AccommodationsChangeLogs.Add(changeLog); }
public static AccommodationChangeLog GetDuplicateAccommodationCommonSuppliersCodesRemoveLog(int accommodationId, AccommodationChangeEventSources eventSource, int sourceAccommodationId, Dictionary <string, string> duplicateAccommodationSupplierCodes, Dictionary <string, string> sourceAccommodationSupplierCodes) { var duplicateAccommodationSupplierCodesMergeLogEventData = new DuplicateAccommodationCommonSuppliersCodesRemoveEventData(sourceAccommodationId, duplicateAccommodationSupplierCodes, sourceAccommodationSupplierCodes); return(GetAccommodationChangeLog(accommodationId, eventSource, AccommodationChangeEventTypes.DuplicateAccommodationCommonSuppliersCodesRemove, duplicateAccommodationSupplierCodesMergeLogEventData)); }
public static AccommodationChangeLog GetNewSupplierAdditionLog(int accommodationId, AccommodationChangeEventSources eventSource, Dictionary <string, string> existingAccommodationSupplierCodes, string supplier, string supplierAccommodationCode) { var newSupplierAdditionLogEventData = new NewSupplierAdditionEventData(existingAccommodationSupplierCodes, supplier, supplierAccommodationCode); return(GetAccommodationChangeLog(accommodationId, eventSource, AccommodationChangeEventTypes.NewSupplierAddition, newSupplierAdditionLogEventData)); }
public static AccommodationChangeLog GetActivationChangeLog(int accommodationId, AccommodationChangeEventSources eventSource, DeactivationReasons deactivationReason, AccommodationKeyData?previousKeyData = default, AccommodationKeyData?currentKeyData = default) { var activationEventData = new ActivationEventData { DeactivationReason = deactivationReason, CurrentKeyData = currentKeyData, PreviousKeyData = previousKeyData }; return(GetAccommodationChangeLog(accommodationId, eventSource, AccommodationChangeEventTypes.Activation, activationEventData)); }
public static AccommodationChangeLog GetDeactivationReasonChangeLog(int accommodationId, AccommodationChangeEventSources eventSource, DeactivationReasons oldDeactivationReason, DeactivationReasons newDeactivationReason) { var deactivationReasonChangeEventData = new DeactivationReasonChangeEventData { OldReason = oldDeactivationReason, NewReason = newDeactivationReason }; return(GetAccommodationChangeLog(accommodationId, eventSource, AccommodationChangeEventTypes.DeactivationReasonChange, deactivationReasonChangeEventData)); }
private static AccommodationChangeLog GetAccommodationChangeLog <T>(int accommodationId, AccommodationChangeEventSources eventSource, AccommodationChangeEventTypes eventType, T eventData) => new ()
public Task AddRemoveEvent(int accommodationId, AccommodationChangeEventSources source, AccommodationRemoveReasons reason) { var removeLog = AccommodationChangeLogConverter.GetRemoveChangeLog(accommodationId, source, reason); return(AddAccommodationChangeLog(removeLog)); }
public static AccommodationChangeLog GetDataCorrectionChangeLog(int accommodationId, AccommodationChangeEventSources eventSource, MultilingualAccommodation accommodation) { var dataCorrectionEventData = new DataCorrectionEventData(accommodation); return(GetAccommodationChangeLog(accommodationId, eventSource, AccommodationChangeEventTypes.DataCorrection, dataCorrectionEventData)); }
public Task AddDeactivationEvents(List <int> accommodationIds, AccommodationChangeEventSources source, DeactivationReasons deactivationReason, string?deactivationReasonDescription) { var deactivationLogs = accommodationIds.Select(id => AccommodationChangeLogConverter.GetDeactivationChangeLog(id, source, deactivationReason, deactivationReasonDescription)).ToList(); return(AddAccommodationChangeLogs(deactivationLogs)); }
public Task AddDataCorrectionEvent(int accommodationId, AccommodationChangeEventSources source, MultilingualAccommodation accommodation) { var dataCorrectionLog = AccommodationChangeLogConverter.GetDataCorrectionChangeLog(accommodationId, source, accommodation); return(AddAccommodationChangeLog(dataCorrectionLog)); }
public Task AddLocalityChangingEvent(int accommodationId, AccommodationChangeEventSources eventSource, int previousLocalityId, int newLocalityId, AccommodationLocalityChangingReason reason) { var localityChangingLog = AccommodationChangeLogConverter.GetLocalityChangingLog(accommodationId, eventSource, previousLocalityId, newLocalityId, reason); return(AddAccommodationChangeLog(localityChangingLog)); }
public static AccommodationChangeLog GetCreationChangeLog(int accommodationId, AccommodationChangeEventSources eventSource, Dictionary <string, string> supplierAccommodationCodes, MultilingualAccommodation accommodation, bool isActive, DeactivationReasons deactivationReason = default) { var creationEventData = new CreationEventData(supplierAccommodationCodes, accommodation, isActive, deactivationReason); return(GetAccommodationChangeLog(accommodationId, eventSource, AccommodationChangeEventTypes.Creation, creationEventData)); }
public static AccommodationChangeLog GetDeactivationChangeLog(int accommodationId, AccommodationChangeEventSources eventSource, DeactivationReasons deactivationReason, string?deactivationReasonDescription) { var deactivationEventData = new DeactivationEventData(deactivationReason, deactivationReasonDescription); return(GetAccommodationChangeLog(accommodationId, eventSource, AccommodationChangeEventTypes.Deactivation, deactivationEventData)); }
public static AccommodationChangeLog GetSupplierCodeRemoveChangeLog(int accommodationId, AccommodationChangeEventSources eventSource, string supplier, string supplierCode, Dictionary <string, string> accommodationSupplierCodes, SupplierCodeRemoveReasons reason) { var supplierCodeRemoveEventData = new SupplierCodeRemoveEventData(supplier, supplierCode, accommodationSupplierCodes, reason); return(GetAccommodationChangeLog(accommodationId, eventSource, AccommodationChangeEventTypes.SupplierCodeRemove, supplierCodeRemoveEventData)); }
public static AccommodationChangeLog GetLocalityChangingLog(int accommodationId, AccommodationChangeEventSources eventSource, int previousLocalityId, int newLocalityId, AccommodationLocalityChangingReason reason) { var changingLocalityEventData = new LocalityChangeEventData(previousLocalityId, newLocalityId, reason); return(GetAccommodationChangeLog(accommodationId, eventSource, AccommodationChangeEventTypes.LocalityChanging, changingLocalityEventData)); }
public Task AddDuplicateAccommodationCommonSuppliersCodesRemoveEvent(int accommodationId, AccommodationChangeEventSources source, int sourceAccommodationId, Dictionary <string, string> duplicateAccommodationSupplierCodes, Dictionary <string, string> sourceAccommodationSupplierCodes) { var duplicateAccommodationCommonSuppliersCodesRemoveLog = AccommodationChangeLogConverter.GetDuplicateAccommodationCommonSuppliersCodesRemoveLog( accommodationId, source, sourceAccommodationId, duplicateAccommodationSupplierCodes, sourceAccommodationSupplierCodes); return(AddAccommodationChangeLog(duplicateAccommodationCommonSuppliersCodesRemoveLog)); }