docs: 完善文档

This commit is contained in:
fudiwei
2022-11-24 13:15:38 +08:00
parent 31bdc399b1
commit 507726e918
2 changed files with 116 additions and 38 deletions

View File

@@ -29,7 +29,7 @@
<summary>[展开查看]</summary>
| | 微信 API | 商户类型 | 备注 |
| :-: | :-----------------------------: | :--------------------------: | :---------------: |
| :-: | :-------------------------------: | :--------------------------: | :---------------: |
| √ | 商户进件:特约商户进件 | 服务商 | |
| √ | 基础支付JSAPI 支付 | 直连商户 & 服务商 | |
| √ | 基础支付APP 支付 | 直连商户 & 服务商 | |
@@ -54,8 +54,10 @@
| √ | 营销工具:图片上传(营销专用) | 直连商户 & 服务商 | |
| × | <del>营销工具:现金红包</del> | <del>直连商户 & 服务商</del> | 官方未提供 v3 API |
| √ | 营销工具:银行定向促活 | 直连商户 & 服务商 | |
| × | <del>资金应用:企业付款</del> | <del>直连商户</del> | 官方未提供 v3 API |
| × | <del>资金应用:转账到银行卡</del> | <del>直连商户</del> | 官方未提供 v3 API |
| √ | 资金应用:转账到零钱 | 直连商户 & 服务商 | |
| √ | 资金应用:分账 | 直连商户 & 服务商 | |
| √ | 资金应用:微工卡 | 服务商 | |
| √ | 资金应用:连锁品牌分账 | 服务商 | |
| √ | 风险合规:商户开户意愿确认 | 服务商 | |
| √ | 风险合规:消费者投诉 2.0 | 直连商户 & 服务商 | |
@@ -1030,6 +1032,72 @@
- 服务商银行来账查询:`QueryMerchantFundMerchantIncomeRecords`
- 微工卡
- 微工卡获得用户授权
- 生成授权 Token`CreatePayrollCardToken`
- 查询微工卡授权关系:`GetPayrollRelationByOpenId`
- 微工卡用户核身份:
- 微工卡核身预下单:`PreOrderWithAuthPayrollCardAuthentication`
- 获取核身结果:`GetPayrollCardAuthenticationByAuthenticateNumber`
- 查询核身记录:`QueryPayrollCardAuthentications`
- 微工卡转账:
- 发起批量转账:`CreatePayrollCardTransferBatch`
- 微信支付批次单号查询批次单:`GetTransferBatchByBatchId`
- 微信支付明细单号查询明细单:`GetTransferBatchDetailByDetailId`
- 商家批次单号查询批次单:`GetTransferBatchByOutBatchNumber`
- 商家明细单号查询明细单:`GetTransferBatchDetailByOutDetailNumber`
- 转账电子回单申请受理:`CreateTransferBillReceipt`
- 查询转账电子回单:`GetTransferBillReceiptByOutBatchNumber`
- 转账明细电子回单受理:`CreateTransferDetailElectronicReceipt`
- 查询转账明细电子回单受理结果:`GetTransferDetailElectronicReceiptByOutDetailNumber`
- 下载电子回单:`DownloadBillFile`
- 微工卡余额查询:
- 查询特约商户账户实时余额:`GetEcommerceFundBalance`
- 查询账户实时余额:`GetMerchantFundBalance`
- 查询账户日终余额:`GetMerchantFundDayendBalance`
- 微工卡提现:
- 特约商户余额提现:`CreateEcommerceFundWithdraw`
- 查询特约商户提现状态:`GetEcommerceFundWithdrawByWithdrawId` / `GetEcommerceFundWithdrawByOutRequestNumber`
- 按日下载提现异常文件:`GetMerchantFundWithdrawBill`
- 微工卡账单:
- 申请单个子商户资金账单:`GetBillSubMerchantFundflowBill`
- 下载账单:`DownloadBillFile`
- 微工卡来账识别:
- 特约商户银行来账查询:`QueryMerchantFundPartnerIncomeRecords`
- 服务商银行来账查询:`QueryMerchantFundMerchantIncomeRecords`
- 风险合规
- 消费者开户意愿确认

View File

@@ -25,7 +25,17 @@ var options = new WechatTenpayClientOptions()
var client = new WechatTenpayClient(options);
```
此外,获取平台证书并存入平台证书管理器 `PlatformCertificateManager` 时,需指定证书的算法类型:
接着,在获取平台证书时,需指定证书的算法类型:
```csharp
var request = new Models.QueryCertificatesRequest()
{
AlgorithmType = "SM2"
};
var response = await client.ExecuteQueryCertificatesAsync(request);
```
与此同时,在存入平台证书管理器 `PlatformCertificateManager` 时,同样需指定证书的算法类型:
```csharp
// 如果是 RSA 证书