@cherryin/passport-api-client 0.1.7 → 0.1.9

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/dist/api.d.ts CHANGED
@@ -91,10 +91,9 @@ export interface AuthEnterpriseMaterials {
91
91
  * EnterpriseMaterials.LegalPersonIDNumber
92
92
  */
93
93
  'legal_person_id_number'?: string;
94
- /**
95
- * EnterpriseMaterials.ReviewStatus
96
- */
97
94
  'review_status'?: number;
95
+ 'business_license'?: EnterpriseOCRBusinessLicense;
96
+ 'id_card'?: EnterpriseOCRPersonIDCard;
98
97
  }
99
98
  export interface AuthEnterpriseSession {
100
99
  'session_token'?: string;
@@ -172,6 +171,56 @@ export interface AuthUserSession {
172
171
  'ip'?: string;
173
172
  'user_agent'?: string;
174
173
  }
174
+ export interface EnterpriseOCRBusinessLicense {
175
+ 'credit_code'?: string;
176
+ 'company_name'?: string;
177
+ 'company_type'?: string;
178
+ 'business_address'?: string;
179
+ 'legal_person'?: string;
180
+ 'business_scope'?: string;
181
+ 'registered_capital'?: string;
182
+ 'registration_date'?: string;
183
+ 'valid_period'?: string;
184
+ 'valid_from_date'?: string;
185
+ 'valid_to_date'?: string;
186
+ 'company_form'?: string;
187
+ 'issue_date'?: string;
188
+ 'title'?: string;
189
+ 'warning'?: EnterpriseOCRBusinessLicenseWarning;
190
+ }
191
+ export interface EnterpriseOCRBusinessLicenseWarning {
192
+ 'is_copy'?: number;
193
+ /**
194
+ * 字段置信度
195
+ */
196
+ 'value_probs'?: {
197
+ [key: string]: number;
198
+ };
199
+ }
200
+ export interface EnterpriseOCRPersonIDCard {
201
+ 'face'?: EnterpriseOCRPersonIDCardFace;
202
+ 'back'?: EnterpriseOCRPersonIDCardBack;
203
+ 'warning'?: EnterpriseOCRPersonIDCardWarning;
204
+ }
205
+ export interface EnterpriseOCRPersonIDCardBack {
206
+ 'issue_authority'?: string;
207
+ 'valid_period'?: string;
208
+ }
209
+ export interface EnterpriseOCRPersonIDCardFace {
210
+ 'name'?: string;
211
+ 'sex'?: string;
212
+ 'ethnicity'?: string;
213
+ 'birth_date'?: string;
214
+ 'address'?: string;
215
+ 'id_number'?: string;
216
+ }
217
+ export interface EnterpriseOCRPersonIDCardWarning {
218
+ 'is_copy'?: number;
219
+ 'is_reshoot'?: number;
220
+ 'completeness_score'?: number;
221
+ 'quality_score'?: number;
222
+ 'tamper_score'?: number;
223
+ }
175
224
  export interface GeeTestAuthCaptcha {
176
225
  'captcha_id'?: string;
177
226
  'lot_number'?: string;
@@ -472,15 +521,36 @@ export interface PassportAuthEnterpriseListSessionsResponse {
472
521
  'message'?: string;
473
522
  'sessions'?: Array<AuthUserSession>;
474
523
  }
475
- export interface PassportAuthEnterpriseMaterialUploadRequest {
476
- 'company_name'?: string;
477
- 'unified_social_credit_code'?: string;
478
- 'legal_person_name'?: string;
479
- 'legal_person_id_number'?: string;
524
+ export interface PassportAuthEnterpriseMaterialBizLicenseRequest {
525
+ 'image_base64'?: string;
526
+ 'submission_id'?: string;
480
527
  }
481
- export interface PassportAuthEnterpriseMaterialUploadResponse {
528
+ export interface PassportAuthEnterpriseMaterialBizLicenseResponse {
482
529
  'code'?: string;
483
530
  'message'?: string;
531
+ 'submission_id'?: string;
532
+ 'business_license'?: EnterpriseOCRBusinessLicense;
533
+ }
534
+ export interface PassportAuthEnterpriseMaterialIDCardRequest {
535
+ 'image_base64_face'?: string;
536
+ 'image_base64_back'?: string;
537
+ 'submission_id'?: string;
538
+ }
539
+ export interface PassportAuthEnterpriseMaterialIDCardResponse {
540
+ 'code'?: string;
541
+ 'message'?: string;
542
+ 'submission_id'?: string;
543
+ 'id_card'?: EnterpriseOCRPersonIDCard;
544
+ }
545
+ export interface PassportAuthEnterpriseMaterialVerifyRequest {
546
+ 'submission_id'?: string;
547
+ }
548
+ export interface PassportAuthEnterpriseMaterialVerifyResponse {
549
+ 'code'?: string;
550
+ 'message'?: string;
551
+ }
552
+ export interface PassportAuthEnterpriseMaterialVerifyStateRequest {
553
+ 'submission_id'?: string;
484
554
  }
485
555
  export interface PassportAuthEnterpriseMaterialVerifyStateResponse {
486
556
  'code'?: string;
@@ -532,7 +602,7 @@ export interface PassportAuthEnterpriseUpdateInfoRequest {
532
602
  export interface PassportAuthEnterpriseUpdateInfoResponse {
533
603
  'code'?: string;
534
604
  'message'?: string;
535
- 'users'?: Array<AuthUser>;
605
+ 'users'?: Array<AuthEnterpriseUser>;
536
606
  }
537
607
  export interface PassportAuthEnterpriseVerifyEmailRequest {
538
608
  'email'?: string;
@@ -2253,20 +2323,36 @@ export declare const PassportAuthEnterpriseServiceApiAxiosParamCreator: (configu
2253
2323
  passportAuthEnterpriseServicePassportAuthEnterpriseListSessions: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2254
2324
  /**
2255
2325
  *
2256
- * @summary 上传企业认证材料
2257
- * @param {PassportAuthEnterpriseMaterialUploadRequest} body
2326
+ * @summary 上传企业营业执照
2327
+ * @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
2258
2328
  * @param {*} [options] Override http request option.
2259
2329
  * @throws {RequiredError}
2260
2330
  */
2261
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload: (body: PassportAuthEnterpriseMaterialUploadRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2331
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense: (body: PassportAuthEnterpriseMaterialBizLicenseRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2332
+ /**
2333
+ *
2334
+ * @summary 上传法定代表人身份证
2335
+ * @param {PassportAuthEnterpriseMaterialIDCardRequest} body
2336
+ * @param {*} [options] Override http request option.
2337
+ * @throws {RequiredError}
2338
+ */
2339
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard: (body: PassportAuthEnterpriseMaterialIDCardRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2340
+ /**
2341
+ *
2342
+ * @summary 提交企业认证材料审核
2343
+ * @param {PassportAuthEnterpriseMaterialVerifyRequest} body
2344
+ * @param {*} [options] Override http request option.
2345
+ * @throws {RequiredError}
2346
+ */
2347
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify: (body: PassportAuthEnterpriseMaterialVerifyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2262
2348
  /**
2263
2349
  *
2264
2350
  * @summary 获取企业认证材料审核状态
2265
- * @param {object} body
2351
+ * @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
2266
2352
  * @param {*} [options] Override http request option.
2267
2353
  * @throws {RequiredError}
2268
2354
  */
2269
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState: (body: object, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2355
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState: (body: PassportAuthEnterpriseMaterialVerifyStateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2270
2356
  /**
2271
2357
  *
2272
2358
  * @summary 会话 token 刷新
@@ -2432,20 +2518,36 @@ export declare const PassportAuthEnterpriseServiceApiFp: (configuration?: Config
2432
2518
  passportAuthEnterpriseServicePassportAuthEnterpriseListSessions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseListSessionsResponse>>;
2433
2519
  /**
2434
2520
  *
2435
- * @summary 上传企业认证材料
2436
- * @param {PassportAuthEnterpriseMaterialUploadRequest} body
2521
+ * @summary 上传企业营业执照
2522
+ * @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
2523
+ * @param {*} [options] Override http request option.
2524
+ * @throws {RequiredError}
2525
+ */
2526
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body: PassportAuthEnterpriseMaterialBizLicenseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseMaterialBizLicenseResponse>>;
2527
+ /**
2528
+ *
2529
+ * @summary 上传法定代表人身份证
2530
+ * @param {PassportAuthEnterpriseMaterialIDCardRequest} body
2531
+ * @param {*} [options] Override http request option.
2532
+ * @throws {RequiredError}
2533
+ */
2534
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body: PassportAuthEnterpriseMaterialIDCardRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseMaterialIDCardResponse>>;
2535
+ /**
2536
+ *
2537
+ * @summary 提交企业认证材料审核
2538
+ * @param {PassportAuthEnterpriseMaterialVerifyRequest} body
2437
2539
  * @param {*} [options] Override http request option.
2438
2540
  * @throws {RequiredError}
2439
2541
  */
2440
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload(body: PassportAuthEnterpriseMaterialUploadRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseMaterialUploadResponse>>;
2542
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body: PassportAuthEnterpriseMaterialVerifyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseMaterialVerifyResponse>>;
2441
2543
  /**
2442
2544
  *
2443
2545
  * @summary 获取企业认证材料审核状态
2444
- * @param {object} body
2546
+ * @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
2445
2547
  * @param {*} [options] Override http request option.
2446
2548
  * @throws {RequiredError}
2447
2549
  */
2448
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseMaterialVerifyStateResponse>>;
2550
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: PassportAuthEnterpriseMaterialVerifyStateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportAuthEnterpriseMaterialVerifyStateResponse>>;
2449
2551
  /**
2450
2552
  *
2451
2553
  * @summary 会话 token 刷新
@@ -2611,20 +2713,36 @@ export declare const PassportAuthEnterpriseServiceApiFactory: (configuration?: C
2611
2713
  passportAuthEnterpriseServicePassportAuthEnterpriseListSessions(options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseListSessionsResponse>;
2612
2714
  /**
2613
2715
  *
2614
- * @summary 上传企业认证材料
2615
- * @param {PassportAuthEnterpriseMaterialUploadRequest} body
2716
+ * @summary 上传企业营业执照
2717
+ * @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
2718
+ * @param {*} [options] Override http request option.
2719
+ * @throws {RequiredError}
2720
+ */
2721
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body: PassportAuthEnterpriseMaterialBizLicenseRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialBizLicenseResponse>;
2722
+ /**
2723
+ *
2724
+ * @summary 上传法定代表人身份证
2725
+ * @param {PassportAuthEnterpriseMaterialIDCardRequest} body
2616
2726
  * @param {*} [options] Override http request option.
2617
2727
  * @throws {RequiredError}
2618
2728
  */
2619
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload(body: PassportAuthEnterpriseMaterialUploadRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialUploadResponse>;
2729
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body: PassportAuthEnterpriseMaterialIDCardRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialIDCardResponse>;
2730
+ /**
2731
+ *
2732
+ * @summary 提交企业认证材料审核
2733
+ * @param {PassportAuthEnterpriseMaterialVerifyRequest} body
2734
+ * @param {*} [options] Override http request option.
2735
+ * @throws {RequiredError}
2736
+ */
2737
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body: PassportAuthEnterpriseMaterialVerifyRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialVerifyResponse>;
2620
2738
  /**
2621
2739
  *
2622
2740
  * @summary 获取企业认证材料审核状态
2623
- * @param {object} body
2741
+ * @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
2624
2742
  * @param {*} [options] Override http request option.
2625
2743
  * @throws {RequiredError}
2626
2744
  */
2627
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: object, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialVerifyStateResponse>;
2745
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: PassportAuthEnterpriseMaterialVerifyStateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialVerifyStateResponse>;
2628
2746
  /**
2629
2747
  *
2630
2748
  * @summary 会话 token 刷新
@@ -2790,20 +2908,36 @@ export interface PassportAuthEnterpriseServiceApiInterface {
2790
2908
  passportAuthEnterpriseServicePassportAuthEnterpriseListSessions(options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseListSessionsResponse>;
2791
2909
  /**
2792
2910
  *
2793
- * @summary 上传企业认证材料
2794
- * @param {PassportAuthEnterpriseMaterialUploadRequest} body
2911
+ * @summary 上传企业营业执照
2912
+ * @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
2795
2913
  * @param {*} [options] Override http request option.
2796
2914
  * @throws {RequiredError}
2797
2915
  */
2798
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload(body: PassportAuthEnterpriseMaterialUploadRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialUploadResponse>;
2916
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body: PassportAuthEnterpriseMaterialBizLicenseRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialBizLicenseResponse>;
2917
+ /**
2918
+ *
2919
+ * @summary 上传法定代表人身份证
2920
+ * @param {PassportAuthEnterpriseMaterialIDCardRequest} body
2921
+ * @param {*} [options] Override http request option.
2922
+ * @throws {RequiredError}
2923
+ */
2924
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body: PassportAuthEnterpriseMaterialIDCardRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialIDCardResponse>;
2925
+ /**
2926
+ *
2927
+ * @summary 提交企业认证材料审核
2928
+ * @param {PassportAuthEnterpriseMaterialVerifyRequest} body
2929
+ * @param {*} [options] Override http request option.
2930
+ * @throws {RequiredError}
2931
+ */
2932
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body: PassportAuthEnterpriseMaterialVerifyRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialVerifyResponse>;
2799
2933
  /**
2800
2934
  *
2801
2935
  * @summary 获取企业认证材料审核状态
2802
- * @param {object} body
2936
+ * @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
2803
2937
  * @param {*} [options] Override http request option.
2804
2938
  * @throws {RequiredError}
2805
2939
  */
2806
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: object, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialVerifyStateResponse>;
2940
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: PassportAuthEnterpriseMaterialVerifyStateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportAuthEnterpriseMaterialVerifyStateResponse>;
2807
2941
  /**
2808
2942
  *
2809
2943
  * @summary 会话 token 刷新
@@ -2969,20 +3103,36 @@ export declare class PassportAuthEnterpriseServiceApi extends BaseAPI implements
2969
3103
  passportAuthEnterpriseServicePassportAuthEnterpriseListSessions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportAuthEnterpriseListSessionsResponse, any, {}>>;
2970
3104
  /**
2971
3105
  *
2972
- * @summary 上传企业认证材料
2973
- * @param {PassportAuthEnterpriseMaterialUploadRequest} body
3106
+ * @summary 上传企业营业执照
3107
+ * @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
3108
+ * @param {*} [options] Override http request option.
3109
+ * @throws {RequiredError}
3110
+ */
3111
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body: PassportAuthEnterpriseMaterialBizLicenseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportAuthEnterpriseMaterialBizLicenseResponse, any, {}>>;
3112
+ /**
3113
+ *
3114
+ * @summary 上传法定代表人身份证
3115
+ * @param {PassportAuthEnterpriseMaterialIDCardRequest} body
2974
3116
  * @param {*} [options] Override http request option.
2975
3117
  * @throws {RequiredError}
2976
3118
  */
2977
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload(body: PassportAuthEnterpriseMaterialUploadRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportAuthEnterpriseMaterialUploadResponse, any, {}>>;
3119
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body: PassportAuthEnterpriseMaterialIDCardRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportAuthEnterpriseMaterialIDCardResponse, any, {}>>;
3120
+ /**
3121
+ *
3122
+ * @summary 提交企业认证材料审核
3123
+ * @param {PassportAuthEnterpriseMaterialVerifyRequest} body
3124
+ * @param {*} [options] Override http request option.
3125
+ * @throws {RequiredError}
3126
+ */
3127
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body: PassportAuthEnterpriseMaterialVerifyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportAuthEnterpriseMaterialVerifyResponse, any, {}>>;
2978
3128
  /**
2979
3129
  *
2980
3130
  * @summary 获取企业认证材料审核状态
2981
- * @param {object} body
3131
+ * @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
2982
3132
  * @param {*} [options] Override http request option.
2983
3133
  * @throws {RequiredError}
2984
3134
  */
2985
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: object, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportAuthEnterpriseMaterialVerifyStateResponse, any, {}>>;
3135
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState(body: PassportAuthEnterpriseMaterialVerifyStateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportAuthEnterpriseMaterialVerifyStateResponse, any, {}>>;
2986
3136
  /**
2987
3137
  *
2988
3138
  * @summary 会话 token 刷新
package/dist/api.js CHANGED
@@ -1997,15 +1997,75 @@ const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (configuratio
1997
1997
  }),
1998
1998
  /**
1999
1999
  *
2000
- * @summary 上传企业认证材料
2001
- * @param {PassportAuthEnterpriseMaterialUploadRequest} body
2000
+ * @summary 上传企业营业执照
2001
+ * @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
2002
2002
  * @param {*} [options] Override http request option.
2003
2003
  * @throws {RequiredError}
2004
2004
  */
2005
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
2005
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
2006
2006
  // verify required parameter 'body' is not null or undefined
2007
- (0, common_1.assertParamExists)('passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload', 'body', body);
2008
- const localVarPath = `/passport/enterprise/authed/v1/materials/upload`;
2007
+ (0, common_1.assertParamExists)('passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense', 'body', body);
2008
+ const localVarPath = `/passport/enterprise/authed/v1/materials/upload/biz-license`;
2009
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2010
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2011
+ let baseOptions;
2012
+ if (configuration) {
2013
+ baseOptions = configuration.baseOptions;
2014
+ }
2015
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2016
+ const localVarHeaderParameter = {};
2017
+ const localVarQueryParameter = {};
2018
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2019
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2020
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2021
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2022
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
2023
+ return {
2024
+ url: (0, common_1.toPathString)(localVarUrlObj),
2025
+ options: localVarRequestOptions,
2026
+ };
2027
+ }),
2028
+ /**
2029
+ *
2030
+ * @summary 上传法定代表人身份证
2031
+ * @param {PassportAuthEnterpriseMaterialIDCardRequest} body
2032
+ * @param {*} [options] Override http request option.
2033
+ * @throws {RequiredError}
2034
+ */
2035
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
2036
+ // verify required parameter 'body' is not null or undefined
2037
+ (0, common_1.assertParamExists)('passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard', 'body', body);
2038
+ const localVarPath = `/passport/enterprise/authed/v1/materials/upload/id-card`;
2039
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2040
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2041
+ let baseOptions;
2042
+ if (configuration) {
2043
+ baseOptions = configuration.baseOptions;
2044
+ }
2045
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2046
+ const localVarHeaderParameter = {};
2047
+ const localVarQueryParameter = {};
2048
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2049
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2051
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2052
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
2053
+ return {
2054
+ url: (0, common_1.toPathString)(localVarUrlObj),
2055
+ options: localVarRequestOptions,
2056
+ };
2057
+ }),
2058
+ /**
2059
+ *
2060
+ * @summary 提交企业认证材料审核
2061
+ * @param {PassportAuthEnterpriseMaterialVerifyRequest} body
2062
+ * @param {*} [options] Override http request option.
2063
+ * @throws {RequiredError}
2064
+ */
2065
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
2066
+ // verify required parameter 'body' is not null or undefined
2067
+ (0, common_1.assertParamExists)('passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify', 'body', body);
2068
+ const localVarPath = `/passport/enterprise/authed/v1/materials/verify`;
2009
2069
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2010
2070
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2011
2071
  let baseOptions;
@@ -2028,7 +2088,7 @@ const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (configuratio
2028
2088
  /**
2029
2089
  *
2030
2090
  * @summary 获取企业认证材料审核状态
2031
- * @param {object} body
2091
+ * @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
2032
2092
  * @param {*} [options] Override http request option.
2033
2093
  * @throws {RequiredError}
2034
2094
  */
@@ -2582,24 +2642,56 @@ const PassportAuthEnterpriseServiceApiFp = function (configuration) {
2582
2642
  },
2583
2643
  /**
2584
2644
  *
2585
- * @summary 上传企业认证材料
2586
- * @param {PassportAuthEnterpriseMaterialUploadRequest} body
2645
+ * @summary 上传企业营业执照
2646
+ * @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
2587
2647
  * @param {*} [options] Override http request option.
2588
2648
  * @throws {RequiredError}
2589
2649
  */
2590
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload(body, options) {
2650
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body, options) {
2591
2651
  return __awaiter(this, void 0, void 0, function* () {
2592
2652
  var _a, _b, _c;
2593
- const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload(body, options);
2653
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body, options);
2594
2654
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2595
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2655
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2656
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2657
+ });
2658
+ },
2659
+ /**
2660
+ *
2661
+ * @summary 上传法定代表人身份证
2662
+ * @param {PassportAuthEnterpriseMaterialIDCardRequest} body
2663
+ * @param {*} [options] Override http request option.
2664
+ * @throws {RequiredError}
2665
+ */
2666
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body, options) {
2667
+ return __awaiter(this, void 0, void 0, function* () {
2668
+ var _a, _b, _c;
2669
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body, options);
2670
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2671
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2672
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2673
+ });
2674
+ },
2675
+ /**
2676
+ *
2677
+ * @summary 提交企业认证材料审核
2678
+ * @param {PassportAuthEnterpriseMaterialVerifyRequest} body
2679
+ * @param {*} [options] Override http request option.
2680
+ * @throws {RequiredError}
2681
+ */
2682
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body, options) {
2683
+ return __awaiter(this, void 0, void 0, function* () {
2684
+ var _a, _b, _c;
2685
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body, options);
2686
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2687
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportAuthEnterpriseServiceApi.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2596
2688
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2597
2689
  });
2598
2690
  },
2599
2691
  /**
2600
2692
  *
2601
2693
  * @summary 获取企业认证材料审核状态
2602
- * @param {object} body
2694
+ * @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
2603
2695
  * @param {*} [options] Override http request option.
2604
2696
  * @throws {RequiredError}
2605
2697
  */
@@ -2905,18 +2997,38 @@ const PassportAuthEnterpriseServiceApiFactory = function (configuration, basePat
2905
2997
  },
2906
2998
  /**
2907
2999
  *
2908
- * @summary 上传企业认证材料
2909
- * @param {PassportAuthEnterpriseMaterialUploadRequest} body
3000
+ * @summary 上传企业营业执照
3001
+ * @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
3002
+ * @param {*} [options] Override http request option.
3003
+ * @throws {RequiredError}
3004
+ */
3005
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body, options) {
3006
+ return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body, options).then((request) => request(axios, basePath));
3007
+ },
3008
+ /**
3009
+ *
3010
+ * @summary 上传法定代表人身份证
3011
+ * @param {PassportAuthEnterpriseMaterialIDCardRequest} body
2910
3012
  * @param {*} [options] Override http request option.
2911
3013
  * @throws {RequiredError}
2912
3014
  */
2913
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload(body, options) {
2914
- return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload(body, options).then((request) => request(axios, basePath));
3015
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body, options) {
3016
+ return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body, options).then((request) => request(axios, basePath));
3017
+ },
3018
+ /**
3019
+ *
3020
+ * @summary 提交企业认证材料审核
3021
+ * @param {PassportAuthEnterpriseMaterialVerifyRequest} body
3022
+ * @param {*} [options] Override http request option.
3023
+ * @throws {RequiredError}
3024
+ */
3025
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body, options) {
3026
+ return localVarFp.passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body, options).then((request) => request(axios, basePath));
2915
3027
  },
2916
3028
  /**
2917
3029
  *
2918
3030
  * @summary 获取企业认证材料审核状态
2919
- * @param {object} body
3031
+ * @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
2920
3032
  * @param {*} [options] Override http request option.
2921
3033
  * @throws {RequiredError}
2922
3034
  */
@@ -3130,18 +3242,38 @@ class PassportAuthEnterpriseServiceApi extends base_1.BaseAPI {
3130
3242
  }
3131
3243
  /**
3132
3244
  *
3133
- * @summary 上传企业认证材料
3134
- * @param {PassportAuthEnterpriseMaterialUploadRequest} body
3245
+ * @summary 上传企业营业执照
3246
+ * @param {PassportAuthEnterpriseMaterialBizLicenseRequest} body
3135
3247
  * @param {*} [options] Override http request option.
3136
3248
  * @throws {RequiredError}
3137
3249
  */
3138
- passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload(body, options) {
3139
- return (0, exports.PassportAuthEnterpriseServiceApiFp)(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseMaterialUpload(body, options).then((request) => request(this.axios, this.basePath));
3250
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body, options) {
3251
+ return (0, exports.PassportAuthEnterpriseServiceApiFp)(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense(body, options).then((request) => request(this.axios, this.basePath));
3252
+ }
3253
+ /**
3254
+ *
3255
+ * @summary 上传法定代表人身份证
3256
+ * @param {PassportAuthEnterpriseMaterialIDCardRequest} body
3257
+ * @param {*} [options] Override http request option.
3258
+ * @throws {RequiredError}
3259
+ */
3260
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body, options) {
3261
+ return (0, exports.PassportAuthEnterpriseServiceApiFp)(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard(body, options).then((request) => request(this.axios, this.basePath));
3262
+ }
3263
+ /**
3264
+ *
3265
+ * @summary 提交企业认证材料审核
3266
+ * @param {PassportAuthEnterpriseMaterialVerifyRequest} body
3267
+ * @param {*} [options] Override http request option.
3268
+ * @throws {RequiredError}
3269
+ */
3270
+ passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body, options) {
3271
+ return (0, exports.PassportAuthEnterpriseServiceApiFp)(this.configuration).passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify(body, options).then((request) => request(this.axios, this.basePath));
3140
3272
  }
3141
3273
  /**
3142
3274
  *
3143
3275
  * @summary 获取企业认证材料审核状态
3144
- * @param {object} body
3276
+ * @param {PassportAuthEnterpriseMaterialVerifyStateRequest} body
3145
3277
  * @param {*} [options] Override http request option.
3146
3278
  * @throws {RequiredError}
3147
3279
  */