Skip to content

Commit

Permalink
U: v2/*profitsharing*/* enums
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Nov 26, 2024
1 parent 9e93ddb commit d5568bf
Show file tree
Hide file tree
Showing 33 changed files with 93 additions and 52 deletions.
2 changes: 2 additions & 0 deletions docs/definitions/deletecontract.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ deletecontract.request:
type: string
description: 版本号
example: '1.0'
enum:
- '1.0'
deletecontract.response:
allOf:
- type: object
Expand Down
7 changes: 3 additions & 4 deletions docs/definitions/facepay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ facepay.request:
xml:
name: xml
required:
- deposit
- appid
- mch_id
- sub_mch_id
- nonce_str
- sign
- body
Expand All @@ -22,6 +20,9 @@ facepay.request:
description: 是否押金支付
example: 'Y'
maxLength: 1
enum:
- Y
- N
appid:
type: string
description: 公众账号ID
Expand Down Expand Up @@ -211,9 +212,7 @@ facepay.response:
name: xml
required:
- appid
- sub_appid
- mch_id
- sub_mch_id
- nonce_str
- sign
- result_code
Expand Down
5 changes: 2 additions & 3 deletions docs/definitions/micro.modifyarchives.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ micro.modifyarchives.request:
description: 接口版本号
example: '1.0'
maxLength: 32
enum:
- '1.0'
mch_id:
type: string
description: 商户号
Expand Down Expand Up @@ -135,9 +137,6 @@ micro.modifyarchives.response:
- type: object
xml:
name: xml
required:
- mch_id
- sub_mch_id
properties:
mch_id:
type: string
Expand Down
6 changes: 2 additions & 4 deletions docs/definitions/micro.modifycontactinfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ micro.modifycontactinfo.request:
- nonce_str
- sign_type
- sign
- sub_mch_id
- cert_sn
properties:
version:
type: string
description: 接口版本号
example: '1.0'
maxLength: 32
enum:
- '1.0'
mch_id:
type: string
description: 商户号
Expand Down Expand Up @@ -130,9 +131,6 @@ micro.modifycontactinfo.response:
- type: object
xml:
name: xml
required:
- mch_id
- sub_mch_id
properties:
mch_id:
type: string
Expand Down
2 changes: 2 additions & 0 deletions docs/definitions/micro.submit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ micro.submit.request:
description: 接口版本号
example: '3.0'
maxLength: 32
enum:
- '3.0'
cert_sn:
type: string
description: 平台证书序列号
Expand Down
2 changes: 2 additions & 0 deletions docs/definitions/micro.submitupgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ micro.submitupgrade.request:
description: 接口版本号
example: '1.0'
maxLength: 32
enum:
- '1.0'
mch_id:
type: string
description: 商户号
Expand Down
9 changes: 4 additions & 5 deletions docs/definitions/multiprofitsharing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@ multiprofitsharing.request:
name: xml
required:
- mch_id
- sub_mch_id
- appid
- nonce_str
- sign
- sign_type
- transaction_id
- out_order_no
- receivers
- type
- account
- amount
- description
properties:
mch_id:
type: string
Expand Down Expand Up @@ -183,3 +178,7 @@ multiprofitsharing.response:
result:
type: string
description: 分账结果
enum:
- PENDING #待分账
- SUCCESS #分账成功
- CLOSED #分账失败已关闭
2 changes: 2 additions & 0 deletions docs/definitions/orderquery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ orderquery.request:
description: 接口版本号
example: '1.0'
maxLength: 32
enum:
- '1.0'
appid:
type: string
description: 公众账号ID
Expand Down
9 changes: 4 additions & 5 deletions docs/definitions/profitsharing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@ profitsharing.request:
name: xml
required:
- mch_id
- sub_mch_id
- appid
- nonce_str
- sign
- sign_type
- transaction_id
- out_order_no
- receivers
- type
- account
- amount
- description
properties:
mch_id:
type: string
Expand Down Expand Up @@ -203,3 +198,7 @@ profitsharing.response:
result:
type: string
description: 分账结果
enum:
- PENDING #待分账
- SUCCESS #分账成功
- CLOSED #分账失败已关闭
1 change: 0 additions & 1 deletion docs/definitions/profitsharingaddreceiver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ profitsharingaddreceiver.request:
name: xml
required:
- mch_id
- sub_mch_id
- appid
- nonce_str
- sign
Expand Down
1 change: 0 additions & 1 deletion docs/definitions/profitsharingfinish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ profitsharingfinish.request:
name: xml
required:
- mch_id
- sub_mch_id
- appid
- nonce_str
- sign
Expand Down
16 changes: 8 additions & 8 deletions docs/definitions/profitsharingquery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ profitsharingquery.request:
name: xml
required:
- mch_id
- sub_mch_id
- transaction_id
- out_order_no
- nonce_str
Expand Down Expand Up @@ -90,14 +89,11 @@ profitsharingquery.response:
status:
type: string
description: 分账单状态
example: SUCCESS
example: FINISHED
maxLength: 16
close_reason:
type: string
description: 关单原因
example: NO_AUTH
maxLength: 32
nullable: true
enum:
- PROCESSING
- FINISHED
receivers:
type: string
description: 分账接收方列表`JSON`格式字符串
Expand Down Expand Up @@ -148,3 +144,7 @@ profitsharingquery.response:
result:
type: string
description: 分账结果
enum:
- PENDING #待分账
- SUCCESS #分账成功
- CLOSED #分账失败已关闭
3 changes: 0 additions & 3 deletions docs/definitions/profitsharingremovereceiver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ profitsharingremovereceiver.request:
name: xml
required:
- mch_id
- sub_mch_id
- appid
- nonce_str
- sign
- sign_type
- receiver
- type
- account
properties:
mch_id:
type: string
Expand Down
4 changes: 4 additions & 0 deletions docs/definitions/query_coupon_stock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@ query_coupon_stock.request:
example: '1.0'
maxLength: 32
nullable: true
enum:
- '1.0'
type:
type: string
description: 协议类型
example: XML
maxLength: 32
nullable: true
enum:
- XML
query_coupon_stock.response:
type: object
xml:
Expand Down
2 changes: 2 additions & 0 deletions docs/definitions/querycontract.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ querycontract.request:
type: string
description: 版本号
example: '1.0'
enum:
- '1.0'
sign:
type: string
description: 签名
Expand Down
4 changes: 4 additions & 0 deletions docs/definitions/querycouponsinfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,16 @@ querycouponsinfo.request:
example: '1.0'
maxLength: 32
nullable: true
enum:
- '1.0'
type:
type: string
description: 协议类型
example: XML
maxLength: 32
nullable: true
enum:
- XML
querycouponsinfo.response:
type: object
xml:
Expand Down
4 changes: 4 additions & 0 deletions docs/definitions/send_coupon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,16 @@ send_coupon.request:
example: '1.0'
maxLength: 32
nullable: true
enum:
- '1.0'
type:
type: string
description: 协议类型
example: XML
maxLength: 32
nullable: true
enum:
- XML
send_coupon.response:
type: object
xml:
Expand Down
5 changes: 5 additions & 0 deletions docs/definitions/unifiedorder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ unifiedorder.request:
description: 接口版本号
example: '1.0'
maxLength: 32
enum:
- '1.0'
profit_sharing:
type: string
description: 是否指定服务商分账;Y-是,需要分账;N-否,不分账;字母要求大写,不传默认不分账
Expand Down Expand Up @@ -195,6 +197,9 @@ unifiedorder.request:
example: 'Y'
maxLength: 8
nullable: true
enum:
- Y
- N
scene_info:
xml:
x-cdata: true
Expand Down
1 change: 0 additions & 1 deletion docs/v2/face/get_wxpayface_authinfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ post:
- sign
- appid
- mch_id
- sub_mch_id
properties:
authinfo:
type: string
Expand Down
12 changes: 11 additions & 1 deletion docs/v2/mmpaymkttransfers/sendredpack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ post:
tags:
- APIv2∙资金应用∙红包
summary: 发放普通红包
description: 现金红包发放后会以公众号消息的形式触达用户,不同情况下触达消息的形式会有差别,相关规则如下:1.已关注公众号的用户,使用“防伪消息”触达;2.未关注公众号的用户,使用“模板消息”触达。[官方文档](https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_4&index=3)
description: 现金红包发放后会以公众号消息的形式触达用户,不同情况下触达消息的形式会有差别,相关规则如下:1.已关注公众号的用户,使用“防伪消息”触达;2.未关注公众号的用户,使用“模板消息”触达。[官方文档](https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon_sl.php?chapter=13_4&index=3) [官方文档](https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_4&index=3)
consumes:
- application/xml
produces:
Expand Down Expand Up @@ -51,6 +51,16 @@ post:
description: 商户号
example: '10000098'
maxLength: 32
sub_mch_id:
type: string
description: 子商户号
example: '10000090'
maxLength: 32
msgappid:
type: string
description: 触达用户appid
example: wx8888888888888888
maxLength: 32
wxappid:
type: string
description: 公众账号appid
Expand Down
3 changes: 2 additions & 1 deletion docs/v2/pay/partner/preentrustweb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ post:
required:
- appid
- mch_id
- sub_mch_id
- plan_id
- contract_code
- request_serial
Expand Down Expand Up @@ -69,6 +68,8 @@ post:
type: string
description: 版本号
example: '1.0'
enum:
- '1.0'
sign_type:
type: string
description: 签名类型
Expand Down
3 changes: 2 additions & 1 deletion docs/v2/pay/partner/querycontract.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ post:
required:
- appid
- mch_id
- sub_mch_id
- version
- sign
properties:
Expand Down Expand Up @@ -56,6 +55,8 @@ post:
type: string
description: 版本号
example: '1.0'
enum:
- '1.0'
sign:
type: string
description: 签名
Expand Down
2 changes: 1 addition & 1 deletion docs/v2/pay/profitsharingaddreceiver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ post:
tags:
- APIv2∙资金应用∙分账
summary: 添加分账接收方
description: '服务商代子商户发起添加分账接收方请求,后续可通过发起分账请求将结算后的钱分到该分账接收方。[官方文档](https://pay.weixin.qq.com/wiki/doc/api/allocation_sl.php?chapter=25_3&index=4)'
description: '服务商代子商户发起添加分账接收方请求,后续可通过发起分账请求将结算后的钱分到该分账接收方。[官方文档](https://pay.weixin.qq.com/wiki/doc/api/allocation.php?chapter=27_3&index=4) [官方文档](https://pay.weixin.qq.com/wiki/doc/api/allocation_sl.php?chapter=25_3&index=4)'
consumes:
- application/xml
produces:
Expand Down
Loading

0 comments on commit d5568bf

Please sign in to comment.