Skip to content

Commit ccc90a7

Browse files
A: src/V3/Pay/Instal*
1 parent 8f64e10 commit ccc90a7

5 files changed

Lines changed: 114 additions & 0 deletions

File tree

src/V3/Pay.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/**
66
* @property-read Pay\Transactions $transactions
77
* @property-read Pay\Partner $partner
8+
* @property-read Pay\Instal $instal
89
* @property-read Pay\AcquiringBank $acquiringBank
910
*/
1011
interface Pay

src/V3/Pay/Instal.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Pay;
4+
5+
/**
6+
* @property-read Instal\Partner $partner
7+
* @property-read Instal\Exposure $exposure
8+
*/
9+
interface Instal
10+
{
11+
}

src/V3/Pay/Instal/Exposure.php

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Pay\Instal;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface Exposure
11+
{
12+
/**
13+
* 商户贴息-获取微信分付曝光建议(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/pay/instal/exposure
16+
*/
17+
public function post(array $options = [
18+
'json' => [
19+
'mchid' => '1230000109',
20+
'appid' => 'wxd678efh567hg6787',
21+
'user_id_type' => 'OPENID',
22+
'openid' => '123456789',
23+
'phone_number_hash' => 'EF879546FFFF',
24+
],
25+
]): ResponseInterface;
26+
27+
/**
28+
* 商户贴息-获取微信分付曝光建议(异步模式)
29+
* @param array<string,mixed> $options
30+
* @link https://wechatpay.im/openapi/v3/pay/instal/exposure
31+
*/
32+
public function postAsync(array $options = [
33+
'json' => [
34+
'mchid' => '1230000109',
35+
'appid' => 'wxd678efh567hg6787',
36+
'user_id_type' => 'OPENID',
37+
'openid' => '123456789',
38+
'phone_number_hash' => 'EF879546FFFF',
39+
],
40+
]): PromiseInterface;
41+
}

src/V3/Pay/Instal/Partner.php

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\Pay\Instal;
4+
5+
/**
6+
* @property-read Partner\Exposure $exposure
7+
*/
8+
interface Partner
9+
{
10+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Pay\Instal\Partner;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface Exposure
11+
{
12+
/**
13+
* 商户贴息-获取微信分付曝光建议(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/pay/instal/partner/exposure
16+
*/
17+
public function post(array $options = [
18+
'json' => [
19+
'sp_mchid' => '1230000109',
20+
'sp_appid' => 'wx8888888888888888',
21+
'sub_appid' => 'wxd678efh567hg6999',
22+
'sub_mchid' => '1900000109',
23+
'user_id' => [
24+
'user_id_type' => 'OPENID',
25+
'sp_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
26+
'sub_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
27+
'phone_number_hash' => 'ABDEF3445546456B',
28+
],
29+
],
30+
]): ResponseInterface;
31+
32+
/**
33+
* 商户贴息-获取微信分付曝光建议(异步模式)
34+
* @param array<string,mixed> $options
35+
* @link https://wechatpay.im/openapi/v3/pay/instal/partner/exposure
36+
*/
37+
public function postAsync(array $options = [
38+
'json' => [
39+
'sp_mchid' => '1230000109',
40+
'sp_appid' => 'wx8888888888888888',
41+
'sub_appid' => 'wxd678efh567hg6999',
42+
'sub_mchid' => '1900000109',
43+
'user_id' => [
44+
'user_id_type' => 'OPENID',
45+
'sp_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
46+
'sub_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
47+
'phone_number_hash' => 'ABDEF3445546456B',
48+
],
49+
],
50+
]): PromiseInterface;
51+
}

0 commit comments

Comments
 (0)