@bi-nova/services 1.3.4-beta.202606041644 → 1.3.4-beta.202606051443
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/index.d.mts +45 -3
- package/dist/index.d.ts +45 -3
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -337,6 +337,28 @@ interface GetDyPayRtaDataResult {
|
|
|
337
337
|
/** 优惠金额(预留) */
|
|
338
338
|
discountAmount: boolean;
|
|
339
339
|
}
|
|
340
|
+
/** handleDyPayCommandFlow 入参 */
|
|
341
|
+
interface HandleDyPayCommandFlowParams {
|
|
342
|
+
/** 用户手机号,RTA 和口令接口都会使用 */
|
|
343
|
+
telephone: string;
|
|
344
|
+
/** 设备编号 */
|
|
345
|
+
equipmentValue: string;
|
|
346
|
+
/** RTA 查询金额,可选;不传则按 RTA 接口默认逻辑处理 */
|
|
347
|
+
price?: number;
|
|
348
|
+
/** 是否自动复制口令,默认 false */
|
|
349
|
+
autoCopy?: boolean;
|
|
350
|
+
/** 自动复制成功后是否返回口令文本,默认 false */
|
|
351
|
+
returnCommand?: boolean;
|
|
352
|
+
}
|
|
353
|
+
/** handleDyPayCommandFlow 返回数据 */
|
|
354
|
+
interface HandleDyPayCommandFlowResult {
|
|
355
|
+
/** 是否符合获取口令条件 */
|
|
356
|
+
eligible: boolean;
|
|
357
|
+
/** 结果类型 */
|
|
358
|
+
type: 'command' | 'copy_success' | 'not_eligible';
|
|
359
|
+
/** 抖音支付口令 */
|
|
360
|
+
command?: string;
|
|
361
|
+
}
|
|
340
362
|
|
|
341
363
|
/**
|
|
342
364
|
* 处理抖音支付流程
|
|
@@ -365,13 +387,23 @@ declare function handleDyPayFlow(params: HandleDyPayFlowParams): Promise<BuildRe
|
|
|
365
387
|
* @returns 返回标准化结果,包含 showFlag 表示是否展示活动
|
|
366
388
|
*/
|
|
367
389
|
declare function getDyPayRtaData(params: GetDyPayRtaDataParams): Promise<BuildResultReturn<GetDyPayRtaDataResult>>;
|
|
390
|
+
/**
|
|
391
|
+
* 处理抖音支付口令完整流程
|
|
392
|
+
* @param params.telephone 用户手机号,RTA 和口令接口都会使用
|
|
393
|
+
* @param params.equipmentValue 设备编号
|
|
394
|
+
* @param params.price RTA 查询金额,可选
|
|
395
|
+
* @param params.autoCopy 是否自动复制口令,默认 false
|
|
396
|
+
* @param params.returnCommand 自动复制成功后是否返回口令文本,默认 false
|
|
397
|
+
* @returns 返回标准化结果,包含资格判断、口令或复制结果
|
|
398
|
+
*/
|
|
399
|
+
declare function handleDyPayCommandFlow(params: HandleDyPayCommandFlowParams): Promise<BuildResultReturn<HandleDyPayCommandFlowResult>>;
|
|
368
400
|
|
|
369
401
|
/**
|
|
370
402
|
* @Description: 业务错误码定义
|
|
371
403
|
* @Author: wutao
|
|
372
404
|
* @Date: 2026-03-30
|
|
373
405
|
* @LastEditors: wutao
|
|
374
|
-
* @LastEditTime: 2026-
|
|
406
|
+
* @LastEditTime: 2026-06-04 17:49:38
|
|
375
407
|
*
|
|
376
408
|
* 错误码分段规则:
|
|
377
409
|
* - 0: 成功
|
|
@@ -478,7 +510,17 @@ declare enum DyErrorCode {
|
|
|
478
510
|
/** 缺少 JSAPI 支付参数 */
|
|
479
511
|
DY_PAY__MISSING_JSAPI_PAY_INFO = 3021,
|
|
480
512
|
/** JSAPI 支付参数格式不正确 */
|
|
481
|
-
DY_PAY__INVALID_JSAPI_PAY_INFO = 3022
|
|
513
|
+
DY_PAY__INVALID_JSAPI_PAY_INFO = 3022,
|
|
514
|
+
/** 缺少抖音支付口令金额 */
|
|
515
|
+
DY_PAY_COMMAND__MISSING_ORDER_AMOUNT = 3030,
|
|
516
|
+
/** 获取抖音支付口令失败 */
|
|
517
|
+
DY_PAY_COMMAND__GET_FAILED = 3031,
|
|
518
|
+
/** 获取抖音支付口令请求失败 */
|
|
519
|
+
DY_PAY_COMMAND__REQUEST_FAILED = 3032,
|
|
520
|
+
/** 抖音支付口令复制失败 */
|
|
521
|
+
DY_PAY_COMMAND__COPY_FAILED = 3033,
|
|
522
|
+
/** 抖音支付口令 RTA 数据无效 */
|
|
523
|
+
DY_PAY_COMMAND__INVALID_RTA_DATA = 3034
|
|
482
524
|
}
|
|
483
525
|
/**
|
|
484
526
|
* 抖音业务错误信息映射
|
|
@@ -685,4 +727,4 @@ declare function normalizeDisplayAdData(advertConfigs: AdvertConfigItem[], fallb
|
|
|
685
727
|
*/
|
|
686
728
|
declare function getDisplayAdConfig(options: GetDisplayAdOptions): Promise<BuildResultReturn<DisplayAdResult>>;
|
|
687
729
|
|
|
688
|
-
export { type DisplayAdResult, DyErrorCode, DyErrorMessage, ENV_TYPE, EXTERNAL_ENV_TYPE, type GetDisplayAdOptions, type HandleDyPayFlowParams, type HandleDyPayFlowResult, JdErrorCode, JdErrorMessage, type JdInsuranceExternalOptions, type JdInsuranceOptions, type JdInsuranceResult, type JdjrCashLoanExternalOptions, type JdjrCashLoanOptions, type ServicesOptions, createServices, getDisplayAdConfig, getDyPayRtaData, handleDyPayFlow, handleJdInsurance, handleJdInsuranceExt, handleJdjrCashLoanExt, handleJdjrCashLoanFlow, normalizeDisplayAdData };
|
|
730
|
+
export { type DisplayAdResult, DyErrorCode, DyErrorMessage, ENV_TYPE, EXTERNAL_ENV_TYPE, type GetDisplayAdOptions, type HandleDyPayCommandFlowParams, type HandleDyPayCommandFlowResult, type HandleDyPayFlowParams, type HandleDyPayFlowResult, JdErrorCode, JdErrorMessage, type JdInsuranceExternalOptions, type JdInsuranceOptions, type JdInsuranceResult, type JdjrCashLoanExternalOptions, type JdjrCashLoanOptions, type ServicesOptions, createServices, getDisplayAdConfig, getDyPayRtaData, handleDyPayCommandFlow, handleDyPayFlow, handleJdInsurance, handleJdInsuranceExt, handleJdjrCashLoanExt, handleJdjrCashLoanFlow, normalizeDisplayAdData };
|
package/dist/index.d.ts
CHANGED
|
@@ -337,6 +337,28 @@ interface GetDyPayRtaDataResult {
|
|
|
337
337
|
/** 优惠金额(预留) */
|
|
338
338
|
discountAmount: boolean;
|
|
339
339
|
}
|
|
340
|
+
/** handleDyPayCommandFlow 入参 */
|
|
341
|
+
interface HandleDyPayCommandFlowParams {
|
|
342
|
+
/** 用户手机号,RTA 和口令接口都会使用 */
|
|
343
|
+
telephone: string;
|
|
344
|
+
/** 设备编号 */
|
|
345
|
+
equipmentValue: string;
|
|
346
|
+
/** RTA 查询金额,可选;不传则按 RTA 接口默认逻辑处理 */
|
|
347
|
+
price?: number;
|
|
348
|
+
/** 是否自动复制口令,默认 false */
|
|
349
|
+
autoCopy?: boolean;
|
|
350
|
+
/** 自动复制成功后是否返回口令文本,默认 false */
|
|
351
|
+
returnCommand?: boolean;
|
|
352
|
+
}
|
|
353
|
+
/** handleDyPayCommandFlow 返回数据 */
|
|
354
|
+
interface HandleDyPayCommandFlowResult {
|
|
355
|
+
/** 是否符合获取口令条件 */
|
|
356
|
+
eligible: boolean;
|
|
357
|
+
/** 结果类型 */
|
|
358
|
+
type: 'command' | 'copy_success' | 'not_eligible';
|
|
359
|
+
/** 抖音支付口令 */
|
|
360
|
+
command?: string;
|
|
361
|
+
}
|
|
340
362
|
|
|
341
363
|
/**
|
|
342
364
|
* 处理抖音支付流程
|
|
@@ -365,13 +387,23 @@ declare function handleDyPayFlow(params: HandleDyPayFlowParams): Promise<BuildRe
|
|
|
365
387
|
* @returns 返回标准化结果,包含 showFlag 表示是否展示活动
|
|
366
388
|
*/
|
|
367
389
|
declare function getDyPayRtaData(params: GetDyPayRtaDataParams): Promise<BuildResultReturn<GetDyPayRtaDataResult>>;
|
|
390
|
+
/**
|
|
391
|
+
* 处理抖音支付口令完整流程
|
|
392
|
+
* @param params.telephone 用户手机号,RTA 和口令接口都会使用
|
|
393
|
+
* @param params.equipmentValue 设备编号
|
|
394
|
+
* @param params.price RTA 查询金额,可选
|
|
395
|
+
* @param params.autoCopy 是否自动复制口令,默认 false
|
|
396
|
+
* @param params.returnCommand 自动复制成功后是否返回口令文本,默认 false
|
|
397
|
+
* @returns 返回标准化结果,包含资格判断、口令或复制结果
|
|
398
|
+
*/
|
|
399
|
+
declare function handleDyPayCommandFlow(params: HandleDyPayCommandFlowParams): Promise<BuildResultReturn<HandleDyPayCommandFlowResult>>;
|
|
368
400
|
|
|
369
401
|
/**
|
|
370
402
|
* @Description: 业务错误码定义
|
|
371
403
|
* @Author: wutao
|
|
372
404
|
* @Date: 2026-03-30
|
|
373
405
|
* @LastEditors: wutao
|
|
374
|
-
* @LastEditTime: 2026-
|
|
406
|
+
* @LastEditTime: 2026-06-04 17:49:38
|
|
375
407
|
*
|
|
376
408
|
* 错误码分段规则:
|
|
377
409
|
* - 0: 成功
|
|
@@ -478,7 +510,17 @@ declare enum DyErrorCode {
|
|
|
478
510
|
/** 缺少 JSAPI 支付参数 */
|
|
479
511
|
DY_PAY__MISSING_JSAPI_PAY_INFO = 3021,
|
|
480
512
|
/** JSAPI 支付参数格式不正确 */
|
|
481
|
-
DY_PAY__INVALID_JSAPI_PAY_INFO = 3022
|
|
513
|
+
DY_PAY__INVALID_JSAPI_PAY_INFO = 3022,
|
|
514
|
+
/** 缺少抖音支付口令金额 */
|
|
515
|
+
DY_PAY_COMMAND__MISSING_ORDER_AMOUNT = 3030,
|
|
516
|
+
/** 获取抖音支付口令失败 */
|
|
517
|
+
DY_PAY_COMMAND__GET_FAILED = 3031,
|
|
518
|
+
/** 获取抖音支付口令请求失败 */
|
|
519
|
+
DY_PAY_COMMAND__REQUEST_FAILED = 3032,
|
|
520
|
+
/** 抖音支付口令复制失败 */
|
|
521
|
+
DY_PAY_COMMAND__COPY_FAILED = 3033,
|
|
522
|
+
/** 抖音支付口令 RTA 数据无效 */
|
|
523
|
+
DY_PAY_COMMAND__INVALID_RTA_DATA = 3034
|
|
482
524
|
}
|
|
483
525
|
/**
|
|
484
526
|
* 抖音业务错误信息映射
|
|
@@ -685,4 +727,4 @@ declare function normalizeDisplayAdData(advertConfigs: AdvertConfigItem[], fallb
|
|
|
685
727
|
*/
|
|
686
728
|
declare function getDisplayAdConfig(options: GetDisplayAdOptions): Promise<BuildResultReturn<DisplayAdResult>>;
|
|
687
729
|
|
|
688
|
-
export { type DisplayAdResult, DyErrorCode, DyErrorMessage, ENV_TYPE, EXTERNAL_ENV_TYPE, type GetDisplayAdOptions, type HandleDyPayFlowParams, type HandleDyPayFlowResult, JdErrorCode, JdErrorMessage, type JdInsuranceExternalOptions, type JdInsuranceOptions, type JdInsuranceResult, type JdjrCashLoanExternalOptions, type JdjrCashLoanOptions, type ServicesOptions, createServices, getDisplayAdConfig, getDyPayRtaData, handleDyPayFlow, handleJdInsurance, handleJdInsuranceExt, handleJdjrCashLoanExt, handleJdjrCashLoanFlow, normalizeDisplayAdData };
|
|
730
|
+
export { type DisplayAdResult, DyErrorCode, DyErrorMessage, ENV_TYPE, EXTERNAL_ENV_TYPE, type GetDisplayAdOptions, type HandleDyPayCommandFlowParams, type HandleDyPayCommandFlowResult, type HandleDyPayFlowParams, type HandleDyPayFlowResult, JdErrorCode, JdErrorMessage, type JdInsuranceExternalOptions, type JdInsuranceOptions, type JdInsuranceResult, type JdjrCashLoanExternalOptions, type JdjrCashLoanOptions, type ServicesOptions, createServices, getDisplayAdConfig, getDyPayRtaData, handleDyPayCommandFlow, handleDyPayFlow, handleJdInsurance, handleJdInsuranceExt, handleJdjrCashLoanExt, handleJdjrCashLoanFlow, normalizeDisplayAdData };
|