Skip to content

Commit

Permalink
U: v2/deposit/*
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Nov 25, 2024
1 parent 684f17c commit f11b56e
Show file tree
Hide file tree
Showing 15 changed files with 148 additions and 37 deletions.
2 changes: 2 additions & 0 deletions docs/v2/cgi-bin/mch/customs/customdeclarequery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ post:
example: MD5
maxLength: 32
nullable: true
enum:
- MD5
sign:
type: string
description: 签名
Expand Down
2 changes: 2 additions & 0 deletions docs/v2/cgi-bin/mch/newcustoms/customdeclareredeclare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ post:
example: MD5
maxLength: 32
nullable: true
enum:
- MD5
sign:
type: string
description: 签名
Expand Down
111 changes: 84 additions & 27 deletions docs/v2/deposit/unifiedorder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ post:
- spbill_create_ip
- notify_url
- trade_type
- id
properties:
appid:
type: string
Expand Down Expand Up @@ -74,17 +73,65 @@ post:
description: 签名类型
example: HMAC-SHA256
maxLength: 32
enum:
- MD5
- HMAC-SHA256
body:
type: string
description: 商品描述
example: 腾讯充值中心-QQ会员充值
maxLength: 127
detail:
xml:
x-cdata: true
type: string
description: 商品详情
example: Ipadmini16G白色
description: 单品优惠活动该字段必传,`JSON`格式字符串
example: '{"goods_detail":[]}'
maxLength: 6000
nullable: true
x-json:
type: object
description: 单品优惠活动信息
required:
- goods_detail
properties:
cost_price:
type: number
description: 订单原价
example: 1
receipt_id:
type: string
description: 商品小票ID
example: wx123
goods_detail:
type: array
description: 单品列表
items:
type: object
required:
- quantity
- price
properties:
goods_id:
type: string
description: 商品编码
example: 商品编码
wxpay_goods_id:
type: string
description: 微信支付商品编码
example: '1001'
goods_name:
type: string
description: 商品名称
example: iPhone6s 16G
quantity:
type: number
description: 商品数量
example: 1
price:
type: number
description: 商品单价
example: 528800
attach:
type: string
description: 附加数据
Expand Down Expand Up @@ -133,6 +180,9 @@ post:
description: 交易类型
example: JSAPI
maxLength: 16
enum:
- JSAPI
- APP
product_id:
type: string
description: 商品ID
Expand Down Expand Up @@ -163,37 +213,44 @@ post:
example: 'Y'
maxLength: 8
nullable: true
enum:
- Y
- N
scene_info:
xml:
x-cdata: true
type: string
description: 场景信息
description: 场景信息`JSON`格式字符串
example: '{"store_info":{"id":"SZTX001","name":"腾大餐厅","area_code":"440305","address":"科技园中一路腾讯大厦"}}'
maxLength: 256
nullable: true
id:
type: string
description: 门店id
example: SZTX001
maxLength: 32
name:
type: string
description: 门店名称
example: 腾讯大厦腾大餐厅
maxLength: 64
nullable: true
area_code:
type: string
description: 门店行政区划码
example: '440305'
maxLength: 6
nullable: true
address:
type: string
description: 门店详细地址
example: 科技园中一路腾讯大厦
maxLength: 128
nullable: true
x-json:
type: object
required:
- store_info
properties:
store_info:
type: object
description: 实际门店信息
required:
- id
properties:
id:
type: string
description: 门店id
example: SZTX001
name:
type: string
description: 门店名称
example: 腾大餐厅
area_code:
type: string
description: 门店行政区划码
example: '440305'
address:
type: string
description: 门店详细地址
example: 科技园中一路腾讯大厦
responses:
'200':
description: ''
Expand Down
16 changes: 16 additions & 0 deletions docs/v2/secapi/mch/addInstitutionsub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ post:
type: string
description: 商户类型
example: ENTERPRISE
enum:
- ENTERPRISE
- INDIVIDUAL
business_category:
type: string
description: 业务类目
Expand Down Expand Up @@ -135,6 +138,13 @@ post:
type: string
description: 门店照片
example: '["ySdrxMVb92Rmf9p2n7aJ4nAkJsqjYAt8uWQxBQ_p2Jgs","ySdVr5RR9cPRAq5FS0BKJxc78190x27psCzAwNzi6VdEI","yS2xjJ9lhuVwUyQbq0AYmP80p50vVuhdSjsKM"]'
x-json:
type: array
x-key: media_id
description: 门店照片列表
items:
type: string
format: MediaId
director_name:
type: string
description: 董事姓名
Expand Down Expand Up @@ -191,6 +201,12 @@ post:
nullable: true
description: H5支付域名
example: '["www.qq.com","www.weixin.com"]'
x-json:
type: array
x-key: domain
description: 域名列表
items:
type: string
responses:
'200':
description: ''
Expand Down
13 changes: 13 additions & 0 deletions docs/v2/secapi/mch/modifyInstitutionsub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ post:
description: 门店照片
example: '[Media_id1,Media_id2,Media_id3]'
nullable: true
x-json:
type: array
x-key: media_id
description: 门店照片列表
items:
type: string
format: MediaId
director_name:
type: string
description: 董事姓名
Expand Down Expand Up @@ -191,6 +198,12 @@ post:
nullable: true
description: H5支付域名
example: '["www.qq.com","www.weixin.com"]'
x-json:
type: array
x-key: domain
description: 域名列表
items:
type: string
responses:
'200':
description: ''
Expand Down
13 changes: 13 additions & 0 deletions docs/v2/secapi/mch/queryInstitutionsub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,16 @@ post:
description: 子商户入驻驳回详情
nullable: true
example: '[{"field":"contact_name","reason":"contact name is invalid."},{"field":"contact_phone","reason":"contact phone is invalid."}]'
x-json:
type: array
x-key: reason
description: 驳回原因列表
items:
type: object
properties:
field:
type: string
description: 字段
reason:
type: string
description: 原因
2 changes: 2 additions & 0 deletions docs/v2/wxv/cancelbill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ post:
description: 签名类型
example: HMAC-SHA256
maxLength: 32
enum:
- HMAC-SHA256
out_order_no:
type: string
description: 商户服务订单号
Expand Down
2 changes: 2 additions & 0 deletions docs/v2/wxv/changerentmoney.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ post:
description: 签名类型
example: HMAC-SHA256
maxLength: 32
enum:
- HMAC-SHA256
out_order_no:
type: string
description: 商户服务订单号
Expand Down
2 changes: 2 additions & 0 deletions docs/v2/wxv/createhotelbill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ post:
description: 签名类型
example: HMAC-SHA256
maxLength: 32
enum:
- HMAC-SHA256
out_order_no:
type: string
description: 商户服务订单号
Expand Down
2 changes: 2 additions & 0 deletions docs/v2/wxv/createrentbill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ post:
description: 签名类型
example: HMAC-SHA256
maxLength: 32
enum:
- HMAC-SHA256
out_order_no:
type: string
description: 商户服务订单号
Expand Down
2 changes: 2 additions & 0 deletions docs/v2/wxv/finishhotelbill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ post:
description: 签名类型
example: HMAC-SHA256
maxLength: 32
enum:
- HMAC-SHA256
out_order_no:
type: string
description: 商户服务订单号
Expand Down
2 changes: 2 additions & 0 deletions docs/v2/wxv/finishrentbill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ post:
description: 签名类型
example: HMAC-SHA256
maxLength: 32
enum:
- HMAC-SHA256
out_order_no:
type: string
description: 商户服务订单号
Expand Down
2 changes: 2 additions & 0 deletions docs/v2/wxv/queryhotelbill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ post:
description: 签名类型
example: HMAC-SHA256
maxLength: 32
enum:
- HMAC-SHA256
out_order_no:
type: string
description: 商户服务订单号
Expand Down
2 changes: 2 additions & 0 deletions docs/v2/wxv/queryrentbill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ post:
description: 签名类型
example: HMAC-SHA256
maxLength: 32
enum:
- HMAC-SHA256
out_order_no:
type: string
description: 商户服务订单号
Expand Down
12 changes: 2 additions & 10 deletions src/V2/Deposit/Unifiedorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function post(array $options = [
'device_info' => '013467007045764',
'sign_type' => 'HMAC-SHA256',
'body' => '腾讯充值中心-QQ会员充值',
'detail' => 'Ipadmini16G白色',
'detail' => '{"goods_detail":[]}',
'attach' => '说明',
'out_trade_no' => '1217752501201407033233368018',
'fee_type' => 'CNY',
Expand All @@ -39,10 +39,6 @@ public function post(array $options = [
'sub_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'receipt' => 'Y',
'scene_info' => '{"store_info":{"id":"SZTX001","name":"腾大餐厅","area_code":"440305","address":"科技园中一路腾讯大厦"}}',
'id' => 'SZTX001',
'name' => '腾讯大厦腾大餐厅',
'area_code' => '440305',
'address' => '科技园中一路腾讯大厦',
],
]): ResponseInterface;

Expand All @@ -60,7 +56,7 @@ public function postAsync(array $options = [
'device_info' => '013467007045764',
'sign_type' => 'HMAC-SHA256',
'body' => '腾讯充值中心-QQ会员充值',
'detail' => 'Ipadmini16G白色',
'detail' => '{"goods_detail":[]}',
'attach' => '说明',
'out_trade_no' => '1217752501201407033233368018',
'fee_type' => 'CNY',
Expand All @@ -76,10 +72,6 @@ public function postAsync(array $options = [
'sub_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'receipt' => 'Y',
'scene_info' => '{"store_info":{"id":"SZTX001","name":"腾大餐厅","area_code":"440305","address":"科技园中一路腾讯大厦"}}',
'id' => 'SZTX001',
'name' => '腾讯大厦腾大餐厅',
'area_code' => '440305',
'address' => '科技园中一路腾讯大厦',
],
]): PromiseInterface;
}

0 comments on commit f11b56e

Please sign in to comment.