Skip to content

Commit 2a46e3a

Browse files
A: src/V3/Parking*
1 parent 6773ca7 commit 2a46e3a

15 files changed

Lines changed: 644 additions & 0 deletions

File tree

src/V2/Papay/Partner.php

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

55
/**
6+
* @property-read Partner\Deletecontract $deletecontract
67
* @property-read Partner\Entrustweb $entrustweb
78
* @property-read Partner\H5entrustweb $h5entrustweb
89
* @property-read Partner\Preentrustweb $preentrustweb
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\V2\Papay\Partner;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface Deletecontract
11+
{
12+
/**
13+
* 申请解约(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v2/papay/partner/deletecontract
16+
*/
17+
public function post(array $options = [
18+
'xml' => [
19+
'appid' => 'wxcbda96de0b165486',
20+
'sub_appid' => 'wxcbda96de0b165489',
21+
'mch_id' => '10000098',
22+
'sub_mch_id' => '1900000109',
23+
'plan_id' => '12251',
24+
'contract_code' => '1234',
25+
'contract_id' => 'Wx15463511252015071056489715',
26+
'contract_termination_remark' => '解约原因',
27+
'version' => '1.0',
28+
],
29+
'nonceless' => true,
30+
]): ResponseInterface;
31+
32+
/**
33+
* 申请解约(异步模式)
34+
* @param array<string,mixed> $options
35+
* @link https://wechatpay.im/openapi/v2/papay/partner/deletecontract
36+
*/
37+
public function postAsync(array $options = [
38+
'xml' => [
39+
'appid' => 'wxcbda96de0b165486',
40+
'sub_appid' => 'wxcbda96de0b165489',
41+
'mch_id' => '10000098',
42+
'sub_mch_id' => '1900000109',
43+
'plan_id' => '12251',
44+
'contract_code' => '1234',
45+
'contract_id' => 'Wx15463511252015071056489715',
46+
'contract_termination_remark' => '解约原因',
47+
'version' => '1.0',
48+
],
49+
'nonceless' => true,
50+
]): PromiseInterface;
51+
}

src/V3.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* @property-read V3\PasswordExemptContract $passwordExemptContract
3131
* @property-read V3\PartnerTransfer $partnerTransfer
3232
* @property-read V3\PartnerPapay $partnerPapay
33+
* @property-read V3\Parking $parking
3334
* @property-read V3\Papay $papay
3435
* @property-read V3\Palmservice $palmservice
3536
* @property-read V3\Offlinefacemch $offlinefacemch

src/V3/Parking.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;
4+
5+
/**
6+
* @property-read Parking\Reminders $reminders
7+
*/
8+
interface Parking
9+
{
10+
}

src/V3/Parking/Reminders.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Parking;
4+
5+
/**
6+
* @property-read Reminders\Application $application
7+
* @property-read Reminders\Applications $applications
8+
* @property-read Reminders\Entry $entry
9+
* @property-read Reminders\Exit_ $exit
10+
* @property-read Reminders\ExtPayment $extPayment
11+
* @property-read Reminders\ParkingFee $parkingFee
12+
* @property-read Reminders\ParkingLot $parkingLot
13+
* @property-read Reminders\Payment $payment
14+
*/
15+
interface Reminders
16+
{
17+
}
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Parking\Reminders;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
* @property-read Application\Query $query
10+
* @property-read Application\Withdraw $withdraw
11+
*/
12+
interface Application
13+
{
14+
/**
15+
* 提交停车场进件申请(同步模式)
16+
* @param array<string,mixed> $options
17+
* @link https://wechatpay.im/openapi/v3/parking/reminders/application
18+
*/
19+
public function post(array $options = [
20+
'json' => [
21+
'parking_lot' => [
22+
'parking_lot_name' => 'XX购物中心停车场',
23+
'out_parking_lot_id' => 'PARK001',
24+
'parking_lot_address' => 'XX市XX区XX路XX号',
25+
'longitude' => '116.397128',
26+
'latitude' => '39.916527',
27+
'parking_lot_type' => 'PARKING_LOT_TYPE_BUSINESS_DISTRICT',
28+
'phone_number' => '13800138000',
29+
'parking_sign_url' => 'https://example.com/parking_sign.jpg',
30+
'notification_text_list' => ['string'],
31+
'payment_mini_prog_appid' => 'wx1234567890abcdef',
32+
'payment_path' => 'pages/pay/index',
33+
'parking_order_mini_prog_appid' => 'wx1234567890abcdef',
34+
'parking_order_path' => 'pages/order/index',
35+
'charging_rule' => [
36+
'rule_type' => 'CHARGING_RULE_FIXED_INTERVAL',
37+
'fee_limit_type' => 'FEE_LIMIT_AGGREGATE',
38+
'daily_limit_type' => 'DAILY_LIMIT_CALENDAR_DAY',
39+
'time_rounding_type' => 'TIME_ROUND_UP',
40+
'free_entry_duration' => 30,
41+
'free_exit_duration' => 15,
42+
'fixed_interval_rule' => [[
43+
'day_type' => 'DAY_TYPE_WEEKDAY',
44+
'start_time' => '09:00',
45+
'end_time' => '18:00',
46+
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
47+
'plate_type' => 'PLATE_TYPE_TEMPORARY',
48+
'first_duration' => 60,
49+
'first_amount' => 500,
50+
'interval_duration' => 30,
51+
'interval_amount' => 200,
52+
'interval_max_amount' => 1000,
53+
'max_fee_per_day' => 5000,
54+
'free_period_charging_mode' => 'FREE_PERIOD_CHARGING_ONCE_PER_ENTRY',
55+
'free_period_calculation_mode' => 'FREE_PERIOD_CAL_SEQUENTIAL_START',
56+
'is_green_vehicle_free_parking' => true,
57+
'first_duration_mode' => 'FIRST_DURATION_MODE_ONLY_FIRST_DURATION',
58+
],],
59+
'duration_segment_rule' => [[
60+
'day_type' => 'DAY_TYPE_WEEKDAY',
61+
'start_time' => '09:00',
62+
'end_time' => '18:00',
63+
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
64+
'plate_type' => 'PLATE_TYPE_TEMPORARY',
65+
'charge_mode' => 'INTERVAL',
66+
'duration_from' => 0,
67+
'duration_to' => 60,
68+
'fixed_amount' => 1000,
69+
'interval_min' => 30,
70+
'interval_amount' => 200,
71+
'interval_max_amount' => 1000,
72+
'max_fee_per_day' => 5000,
73+
],],
74+
'pre_entry_rule' => [[
75+
'day_type' => 'DAY_TYPE_WEEKDAY',
76+
'start_time' => '09:00',
77+
'end_time' => '18:00',
78+
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
79+
'plate_type' => 'PLATE_TYPE_TEMPORARY',
80+
'amount' => 1000,
81+
'max_fee_per_day' => 5000,
82+
],],
83+
'holiday_mode' => 'HOLIDAY_MODE_LEGAL_MODY',
84+
'aggregate_limit_mode' => 'AGGREGATE_LIMIT_MODE_NORMAL',
85+
'first_charge_time_mode' => 'FIRST_CHARGE_TIME_MODE_ENTER',
86+
],
87+
],
88+
],
89+
]): ResponseInterface;
90+
91+
/**
92+
* 提交停车场进件申请(异步模式)
93+
* @param array<string,mixed> $options
94+
* @link https://wechatpay.im/openapi/v3/parking/reminders/application
95+
*/
96+
public function postAsync(array $options = [
97+
'json' => [
98+
'parking_lot' => [
99+
'parking_lot_name' => 'XX购物中心停车场',
100+
'out_parking_lot_id' => 'PARK001',
101+
'parking_lot_address' => 'XX市XX区XX路XX号',
102+
'longitude' => '116.397128',
103+
'latitude' => '39.916527',
104+
'parking_lot_type' => 'PARKING_LOT_TYPE_BUSINESS_DISTRICT',
105+
'phone_number' => '13800138000',
106+
'parking_sign_url' => 'https://example.com/parking_sign.jpg',
107+
'notification_text_list' => ['string'],
108+
'payment_mini_prog_appid' => 'wx1234567890abcdef',
109+
'payment_path' => 'pages/pay/index',
110+
'parking_order_mini_prog_appid' => 'wx1234567890abcdef',
111+
'parking_order_path' => 'pages/order/index',
112+
'charging_rule' => [
113+
'rule_type' => 'CHARGING_RULE_FIXED_INTERVAL',
114+
'fee_limit_type' => 'FEE_LIMIT_AGGREGATE',
115+
'daily_limit_type' => 'DAILY_LIMIT_CALENDAR_DAY',
116+
'time_rounding_type' => 'TIME_ROUND_UP',
117+
'free_entry_duration' => 30,
118+
'free_exit_duration' => 15,
119+
'fixed_interval_rule' => [[
120+
'day_type' => 'DAY_TYPE_WEEKDAY',
121+
'start_time' => '09:00',
122+
'end_time' => '18:00',
123+
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
124+
'plate_type' => 'PLATE_TYPE_TEMPORARY',
125+
'first_duration' => 60,
126+
'first_amount' => 500,
127+
'interval_duration' => 30,
128+
'interval_amount' => 200,
129+
'interval_max_amount' => 1000,
130+
'max_fee_per_day' => 5000,
131+
'free_period_charging_mode' => 'FREE_PERIOD_CHARGING_ONCE_PER_ENTRY',
132+
'free_period_calculation_mode' => 'FREE_PERIOD_CAL_SEQUENTIAL_START',
133+
'is_green_vehicle_free_parking' => true,
134+
'first_duration_mode' => 'FIRST_DURATION_MODE_ONLY_FIRST_DURATION',
135+
],],
136+
'duration_segment_rule' => [[
137+
'day_type' => 'DAY_TYPE_WEEKDAY',
138+
'start_time' => '09:00',
139+
'end_time' => '18:00',
140+
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
141+
'plate_type' => 'PLATE_TYPE_TEMPORARY',
142+
'charge_mode' => 'INTERVAL',
143+
'duration_from' => 0,
144+
'duration_to' => 60,
145+
'fixed_amount' => 1000,
146+
'interval_min' => 30,
147+
'interval_amount' => 200,
148+
'interval_max_amount' => 1000,
149+
'max_fee_per_day' => 5000,
150+
],],
151+
'pre_entry_rule' => [[
152+
'day_type' => 'DAY_TYPE_WEEKDAY',
153+
'start_time' => '09:00',
154+
'end_time' => '18:00',
155+
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
156+
'plate_type' => 'PLATE_TYPE_TEMPORARY',
157+
'amount' => 1000,
158+
'max_fee_per_day' => 5000,
159+
],],
160+
'holiday_mode' => 'HOLIDAY_MODE_LEGAL_MODY',
161+
'aggregate_limit_mode' => 'AGGREGATE_LIMIT_MODE_NORMAL',
162+
'first_charge_time_mode' => 'FIRST_CHARGE_TIME_MODE_ENTER',
163+
],
164+
],
165+
],
166+
]): PromiseInterface;
167+
}
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\Parking\Reminders\Application;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface Query
11+
{
12+
/**
13+
* 查询停车场进件申请单(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/parking/reminders/application/query
16+
*/
17+
public function get(array $options = [
18+
'query' => [
19+
'parking_lot_audit_no' => 'PLA202604230001',
20+
'out_parking_lot_id' => 'lot_sz_tencent_001',
21+
],
22+
]): ResponseInterface;
23+
24+
/**
25+
* 查询停车场进件申请单(异步模式)
26+
* @param array<string,mixed> $options
27+
* @link https://wechatpay.im/openapi/v3/parking/reminders/application/query
28+
*/
29+
public function getAsync(array $options = [
30+
'query' => [
31+
'parking_lot_audit_no' => 'PLA202604230001',
32+
'out_parking_lot_id' => 'lot_sz_tencent_001',
33+
],
34+
]): PromiseInterface;
35+
}
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\Parking\Reminders\Application;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface Withdraw
11+
{
12+
/**
13+
* 撤回停车场进件申请(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/parking/reminders/application/withdraw
16+
*/
17+
public function post(array $options = [
18+
'json' => [
19+
'parking_lot_audit_no' => 'PLA202604230001',
20+
'out_parking_lot_id' => 'lot_sz_tencent_001',
21+
],
22+
]): ResponseInterface;
23+
24+
/**
25+
* 撤回停车场进件申请(异步模式)
26+
* @param array<string,mixed> $options
27+
* @link https://wechatpay.im/openapi/v3/parking/reminders/application/withdraw
28+
*/
29+
public function postAsync(array $options = [
30+
'json' => [
31+
'parking_lot_audit_no' => 'PLA202604230001',
32+
'out_parking_lot_id' => 'lot_sz_tencent_001',
33+
],
34+
]): PromiseInterface;
35+
}
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\Parking\Reminders;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface Applications
11+
{
12+
/**
13+
* 查询停车场进件申请单列表(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/parking/reminders/applications
16+
*/
17+
public function get(array $options = [
18+
'query' => [
19+
'out_parking_lot_id' => 'lot_sz_tencent_001',
20+
'offset' => 0,
21+
'limit' => 10,
22+
],
23+
]): ResponseInterface;
24+
25+
/**
26+
* 查询停车场进件申请单列表(异步模式)
27+
* @param array<string,mixed> $options
28+
* @link https://wechatpay.im/openapi/v3/parking/reminders/applications
29+
*/
30+
public function getAsync(array $options = [
31+
'query' => [
32+
'out_parking_lot_id' => 'lot_sz_tencent_001',
33+
'offset' => 0,
34+
'limit' => 10,
35+
],
36+
]): PromiseInterface;
37+
}

0 commit comments

Comments
 (0)