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
217 changes: 217 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/

# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

# DNX
project.lock.json
artifacts/

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# Node.js Tools for Visual Studio
.ntvs_analysis.dat

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
2 changes: 1 addition & 1 deletion SNET.Core/HttpConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public string Execute(string payLoad, HttpWebRequest httpRequest)
{
case "POST":
case "PUT":
case "DELETE":
//case "DELETE":
using (StreamWriter streamWriter = new StreamWriter(((WebRequest)httpRequest).GetRequestStream()))
{
if (!string.IsNullOrEmpty(payLoad))
Expand Down
22 changes: 22 additions & 0 deletions SecureNetRestApiSDK/Api/Models/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@ public class Card
[JsonProperty("number")]
public String Number { get; set; }

/// <summary>
/// Masked Credit card account number.
/// </summary>
[JsonProperty("maskedNumber")]
public string MaskedNumber { get; set; }

/// <summary>
/// Credit Card Last 4 Digits
/// </summary>
[JsonProperty("lastFourDigits")]
public string LastFourDigits { get; set; }

/// <summary>
/// Credit Card Type
/// </summary>
[JsonProperty("creditCardType")]
public string CreditCardType { get; set; }



/// <summary>
/// Card security code.
/// </summary>
Expand Down Expand Up @@ -70,6 +90,8 @@ public class Card
[JsonProperty("signature")]
public byte[] Signature { get; set; }



#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,25 @@ public class StoredScheduledVariablePaymentPlan
public int ScheduleId { get; set; }

[JsonProperty("paymentDate")]
public DateTime PaymentDate { get; set; }
public DateTime? PaymentDate { get; set; }

[JsonProperty("amount")]
public decimal Amount { get; set; }

[JsonProperty("paid")]
public bool Paid { get; set; }

[JsonProperty("transactionId")]
public int TransactionId { get; set; }

[JsonProperty("processed")]
public string Processed { get; set; }

[JsonProperty("numberOfRetries")]
public int? NumberOfRetries { get; set; }

[JsonProperty("scheduledDate")]
public DateTime ScheduledDate { get; set; }
#endregion
}
}
3 changes: 2 additions & 1 deletion SecureNetRestApiSDK/Api/Models/StoredVariablePaymentPlan.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using Newtonsoft.Json;
using System.Collections.Generic;

namespace SecureNetRestApiSDK.Api.Models
{
Expand All @@ -11,7 +12,7 @@ public class StoredVariablePaymentPlan
public DateTime PlanStartDate { get; set; }

[JsonProperty("scheduledPayments")]
public object ScheduledPayments { get; set; }
public List<StoredScheduledVariablePaymentPlan> ScheduledPayments { get; set; }

[JsonProperty("maxRetries")]
public int MaxRetries { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion SecureNetRestApiSDK/Api/Models/VariablePaymentPlan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class VariablePaymentPlan : StoredVariablePaymentPlan
{
#region Properties

public DateTime PlanEndDate { get; set; }
public DateTime? PlanEndDate { get; set; }
public string PrimaryPaymentMethodId { get; set; }
public string SecondaryPaymentMethodId { get; set; }
public List<UserDefinedField> UserDefinedFields { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class AddPaymentMethodRequest : SecureNetRequest
#region Properties

public string CustomerId { get; set; }
public Check Check { get; set; }
public Card Card { get; set; }
public string Phone { get; set; }
public string Notes { get; set; }
Expand Down
1 change: 1 addition & 0 deletions SecureNetRestApiSDK/Api/Requests/ChargeRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class ChargeRequest : SecureNetRequest
{
#region Properties

public string CustomerId { get; set; }
/// <summary>
/// Amount to charge the account.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ public class TransactionSearchRequest : SecureNetRequest
{
#region Properties

public int TransactionId { get; set; }
//public int TransactionId { get; set; }
public string CustomerId { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public decimal Amount { get; set; }
// public decimal Amount { get; set; }
public DeveloperApplication DeveloperApplication { get; set; }

#endregion
Expand All @@ -21,12 +21,12 @@ public class TransactionSearchRequest : SecureNetRequest

public override string GetUri()
{
return String.Format("api/transactions/{0}", TransactionId);
return "api/transactions/Search";
}

public override HttpMethodEnum GetMethod()
{
return HttpMethodEnum.GET;
return HttpMethodEnum.POST;
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class UpdatePaymentMethodRequest : SecureNetRequest

public string CustomerId { get; set; }
public string PaymentMethodId { get; set; }
public Check Check { get; set; }
public Card Card { get; set; }
public string Phone { get; set; }
public string Notes { get; set; }
Expand Down
Loading