We have a scenario where we need to calculate multiple fee components & share between Pre & Post stages of a Plugin. So we created the object like this.
class FeeCalculation
{
public string TotalFee { get; set; }
public string FilingFee { get; set; }
public string LegalFee { get; set; }
public string RecordFee { get; set; }
}
So far we have used single fee component & shared variable worked nicely. When tried to assign the whole object - the result is not fruitful.
context.SharedVariables.Add("fees", fcObject);
Is there a way to achieve this expected result?