#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
using System.Collections.Generic;
namespace Senparc.Weixin.MP.AdvancedAPIs
{
///
/// 邮费模板信息
///
public class BaseExpressData
{
public string delivery_template { get; set; }
}
public class DeliveryTemplate
{
///
/// 邮费模板名称
///
public string Name { get; set; }
///
/// 支付方式(0-买家承担运费, 1-卖家承担运费)
///
public int Assumer { get; set; }
///
/// 计费单位(0-按件计费, 1-按重量计费, 2-按体积计费,目前只支持按件计费,默认为0)
///
public int Valuation { get; set; }
///
/// 具体运费计算
///
public List TopFee { get; set; }
}
public class TopFeeItem
{
///
/// 快递类型ID(参见增加商品/快递列表)
///
public long Type { get; set; }
///
/// 默认邮费计算方法
///
public Normal Normal { get; set; }
///
/// 指定地区邮费计算方法
///
public List Custom { get; set; }
}
public class Normal
{
///
/// 起始计费数量(比如计费单位是按件, 填2代表起始计费为2件)
///
public int StartStandards { get; set; }
///
/// 起始计费金额(单位: 分)
///
public int StartFees { get; set; }
///
/// 递增计费数量
///
public int AddStandards { get; set; }
///
/// 递增计费金额(单位 : 分)
///
public int AddFees { get; set; }
}
public class CustomItem
{
///
/// 起始计费数量
///
public int StartStandards { get; set; }
///
/// 起始计费金额(单位: 分)
///
public int StartFees { get; set; }
///
/// 递增计费数量
///
public int AddStandards { get; set; }
///
/// 递增计费金额(单位 : 分)
///
public int AddFees { get; set; }
///
/// 指定国家
///
public string DestCountry { get; set; }
///
/// 指定省份
///
public string DestProvince { get; set; }
///
/// 指定城市
///
public string DestCity { get; set; }
}
///
/// 增加邮费模板
///
public class AddExpressData : BaseExpressData
{
}
///
/// 修改邮费模板Post数据
///
public class UpDateExpressData : BaseExpressData
{
///
/// 邮费模板Id
///
public int template_id { get; set; }
}
}