|
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
}
|