You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
6.1 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2023 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) 2023 Senparc
文件名CreateParkingRequestData.cs
文件功能描述:创建停车入场接口请求数据
创建标识Senparc - 20210925
----------------------------------------------------------------*/
using Senparc.Weixin.TenPayV3.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Senparc.Weixin.TenPayV3.Apis.VehicleParking
{
/// <summary>
/// 创建停车入场接口请求数据
/// <para>详细请参考微信支付官方文档 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_8_2.shtml </para>
/// </summary>
public class CreateParkingRequestData
{
/// <summary>
/// 含参构造函数
/// </summary>
/// <param name="out_parking_no">商户入场id <para>body商户侧入场标识id在同一个商户号下唯一</para><para>示例值1231243</para></param>
/// <param name="plate_number">车牌号 <para>body车牌号仅包括省份+车牌,不包括特殊字符。</para><para>示例值粤B888888</para></param>
/// <param name="plate_color">车牌颜色 <para>body车牌颜色枚举值BLUE蓝色GREEN绿色YELLOW黄色BLACK黑色WHITE白色LIMEGREEN黄绿色</para><para>示例值BLUE</para></param>
/// <param name="notify_url">回调通知url <para>body接受入场状态变更回调通知的url注意回调url只接受https</para><para>示例值https://yoursite.com/wxpay.html</para></param>
/// <param name="start_time">入场时间 <para>body入场时间遵循rfc3339标准格式格式为YYYY-MM-DDTHH:mm:ss+TIMEZONEYYYY-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss表示时分秒TIMEZONE表示时区+08:00表示东八区时间领先UTC 8小时即北京时间。例如2015-05-20T13:29:35+08:00表示北京时间2015年5月20日 13点29分35秒。</para><para>示例值2017-08-26T10:43:39+08:00</para></param>
/// <param name="parking_name">停车场名称 <para>body所在停车位车场的名称</para><para>示例值:欢乐海岸停车场</para></param>
/// <param name="free_duration">免费时长 <para>body停车场的免费停车时长单位为秒</para><para>示例值3600</para></param>
public CreateParkingRequestData(string out_parking_no, string plate_number, string plate_color, string notify_url, TenpayDateTime start_time, string parking_name, int free_duration)
{
this.out_parking_no = out_parking_no;
this.plate_number = plate_number;
this.plate_color = plate_color;
this.notify_url = notify_url;
this.start_time = start_time.ToString();
this.parking_name = parking_name;
this.free_duration = free_duration;
}
/// <summary>
/// 无参构造函数
/// </summary>
public CreateParkingRequestData()
{
}
/// <summary>
/// 商户入场id
/// <para>body商户侧入场标识id在同一个商户号下唯一 </para>
/// <para>示例值1231243</para>
/// </summary>
public string out_parking_no { get; set; }
/// <summary>
/// 车牌号
/// <para>body车牌号仅包括省份+车牌,不包括特殊字符。 </para>
/// <para>示例值粤B888888</para>
/// </summary>
public string plate_number { get; set; }
/// <summary>
/// 车牌颜色
/// <para>body车牌颜色枚举值 BLUE蓝色 GREEN绿色 YELLOW黄色 BLACK黑色 WHITE白色 LIMEGREEN黄绿色 </para>
/// <para>示例值BLUE</para>
/// </summary>
public string plate_color { get; set; }
/// <summary>
/// 回调通知url
/// <para>body接受入场状态变更回调通知的url注意回调url只接受https </para>
/// <para>示例值https://yoursite.com/wxpay.html</para>
/// </summary>
public string notify_url { get; set; }
/// <summary>
/// 入场时间
/// <para>body入场时间遵循rfc3339标准格式格式为YYYY-MM-DDTHH:mm:ss+TIMEZONEYYYY-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss表示时分秒TIMEZONE表示时区+08:00表示东八区时间领先UTC 8小时即北京时间。例如2015-05-20T13:29:35+08:00表示北京时间2015年5月20日 13点29分35秒。 </para>
/// <para>示例值2017-08-26T10:43:39+08:00</para>
/// </summary>
public string start_time { get; set; }
/// <summary>
/// 停车场名称
/// <para>body所在停车位车场的名称 </para>
/// <para>示例值:欢乐海岸停车场</para>
/// </summary>
public string parking_name { get; set; }
/// <summary>
/// 免费时长
/// <para>body停车场的免费停车时长单位为秒 </para>
/// <para>示例值3600</para>
/// </summary>
public int free_duration { get; set; }
}
}