174 lines
14 KiB
C#
174 lines
14 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace AllBase.Model.Result.JST
|
||
{
|
||
public class JSTOrderDataInfo
|
||
{
|
||
public int? code { get; set; } // 0 //错误码
|
||
public string msg { get; set; } // 执行成功 //错误描述
|
||
public JSTDataInfo data { get; set; }
|
||
}
|
||
|
||
public class JSTDataInfo
|
||
{
|
||
public int? page_size { get; set; } // 2 每页多少条
|
||
public int? page_index { get; set; } // 1 第几页
|
||
public int? data_count { get; set; } // 2 总条数
|
||
public int? page_count { get; set; } // 1 总页数
|
||
public bool? has_next { get; set; } // false 是否有下一页
|
||
/// <summary>
|
||
/// 订单数据合集
|
||
/// </summary>
|
||
public List<JSTOrderInfo> orders { get; set; }
|
||
}
|
||
|
||
public class JSTOrderInfo
|
||
{
|
||
public bool? is_cod { get; set; } // boolean false 是否货到付款
|
||
public string l_id { get; set; } // string 快递单号
|
||
public string send_date { get; set; } // string 发货日期
|
||
public string pay_date { get; set; } // string 2019-12-16 16:35:28 支付时间
|
||
public string freight { get; set; } // string 4.0 买家支付运费,保留两位小数,单位(元)
|
||
public string first_freight { get; set; } // string 跨境订单-头程运费
|
||
public string outerwms_freight { get; set; } // string 跨境订单-尾程运费
|
||
public string receiver_address { get; set; } // string 收货地址
|
||
public string receiver_district { get; set; } // string 区
|
||
public string wms_co_id { get; set; } // string 0 发货仓编号(当值为0表示主仓)
|
||
public string logistics_company { get; set; } // string 快递公司
|
||
public long? as_id { get; set; } // number 补发换货单对应的售后单号
|
||
public decimal? free_amount { get; set; } // number 抵扣金额
|
||
public string shop_name { get; set; } // string 川梣铺子 店铺名称
|
||
public string question_type { get; set; } // string 等待订单合并 问题类型,仅当问题订单时有效
|
||
public string outer_pay_id { get; set; } // string 20210928 外部支付单号
|
||
public string so_id { get; set; } // string 20210928 线上订单号,线上同步过来的订单号,最长不超过20;唯一
|
||
public string type { get; set; } // string 普通订单 订单类型,普通订单;补发订单;分销Plus;供销Plus;换货订单
|
||
public string order_from { get; set; } // string open 订单来源,ERP:手工下单; COPY:复制; MERGE:合并; SPLIT:拆分;拆分还原; MOBILE:京东; IMPORT:导入; drp-s:供销推送; drp-d:分销推送; KWAISHOP:快手;微商城; PINDUODUO;拼多多; TOUTIAOFXG;头条放心购
|
||
public string status { get; set; } // string Question 聚水潭订单状态 待付款:WaitPay;发货中:Delivering;被合并:Merged;异常:Question;被拆分:Split;等供销商|外仓发货:WaitOuterSent;已付款待审核:WaitConfirm;已客审待财审:WaitFConfirm;已发货:Sent;取消:Cancelled
|
||
public long? pay_amount { get; set; } // number 应付金额,保留两位小数,单位(元)
|
||
public string shop_buyer_id { get; set; } // string 买家昵称
|
||
public string open_id { get; set; } // string 平台买家唯一值,仅限平台已经支持的才会返回
|
||
public string shop_status { get; set; } // string 平台订单状态: 等待买家付款=WAIT_BUYER_PAY, 等待卖家发货=WAIT_SELLER_SEND_GOODS,等待买家确认收货=WAIT_BUYER_CONFIRM_GOODS, 交易成功=TRADE_FINISHED, 付款后交易关闭=TRADE_CLOSED,付款前交易关闭=TRADE_CLOSED_BY_TAOBAO; https://jushuitan.yuque.com/cscvxv/al2cbn/ycunxb?singleDoc#8lWt 《平台订单shop_status字段枚举》 密码:tyuy
|
||
public string receiver_mobile { get; set; } // string 手机
|
||
public string receiver_phone { get; set; } // string 电话
|
||
public string order_date { get; set; } // string 2019-12-15 18:14:26 订单日期
|
||
public string question_desc { get; set; } // string 问题描述
|
||
public string receiver_city { get; set; } // string 收件信息-市
|
||
public string receiver_state { get; set; } // string 收件信息-省
|
||
public string receiver_name { get; set; } // string 收件信息-收件人
|
||
public long? o_id { get; set; } // integer 38852 ERP内部订单号,聚水潭生成的订单号,唯一
|
||
public long? shop_id { get; set; } // integer 11690153 店铺编号
|
||
public long? co_id { get; set; } // integer 11053062 公司编号
|
||
public string remark { get; set; } // string 订单备注;卖家备注
|
||
public string package_no { get; set; } // string 参考号
|
||
public string warehouse_oid { get; set; } // string 外部单据号
|
||
public string drp_co_id_from { get; set; } // string 分销商编号
|
||
public string modified { get; set; } // string 2021-09-28 16:08:13 最后修改时间
|
||
public string labels { get; set; } // string 延时发货 多标签
|
||
public long? paid_amount { get; set; } // number pay节点的支付金额
|
||
public string platform_free_amount { get; set; } // string 营收小计:平台优惠;null值处理成了空字符串返回,实际有值的是number类型返回
|
||
public string pay_free_amount { get; set; } // string 营收小计:支付优惠;null值处理成了空字符串返回,实际有值的是number类型返回
|
||
public string referrer_free_amount { get; set; } // string 营收小计:达人优惠;null值处理成了空字符串返回,实际有值的是number类型返回
|
||
public string shop_free_amount { get; set; } // string 营收小计:店铺优惠;null值处理成了空字符串返回,实际有值的是number类型返回
|
||
public string currency { get; set; } // string 币种
|
||
public string buyer_message { get; set; } // string 买家留言
|
||
public string lc_id { get; set; } // string 物流公司编码
|
||
public string cb_total_tax { get; set; } // string 跨境平台税金
|
||
public string invoice_title { get; set; } // string 发票抬头
|
||
public string invoice_type { get; set; } // string 发票类型
|
||
public long? invoice_amount { get; set; } // number 发票金额
|
||
public string buyer_tax_no { get; set; } // string 发票税号
|
||
public string creator_name { get; set; } // string 订单业务员
|
||
public string plan_delivery_date { get; set; } // string 计划发货时间
|
||
public string node { get; set; } // string 线下备注
|
||
public string receiver_town { get; set; } // string 收件信息-街道
|
||
public string drp_co_id_to { get; set; } // string 供销商编号
|
||
public string shop_site { get; set; } // string 商家自有商城 店铺站点信息
|
||
public string un_lid { get; set; } // string 国际物流单号
|
||
public string end_time { get; set; } // string 确认收货时间(仅限淘系平台,头条放心购、拼多多、苏宁易购、快手电商、有赞微商城,如果线上状态为取消,该时间为完结时间)
|
||
public string receiver_country { get; set; } // string 国家代码;(映射关系参考https://openweb.jushuitan.com/doc?docId=225)
|
||
public string receiver_zip { get; set; } // string 邮编
|
||
public long? seller_flag { get; set; } // integer 旗帜(1红旗,2黄旗,3绿旗,4蓝旗,5紫旗)
|
||
public string receiver_email { get; set; } // string 收货邮箱
|
||
public string referrer_id { get; set; } // string 主播id
|
||
public string referrer_name { get; set; } // string 主播名称
|
||
public string created { get; set; } // string 2021-09-28 16:08:13 订单创建时间
|
||
/// <summary>
|
||
/// 支付信息
|
||
/// </summary>
|
||
public List<JSTPayInfo> pays { get; set; }
|
||
/// <summary>
|
||
/// 商品信息
|
||
/// </summary>
|
||
public List<JSTItemInfo> items { get; set; }
|
||
|
||
public string skus { get; set; } // string 商品(商品总数.sku_id* qty)
|
||
public decimal? f_weight { get; set; } // number 实称重量
|
||
public decimal? weight { get; set; } // number 重量
|
||
public long? ts { get; set; } // integer 数据库行版本号:https://docs.microsoft.com/zh-cn/sql/t-sql/data-types/rowversion-transact-sql?view=sql-server-ver16
|
||
public string buyer_id { get; set; } // string 买家ID(系统根据shop_buyer_id生成的)
|
||
public decimal? buyer_paid_amount { get; set; } // number 营收小计:买家实付(仅限爱库存,阿里巴巴,百度小店,得物,饿百零售,好食期,好衣库,京东,快团团,快手电商,蘑菇街,团好货,拼多多,杉杉商业,淘宝天猫,头条放心购,小红书,有赞)
|
||
public decimal? seller_income_amount { get; set; } // number 营收小计:卖家实收(仅限淘宝天猫,爱库存,阿里巴巴,百度小店,得物,饿百零售,好食期,好衣库,京东,快团团,快手电商,蘑菇街,团好货,拼多多,杉杉商业,头条放心购,小红书,有赞)
|
||
public string chosen_channel { get; set; } // string 实发快递渠道
|
||
public string channel_name { get; set; } // string 发货渠道(自定义之后的名称)
|
||
public string cb_lc_code { get; set; } // string 渠道编码
|
||
public string cb_lc_name { get; set; } // string 发货渠道(自定义之前的名称)
|
||
public string link_o_id { get; set; } // string 被合并被拆分的订单内部单号
|
||
public string merge_so_id { get; set; } // string 合并线上订单号
|
||
public string shipment { get; set; } // string 买家指定物流
|
||
public string sign_time { get; set; } // string 预计送达时间
|
||
|
||
// ...
|
||
}
|
||
|
||
public class JSTItemInfo
|
||
{
|
||
public bool? is_gift { get; set; } // boolean false 是否赠品
|
||
public string sku_id { get; set; } // string CY001 原始商品编码
|
||
public string name { get; set; } // string CY001 商品名称
|
||
public string refund_status { get; set; } // string 申请退款的状态, 未申请:none;退款中:waiting;退款成功:success;退款关闭:closed
|
||
public string refund_id { get; set; } // string 退款的唯一单号
|
||
public decimal? price { get; set; } // number 单价
|
||
public string outer_oi_id { get; set; } // string 201911 子订单号,商家系统订单商品明细主键,为了拆单合单时溯源,最长不超过50
|
||
public string item_status { get; set; } // string 商品状态;None:无;WaitPay:待付款;WaitConfirm:等待审核;Question:异常;WaitDeliver:平台接口告知ERP订单项解锁可发货的状态; WaitFConfirm:等待财务审核;Delivering:发货中;WaitOuterSent:等待外仓发货;Sent:已发货;OuterSent:外仓发货;Merged:被合并;Cancelled:用户取消订单;Replaced:被替换(明细);Split:被拆分; Delete:删除;Lock:锁定;SentCancelled:发货后取消。非必填字段可以为null,不表示任何含义
|
||
public string i_id { get; set; } // string 001 款式编码
|
||
public string properties_value { get; set; } // string CY001 属性
|
||
public long? oi_id { get; set; } // integer 39845 子订单号,最长不超过20
|
||
public decimal? amount { get; set; } // number 223.0 总额
|
||
public string shop_sku_id { get; set; } // string 201911 店铺商品编码,对应店铺商品资料页面平台店铺商品编码
|
||
public string raw_so_id { get; set; } // string 20210928 原始线上单号
|
||
public int? qty { get; set; } // integer 1 数量
|
||
public bool? is_presale { get; set; } // boolean 是否预售
|
||
public decimal? base_price { get; set; } // number 223.0 基本售价(原价)
|
||
public string pic { get; set; } // string 商品图片
|
||
public string sku_type { get; set; } // string normal 商品类型;nomal:普通商品;combine:组合装商品;no_deliver:不发货
|
||
public string shop_i_id { get; set; } // string 店铺款式编码
|
||
public decimal? buyer_paid_amount { get; set; } // number 营收小计:买家实付(仅限爱库存,阿里巴巴,百度小店,得物,饿百零售,好食期,好衣库,京东,快团团,快手电商,蘑菇街,团好货,拼多多,杉杉商业,淘宝天猫,头条放心购,小红书,有赞)
|
||
public decimal? seller_income_amount { get; set; } // number 营收小计:卖家实收(仅限淘宝天猫,爱库存,阿里巴巴,百度小店,得物,饿百零售,好食期,好衣库,京东,快团团,快手电商,蘑菇街,团好货,拼多多,杉杉商业,头条放心购,小红书,有赞)
|
||
public string referrer_id { get; set; } // string 主播ID
|
||
public string lwh_id { get; set; } // string 虚拟仓编号
|
||
public string lwh_name { get; set; } // string 虚拟仓名称
|
||
public string remark { get; set; } // string 明细备注
|
||
public string produced_date { get; set; } // string 生产日期
|
||
public string batch_id { get; set; } // string 批次号
|
||
public string item_ext_data { get; set; } // string 订单明细扩展字段
|
||
}
|
||
|
||
public class JSTPayInfo
|
||
{
|
||
public bool? is_order_pay { get; set; } // boolean true 是否支付
|
||
public string buyer_account { get; set; } // string 38 支付帐号
|
||
public decimal? amount { get; set; } // number 706.0 支付金额
|
||
public string pay_date { get; set; } // string 2019-12-1616:35:28 支付时间
|
||
public string outer_pay_id { get; set; } // string 20210928 外部支付单号
|
||
public string pay_id { get; set; } // string 37163 支付单ID
|
||
public string payment { get; set; } // string 微信 支付方式
|
||
public string status { get; set; } // string 支付状态(None:无 / 未定义;WaitConfirm:待审核;Confirmed:已确认;Finished:完成;Cancelled:作废;Deleted:删除;Lock:锁定;VirtualFinished:虚拟完成;Replace:替换;Reset:重置;Reserve:预占(保留))
|
||
public string pay_type { get; set; } // string 支付类型(1 支付,-1 退款)
|
||
public long? o_id { get; set; } // number 内部订单号
|
||
}
|
||
}
|