Skip to content

Commit

Permalink
v1.1.1 released
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Dec 12, 2024
1 parent 582c0ee commit e1f1705
Show file tree
Hide file tree
Showing 13 changed files with 825 additions and 7 deletions.
32 changes: 25 additions & 7 deletions 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.39
version: 1.1.1
schemes:
- https
consumes:
Expand Down Expand Up @@ -177,6 +177,10 @@ paths:
$ref: ./hk/v3/transactions/out-trade-no/{out_trade_no}/close.yaml
/hk/v3/transactions/out-trade-no/{out_trade_no}/reverse:
$ref: ./hk/v3/transactions/out-trade-no/{out_trade_no}/reverse.yaml
/appauth/authindex:
$ref: ./v2/appauth/authindex.yaml
/appauth/getaccesstoken:
$ref: ./v2/appauth/getaccesstoken.yaml
/applyment/micro/getstate:
$ref: ./v2/applyment/micro/getstate.yaml
/applyment/micro/getupgradestate:
Expand Down Expand Up @@ -267,8 +271,14 @@ paths:
$ref: ./v2/papay/entrustweb.yaml
/papay/h5entrustweb:
$ref: ./v2/papay/h5entrustweb.yaml
/papay/partner/entrustweb:
$ref: ./v2/papay/partner/entrustweb.yaml
/papay/partner/h5entrustweb:
$ref: ./v2/papay/partner/h5entrustweb.yaml
/papay/partner/paporderquery:
$ref: ./v2/papay/partner/paporderquery.yaml
/papay/partner/preentrustweb:
$ref: ./v2/papay/partner/preentrustweb.yaml
/papay/partner/querycontract:
$ref: ./v2/papay/partner/querycontract.yaml
/papay/preentrustweb:
Expand Down Expand Up @@ -299,14 +309,8 @@ paths:
$ref: ./v2/pay/paporderquery.yaml
/pay/pappayapply:
$ref: ./v2/pay/pappayapply.yaml
/pay/partner/entrustweb:
$ref: ./v2/pay/partner/entrustweb.yaml
/pay/partner/h5entrustweb:
$ref: ./v2/pay/partner/h5entrustweb.yaml
/pay/partner/pappayapply:
$ref: ./v2/pay/partner/pappayapply.yaml
/pay/partner/preentrustweb:
$ref: ./v2/pay/partner/preentrustweb.yaml
/pay/profitsharingaddreceiver:
$ref: ./v2/pay/profitsharingaddreceiver.yaml
/pay/profitsharingmerchantratioquery:
Expand Down Expand Up @@ -389,12 +393,24 @@ paths:
$ref: ./v2/secapi/pay/refundv2.yaml
/secapi/pay/reverse:
$ref: ./v2/secapi/pay/reverse.yaml
/secsvc/getrealnameinfo:
$ref: ./v2/secsvc/getrealnameinfo.yaml
/secsvc/realnameauth:
$ref: ./v2/secsvc/realnameauth.yaml
/tools/authcodetoopenid:
$ref: ./v2/tools/authcodetoopenid.yaml
/tools/shorturl:
$ref: ./v2/tools/shorturl.yaml
/transit/partnerpay/payapply:
$ref: ./v2/transit/partnerpay/payapply.yaml
/transit/partnerpay/queryorder:
$ref: ./v2/transit/partnerpay/queryorder.yaml
/transit/partnerpay/querystate:
$ref: ./v2/transit/partnerpay/querystate.yaml
/transit/pay/payapply:
$ref: ./v2/transit/pay/payapply.yaml
/transit/pay/querystate:
$ref: ./v2/transit/pay/querystate.yaml
/transit/queryorder:
$ref: ./v2/transit/queryorder.yaml
/vehicle/partnerpay/notification:
Expand Down Expand Up @@ -1147,6 +1163,8 @@ paths:
$ref: ./v3/papay/contracts/{contract_id}/fail-notify.yaml
/v3/papay/contracts/{contract_id}/notify:
$ref: ./v3/papay/contracts/{contract_id}/notify.yaml
/v3/papay/entrust-sign/contracts/pre-entrust-sign:
$ref: ./v3/papay/entrust-sign/contracts/pre-entrust-sign.yaml
/v3/papay/insurance-pay/policy-periods/contract-id/{contract_id}/policy-period-id/{policy_period_id}:
$ref: ./v3/papay/insurance-pay/policy-periods/contract-id/{contract_id}/policy-period-id/{policy_period_id}.yaml
/v3/papay/insurance-pay/policy-periods/contract-id/{contract_id}/policy-period-id/{policy_period_id}/schedule:
Expand Down
56 changes: 56 additions & 0 deletions docs/v2/appauth/authindex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
get:
x-base-uri: https://payapp.mch.weixin.qq.com/
x-last-updated-at: 2021.11.10
tags:
- APIv2∙实名校验
summary: 通过code换取accesstoken
description: 使用标准OAuth2.0协议接入微信支付,在用户授权的条件下,将可以做到访问用户资源,使用接口调用用户功能(如获取用户实名信息等 [官方文档](https://pay.weixin.qq.com/wiki/doc/api/realnameauth.php?chapter=60_1&index=2)
consumes:
- application/xml
produces:
- application/xml
parameters:
- name: mch_id
in: query
type: string
required: true
description: 商户号
example: '1230000109'
- name: appid
in: query
type: string
required: true
description: 应用ID
example: wxd678efh567hg6787
- name: redirect_uri
in: query
type: string
required: true
description: 重定向地址,需要urlencode,需在支付安全域下(商户平台上配置“支付授权目录”)。
example: https://weixin.qq.com/i-am-a-fake-uri
- name: response_type
in: query
type: string
required: true
description: 固定填`code`
example: code
enum:
- code
- name: scope
in: query
type: string
required: true
description: 应用授权作用域
example: pay_identity
enum:
- pay_identity
- pay_realname
- name: state
in: query
type: string
required: true
description: 随机字符串,回调时将带上该参数
example: STATE
responses:
'302':
schema: {}
107 changes: 107 additions & 0 deletions docs/v2/appauth/getaccesstoken.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
get:
x-last-updated-at: 2021.11.10
tags:
- APIv2∙实名校验
summary: 通过code换取accesstoken
description: 获取微信用户的授权, 需要使用微信支付提供的 OAuth2.0 服务.用授权小程序得到的授权码调用OAuth2.0接口access_token. [官方文档](https://pay.weixin.qq.com/wiki/doc/api/realnameauth.php?chapter=60_2&index=3)
consumes:
- application/xml
produces:
- application/json
parameters:
- name: mch_id
in: query
type: string
required: true
description: 商户号
example: '1200009811'
- name: appid
in: query
type: string
required: true
description: 应用ID
example: wxcbda96de0b165486
- name: openid
in: query
type: string
required: true
description: 微信openID
example: baf04e6bbbd06f7b1a197d18ed53b7f1
- name: code
in: query
type: string
required: true
description: 第一步返回的auth_code
example: wxcbda96de0b165489
- name: grant_type
in: query
type: string
required: true
description: 固定值`authorization_code`
example: 'authorization_code'
enum:
- authorization_code
- name: scope
in: query
type: string
required: true
description: 应用授权作用域
example: 'pay_identity'
enum:
- pay_identity
- name: sign_type
in: query
type: string
required: true
description: 签名类型
example: HMAC-SHA256
enum:
- HMAC-SHA256
- name: sign
in: query
required: true
type: string
description: 签名
example: C380BEC2BFD727A4B6845133519F3AD6
responses:
'200':
schema:
allOf:
- type: object
required:
- retcode
- retmsg
properties:
retcode:
type: number
description: 返回状态码
example: 0
enum:
- 0
- -1
retmsg:
type: string
description: 处理成功,返回ok
example: OK
- type: object
required:
- access_token
- access_token_expire_in
- refresh_token
- refresh_token_expire_in
- retmsg
properties:
access_token:
type: string
description: 接口调用凭证
access_token_expire_in:
type: integer
format: int32
description: 请求返回的access_token过期时间,以秒为单位,有效期较短
refresh_token:
type: string
description: refresh令牌
refresh_token_expire_in:
type: number
format: int32
description: refresh_token过期时间,以秒为单位,有效期较长
Loading

0 comments on commit e1f1705

Please sign in to comment.