initital push
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Darkmatter.Fonepay
|
||||
{
|
||||
public sealed class FonepayError : Exception
|
||||
{
|
||||
public int ErrorCode { get; }
|
||||
|
||||
public FonepayError(int errorCode, string message,
|
||||
string docs)
|
||||
{
|
||||
ErrorCode = errorCode;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 46adc238f3552442bad6f68d9b2ee68a
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
|
||||
namespace Darkmatter.Fonepay
|
||||
{
|
||||
/// <summary>
|
||||
/// User-facing QR request. Credentials (merchantCode/username/password) and the
|
||||
/// HMAC dataValidation are injected by FonepayApiClient at send time.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public struct QrRequest
|
||||
{
|
||||
public float amount;
|
||||
public string prn;
|
||||
public string remarks1;
|
||||
public string remarks2;
|
||||
public string pm;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
internal struct QrRequestPayload
|
||||
{
|
||||
public float amount;
|
||||
public string prn;
|
||||
public string remarks1;
|
||||
public string remarks2;
|
||||
public string pm;
|
||||
public string merchantCode;
|
||||
public string dataValidation;
|
||||
public string username;
|
||||
public string password;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 255c2e13d0ed54987904cd65a5349d29
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Darkmatter.Fonepay
|
||||
{
|
||||
[Serializable]
|
||||
public struct QrResponse
|
||||
{
|
||||
public string message;
|
||||
public string qrMessage;
|
||||
public string status;
|
||||
public int statusCode;
|
||||
public bool success;
|
||||
public string thirdpartyQrWebSocketUrl;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 405247a27c684f08ab11d6ea33d250c0
|
||||
timeCreated: 1778138521
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
|
||||
namespace Darkmatter.Fonepay
|
||||
{
|
||||
/// <summary>
|
||||
/// User-facing tax refund request. Credentials and HMAC dataValidation are
|
||||
/// injected by FonepayApiClient at send time.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public struct TaxRefundRequest
|
||||
{
|
||||
public string fonepayTraceId;
|
||||
public string merchantPRN;
|
||||
public string invoiceNumber;
|
||||
public DateTime invoiceDate;
|
||||
public float transactionAmount;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
internal struct TaxRefundRequestPayload
|
||||
{
|
||||
public string fonepayTraceId;
|
||||
public string merchantPRN;
|
||||
public string invoiceNumber;
|
||||
public string invoiceDate;
|
||||
public float transactionAmount;
|
||||
public string merchantCode;
|
||||
public string dataValidation;
|
||||
public string username;
|
||||
public string password;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 328f1e46b5a941bbbf5c0e8294fc9c34
|
||||
timeCreated: 1778140313
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Darkmatter.Fonepay
|
||||
{
|
||||
public struct TaxRefundResponse
|
||||
{
|
||||
public string fonepayTraceId;
|
||||
public string message;
|
||||
public bool success;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ccdcd51d0dc843eabdb25aa3312bd91a
|
||||
timeCreated: 1778140771
|
||||
Reference in New Issue
Block a user