Skip to content

Commit 36d84bf

Browse files
A: src/V3/FundApp/MchTransfer/UserConfirmAuthorization* family
1 parent 69e0e19 commit 36d84bf

7 files changed

Lines changed: 194 additions & 0 deletions

File tree

src/V3/FundApp/MchTransfer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace WeChatPay\OpenAPI\V3\FundApp;
44

55
/**
6+
* @property-read MchTransfer\UserConfirmAuthorization $userConfirmAuthorization
67
* @property-read MchTransfer\TransferToQqWalletBills $transferToQqWalletBills
78
* @property-read MchTransfer\TransferBills $transferBills
89
* @property-read MchTransfer\Elecsign $elecsign

src/V3/FundApp/MchTransfer/TransferBills.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/**
99
* @property-read TransferBills\TransferBillNo $transferBillNo
1010
* @property-read TransferBills\OutBillNo $outBillNo
11+
* @property-read TransferBills\PreTransferWithAuthorization $preTransferWithAuthorization
12+
* @property-read TransferBills\Transfer $transfer
1113
*/
1214
interface TransferBills
1315
{
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\FundApp\MchTransfer\TransferBills;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface PreTransferWithAuthorization
11+
{
12+
/**
13+
* 发起转账并完成自动收款授权(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/transfer-bills/pre-transfer-with-authorization
16+
*/
17+
public function post(array $options = [
18+
'json' => [
19+
'appid' => 'wxf636efh567hg4356',
20+
'out_bill_no' => 'plfk2020042013',
21+
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
22+
'user_name' => '757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45',
23+
'transfer_amount' => 400000,
24+
'transfer_remark' => '2020年4月报销',
25+
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
26+
'user_recv_perception' => '现金奖励',
27+
'transfer_scene_id' => '1000',
28+
'transfer_scene_report_infos' => [[
29+
'info_type' => '活动名称',
30+
'info_content' => '注册会员有礼',
31+
],],
32+
'authorization_info' => [
33+
'user_display_name' => 'wx_123456',
34+
'out_authorization_no' => 'plfk2020042013',
35+
'authorization_notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
36+
],
37+
'sponsor_mchid' => '1900001109',
38+
],
39+
'headers' => [
40+
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
41+
],
42+
]): ResponseInterface;
43+
44+
/**
45+
* 发起转账并完成自动收款授权(异步模式)
46+
* @param array<string,mixed> $options
47+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/transfer-bills/pre-transfer-with-authorization
48+
*/
49+
public function postAsync(array $options = [
50+
'json' => [
51+
'appid' => 'wxf636efh567hg4356',
52+
'out_bill_no' => 'plfk2020042013',
53+
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
54+
'user_name' => '757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45',
55+
'transfer_amount' => 400000,
56+
'transfer_remark' => '2020年4月报销',
57+
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
58+
'user_recv_perception' => '现金奖励',
59+
'transfer_scene_id' => '1000',
60+
'transfer_scene_report_infos' => [[
61+
'info_type' => '活动名称',
62+
'info_content' => '注册会员有礼',
63+
],],
64+
'authorization_info' => [
65+
'user_display_name' => 'wx_123456',
66+
'out_authorization_no' => 'plfk2020042013',
67+
'authorization_notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
68+
],
69+
'sponsor_mchid' => '1900001109',
70+
],
71+
'headers' => [
72+
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
73+
],
74+
]): PromiseInterface;
75+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\FundApp\MchTransfer\TransferBills;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface Transfer
11+
{
12+
/**
13+
* 转账(用户自动收款)(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/transfer-bills/transfer
16+
*/
17+
public function post(array $options = [
18+
'json' => [
19+
'appid' => 'wxf636efh567hg4356',
20+
'out_bill_no' => 'plfk2020042013',
21+
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
22+
'user_name' => '757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45',
23+
'transfer_amount' => 400000,
24+
'transfer_remark' => '2020年4月报销',
25+
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
26+
'user_recv_perception' => '现金奖励',
27+
'transfer_scene_id' => '1000',
28+
'transfer_scene_report_infos' => [[
29+
'info_type' => '活动名称',
30+
'info_content' => '注册会员有礼',
31+
],],
32+
'authorization_id' => '201202504101000123456789012',
33+
'sponsor_mchid' => '1900001109',
34+
],
35+
'headers' => [
36+
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
37+
],
38+
]): ResponseInterface;
39+
40+
/**
41+
* 转账(用户自动收款)(异步模式)
42+
* @param array<string,mixed> $options
43+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/transfer-bills/transfer
44+
*/
45+
public function postAsync(array $options = [
46+
'json' => [
47+
'appid' => 'wxf636efh567hg4356',
48+
'out_bill_no' => 'plfk2020042013',
49+
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
50+
'user_name' => '757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45',
51+
'transfer_amount' => 400000,
52+
'transfer_remark' => '2020年4月报销',
53+
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
54+
'user_recv_perception' => '现金奖励',
55+
'transfer_scene_id' => '1000',
56+
'transfer_scene_report_infos' => [[
57+
'info_type' => '活动名称',
58+
'info_content' => '注册会员有礼',
59+
],],
60+
'authorization_id' => '201202504101000123456789012',
61+
'sponsor_mchid' => '1900001109',
62+
],
63+
'headers' => [
64+
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
65+
],
66+
]): PromiseInterface;
67+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\FundApp\MchTransfer;
4+
5+
/**
6+
* @property-read UserConfirmAuthorization\OutAuthorizationNo $outAuthorizationNo
7+
*/
8+
interface UserConfirmAuthorization
9+
{
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\FundApp\MchTransfer\UserConfirmAuthorization;
4+
5+
/**
6+
* @property-read OutAuthorizationNo\_out_authorization_no_ $_out_authorization_no_
7+
*/
8+
interface OutAuthorizationNo
9+
{
10+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\FundApp\MchTransfer\UserConfirmAuthorization\OutAuthorizationNo;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface _out_authorization_no_
11+
{
12+
/**
13+
* 商户单号查询自动收款授权(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/user-confirm-authorization/out-authorization-no/%7Bout_authorization_no%7D
16+
*/
17+
public function get(array $options = [
18+
'out_authorization_no' => 'plfk2020042013',
19+
]): ResponseInterface;
20+
21+
/**
22+
* 商户单号查询自动收款授权(异步模式)
23+
* @param array<string,mixed> $options
24+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/user-confirm-authorization/out-authorization-no/%7Bout_authorization_no%7D
25+
*/
26+
public function getAsync(array $options = [
27+
'out_authorization_no' => 'plfk2020042013',
28+
]): PromiseInterface;
29+
}

0 commit comments

Comments
 (0)