Skip to content

Commit f0ba756

Browse files
A: src/V3/Webizpay/AvailMchRanges*
1 parent c420559 commit f0ba756

5 files changed

Lines changed: 172 additions & 0 deletions

File tree

src/V3/Webizpay.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @property-read Webizpay\Stores $stores
88
* @property-read Webizpay\Employees $employees
99
* @property-read Webizpay\Bill $bill
10+
* @property-read Webizpay\AvailMchRanges $availMchRanges
1011
*/
1112
interface Webizpay
1213
{

src/V3/Webizpay/AvailMchRanges.php

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Webizpay;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
* @property-read AvailMchRanges\_range_id_ $_range_id_
10+
*/
11+
interface AvailMchRanges
12+
{
13+
/**
14+
* 创建可用商户范围(同步模式)
15+
* @param array<string,mixed> $options
16+
* @link https://wechatpay.im/openapi/v3/webizpay/avail-mch-ranges
17+
*/
18+
public function post(array $options = [
19+
'json' => [
20+
'sp_mchid' => '12341234',
21+
'identifier_type' => 'ORGANIZATION_CODE',
22+
],
23+
]): ResponseInterface;
24+
25+
/**
26+
* 创建可用商户范围(异步模式)
27+
* @param array<string,mixed> $options
28+
* @link https://wechatpay.im/openapi/v3/webizpay/avail-mch-ranges
29+
*/
30+
public function postAsync(array $options = [
31+
'json' => [
32+
'sp_mchid' => '12341234',
33+
'identifier_type' => 'ORGANIZATION_CODE',
34+
],
35+
]): PromiseInterface;
36+
37+
/**
38+
* 查询可用商户范围列表(同步模式)
39+
* @param array<string,mixed> $options
40+
* @link https://wechatpay.im/openapi/v3/webizpay/avail-mch-ranges#get
41+
*/
42+
public function get(array $options = [
43+
'query' => [
44+
'sp_mchid' => '12341234',
45+
],
46+
]): ResponseInterface;
47+
48+
/**
49+
* 查询可用商户范围列表(异步模式)
50+
* @param array<string,mixed> $options
51+
* @link https://wechatpay.im/openapi/v3/webizpay/avail-mch-ranges#get
52+
*/
53+
public function getAsync(array $options = [
54+
'query' => [
55+
'sp_mchid' => '12341234',
56+
],
57+
]): PromiseInterface;
58+
}
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\Webizpay\AvailMchRanges;
4+
5+
/**
6+
* @property-read _range_id_\MerchantIdentifiers $merchantIdentifiers
7+
*/
8+
interface _range_id_
9+
{
10+
}
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\Webizpay\AvailMchRanges\_range_id_;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
* @property-read MerchantIdentifiers\_merchant_identifier_ $_merchant_identifier_
10+
*/
11+
interface MerchantIdentifiers
12+
{
13+
/**
14+
* 添加商户标识(同步模式)
15+
* @param array<string,mixed> $options
16+
* @link https://wechatpay.im/openapi/v3/webizpay/avail-mch-ranges/%7Brange_id%7D/merchant-identifiers
17+
*/
18+
public function post(array $options = [
19+
'range_id' => '89f5123e-5ad4-4e0e-89b1-63ced0c798c5',
20+
'json' => [
21+
'sp_mchid' => '12341234',
22+
'merchant_identifier' => '91110000710926094P',
23+
],
24+
]): ResponseInterface;
25+
26+
/**
27+
* 添加商户标识(异步模式)
28+
* @param array<string,mixed> $options
29+
* @link https://wechatpay.im/openapi/v3/webizpay/avail-mch-ranges/%7Brange_id%7D/merchant-identifiers
30+
*/
31+
public function postAsync(array $options = [
32+
'range_id' => '89f5123e-5ad4-4e0e-89b1-63ced0c798c5',
33+
'json' => [
34+
'sp_mchid' => '12341234',
35+
'merchant_identifier' => '91110000710926094P',
36+
],
37+
]): PromiseInterface;
38+
39+
/**
40+
* 查询商户标识列表(同步模式)
41+
* @param array<string,mixed> $options
42+
* @link https://wechatpay.im/openapi/v3/webizpay/avail-mch-ranges/%7Brange_id%7D/merchant-identifiers#get
43+
*/
44+
public function get(array $options = [
45+
'range_id' => '89f5123e-5ad4-4e0e-89b1-63ced0c798c5',
46+
'query' => [
47+
'sp_mchid' => '12341234',
48+
'offset' => 0,
49+
'limit' => 100,
50+
],
51+
]): ResponseInterface;
52+
53+
/**
54+
* 查询商户标识列表(异步模式)
55+
* @param array<string,mixed> $options
56+
* @link https://wechatpay.im/openapi/v3/webizpay/avail-mch-ranges/%7Brange_id%7D/merchant-identifiers#get
57+
*/
58+
public function getAsync(array $options = [
59+
'range_id' => '89f5123e-5ad4-4e0e-89b1-63ced0c798c5',
60+
'query' => [
61+
'sp_mchid' => '12341234',
62+
'offset' => 0,
63+
'limit' => 100,
64+
],
65+
]): PromiseInterface;
66+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Webizpay\AvailMchRanges\_range_id_\MerchantIdentifiers;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface _merchant_identifier_
11+
{
12+
/**
13+
* 删除商户标识(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/webizpay/avail-mch-ranges/%7Brange_id%7D/merchant-identifiers/%7Bmerchant_identifier%7D
16+
*/
17+
public function delete(array $options = [
18+
'range_id' => '89f5123e-5ad4-4e0e-89b1-63ced0c798c5',
19+
'merchant_identifier' => '91110000710926094P',
20+
'json' => [
21+
'sp_mchid' => '12341234',
22+
],
23+
]): ResponseInterface;
24+
25+
/**
26+
* 删除商户标识(异步模式)
27+
* @param array<string,mixed> $options
28+
* @link https://wechatpay.im/openapi/v3/webizpay/avail-mch-ranges/%7Brange_id%7D/merchant-identifiers/%7Bmerchant_identifier%7D
29+
*/
30+
public function deleteAsync(array $options = [
31+
'range_id' => '89f5123e-5ad4-4e0e-89b1-63ced0c798c5',
32+
'merchant_identifier' => '91110000710926094P',
33+
'json' => [
34+
'sp_mchid' => '12341234',
35+
],
36+
]): PromiseInterface;
37+
}

0 commit comments

Comments
 (0)