-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Saman gateway to the documentation v3.2
- Loading branch information
1 parent
a7a7a90
commit b23a3ce
Showing
26 changed files
with
637 additions
and
802 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
31 changes: 31 additions & 0 deletions
31
src/Parbad/src/Gateway/Saman/Internal/Models/SamanCallbackResponse.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,31 @@ | ||
// Copyright (c) Parbad. All rights reserved. | ||
// Licensed under the GNU GENERAL PUBLIC License, Version 3.0. See License.txt in the project root for license information. | ||
|
||
namespace Parbad.Gateway.Saman.Internal.Models; | ||
|
||
internal class SamanCallbackResponse | ||
{ | ||
public string? MID { get; set; } | ||
|
||
public string? State { get; set; } | ||
|
||
public string? Status { get; set; } | ||
|
||
public string? Rrn { get; set; } | ||
|
||
public string? RefNum { get; set; } | ||
|
||
public string? ResNum { get; set; } | ||
|
||
public string? TerminalId { get; set; } | ||
|
||
public string? Amount { get; set; } | ||
|
||
public string? Wage { get; set; } | ||
|
||
public string? TraceNo { get; set; } | ||
|
||
public string? SecurePan { get; set; } | ||
|
||
public string? HashedCardNumber { get; set; } | ||
} |
24 changes: 0 additions & 24 deletions
24
src/Parbad/src/Gateway/Saman/Internal/Models/SamanCallbackResult.cs
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
src/Parbad/src/Gateway/Saman/Internal/Models/SamanMobilePaymentRequest.cs
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/Parbad/src/Gateway/Saman/Internal/Models/SamanMobilePaymentTokenResponse.cs
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
src/Parbad/src/Gateway/Saman/Internal/Models/SamanReverseRequest.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,11 @@ | ||
// Copyright (c) Parbad. All rights reserved. | ||
// Licensed under the GNU GENERAL PUBLIC License, Version 3.0. See License.txt in the project root for license information. | ||
|
||
namespace Parbad.Gateway.Saman.Internal.Models; | ||
|
||
internal class SamanReverseRequest | ||
{ | ||
public string TerminalNumber { get; set; } | ||
|
||
public string RefNum { get; set; } | ||
} |
22 changes: 22 additions & 0 deletions
22
src/Parbad/src/Gateway/Saman/Internal/Models/SamanTokenRequest.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 @@ | ||
// Copyright (c) Parbad. All rights reserved. | ||
// Licensed under the GNU GENERAL PUBLIC License, Version 3.0. See License.txt in the project root for license information. | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace Parbad.Gateway.Saman.Internal.Models; | ||
|
||
internal class SamanTokenRequest | ||
{ | ||
[JsonProperty("action")] | ||
public string Action { get; set; } | ||
|
||
public string TerminalId { get; set; } | ||
|
||
public long Amount { get; set; } | ||
|
||
public string ResNum { get; set; } | ||
|
||
public CallbackUrl RedirectUrl { get; set; } | ||
|
||
public string CellNumber { get; set; } | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Parbad/src/Gateway/Saman/Internal/Models/SamanTokenResponse.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,15 @@ | ||
// Copyright (c) Parbad. All rights reserved. | ||
// Licensed under the GNU GENERAL PUBLIC License, Version 3.0. See License.txt in the project root for license information. | ||
|
||
namespace Parbad.Gateway.Saman.Internal.Models; | ||
|
||
internal class SamanTokenResponse | ||
{ | ||
public int Status { get; set; } | ||
|
||
public string Token { get; set; } | ||
|
||
public string ErrorCode { get; set; } | ||
|
||
public string ErrorDesc { get; set; } | ||
} |
36 changes: 36 additions & 0 deletions
36
src/Parbad/src/Gateway/Saman/Internal/Models/SamanVerificationAndRefundResponse.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,36 @@ | ||
// Copyright (c) Parbad. All rights reserved. | ||
// Licensed under the GNU GENERAL PUBLIC License, Version 3.0. See License.txt in the project root for license information. | ||
|
||
namespace Parbad.Gateway.Saman.Internal.Models; | ||
|
||
internal class SamanVerificationAndRefundResponse | ||
{ | ||
public TransactionDetail TransactionDetail { get; set; } | ||
|
||
public int ResultCode { get; set; } | ||
|
||
public string ResultDescription { get; set; } | ||
|
||
public bool Success { get; set; } | ||
} | ||
|
||
internal class TransactionDetail | ||
{ | ||
public string Rrn { get; set; } | ||
|
||
public string RefNum { get; set; } | ||
|
||
public string MaskedPan { get; set; } | ||
|
||
public string HashedPan { get; set; } | ||
|
||
public long TerminalNumber { get; set; } | ||
|
||
public long OrginalAmount { get; set; } | ||
|
||
public long AffectiveAmount { get; set; } | ||
|
||
public string StraceDate { get; set; } | ||
|
||
public string StraceNo { get; set; } | ||
} |
11 changes: 11 additions & 0 deletions
11
src/Parbad/src/Gateway/Saman/Internal/Models/SamanVerificationRequest.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,11 @@ | ||
// Copyright (c) Parbad. All rights reserved. | ||
// Licensed under the GNU GENERAL PUBLIC License, Version 3.0. See License.txt in the project root for license information. | ||
|
||
namespace Parbad.Gateway.Saman.Internal.Models; | ||
|
||
internal class SamanVerificationRequest | ||
{ | ||
public string RefNum { get; set; } | ||
|
||
public string TerminalNumber { get; set; } | ||
} |
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
36 changes: 0 additions & 36 deletions
36
src/Parbad/src/Gateway/Saman/Internal/ResultTranslators/SamanStateTranslator.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.