se compare interface
Showing
4 changed files
with
12 additions
and
1167 deletions
docs/comparison.yaml
deleted
100644 → 0
1 | swagger: '2.0' | ||
2 | info: | ||
3 | title: 接口文档 | ||
4 | description: 宝马ocr/biz_logic接口文档 | ||
5 | version: 1.0.0 | ||
6 | host: staging-bmw-ocr.situdata.com | ||
7 | basePath: / | ||
8 | tags: | ||
9 | - name: info | ||
10 | description: 比对信息 | ||
11 | schemes: | ||
12 | - https | ||
13 | security: | ||
14 | - OAuth2: [] | ||
15 | paths: | ||
16 | /api/compare/v1: | ||
17 | post: | ||
18 | tags: | ||
19 | - info | ||
20 | summary: POS上传比对信息 | ||
21 | consumes: | ||
22 | - application/json | ||
23 | produces: | ||
24 | - application/json | ||
25 | parameters: | ||
26 | - in: body | ||
27 | name: body | ||
28 | required: true | ||
29 | schema: | ||
30 | $ref: '#/definitions/Comparison' | ||
31 | responses: | ||
32 | 200: | ||
33 | description: ok | ||
34 | schema: | ||
35 | $ref: '#/definitions/ApiResponse' | ||
36 | securityDefinitions: | ||
37 | OAuth2: | ||
38 | type: oauth2 | ||
39 | flow: application | ||
40 | description: 'This API uses OAuth 2 with the application(clientCredentials) grant | ||
41 | flow. | ||
42 | |||
43 | client_id=sMlciTkppsMzARwHpCVarm5q7DP2Vucj3ny8JFhw | ||
44 | |||
45 | client_secret=WNoOilDx140ZLcenDKfsnikv7S2LIFs60DciYoqnrZaYLqYsKpcmt7mJIL69o9AEf84uQvRnS3K2UioxfjNyImjR4UOyXbDcF6qYgTLC4KDVByKFdVhKfrn2Lc4q4BNW | ||
46 | |||
47 | scopes=write | ||
48 | |||
49 | ' | ||
50 | tokenUrl: https://staging-bmw-ocr.situdata.com/api/oauth/token/ | ||
51 | scopes: | ||
52 | write: Grants write access | ||
53 | responses: | ||
54 | ErrorResponse: | ||
55 | description: 调用异常, 具体情况请参考`HTTP`状态码和`code`字段 | ||
56 | schema: | ||
57 | $ref: '#/definitions/ApiResponse' | ||
58 | NoContent: | ||
59 | description: 后台接收请求,但是没有响应内容 | ||
60 | schema: | ||
61 | $ref: '#/definitions/ApiResponse' | ||
62 | definitions: | ||
63 | individualCusInfo: | ||
64 | type: object | ||
65 | required: | ||
66 | - applicantType | ||
67 | - idType | ||
68 | - customerChineseName | ||
69 | - idNum | ||
70 | - idExpiryDate | ||
71 | - dateOfBirth | ||
72 | - companyName | ||
73 | - registeredCapital | ||
74 | - selfEmployedSubType | ||
75 | properties: | ||
76 | applicantType: | ||
77 | description: applicantType | ||
78 | type: string | ||
79 | example: COAPP | ||
80 | enum: | ||
81 | - COAPP | ||
82 | - CUSTR | ||
83 | - GAUTR1 | ||
84 | - GAUTR2 | ||
85 | idType: | ||
86 | description: idType | ||
87 | type: string | ||
88 | example: ITARI | ||
89 | enum: | ||
90 | - ITARI | ||
91 | - ITHKM | ||
92 | - ITPRC | ||
93 | - ITPSP | ||
94 | - ITRES | ||
95 | - ITTID | ||
96 | - ITUSC | ||
97 | - ITCCU | ||
98 | secondIdType: | ||
99 | description: secondIdType | ||
100 | type: string | ||
101 | example: ITARI | ||
102 | enum: | ||
103 | - ITARI | ||
104 | - ITHKM | ||
105 | - ITPRC | ||
106 | - ITPSP | ||
107 | - ITRES | ||
108 | - ITTID | ||
109 | customerChineseName: | ||
110 | description: customerChineseName | ||
111 | type: string | ||
112 | example: 李四 | ||
113 | idNum: | ||
114 | description: idNum | ||
115 | type: string | ||
116 | example: 111111199404251111 | ||
117 | secondIdNum: | ||
118 | description: secondIdNum | ||
119 | type: string | ||
120 | example: 111111199404251111 | ||
121 | idExpiryDate: | ||
122 | description: idExpiryDate | ||
123 | type: string | ||
124 | format: date | ||
125 | example: '2027-04-30' | ||
126 | dateOfBirth: | ||
127 | description: dateOfBirth | ||
128 | type: string | ||
129 | format: date | ||
130 | example: '2027-04-30' | ||
131 | companyName: | ||
132 | description: companyName | ||
133 | type: string | ||
134 | example: 北京思图场景数据科技服务有限公司 | ||
135 | registeredCapital: | ||
136 | description: registeredCapital | ||
137 | type: number | ||
138 | format: float | ||
139 | example: 1234.56 | ||
140 | selfEmployedSubType: | ||
141 | description: selfEmployedSubType | ||
142 | type: string | ||
143 | example: CSIBM | ||
144 | enum: | ||
145 | - CSIBM | ||
146 | - CSOTH | ||
147 | - CSSME | ||
148 | Comparison: | ||
149 | type: object | ||
150 | required: | ||
151 | - content | ||
152 | properties: | ||
153 | content: | ||
154 | description: 比对内容信息 | ||
155 | type: object | ||
156 | required: | ||
157 | - uniqSeq | ||
158 | - applicationId | ||
159 | - applicationEntity | ||
160 | - customerType | ||
161 | - applicationVersion | ||
162 | - vehicleStatus | ||
163 | - comments | ||
164 | - individualCusInfo | ||
165 | properties: | ||
166 | uniqSeq: | ||
167 | description: uniqSeq | ||
168 | type: string | ||
169 | example: 201809301905121000 | ||
170 | applicationId: | ||
171 | description: applicationId | ||
172 | type: string | ||
173 | example: CH-B100000123 | ||
174 | applicationEntity: | ||
175 | description: applicationEntity | ||
176 | type: string | ||
177 | example: HIL | ||
178 | enum: | ||
179 | - AFC | ||
180 | - HIL | ||
181 | customerType: | ||
182 | description: customerType | ||
183 | type: string | ||
184 | example: TCCOR | ||
185 | enum: | ||
186 | - TCCOR | ||
187 | - TCDAS | ||
188 | - TCFRE | ||
189 | - TCIAS | ||
190 | - TCIND | ||
191 | - TCSEP | ||
192 | - TCURE | ||
193 | applicationVersion: | ||
194 | description: applicationVersion | ||
195 | type: integer | ||
196 | example: 0 | ||
197 | vehicleStatus: | ||
198 | description: vehicleStatus | ||
199 | type: string | ||
200 | example: PCUSD | ||
201 | enum: | ||
202 | - PCUSD | ||
203 | - PCNEW | ||
204 | comments: | ||
205 | description: comments | ||
206 | type: array | ||
207 | items: | ||
208 | type: string | ||
209 | individualCusInfo: | ||
210 | description: individualCusInfo | ||
211 | type: array | ||
212 | items: | ||
213 | $ref: '#/definitions/individualCusInfo' | ||
214 | usedCarInfo: | ||
215 | description: usedCarInfo | ||
216 | type: object | ||
217 | required: | ||
218 | - vinNo | ||
219 | - manufactureDate | ||
220 | - firstRegistrationDate | ||
221 | properties: | ||
222 | vinNo: | ||
223 | description: vinNo | ||
224 | type: string | ||
225 | example: LBVSFJSDLFJLSDJF | ||
226 | manufactureDate: | ||
227 | description: manufactureDate | ||
228 | type: string | ||
229 | format: date | ||
230 | example: '2027-04-30' | ||
231 | firstRegistrationDate: | ||
232 | description: firstRegistrationDate | ||
233 | type: string | ||
234 | format: date | ||
235 | example: '2027-04-30' | ||
236 | corporateCusInfo: | ||
237 | description: corporateCusInfo | ||
238 | type: object | ||
239 | required: | ||
240 | - customerChineseName | ||
241 | - legalRepName | ||
242 | - idNum | ||
243 | - businessLicenseNo | ||
244 | - taxRegistrationCode | ||
245 | - incorporationDate | ||
246 | - businessLicenseDueDate | ||
247 | - capitalRegAmount | ||
248 | properties: | ||
249 | customerChineseName: | ||
250 | description: customerChineseName | ||
251 | type: string | ||
252 | example: 北京思图场景数据科技服务有限公司 | ||
253 | legalRepName: | ||
254 | description: legalRepName | ||
255 | type: string | ||
256 | example: 李六 | ||
257 | idNum: | ||
258 | description: idNum | ||
259 | type: string | ||
260 | example: MA007438143XJ1P | ||
261 | businessLicenseNo: | ||
262 | description: businessLicenseNo | ||
263 | type: string | ||
264 | example: MA007438143XJ1P | ||
265 | taxRegistrationCode: | ||
266 | description: taxRegistrationCode | ||
267 | type: string | ||
268 | example: MA007438143XJ1P | ||
269 | incorporationDate: | ||
270 | description: incorporationDate | ||
271 | type: string | ||
272 | format: date | ||
273 | example: '2027-04-30' | ||
274 | businessLicenseDueDate: | ||
275 | description: businessLicenseDueDate | ||
276 | type: string | ||
277 | format: date | ||
278 | example: '2027-04-30' | ||
279 | capitalRegAmount: | ||
280 | description: capitalRegAmount | ||
281 | type: number | ||
282 | format: float | ||
283 | example: 1234.56 | ||
284 | ApiResponse: | ||
285 | description: 响应对象,code字段用于表示响应的状态; data字段用于存放响应内容 | ||
286 | type: object | ||
287 | required: | ||
288 | - code | ||
289 | - msg | ||
290 | properties: | ||
291 | code: | ||
292 | type: integer | ||
293 | format: uint8 | ||
294 | description: '0: success 1: need login 2: invalid params 3: internal error | ||
295 | 4: object not exist 5: async wait 6: no permission 7: illegal operation' | ||
296 | example: 0 | ||
297 | enum: | ||
298 | - 0 | ||
299 | - 1 | ||
300 | - 2 | ||
301 | - 3 | ||
302 | - 4 | ||
303 | - 5 | ||
304 | - 6 | ||
305 | - 7 | ||
306 | msg: | ||
307 | type: string | ||
308 | example: success | ||
309 | data: | ||
310 | type: object |
docs/se_compare.yaml
deleted
100644 → 0
1 | swagger: '2.0' | ||
2 | info: | ||
3 | title: 接口文档 | ||
4 | description: 宝马ocr/biz_logic接口文档 | ||
5 | version: 1.0.0 | ||
6 | host: li19dkocruat01vm.bmwgroup.net | ||
7 | basePath: / | ||
8 | tags: | ||
9 | - name: info | ||
10 | description: 比对信息 | ||
11 | schemes: | ||
12 | - https | ||
13 | security: | ||
14 | - OAuth2: [] | ||
15 | paths: | ||
16 | /api/compare/settlement/v1: | ||
17 | post: | ||
18 | tags: | ||
19 | - info | ||
20 | summary: POS上传SE比对信息 | ||
21 | consumes: | ||
22 | - application/json | ||
23 | produces: | ||
24 | - application/json | ||
25 | parameters: | ||
26 | - in: body | ||
27 | name: body | ||
28 | required: true | ||
29 | schema: | ||
30 | $ref: '#/definitions/SEComparison' | ||
31 | responses: | ||
32 | 200: | ||
33 | description: ok | ||
34 | schema: | ||
35 | $ref: '#/definitions/ApiResponse' | ||
36 | /api/compare/v1: | ||
37 | post: | ||
38 | tags: | ||
39 | - info | ||
40 | summary: POS上传CA比对信息 | ||
41 | consumes: | ||
42 | - application/json | ||
43 | produces: | ||
44 | - application/json | ||
45 | parameters: | ||
46 | - in: body | ||
47 | name: body | ||
48 | required: true | ||
49 | schema: | ||
50 | $ref: '#/definitions/Comparison' | ||
51 | responses: | ||
52 | 200: | ||
53 | description: ok | ||
54 | schema: | ||
55 | $ref: '#/definitions/ApiResponse' | ||
56 | securityDefinitions: | ||
57 | OAuth2: | ||
58 | type: oauth2 | ||
59 | flow: application | ||
60 | description: 'This API uses OAuth 2 with the application(clientCredentials) grant | ||
61 | flow. | ||
62 | |||
63 | client_id=sMlciTkppsMzARwHpCVarm5q7DP2Vucj3ny8JFhw | ||
64 | |||
65 | client_secret=WNoOilDx140ZLcenDKfsnikv7S2LIFs60DciYoqnrZaYLqYsKpcmt7mJIL69o9AEf84uQvRnS3K2UioxfjNyImjR4UOyXbDcF6qYgTLC4KDVByKFdVhKfrn2Lc4q4BNW | ||
66 | |||
67 | scopes=write | ||
68 | |||
69 | ' | ||
70 | tokenUrl: https://li19dkocruat01vm.bmwgroup.net/api/oauth/token/ | ||
71 | scopes: | ||
72 | write: Grants write access | ||
73 | responses: | ||
74 | ErrorResponse: | ||
75 | description: 调用异常, 具体情况请参考`HTTP`状态码和`code`字段 | ||
76 | schema: | ||
77 | $ref: '#/definitions/ApiResponse' | ||
78 | NoContent: | ||
79 | description: 后台接收请求,但是没有响应内容 | ||
80 | schema: | ||
81 | $ref: '#/definitions/ApiResponse' | ||
82 | definitions: | ||
83 | individualCusInfo: | ||
84 | type: object | ||
85 | required: | ||
86 | - applicantType | ||
87 | - idType | ||
88 | - customerChineseName | ||
89 | - idNum | ||
90 | - idExpiryDate | ||
91 | - dateOfBirth | ||
92 | - companyName | ||
93 | - registeredCapital | ||
94 | - selfEmployedSubType | ||
95 | properties: | ||
96 | applicantType: | ||
97 | description: applicantType | ||
98 | type: string | ||
99 | example: COAPP | ||
100 | enum: | ||
101 | - COAPP | ||
102 | - CUSTR | ||
103 | - GAUTR1 | ||
104 | - GAUTR2 | ||
105 | idType: | ||
106 | description: idType | ||
107 | type: string | ||
108 | example: ITARI | ||
109 | enum: | ||
110 | - ITARI | ||
111 | - ITHKM | ||
112 | - ITPRC | ||
113 | - ITPSP | ||
114 | - ITRES | ||
115 | - ITTID | ||
116 | - ITUSC | ||
117 | - ITCCU | ||
118 | secondIdType: | ||
119 | description: secondIdType | ||
120 | type: string | ||
121 | example: ITARI | ||
122 | enum: | ||
123 | - ITARI | ||
124 | - ITHKM | ||
125 | - ITPRC | ||
126 | - ITPSP | ||
127 | - ITRES | ||
128 | - ITTID | ||
129 | customerChineseName: | ||
130 | description: customerChineseName | ||
131 | type: string | ||
132 | example: 李四 | ||
133 | idNum: | ||
134 | description: idNum | ||
135 | type: string | ||
136 | example: 111111199404251111 | ||
137 | secondIdNum: | ||
138 | description: secondIdNum | ||
139 | type: string | ||
140 | example: 111111199404251111 | ||
141 | idExpiryDate: | ||
142 | description: idExpiryDate | ||
143 | type: string | ||
144 | format: date | ||
145 | example: '2027-04-30' | ||
146 | dateOfBirth: | ||
147 | description: dateOfBirth | ||
148 | type: string | ||
149 | format: date | ||
150 | example: '2027-04-30' | ||
151 | companyName: | ||
152 | description: companyName | ||
153 | type: string | ||
154 | example: 北京思图场景数据科技服务有限公司 | ||
155 | registeredCapital: | ||
156 | description: registeredCapital | ||
157 | type: number | ||
158 | format: float | ||
159 | example: 1234.56 | ||
160 | selfEmployedSubType: | ||
161 | description: selfEmployedSubType | ||
162 | type: string | ||
163 | example: CSIBM | ||
164 | enum: | ||
165 | - CSIBM | ||
166 | - CSOTH | ||
167 | - CSSME | ||
168 | SEindividualCusInfo: | ||
169 | type: object | ||
170 | required: | ||
171 | - customerType | ||
172 | - applicantType | ||
173 | - customerName | ||
174 | - idType | ||
175 | - idNum | ||
176 | - dateOfBirth | ||
177 | - idExpiryDate | ||
178 | - hukouProvince | ||
179 | - hukouCity | ||
180 | properties: | ||
181 | customerType: | ||
182 | description: customerType | ||
183 | type: string | ||
184 | example: TCCOR | ||
185 | enum: | ||
186 | - TCCOR | ||
187 | - TCDAS | ||
188 | - TCFRE | ||
189 | - TCIAS | ||
190 | - TCIND | ||
191 | - TCSEP | ||
192 | - TCURE | ||
193 | applicantType: | ||
194 | description: applicantType | ||
195 | type: string | ||
196 | example: COAPP | ||
197 | enum: | ||
198 | - COAPP | ||
199 | - CUSTR | ||
200 | - GAUTR1 | ||
201 | - GAUTR2 | ||
202 | customerName: | ||
203 | description: customerName | ||
204 | type: string | ||
205 | example: 李四 | ||
206 | idType: | ||
207 | description: idType | ||
208 | type: string | ||
209 | example: ITARI | ||
210 | enum: | ||
211 | - ITARI | ||
212 | - ITHKM | ||
213 | - ITPRC | ||
214 | - ITPSP | ||
215 | - ITRES | ||
216 | - ITTID | ||
217 | - ITUSC | ||
218 | - ITCCU | ||
219 | idNum: | ||
220 | description: idNum | ||
221 | type: string | ||
222 | example: 111111199404251111 | ||
223 | secondIdType: | ||
224 | description: secondIdType | ||
225 | type: string | ||
226 | example: ITARI | ||
227 | enum: | ||
228 | - ITARI | ||
229 | - ITHKM | ||
230 | - ITPRC | ||
231 | - ITPSP | ||
232 | - ITRES | ||
233 | - ITTID | ||
234 | secondIdNum: | ||
235 | description: secondIdNum | ||
236 | type: string | ||
237 | example: 111111199404251111 | ||
238 | dateOfBirth: | ||
239 | description: dateOfBirth | ||
240 | type: string | ||
241 | format: date | ||
242 | example: '2027-04-30' | ||
243 | idExpiryDate: | ||
244 | description: idExpiryDate | ||
245 | type: string | ||
246 | format: date | ||
247 | example: '2027-04-30' | ||
248 | nationality: | ||
249 | description: nationality | ||
250 | type: string | ||
251 | example: 中国 | ||
252 | countryregion: | ||
253 | description: countryregion | ||
254 | type: string | ||
255 | example: 中国 | ||
256 | hukouProvince: | ||
257 | description: hukouProvince | ||
258 | type: string | ||
259 | example: 山东省 | ||
260 | hukouCity: | ||
261 | description: hukouCity | ||
262 | type: string | ||
263 | example: 日照市 | ||
264 | residentialProvince: | ||
265 | description: residentialProvince | ||
266 | type: string | ||
267 | example: 江苏省 | ||
268 | residentialCity: | ||
269 | description: residentialCity | ||
270 | type: string | ||
271 | example: 连云港市 | ||
272 | propertyDocumentPolicy: | ||
273 | description: propertyDocumentPolicy | ||
274 | type: string | ||
275 | example: DOAOB | ||
276 | enum: | ||
277 | - DOAOB | ||
278 | - DOHDP | ||
279 | - DOAMP | ||
280 | - DOHED | ||
281 | - DOAGQ | ||
282 | - DOSME | ||
283 | - DOLHK | ||
284 | - DORET | ||
285 | - DOPCQ | ||
286 | - DOSNF | ||
287 | - DOYES | ||
288 | - DOGRC | ||
289 | - DOLLR | ||
290 | - DOVDL | ||
291 | companyName: | ||
292 | description: companyName | ||
293 | type: string | ||
294 | example: 北京思图场景数据科技服务有限公司 | ||
295 | registeredCapital: | ||
296 | description: registeredCapital | ||
297 | type: number | ||
298 | format: float | ||
299 | example: 1234.56 | ||
300 | selfEmployedSubType: | ||
301 | description: selfEmployedSubType | ||
302 | type: string | ||
303 | example: CSIBM | ||
304 | enum: | ||
305 | - CSIBM | ||
306 | - CSOTH | ||
307 | - CSSME | ||
308 | associatedServiceInfo: | ||
309 | type: object | ||
310 | required: | ||
311 | - service | ||
312 | - amount | ||
313 | - financedAmount | ||
314 | properties: | ||
315 | service: | ||
316 | description: service | ||
317 | type: string | ||
318 | example: test_service | ||
319 | amount: | ||
320 | description: amount | ||
321 | type: number | ||
322 | format: float | ||
323 | example: 1234.56 | ||
324 | financedAmount: | ||
325 | description: financedAmount | ||
326 | type: number | ||
327 | format: float | ||
328 | example: 1234.56 | ||
329 | monthlyPaymentInfo: | ||
330 | type: object | ||
331 | required: | ||
332 | - term | ||
333 | - amount | ||
334 | properties: | ||
335 | term: | ||
336 | description: term | ||
337 | type: number | ||
338 | example: 12 | ||
339 | amount: | ||
340 | description: amount | ||
341 | type: number | ||
342 | format: float | ||
343 | example: 1234.56 | ||
344 | SEComparison: | ||
345 | type: object | ||
346 | required: | ||
347 | - content | ||
348 | properties: | ||
349 | content: | ||
350 | description: SE比对内容信息 | ||
351 | type: object | ||
352 | required: | ||
353 | - uniqSeq | ||
354 | - applicationId | ||
355 | - applicationVersion | ||
356 | - applicationEntity | ||
357 | - customerType | ||
358 | - firstSubmmisonDate | ||
359 | - individualCusInfo | ||
360 | - vehicleInfo | ||
361 | - insuranceInfo | ||
362 | - bankInfo | ||
363 | - quotationtInfo | ||
364 | properties: | ||
365 | uniqSeq: | ||
366 | description: uniqSeq | ||
367 | type: string | ||
368 | example: 201809301905121000 | ||
369 | applicationId: | ||
370 | description: applicationId | ||
371 | type: string | ||
372 | example: CH-B100000123 | ||
373 | applicationVersion: | ||
374 | description: applicationVersion | ||
375 | type: integer | ||
376 | example: 0 | ||
377 | applicationEntity: | ||
378 | description: applicationEntity | ||
379 | type: string | ||
380 | example: HIL | ||
381 | enum: | ||
382 | - AFC | ||
383 | - HIL | ||
384 | customerType: | ||
385 | description: customerType | ||
386 | type: string | ||
387 | example: TCCOR | ||
388 | enum: | ||
389 | - TCCOR | ||
390 | - TCDAS | ||
391 | - TCFRE | ||
392 | - TCIAS | ||
393 | - TCIND | ||
394 | - TCSEP | ||
395 | - TCURE | ||
396 | firstSubmmisonDate: | ||
397 | description: firstSubmmisonDate | ||
398 | type: string | ||
399 | format: date | ||
400 | example: '2027-04-30' | ||
401 | individualCusInfo: | ||
402 | description: individualCusInfo | ||
403 | type: array | ||
404 | items: | ||
405 | $ref: '#/definitions/SEindividualCusInfo' | ||
406 | corporateCusInfo: | ||
407 | description: corporateCusInfo | ||
408 | type: object | ||
409 | required: | ||
410 | - customerType | ||
411 | - companyName | ||
412 | - firstIdType | ||
413 | - firstIdNo | ||
414 | - businessLicenseNo | ||
415 | - organizationCreditCode | ||
416 | - taxRegistrationCertificateNo | ||
417 | - establishmentDate | ||
418 | - incorporationDate | ||
419 | - businessLicenseDueDate | ||
420 | - legalRepName | ||
421 | - organizationType | ||
422 | properties: | ||
423 | customerType: | ||
424 | description: customerType | ||
425 | type: string | ||
426 | example: TCCOR | ||
427 | enum: | ||
428 | - TCCOR | ||
429 | - TCDAS | ||
430 | - TCFRE | ||
431 | - TCIAS | ||
432 | - TCIND | ||
433 | - TCSEP | ||
434 | - TCURE | ||
435 | companyName: | ||
436 | description: companyName | ||
437 | type: string | ||
438 | example: 北京思图场景数据科技服务有限公司 | ||
439 | firstIdType: | ||
440 | description: firstIdType | ||
441 | type: string | ||
442 | example: ITPRC | ||
443 | enum: | ||
444 | - ITARI | ||
445 | - ITHKM | ||
446 | - ITPRC | ||
447 | - ITPSP | ||
448 | - ITRES | ||
449 | - ITTID | ||
450 | - ITUSC | ||
451 | - ITCCU | ||
452 | firstIdNo: | ||
453 | description: firstIdNo | ||
454 | type: string | ||
455 | example: MA007438143XJ1P | ||
456 | businessLicenseNo: | ||
457 | description: businessLicenseNo | ||
458 | type: string | ||
459 | example: MA007438143XJ1P | ||
460 | organizationCreditCode: | ||
461 | description: organizationCreditCode | ||
462 | type: string | ||
463 | example: MA007438143XJ1P | ||
464 | taxRegistrationCertificateNo: | ||
465 | description: taxRegistrationCertificateNo | ||
466 | type: string | ||
467 | example: MA007438143XJ1P | ||
468 | establishmentDate: | ||
469 | description: establishmentDate | ||
470 | type: string | ||
471 | format: date | ||
472 | example: '2027-04-30' | ||
473 | incorporationDate: | ||
474 | description: incorporationDate | ||
475 | type: string | ||
476 | format: date | ||
477 | example: '2027-04-30' | ||
478 | businessLicenseDueDate: | ||
479 | description: businessLicenseDueDate | ||
480 | type: string | ||
481 | format: date | ||
482 | example: '2027-04-30' | ||
483 | legalRepName: | ||
484 | description: legalRepName | ||
485 | type: string | ||
486 | example: 王五 | ||
487 | organizationType: | ||
488 | description: organizationType | ||
489 | type: string | ||
490 | example: OTINS | ||
491 | enum: | ||
492 | - OTINS | ||
493 | - OTUNI | ||
494 | - OTOTH | ||
495 | - OTIND | ||
496 | - OTCOR | ||
497 | fleetCustomer: | ||
498 | description: fleetCustomer | ||
499 | type: boolean | ||
500 | example: false | ||
501 | beneficialOwnerName: | ||
502 | description: beneficialOwnerName | ||
503 | type: string | ||
504 | example: 王五 | ||
505 | beneficialOwnerIdType: | ||
506 | description: beneficialOwnerIdType | ||
507 | type: string | ||
508 | example: ITPRC | ||
509 | enum: | ||
510 | - ITARI | ||
511 | - ITHKM | ||
512 | - ITPRC | ||
513 | - ITPSP | ||
514 | - ITRES | ||
515 | - ITTID | ||
516 | - ITUSC | ||
517 | - ITCCU | ||
518 | beneficialOwnerIdNo: | ||
519 | description: beneficialOwnerIdNo | ||
520 | type: string | ||
521 | example: 324124534534 | ||
522 | beneficialOwnerIdExpiryDate: | ||
523 | description: beneficialOwnerIdExpiryDate | ||
524 | type: string | ||
525 | format: date | ||
526 | example: '2027-04-30' | ||
527 | vehicleInfo: | ||
528 | description: vehicleInfo | ||
529 | type: object | ||
530 | required: | ||
531 | - vehicleStatus | ||
532 | - vehicleTransactionAmount | ||
533 | - vinNo | ||
534 | - dealer | ||
535 | properties: | ||
536 | vehicleStatus: | ||
537 | description: vehicleStatus | ||
538 | type: string | ||
539 | example: Usedcar | ||
540 | vehicleTransactionAmount: | ||
541 | description: vehicleTransactionAmount | ||
542 | type: number | ||
543 | format: float | ||
544 | example: 1234.56 | ||
545 | vinNo: | ||
546 | description: vinNo | ||
547 | type: string | ||
548 | example: DFS2341JK23 | ||
549 | dealer: | ||
550 | description: dealer | ||
551 | type: string | ||
552 | example: TestDealer | ||
553 | option: | ||
554 | description: option | ||
555 | type: string | ||
556 | example: TestOption | ||
557 | msrp: | ||
558 | description: msrp | ||
559 | type: number | ||
560 | format: float | ||
561 | example: 1234.56 | ||
562 | totalAmount: | ||
563 | description: totalAmount | ||
564 | type: number | ||
565 | format: float | ||
566 | example: 1234.56 | ||
567 | insuranceInfo: | ||
568 | description: insuranceInfo | ||
569 | type: object | ||
570 | required: | ||
571 | - insuredAmount | ||
572 | - insuranceType | ||
573 | - startDate | ||
574 | - endDate | ||
575 | properties: | ||
576 | insuredAmount: | ||
577 | description: insuredAmount | ||
578 | type: number | ||
579 | format: float | ||
580 | example: 1234.56 | ||
581 | insuranceType: | ||
582 | description: insuranceType | ||
583 | type: string | ||
584 | example: ITCOM | ||
585 | enum: | ||
586 | - ITCOM | ||
587 | - ITCOS | ||
588 | startDate: | ||
589 | description: startDate | ||
590 | type: string | ||
591 | format: date | ||
592 | example: '2027-04-30' | ||
593 | endDate: | ||
594 | description: endDate | ||
595 | type: string | ||
596 | format: date | ||
597 | example: '2027-04-30' | ||
598 | bankInfo: | ||
599 | description: bankInfo | ||
600 | type: object | ||
601 | required: | ||
602 | - bankName | ||
603 | - branchName | ||
604 | - applicantType | ||
605 | - accountHolderName | ||
606 | - accountNo | ||
607 | properties: | ||
608 | bankName: | ||
609 | description: bankName | ||
610 | type: string | ||
611 | example: 农业银行 | ||
612 | branchName: | ||
613 | description: branchName | ||
614 | type: string | ||
615 | example: 回龙观支行 | ||
616 | applicantType: | ||
617 | description: applicantType | ||
618 | type: string | ||
619 | example: COAPP | ||
620 | enum: | ||
621 | - COAPP | ||
622 | - CUSTR | ||
623 | - GAUTR1 | ||
624 | - GAUTR2 | ||
625 | accountHolderName: | ||
626 | description: accountHolderName | ||
627 | type: string | ||
628 | example: 张三 | ||
629 | accountNo: | ||
630 | description: accountNo | ||
631 | type: string | ||
632 | example: 634523426756756 | ||
633 | bankVerificationStatus: | ||
634 | description: bankVerificationStatus | ||
635 | type: string | ||
636 | example: PASS | ||
637 | enum: | ||
638 | - PASS | ||
639 | - FAIL | ||
640 | - N/A | ||
641 | isAllDocUploaded: | ||
642 | description: isAllDocUploaded | ||
643 | type: boolean | ||
644 | example: false | ||
645 | quotationtInfo: | ||
646 | description: quotationtInfo | ||
647 | type: object | ||
648 | required: | ||
649 | - totalLoanAmount | ||
650 | - loanTerm | ||
651 | - vehiclePrincipal | ||
652 | - associatedServicePrincipal | ||
653 | - monthlyPaymentInfo | ||
654 | properties: | ||
655 | totalLoanAmount: | ||
656 | description: totalLoanAmount | ||
657 | type: number | ||
658 | format: float | ||
659 | example: 1234.56 | ||
660 | loanTerm: | ||
661 | description: loanTerm | ||
662 | type: number | ||
663 | example: 12 | ||
664 | vehiclePrincipal: | ||
665 | description: vehiclePrincipal | ||
666 | type: number | ||
667 | format: float | ||
668 | example: 1234.56 | ||
669 | associatedServicePrincipal: | ||
670 | description: associatedServicePrincipal | ||
671 | type: number | ||
672 | format: float | ||
673 | example: 1234.56 | ||
674 | associatedServiceInfo: | ||
675 | description: associatedServiceInfo | ||
676 | type: array | ||
677 | items: | ||
678 | $ref: '#/definitions/associatedServiceInfo' | ||
679 | monthlyPaymentInfo: | ||
680 | description: monthlyPaymentInfo | ||
681 | type: array | ||
682 | items: | ||
683 | $ref: '#/definitions/monthlyPaymentInfo' | ||
684 | Comparison: | ||
685 | type: object | ||
686 | required: | ||
687 | - content | ||
688 | properties: | ||
689 | content: | ||
690 | description: 比对内容信息 | ||
691 | type: object | ||
692 | required: | ||
693 | - uniqSeq | ||
694 | - applicationId | ||
695 | - applicationEntity | ||
696 | - customerType | ||
697 | - applicationVersion | ||
698 | - vehicleStatus | ||
699 | - comments | ||
700 | - individualCusInfo | ||
701 | properties: | ||
702 | uniqSeq: | ||
703 | description: uniqSeq | ||
704 | type: string | ||
705 | example: 201809301905121000 | ||
706 | applicationId: | ||
707 | description: applicationId | ||
708 | type: string | ||
709 | example: CH-B100000123 | ||
710 | applicationEntity: | ||
711 | description: applicationEntity | ||
712 | type: string | ||
713 | example: HIL | ||
714 | enum: | ||
715 | - AFC | ||
716 | - HIL | ||
717 | customerType: | ||
718 | description: customerType | ||
719 | type: string | ||
720 | example: TCCOR | ||
721 | enum: | ||
722 | - TCCOR | ||
723 | - TCDAS | ||
724 | - TCFRE | ||
725 | - TCIAS | ||
726 | - TCIND | ||
727 | - TCSEP | ||
728 | - TCURE | ||
729 | applicationVersion: | ||
730 | description: applicationVersion | ||
731 | type: integer | ||
732 | example: 0 | ||
733 | vehicleStatus: | ||
734 | description: vehicleStatus | ||
735 | type: string | ||
736 | example: PCUSD | ||
737 | enum: | ||
738 | - PCUSD | ||
739 | - PCNEW | ||
740 | comments: | ||
741 | description: comments | ||
742 | type: array | ||
743 | items: | ||
744 | type: string | ||
745 | individualCusInfo: | ||
746 | description: individualCusInfo | ||
747 | type: array | ||
748 | items: | ||
749 | $ref: '#/definitions/individualCusInfo' | ||
750 | usedCarInfo: | ||
751 | description: usedCarInfo | ||
752 | type: object | ||
753 | required: | ||
754 | - vinNo | ||
755 | - manufactureDate | ||
756 | - firstRegistrationDate | ||
757 | properties: | ||
758 | vinNo: | ||
759 | description: vinNo | ||
760 | type: string | ||
761 | example: LBVSFJSDLFJLSDJF | ||
762 | manufactureDate: | ||
763 | description: manufactureDate | ||
764 | type: string | ||
765 | format: date | ||
766 | example: '2027-04-30' | ||
767 | firstRegistrationDate: | ||
768 | description: firstRegistrationDate | ||
769 | type: string | ||
770 | format: date | ||
771 | example: '2027-04-30' | ||
772 | corporateCusInfo: | ||
773 | description: corporateCusInfo | ||
774 | type: object | ||
775 | required: | ||
776 | - customerChineseName | ||
777 | - legalRepName | ||
778 | - idNum | ||
779 | - businessLicenseNo | ||
780 | - taxRegistrationCode | ||
781 | - incorporationDate | ||
782 | - businessLicenseDueDate | ||
783 | - capitalRegAmount | ||
784 | properties: | ||
785 | customerChineseName: | ||
786 | description: customerChineseName | ||
787 | type: string | ||
788 | example: 北京思图场景数据科技服务有限公司 | ||
789 | legalRepName: | ||
790 | description: legalRepName | ||
791 | type: string | ||
792 | example: 李六 | ||
793 | idNum: | ||
794 | description: idNum | ||
795 | type: string | ||
796 | example: MA007438143XJ1P | ||
797 | businessLicenseNo: | ||
798 | description: businessLicenseNo | ||
799 | type: string | ||
800 | example: MA007438143XJ1P | ||
801 | taxRegistrationCode: | ||
802 | description: taxRegistrationCode | ||
803 | type: string | ||
804 | example: MA007438143XJ1P | ||
805 | incorporationDate: | ||
806 | description: incorporationDate | ||
807 | type: string | ||
808 | format: date | ||
809 | example: '2027-04-30' | ||
810 | businessLicenseDueDate: | ||
811 | description: businessLicenseDueDate | ||
812 | type: string | ||
813 | format: date | ||
814 | example: '2027-04-30' | ||
815 | capitalRegAmount: | ||
816 | description: capitalRegAmount | ||
817 | type: number | ||
818 | format: float | ||
819 | example: 1234.56 | ||
820 | ApiResponse: | ||
821 | description: 响应对象,code字段用于表示响应的状态; data字段用于存放响应内容 | ||
822 | type: object | ||
823 | required: | ||
824 | - code | ||
825 | - msg | ||
826 | properties: | ||
827 | code: | ||
828 | type: integer | ||
829 | format: uint8 | ||
830 | description: '0: success 1: need login 2: invalid params 3: internal error | ||
831 | 4: object not exist 5: async wait 6: no permission 7: illegal operation' | ||
832 | example: 0 | ||
833 | enum: | ||
834 | - 0 | ||
835 | - 1 | ||
836 | - 2 | ||
837 | - 3 | ||
838 | - 4 | ||
839 | - 5 | ||
840 | - 6 | ||
841 | - 7 | ||
842 | msg: | ||
843 | type: string | ||
844 | example: success | ||
845 | data: | ||
846 | type: object |
... | @@ -52,7 +52,7 @@ se_vehicle_args = { | ... | @@ -52,7 +52,7 @@ se_vehicle_args = { |
52 | 'vehicleTransactionAmount': CustomDecimal(required=True), | 52 | 'vehicleTransactionAmount': CustomDecimal(required=True), |
53 | 'vinNo': fields.Str(required=True, validate=validate.Length(max=256)), | 53 | 'vinNo': fields.Str(required=True, validate=validate.Length(max=256)), |
54 | 'dealer': fields.Str(required=True, validate=validate.Length(max=256)), | 54 | 'dealer': fields.Str(required=True, validate=validate.Length(max=256)), |
55 | 'option': fields.Str(required=False, validate=validate.Length(max=256)), | 55 | 'option': CustomDecimal(required=False), |
56 | 'msrp': CustomDecimal(required=False), | 56 | 'msrp': CustomDecimal(required=False), |
57 | 'totalAmount': CustomDecimal(required=False), | 57 | 'totalAmount': CustomDecimal(required=False), |
58 | } | 58 | } |
... | @@ -89,7 +89,7 @@ se_quotationt_args = { | ... | @@ -89,7 +89,7 @@ se_quotationt_args = { |
89 | 'totalLoanAmount': CustomDecimal(required=True), | 89 | 'totalLoanAmount': CustomDecimal(required=True), |
90 | 'loanTerm': fields.Int(required=True), | 90 | 'loanTerm': fields.Int(required=True), |
91 | 'vehiclePrincipal': CustomDecimal(required=True), | 91 | 'vehiclePrincipal': CustomDecimal(required=True), |
92 | 'associatedServicePrincipal': CustomDecimal(required=True), | 92 | 'associatedServicePrincipal': CustomDecimal(required=False), |
93 | 'associatedServiceInfo': fields.List(fields.Nested(se_associated_args), required=False), | 93 | 'associatedServiceInfo': fields.List(fields.Nested(se_associated_args), required=False), |
94 | 'monthlyPaymentInfo': fields.List(fields.Nested(se_payment_args), required=True, validate=validate.Length(min=1)), | 94 | 'monthlyPaymentInfo': fields.List(fields.Nested(se_payment_args), required=True, validate=validate.Length(min=1)), |
95 | } | 95 | } |
... | @@ -158,7 +158,6 @@ se_individual_args = { | ... | @@ -158,7 +158,6 @@ se_individual_args = { |
158 | 'hukouCity': fields.Str(required=True, validate=validate.Length(max=64)), | 158 | 'hukouCity': fields.Str(required=True, validate=validate.Length(max=64)), |
159 | 'residentialProvince': fields.Str(required=False, validate=validate.Length(max=64)), | 159 | 'residentialProvince': fields.Str(required=False, validate=validate.Length(max=64)), |
160 | 'residentialCity': fields.Str(required=False, validate=validate.Length(max=64)), | 160 | 'residentialCity': fields.Str(required=False, validate=validate.Length(max=64)), |
161 | 'propertyDocumentPolicy': fields.Str(required=False, validate=validate.Length(max=16)), | ||
162 | 'companyName': fields.Str(required=False, validate=validate.Length(max=256)), | 161 | 'companyName': fields.Str(required=False, validate=validate.Length(max=256)), |
163 | 'registeredCapital': CustomDecimal(required=False), | 162 | 'registeredCapital': CustomDecimal(required=False), |
164 | 'selfEmployedSubType': fields.Str(required=False, validate=validate.Length(max=16)), | 163 | 'selfEmployedSubType': fields.Str(required=False, validate=validate.Length(max=16)), |
... | @@ -192,6 +191,7 @@ se_compare_content = { | ... | @@ -192,6 +191,7 @@ se_compare_content = { |
192 | 'applicationEntity': fields.Str(required=True, validate=validate.OneOf(consts.ENTITY)), | 191 | 'applicationEntity': fields.Str(required=True, validate=validate.OneOf(consts.ENTITY)), |
193 | 'customerType': fields.Str(required=True, validate=validate.OneOf(consts.CUSTOMER_TYPE)), | 192 | 'customerType': fields.Str(required=True, validate=validate.OneOf(consts.CUSTOMER_TYPE)), |
194 | "firstSubmmisonDate": CustomDate(required=True), | 193 | "firstSubmmisonDate": CustomDate(required=True), |
194 | 'propertyDocumentPolicy': fields.Str(required=False, validate=validate.Length(max=16)), | ||
195 | 195 | ||
196 | 'individualCusInfo': fields.List(fields.Nested(se_individual_args), | 196 | 'individualCusInfo': fields.List(fields.Nested(se_individual_args), |
197 | required=True, validate=validate.Length(min=1, max=4)), | 197 | required=True, validate=validate.Length(min=1, max=4)), | ... | ... |
... | @@ -173,11 +173,6 @@ SEindividualCusInfo: | ... | @@ -173,11 +173,6 @@ SEindividualCusInfo: |
173 | description: residentialCity | 173 | description: residentialCity |
174 | type: string | 174 | type: string |
175 | example: 连云港市 | 175 | example: 连云港市 |
176 | propertyDocumentPolicy: | ||
177 | description: propertyDocumentPolicy | ||
178 | type: string | ||
179 | example: DOAOB | ||
180 | enum: [DOAOB, DOHDP, DOAMP, DOHED, DOAGQ, DOSME, DOLHK, DORET, DOPCQ, DOSNF, DOYES, DOGRC, DOLLR, DOVDL] | ||
181 | companyName: | 176 | companyName: |
182 | description: companyName | 177 | description: companyName |
183 | type: string | 178 | type: string |
... | @@ -262,6 +257,11 @@ SEComparison: | ... | @@ -262,6 +257,11 @@ SEComparison: |
262 | type: string | 257 | type: string |
263 | format: date | 258 | format: date |
264 | example: "2027-04-30" | 259 | example: "2027-04-30" |
260 | propertyDocumentPolicy: | ||
261 | description: propertyDocumentPolicy | ||
262 | type: string | ||
263 | example: DOAOB | ||
264 | enum: [DOAOB, DOHDP, DOAMP, DOHED, DOAGQ, DOSME, DOLHK, DORET, DOPCQ, DOSNF, DOYES, DOGRC, DOLLR, DOVDL] | ||
265 | 265 | ||
266 | individualCusInfo: | 266 | individualCusInfo: |
267 | description: individualCusInfo | 267 | description: individualCusInfo |
... | @@ -378,8 +378,9 @@ SEComparison: | ... | @@ -378,8 +378,9 @@ SEComparison: |
378 | example: TestDealer | 378 | example: TestDealer |
379 | option: | 379 | option: |
380 | description: option | 380 | description: option |
381 | type: string | 381 | type: number |
382 | example: TestOption | 382 | format: float |
383 | example: 1234.56 | ||
383 | msrp: | 384 | msrp: |
384 | description: msrp | 385 | description: msrp |
385 | type: number | 386 | type: number |
... | @@ -456,7 +457,7 @@ SEComparison: | ... | @@ -456,7 +457,7 @@ SEComparison: |
456 | quotationtInfo: | 457 | quotationtInfo: |
457 | description: quotationtInfo | 458 | description: quotationtInfo |
458 | type: object | 459 | type: object |
459 | required: [totalLoanAmount, loanTerm, vehiclePrincipal, associatedServicePrincipal, monthlyPaymentInfo] | 460 | required: [totalLoanAmount, loanTerm, vehiclePrincipal, monthlyPaymentInfo] |
460 | properties: | 461 | properties: |
461 | totalLoanAmount: | 462 | totalLoanAmount: |
462 | description: totalLoanAmount | 463 | description: totalLoanAmount | ... | ... |
-
Please register or sign in to post a comment