emoticon_api/Infrastructure/Kuaidi100/Common/Request/Label/CustomPrintParam.cs
2023-10-20 21:58:42 +08:00

49 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Newtonsoft.Json;
using System.Collections.Generic;
namespace Common.Request.Label
{
public class CustomPrintParam
{
/// <summary>
/// 自定义参数优先级高于系统生成值即出现相同key时使用该参数的value
/// </summary>
/// <value></value>
public Dictionary<string, object> customParam;
/// <summary>
/// 打印方向默认0 0-正方向 1-反方向
/// </summary>
/// <value></value>
public string direction;
/// <summary>
/// 打印设备,通过打印机输出的设备码进行获取
/// </summary>
/// <value></value>
public string siid;
/// <summary>
/// 打印状态回调地址
/// </summary>
/// <value></value>
public string callBackUrl;
/// <summary>
/// 快递100模板url
/// </summary>
/// <value></value>
public string tempId;
/// <summary>
/// 打印类型HTML,IMAGE,CMD,CLOUD,NON
/// NON:只下单不打印(默认)
/// HTML:生成html短链
/// IMAGE:生成图片短链
/// CMD:生成打印指令
/// CLOUD:使用快递100云打印机打印使用CLOUD时siid必填
/// </summary>
/// <value></value>
public string printType;
public override string ToString()
{
return JsonConvert.SerializeObject(this, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore });
}
}
}