mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-19 01:58:14 +08:00
feat(wxapi): 新增小程序微信物流服务运费险组件相关接口
This commit is contained in:
@@ -352,6 +352,68 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressDeliveryPathUpdateResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
#region Delivery/NoWorryReturn
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/delivery/no_worry_return/add 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressDeliveryNoWorryReturnAddResponse> ExecuteCgibinExpressDeliveryNoWorryReturnAddAsync(this WechatApiClient client, Models.CgibinExpressDeliveryNoWorryReturnAddRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "delivery", "no_worry_return", "add")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressDeliveryNoWorryReturnAddResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/delivery/no_worry_return/get 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressDeliveryNoWorryReturnGetResponse> ExecuteCgibinExpressDeliveryNoWorryReturnGetAsync(this WechatApiClient client, Models.CgibinExpressDeliveryNoWorryReturnGetRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "delivery", "no_worry_return", "get")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressDeliveryNoWorryReturnGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/delivery/no_worry_return/unbind 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressDeliveryNoWorryReturnUnbindResponse> ExecuteCgibinExpressDeliveryNoWorryReturnUnbindAsync(this WechatApiClient client, Models.CgibinExpressDeliveryNoWorryReturnUnbindRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "delivery", "no_worry_return", "unbind")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressDeliveryNoWorryReturnUnbindResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Delivery/OpenMessage
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/delivery/open_msg/follow_waybill 接口。</para>
|
||||
|
@@ -297,6 +297,228 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region InsuranceFreight
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/insurance_freight/open 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBusinessInsuranceFreightOpenResponse> ExecuteWxaBusinessInsuranceFreightOpenAsync(this WechatApiClient client, Models.WxaBusinessInsuranceFreightOpenRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "business", "insurance_freight", "open")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBusinessInsuranceFreightOpenResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/insurance_freight/query_open 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBusinessInsuranceFreightQueryOpenResponse> ExecuteWxaBusinessInsuranceFreightQueryOpenAsync(this WechatApiClient client, Models.WxaBusinessInsuranceFreightQueryOpenRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "business", "insurance_freight", "query_open")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBusinessInsuranceFreightQueryOpenResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/insurance_freight/createorder 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBusinessInsuranceFreightCreateOrderResponse> ExecuteWxaBusinessInsuranceFreightCreateOrderAsync(this WechatApiClient client, Models.WxaBusinessInsuranceFreightCreateOrderRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "business", "insurance_freight", "createorder")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBusinessInsuranceFreightCreateOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/insurance_freight/claim 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBusinessInsuranceFreightClaimResponse> ExecuteWxaBusinessInsuranceFreightClaimAsync(this WechatApiClient client, Models.WxaBusinessInsuranceFreightClaimRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "business", "insurance_freight", "claim")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBusinessInsuranceFreightClaimResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/insurance_freight/createchargeid 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBusinessInsuranceFreightCreateChargeIdResponse> ExecuteWxaBusinessInsuranceFreightCreateChargeIdAsync(this WechatApiClient client, Models.WxaBusinessInsuranceFreightCreateChargeIdRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "business", "insurance_freight", "createchargeid")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBusinessInsuranceFreightCreateChargeIdResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/insurance_freight/applypay 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBusinessInsuranceFreightApplyPayResponse> ExecuteWxaBusinessInsuranceFreightApplyPayAsync(this WechatApiClient client, Models.WxaBusinessInsuranceFreightApplyPayRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "business", "insurance_freight", "applypay")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBusinessInsuranceFreightApplyPayResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/insurance_freight/getpayorderlist 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBusinessInsuranceFreightGetPayOrderListResponse> ExecuteWxaBusinessInsuranceFreightGetPayOrderListAsync(this WechatApiClient client, Models.WxaBusinessInsuranceFreightGetPayOrderListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "business", "insurance_freight", "getpayorderlist")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBusinessInsuranceFreightGetPayOrderListResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/insurance_freight/refund 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBusinessInsuranceFreightRefundResponse> ExecuteWxaBusinessInsuranceFreightRefundAsync(this WechatApiClient client, Models.WxaBusinessInsuranceFreightRefundRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "business", "insurance_freight", "refund")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBusinessInsuranceFreightRefundResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/insurance_freight/getsummary 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBusinessInsuranceFreightGetSummaryResponse> ExecuteWxaBusinessInsuranceFreightGetSummaryAsync(this WechatApiClient client, Models.WxaBusinessInsuranceFreightGetSummaryRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "business", "insurance_freight", "getsummary")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBusinessInsuranceFreightGetSummaryResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/insurance_freight/getorderlist 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBusinessInsuranceFreightGetOrderListResponse> ExecuteWxaBusinessInsuranceFreightGetOrderListAsync(this WechatApiClient client, Models.WxaBusinessInsuranceFreightGetOrderListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "business", "insurance_freight", "getorderlist")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBusinessInsuranceFreightGetOrderListResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/insurance_freight/update_notify_funds 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/freight_insurance.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBusinessInsuranceFreightUpdateNotifyFundsResponse> ExecuteWxaBusinessInsuranceFreightUpdateNotifyFundsAsync(this WechatApiClient client, Models.WxaBusinessInsuranceFreightUpdateNotifyFundsRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "business", "insurance_freight", "update_notify_funds")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBusinessInsuranceFreightUpdateNotifyFundsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Internet
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/business/getuserencryptkey 接口。</para>
|
||||
|
@@ -0,0 +1,88 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/no_worry_return/add 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryNoWorryReturnAddRequest : WechatApiRequest, IInferable<CgibinExpressDeliveryNoWorryReturnAddRequest, CgibinExpressDeliveryNoWorryReturnAddResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ShopAddress : CgibinExpressDeliveryReturnAddRequest.Types.ShopAddress
|
||||
{
|
||||
}
|
||||
|
||||
public class UserAddress : CgibinExpressDeliveryReturnAddRequest.Types.UserAddress
|
||||
{
|
||||
}
|
||||
|
||||
public class Goods : CgibinExpressDeliveryReturnAddRequest.Types.Goods
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家退货单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_order_id")]
|
||||
public string? ShopOrderId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家退货地址信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("biz_addr")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("biz_addr")]
|
||||
public Types.ShopAddress? ShopAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户收货地址信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_addr")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_addr")]
|
||||
public Types.UserAddress? UserAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退货用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单中心页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_path")]
|
||||
public string? OrderPagePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退货商品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_list")]
|
||||
public IList<Types.Goods>? GoodsList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退货订单价格(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_price")]
|
||||
public int? OrderPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付投保单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_pay_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_pay_id")]
|
||||
public string? WxpayId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置动态服务通知代码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_code")]
|
||||
public string? NotifyCode { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/no_worry_return/add 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryNoWorryReturnAddResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置退货单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("return_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("return_id")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
|
||||
public string ReturnId { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/no_worry_return/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryNoWorryReturnGetRequest : WechatApiRequest, IInferable<CgibinExpressDeliveryNoWorryReturnGetRequest, CgibinExpressDeliveryNoWorryReturnGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置退货单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("return_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("return_id")]
|
||||
public string ReturnId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/no_worry_return/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryNoWorryReturnGetResponse : CgibinExpressDeliveryReturnGetResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/no_worry_return/unbind 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryNoWorryReturnUnbindRequest : WechatApiRequest, IInferable<CgibinExpressDeliveryNoWorryReturnUnbindRequest, CgibinExpressDeliveryNoWorryReturnUnbindResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置退货单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("return_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("return_id")]
|
||||
public string ReturnId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/no_worry_return/unbind 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryNoWorryReturnUnbindResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/applypay 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightApplyPayRequest : WechatApiRequest, IInferable<WxaBusinessInsuranceFreightApplyPayRequest, WxaBusinessInsuranceFreightApplyPayResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置充值订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public string OrderId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/applypay 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightApplyPayResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置充值链接 。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_url")]
|
||||
public string PayUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/claim 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightClaimRequest : WechatApiRequest, IInferable<WxaBusinessInsuranceFreightClaimRequest, WxaBusinessInsuranceFreightClaimResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置买家用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_no")]
|
||||
public string OrderNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款运单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_delivery_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_delivery_no")]
|
||||
public string RefundDeliveryNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退货快递公司。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_company")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_company")]
|
||||
public string RefundDeliveryCompany { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/claim 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightClaimResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置理赔报案号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("report_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("report_no")]
|
||||
public string ReportNumber { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/createchargeid 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightCreateChargeIdRequest : WechatApiRequest, IInferable<WxaBusinessInsuranceFreightCreateChargeIdRequest, WxaBusinessInsuranceFreightCreateChargeIdResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置充值金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("quota")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("quota")]
|
||||
public int Amount { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/createchargeid 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightCreateChargeIdResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置充值订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
|
||||
public string OrderId { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,91 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/createorder 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightCreateOrderRequest : WechatApiRequest, IInferable<WxaBusinessInsuranceFreightCreateOrderRequest, WxaBusinessInsuranceFreightCreateOrderResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Address
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置省份。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("province")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
||||
public string Province { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置城市。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("city")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
||||
public string City { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置区县。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("county")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("county")]
|
||||
public string District { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置详细地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address")]
|
||||
public string DetailAddress { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置买家用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_no")]
|
||||
public string OrderNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_time")]
|
||||
public long PayTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_amount")]
|
||||
public int PayAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发货运单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_no")]
|
||||
public string DeliveryNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发货地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_place")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_place")]
|
||||
public Types.Address DeliveryAddress { get; set; } = new Types.Address();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收货地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receipt_place")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receipt_place")]
|
||||
public Types.Address ReceiptAddress { get; set; } = new Types.Address();
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/createorder 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightCreateOrderResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置保单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("policy_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("policy_no")]
|
||||
public string PolicyNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置保单截止日期时间戳(单位:yyyy-MM-dd)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("insurance_end_date")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("insurance_end_date")]
|
||||
public string InsuranceEndDateString { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预估理赔金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("estimate_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("estimate_amount")]
|
||||
public int EstimateAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置保费金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("premium")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("premium")]
|
||||
public int PremiumAmount { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,94 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/getorderlist 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightGetOrderListRequest : WechatApiRequest, IInferable<WxaBusinessInsuranceFreightGetOrderListRequest, WxaBusinessInsuranceFreightGetOrderListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置买家用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string? OpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_no")]
|
||||
public string? OrderNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置保单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("policy_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("policy_no")]
|
||||
public string? PolicyNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置理赔报案号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("report_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("report_no")]
|
||||
public string? ReportNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发货运单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_no")]
|
||||
public string? DeliveryNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款运单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_delivery_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_delivery_no")]
|
||||
public string? RefundDeliveryNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置查询开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("begin_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("begin_time")]
|
||||
public long? BeginTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置查询结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long? EndTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置保单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status_list")]
|
||||
public IList<int>? StatusList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页起始位置。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("offset")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("offset")]
|
||||
public int? Offset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置排序方式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sort_direct")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sort_direct")]
|
||||
public int? SortDirectionType { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,105 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/getorderlist 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightGetOrderListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Order
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_no")]
|
||||
public string OrderNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置保单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("policy_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("policy_no")]
|
||||
public string PolicyNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置理赔报案号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("report_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("report_no")]
|
||||
public string ReportNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发货运单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_no")]
|
||||
public string DeliveryNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款运单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_delivery_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_delivery_no")]
|
||||
public string RefundDeliveryNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置保单截止日期时间戳(单位:yyyy-MM-dd)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("insurance_end_date")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("insurance_end_date")]
|
||||
public string InsuranceEndDateString { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预估理赔金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("estimate_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("estimate_amount")]
|
||||
public int EstimateAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置保费金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("premium")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("premium")]
|
||||
public int PremiumAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置保单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置理赔打款失败原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_fail_reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_fail_reason")]
|
||||
public string? PayFailReason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付成功时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_finish_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_finish_time")]
|
||||
public long? PayFinishTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置保单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("list")]
|
||||
public Types.Order[] OrderList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total")]
|
||||
public int TotalCount { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/getpayorderlist 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightGetPayOrderListRequest : WechatApiRequest, IInferable<WxaBusinessInsuranceFreightGetPayOrderListRequest, WxaBusinessInsuranceFreightGetPayOrderListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置订单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status_list")]
|
||||
public IList<int>? StatusList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页起始位置。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("offset")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("offset")]
|
||||
public int? Offset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
public int? Limit { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,92 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/getpayorderlist 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightGetPayOrderListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class PayOrder
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置充值订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
|
||||
public string OrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_status")]
|
||||
public int OrderStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置充值金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_price")]
|
||||
public int Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单创建时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_time")]
|
||||
public long PayTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否可以退款。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("can_refund")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("can_refund")]
|
||||
public bool CanRefund { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_time")]
|
||||
public long? RefundTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_status")]
|
||||
public int? RefundStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_amt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_amt")]
|
||||
public int? RefundAmount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置充值订单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("list")]
|
||||
public Types.PayOrder[] PayOrderList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total")]
|
||||
public int TotalCount { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/getsummary 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightGetSummaryRequest : WechatApiRequest, IInferable<WxaBusinessInsuranceFreightGetSummaryRequest, WxaBusinessInsuranceFreightGetSummaryResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置查询开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("begin_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("begin_time")]
|
||||
public long? BeginTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置查询结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long? EndTimestamp { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,50 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/getsummary 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightGetSummaryResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置投保总数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total")]
|
||||
public int TotalCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置理赔总数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("claim_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("claim_num")]
|
||||
public int ClaimCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置理赔成功总数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("claim_succ_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("claim_succ_num")]
|
||||
public int ClaimSuccessCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置当前保费(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("premium")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("premium")]
|
||||
public int PremiumAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置当前账号余额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("funds")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("funds")]
|
||||
public int FundsBalance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否不能投保。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_close")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_close")]
|
||||
public bool NeedClose { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/open 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightOpenRequest : WechatApiRequest, IInferable<WxaBusinessInsuranceFreightOpenRequest, WxaBusinessInsuranceFreightOpenResponse>
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/open 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightOpenResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/query_open 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightQueryOpenRequest : WechatApiRequest, IInferable<WxaBusinessInsuranceFreightQueryOpenRequest, WxaBusinessInsuranceFreightOpenResponse>
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/query_open 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightQueryOpenResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否开通。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_open")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_open")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsOpen { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/refund 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightRefundRequest : WechatApiRequest, IInferable<WxaBusinessInsuranceFreightRefundRequest, WxaBusinessInsuranceFreightRefundResponse>
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/refund 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightRefundResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/update_notify_funds 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightUpdateNotifyFundsRequest : WechatApiRequest, IInferable<WxaBusinessInsuranceFreightUpdateNotifyFundsRequest, WxaBusinessInsuranceFreightUpdateNotifyFundsResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置通知的金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_funds")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_funds")]
|
||||
public int NotifyFunds { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/business/insurance_freight/update_notify_funds 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaBusinessInsuranceFreightUpdateNotifyFundsResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"shop_order_id": "xxx",
|
||||
"biz_addr": {
|
||||
"name": "张三",
|
||||
"mobile": "13600000000",
|
||||
"country": "中国",
|
||||
"province": "广东省",
|
||||
"city": "广州市",
|
||||
"area": "海珠区",
|
||||
"address": "xx路xx号"
|
||||
},
|
||||
"user_addr": {
|
||||
"name": "李四",
|
||||
"mobile": "13600000000",
|
||||
"country": "中国",
|
||||
"province": "广东省",
|
||||
"city": "广州市",
|
||||
"area": "海珠区",
|
||||
"address": "xx路xx号"
|
||||
},
|
||||
"openid": "xxx",
|
||||
"order_path": "xxx",
|
||||
"goods_list": [
|
||||
{
|
||||
"name": "xxx",
|
||||
"url": "xxx"
|
||||
}
|
||||
],
|
||||
"order_price": 1,
|
||||
"wx_pay_id": "420000198020231123341140012",
|
||||
"notify_code": "420000198020231123341140012"
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "OK",
|
||||
"return_id": "1935761508265738242"
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"return_id": "1935761508265738242"
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "OK",
|
||||
"status": "2",
|
||||
"waybill_id": "JDxxxxxx",
|
||||
"order_status": 0,
|
||||
"delivery_name": "申通快递",
|
||||
"delivery_id": "SF"
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"return_id": "1935761508265738242"
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"order_id": "2850151276313431996"
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"pay_url": "https://fuwu.weixin.qq.com/service/common/buy?hasApply=1&orderId=2850151276313431996"
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"openid": "oZGTP5DwGDPfEf1EBBHH_oxHw2aU",
|
||||
"order_no": "4200001197202103228672982585",
|
||||
"refund_delivery_no": "rd20230322001",
|
||||
"refund_company": "SF"
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"report_no": "90581008120350195232"
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"quota": 1000
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"order_id": 2850151276313431996
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"openid": "oZGTP5DwGDPfEf1EBBHH_oxHw2aU",
|
||||
"order_no": "4200001197202103228672982585",
|
||||
"pay_amount": 1,
|
||||
"pay_time": 1679473667,
|
||||
"delivery_place": {
|
||||
"province": "广东省",
|
||||
"city": "广州市",
|
||||
"county": "海珠区",
|
||||
"address": "创业园23号"
|
||||
},
|
||||
"receipt_place": {
|
||||
"province": "广东省",
|
||||
"city": "惠州市",
|
||||
"county": "惠普区",
|
||||
"address": "龙山村10-2"
|
||||
},
|
||||
"delivery_no": "d20230322001"
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"policy_no": "10288003264673876282",
|
||||
"insurance_end_date": "2023-06-20 16:36:54",
|
||||
"estimate_amount": 1200
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"status_list": [
|
||||
2,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"offset": 0,
|
||||
"limit": 20
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"list": [
|
||||
{
|
||||
"order_no": "4200001197202103228672982584",
|
||||
"policy_no": "10288003264673876281",
|
||||
"report_no": "",
|
||||
"status": 2,
|
||||
"insurance_end_date": "2023-06-14 19:41:34",
|
||||
"premium": 20,
|
||||
"estimate_amount": 1200,
|
||||
"delivery_no": "delivery20230321001",
|
||||
"refund_delivery_no": ""
|
||||
},
|
||||
{
|
||||
"order_no": "4200001197202103228672982585",
|
||||
"policy_no": "10288003264673876282",
|
||||
"report_no": "90581008120350195232",
|
||||
"status": 4,
|
||||
"insurance_end_date": "2023-06-20 16:36:54",
|
||||
"premium": 20,
|
||||
"estimate_amount": 1200,
|
||||
"delivery_no": "delivery20230322001",
|
||||
"refund_delivery_no": "delivery20230322001"
|
||||
}
|
||||
],
|
||||
"total": 2
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"status_list": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6
|
||||
],
|
||||
"offset": 0,
|
||||
"limit": 20
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"list": [
|
||||
{
|
||||
"order_id": 2850151276313431996,
|
||||
"order_status": 5,
|
||||
"total_price": 1000,
|
||||
"create_time": 1678966793,
|
||||
"pay_time": 1678966880,
|
||||
"can_refund": true,
|
||||
"refund_time": 0,
|
||||
"refund_status": 1
|
||||
}
|
||||
],
|
||||
"total": 1
|
||||
}
|
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"total": 1,
|
||||
"claim_num": 1,
|
||||
"claim_succ_num": 1,
|
||||
"premium": 1,
|
||||
"funds": 1,
|
||||
"need_close": false
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"is_open": 1
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"notify_funds": 1
|
||||
}
|
Reference in New Issue
Block a user