@alipay/ams-checkout 0.0.1784542444-dev.6 → 0.0.1784542444-dev.7
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/ams-checkout.js +3 -3
- package/dist/ams-checkout.min.js +1 -1
- package/dist/ams-checkout.min.js.map +1 -1
- package/esm/config/index.js +1 -1
- package/esm/core/component/element/modernElementController/index.js +2 -2
- package/esm/modern/tools.js +1 -1
- package/esm/util/logger.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +14 -0
- package/types.untrimmed.d.ts +14 -0
package/esm/util/logger.js
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -6892,6 +6892,15 @@ export declare interface PaymentAppConfig extends BaseAppearance<PaymentAppearan
|
|
|
6892
6892
|
/* Excluded from this release type: _requestConfig */
|
|
6893
6893
|
/* Excluded from this release type: logMetaData */
|
|
6894
6894
|
/* Excluded from this release type: heightOfVisible */
|
|
6895
|
+
/**
|
|
6896
|
+
* Amount & Currency
|
|
6897
|
+
*
|
|
6898
|
+
* Only effective via `updateConfig({ amount })` at runtime.
|
|
6899
|
+
*/
|
|
6900
|
+
amount?: {
|
|
6901
|
+
currency: string;
|
|
6902
|
+
value: string;
|
|
6903
|
+
};
|
|
6895
6904
|
}
|
|
6896
6905
|
|
|
6897
6906
|
/**
|
|
@@ -6909,8 +6918,13 @@ export declare type PaymentAppearance = PickAppearance<{
|
|
|
6909
6918
|
*/
|
|
6910
6919
|
export declare class PaymentElement extends BaseMainElement<PaymentElementConfig, PaymentElementEvents> {
|
|
6911
6920
|
static elementType: string;
|
|
6921
|
+
private _paymentInProgress;
|
|
6912
6922
|
constructor(name: string, config: PaymentElementConfig);
|
|
6913
6923
|
/* Excluded from this release type: setup */
|
|
6924
|
+
/**
|
|
6925
|
+
* @description Update payment element configuration with amount validation
|
|
6926
|
+
*/
|
|
6927
|
+
updateConfig(newConfig: Pick<PaymentAppConfig, 'amount'>): Promise<PaymentElementEvents['OPENSDK@UPDATE_CONFIG_REPLY']>;
|
|
6914
6928
|
/* Excluded from this release type: submit */
|
|
6915
6929
|
protected focus(): void;
|
|
6916
6930
|
protected blur(): void;
|
package/types.untrimmed.d.ts
CHANGED
|
@@ -7346,6 +7346,15 @@ export declare interface PaymentAppConfig extends BaseAppearance<PaymentAppearan
|
|
|
7346
7346
|
* @internal 内部使用,无需用户传递,高度信息
|
|
7347
7347
|
*/
|
|
7348
7348
|
heightOfVisible?: number;
|
|
7349
|
+
/**
|
|
7350
|
+
* Amount & Currency
|
|
7351
|
+
*
|
|
7352
|
+
* Only effective via `updateConfig({ amount })` at runtime.
|
|
7353
|
+
*/
|
|
7354
|
+
amount?: {
|
|
7355
|
+
currency: string;
|
|
7356
|
+
value: string;
|
|
7357
|
+
};
|
|
7349
7358
|
}
|
|
7350
7359
|
|
|
7351
7360
|
/**
|
|
@@ -7363,11 +7372,16 @@ export declare type PaymentAppearance = PickAppearance<{
|
|
|
7363
7372
|
*/
|
|
7364
7373
|
export declare class PaymentElement extends BaseMainElement<PaymentElementConfig, PaymentElementEvents> {
|
|
7365
7374
|
static elementType: string;
|
|
7375
|
+
private _paymentInProgress;
|
|
7366
7376
|
constructor(name: string, config: PaymentElementConfig);
|
|
7367
7377
|
/**
|
|
7368
7378
|
* @internal
|
|
7369
7379
|
*/
|
|
7370
7380
|
setup(): Promise<Partial<PaymentAppConfig> | undefined>;
|
|
7381
|
+
/**
|
|
7382
|
+
* @description Update payment element configuration with amount validation
|
|
7383
|
+
*/
|
|
7384
|
+
updateConfig(newConfig: Pick<PaymentAppConfig, 'amount'>): Promise<PaymentElementEvents['OPENSDK@UPDATE_CONFIG_REPLY']>;
|
|
7371
7385
|
/**
|
|
7372
7386
|
* @internal
|
|
7373
7387
|
*/
|