-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
149 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Text; | ||
|
||
namespace Portalum.Zvt.Helpers | ||
{ | ||
/// <summary> | ||
/// EncodingHelper | ||
/// </summary> | ||
public static class EncodingHelper | ||
{ | ||
/// <summary> | ||
/// GetEncoding from ZvtEncoding | ||
/// </summary> | ||
/// <param name="zvtEncoding"></param> | ||
/// <returns></returns> | ||
public static Encoding GetEncoding(ZvtEncoding zvtEncoding) | ||
{ | ||
switch (zvtEncoding) | ||
{ | ||
case ZvtEncoding.UTF8: | ||
return Encoding.UTF8; | ||
case ZvtEncoding.ISO_8859_1: | ||
return Encoding.GetEncoding("iso-8859-1"); | ||
case ZvtEncoding.ISO_8859_2: | ||
return Encoding.GetEncoding("iso-8859-2"); | ||
case ZvtEncoding.ISO_8859_15: | ||
return Encoding.GetEncoding("iso-8859-15"); | ||
case ZvtEncoding.CodePage437: | ||
default: | ||
return Encoding.GetEncoding(437); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Portalum.Zvt/Repositories/IngenicoEnglishIntermediateStatusRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Portalum.Zvt.Repositories | ||
{ | ||
/// <summary> | ||
/// Ingenico English IntermediateStatusRepository | ||
/// </summary> | ||
public class IngenicoEnglishIntermediateStatusRepository : EnglishIntermediateStatusRepository | ||
{ | ||
/// <inheritdoc/> | ||
public IngenicoEnglishIntermediateStatusRepository() : base(new Dictionary<byte, string> | ||
{ | ||
{ 0xA0, "Payment processed" }, | ||
{ 0xA1, "Payment processed\nPlease remove card!" }, | ||
{ 0xA2, "Cancellation successful" }, | ||
{ 0xA3, "Cancellation successful\nPlease remove card!" }, | ||
{ 0xA4, "Cancellation not possible" }, | ||
{ 0xA5, "Cancellation not possible\nPlease remove card!" } | ||
}) | ||
{ } | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/Portalum.Zvt/Repositories/IngenicoGermanIntermediateStatusRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Portalum.Zvt.Repositories | ||
{ | ||
/// <summary> | ||
/// Ingenico German IntermediateStatusRepository | ||
/// </summary> | ||
public class IngenicoGermanIntermediateStatusRepository : EnglishIntermediateStatusRepository | ||
{ | ||
/// <inheritdoc/> | ||
public IngenicoGermanIntermediateStatusRepository() : base(new Dictionary<byte, string> | ||
{ | ||
{ 0xA0, "Zahlung erfolgt" }, | ||
{ 0xA1, "Zahlung erfolgt\nBitte Karte entnehmen!" }, | ||
{ 0xA2, "Storno erfolgt" }, | ||
{ 0xA3, "Storno erfolgt\nBitte Karte entnehmen!" }, | ||
{ 0xA4, "Storno nicht möglich" }, | ||
{ 0xA5, "Storno nicht möglich\nBitte Karte entnehmen!" } | ||
}) | ||
{ } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters