zmp-sdk 2.49.4 → 2.50.0-beta.1
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/index.js +1 -1
- package/apis/apis/payment/openPaymentLink.js +1 -0
- package/apis/common/apis/general/openWebview.js +1 -1
- package/apis/index.d.ts +29 -0
- package/apis/package.json.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +31 -0
- 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
|
@@ -2493,6 +2493,33 @@ declare const eventTypeType: ZodEnum<["APP_INITIALIZING", "APP_READY"]>;
|
|
|
2493
2493
|
declare const payloadType: ZodAny;
|
|
2494
2494
|
declare function logEvent(eventType: TypeOf<typeof eventTypeType>, payload: TypeOf<typeof payloadType>): void;
|
|
2495
2495
|
|
|
2496
|
+
declare const openPaymentLinkArgs: ZodObject<{
|
|
2497
|
+
url: ZodString;
|
|
2498
|
+
config: ZodOptional<ZodObject<{
|
|
2499
|
+
style: ZodOptional<ZodDefault<ZodEnum<["bottomSheet", "normal"]>>>;
|
|
2500
|
+
leftButton: ZodOptional<ZodDefault<ZodEnum<["back", "none"]>>>;
|
|
2501
|
+
}, "strip", ZodTypeAny, {
|
|
2502
|
+
style?: "normal" | "bottomSheet" | undefined;
|
|
2503
|
+
leftButton?: "none" | "back" | undefined;
|
|
2504
|
+
}, {
|
|
2505
|
+
style?: "normal" | "bottomSheet" | undefined;
|
|
2506
|
+
leftButton?: "none" | "back" | undefined;
|
|
2507
|
+
}>>;
|
|
2508
|
+
}, "strip", ZodTypeAny, {
|
|
2509
|
+
config?: {
|
|
2510
|
+
style?: "normal" | "bottomSheet" | undefined;
|
|
2511
|
+
leftButton?: "none" | "back" | undefined;
|
|
2512
|
+
} | undefined;
|
|
2513
|
+
url: string;
|
|
2514
|
+
}, {
|
|
2515
|
+
config?: {
|
|
2516
|
+
style?: "normal" | "bottomSheet" | undefined;
|
|
2517
|
+
leftButton?: "none" | "back" | undefined;
|
|
2518
|
+
} | undefined;
|
|
2519
|
+
url: string;
|
|
2520
|
+
}>[];
|
|
2521
|
+
declare function openPaymentLink(args: AsyncCallback<OpenWebviewReturns> & TypeOf<(typeof openPaymentLinkArgs)[0]>): Promise<void>;
|
|
2522
|
+
|
|
2496
2523
|
/**
|
|
2497
2524
|
* Lấy thông tin của cache theo cơ chế đồng bộ.
|
|
2498
2525
|
*
|
|
@@ -5579,6 +5606,7 @@ declare const Payment: {
|
|
|
5579
5606
|
checkTransaction: typeof checkTransaction;
|
|
5580
5607
|
createOrderIAP: typeof createOrderIAP;
|
|
5581
5608
|
selectPaymentMethod: typeof selectPaymentMethod;
|
|
5609
|
+
openPaymentLink: typeof openPaymentLink;
|
|
5582
5610
|
};
|
|
5583
5611
|
declare const CheckoutSDK: {
|
|
5584
5612
|
purchase: typeof purchase;
|
|
@@ -5586,6 +5614,7 @@ declare const CheckoutSDK: {
|
|
|
5586
5614
|
checkTransaction: typeof checkTransaction;
|
|
5587
5615
|
createOrderIAP: typeof createOrderIAP;
|
|
5588
5616
|
selectPaymentMethod: typeof selectPaymentMethod;
|
|
5617
|
+
openPaymentLink: typeof openPaymentLink;
|
|
5589
5618
|
};
|
|
5590
5619
|
|
|
5591
5620
|
declare const downloadFileArgs: ZodOptional<ZodObject<{
|
|
@@ -5918,6 +5947,7 @@ declare const otherApis: {
|
|
|
5918
5947
|
checkTransaction: typeof checkTransaction;
|
|
5919
5948
|
createOrderIAP: typeof createOrderIAP;
|
|
5920
5949
|
selectPaymentMethod: typeof selectPaymentMethod;
|
|
5950
|
+
openPaymentLink: typeof openPaymentLink;
|
|
5921
5951
|
};
|
|
5922
5952
|
CheckoutSDK: {
|
|
5923
5953
|
purchase: typeof purchase;
|
|
@@ -5925,6 +5955,7 @@ declare const otherApis: {
|
|
|
5925
5955
|
checkTransaction: typeof checkTransaction;
|
|
5926
5956
|
createOrderIAP: typeof createOrderIAP;
|
|
5927
5957
|
selectPaymentMethod: typeof selectPaymentMethod;
|
|
5958
|
+
openPaymentLink: typeof openPaymentLink;
|
|
5928
5959
|
};
|
|
5929
5960
|
downloadFile: typeof downloadFile;
|
|
5930
5961
|
trackingManager: {
|