#region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language governing permissions
and limitations under the License.
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
----------------------------------------------------------------*/
#endregion Apache License Version 2.0
/*----------------------------------------------------------------
Copyright (C) 2019 Senparc
文件名:ShelfResultJson.cs
文件功能描述:创建货架返回结果
创建标识:Senparc - 20150907
----------------------------------------------------------------*/
using Senparc.Weixin.Entities;
using System.Collections.Generic;
namespace Senparc.Weixin.MP.AdvancedAPIs.Card
{
///
/// 创建货架返回结果
///
public class ShelfCreateResultJson : WxJsonResult
{
///
/// 货架链接。
///
public string url { get; set; }
///
/// 货架ID。货架的唯一标识。
///
public int page_id { get; set; }
}
///
/// 查询-礼品卡货架信息返回结果
///
public class GetGiftCardPageInfoResultJson : WxJsonResult
{
///
/// 货架信息结构体
///
public GiftCardPageData page { get; set; }
}
///
/// 查询-礼品卡货架列表返回结果
///
public class GetGiftCardPageListResultJson : WxJsonResult
{
///
/// 礼品卡货架id列表
///
public List page_id_list { get; set; }
}
///
/// 下架-礼品卡货架返回结果
///
public class DownGiftCardPageResultJson : WxJsonResult
{
///
/// 控制结果的结构体
///
public ConTrolResult control_info { get; set; }
}
///
/// 控制结果的结构体
///
public class ConTrolResult
{
///
/// 商户控制的该appid下所有货架的状态
///
public string biz_control_type { get; set; }
///
/// 系统控制的商家appid下所有的货架状态
///
public string system_biz_control_type { get; set; }
///
/// Page列表的结构体,为商户下所有page列表
///
public List list { get; set; }
}
///
/// 货架
///
public class PageListItem
{
///
/// Page的唯一id
///
public string page_id { get; set; }
///
/// 商户控制的货架状态
///
public string page_control_type { get; set; }
///
/// 由系统控制的货架状态
///
public string system_page_control_type { get; set; }
}
///
/// 申请微信支付礼品卡权限返回结果
///
public class PayGiftCardResultJson : WxJsonResult
{
public string url { get; set; }
}
///
/// 单个礼品卡订单信息返回结果
///
public class GiftCardOrderItemResultJson : WxJsonResult
{
///
/// 订单结构体
///
public GiftCardOrder order { get; set; }
}
///
/// 订单结构体
///
public class GiftCardOrder
{
///
/// 订单号
///
public string order_id { get; set; }
///
/// 货架的id
///
public string page_id { get; set; }
///
/// 微信支付交易订单号
///
public string trans_id { get; set; }
///
/// 订单创建时间,十位时间戳(utc+8)
///
public int create_time { get; set; }
///
/// 订单支付完成时间,十位时间戳(utc+8)
///
public int pay_finish_time { get; set; }
///
/// 全部金额,以分为单位
///
public double total_price { get; set; }
///
/// 购买者的openid
///
public string open_id { get; set; }
///
/// 接收者的openid
///
public string accepter_openid { get; set; }
///
/// 购买货架的渠道参数
///
public string outer_str { get; set; }
///
/// 该订单对应礼品卡是否发送至群
///
public bool IsChatRoom { get; set; }
///
/// 卡列表结构
///
public List card_list { get; set; }
}
///
/// 礼品卡
///
public class GiftCardItem
{
///
/// 购买的卡card_id
///
public string card_id { get; set; }
///
/// 该卡的价格
///
public double price { get; set; }
///
/// 用户获得的code
///
public string code { get; set; }
///
/// 默认祝福语,当用户填入了祝福语时该字段为空
///
public string default_gifting_msg { get; set; }
///
/// 用户选择的背景图
///
public string background_pic_url { get; set; }
///
/// 自定义卡面说明
///
public string outer_img_id { get; set; }
///
/// 礼品卡发送至群时,领取者的openid
///
public string accepter_openid { get; set; }
}
///
/// 批量查询礼品卡订单信息返回结果
///
public class GiftCardOrderListResultJson : WxJsonResult
{
///
/// 总计订单数
///
public int total_count { get; set; }
///
/// 订单列表结构
///
public List order_list { get; set; }
}
///
/// 更新用户礼品卡信息返回结果
///
public class UpdateUserGiftCardResultJson : WxJsonResult
{
///
/// 当前用户积分总额
///
public int result_bonus { get; set; }
///
/// 当前用户预存总金额
///
public int result_balance { get; set; }
///
/// 用户openid
///
public string openid { get; set; }
}
}