zmp-sdk 2.45.0-beta.2 → 2.45.0
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/apis/apis/payment/createOrder.js +1 -1
- package/apis/apis/showFunctionButtonWidget.js +1 -1
- package/apis/apis/showOAWidget.js +1 -1
- package/apis/common/apis/general/payment/createOrder.js +1 -1
- package/apis/constants.js +1 -1
- package/apis/index.d.ts +15 -11
- package/apis/package.json.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +15 -11
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +3 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -982,10 +982,7 @@ declare enum Events {
|
|
|
982
982
|
* * Lưu ý: Event sẽ được gửi khi người dùng hoàn tất hoặc hủy quy trình thanh toán.
|
|
983
983
|
* * Đối tác cần sử dụng API checkTransaction để kiểm tra trạng thái thanh toán mới nhất.
|
|
984
984
|
*
|
|
985
|
-
*
|
|
986
|
-
*
|
|
987
|
-
* ```tsx
|
|
988
|
-
* ```
|
|
985
|
+
* @link https://mini.zalo.me/documents/checkout-sdk/integration-process/overview/receive-transaction-ma/
|
|
989
986
|
* */
|
|
990
987
|
PaymentDone = "action.payment.done",
|
|
991
988
|
PaymentClose = "action.payment.close",
|
|
@@ -3277,6 +3274,7 @@ declare const createOrderArgs: ZodObject<{
|
|
|
3277
3274
|
amount: ZodUnion<[ZodString, ZodNumber]>;
|
|
3278
3275
|
item: ZodArray<ZodRecord<ZodString, ZodAny>, "many">;
|
|
3279
3276
|
desc: ZodString;
|
|
3277
|
+
mac: ZodString;
|
|
3280
3278
|
extradata: ZodOptional<ZodAny>;
|
|
3281
3279
|
payload: ZodOptional<ZodAny>;
|
|
3282
3280
|
method: ZodOptional<ZodUnion<[ZodString, ZodObject<{
|
|
@@ -3289,7 +3287,6 @@ declare const createOrderArgs: ZodObject<{
|
|
|
3289
3287
|
id: string;
|
|
3290
3288
|
isCustom: boolean;
|
|
3291
3289
|
}>]>>;
|
|
3292
|
-
mac: ZodOptional<ZodString>;
|
|
3293
3290
|
}, "strip", ZodTypeAny, {
|
|
3294
3291
|
method?: string | {
|
|
3295
3292
|
id: string;
|
|
@@ -3297,10 +3294,10 @@ declare const createOrderArgs: ZodObject<{
|
|
|
3297
3294
|
} | undefined;
|
|
3298
3295
|
extradata?: any;
|
|
3299
3296
|
payload?: any;
|
|
3300
|
-
mac?: string | undefined;
|
|
3301
3297
|
desc: string;
|
|
3302
3298
|
amount: string | number;
|
|
3303
3299
|
item: Record<string, any>[];
|
|
3300
|
+
mac: string;
|
|
3304
3301
|
}, {
|
|
3305
3302
|
method?: string | {
|
|
3306
3303
|
id: string;
|
|
@@ -3308,10 +3305,10 @@ declare const createOrderArgs: ZodObject<{
|
|
|
3308
3305
|
} | undefined;
|
|
3309
3306
|
extradata?: any;
|
|
3310
3307
|
payload?: any;
|
|
3311
|
-
mac?: string | undefined;
|
|
3312
3308
|
desc: string;
|
|
3313
3309
|
amount: string | number;
|
|
3314
3310
|
item: Record<string, any>[];
|
|
3311
|
+
mac: string;
|
|
3315
3312
|
}>[];
|
|
3316
3313
|
/**
|
|
3317
3314
|
* Tạo yêu cầu thanh toán, mở giao diện chọn phương thức thanh toán
|
|
@@ -3762,15 +3759,20 @@ declare const showOAWidgetArgs: ZodObject<{
|
|
|
3762
3759
|
guidingText: ZodOptional<ZodString>;
|
|
3763
3760
|
color: ZodOptional<ZodString>;
|
|
3764
3761
|
onStatusChange: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
|
|
3765
|
-
|
|
3762
|
+
onError: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
|
|
3763
|
+
}, "strip", ZodAny, {
|
|
3764
|
+
[x: string]: any;
|
|
3766
3765
|
color?: string | undefined;
|
|
3767
3766
|
guidingText?: string | undefined;
|
|
3768
3767
|
onStatusChange?: ((...args: unknown[]) => unknown) | undefined;
|
|
3768
|
+
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3769
3769
|
id: string;
|
|
3770
3770
|
}, {
|
|
3771
|
+
[x: string]: any;
|
|
3771
3772
|
color?: string | undefined;
|
|
3772
3773
|
guidingText?: string | undefined;
|
|
3773
3774
|
onStatusChange?: ((...args: unknown[]) => unknown) | undefined;
|
|
3775
|
+
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3774
3776
|
id: string;
|
|
3775
3777
|
}>[];
|
|
3776
3778
|
declare function showOAWidget(args: AsyncVoidCallback & TypeOf<(typeof showOAWidgetArgs)[0]>): Promise<void>;
|
|
@@ -3783,19 +3785,21 @@ declare const showFunctionButtonWidgetArgs: ZodObject<{
|
|
|
3783
3785
|
disabled: ZodOptional<ZodBoolean>;
|
|
3784
3786
|
onDataReceived: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
|
|
3785
3787
|
onError: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
|
|
3786
|
-
}, "strip",
|
|
3788
|
+
}, "strip", ZodAny, {
|
|
3789
|
+
[x: string]: any;
|
|
3787
3790
|
color?: string | undefined;
|
|
3791
|
+
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3788
3792
|
disabled?: boolean | undefined;
|
|
3789
3793
|
onDataReceived?: ((...args: unknown[]) => unknown) | undefined;
|
|
3790
|
-
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3791
3794
|
text: string;
|
|
3792
3795
|
type: string;
|
|
3793
3796
|
id: string;
|
|
3794
3797
|
}, {
|
|
3798
|
+
[x: string]: any;
|
|
3795
3799
|
color?: string | undefined;
|
|
3800
|
+
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3796
3801
|
disabled?: boolean | undefined;
|
|
3797
3802
|
onDataReceived?: ((...args: unknown[]) => unknown) | undefined;
|
|
3798
|
-
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3799
3803
|
text: string;
|
|
3800
3804
|
type: string;
|
|
3801
3805
|
id: string;
|