zmp-sdk 2.37.1 → 2.37.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.
package/index.d.ts CHANGED
@@ -1405,6 +1405,9 @@ type ChooseImageReturns = {
1405
1405
  type CreateOrderReturns = {
1406
1406
  orderId: string;
1407
1407
  };
1408
+ type SelectPaymentMethodReturns = {
1409
+ method: string;
1410
+ };
1408
1411
  type CheckTransactionReturns = {
1409
1412
  err: number;
1410
1413
  msg: string;
@@ -1414,6 +1417,8 @@ type CheckTransactionReturns = {
1414
1417
  transTime: string;
1415
1418
  createdAt: string;
1416
1419
  path?: string;
1420
+ method: string;
1421
+ isCustom: boolean;
1417
1422
  };
1418
1423
  type CreateOrderIAPReturns = {
1419
1424
  orderId: string;
@@ -2274,24 +2279,51 @@ declare const createOrderArgs: ZodObject<{
2274
2279
  desc: ZodString;
2275
2280
  extradata: ZodOptional<ZodAny>;
2276
2281
  payload: ZodOptional<ZodAny>;
2277
- method: ZodOptional<ZodEnum<["MOMO", "ZALOPAY", "MOMO_SANDBOX", "ZALOPAY_SANDBOX", "CC", "CC_SANDBOX", "ATM", "ATM_SANDBOX", "VNPAY", "VNPAY_SANDBOX"]>>;
2282
+ method: ZodOptional<ZodUnion<[ZodString, ZodObject<{
2283
+ id: ZodString;
2284
+ isCustom: ZodBoolean;
2285
+ }, "strip", ZodTypeAny, {
2286
+ id: string;
2287
+ isCustom: boolean;
2288
+ }, {
2289
+ id: string;
2290
+ isCustom: boolean;
2291
+ }>]>>;
2292
+ mac: ZodOptional<ZodString>;
2278
2293
  }, "strip", ZodTypeAny, {
2279
- method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
2294
+ method?: string | {
2295
+ id: string;
2296
+ isCustom: boolean;
2297
+ } | undefined;
2280
2298
  extradata?: any;
2281
2299
  payload?: any;
2300
+ mac?: string | undefined;
2282
2301
  desc: string;
2283
2302
  amount: string | number;
2284
2303
  item: Record<string, any>[];
2285
2304
  }, {
2286
- method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
2305
+ method?: string | {
2306
+ id: string;
2307
+ isCustom: boolean;
2308
+ } | undefined;
2287
2309
  extradata?: any;
2288
2310
  payload?: any;
2311
+ mac?: string | undefined;
2289
2312
  desc: string;
2290
2313
  amount: string | number;
2291
2314
  item: Record<string, any>[];
2292
2315
  }>[];
2293
2316
  declare function createOrder(args: AsyncCallback<CreateOrderReturns> & TypeOf<(typeof createOrderArgs)[0]>): Promise<CreateOrderReturns>;
2294
2317
 
2318
+ declare const selectPaymentMethodArgs: ZodOptional<ZodObject<{
2319
+ method: ZodOptional<ZodString>;
2320
+ }, "strip", ZodTypeAny, {
2321
+ method?: string | undefined;
2322
+ }, {
2323
+ method?: string | undefined;
2324
+ }>>[];
2325
+ declare function selectPaymentMethod(args: AsyncCallback<SelectPaymentMethodReturns> & TypeOf<(typeof selectPaymentMethodArgs)[0]>): Promise<SelectPaymentMethodReturns>;
2326
+
2295
2327
  declare const checkTransactionArgs: ZodObject<{
2296
2328
  data: ZodUnion<[ZodString, ZodRecord<ZodString, ZodString>]>;
2297
2329
  }, "strip", ZodTypeAny, {
@@ -2596,6 +2628,7 @@ declare const payment: {
2596
2628
  createOrder: typeof createOrder;
2597
2629
  checkTransaction: typeof checkTransaction;
2598
2630
  createOrderIAP: typeof createOrderIAP;
2631
+ selectPaymentMethod: typeof selectPaymentMethod;
2599
2632
  };
2600
2633
 
2601
- export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthenResponse, AuthenScopeType, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanQRCodeReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, SystemInfo, TextAlignType, VibrateType, addRating, authorize, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, loadAd, login, minimizeApp, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanQRCode, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
2634
+ export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthenResponse, AuthenScopeType, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, SystemInfo, TextAlignType, VibrateType, addRating, authorize, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, loadAd, login, minimizeApp, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };