Skip to content

Commit

Permalink
Added missing code for xName in CCSale, CCAuth, CCCapture, and CCCredit,
Browse files Browse the repository at this point in the history
  • Loading branch information
mfried40 committed May 30, 2024
1 parent 5829621 commit 4768a5e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Cardknox.NET/Cardknox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ public CardknoxResponse CCSale(CCSale _sale, bool force = false)

// The next many fields are optional and so there will be a lot of if statements here
// Optional, but recommended
if (!IsNullOrWhiteSpace(_sale.Name))
_values.Add("xName", _sale.Name);

if (!IsNullOrWhiteSpace(_sale.Street))
_values.Add("xStreet", _sale.Street);

Expand Down Expand Up @@ -346,6 +349,9 @@ public CardknoxResponse CCAuthOnly(CCAuthOnly _auth, bool force = false)

// The next many fields are optional and so there will be a lot of if statements here
// Optional, but recommended
if (!IsNullOrWhiteSpace(_auth.Name))
_values.Add("xName", _auth.Name);

if (!IsNullOrWhiteSpace(_auth.Street))
_values.Add("xStreet", _auth.Street);

Expand Down Expand Up @@ -415,6 +421,9 @@ public CardknoxResponse CCCapture(CCCapture _capture, bool force = false)

// The next many fields are optional and so there will be a lot of if statements here
// Optional, but recommended
if (!IsNullOrWhiteSpace(_capture.Name))
_values.Add("xName", _capture.Name);

if (!IsNullOrWhiteSpace(_capture.Street))
_values.Add("xStreet", _capture.Street);

Expand Down Expand Up @@ -507,6 +516,9 @@ public CardknoxResponse CCCredit(CCCredit _credit, bool force = false)

// The next many fields are optional and so there will be a lot of if statements here
// Optional, but recommended
if (!IsNullOrWhiteSpace(_credit.Name))
_values.Add("xName", _credit.Name);

if (!IsNullOrWhiteSpace(_credit.Street))
_values.Add("xStreet", _credit.Street);

Expand Down

0 comments on commit 4768a5e

Please sign in to comment.