Skip to content

Commit 751e7cd

Browse files
committed
Merge pull request AuthorizeNet#56 from AuthorizeNet/future
1.8.3 Release into Master
2 parents 2d17420 + 7ea41db commit 751e7cd

File tree

198 files changed

+73081
-597
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+73081
-597
lines changed

.gitignore

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.sln.docstates
8+
9+
# Build results
10+
[Dd]ebug/
11+
[Dd]ebugPublic/
12+
[Rr]elease/
13+
[Rr]eleases/
14+
x64/
15+
x86/
16+
build/
17+
bld/
18+
[Bb]in/
19+
[Oo]bj/
20+
21+
# Roslyn cache directories
22+
*.ide/
23+
24+
# MSTest test Results
25+
[Tt]est[Rr]esult*/
26+
[Bb]uild[Ll]og.*
27+
28+
#NUNIT
29+
*.VisualState.xml
30+
TestResult.xml
31+
32+
# Build Results of an ATL Project
33+
[Dd]ebugPS/
34+
[Rr]eleasePS/
35+
dlldata.c
36+
37+
*_i.c
38+
*_p.c
39+
*_i.h
40+
*.ilk
41+
*.meta
42+
*.obj
43+
*.pch
44+
*.pdb
45+
*.pgc
46+
*.pgd
47+
*.rsp
48+
*.sbr
49+
*.tlb
50+
*.tli
51+
*.tlh
52+
*.tmp
53+
*.tmp_proj
54+
*.log
55+
*.vspscc
56+
*.vssscc
57+
.builds
58+
*.pidb
59+
*.svclog
60+
*.scc
61+
62+
# Chutzpah Test files
63+
_Chutzpah*
64+
65+
# Visual C++ cache files
66+
ipch/
67+
*.aps
68+
*.ncb
69+
*.opensdf
70+
*.sdf
71+
*.cachefile
72+
73+
# Visual Studio profiler
74+
*.psess
75+
*.vsp
76+
*.vspx
77+
78+
# TFS 2012 Local Workspace
79+
$tf/
80+
81+
# Guidance Automation Toolkit
82+
*.gpState
83+
84+
# ReSharper is a .NET coding add-in
85+
_ReSharper*/
86+
*.[Rr]e[Ss]harper
87+
*.DotSettings.user
88+
89+
# JustCode is a .NET coding addin-in
90+
.JustCode
91+
92+
# TeamCity is a build add-in
93+
_TeamCity*
94+
95+
# DotCover is a Code Coverage Tool
96+
*.dotCover
97+
98+
# NCrunch
99+
_NCrunch_*
100+
.*crunch*.local.xml
101+
102+
# MightyMoose
103+
*.mm.*
104+
AutoTest.Net/
105+
106+
# Web workbench (sass)
107+
.sass-cache/
108+
109+
# Installshield output folder
110+
[Ee]xpress/
111+
112+
# DocProject is a documentation generator add-in
113+
DocProject/buildhelp/
114+
DocProject/Help/*.HxT
115+
DocProject/Help/*.HxC
116+
DocProject/Help/*.hhc
117+
DocProject/Help/*.hhk
118+
DocProject/Help/*.hhp
119+
DocProject/Help/Html2
120+
DocProject/Help/html
121+
122+
# Click-Once directory
123+
publish/
124+
125+
# Publish Web Output
126+
*.[Pp]ublish.xml
127+
*.azurePubxml
128+
# TODO: Comment the next line if you want to checkin your web deploy settings
129+
# but database connection strings (with potential passwords) will be unencrypted
130+
*.pubxml
131+
*.publishproj
132+
133+
# NuGet Packages
134+
*.nupkg
135+
# The packages folder can be ignored because of Package Restore
136+
**/packages/*
137+
# except build/, which is used as an MSBuild target.
138+
!**/packages/build/
139+
# If using the old MSBuild-Integrated Package Restore, uncomment this:
140+
#!**/packages/repositories.config
141+
142+
# Windows Azure Build Output
143+
csx/
144+
*.build.csdef
145+
146+
# Windows Store app package directory
147+
AppPackages/
148+
149+
# Others
150+
sql/
151+
*.Cache
152+
ClientBin/
153+
[Ss]tyle[Cc]op.*
154+
~$*
155+
*~
156+
*.dbmdl
157+
*.dbproj.schemaview
158+
*.pfx
159+
*.publishsettings
160+
node_modules/
161+
162+
# RIA/Silverlight projects
163+
Generated_Code/
164+
165+
# Backup & report files from converting an old project file
166+
# to a newer Visual Studio version. Backup files are not needed,
167+
# because we have git ;-)
168+
_UpgradeReport_Files/
169+
Backup*/
170+
UpgradeLog*.XML
171+
UpgradeLog*.htm
172+
173+
# SQL Server files
174+
*.mdf
175+
*.ldf
176+
177+
# Business Intelligence projects
178+
*.rdl.data
179+
*.bim.layout
180+
*.bim_*.settings
181+
182+
# Microsoft Fakes
183+
FakesAssemblies/

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language:
2+
c
3+
4+
install:
5+
- sudo apt-get install mono-devel mono-gmcs nunit-console
6+
7+
script:
8+
- xbuild ./Authorize.NET/AuthorizeNET.csproj
9+
- xbuild ./AuthorizeNETtest/AuthorizeNETtest.csproj
10+
# make mono happy by copying the config file with project name
11+
- cp AuthorizeNETtest/App.config AuthorizeNETtest/AuthorizeNETtest.config
12+
- nunit-console ./AuthorizeNETtest/AuthorizeNETtest.csproj -run=AuthorizeNet.Api.Controllers.MockTest -exclude Integration,NotWorkingOnMono

Authorize.NET/AIM/Requests/GatewayRequest.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,15 @@ void LoadCoreValues() {
227227
/// <summary>
228228
/// Adds a Customer record to the current request
229229
/// </summary>
230-
public IGatewayRequest AddCustomer(string ID, string first, string last, string address, string state, string zip) {
230+
public IGatewayRequest AddCustomer(string ID, string email, string first, string last, string address, string city, string state, string zip) {
231231
Queue(ApiFields.FirstName, first);
232232
Queue(ApiFields.LastName, last);
233233
Queue(ApiFields.Address, address);
234+
Queue(ApiFields.City, city);
234235
Queue(ApiFields.State, state);
235236
Queue(ApiFields.Zip, zip);
236237
Queue(ApiFields.CustomerID, ID);
237-
238+
Queue(ApiFields.Email, email);
238239
return this;
239240
}
240241

@@ -316,12 +317,15 @@ public IGatewayRequest AddCardCode(string cardCode) {
316317
/// <summary>
317318
/// Adds a Shipping Record to the current request
318319
/// </summary>
319-
public IGatewayRequest AddShipping(string ID, string first, string last, string address, string state, string zip) {
320+
public IGatewayRequest AddShipping(string ID, string email,string first, string last, string address, string city, string state, string zip) {
320321
Queue(ApiFields.ShipFirstName, first);
321322
Queue(ApiFields.ShipLastName, last);
322323
Queue(ApiFields.ShipAddress, address);
324+
Queue(ApiFields.ShipCity, city);
323325
Queue(ApiFields.ShipState, state);
324326
Queue(ApiFields.ShipZip, zip);
327+
Queue(ApiFields.CustomerID, ID);
328+
Queue(ApiFields.Email, email);
325329
return this;
326330

327331
}

Authorize.NET/AIM/Requests/IGatewayRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace AuthorizeNet {
33
public interface IGatewayRequest {
44
IGatewayRequest AddCardCode(string cardCode);
5-
IGatewayRequest AddCustomer(string ID, string first, string last, string address, string state, string zip);
5+
IGatewayRequest AddCustomer(string ID, string email,string first, string last, string address, string city, string state, string zip);
66
IGatewayRequest AddDuty(decimal amount, string name, string description);
77
IGatewayRequest AddDuty(decimal amount);
88
IGatewayRequest AddFraudCheck();
@@ -13,7 +13,7 @@ public interface IGatewayRequest {
1313
IGatewayRequest AddLineItem(string itemID, string name, string description, int quantity, decimal price, bool taxable);
1414
IGatewayRequest AddMerchantValue(string key, string value);
1515
string Address { get; set; }
16-
IGatewayRequest AddShipping(string ID, string first, string last, string address, string state, string zip);
16+
IGatewayRequest AddShipping(string ID, string email, string first, string last, string address, string city, string state, string zip);
1717
IGatewayRequest AddTax(decimal amount, string name, string description);
1818
IGatewayRequest AddTax(decimal amount);
1919
string AllowPartialAuth { get; set; }

0 commit comments

Comments
 (0)