@cherryin/passport-api-client 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +13 -2
- package/README.md +18 -5
- package/api.ts +267 -40
- package/dist/api.d.ts +185 -34
- package/dist/api.js +154 -22
- package/dist/esm/api.d.ts +185 -34
- package/dist/esm/api.js +154 -22
- package/docs/AuthEnterpriseMaterials.md +5 -1
- package/docs/EnterpriseOCRBusinessLicense.md +48 -0
- package/docs/EnterpriseOCRBusinessLicenseWarning.md +22 -0
- package/docs/EnterpriseOCRPersonIDCard.md +26 -0
- package/docs/EnterpriseOCRPersonIDCardBack.md +22 -0
- package/docs/EnterpriseOCRPersonIDCardFace.md +30 -0
- package/docs/EnterpriseOCRPersonIDCardWarning.md +28 -0
- package/docs/PassportAuthEnterpriseMaterialBizLicenseRequest.md +22 -0
- package/docs/PassportAuthEnterpriseMaterialBizLicenseResponse.md +26 -0
- package/docs/PassportAuthEnterpriseMaterialIDCardRequest.md +24 -0
- package/docs/PassportAuthEnterpriseMaterialIDCardResponse.md +26 -0
- package/docs/PassportAuthEnterpriseMaterialVerifyRequest.md +20 -0
- package/docs/{PassportAuthEnterpriseMaterialUploadResponse.md → PassportAuthEnterpriseMaterialVerifyResponse.md} +3 -3
- package/docs/PassportAuthEnterpriseMaterialVerifyStateRequest.md +20 -0
- package/docs/PassportAuthEnterpriseServiceApi.md +118 -11
- package/package.json +1 -1
- package/docs/PassportAuthEnterpriseMaterialUploadRequest.md +0 -26
package/.openapi-generator/FILES
CHANGED
|
@@ -23,6 +23,12 @@ docs/AuthPassport.md
|
|
|
23
23
|
docs/AuthUser.md
|
|
24
24
|
docs/AuthUserMethod.md
|
|
25
25
|
docs/AuthUserSession.md
|
|
26
|
+
docs/EnterpriseOCRBusinessLicense.md
|
|
27
|
+
docs/EnterpriseOCRBusinessLicenseWarning.md
|
|
28
|
+
docs/EnterpriseOCRPersonIDCard.md
|
|
29
|
+
docs/EnterpriseOCRPersonIDCardBack.md
|
|
30
|
+
docs/EnterpriseOCRPersonIDCardFace.md
|
|
31
|
+
docs/EnterpriseOCRPersonIDCardWarning.md
|
|
26
32
|
docs/GeeTestAuthCaptcha.md
|
|
27
33
|
docs/PassportAdminPasswordForgetRequest.md
|
|
28
34
|
docs/PassportAdminPasswordForgetResponse.md
|
|
@@ -82,8 +88,13 @@ docs/PassportAuthEnterpriseDeleteResponse.md
|
|
|
82
88
|
docs/PassportAuthEnterpriseGetSessionResponse.md
|
|
83
89
|
docs/PassportAuthEnterpriseInfoGetResponse.md
|
|
84
90
|
docs/PassportAuthEnterpriseListSessionsResponse.md
|
|
85
|
-
docs/
|
|
86
|
-
docs/
|
|
91
|
+
docs/PassportAuthEnterpriseMaterialBizLicenseRequest.md
|
|
92
|
+
docs/PassportAuthEnterpriseMaterialBizLicenseResponse.md
|
|
93
|
+
docs/PassportAuthEnterpriseMaterialIDCardRequest.md
|
|
94
|
+
docs/PassportAuthEnterpriseMaterialIDCardResponse.md
|
|
95
|
+
docs/PassportAuthEnterpriseMaterialVerifyRequest.md
|
|
96
|
+
docs/PassportAuthEnterpriseMaterialVerifyResponse.md
|
|
97
|
+
docs/PassportAuthEnterpriseMaterialVerifyStateRequest.md
|
|
87
98
|
docs/PassportAuthEnterpriseMaterialVerifyStateResponse.md
|
|
88
99
|
docs/PassportAuthEnterpriseRPCServiceApi.md
|
|
89
100
|
docs/PassportAuthEnterpriseRefreshTokenRequest.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cherryin/passport-api-client@0.1.
|
|
1
|
+
## @cherryin/passport-api-client@0.1.10
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cherryin/passport-api-client@0.1.
|
|
39
|
+
npm install @cherryin/passport-api-client@0.1.10 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -83,7 +83,9 @@ Class | Method | HTTP request | Description
|
|
|
83
83
|
*PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseGetSession**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisegetsession) | **GET** /passport/enterprise/authed/v1/session/get | 获取当前会话信息
|
|
84
84
|
*PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseInfoGet**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriseinfoget) | **GET** /passport/enterprise/authed/v1/user/info | 获取用户信息
|
|
85
85
|
*PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseListSessions**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriselistsessions) | **GET** /passport/enterprise/authed/v1/sessions/list | 获取当前用户的所有会话列表
|
|
86
|
-
*PassportAuthEnterpriseServiceApi* | [**
|
|
86
|
+
*PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisematerialbizlicense) | **POST** /passport/enterprise/authed/v1/materials/upload/biz-license | 上传企业营业执照
|
|
87
|
+
*PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisematerialidcard) | **POST** /passport/enterprise/authed/v1/materials/upload/id-card | 上传法定代表人身份证
|
|
88
|
+
*PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisematerialverify) | **POST** /passport/enterprise/authed/v1/materials/verify | 提交企业认证材料审核
|
|
87
89
|
*PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisematerialverifystate) | **POST** /passport/enterprise/authed/v1/materials/verified-state | 获取企业认证材料审核状态
|
|
88
90
|
*PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseRefreshToken**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriserefreshtoken) | **POST** /passport/enterprise/authed/v1/session/refresh-token | 会话 token 刷新
|
|
89
91
|
*PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseResetPassword**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriseresetpassword) | **POST** /passport/enterprise/authed/v1/password/request-reset | 已登录用户重置密码
|
|
@@ -161,6 +163,12 @@ Class | Method | HTTP request | Description
|
|
|
161
163
|
- [AuthUser](docs/AuthUser.md)
|
|
162
164
|
- [AuthUserMethod](docs/AuthUserMethod.md)
|
|
163
165
|
- [AuthUserSession](docs/AuthUserSession.md)
|
|
166
|
+
- [EnterpriseOCRBusinessLicense](docs/EnterpriseOCRBusinessLicense.md)
|
|
167
|
+
- [EnterpriseOCRBusinessLicenseWarning](docs/EnterpriseOCRBusinessLicenseWarning.md)
|
|
168
|
+
- [EnterpriseOCRPersonIDCard](docs/EnterpriseOCRPersonIDCard.md)
|
|
169
|
+
- [EnterpriseOCRPersonIDCardBack](docs/EnterpriseOCRPersonIDCardBack.md)
|
|
170
|
+
- [EnterpriseOCRPersonIDCardFace](docs/EnterpriseOCRPersonIDCardFace.md)
|
|
171
|
+
- [EnterpriseOCRPersonIDCardWarning](docs/EnterpriseOCRPersonIDCardWarning.md)
|
|
164
172
|
- [GeeTestAuthCaptcha](docs/GeeTestAuthCaptcha.md)
|
|
165
173
|
- [PassportAdminPasswordForgetRequest](docs/PassportAdminPasswordForgetRequest.md)
|
|
166
174
|
- [PassportAdminPasswordForgetResponse](docs/PassportAdminPasswordForgetResponse.md)
|
|
@@ -218,8 +226,13 @@ Class | Method | HTTP request | Description
|
|
|
218
226
|
- [PassportAuthEnterpriseGetSessionResponse](docs/PassportAuthEnterpriseGetSessionResponse.md)
|
|
219
227
|
- [PassportAuthEnterpriseInfoGetResponse](docs/PassportAuthEnterpriseInfoGetResponse.md)
|
|
220
228
|
- [PassportAuthEnterpriseListSessionsResponse](docs/PassportAuthEnterpriseListSessionsResponse.md)
|
|
221
|
-
- [
|
|
222
|
-
- [
|
|
229
|
+
- [PassportAuthEnterpriseMaterialBizLicenseRequest](docs/PassportAuthEnterpriseMaterialBizLicenseRequest.md)
|
|
230
|
+
- [PassportAuthEnterpriseMaterialBizLicenseResponse](docs/PassportAuthEnterpriseMaterialBizLicenseResponse.md)
|
|
231
|
+
- [PassportAuthEnterpriseMaterialIDCardRequest](docs/PassportAuthEnterpriseMaterialIDCardRequest.md)
|
|
232
|
+
- [PassportAuthEnterpriseMaterialIDCardResponse](docs/PassportAuthEnterpriseMaterialIDCardResponse.md)
|
|
233
|
+
- [PassportAuthEnterpriseMaterialVerifyRequest](docs/PassportAuthEnterpriseMaterialVerifyRequest.md)
|
|
234
|
+
- [PassportAuthEnterpriseMaterialVerifyResponse](docs/PassportAuthEnterpriseMaterialVerifyResponse.md)
|
|
235
|
+
- [PassportAuthEnterpriseMaterialVerifyStateRequest](docs/PassportAuthEnterpriseMaterialVerifyStateRequest.md)
|
|
223
236
|
- [PassportAuthEnterpriseMaterialVerifyStateResponse](docs/PassportAuthEnterpriseMaterialVerifyStateResponse.md)
|
|
224
237
|
- [PassportAuthEnterpriseRefreshTokenRequest](docs/PassportAuthEnterpriseRefreshTokenRequest.md)
|
|
225
238
|
- [PassportAuthEnterpriseRefreshTokenResponse](docs/PassportAuthEnterpriseRefreshTokenResponse.md)
|
package/api.ts
CHANGED
|
@@ -102,10 +102,9 @@ export interface AuthEnterpriseMaterials {
|
|
|
102
102
|
* EnterpriseMaterials.LegalPersonIDNumber
|
|
103
103
|
*/
|
|
104
104
|
'legal_person_id_number'?: string;
|
|
105
|
-
/**
|
|
106
|
-
* EnterpriseMaterials.ReviewStatus
|
|
107
|
-
*/
|
|
108
105
|
'review_status'?: number;
|
|
106
|
+
'business_license'?: EnterpriseOCRBusinessLicense;
|
|
107
|
+
'id_card'?: EnterpriseOCRPersonIDCard;
|
|
109
108
|
}
|
|
110
109
|
export interface AuthEnterpriseSession {
|
|
111
110
|
'session_token'?: string;
|
|
@@ -183,6 +182,55 @@ export interface AuthUserSession {
|
|
|
183
182
|
'ip'?: string;
|
|
184
183
|
'user_agent'?: string;
|
|
185
184
|
}
|
|
185
|
+
export interface EnterpriseOCRBusinessLicense {
|
|
186
|
+
'credit_code'?: string;
|
|
187
|
+
'company_name'?: string;
|
|
188
|
+
'company_type'?: string;
|
|
189
|
+
'business_address'?: string;
|
|
190
|
+
'legal_person'?: string;
|
|
191
|
+
'business_scope'?: string;
|
|
192
|
+
'registered_capital'?: string;
|
|
193
|
+
'registration_date'?: string;
|
|
194
|
+
'valid_period'?: string;
|
|
195
|
+
'valid_from_date'?: string;
|
|
196
|
+
'valid_to_date'?: string;
|
|
197
|
+
'company_form'?: string;
|
|
198
|
+
'issue_date'?: string;
|
|
199
|
+
'title'?: string;
|
|
200
|
+
'warning'?: EnterpriseOCRBusinessLicenseWarning;
|
|
201
|
+
}
|
|
202
|
+
export interface EnterpriseOCRBusinessLicenseWarning {
|
|
203
|
+
'is_copy'?: number;
|
|
204
|
+
/**
|
|
205
|
+
* 字段置信度
|
|
206
|
+
*/
|
|
207
|
+
'value_probs'?: { [key: string]: number; };
|
|
208
|
+
}
|
|
209
|
+
export interface EnterpriseOCRPersonIDCard {
|
|
210
|
+
'face'?: EnterpriseOCRPersonIDCardFace;
|
|
211
|
+
'back'?: EnterpriseOCRPersonIDCardBack;
|
|
212
|
+
'face_warning'?: EnterpriseOCRPersonIDCardWarning;
|
|
213
|
+
'back_warning'?: EnterpriseOCRPersonIDCardWarning;
|
|
214
|
+
}
|
|
215
|
+
export interface EnterpriseOCRPersonIDCardBack {
|
|
216
|
+
'issue_authority'?: string;
|
|
217
|
+
'valid_period'?: string;
|
|
218
|
+
}
|
|
219
|
+
export interface EnterpriseOCRPersonIDCardFace {
|
|
220
|
+
'name'?: string;
|
|
221
|
+
'sex'?: string;
|
|
222
|
+
'ethnicity'?: string;
|
|
223
|
+
'birth_date'?: string;
|
|
224
|
+
'address'?: string;
|
|
225
|
+
'id_number'?: string;
|
|
226
|
+
}
|
|
227
|
+
export interface EnterpriseOCRPersonIDCardWarning {
|
|
228
|
+
'is_copy'?: number;
|
|
229
|
+
'is_reshoot'?: number;
|
|
230
|
+
'completeness_score'?: number;
|
|
231
|
+
'quality_score'?: number;
|
|
232
|
+
'tamper_score'?: number;
|
|
233
|
+
}
|
|
186
234
|
export interface GeeTestAuthCaptcha {
|
|
187
235
|
'captcha_id'?: string;
|
|
188
236
|
'lot_number'?: string;
|
|
@@ -483,15 +531,36 @@ export interface PassportAuthEnterpriseListSessionsResponse {
|
|
|
483
531
|
'message'?: string;
|
|
484
532
|
'sessions'?: Array<AuthUserSession>;
|
|
485
533
|
}
|
|
486
|
-
export interface
|
|
487
|
-
'
|
|
488
|
-
'
|
|
489
|
-
'legal_person_name'?: string;
|
|
490
|
-
'legal_person_id_number'?: string;
|
|
534
|
+
export interface PassportAuthEnterpriseMaterialBizLicenseRequest {
|
|
535
|
+
'image_base64'?: string;
|
|
536
|
+
'submission_id'?: string;
|
|
491
537
|
}
|
|
492
|
-
export interface
|
|
538
|
+
export interface PassportAuthEnterpriseMaterialBizLicenseResponse {
|
|
493
539
|
'code'?: string;
|
|
494
540
|
'message'?: string;
|
|
541
|
+
'submission_id'?: string;
|
|
542
|
+
'business_license'?: EnterpriseOCRBusinessLicense;
|
|
543
|
+
}
|
|
544
|
+
export interface PassportAuthEnterpriseMaterialIDCardRequest {
|
|
545
|
+
'image_base64_face'?: string;
|
|
546
|
+
'image_base64_back'?: string;
|
|
547
|
+
'submission_id'?: string;
|
|
548
|
+
}
|
|
549
|
+
export interface PassportAuthEnterpriseMaterialIDCardResponse {
|
|
550
|
+
'code'?: string;
|
|
551
|
+
'message'?: string;
|
|
552
|
+
'submission_id'?: string;
|
|
553
|
+
'id_card'?: EnterpriseOCRPersonIDCard;
|
|
554
|
+
}
|
|
555
|
+
export interface PassportAuthEnterpriseMaterialVerifyRequest {
|
|
556
|
+
'submission_id'?: string;
|
|
557
|
+
}
|
|
558
|
+
export interface PassportAuthEnterpriseMaterialVerifyResponse {
|
|
559
|
+
'code'?: string;
|
|
560
|
+
'message'?: string;
|
|
561
|
+
}
|
|
562
|
+
export interface PassportAuthEnterpriseMaterialVerifyStateRequest {
|
|
563
|
+
'submission_id'?: string;
|
|
495
564
|
}
|
|
496
565
|
export interface PassportAuthEnterpriseMaterialVerifyStateResponse {
|
|
497
566
|
'code'?: string;
|
|
@@ -3476,15 +3545,87 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
|
|
|
3476
3545
|
},
|
|
3477
3546
|
/**
|
|
3478
3547
|
*
|
|
3479
|
-
* @summary
|
|
3480
|
-
* @param {
|
|
3548
|
+
* @summary 上传企业营业执照
|
|
3549
|
+
* @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
|
|
3550
|
+
* @param {*} [options] Override http request option.
|
|
3551
|
+
* @throws {RequiredError}
|
|
3552
|
+
*/
|
|
3553
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense: async (body: PassportAuthEnterpriseMaterialBizLicenseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3554
|
+
// verify required parameter 'body' is not null or undefined
|
|
3555
|
+
assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense', 'body', body)
|
|
3556
|
+
const localVarPath = `/passport/enterprise/authed/v1/materials/upload/biz-license`;
|
|
3557
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3558
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3559
|
+
let baseOptions;
|
|
3560
|
+
if (configuration) {
|
|
3561
|
+
baseOptions = configuration.baseOptions;
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3564
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3565
|
+
const localVarHeaderParameter = {} as any;
|
|
3566
|
+
const localVarQueryParameter = {} as any;
|
|
3567
|
+
|
|
3568
|
+
|
|
3569
|
+
|
|
3570
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3571
|
+
|
|
3572
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3573
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3574
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3575
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
3576
|
+
|
|
3577
|
+
return {
|
|
3578
|
+
url: toPathString(localVarUrlObj),
|
|
3579
|
+
options: localVarRequestOptions,
|
|
3580
|
+
};
|
|
3581
|
+
},
|
|
3582
|
+
/**
|
|
3583
|
+
*
|
|
3584
|
+
* @summary 上传法定代表人身份证
|
|
3585
|
+
* @param {PassportAuthEnterpriseMaterialIDCardRequest} body
|
|
3481
3586
|
* @param {*} [options] Override http request option.
|
|
3482
3587
|
* @throws {RequiredError}
|
|
3483
3588
|
*/
|
|
3484
|
-
|
|
3589
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard: async (body: PassportAuthEnterpriseMaterialIDCardRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3485
3590
|
// verify required parameter 'body' is not null or undefined
|
|
3486
|
-
assertParamExists('
|
|
3487
|
-
const localVarPath = `/passport/enterprise/authed/v1/materials/upload`;
|
|
3591
|
+
assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard', 'body', body)
|
|
3592
|
+
const localVarPath = `/passport/enterprise/authed/v1/materials/upload/id-card`;
|
|
3593
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3594
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3595
|
+
let baseOptions;
|
|
3596
|
+
if (configuration) {
|
|
3597
|
+
baseOptions = configuration.baseOptions;
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3600
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3601
|
+
const localVarHeaderParameter = {} as any;
|
|
3602
|
+
const localVarQueryParameter = {} as any;
|
|
3603
|
+
|
|
3604
|
+
|
|
3605
|
+
|
|
3606
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3607
|
+
|
|
3608
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3609
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3610
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3611
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
3612
|
+
|
|
3613
|
+
return {
|
|
3614
|
+
url: toPathString(localVarUrlObj),
|
|
3615
|
+
options: localVarRequestOptions,
|
|
3616
|
+
};
|
|
3617
|
+
},
|
|
3618
|
+
/**
|
|
3619
|
+
*
|
|
3620
|
+
* @summary 提交企业认证材料审核
|
|
3621
|
+
* @param {PassportAuthEnterpriseMaterialVerifyRequest} body
|
|
3622
|
+
* @param {*} [options] Override http request option.
|
|
3623
|
+
* @throws {RequiredError}
|
|
3624
|
+
*/
|
|
3625
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify: async (body: PassportAuthEnterpriseMaterialVerifyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3626
|
+
// verify required parameter 'body' is not null or undefined
|
|
3627
|
+
assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify', 'body', body)
|
|
3628
|
+
const localVarPath = `/passport/enterprise/authed/v1/materials/verify`;
|
|
3488
3629
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3489
3630
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3490
3631
|
let baseOptions;
|
|
@@ -3513,11 +3654,11 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
|
|
|
3513
3654
|
/**
|
|
3514
3655
|
*
|
|
3515
3656
|
* @summary 获取企业认证材料审核状态
|
|
3516
|
-
* @param {
|
|
3657
|
+
* @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
|
|
3517
3658
|
* @param {*} [options] Override http request option.
|
|
3518
3659
|
* @throws {RequiredError}
|
|
3519
3660
|
*/
|
|
3520
|
-
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState: async (body:
|
|
3661
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState: async (body: PassportAuthEnterpriseMaterialVerifyStateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3521
3662
|
// verify required parameter 'body' is not null or undefined
|
|
3522
3663
|
assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState', 'body', body)
|
|
3523
3664
|
const localVarPath = `/passport/enterprise/authed/v1/materials/verified-state`;
|
|
@@ -4140,25 +4281,51 @@ export const PassportAuthEnterpriseServiceApiFp = function(configuration?: Confi
|
|
|
4140
4281
|
},
|
|
4141
4282
|
/**
|
|
4142
4283
|
*
|
|
4143
|
-
* @summary
|
|
4144
|
-
* @param {
|
|
4284
|
+
* @summary 上传企业营业执照
|
|
4285
|
+
* @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
|
|
4145
4286
|
* @param {*} [options] Override http request option.
|
|
4146
4287
|
* @throws {RequiredError}
|
|
4147
4288
|
*/
|
|
4148
|
-
async
|
|
4149
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4289
|
+
async passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body: PassportAuthEnterpriseMaterialBizLicenseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseMaterialBizLicenseResponse>> {
|
|
4290
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body, options);
|
|
4150
4291
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4151
|
-
const localVarOperationServerBasePath = operationServerMap['PassportAuthEnterpriseServiceApi.
|
|
4292
|
+
const localVarOperationServerBasePath = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense']?.[localVarOperationServerIndex]?.url;
|
|
4293
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4294
|
+
},
|
|
4295
|
+
/**
|
|
4296
|
+
*
|
|
4297
|
+
* @summary 上传法定代表人身份证
|
|
4298
|
+
* @param {PassportAuthEnterpriseMaterialIDCardRequest} body
|
|
4299
|
+
* @param {*} [options] Override http request option.
|
|
4300
|
+
* @throws {RequiredError}
|
|
4301
|
+
*/
|
|
4302
|
+
async passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body: PassportAuthEnterpriseMaterialIDCardRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseMaterialIDCardResponse>> {
|
|
4303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body, options);
|
|
4304
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4305
|
+
const localVarOperationServerBasePath = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard']?.[localVarOperationServerIndex]?.url;
|
|
4306
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4307
|
+
},
|
|
4308
|
+
/**
|
|
4309
|
+
*
|
|
4310
|
+
* @summary 提交企业认证材料审核
|
|
4311
|
+
* @param {PassportAuthEnterpriseMaterialVerifyRequest} body
|
|
4312
|
+
* @param {*} [options] Override http request option.
|
|
4313
|
+
* @throws {RequiredError}
|
|
4314
|
+
*/
|
|
4315
|
+
async passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body: PassportAuthEnterpriseMaterialVerifyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseMaterialVerifyResponse>> {
|
|
4316
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body, options);
|
|
4317
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4318
|
+
const localVarOperationServerBasePath = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify']?.[localVarOperationServerIndex]?.url;
|
|
4152
4319
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4153
4320
|
},
|
|
4154
4321
|
/**
|
|
4155
4322
|
*
|
|
4156
4323
|
* @summary 获取企业认证材料审核状态
|
|
4157
|
-
* @param {
|
|
4324
|
+
* @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
|
|
4158
4325
|
* @param {*} [options] Override http request option.
|
|
4159
4326
|
* @throws {RequiredError}
|
|
4160
4327
|
*/
|
|
4161
|
-
async passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body:
|
|
4328
|
+
async passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: PassportAuthEnterpriseMaterialVerifyStateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseMaterialVerifyStateResponse>> {
|
|
4162
4329
|
const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body, options);
|
|
4163
4330
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4164
4331
|
const localVarOperationServerBasePath = operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState']?.[localVarOperationServerIndex]?.url;
|
|
@@ -4415,22 +4582,42 @@ export const PassportAuthEnterpriseServiceApiFactory = function (configuration?:
|
|
|
4415
4582
|
},
|
|
4416
4583
|
/**
|
|
4417
4584
|
*
|
|
4418
|
-
* @summary
|
|
4419
|
-
* @param {
|
|
4585
|
+
* @summary 上传企业营业执照
|
|
4586
|
+
* @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
|
|
4587
|
+
* @param {*} [options] Override http request option.
|
|
4588
|
+
* @throws {RequiredError}
|
|
4589
|
+
*/
|
|
4590
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body: PassportAuthEnterpriseMaterialBizLicenseRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialBizLicenseResponse> {
|
|
4591
|
+
return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body, options).then((request) => request(axios, basePath));
|
|
4592
|
+
},
|
|
4593
|
+
/**
|
|
4594
|
+
*
|
|
4595
|
+
* @summary 上传法定代表人身份证
|
|
4596
|
+
* @param {PassportAuthEnterpriseMaterialIDCardRequest} body
|
|
4420
4597
|
* @param {*} [options] Override http request option.
|
|
4421
4598
|
* @throws {RequiredError}
|
|
4422
4599
|
*/
|
|
4423
|
-
|
|
4424
|
-
return localVarFp.
|
|
4600
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body: PassportAuthEnterpriseMaterialIDCardRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialIDCardResponse> {
|
|
4601
|
+
return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body, options).then((request) => request(axios, basePath));
|
|
4602
|
+
},
|
|
4603
|
+
/**
|
|
4604
|
+
*
|
|
4605
|
+
* @summary 提交企业认证材料审核
|
|
4606
|
+
* @param {PassportAuthEnterpriseMaterialVerifyRequest} body
|
|
4607
|
+
* @param {*} [options] Override http request option.
|
|
4608
|
+
* @throws {RequiredError}
|
|
4609
|
+
*/
|
|
4610
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body: PassportAuthEnterpriseMaterialVerifyRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialVerifyResponse> {
|
|
4611
|
+
return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body, options).then((request) => request(axios, basePath));
|
|
4425
4612
|
},
|
|
4426
4613
|
/**
|
|
4427
4614
|
*
|
|
4428
4615
|
* @summary 获取企业认证材料审核状态
|
|
4429
|
-
* @param {
|
|
4616
|
+
* @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
|
|
4430
4617
|
* @param {*} [options] Override http request option.
|
|
4431
4618
|
* @throws {RequiredError}
|
|
4432
4619
|
*/
|
|
4433
|
-
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body:
|
|
4620
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: PassportAuthEnterpriseMaterialVerifyStateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialVerifyStateResponse> {
|
|
4434
4621
|
return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body, options).then((request) => request(axios, basePath));
|
|
4435
4622
|
},
|
|
4436
4623
|
/**
|
|
@@ -4634,21 +4821,39 @@ export interface PassportAuthEnterpriseServiceApiInterface {
|
|
|
4634
4821
|
|
|
4635
4822
|
/**
|
|
4636
4823
|
*
|
|
4637
|
-
* @summary
|
|
4638
|
-
* @param {
|
|
4824
|
+
* @summary 上传企业营业执照
|
|
4825
|
+
* @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
|
|
4826
|
+
* @param {*} [options] Override http request option.
|
|
4827
|
+
* @throws {RequiredError}
|
|
4828
|
+
*/
|
|
4829
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body: PassportAuthEnterpriseMaterialBizLicenseRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialBizLicenseResponse>;
|
|
4830
|
+
|
|
4831
|
+
/**
|
|
4832
|
+
*
|
|
4833
|
+
* @summary 上传法定代表人身份证
|
|
4834
|
+
* @param {PassportAuthEnterpriseMaterialIDCardRequest} body
|
|
4835
|
+
* @param {*} [options] Override http request option.
|
|
4836
|
+
* @throws {RequiredError}
|
|
4837
|
+
*/
|
|
4838
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body: PassportAuthEnterpriseMaterialIDCardRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialIDCardResponse>;
|
|
4839
|
+
|
|
4840
|
+
/**
|
|
4841
|
+
*
|
|
4842
|
+
* @summary 提交企业认证材料审核
|
|
4843
|
+
* @param {PassportAuthEnterpriseMaterialVerifyRequest} body
|
|
4639
4844
|
* @param {*} [options] Override http request option.
|
|
4640
4845
|
* @throws {RequiredError}
|
|
4641
4846
|
*/
|
|
4642
|
-
|
|
4847
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body: PassportAuthEnterpriseMaterialVerifyRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialVerifyResponse>;
|
|
4643
4848
|
|
|
4644
4849
|
/**
|
|
4645
4850
|
*
|
|
4646
4851
|
* @summary 获取企业认证材料审核状态
|
|
4647
|
-
* @param {
|
|
4852
|
+
* @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
|
|
4648
4853
|
* @param {*} [options] Override http request option.
|
|
4649
4854
|
* @throws {RequiredError}
|
|
4650
4855
|
*/
|
|
4651
|
-
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body:
|
|
4856
|
+
passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: PassportAuthEnterpriseMaterialVerifyStateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialVerifyStateResponse>;
|
|
4652
4857
|
|
|
4653
4858
|
/**
|
|
4654
4859
|
*
|
|
@@ -4848,23 +5053,45 @@ export class PassportAuthEnterpriseServiceApi extends BaseAPI implements Passpor
|
|
|
4848
5053
|
|
|
4849
5054
|
/**
|
|
4850
5055
|
*
|
|
4851
|
-
* @summary
|
|
4852
|
-
* @param {
|
|
5056
|
+
* @summary 上传企业营业执照
|
|
5057
|
+
* @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
|
|
5058
|
+
* @param {*} [options] Override http request option.
|
|
5059
|
+
* @throws {RequiredError}
|
|
5060
|
+
*/
|
|
5061
|
+
public passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body: PassportAuthEnterpriseMaterialBizLicenseRequest, options?: RawAxiosRequestConfig) {
|
|
5062
|
+
return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body, options).then((request) => request(this.axios, this.basePath));
|
|
5063
|
+
}
|
|
5064
|
+
|
|
5065
|
+
/**
|
|
5066
|
+
*
|
|
5067
|
+
* @summary 上传法定代表人身份证
|
|
5068
|
+
* @param {PassportAuthEnterpriseMaterialIDCardRequest} body
|
|
4853
5069
|
* @param {*} [options] Override http request option.
|
|
4854
5070
|
* @throws {RequiredError}
|
|
4855
5071
|
*/
|
|
4856
|
-
public
|
|
4857
|
-
return PassportAuthEnterpriseServiceApiFp(this.configuration).
|
|
5072
|
+
public passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body: PassportAuthEnterpriseMaterialIDCardRequest, options?: RawAxiosRequestConfig) {
|
|
5073
|
+
return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body, options).then((request) => request(this.axios, this.basePath));
|
|
5074
|
+
}
|
|
5075
|
+
|
|
5076
|
+
/**
|
|
5077
|
+
*
|
|
5078
|
+
* @summary 提交企业认证材料审核
|
|
5079
|
+
* @param {PassportAuthEnterpriseMaterialVerifyRequest} body
|
|
5080
|
+
* @param {*} [options] Override http request option.
|
|
5081
|
+
* @throws {RequiredError}
|
|
5082
|
+
*/
|
|
5083
|
+
public passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body: PassportAuthEnterpriseMaterialVerifyRequest, options?: RawAxiosRequestConfig) {
|
|
5084
|
+
return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body, options).then((request) => request(this.axios, this.basePath));
|
|
4858
5085
|
}
|
|
4859
5086
|
|
|
4860
5087
|
/**
|
|
4861
5088
|
*
|
|
4862
5089
|
* @summary 获取企业认证材料审核状态
|
|
4863
|
-
* @param {
|
|
5090
|
+
* @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
|
|
4864
5091
|
* @param {*} [options] Override http request option.
|
|
4865
5092
|
* @throws {RequiredError}
|
|
4866
5093
|
*/
|
|
4867
|
-
public passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body:
|
|
5094
|
+
public passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: PassportAuthEnterpriseMaterialVerifyStateRequest, options?: RawAxiosRequestConfig) {
|
|
4868
5095
|
return PassportAuthEnterpriseServiceApiFp(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body, options).then((request) => request(this.axios, this.basePath));
|
|
4869
5096
|
}
|
|
4870
5097
|
|