first commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System.Xml.Linq;
|
||||
using CRIF.ACTion.Common;
|
||||
using CRIF.ACTion.Common.Builders;
|
||||
using CRIF.ACTion.Configuration;
|
||||
|
||||
namespace CRIF.ACTion.Loan
|
||||
{
|
||||
public class DealershipRequestBuilder : BuilderBase
|
||||
{
|
||||
|
||||
public readonly string applicationId;
|
||||
|
||||
public DealershipRequestBuilder(string applicationId,
|
||||
CrifSettings settings)
|
||||
: base(CrifNamespaces.App.Namespace, settings)
|
||||
{
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public override XElement Build(params XElement[] content)
|
||||
{
|
||||
var createAppElement = GetAppElement(applicationId);
|
||||
|
||||
return base.Build(createAppElement);
|
||||
}
|
||||
|
||||
public static XElement GetAppElement(string applicationId)
|
||||
{
|
||||
var element = new XElement(CrifNamespaces.Empty + "getApplication");
|
||||
element.SetAttributeValue("applicationID", applicationId);
|
||||
|
||||
return element;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user