Adding
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
namespace LCU.Library.Internal.CoreApiWrapperLib.ConnectionModels
|
||||
{
|
||||
public class CoreApiConnection
|
||||
{
|
||||
public string EffectiveDate { get; set; }
|
||||
public string PostingDate { get; set; }
|
||||
public string CashBoxNumber { get; set; }
|
||||
public string StsToken { get; set; }
|
||||
public string DnaToken { get; set; }
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
namespace LCU.Library.Internal.CoreApiWrapperLib.ConnectionModels
|
||||
{
|
||||
public class CoreApiUserConnection
|
||||
{
|
||||
public string EffectiveDate { get; set; }
|
||||
public string PostingDate { get; set; }
|
||||
public string CashBoxNumber { get; set; }
|
||||
public string StsToken { get; set; }
|
||||
public string DnaToken { get; set; }
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
namespace LCU.Library.Internal.CoreApiWrapperLib.ConnectionModels
|
||||
{
|
||||
public class DnaTokenConnection
|
||||
{
|
||||
private const string DefaultCashBoxNumber = "0";
|
||||
|
||||
public class DnaTokenRequest
|
||||
{
|
||||
public DnaTokenRequest(CoreApiUserConnection coreApiConnection)
|
||||
{
|
||||
MessageBody = new MessageBodyRequest(coreApiConnection);
|
||||
}
|
||||
|
||||
public MessageBodyRequest MessageBody { get; set; }
|
||||
|
||||
public class MessageBodyRequest
|
||||
{
|
||||
public MessageBodyRequest(CoreApiUserConnection coreApiConnection)
|
||||
{
|
||||
EffectiveDate = coreApiConnection.EffectiveDate;
|
||||
PostingDate = coreApiConnection.PostingDate;
|
||||
CashBoxNumber = coreApiConnection.CashBoxNumber;
|
||||
}
|
||||
|
||||
public string EffectiveDate { get; set; }
|
||||
public string PostingDate { get; set; }
|
||||
public string CashBoxNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class DnaTokenResponse
|
||||
{
|
||||
public MessageHeaderResponse MessageHeader { get; set; }
|
||||
public MessageBodyResponse MessageBody {get; set;}
|
||||
|
||||
public class MessageHeaderResponse
|
||||
{
|
||||
public string UpdateKey { get; set; }
|
||||
public string MessageId { get; set; }
|
||||
}
|
||||
|
||||
public class MessageBodyResponse
|
||||
{
|
||||
public string Dnatoken { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
namespace LCU.Library.Internal.CoreApiWrapperLib.ConnectionModels
|
||||
{
|
||||
public class PreloginConnection
|
||||
{
|
||||
public class PreloginResponse
|
||||
{
|
||||
public MessageHeader MessageHeader { get; set; }
|
||||
public MessageBody MessageBody { get; set; }
|
||||
}
|
||||
|
||||
public class MessageHeader
|
||||
{
|
||||
public string UpdateKey { get; set; }
|
||||
public string MessageId { get; set; }
|
||||
}
|
||||
|
||||
public class MessageBody
|
||||
{
|
||||
public string PostingDate { get; set; }
|
||||
public string CarryoverDate { get; set; }
|
||||
public CashBox[] CashBoxes { get; set; }
|
||||
}
|
||||
|
||||
public class CashBox
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public int CashboxNumber { get; set; }
|
||||
public string Description { get; set; }
|
||||
public LocationOrganization LocationOrganization { get; set; }
|
||||
public string TypeCode { get; set; }
|
||||
public string Url { get; set; }
|
||||
}
|
||||
|
||||
public class LocationOrganization
|
||||
{
|
||||
public string BranchNumber { get; set; }
|
||||
public string BranchName { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
namespace LCU.Library.Internal.CoreApiWrapperLib.ConnectionModels
|
||||
{
|
||||
public class ServiceAccessRequest
|
||||
{
|
||||
public string Grant_Type { get; set; }
|
||||
public string Scope { get; set; }
|
||||
public string Service_Account_Id { get; set; }
|
||||
public string Device_Name { get; set; }
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
namespace LCU.Library.Internal.CoreApiWrapperLib.ConnectionModels
|
||||
{
|
||||
public class ServiceAccessResponse
|
||||
{
|
||||
public string Access_Token { get; set; }
|
||||
public string Token_Type { get; set; }
|
||||
public string Expires_In { get; set; }
|
||||
public string Refresh_Token { get; set; }
|
||||
public string Password_Expiration { get; set; }
|
||||
public string Roaming_Id { get; set; }
|
||||
public string ResponseStatus { get; set; }
|
||||
public string ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using LCU.Library.Internal.CoreApiWrapperLib.Configuration;
|
||||
|
||||
namespace LCU.Library.Internal.CoreApiWrapperModel.ConnectionModels
|
||||
{
|
||||
public class StsTokenConnection
|
||||
{
|
||||
public StsTokenConnection(CoreApiConfiguration coreApiConfiguration)
|
||||
{
|
||||
device_name = coreApiConfiguration.DeviceName;
|
||||
environment = coreApiConfiguration.CoreEnvironment;
|
||||
user_id = coreApiConfiguration.UserId;
|
||||
password = coreApiConfiguration.Password;
|
||||
}
|
||||
|
||||
public string device_name { get; set; }
|
||||
public string environment { get; set; }
|
||||
public string user_id { get; set; }
|
||||
public string password { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user