@alipay/ams-checkout 0.0.1717141544-dev.0 → 0.0.1717141544-dev.3

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.
@@ -606,7 +606,7 @@ var ComponentApp = /*#__PURE__*/function () {
606
606
  this._actionSubmitPromise = new Promise( /*#__PURE__*/function () {
607
607
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(resolve) {
608
608
  var _channelBehavior$buil, _this6$_renderParams$;
609
- var shouldSkipSubmitPayInSDK, _this6$_renderParams, extParams;
609
+ var shouldSkipSubmitPayInSDK, _this6$_renderParams, _this6$_renderParams2, _ref8, _ref8$productSceneVer, productSceneVersion, _ref8$productScene, productScene, _ref9, _ref9$action, _ref9$action2, _ref9$action2$enableS, enableSignAgreement, extParams;
610
610
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
611
611
  while (1) switch (_context3.prev = _context3.next) {
612
612
  case 0:
@@ -617,15 +617,22 @@ var ComponentApp = /*#__PURE__*/function () {
617
617
  } else {
618
618
  shouldSkipSubmitPayInSDK = !((_this6$_renderParams = _this6._renderParams) !== null && _this6$_renderParams !== void 0 && (_this6$_renderParams = _this6$_renderParams.paymentSessionMetaData) !== null && _this6$_renderParams !== void 0 && (_this6$_renderParams = _this6$_renderParams.action) !== null && _this6$_renderParams !== void 0 && _this6$_renderParams.skipSdkQuery) || componentSignEnum.EASY_PAY_WALLET !== _this6._componentSign;
619
619
  }
620
+ if (componentSignEnum.EASY_PAY_WALLET === _this6._componentSign) {
621
+ _ref8 = params.paymentSessionConfig || {}, _ref8$productSceneVer = _ref8.productSceneVersion, productSceneVersion = _ref8$productSceneVer === void 0 ? '' : _ref8$productSceneVer, _ref8$productScene = _ref8.productScene, productScene = _ref8$productScene === void 0 ? '' : _ref8$productScene;
622
+ _ref9 = ((_this6$_renderParams2 = _this6._renderParams) === null || _this6$_renderParams2 === void 0 ? void 0 : _this6$_renderParams2.paymentSessionMetaData) || {}, _ref9$action = _ref9.action, _ref9$action2 = _ref9$action === void 0 ? {} : _ref9$action, _ref9$action2$enableS = _ref9$action2.enableSignAgreement, enableSignAgreement = _ref9$action2$enableS === void 0 ? false : _ref9$action2$enableS;
623
+ if (productScene === productSceneEnum.EASY_PAY && productSceneVersion === '2.0') {
624
+ params['signAgreement'] = enableSignAgreement;
625
+ }
626
+ }
620
627
  if (!shouldSkipSubmitPayInSDK) {
621
- _context3.next = 4;
628
+ _context3.next = 5;
622
629
  break;
623
630
  }
624
631
  return _context3.abrupt("return", resolve({
625
632
  message: 'sdk no need to make submitPay request',
626
633
  success: true
627
634
  }));
628
- case 4:
635
+ case 5:
629
636
  _this6.AMSSDK.logger.logInfo({
630
637
  title: 'sdk_event_submitPay'
631
638
  }, {
@@ -644,9 +651,9 @@ var ComponentApp = /*#__PURE__*/function () {
644
651
  _context3.t0 = submitPayInfo;
645
652
  _context3.t1 = params;
646
653
  _context3.t2 = _this6.AMSSDK.options.env.environment;
647
- _context3.next = 12;
654
+ _context3.next = 13;
648
655
  return _this6.getDeviceIdAndLog();
649
- case 12:
656
+ case 13:
650
657
  _context3.t3 = _context3.sent;
651
658
  _context3.t4 = {
652
659
  deviceId: _context3.t3
@@ -680,7 +687,7 @@ var ComponentApp = /*#__PURE__*/function () {
680
687
  success: false
681
688
  });
682
689
  });
683
- case 17:
690
+ case 18:
684
691
  case "end":
685
692
  return _context3.stop();
686
693
  }
@@ -1296,9 +1303,9 @@ var ComponentApp = /*#__PURE__*/function () {
1296
1303
  }
1297
1304
  }, {
1298
1305
  key: "handleDeclareInfo",
1299
- value: function handleDeclareInfo(_ref8) {
1300
- var _ref8$closeDialogData = _ref8.closeDialogData,
1301
- closeDialogData = _ref8$closeDialogData === void 0 ? {} : _ref8$closeDialogData;
1306
+ value: function handleDeclareInfo(_ref10) {
1307
+ var _ref10$closeDialogDat = _ref10.closeDialogData,
1308
+ closeDialogData = _ref10$closeDialogDat === void 0 ? {} : _ref10$closeDialogDat;
1302
1309
  _handleDeclareInfo({
1303
1310
  closeDialogData: closeDialogData
1304
1311
  });
@@ -147,6 +147,7 @@ export interface IpaymentSessionMetaData {
147
147
  action?: {
148
148
  amountConfirmRequired?: boolean;
149
149
  autoDebitWithToken: boolean;
150
+ enableSignAgreement?: boolean;
150
151
  skipSdkQuery: boolean;
151
152
  skipSdkQueryForm?: {
152
153
  value: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1717141544-dev.0",
3
+ "version": "0.0.1717141544-dev.3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",