You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
2.8 KiB
C#

9 months ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace POSV.HttpApi
{
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class OpenResponse<T>
{
/**
*
*/
[JsonProperty(PropertyName = "data")]
public T Data { get; set; }
/**
*
*/
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }
/**
*
*/
[JsonProperty(PropertyName = "message")]
public string Message { get; set; }
}
/// <summary>
///
/// </summary>
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class NullObject { }
/// <summary>
/// POS注册码验证
/// </summary>
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class PollCode
{
[JsonProperty(PropertyName = "tenantId")]
public string TenantId { get; set; }
[JsonProperty(PropertyName = "authCode")]
public string AuthCode { get; set; }
[JsonProperty(PropertyName = "cardAuth")]
public CardAuth CardAuth { get; set; }
[JsonProperty(PropertyName = "store")]
public AppKeyCode Response { get; set; }
}
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class CardAuth
{
[JsonProperty(PropertyName = "appKey")]
public string AppKey { get; set; }
[JsonProperty(PropertyName = "appSecret")]
public string AppSecret { get; set; }
}
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class AppKeyCode
{
[JsonProperty(PropertyName = "storeId")]
public string StoreId { get; set; }
[JsonProperty(PropertyName = "storeNo")]
public string StoreNo { get; set; }
[JsonProperty(PropertyName = "appKey")]
public string AppKey { get; set; }
[JsonProperty(PropertyName = "appSecret")]
public string AppSecret { get; set; }
[JsonProperty(PropertyName = "storeName")]
public string StoreName { get; set; }
[JsonProperty(PropertyName = "storeType")]
public StoreType StoreType { get; set; }
}
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class StoreType
{
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
[JsonProperty(PropertyName = "no")]
public string No { get; set; }
[JsonProperty(PropertyName = "sign")]
public string Sign { get; set; }
[JsonProperty(PropertyName = "address")]
public string Address { get; set; }
}
}