Upgrade
This section contains specific upgrade instructions for the Voyado addOn.
Remove this line IoC.Resolve.. from CheckoutB2BController.cs and CheckoutB2CController.cs files.
private void UpdatePersonInformation(Person person, CustomerDetailsB2CViewModel customerDetailsViewModel)
{
//…
if (isUpdated)
{
person.SetValuesByCarrier(personCarrier, Solution.Instance.SystemToken);
IoC.Resolve<MarketingAutomationService>().RegisterUserUpdated(person.ID);
}
}
Breaking change:
This public method in ContactService.cs in Litium.AddOns.VoyadoConnector project has a extra parameter which is the Voyado Contact type see ContactType.cs:
public Task<Contact> GetContactByEmailAsync(ContactType contactType, string email)
{
if (string.IsNullOrEmpty(email))
{
throw new ArgumentException("Invalid email");
}
return Client.GetAsync<Contact>($"{BaseUrl}/{contactType.ToString()}/bykey/{email}");
}
Upgraded code in files:
- OrderSyncService.cs
- CustomerSyncService.cs
- ContactType.cs
- ContactService.cs
- There are no configuration file changes.
- Xslt transformation was found to be redundant, and is removed. Xslt files no longer needed to generate feed.
- Following files in Voyado project are changed
- /Src/Litium.AddOns.VoyadoConnector/Converters/VariantToProductFeedConverter.cs
- IFeedConverter interface has changed, and code updated accordingly.
- /Src/Litium.AddOns.VoyadoConnector/Extensions/ObjectExtensions.cs
- Try-catch protection around generating logging information.
- /Src/Litium.AddOns.VoyadoConnector/Feeds/MarketFeedFilter.cs
- The implementing interface, IFeedFilter<T> has changed, and code updated accordingly.
- /Src/Litium.AddOns.VoyadoConnector/Serializers/ProductFeedSerializer.cs
- Critical change > the lifetime dependency of the service is marked as Transient now.
Upgrading to v5.6.105
- There are no configuration file changes.
- In \src\Litium.AddOns.VoyadoConnector\Converters\VariantToProductFeedConverter.cs; public bool CanConvert(Type type) method is changed to return typeof(Variant). Complete method is as below now.
public bool CanConvert(Type type)
{
return type == typeof(Variant);
}