Skip to content

Commit

Permalink
U: src/V3/Vehicle/Parking/Parkings.php
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Dec 22, 2024
1 parent c44b817 commit 161ae8c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
9 changes: 8 additions & 1 deletion docs/v3/vehicle/parking/parkings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ post:
summary: 创建停车入场API
description: 车辆入场以后,商户调用该接口,创建停车入场信息。 [官方文档](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter8_8_2.shtml)
parameters:
- $ref: '../../../definitions/Parameters.yaml#/WECHATPAY_CERTIFICATE_SERIAL'
- name: _
in: body
required: true
Expand Down Expand Up @@ -97,7 +96,15 @@ post:
type: string
description: 停车入场状态
example: NORMAL
enum:
- NORMAL
- BLOCKED
block_reason:
type: string
description: 不可用状态描述
example: PAUSE
enum:
- PAUSE
- OVERDUE
- OUT_SERVICE
- EVALUATION_FAILED
4 changes: 4 additions & 0 deletions docs/v3/vehicle/parking/services/find.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@ get:
type: string
description: 车牌服务开通状态
example: PAUSE
enum:
- NORMAL
- PAUSE
- OUT_SERVICE
10 changes: 10 additions & 0 deletions docs/v3/vehicle/transactions/parking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ post:
type: string
description: 交易状态
example: SUCCESS
enum:
- SUCCESS
- ACCEPTED
- PAY_FAIL
- REFUND
trade_state_description:
type: string
description: 交易状态描述
Expand All @@ -190,6 +195,9 @@ post:
type: string
description: 用户是否已还款
example: 'Y'
enum:
- Y
- N
attach:
type: string
description: 附加数据
Expand All @@ -198,6 +206,8 @@ post:
type: string
description: 交易场景
example: PARKING
enum:
- PARKING
parking_info:
type: object
description: 停车场景信息
Expand Down
6 changes: 0 additions & 6 deletions src/V3/Vehicle/Parking/Parkings.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ public function post(array $options = [
'parking_name' => '欢乐海岸停车场',
'free_duration' => 3600,
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]): ResponseInterface;

/**
Expand All @@ -46,8 +43,5 @@ public function postAsync(array $options = [
'parking_name' => '欢乐海岸停车场',
'free_duration' => 3600,
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]): PromiseInterface;
}

0 comments on commit 161ae8c

Please sign in to comment.