Files
2026-03-11 11:18:25 -05:00

30 lines
927 B
C#

using System.Xml.Linq;
using CRIF.ACTion.Common;
namespace CRIF.ACTion.Loan
{
public class SavingsAccountProperty : IProperty
{
private readonly Guid _Id;
private readonly decimal _Value;
public SavingsAccountProperty(Guid id, decimal value)
{
_Id = id;
_Value = value;
}
public XElement Build(params XElement[] content)
{
var element = new XElement(CrifNamespaces.Common + "propertyStocksAndBonds",
new XAttribute(CrifNamespaces.Common + "id", _Id.ToString()),
new XAttribute(CrifNamespaces.Common + "finalEstimatedValue", _Value),
new XAttribute(CrifNamespaces.Common + "propertyType", "CD"), //from CRIF Example
new XAttribute(CrifNamespaces.Common + "description", "CDs or Savings")); //from CRIF Example
return element;
}
}
}