Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions EazySDK/ClientHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ public class ClientHandler
{
public IConfiguration Settings()
{
var GetSettings = SettingsManager.CreateSettings();
return GetSettings;
try
{
return SettingsManager.CreateSettings();
} catch
{
return SettingsManager.CreateSettingsInMemory();
}
}

public Session Session(IConfiguration Settings)
Expand Down
24 changes: 20 additions & 4 deletions EazySDK/EazySDK.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<Authors>Access PaySuite</Authors>
<Company>Access PaySuite</Company>
<Product>Eazy Customer Manager 3</Product>
Expand All @@ -15,11 +15,27 @@ Eazy Collect API built in .NET Standard 2.0. Its core purpose is to provide a fr
<PackageId>EazySDK</PackageId>
<Version>1.4.0</Version>
</PropertyGroup>

<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<Authors>Access PaySuite</Authors>
<Company>Access PaySuite</Company>
<Product>Eazy Customer Manager 3</Product>
<Description>
EazySDK is an integration of the
Eazy Collect API built in .NET Standard 2.0. Its core purpose is to provide a framework for developers already working with Eazy Collect to integrate Eazy Customer Manager into their platform. The framework provides functions designed to speed up the integration process between a developers Customer Relationship Manager and Eazy Collect.
</Description>
<PackageLicenseUrl></PackageLicenseUrl>
<PackageProjectUrl>https://github.com/EazyCollectServices/EazyCollectSDK-Dotnet</PackageProjectUrl>
<RepositoryUrl>https://github.com/EazyCollectServices/EazyCollectSDK-Dotnet</RepositoryUrl>
<PackageTags>Fintech Finance EazyCollect Direct Debit Payment Processing</PackageTags>
<PackageIconUrl>https://ecm3.eazycollect.co.uk/Content/faviconWorkspace.ico</PackageIconUrl>
<PackageId>EazySDK</PackageId>
<Version>1.4.0</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions EazySDK/Utilities/CustomerPostChecks.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Text.RegularExpressions;
using System.Text.RegularExpressions;

namespace EazySDK.Utilities
{
Expand All @@ -20,7 +20,7 @@ public class CustomerPostChecks
/// </returns>
public bool CheckPostCodeIsCorectlyFormatted(string PostCode)
{
Regex search = new Regex("^([A-Za-z][A-Ha-hJ-Yj-y]?[0-9][A-Za-z0-9]? ?[0-9][A-Za-z]{2}|[Gg][Ii][Rr] ?0[Aa]{2})$");
Regex search = new Regex("^(([A-Z][0-9]{1,2})|(([A-Z][A-HJ-Y][0-9]{1,2})|(([A-Z][0-9][A-Z])|([A-Z][A-HJ-Y][0-9]?[A-Z])))) [0-9][A-Z]{2}$");
var result = search.IsMatch(PostCode);

if (!result)
Expand Down