@paypay/mini-app-js-sdk 2.15.0 → 2.16.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.
Files changed (89) hide show
  1. package/dist/client/index.d.ts +11 -6
  2. package/dist/composition-api/useGetUserAddress.d.ts +1 -1
  3. package/dist/composition-api/useInpuAddress.d.ts +1 -1
  4. package/dist/composition-api/useKycPassport.d.ts +1 -1
  5. package/dist/composition-api/useMakePayment.d.ts +1 -1
  6. package/dist/composition-api/useRegisterEmail.d.ts +2 -1
  7. package/dist/composition-api/useShowUpdateWarning.d.ts +1 -1
  8. package/dist/composition-api/useShowUpdateWarningKycPassport.d.ts +2 -2
  9. package/dist/composition-api/useTopup.d.ts +1 -1
  10. package/dist/core/coreUtils.d.ts +3 -2
  11. package/dist/core/sentry.d.ts +1 -0
  12. package/dist/environment-variables.d.ts +5 -0
  13. package/dist/mini-app-api.d.ts +26 -4
  14. package/dist/mini-app-js-sdk.browser.js +1 -1
  15. package/dist/mini-app-js-sdk.es.js +5 -16
  16. package/dist/model/OPAErrorCodes.d.ts +4 -0
  17. package/dist/model/bridge/checkAccessToken.d.ts +4 -2
  18. package/dist/model/bridge/checkPaymentMethod.d.ts +1 -1
  19. package/dist/model/bridge/getAuthStatus.d.ts +1 -1
  20. package/dist/model/bridge/getBalance.d.ts +1 -1
  21. package/dist/model/bridge/getBankInfo.d.ts +2 -2
  22. package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
  23. package/dist/model/bridge/getKycInformation.d.ts +1 -1
  24. package/dist/model/bridge/getKycPassportInfo.d.ts +1 -1
  25. package/dist/model/bridge/getLoginUrl.d.ts +2 -1
  26. package/dist/model/bridge/getPermissionStatus.d.ts +1 -1
  27. package/dist/model/bridge/getPlatformInformation.d.ts +2 -2
  28. package/dist/model/bridge/getTopBarHeight.d.ts +2 -2
  29. package/dist/model/bridge/getTransactionInfo.d.ts +1 -1
  30. package/dist/model/bridge/getTransactions.d.ts +1 -1
  31. package/dist/model/bridge/getUAID.d.ts +2 -2
  32. package/dist/model/bridge/getUserAddress.d.ts +1 -1
  33. package/dist/model/bridge/getUserLocation.d.ts +1 -1
  34. package/dist/model/bridge/getUserPaymentFeatureSettings.d.ts +1 -1
  35. package/dist/model/bridge/getUserProfile.d.ts +2 -2
  36. package/dist/model/bridge/init.d.ts +1 -1
  37. package/dist/model/bridge/initKycPassport.d.ts +1 -1
  38. package/dist/model/bridge/inputAddress.d.ts +1 -1
  39. package/dist/model/bridge/logout.d.ts +2 -2
  40. package/dist/model/bridge/makePayment.d.ts +1 -1
  41. package/dist/model/bridge/openWebview.d.ts +1 -1
  42. package/dist/model/bridge/registerEmail.d.ts +2 -1
  43. package/dist/model/bridge/registerKyc.d.ts +1 -1
  44. package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
  45. package/dist/model/bridge/startMultiFactorAuth.d.ts +1 -1
  46. package/dist/model/bridge/topup.d.ts +1 -1
  47. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +1 -1
  48. package/dist/model/makePayment.d.ts +18 -17
  49. package/dist/model/miniAppError.d.ts +2 -1
  50. package/dist/model/permission.d.ts +2 -23
  51. package/dist/package/button/index.d.ts +2 -2
  52. package/dist/resources/en.d.ts +2 -0
  53. package/dist/resources/ja.d.ts +2 -0
  54. package/dist/types/checkPaymentMethod.d.ts +20 -0
  55. package/dist/types/getAuthStatus.d.ts +22 -0
  56. package/dist/types/getBalance.d.ts +31 -0
  57. package/dist/types/getBankInfo.d.ts +32 -0
  58. package/dist/types/getDeviceInformation.d.ts +3 -0
  59. package/dist/types/getKycInformation.d.ts +50 -0
  60. package/dist/types/getKycPassportInfo.d.ts +21 -0
  61. package/dist/types/getPermissionStatus.d.ts +68 -0
  62. package/dist/types/getPlatformInformation.d.ts +7 -0
  63. package/dist/types/getTopBarHeight.d.ts +3 -0
  64. package/dist/types/getTransactionInfo.d.ts +32 -0
  65. package/dist/types/getTransactions.d.ts +16 -0
  66. package/dist/types/getUAID.d.ts +3 -0
  67. package/dist/types/getUserAddress.d.ts +39 -0
  68. package/dist/types/getUserLocation.d.ts +13 -0
  69. package/dist/types/getUserPaymentFeatureSettings.d.ts +16 -0
  70. package/dist/types/getUserProfile.d.ts +25 -0
  71. package/dist/types/init.d.ts +41 -0
  72. package/dist/types/initKycPassport.d.ts +12 -0
  73. package/dist/types/logout.d.ts +3 -0
  74. package/dist/types/makePayment.d.ts +46 -0
  75. package/dist/types/openWebview.d.ts +11 -0
  76. package/dist/types/registerEmail.d.ts +5 -0
  77. package/dist/types/registerKycParams.d.ts +8 -0
  78. package/dist/types/showUpdateWarning.d.ts +12 -0
  79. package/dist/types/startMultiFactorAuth.d.ts +10 -0
  80. package/dist/types/topup.d.ts +18 -0
  81. package/dist/types/verifyMultiFactorAuthResult.d.ts +15 -0
  82. package/dist/types.d.ts +10 -229
  83. package/dist/utils/analytics.d.ts +2 -1
  84. package/dist/utils/api.d.ts +7 -12
  85. package/dist/utils/getLanguage.d.ts +2 -0
  86. package/dist/utils/helper.d.ts +1 -1
  87. package/dist/utils/storage.d.ts +3 -2
  88. package/dist/views/registerPaymentFeatures/types.d.ts +4 -4
  89. package/package.json +2 -1
@@ -361,6 +361,7 @@ var MiniAppErrorType = /* @__PURE__ */ ((MiniAppErrorType2) => {
361
361
  MiniAppErrorType2["messageSendingFailed"] = "MESSAGE_SENDING_FAILED";
362
362
  MiniAppErrorType2["transactionNotFound"] = "TRANSACTION_NOT_FOUND";
363
363
  MiniAppErrorType2["unexpectedOperation"] = "UNEXPECTED_OP";
364
+ MiniAppErrorType2["merchantTimeout"] = "MERCHANT_TIMEOUT";
364
365
  return MiniAppErrorType2;
365
366
  })(MiniAppErrorType || {});
366
367
  function isIP(hostName) {
@@ -6207,8 +6208,8 @@ lodash.exports;
6207
6208
  function getRandomString() {
6208
6209
  return Math.random().toString(36).substring(7);
6209
6210
  }
6210
- const JS_SDK_VERSION = "2.15.0";
6211
- const REVISION = "8b1c417";
6211
+ const JS_SDK_VERSION = "2.16.0";
6212
+ const REVISION = "f1e177a";
6212
6213
  const coreBaseUrl = new URL("https://mini-app-sdk-core.paypay.ne.jp/");
6213
6214
  const CORE_IFRAME_ORIGIN = coreBaseUrl.origin;
6214
6215
  const CORE_IFRAME_URL = new URL(
@@ -6673,7 +6674,7 @@ function init(params) {
6673
6674
  const ott = url2.searchParams.get("one_time_token");
6674
6675
  const refreshToken = getRefreshToken();
6675
6676
  const codeVerifier = getCodeVerifier();
6676
- const clientVersion = "2.15.0";
6677
+ const clientVersion = "2.16.0";
6677
6678
  useAllFunctions = !!params.useAllFunctions;
6678
6679
  if (token || ott) {
6679
6680
  removeTokenFromUrl(url2);
@@ -6709,17 +6710,6 @@ function init(params) {
6709
6710
  complete();
6710
6711
  });
6711
6712
  }
6712
- function getAuthStatus(params) {
6713
- const url2 = window.location.href;
6714
- triggerPostMessageToCore(
6715
- PPFunctionName.getAuthStatus,
6716
- false,
6717
- params,
6718
- __spreadProps(__spreadValues({}, params), {
6719
- url: url2
6720
- })
6721
- );
6722
- }
6723
6713
  function verifyMultiFactorAuthResult(params) {
6724
6714
  const url2 = new URL(window.location.href);
6725
6715
  triggerPostMessageToCore(
@@ -7096,7 +7086,6 @@ const clientFunctions = {
7096
7086
  setStorageData,
7097
7087
  removeStorageData,
7098
7088
  getKycPassportInfo,
7099
- getAuthStatus,
7100
7089
  logout,
7101
7090
  getPaymentSettings
7102
7091
  };
@@ -7154,7 +7143,7 @@ function executePendingFunctionCalls() {
7154
7143
  }
7155
7144
  }
7156
7145
  executePendingFunctionCalls();
7157
- proxy.revision = "8b1c417";
7146
+ proxy.revision = "f1e177a";
7158
7147
  const client = proxy;
7159
7148
  window._pp = client;
7160
7149
  const miniAppSdk = client;
@@ -0,0 +1,4 @@
1
+ export declare enum OPAErrorCodes {
2
+ noKycUser = "NO_KYC_USER",
3
+ noPayoutMethod = "PAYMENT_NOT_FOUND"
4
+ }
@@ -1,3 +1,5 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- import { MiniAppResult } from '../../types';
3
- export declare function checkAccessToken(params: NativeParams<MiniAppResult>): void;
2
+ import { MiniAppStatusType } from '../miniAppStatus';
3
+ export declare function checkAccessToken(params: NativeParams<{
4
+ statusCode: MiniAppStatusType.validToken;
5
+ }>): void;
@@ -1,2 +1,2 @@
1
- import { CheckPaymentMethodParams } from '../../types';
1
+ import { CheckPaymentMethodParams } from '../../types/checkPaymentMethod';
2
2
  export declare function checkPaymentMethod(checkPayMethodParams: CheckPaymentMethodParams): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { GetAuthStatusParams } from '../../types';
1
+ import { GetAuthStatusParams } from '../../types/getAuthStatus';
2
2
  export declare function getAuthStatus(params: GetAuthStatusParams): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { GetBalanceParams } from '../../types';
1
+ import { GetBalanceParams } from '../../types/getBalance';
2
2
  export declare function getBalance(params: GetBalanceParams): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- import { MiniAppResult } from '../../types';
3
- export declare function getBankInfo(params: NativeParams<MiniAppResult>): void;
2
+ import { GetBankInfoResult } from '../../types/getBankInfo';
3
+ export declare function getBankInfo(params: NativeParams<GetBankInfoResult>): void;
@@ -1,3 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- import { MiniAppResult } from '../../types';
3
- export declare function getDeviceInformation(params: NativeParams<MiniAppResult>): void;
2
+ import { GetDeviceInformationResult } from '../../types/getDeviceInformation';
3
+ export declare function getDeviceInformation(params: NativeParams<GetDeviceInformationResult>): void;
@@ -1,2 +1,2 @@
1
- import { GetKycInformationParams } from '../../types';
1
+ import { GetKycInformationParams } from '../../types/getKycInformation';
2
2
  export declare function getKycInformation(params: GetKycInformationParams): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { GetKycPassportInfoParams } from '../../types';
1
+ import { GetKycPassportInfoParams } from '../../types/getKycPassportInfo';
2
2
  export declare function getKycPassportInfo(params: GetKycPassportInfoParams): Promise<void>;
@@ -1,4 +1,5 @@
1
- import { PKCEChallengeType, PostLogInRedirectParams } from '../../types';
1
+ import { PostLogInRedirectParams } from '../../types';
2
+ import { PKCEChallengeType } from '../../types/getAuthStatus';
2
3
  interface GetLoginUrlParams extends PostLogInRedirectParams {
3
4
  pkceCodeChallenge: PKCEChallengeType;
4
5
  scopes?: Array<string>;
@@ -1,2 +1,2 @@
1
- import { GetPermissionStatusParams } from '../../types';
1
+ import { GetPermissionStatusParams } from '../../types/getPermissionStatus';
2
2
  export declare function getPermissionStatus(params: GetPermissionStatusParams): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- import { MiniAppResult } from '../../types';
3
- export declare function getPlatformInformation(params: NativeParams<MiniAppResult>): Promise<void>;
2
+ import { GetPlatformInformationResult } from '../../types/getPlatformInformation';
3
+ export declare function getPlatformInformation(params: NativeParams<GetPlatformInformationResult>): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- import { MiniAppResult } from '../../types';
3
- export declare function getTopBarHeight(params: NativeParams<MiniAppResult>): void;
2
+ import { GetTopBarHeightResult } from '../../types/getTopBarHeight';
3
+ export declare function getTopBarHeight(params: NativeParams<GetTopBarHeightResult>): void;
@@ -1,2 +1,2 @@
1
- import { GetTransactionInfoParams } from '../../types';
1
+ import { GetTransactionInfoParams } from '../../types/getTransactionInfo';
2
2
  export declare function getTransactionInfo(params: GetTransactionInfoParams): Promise<void | undefined>;
@@ -1,2 +1,2 @@
1
- import { GetTransactionsParams } from '../../types';
1
+ import { GetTransactionsParams } from '../../types/getTransactions';
2
2
  export declare function getTransactions(params: GetTransactionsParams): Promise<void | undefined>;
@@ -1,3 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- import { MiniAppResult } from '../../types';
3
- export declare function getUAID(params: NativeParams<MiniAppResult>): void;
2
+ import { GetUAIDResult } from '../../types/getUAID';
3
+ export declare function getUAID(params: NativeParams<GetUAIDResult>): void;
@@ -1,2 +1,2 @@
1
- import { GetUserAddressParams } from '../../types';
1
+ import { GetUserAddressParams } from '../../types/getUserAddress';
2
2
  export declare function getUserAddress(params: GetUserAddressParams): void;
@@ -1,2 +1,2 @@
1
- import { GetUserLocationParams } from '../../types';
1
+ import { GetUserLocationParams } from '../../types/getUserLocation';
2
2
  export declare function getUserLocation(getUserLocationParams: GetUserLocationParams): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { GetUserPaymentFeatureSettingsParams } from '../../types';
1
+ import { GetUserPaymentFeatureSettingsParams } from '../../types/getUserPaymentFeatureSettings';
2
2
  export declare function getUserPaymentFeatureSettings(params: GetUserPaymentFeatureSettingsParams): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- import { MiniAppResult } from '../../types';
3
- export declare function getUserProfile(params: NativeParams<MiniAppResult>): Promise<void>;
2
+ import { GetUserProfileResult } from '../../types/getUserProfile';
3
+ export declare function getUserProfile(params: NativeParams<GetUserProfileResult>): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { InitParams } from '../../types';
1
+ import { InitParams } from '../../types/init';
2
2
  export declare function init(params: InitParams): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { InitKycPassportParams } from '../../types';
1
+ import { InitKycPassportParams } from '../../types/initKycPassport';
2
2
  export declare function initKycPassport(params: InitKycPassportParams): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { InputAddressParams } from '../../types';
1
+ import { InputAddressParams } from '../../types/getUserAddress';
2
2
  export declare function inputAddress(params: InputAddressParams): void;
@@ -1,3 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- import { MiniAppResult } from '../../types';
3
- export declare function logout(params: NativeParams<MiniAppResult>): void;
2
+ import { LogoutResult } from '../../types/logout';
3
+ export declare function logout(params: NativeParams<LogoutResult>): void;
@@ -1,2 +1,2 @@
1
- import { MakePaymentParams } from '../../types';
1
+ import { MakePaymentParams } from '../../types/makePayment';
2
2
  export declare const makePayment: (params: MakePaymentParams) => void;
@@ -1,3 +1,3 @@
1
- import { OpenWebviewParams } from '../../types';
1
+ import { OpenWebviewParams } from '../../types/openWebview';
2
2
  export declare function openWebview(openWebviewParams: OpenWebviewParams): void;
3
3
  export declare function openWebviewInternal(params: OpenWebviewParams): void;
@@ -1,2 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
- export declare function registerEmail(params: NativeParams<unknown>, allowsUpdate?: boolean): void;
2
+ import { RegisterEmailResult } from '../../types/registerEmail';
3
+ export declare function registerEmail(params: NativeParams<RegisterEmailResult>, allowsUpdate?: boolean): void;
@@ -1,2 +1,2 @@
1
- import { RegisterKycParams } from '../../types';
1
+ import { RegisterKycParams } from '../../types/registerKycParams';
2
2
  export declare function registerKyc(params: RegisterKycParams): void;
@@ -1,2 +1,2 @@
1
- import { ShowUpdateWarningParams } from '../../types';
1
+ import { ShowUpdateWarningParams } from '../../types/showUpdateWarning';
2
2
  export declare function showUpdateWarning(params: ShowUpdateWarningParams): void;
@@ -1,2 +1,2 @@
1
- import { StartMultiFactorAuthParams } from '../../types';
1
+ import { StartMultiFactorAuthParams } from '../../types/startMultiFactorAuth';
2
2
  export declare function startMultiFactorAuth(params: StartMultiFactorAuthParams): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { TopupParams } from '../../types';
1
+ import { TopupParams } from '../../types/topup';
2
2
  export declare function topup(params: TopupParams): void;
@@ -1,2 +1,2 @@
1
- import { VerifyMultiFactorAuthResultParams } from '../../types';
1
+ import { VerifyMultiFactorAuthResultParams } from '../../types/verifyMultiFactorAuthResult';
2
2
  export declare function verifyMultiFactorAuthResult(params: VerifyMultiFactorAuthResultParams): Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import { PPFetchResult } from '../utils/fetch';
2
2
  import { MiniAppErrorType } from './miniAppError';
3
- import { Amount, OrderItem } from '../types';
4
3
  import { UIComponentsError } from './uiComponents';
4
+ import { Amount, OrderItem } from '../types/makePayment';
5
5
  export interface PaymentIdQuery {
6
6
  merchant?: string;
7
7
  sourceInfoApp?: string;
@@ -35,15 +35,16 @@ export declare type Balance = {
35
35
  currency: 'JPY';
36
36
  usable: boolean;
37
37
  };
38
- export declare enum PaymentMethodType {
39
- WALLET = "WALLET",
40
- CREDIT_CARD = "CREDIT_CARD",
41
- BANK = "BANK",
42
- YMONEY_BANK = "YMONEY_BANK",
43
- SBID_CARRIER_BILLING = "SBID_CARRIER_BILLING",
44
- PAY_LATER = "PAY_LATER",
45
- PAY_LATER_CC = "PAY_LATER_CC"
46
- }
38
+ export declare const PaymentMethodName: {
39
+ readonly WALLET: "WALLET";
40
+ readonly CREDIT_CARD: "CREDIT_CARD";
41
+ readonly BANK: "BANK";
42
+ readonly YMONEY_BANK: "YMONEY_BANK";
43
+ readonly SBID_CARRIER_BILLING: "SBID_CARRIER_BILLING";
44
+ readonly PAY_LATER: "PAY_LATER";
45
+ readonly PAY_LATER_CC: "PAY_LATER_CC";
46
+ };
47
+ export declare type PaymentMethodNameType = (typeof PaymentMethodName)[keyof typeof PaymentMethodName];
47
48
  export interface PaymentState {
48
49
  appealDescription: AppealDescription | null;
49
50
  paymentMethods: PaymentMethod[];
@@ -53,7 +54,7 @@ export interface PaymentState {
53
54
  }
54
55
  declare type MethodBase = {
55
56
  paymentMethodId: string;
56
- paymentMethodType: PaymentMethodType;
57
+ paymentMethodType: PaymentMethodNameType;
57
58
  descriptionBannerInfo?: BannerInfo;
58
59
  walletInfo?: unknown;
59
60
  creditCardInfo?: unknown;
@@ -88,7 +89,7 @@ export declare type BannerInfo = {
88
89
  displayResponse?: UIComponentsError;
89
90
  };
90
91
  export declare type WalletMethod = MethodBase & {
91
- paymentMethodType: PaymentMethodType.WALLET;
92
+ paymentMethodType: 'WALLET';
92
93
  walletInfo?: {
93
94
  cashBackBalanceInfo?: Balance;
94
95
  cashBackExpirableBalanceInfo?: Balance;
@@ -137,7 +138,7 @@ export declare type CreditCardInfo = {
137
138
  paymentMethodStatusLabel?: string;
138
139
  };
139
140
  export declare type CreditMethod = MethodBase & {
140
- paymentMethodType: PaymentMethodType.CREDIT_CARD;
141
+ paymentMethodType: 'CREDIT_CARD';
141
142
  creditCardInfo?: CreditCardInfo;
142
143
  };
143
144
  export declare enum bankCode {
@@ -179,11 +180,11 @@ export declare type BankInfo = {
179
180
  showAmount?: boolean;
180
181
  };
181
182
  export declare type BankMethod = MethodBase & {
182
- paymentMethodType: PaymentMethodType.BANK | PaymentMethodType.YMONEY_BANK;
183
+ paymentMethodType: 'BANK' | 'YMONEY_BANK';
183
184
  bankInfo?: BankInfo;
184
185
  };
185
186
  export declare type SbidBankMethod = MethodBase & {
186
- paymentMethodType: PaymentMethodType.SBID_CARRIER_BILLING;
187
+ paymentMethodType: 'SBID_CARRIER_BILLING';
187
188
  sbidCarrierBillingInfo?: SbidBankInfo;
188
189
  };
189
190
  export declare type SbidBankInfo = {
@@ -191,7 +192,7 @@ export declare type SbidBankInfo = {
191
192
  paymentMethodStatusLabel?: string;
192
193
  };
193
194
  export declare type PayLaterCCMethod = MethodBase & {
194
- paymentMethodType: PaymentMethodType.PAY_LATER_CC;
195
+ paymentMethodType: 'PAY_LATER_CC';
195
196
  payLaterCcInfo?: PayLaterCCInfo;
196
197
  };
197
198
  export declare type PayLaterCCInfo = {
@@ -200,7 +201,7 @@ export declare type PayLaterCCInfo = {
200
201
  paymentMethodStatusLabel?: string;
201
202
  };
202
203
  declare type PayLaterMethod = MethodBase & {
203
- paymentMethodType: PaymentMethodType.PAY_LATER;
204
+ paymentMethodType: 'PAY_LATER';
204
205
  };
205
206
  export declare type ResponseBase = {
206
207
  status: number;
@@ -64,7 +64,8 @@ export declare enum MiniAppErrorType {
64
64
  originNotAllowed = "ORIGIN_NOT_ALLOWED",
65
65
  messageSendingFailed = "MESSAGE_SENDING_FAILED",
66
66
  transactionNotFound = "TRANSACTION_NOT_FOUND",
67
- unexpectedOperation = "UNEXPECTED_OP"
67
+ unexpectedOperation = "UNEXPECTED_OP",
68
+ merchantTimeout = "MERCHANT_TIMEOUT"
68
69
  }
69
70
  export declare class MiniAppError extends Error {
70
71
  constructor(type: MiniAppErrorType);
@@ -1,24 +1,3 @@
1
- export declare enum PermissionStatus {
2
- granted = "GRANTED",
3
- denied = "DENIED"
4
- }
5
- export declare const PermissionName: {
6
- mini_app_payment_balance: string;
7
- mini_app_device_info: string;
8
- mini_app_user_contacts: string;
9
- mini_app_device_battery: string;
10
- mini_app_kyc: string;
11
- mini_app_user_location: string;
12
- mini_app_check_payment_method: string;
13
- cashback: string;
14
- bank_registration: string;
15
- mini_app_user_email_address: string;
16
- mini_app_user_address: string;
17
- mini_app_user_phone_camera: string;
18
- mini_app_user_phone_album: string;
19
- mini_app_bank_information: string;
20
- mini_app_cashback_information: string;
21
- mini_app_transaction: string;
22
- };
1
+ import { PermissionNameType, PermissionStatus } from '../types/getPermissionStatus';
23
2
  export declare const checkPermission: (permissionNames: string[] | string) => Promise<PermissionStatus>;
24
- export declare function getUserGrantedPermission(): Promise<string[]>;
3
+ export declare function getUserGrantedPermission(): Promise<PermissionNameType[]>;
@@ -81,10 +81,10 @@ export declare const PButton: import("vue").DefineComponent<{
81
81
  onClick?: (() => any) | undefined;
82
82
  }, {
83
83
  type: ButtonType;
84
- name: string;
85
- size: ButtonSize;
86
84
  class: string | Record<string, any>;
87
85
  loading: boolean;
86
+ name: string;
87
+ size: ButtonSize;
88
88
  disabled: boolean;
89
89
  block: boolean;
90
90
  tabIndex: number;
@@ -199,6 +199,8 @@ export declare const en: {
199
199
  topupDesc: string;
200
200
  pay: string;
201
201
  payDesc: string;
202
+ payPeriod: string;
203
+ tryAgain: string;
202
204
  };
203
205
  paymentMethod: {
204
206
  expired: string;
@@ -204,6 +204,8 @@ export declare const ja: {
204
204
  topupDesc: string;
205
205
  pay: string;
206
206
  payDesc: string;
207
+ payPeriod: string;
208
+ tryAgain: string;
207
209
  };
208
210
  paymentMethod: {
209
211
  expired: string;
@@ -0,0 +1,20 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ import { PaymentMethodNameType } from '../model/makePayment';
3
+ export declare const AvailableCheckPaymentMethod: {
4
+ readonly acquiring: "ACQUIRING";
5
+ readonly topup: "TOPUP";
6
+ readonly preAuth: "PRE_AUTH";
7
+ readonly cashout: "CASHOUT";
8
+ };
9
+ export declare type AvailableCheckPaymentMethodType = (typeof AvailableCheckPaymentMethod)[keyof typeof AvailableCheckPaymentMethod];
10
+ export interface CheckPaymentMethodParams extends NativeParams<CheckPaymentMethodResult> {
11
+ type: AvailableCheckPaymentMethodType;
12
+ methodType: PaymentMethodNameType;
13
+ bankCode?: string;
14
+ merchant?: string;
15
+ productType?: string;
16
+ sourceInfoApp?: string;
17
+ }
18
+ export declare type CheckPaymentMethodResult = {
19
+ status: 'AVAILABLE' | 'UNAVAILABLE';
20
+ };
@@ -0,0 +1,22 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ import { MiniAppErrorResultType } from '../types';
3
+ export interface GetAuthStatusClientParams extends NativeParams<GetAuthStatusResult, AuthStatusFailResult> {
4
+ isInternal?: boolean;
5
+ }
6
+ export interface GetAuthStatusParams extends NativeParams<GetAuthStatusResult, AuthStatusFailResult> {
7
+ isInternal?: boolean;
8
+ clientOrigin: string;
9
+ }
10
+ export declare enum ChallengeMethod {
11
+ S256 = "S256"
12
+ }
13
+ export interface PKCEChallengeType {
14
+ challenge: string;
15
+ challengeMethod: ChallengeMethod;
16
+ }
17
+ export interface AuthStatusFailResult extends MiniAppErrorResultType {
18
+ code: PKCEChallengeType | null;
19
+ }
20
+ export declare type GetAuthStatusResult = {
21
+ statusCode: 'CONNECTED';
22
+ };
@@ -0,0 +1,31 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ export declare type BalanceType = {
3
+ unsigned: {
4
+ resultInfo: {
5
+ code: string;
6
+ };
7
+ data: {
8
+ totalBalance: {
9
+ amount: number;
10
+ };
11
+ details: {
12
+ money: number;
13
+ moneyLite: number;
14
+ point: number;
15
+ };
16
+ };
17
+ };
18
+ };
19
+ export interface GetBalanceParams extends NativeParams<GetBalanceResult> {
20
+ productType?: string;
21
+ merchant?: string;
22
+ sourceInfoApp?: string;
23
+ }
24
+ export declare type GetBalanceResult = {
25
+ balance: number;
26
+ details: {
27
+ money: number;
28
+ moneyLite: number;
29
+ point: number;
30
+ };
31
+ };
@@ -0,0 +1,32 @@
1
+ import { OPAErrorCodes } from '../model/OPAErrorCodes';
2
+ export declare type GetBankInfoResult = {
3
+ payoutMethodId: string;
4
+ };
5
+ export declare type PayoutMethod = {
6
+ bankAccountType: string;
7
+ bankBranchCode: string;
8
+ bankBranchName: string;
9
+ bankCode: string;
10
+ bankLogoUrl: string;
11
+ bankName: string;
12
+ maskedAccountNumber: string;
13
+ payoutMethodId: string;
14
+ };
15
+ declare type ResponseBase = {
16
+ signed?: {
17
+ jws?: string;
18
+ };
19
+ unsigned?: {
20
+ resultInfo?: {
21
+ code: OPAErrorCodes;
22
+ };
23
+ };
24
+ };
25
+ export declare type GetPayoutMethods = ResponseBase & {
26
+ unsigned: {
27
+ data: {
28
+ payoutMethods: PayoutMethod[];
29
+ } | null;
30
+ };
31
+ };
32
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare type GetDeviceInformationResult = {
2
+ os: string;
3
+ };
@@ -0,0 +1,50 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ export interface GetKycInformationParams extends NativeParams<GetKycInformationResult> {
3
+ type?: string;
4
+ eKycDocuments?: Array<EKycDocumentType>;
5
+ }
6
+ export interface KycAddress {
7
+ zipCode?: string;
8
+ countryCode?: string;
9
+ country?: string;
10
+ state?: string;
11
+ city?: string;
12
+ street1?: string;
13
+ street2?: string;
14
+ }
15
+ export declare const EKycDocument: {
16
+ readonly driversLicence: "DRIVERS_LICENCE";
17
+ readonly mynumberCard: "MYNUMBER_CARD";
18
+ readonly driversCareerCertificate: "DRIVERS_CAREER_CERTIFICATE";
19
+ };
20
+ export declare type EKycDocumentType = (typeof EKycDocument)[keyof typeof EKycDocument];
21
+ export declare const KycMethod: {
22
+ readonly eKyc: "EKYC";
23
+ readonly bank: "BANK";
24
+ readonly physical: "PHYSICAL";
25
+ };
26
+ export declare type KycMethodType = (typeof KycMethod)[keyof typeof KycMethod];
27
+ export declare const KycStatus: {
28
+ readonly completed: "COMPLETED";
29
+ readonly notCompleted: "NOT_COMPLETED";
30
+ readonly kycValidationInProcess: "KYC_VALIDATION_IN_PROCESS";
31
+ };
32
+ export declare type KycStatusType = (typeof KycStatus)[keyof typeof KycStatus];
33
+ export interface KycData {
34
+ lastName?: string;
35
+ firstName?: string;
36
+ lastNameKana?: string;
37
+ firstNameKana?: string;
38
+ dateOfBirth?: string;
39
+ address?: KycAddress;
40
+ job?: string;
41
+ }
42
+ export declare type GetKycInformationResult = {
43
+ status: KycStatusType | string;
44
+ kycAt?: string;
45
+ kycInfo?: KycData;
46
+ type?: KycMethodType | string;
47
+ eKycDocuments?: EKycDocumentType | string;
48
+ ngReason?: string;
49
+ jws: string;
50
+ };
@@ -0,0 +1,21 @@
1
+ import { EKycDocumentType, KycData, KycMethodType } from '../types/getKycInformation';
2
+ import { NativeParams } from '../jsbridge-core/jsbridge';
3
+ export declare const KycPassportUrlParam: {
4
+ authType: string;
5
+ ekycDocuments: string;
6
+ sessionId: string;
7
+ functionName: string;
8
+ };
9
+ export interface GetKycPassportInfoParams extends NativeParams<GetKycPassportInfoResult> {
10
+ url: string;
11
+ }
12
+ export declare type GetKycPassportInfoResult = {
13
+ status: 'COMPLETED';
14
+ kycAt: string;
15
+ kycInfo: KycData;
16
+ type: KycMethodType | string;
17
+ eKycDocuments: EKycDocumentType | string;
18
+ jws: string;
19
+ possessionAuthResult: 'SUCCESS';
20
+ nonce: string;
21
+ };