1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'ROA', 'product' => 'btripOpen', 'version' => '2022-05-20'],
'components' => [
'schemas' => [],
],
'apis' => [
'BatchSubmitPreBill' => [
'path' => '/prebill/v1/batchSubmit',
'methods' => ['put'],
'schemes' => ['https'],
'security' => [
[
'soCorpToken' => [],
],
],
'deprecated' => false,
'parameters' => [
[
'name' => 'x-acs-btrip-so-corp-token',
'in' => 'header',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'bill_batch',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'dimension',
'in' => 'query',
'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true],
],
[
'name' => 'values',
'in' => 'query',
'style' => 'json',
'schema' => [
'type' => 'array',
'required' => true,
'items' => ['type' => 'string', 'required' => false],
],
],
[
'name' => 'customer_decision',
'in' => 'query',
'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'app_ip',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => false],
],
],
],
'CarApplyAdd' => [
'path' => '/apply/v1/car',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'soCorpToken' => [],
],
],
'deprecated' => false,
'parameters' => [
[
'name' => 'third_part_apply_id',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'title',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'cause',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'times_type',
'in' => 'formData',
'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true],
],
[
'name' => 'times_total',
'in' => 'formData',
'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true],
],
[
'name' => 'times_used',
'in' => 'formData',
'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true],
],
[
'name' => 'status',
'in' => 'formData',
'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true],
],
[
'name' => 'city',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'city_code_set',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'traveler_standard',
'in' => 'formData',
'style' => 'json',
'schema' => [
'type' => 'array',
'required' => false,
'items' => [
'type' => 'object',
'required' => false,
'properties' => [
'car_city_set' => [
'type' => 'array',
'required' => false,
'items' => [
'type' => 'object',
'required' => false,
'properties' => [
'city_code' => ['type' => 'string', 'required' => true],
'city_name' => ['type' => 'string', 'required' => true],
],
],
],
'user_id' => ['type' => 'string', 'required' => true],
],
],
],
],
[
'name' => 'date',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true, 'pattern' => '^\\d{4}(-\\d{2}){2}\\s+\\d{2}(:\\d{2}){2}$'],
],
[
'name' => 'finished_date',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => false, 'pattern' => '^\\d{4}(-\\d{2}){2}\\s+\\d{2}(:\\d{2}){2}$'],
],
[
'name' => 'third_part_invoice_id',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'third_part_cost_center_id',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'project_code',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'project_name',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'user_id',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'x-acs-btrip-so-corp-token',
'in' => 'header',
'schema' => ['type' => 'string', 'required' => false],
],
],
],
'ConfirmPreBill' => [
'path' => '/prebill/v1/confirm',
'methods' => ['put'],
'schemes' => ['https'],
'security' => [
[
'soCorpToken' => [],
],
],
'deprecated' => false,
'parameters' => [
[
'name' => 'x-acs-btrip-so-corp-token',
'in' => 'header',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'bill_batch',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => true],
],
],
],
],
'endpoints' => [],
];
|