Skip to content

Commit 5c3423f

Browse files
A: src/V3/FundApp/MchTransfer/Partner/[SubMchAuthorizations|TransferBills]
1 parent 22a42eb commit 5c3423f

6 files changed

Lines changed: 212 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\FundApp\MchTransfer\Partner;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
* @property-read SubMchAuthorizations\_sub_mchid_ $_sub_mchid_
10+
*/
11+
interface SubMchAuthorizations
12+
{
13+
/**
14+
* 申请子商户商家转账授权(同步模式)
15+
* @param array<string,mixed> $options
16+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/partner/sub-mch-authorizations
17+
*/
18+
public function post(array $options = [
19+
'json' => [
20+
'sub_mchid' => '1900001121',
21+
'out_apply_no' => 'apply2020042013',
22+
],
23+
]): ResponseInterface;
24+
25+
/**
26+
* 申请子商户商家转账授权(异步模式)
27+
* @param array<string,mixed> $options
28+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/partner/sub-mch-authorizations
29+
*/
30+
public function postAsync(array $options = [
31+
'json' => [
32+
'sub_mchid' => '1900001121',
33+
'out_apply_no' => 'apply2020042013',
34+
],
35+
]): PromiseInterface;
36+
}
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\Partner\SubMchAuthorizations;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface _sub_mchid_
11+
{
12+
/**
13+
* 查询子商户商家转账授权状态(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/partner/sub-mch-authorizations/%7Bsub_mchid%7D
16+
*/
17+
public function get(array $options = [
18+
'sub_mchid' => '1900001121',
19+
]): ResponseInterface;
20+
21+
/**
22+
* 查询子商户商家转账授权状态(异步模式)
23+
* @param array<string,mixed> $options
24+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/partner/sub-mch-authorizations/%7Bsub_mchid%7D
25+
*/
26+
public function getAsync(array $options = [
27+
'sub_mchid' => '1900001121',
28+
]): PromiseInterface;
29+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\FundApp\MchTransfer\Partner;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
* @property-read TransferBills\OutBillNo $outBillNo
10+
*/
11+
interface TransferBills
12+
{
13+
/**
14+
* 发起转账(同步模式)
15+
* @param array<string,mixed> $options
16+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/partner/transfer-bills
17+
*/
18+
public function post(array $options = [
19+
'json' => [
20+
'sub_mchid' => '1900001121',
21+
'appid' => 'wxf636efh567hg4356',
22+
'out_bill_no' => 'plfk2020042013',
23+
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
24+
'user_name' => '757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45',
25+
'transfer_amount' => 400000,
26+
'transfer_remark' => '2020年4月报销',
27+
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
28+
'user_recv_perception' => '现金奖励',
29+
'transfer_scene_id' => '1000',
30+
'transfer_scene_report_infos' => [[
31+
'info_type' => '活动名称',
32+
'info_content' => '注册会员有礼',
33+
],],
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/partner/transfer-bills
44+
*/
45+
public function postAsync(array $options = [
46+
'json' => [
47+
'sub_mchid' => '1900001121',
48+
'appid' => 'wxf636efh567hg4356',
49+
'out_bill_no' => 'plfk2020042013',
50+
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
51+
'user_name' => '757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45',
52+
'transfer_amount' => 400000,
53+
'transfer_remark' => '2020年4月报销',
54+
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
55+
'user_recv_perception' => '现金奖励',
56+
'transfer_scene_id' => '1000',
57+
'transfer_scene_report_infos' => [[
58+
'info_type' => '活动名称',
59+
'info_content' => '注册会员有礼',
60+
],],
61+
],
62+
'headers' => [
63+
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
64+
],
65+
]): PromiseInterface;
66+
}
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\Partner\TransferBills;
4+
5+
/**
6+
* @property-read OutBillNo\_out_bill_no_ $_out_bill_no_
7+
*/
8+
interface OutBillNo
9+
{
10+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\FundApp\MchTransfer\Partner\TransferBills\OutBillNo;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
* @property-read _out_bill_no_\Cancel $cancel
10+
*/
11+
interface _out_bill_no_
12+
{
13+
/**
14+
* 商户单号查询转账单(同步模式)
15+
* @param array<string,mixed> $options
16+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/partner/transfer-bills/out-bill-no/%7Bout_bill_no%7D
17+
*/
18+
public function get(array $options = [
19+
'out_bill_no' => 'plfk2020042013',
20+
'query' => [
21+
'sub_mchid' => '1900001121',
22+
],
23+
]): ResponseInterface;
24+
25+
/**
26+
* 商户单号查询转账单(异步模式)
27+
* @param array<string,mixed> $options
28+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/partner/transfer-bills/out-bill-no/%7Bout_bill_no%7D
29+
*/
30+
public function getAsync(array $options = [
31+
'out_bill_no' => 'plfk2020042013',
32+
'query' => [
33+
'sub_mchid' => '1900001121',
34+
],
35+
]): PromiseInterface;
36+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\FundApp\MchTransfer\Partner\TransferBills\OutBillNo\_out_bill_no_;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface Cancel
11+
{
12+
/**
13+
* 撤销转账(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/partner/transfer-bills/out-bill-no/%7Bout_bill_no%7D/cancel
16+
*/
17+
public function post(array $options = [
18+
'out_bill_no' => 'plfk2020042013',
19+
'json' => [
20+
'sub_mchid' => '1900001121',
21+
],
22+
]): ResponseInterface;
23+
24+
/**
25+
* 撤销转账(异步模式)
26+
* @param array<string,mixed> $options
27+
* @link https://wechatpay.im/openapi/v3/fund-app/mch-transfer/partner/transfer-bills/out-bill-no/%7Bout_bill_no%7D/cancel
28+
*/
29+
public function postAsync(array $options = [
30+
'out_bill_no' => 'plfk2020042013',
31+
'json' => [
32+
'sub_mchid' => '1900001121',
33+
],
34+
]): PromiseInterface;
35+
}

0 commit comments

Comments
 (0)