Skip to content

Commit

Permalink
风险合规∙不活跃商户身份核实
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Jan 14, 2024
1 parent 62c0d22 commit 71f42e5
Show file tree
Hide file tree
Showing 12 changed files with 223 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
| 风险合规∙消费者投诉 | ✔️ | ✔️ |
| 风险合规∙商户违规通知 | ✔️ | ✔️ |
| 风险合规∙开户意愿确认 | ✔️ | ✔️ |
| 风险合规∙不活跃商户身份核实 | | ✔️ |
| 通用接口 | ✔️ | ✔️ |
| 跨境 | ✔️ | ✔️ |
| 跨境∙进件 | | ✔️ |
Expand Down
9 changes: 8 additions & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ info:
整理自[官方文档中心](https://pay.weixin.qq.com/wiki/doc/apiv3/index.shtml)
本[项目/工具地址](https://github.com/TheNorthMemory/wechatpay-openapi)
**访问第一次加载比较慢,请耐心等待大约1-2分钟不等(小文件下载比较多)。**
version: 0.15.19
version: 0.15.20
schemes:
- https
consumes:
Expand Down Expand Up @@ -89,6 +89,7 @@ tags:
- name: 风险合规∙消费者投诉
- name: 风险合规∙商户违规通知
- name: 风险合规∙开户意愿确认
- name: 风险合规∙不活跃商户身份核实
- name: 通用接口
- name: 跨境
- name: 跨境∙进件
Expand Down Expand Up @@ -505,6 +506,10 @@ paths:
$ref: ./v3/combine-transactions/out-trade-no/{combine_out_trade_no}.yaml
/v3/combine-transactions/out-trade-no/{combine_out_trade_no}/close:
$ref: ./v3/combine-transactions/out-trade-no/{combine_out_trade_no}/close.yaml
/v3/compliance/inactive-merchant-identity-verification/merchants:
$ref: ./v3/compliance/inactive-merchant-identity-verification/merchants.yaml
/v3/compliance/inactive-merchant-identity-verification/merchants/{sub_mchid}/verifications/{verification_id}:
$ref: ./v3/compliance/inactive-merchant-identity-verification/merchants/{sub_mchid}/verifications/{verification_id}.yaml
/v3/discount-card/cards:
$ref: ./v3/discount-card/cards.yaml
/v3/discount-card/cards/{out_card_code}:
Expand Down Expand Up @@ -1209,6 +1214,8 @@ paths:
$ref: ./v3/refund/domestic/refunds.yaml
/v3/refund/domestic/refunds/{out_refund_no}:
$ref: ./v3/refund/domestic/refunds/{out_refund_no}.yaml
/v3/refund/domestic/refunds/{refund_id}/apply-abnormal-refund:
$ref: ./v3/refund/domestic/refunds/{refund_id}/apply-abnormal-refund.yaml
/v3/smartguide/guides:
$ref: ./v3/smartguide/guides.yaml
/v3/smartguide/guides/{guide_id}:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
post:
x-last-updated-at: 2023.12.18
x-role:
- 服务商
tags:
- 风险合规∙不活跃商户身份核实
summary: 发起不活跃商户身份核实
description: 服务商可以通过该接口,代特约商户发起不活跃商户身份核实,并得到核实单单号。 此接口采用异步处理模式,即在接收到服务商请求后,优先受理请求再异步处理,最终的核实结果可以通过“查询不活跃商户身份核实结果”接口获取。 [官方文档](https://pay.weixin.qq.com/docs/partner/apis/inactive-merchant-identity-verification/inactive-mch-identity-verification/create-inactive-merchant-identity-verification.html)
parameters:
- name: _
in: body
required: true
schema:
type: object
required:
- sub_mchid
properties:
sub_mchid:
type: string
description: 特约商户号
example: '1900009231'
responses:
'200':
schema: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
get:
x-last-updated-at: 2023.12.18
x-role:
- 服务商
tags:
- 风险合规∙不活跃商户身份核实
summary: 查询不活跃商户身份核实结果
description: 在代特约商户发起不活跃商户身份核实后,服务商可以通过该接口,查询特定特约商户下单笔核实单的核实结果。 [官方文档](https://pay.weixin.qq.com/docs/partner/apis/inactive-merchant-identity-verification/inactive-mch-identity-verification/query-inactive-merchant-identity-verification.html)
parameters:
- name: sub_mchid
in: path
type: string
description: 特约商户号
example: '1900009231'
required: true
- name: verification_id
in: path
type: string
description: 核实单号
example: '28011678863778000000123124312'
required: true
responses:
'200':
schema: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
post:
x-last-updated-at: 2023.08.16
x-role:
- 直连商户
- 服务商
tags:
- 基础支付∙退款
summary: 发起异常退款
description: 提交退款申请后,查询退款确认状态为退款异常,可调用此接口发起异常退款处理。支持退款至用户、退款至交易商户银行账户两种处理方式。 [官方文档](https://pay.weixin.qq.com/docs/merchant/apis/refund/refunds/create-abnormal-refund.html) [官方文档](https://pay.weixin.qq.com/docs/partner/apis/refund/refunds/create-abnormal-refund.html)
parameters:
- $ref: '../../../../../definitions/Parameters.yaml#/WECHATPAY_CERTIFICATE_SERIAL'
- name: _
in: body
required: true
schema:
type: object
required:
- out_refund_no
- amount
properties:
sub_mchid:
type: string
description: 子商户号
example: '1900000109'
out_refund_no:
type: string
description: 商户退款单号
example: '1217752501201407033233368018'
type:
type: string
enum:
- COUPON
- DISCOUNT
bank_type:
type: string
enum:
- CMB_DEBIT
- COMM_DEBIT
- ABC_DEBIT
- CCB_DEBIT
- ICBC_DEBIT
- BOC_DEBIT
- PAB_DEBIT
- SPDB_DEBIT
- CITIC_DEBIT
- CEB_DEBIT
- CMBC_DEBIT
- CIB_DEBIT
- GDB_DEBIT
- PSBC_DEBIT
- NBCB_DEBIT
bank_account:
type: string
format: base64
real_name:
type: string
format: base64
responses:
'200':
schema: {}
1 change: 1 addition & 0 deletions src/V3.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
* @property-read V3\Ebike $ebike
* @property-read V3\DiscountCard $discountCard
* @property-read V3\Customs $customs
* @property-read V3\Compliance $compliance
* @property-read V3\CombineTransactions $combineTransactions
* @property-read V3\Catering $catering
* @property-read V3\Capital $capital
Expand Down
10 changes: 10 additions & 0 deletions src/V3/Compliance.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3;

/**
* @property-read Compliance\InactiveMerchantIdentityVerification $inactiveMerchantIdentityVerification
*/
interface Compliance
{
}
10 changes: 10 additions & 0 deletions src/V3/Compliance/InactiveMerchantIdentityVerification.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Compliance;

/**
* @property-read InactiveMerchantIdentityVerification\Merchants $merchants
*/
interface InactiveMerchantIdentityVerification
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Compliance\InactiveMerchantIdentityVerification;

use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Promise\PromiseInterface;

/**
* @property-read Merchants\_sub_mchid_ $_sub_mchid_
*/
interface Merchants
{
/**
* 发起不活跃商户身份核实(同步模式)
* @param array<string,mixed> $options
* @link https://pay.weixin.qq.com/docs/partner/apis/inactive-merchant-identity-verification/inactive-mch-identity-verification/create-inactive-merchant-identity-verification.html
*/
public function post(array $options = [
'json' => [
'sub_mchid' => '1900009231',
],
]): ResponseInterface;

/**
* 发起不活跃商户身份核实(异步模式)
* @param array<string,mixed> $options
* @link https://pay.weixin.qq.com/docs/partner/apis/inactive-merchant-identity-verification/inactive-mch-identity-verification/create-inactive-merchant-identity-verification.html#async
*/
public function postAsync(array $options = [
'json' => [
'sub_mchid' => '1900009231',
],
]): PromiseInterface;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Compliance\InactiveMerchantIdentityVerification\Merchants;

/**
* @property-read _sub_mchid_\Verifications $verifications
*/
interface _sub_mchid_
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Compliance\InactiveMerchantIdentityVerification\Merchants\_sub_mchid_;

/**
* @property-read Verifications\_verification_id_ $_verification_id_
*/
interface Verifications
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Compliance\InactiveMerchantIdentityVerification\Merchants\_sub_mchid_\Verifications;

use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Promise\PromiseInterface;

/**
*/
interface _verification_id_
{
/**
* 查询不活跃商户身份核实结果(同步模式)
* @param array<string,mixed> $options
* @link https://pay.weixin.qq.com/docs/partner/apis/inactive-merchant-identity-verification/inactive-mch-identity-verification/query-inactive-merchant-identity-verification.html
*/
public function get(array $options = [
'sub_mchid' => '1900009231',
'verification_id' => '28011678863778000000123124312',
]): ResponseInterface;

/**
* 查询不活跃商户身份核实结果(异步模式)
* @param array<string,mixed> $options
* @link https://pay.weixin.qq.com/docs/partner/apis/inactive-merchant-identity-verification/inactive-mch-identity-verification/query-inactive-merchant-identity-verification.html#async
*/
public function getAsync(array $options = [
'sub_mchid' => '1900009231',
'verification_id' => '28011678863778000000123124312',
]): PromiseInterface;
}

0 comments on commit 71f42e5

Please sign in to comment.