@alipay/ams-checkout 0.0.1766664288-dev.0 → 0.0.1766664288-dev.2

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.
@@ -370,7 +370,7 @@ var ElementController = /*#__PURE__*/function () {
370
370
  _context4.next = 11;
371
371
  return new Promise( /*#__PURE__*/function () {
372
372
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(resolve) {
373
- var that, recordResultCallback, params, processStep, _yield$_this3$onValid2, _data, errorResult;
373
+ var that, recordResultCallback, params, processStep, _submitParams$handleA, _yield$_this3$onValid2, _data, errorResult;
374
374
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
375
375
  while (1) switch (_context3.prev = _context3.next) {
376
376
  case 0:
@@ -449,7 +449,7 @@ var ElementController = /*#__PURE__*/function () {
449
449
  _context3.next = 22;
450
450
  break;
451
451
  }
452
- params.handleAction = (submitParams === null || submitParams === void 0 ? void 0 : submitParams.handleAction) || false;
452
+ params.handleAction = (_submitParams$handleA = submitParams === null || submitParams === void 0 ? void 0 : submitParams.handleAction) !== null && _submitParams$handleA !== void 0 ? _submitParams$handleA : true;
453
453
  _context3.next = 18;
454
454
  return _this3.onValidateAndSubmitPay(_this3.elementProcessors[ElementType.payment].eventCenter, ElementPaymentMethod.PAYMENT_ELEMENT, params);
455
455
  case 18:
@@ -261,13 +261,20 @@ export interface AddressSubmitData {
261
261
  shippingId: string;
262
262
  actionFlag?: 'I' | 'U' | 'D';
263
263
  }
264
+ export interface HandleAction {
265
+ threeD?: boolean;
266
+ callApp?: boolean;
267
+ pageRedirect?: boolean;
268
+ qrCode?: boolean;
269
+ }
270
+ export type HandleActionType = boolean | HandleAction;
264
271
  export interface SubmitFuncParams {
265
- handleAction?: boolean;
272
+ handleAction?: HandleActionType;
266
273
  }
267
274
  export interface SubmitServiceParams extends PaymentSubmitData {
268
275
  accountInfo: AuthSubmitData['accountInfo'];
269
276
  shipping?: AddressSubmitData;
270
- handleAction?: boolean;
277
+ handleAction?: HandleActionType;
271
278
  }
272
279
  interface SubmitResultActionForm extends ActionForm {
273
280
  paymentCodeExpireTime: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1766664288-dev.0",
3
+ "version": "0.0.1766664288-dev.2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",