@alipay/ams-checkout
Advanced tools
Comparing version 0.0.1719907614-dev.0 to 0.0.1720423407-dev.0
@@ -17,2 +17,5 @@ /** | ||
} | ||
export declare class AMSAutoDebitPay extends AMSCheckout { | ||
constructor(options: IoptionsParams); | ||
} | ||
export declare class AMSEasyPay extends AMSCheckout { | ||
@@ -19,0 +22,0 @@ constructor(options: IoptionsParams); |
@@ -52,5 +52,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
}(AMSCheckout); | ||
export var AMSEasyPay = /*#__PURE__*/function (_AMSCheckout2) { | ||
_inherits(AMSEasyPay, _AMSCheckout2); | ||
var _super3 = _createSuper(AMSEasyPay); | ||
export var AMSAutoDebitPay = /*#__PURE__*/function (_AMSCheckout2) { | ||
_inherits(AMSAutoDebitPay, _AMSCheckout2); | ||
var _super3 = _createSuper(AMSAutoDebitPay); | ||
function AMSAutoDebitPay(options) { | ||
_classCallCheck(this, AMSAutoDebitPay); | ||
var _options = Object.assign({}, options, { | ||
product: productSceneEnum.AUTO_DEBIT_PAY | ||
}); | ||
return _super3.call(this, _options, [componentSignEnum.AUTO_DEBIT_PAY_WALLET]); | ||
} | ||
return _createClass(AMSAutoDebitPay); | ||
}(AMSCheckout); | ||
export var AMSEasyPay = /*#__PURE__*/function (_AMSCheckout3) { | ||
_inherits(AMSEasyPay, _AMSCheckout3); | ||
var _super4 = _createSuper(AMSEasyPay); | ||
function AMSEasyPay(options) { | ||
@@ -80,9 +92,9 @@ _classCallCheck(this, AMSEasyPay); | ||
} | ||
return _super3.call(this, _options, [componentSignEnum.EASY_PAY_WALLET], currentProductSceneVersion); | ||
return _super4.call(this, _options, [componentSignEnum.EASY_PAY_WALLET], currentProductSceneVersion); | ||
} | ||
return _createClass(AMSEasyPay); | ||
}(AMSCheckout); | ||
export var AMSCashierPayment = /*#__PURE__*/function (_AMSCheckout3) { | ||
_inherits(AMSCashierPayment, _AMSCheckout3); | ||
var _super4 = _createSuper(AMSCashierPayment); | ||
export var AMSCashierPayment = /*#__PURE__*/function (_AMSCheckout4) { | ||
_inherits(AMSCashierPayment, _AMSCheckout4); | ||
var _super5 = _createSuper(AMSCashierPayment); | ||
function AMSCashierPayment(options) { | ||
@@ -112,9 +124,9 @@ _classCallCheck(this, AMSCashierPayment); | ||
} | ||
return _super4.call(this, _options, currentChannelType); | ||
return _super5.call(this, _options, currentChannelType); | ||
} | ||
return _createClass(AMSCashierPayment); | ||
}(AMSCheckout); | ||
export var AMSVaulting = /*#__PURE__*/function (_AMSCheckout4) { | ||
_inherits(AMSVaulting, _AMSCheckout4); | ||
var _super5 = _createSuper(AMSVaulting); | ||
export var AMSVaulting = /*#__PURE__*/function (_AMSCheckout5) { | ||
_inherits(AMSVaulting, _AMSCheckout5); | ||
var _super6 = _createSuper(AMSVaulting); | ||
function AMSVaulting(options) { | ||
@@ -125,3 +137,3 @@ _classCallCheck(this, AMSVaulting); | ||
}); | ||
return _super5.call(this, _options, [componentSignEnum.CASHIER_PAYMENT_CARD]); | ||
return _super6.call(this, _options, [componentSignEnum.CASHIER_PAYMENT_CARD]); | ||
} | ||
@@ -128,0 +140,0 @@ return _createClass(AMSVaulting); |
@@ -42,3 +42,3 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
if (!appVersion) { | ||
appVersion = getLastAppVersion(sdkVersion + productScene); | ||
appVersion = getLastAppVersion(productScene); | ||
return appVersion; | ||
@@ -48,3 +48,3 @@ } | ||
if (_extendInfo) { | ||
setLastAppVersion(sdkVersion + productScene, appVersion); | ||
setLastAppVersion(productScene, appVersion); | ||
} | ||
@@ -57,3 +57,3 @@ return appVersion; | ||
var getFinalProductSceneVersion = function getFinalProductSceneVersion(componentSign, productSceneVersion) { | ||
var signSupportMap = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, componentSignEnum.NONE, ['']), componentSignEnum.AUTO_DEBIT_WALLET, ['1.0']), componentSignEnum.CASHIER_PAYMENT_BANK, ['1.0']), componentSignEnum.CASHIER_PAYMENT_CARD, ['1.0']), componentSignEnum.CASHIER_PAYMENT_APM, ['1.0']), componentSignEnum.EASY_PAY_WALLET, ['1.0', '2.0']), componentSignEnum.EASY_PAY_APM, ['2.0']), componentSignEnum.VAULTING_CARD, ['1.0']); | ||
var signSupportMap = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, componentSignEnum.NONE, ['']), componentSignEnum.AUTO_DEBIT_WALLET, ['1.0']), componentSignEnum.AUTO_DEBIT_PAY_WALLET, ['']), componentSignEnum.CASHIER_PAYMENT_BANK, ['1.0']), componentSignEnum.CASHIER_PAYMENT_CARD, ['1.0']), componentSignEnum.CASHIER_PAYMENT_APM, ['1.0']), componentSignEnum.EASY_PAY_WALLET, ['1.0', '2.0']), componentSignEnum.EASY_PAY_APM, ['2.0']), componentSignEnum.VAULTING_CARD, ['1.0']); | ||
var supportProductSceneVersion = signSupportMap[componentSign]; | ||
@@ -60,0 +60,0 @@ // 从左到右,从旧到新 |
@@ -50,2 +50,3 @@ /** | ||
'AUTO_DEBIT_WALLET' = "AUTO_DEBIT_WALLET", | ||
'AUTO_DEBIT_PAY_WALLET' = "AUTO_DEBIT_PAY_WALLET", | ||
'NONE' = "NONE", | ||
@@ -58,2 +59,3 @@ 'VAULTING_CARD' = "VAULTING_CARD" | ||
'AUTO_DEBIT' = "AUTO_DEBIT", | ||
'AUTO_DEBIT_PAY' = "AUTO_DEBIT_PAY", | ||
'VAULTING' = "VAULTING", | ||
@@ -60,0 +62,0 @@ 'FLASH_BUY' = "FLASH_BUY", |
@@ -25,2 +25,3 @@ /** | ||
componentSignEnum["AUTO_DEBIT_WALLET"] = "AUTO_DEBIT_WALLET"; | ||
componentSignEnum["AUTO_DEBIT_PAY_WALLET"] = "AUTO_DEBIT_PAY_WALLET"; | ||
componentSignEnum["NONE"] = "NONE"; | ||
@@ -34,2 +35,3 @@ componentSignEnum["VAULTING_CARD"] = "VAULTING_CARD"; | ||
productSceneEnum["AUTO_DEBIT"] = "AUTO_DEBIT"; | ||
productSceneEnum["AUTO_DEBIT_PAY"] = "AUTO_DEBIT_PAY"; | ||
productSceneEnum["VAULTING"] = "VAULTING"; | ||
@@ -36,0 +38,0 @@ productSceneEnum["FLASH_BUY"] = "FLASH_BUY"; |
@@ -30,11 +30,11 @@ export declare function isWebPlatform(platform?: string): boolean; | ||
* 获取保存的加载版本 | ||
* @param versionKey | ||
* @param productScene | ||
* @returns | ||
*/ | ||
export declare const getLastAppVersion: (versionKey: string) => string; | ||
export declare const getLastAppVersion: (productScene: string) => string; | ||
/** | ||
* 保存指定场景的加载版本供下次使用 | ||
* @param versionKey | ||
* @param productScene | ||
* @returns | ||
*/ | ||
export declare const setLastAppVersion: (versionKey: string, appVersion: string) => boolean; | ||
export declare const setLastAppVersion: (productScene: string, appVersion: string) => boolean; |
@@ -92,8 +92,8 @@ import { v4 as uuid } from 'uuid'; | ||
* 获取保存的加载版本 | ||
* @param versionKey | ||
* @param productScene | ||
* @returns | ||
*/ | ||
export var getLastAppVersion = function getLastAppVersion(versionKey) { | ||
export var getLastAppVersion = function getLastAppVersion(productScene) { | ||
try { | ||
var key = "Antom_".concat(versionKey, "_LastAppVersion"); | ||
var key = "Antom_".concat(productScene, "_LastAppVersion"); | ||
return getStorageString(key, ''); | ||
@@ -106,8 +106,8 @@ } catch (error) { | ||
* 保存指定场景的加载版本供下次使用 | ||
* @param versionKey | ||
* @param productScene | ||
* @returns | ||
*/ | ||
export var setLastAppVersion = function setLastAppVersion(versionKey, appVersion) { | ||
export var setLastAppVersion = function setLastAppVersion(productScene, appVersion) { | ||
try { | ||
var key = "Antom_".concat(versionKey, "_LastAppVersion"); | ||
var key = "Antom_".concat(productScene, "_LastAppVersion"); | ||
return setStorageString(key, appVersion); | ||
@@ -114,0 +114,0 @@ } catch (error) { |
{ | ||
"name": "@alipay/ams-checkout", | ||
"version": "0.0.1719907614-dev.0", | ||
"version": "0.0.1720423407-dev.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected potential security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2704194
11433
5