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
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Parbad.Gateway.Tara.Internal.Models
{
internal class TaraAuthenticateRequest
{
public string username { get; set; }
public string password { get; set; }
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Parbad.Gateway.Tara.Internal.Models
{
internal class TaraAuthenticateResponse
{
public string accessToken { get; set; }
public string result { get; set; }
public string description { get; set; }
public string doTime { get; set; }
public long expireTime { get; set; }
}
}

15 changes: 15 additions & 0 deletions src/Parbad.Gateway/Tara/src/Internal/Models/TaraCallbackResult.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace Parbad.Gateway.Tara.Internal.Models
{
internal class TaraCallbackResult
{
public bool IsSucceed { get; set; }
public string Token { get; set; }
public string Result { get; set; }
public string Description { get; set; }
public string ChannelRefNumber { get; set; }
public string AdditionalData { get; set; }
public long OrderId { get; set; }
public string Message { get; set; }
}
}

18 changes: 18 additions & 0 deletions src/Parbad.Gateway/Tara/src/Internal/Models/TaraGetTokenRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System.Collections.Generic;

namespace Parbad.Gateway.Tara.Internal.Models
{
internal class TaraGetTokenRequest
{
public string ip { get; set; }
public List<TaraServiceAmount> serviceAmountList { get; set; }
public List<TaraInvoiceItem> taraInvoiceItemList { get; set; }
public string additionalData { get; set; }
public string callBackUrl { get; set; }
public string amount { get; set; }
public string mobile { get; set; }
public long orderId { get; set; }
public long vat { get; set; }
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Parbad.Gateway.Tara.Internal.Models
{
internal class TaraGetTokenResponse
{
public string token { get; set; }
public string result { get; set; }
public string description { get; set; }
public string doTime { get; set; }
}
}

14 changes: 14 additions & 0 deletions src/Parbad.Gateway/Tara/src/Internal/Models/TaraInquiryRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// 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.Tara.Internal.Models
{
internal class TaraInquiryRequest
{
public string ip { get; set; }
public string token { get; set; }
}
}



19 changes: 19 additions & 0 deletions src/Parbad.Gateway/Tara/src/Internal/Models/TaraInquiryResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// 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 System.Collections.Generic;

namespace Parbad.Gateway.Tara.Internal.Models
{
internal class TaraInquiryResponse
{
public string result { get; set; }
public string description { get; set; }
public string doTime { get; set; }
public List<TaraTrackPurchase> trackPurchaseList { get; set; }
public string orderId { get; set; }
}
}



49 changes: 49 additions & 0 deletions src/Parbad.Gateway/Tara/src/Internal/Models/TaraInvoiceItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
namespace Parbad.Gateway.Tara.Internal.Models
{
/// <summary>
/// Represents an invoice item in Tara gateway request.
/// </summary>
public class TaraInvoiceItem
{
/// <summary>
/// Item name
/// </summary>
public string name { get; set; }

/// <summary>
/// Item code
/// </summary>
public string code { get; set; }

/// <summary>
/// Item count/quantity
/// </summary>
public long count { get; set; }

/// <summary>
/// Unit type
/// </summary>
public long unit { get; set; }

/// <summary>
/// Item fee/price
/// </summary>
public long fee { get; set; }

/// <summary>
/// Item group
/// </summary>
public string group { get; set; }

/// <summary>
/// Item group title
/// </summary>
public string groupTitle { get; set; }

/// <summary>
/// Additional data for this item
/// </summary>
public string data { get; set; }
}
}

19 changes: 19 additions & 0 deletions src/Parbad.Gateway/Tara/src/Internal/Models/TaraServiceAmount.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
namespace Parbad.Gateway.Tara.Internal.Models
{
/// <summary>
/// Represents a service amount in Tara gateway request.
/// </summary>
public class TaraServiceAmount
{
/// <summary>
/// Service identifier
/// </summary>
public long serviceId { get; set; }

/// <summary>
/// Amount for this service
/// </summary>
public long amount { get; set; }
}
}

22 changes: 22 additions & 0 deletions src/Parbad.Gateway/Tara/src/Internal/Models/TaraTrackPurchase.cs
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 System.Collections.Generic;

namespace Parbad.Gateway.Tara.Internal.Models
{
internal class TaraTrackPurchase
{
public string token { get; set; }
public string result { get; set; }
public string description { get; set; }
public string doTime { get; set; }
public List<TaraServiceAmount> serviveAmountList { get; set; }
public string amount { get; set; }
public string rrn { get; set; }
public string type { get; set; }
}
}



Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Parbad.Gateway.Tara.Internal.Models
{
internal class TaraVerifyRequest
{
public string ip { get; set; }
public string token { get; set; }
}
}

17 changes: 17 additions & 0 deletions src/Parbad.Gateway/Tara/src/Internal/Models/TaraVerifyResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System.Collections.Generic;

namespace Parbad.Gateway.Tara.Internal.Models
{
internal class TaraVerifyResponse
{
public string token { get; set; }
public string result { get; set; }
public string description { get; set; }
public string doTime { get; set; }
public List<TaraServiceAmount> serviceAmountList { get; set; }
public string amount { get; set; }
public string rrn { get; set; }
public string type { get; set; }
}
}

Loading
Loading