first commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user