@bi-nova/services 1.4.0 → 1.4.1

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 CHANGED
@@ -345,8 +345,8 @@ interface HandleDyPayFlowResult {
345
345
  interface GetDyPayRtaDataParams {
346
346
  /** 商品金额(非必传,单位:元) */
347
347
  price?: number;
348
- /** 手机号(必传) */
349
- telephone: string;
348
+ /** 手机号(非必传) */
349
+ telephone?: string;
350
350
  /** 设备编号(必传) */
351
351
  equipmentValue: string;
352
352
  }
@@ -367,8 +367,8 @@ interface GetDyPayRtaDataResult {
367
367
  }
368
368
  /** handleDyPayCommandFlow 入参 */
369
369
  interface HandleDyPayCommandFlowParams {
370
- /** 用户手机号,RTA 和口令接口都会使用 */
371
- telephone: string;
370
+ /** 用户手机号,未传时 RTA 和口令接口按空字符串透传 */
371
+ telephone?: string;
372
372
  /** 设备编号 */
373
373
  equipmentValue: string;
374
374
  /** RTA 查询金额,可选;不传则按 RTA 接口默认逻辑处理 */
@@ -423,7 +423,7 @@ declare function handleDyPayFlow(params: HandleDyPayFlowParams): Promise<BuildRe
423
423
  declare function getDyPayRtaData(params: GetDyPayRtaDataParams): Promise<BuildResultReturn<GetDyPayRtaDataResult>>;
424
424
  /**
425
425
  * 处理抖音支付口令完整流程
426
- * @param params.telephone 用户手机号,RTA 和口令接口都会使用
426
+ * @param params.telephone 用户手机号,非必传;未传时 RTA 和口令接口按空字符串透传
427
427
  * @param params.equipmentValue 设备编号
428
428
  * @param params.price RTA 查询金额,可选
429
429
  * @param params.commandUrl 指定生成口令的地址,不传则使用服务端默认地址
package/dist/index.d.ts CHANGED
@@ -345,8 +345,8 @@ interface HandleDyPayFlowResult {
345
345
  interface GetDyPayRtaDataParams {
346
346
  /** 商品金额(非必传,单位:元) */
347
347
  price?: number;
348
- /** 手机号(必传) */
349
- telephone: string;
348
+ /** 手机号(非必传) */
349
+ telephone?: string;
350
350
  /** 设备编号(必传) */
351
351
  equipmentValue: string;
352
352
  }
@@ -367,8 +367,8 @@ interface GetDyPayRtaDataResult {
367
367
  }
368
368
  /** handleDyPayCommandFlow 入参 */
369
369
  interface HandleDyPayCommandFlowParams {
370
- /** 用户手机号,RTA 和口令接口都会使用 */
371
- telephone: string;
370
+ /** 用户手机号,未传时 RTA 和口令接口按空字符串透传 */
371
+ telephone?: string;
372
372
  /** 设备编号 */
373
373
  equipmentValue: string;
374
374
  /** RTA 查询金额,可选;不传则按 RTA 接口默认逻辑处理 */
@@ -423,7 +423,7 @@ declare function handleDyPayFlow(params: HandleDyPayFlowParams): Promise<BuildRe
423
423
  declare function getDyPayRtaData(params: GetDyPayRtaDataParams): Promise<BuildResultReturn<GetDyPayRtaDataResult>>;
424
424
  /**
425
425
  * 处理抖音支付口令完整流程
426
- * @param params.telephone 用户手机号,RTA 和口令接口都会使用
426
+ * @param params.telephone 用户手机号,非必传;未传时 RTA 和口令接口按空字符串透传
427
427
  * @param params.equipmentValue 设备编号
428
428
  * @param params.price RTA 查询金额,可选
429
429
  * @param params.commandUrl 指定生成口令的地址,不传则使用服务端默认地址