@paypay/mini-app-js-sdk 2.14.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 (95) hide show
  1. package/dist/client/coreIframe.d.ts +0 -1
  2. package/dist/client/index.d.ts +12 -6
  3. package/dist/client/supportedFunctionsList.d.ts +1 -1
  4. package/dist/composition-api/useGetUserAddress.d.ts +1 -1
  5. package/dist/composition-api/useInpuAddress.d.ts +1 -1
  6. package/dist/composition-api/useKycPassport.d.ts +1 -1
  7. package/dist/composition-api/useMakePayment.d.ts +1 -1
  8. package/dist/composition-api/useRegisterEmail.d.ts +2 -1
  9. package/dist/composition-api/useShowUpdateWarning.d.ts +1 -1
  10. package/dist/composition-api/useShowUpdateWarningKycPassport.d.ts +2 -2
  11. package/dist/composition-api/useTopup.d.ts +1 -1
  12. package/dist/core/coreFunctions/getPaymentSettings.d.ts +22 -0
  13. package/dist/core/coreFunctions/index.d.ts +1 -0
  14. package/dist/core/coreUtils.d.ts +4 -2
  15. package/dist/core/sentry.d.ts +1 -0
  16. package/dist/environment-variables.d.ts +5 -0
  17. package/dist/mini-app-api.d.ts +31 -4
  18. package/dist/mini-app-js-sdk.browser.js +1 -1
  19. package/dist/mini-app-js-sdk.es.js +5582 -77
  20. package/dist/model/OPAErrorCodes.d.ts +4 -0
  21. package/dist/model/bridge/checkAccessToken.d.ts +4 -2
  22. package/dist/model/bridge/checkPaymentMethod.d.ts +1 -1
  23. package/dist/model/bridge/getAuthStatus.d.ts +1 -1
  24. package/dist/model/bridge/getBalance.d.ts +1 -1
  25. package/dist/model/bridge/getBankInfo.d.ts +2 -2
  26. package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
  27. package/dist/model/bridge/getKycInformation.d.ts +1 -1
  28. package/dist/model/bridge/getKycPassportInfo.d.ts +1 -1
  29. package/dist/model/bridge/getLoginUrl.d.ts +2 -1
  30. package/dist/model/bridge/getPermissionStatus.d.ts +1 -1
  31. package/dist/model/bridge/getPlatformInformation.d.ts +2 -2
  32. package/dist/model/bridge/getTopBarHeight.d.ts +2 -2
  33. package/dist/model/bridge/getTransactionInfo.d.ts +2 -0
  34. package/dist/model/bridge/getTransactions.d.ts +2 -0
  35. package/dist/model/bridge/getUAID.d.ts +2 -2
  36. package/dist/model/bridge/getUserAddress.d.ts +1 -1
  37. package/dist/model/bridge/getUserLocation.d.ts +1 -1
  38. package/dist/model/bridge/getUserPaymentFeatureSettings.d.ts +1 -1
  39. package/dist/model/bridge/getUserProfile.d.ts +2 -2
  40. package/dist/model/bridge/init.d.ts +1 -1
  41. package/dist/model/bridge/initKycPassport.d.ts +1 -1
  42. package/dist/model/bridge/inputAddress.d.ts +1 -1
  43. package/dist/model/bridge/logout.d.ts +2 -2
  44. package/dist/model/bridge/makePayment.d.ts +2 -2
  45. package/dist/model/bridge/openWebview.d.ts +1 -1
  46. package/dist/model/bridge/registerEmail.d.ts +2 -1
  47. package/dist/model/bridge/registerKyc.d.ts +1 -1
  48. package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
  49. package/dist/model/bridge/startMultiFactorAuth.d.ts +1 -1
  50. package/dist/model/bridge/topup.d.ts +1 -1
  51. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +1 -1
  52. package/dist/model/makePayment.d.ts +18 -17
  53. package/dist/model/miniAppError.d.ts +4 -1
  54. package/dist/model/permission.d.ts +2 -22
  55. package/dist/package/button/index.d.ts +3 -3
  56. package/dist/resources/en.d.ts +2 -0
  57. package/dist/resources/ja.d.ts +2 -0
  58. package/dist/types/checkPaymentMethod.d.ts +20 -0
  59. package/dist/types/getAuthStatus.d.ts +22 -0
  60. package/dist/types/getBalance.d.ts +31 -0
  61. package/dist/types/getBankInfo.d.ts +32 -0
  62. package/dist/types/getDeviceInformation.d.ts +3 -0
  63. package/dist/types/getKycInformation.d.ts +50 -0
  64. package/dist/types/getKycPassportInfo.d.ts +21 -0
  65. package/dist/types/getPermissionStatus.d.ts +68 -0
  66. package/dist/types/getPlatformInformation.d.ts +7 -0
  67. package/dist/types/getTopBarHeight.d.ts +3 -0
  68. package/dist/types/getTransactionInfo.d.ts +32 -0
  69. package/dist/types/getTransactions.d.ts +16 -0
  70. package/dist/types/getUAID.d.ts +3 -0
  71. package/dist/types/getUserAddress.d.ts +39 -0
  72. package/dist/types/getUserLocation.d.ts +13 -0
  73. package/dist/types/getUserPaymentFeatureSettings.d.ts +16 -0
  74. package/dist/types/getUserProfile.d.ts +25 -0
  75. package/dist/types/init.d.ts +41 -0
  76. package/dist/types/initKycPassport.d.ts +12 -0
  77. package/dist/types/logout.d.ts +3 -0
  78. package/dist/types/makePayment.d.ts +46 -0
  79. package/dist/types/openWebview.d.ts +11 -0
  80. package/dist/types/registerEmail.d.ts +5 -0
  81. package/dist/types/registerKycParams.d.ts +8 -0
  82. package/dist/types/showUpdateWarning.d.ts +12 -0
  83. package/dist/types/startMultiFactorAuth.d.ts +10 -0
  84. package/dist/types/topup.d.ts +18 -0
  85. package/dist/types/verifyMultiFactorAuthResult.d.ts +15 -0
  86. package/dist/types.d.ts +10 -211
  87. package/dist/utils/analytics.d.ts +2 -1
  88. package/dist/utils/api.d.ts +13 -13
  89. package/dist/utils/fetch.d.ts +8 -2
  90. package/dist/utils/getLanguage.d.ts +2 -0
  91. package/dist/utils/helper.d.ts +3 -2
  92. package/dist/utils/storage.d.ts +3 -2
  93. package/dist/utils/windowBridge.d.ts +4 -1
  94. package/dist/views/registerPaymentFeatures/types.d.ts +4 -4
  95. package/package.json +5 -1
@@ -0,0 +1,32 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ import { Amount } from '../types/makePayment';
3
+ export interface GetTransactionInfoParams extends NativeParams<GetTransactionInfoResult> {
4
+ orderId: string;
5
+ orderType?: string;
6
+ }
7
+ export declare type GetTransactionInfoResult = {
8
+ transaction: TransactionItem;
9
+ };
10
+ export declare type TransactionItem = {
11
+ orderId: string;
12
+ transactionId: string;
13
+ date: string;
14
+ status: TransactionStatusType;
15
+ errorCode: string;
16
+ amount: Amount;
17
+ storeId: string;
18
+ storeName: string;
19
+ merchantId: string;
20
+ merchantName: string;
21
+ };
22
+ export declare const TransactionStatus: {
23
+ readonly CREATED: "CREATED";
24
+ readonly SUCCESS: "SUCCESS";
25
+ readonly FAILED: "FAILED";
26
+ readonly PENDING: "PENDING";
27
+ readonly AUTHORIZED: "AUTHORIZED";
28
+ readonly EXPIRED: "EXPIRED";
29
+ readonly CANCELED: "CANCELED";
30
+ };
31
+ declare type TransactionStatusType = (typeof TransactionStatus)[keyof typeof TransactionStatus];
32
+ export {};
@@ -0,0 +1,16 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ import { TransactionItem } from '../types/getTransactionInfo';
3
+ export interface GetTransactionsParams extends NativeParams<GetTransactionsResult> {
4
+ types?: string | string[];
5
+ statuses?: string | string[];
6
+ mids?: string | string[];
7
+ startDate?: string;
8
+ endDate?: string;
9
+ cursor?: string;
10
+ size?: number;
11
+ }
12
+ export declare type GetTransactionsResult = {
13
+ hasNext: boolean;
14
+ nextCursor: string;
15
+ transactions: TransactionItem[];
16
+ };
@@ -0,0 +1,3 @@
1
+ export declare type GetUAIDResult = {
2
+ jws: string;
3
+ };
@@ -0,0 +1,39 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ export interface GetUserAddressParams extends NativeParams<GetUserAddressResult> {
3
+ type?: GetUserAddressType;
4
+ }
5
+ interface AddressBase {
6
+ street1: string;
7
+ country: string;
8
+ zip: string;
9
+ state: string;
10
+ city: string;
11
+ tags?: Array<string>;
12
+ title?: string;
13
+ receiver?: string;
14
+ street2?: string;
15
+ }
16
+ export interface Address extends AddressBase {
17
+ id: number;
18
+ kyc: boolean;
19
+ }
20
+ export interface NewAddress extends AddressBase {
21
+ id: number | null;
22
+ }
23
+ export interface InputAddressParams extends NativeParams<void> {
24
+ address?: Address;
25
+ }
26
+ export declare type AddressUpdateEvent = {
27
+ selectedAddress: Address;
28
+ addresses: Address[];
29
+ };
30
+ declare const GetUserAddressType: {
31
+ readonly kyc: "KYC";
32
+ readonly work: "WORK";
33
+ readonly home: "HOME";
34
+ readonly preferred: "PREFERRED";
35
+ readonly billing: "BILLING";
36
+ };
37
+ export declare type GetUserAddressType = (typeof GetUserAddressType)[keyof typeof GetUserAddressType];
38
+ export declare type GetUserAddressResult = Address;
39
+ export {};
@@ -0,0 +1,13 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ export declare type Accuracy = 'high';
3
+ export interface GetUserLocationParams extends NativeParams<GetUserLocationResult> {
4
+ validTimeMinutes?: number;
5
+ accuracy?: Accuracy;
6
+ fallbackToGeolocation?: boolean;
7
+ }
8
+ export interface GetUserLocationResult {
9
+ result: {
10
+ lat: number;
11
+ long: number;
12
+ };
13
+ }
@@ -0,0 +1,16 @@
1
+ import { PaymentFeatureType } from '../types';
2
+ import { NativeParams } from '../jsbridge-core/jsbridge';
3
+ export declare type GetUserPaymentFeatureSettingsResult = {
4
+ paymentFeatures: Record<SupportedPaymentFeatureType, GetUserPaymentFeatureSettingsStatusType>;
5
+ };
6
+ export declare type SupportedPaymentFeatureType = Exclude<PaymentFeatureType, 'RECOMMEND'>;
7
+ export interface GetUserPaymentFeatureSettingsParams extends NativeParams<GetUserPaymentFeatureSettingsResult> {
8
+ paymentFeatureType?: SupportedPaymentFeatureType;
9
+ merchant?: string;
10
+ productType?: string;
11
+ }
12
+ export declare const GetUserPaymentFeatureSettingsStatus: {
13
+ readonly available: "AVAILABLE";
14
+ readonly unavailable: "UNAVAILABLE";
15
+ };
16
+ export declare type GetUserPaymentFeatureSettingsStatusType = (typeof GetUserPaymentFeatureSettingsStatus)[keyof typeof GetUserPaymentFeatureSettingsStatus];
@@ -0,0 +1,25 @@
1
+ import { EKycDocumentType, KycData, KycStatusType } from '../types/getKycInformation';
2
+ export declare type GetUserProfileResult = {
3
+ firstName?: string;
4
+ lastName?: string;
5
+ firstNameKana?: string;
6
+ lastNameKana?: string;
7
+ firstNameRoman?: string;
8
+ lastNameRoman?: string;
9
+ nickName?: string;
10
+ avatarUrl?: string;
11
+ email?: string;
12
+ phoneNumber?: string;
13
+ signupAt?: string;
14
+ employerInfo?: {
15
+ employerName: string;
16
+ employerPhoneNumber: string;
17
+ };
18
+ gender?: string;
19
+ kycStatus?: KycStatusType;
20
+ kycAt?: string;
21
+ kycInfo?: KycData;
22
+ type?: string;
23
+ eKycDocuments?: Array<EKycDocumentType>;
24
+ jws?: string;
25
+ };
@@ -0,0 +1,41 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ export interface InitClientParams extends NativeParams<InitResult> {
3
+ clientId: string;
4
+ env?: PPEnvType;
5
+ mode?: string;
6
+ debugMode?: boolean;
7
+ useAllFunctions?: boolean;
8
+ }
9
+ export interface InitParams extends NativeParams<InitResult> {
10
+ clientId: string;
11
+ env?: PPEnvType;
12
+ mode?: string;
13
+ token?: string;
14
+ ott?: string;
15
+ clientOrigin?: string;
16
+ refreshToken?: string;
17
+ codeVerifier?: string;
18
+ clientVersion?: string;
19
+ debugMode?: boolean;
20
+ useAllFunctions?: boolean;
21
+ }
22
+ export declare const PPEnv: {
23
+ readonly staging: "staging";
24
+ readonly production: "production";
25
+ readonly sandbox: "sandbox";
26
+ readonly qa: "qa";
27
+ readonly canary: "canary";
28
+ readonly test: "test";
29
+ };
30
+ export declare type PPEnvType = (typeof PPEnv)[keyof typeof PPEnv];
31
+ export declare type InitResult = {
32
+ statusCode: InitStatusCodeType | string;
33
+ };
34
+ export declare const InitStatusCode: {
35
+ readonly initialized: "INITIALIZED";
36
+ readonly tokenValid: "TOKEN_VALID";
37
+ readonly tokenExpired: "TOKEN_EXPIRED";
38
+ readonly sdkNotInitialized: "SDK_NOT_INITIALIZED";
39
+ readonly tokenNotFound: "TOKEN_NOT_FOUND";
40
+ };
41
+ export declare type InitStatusCodeType = (typeof InitStatusCode)[keyof typeof InitStatusCode];
@@ -0,0 +1,12 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ import { EKycDocumentType } from '../types/getKycInformation';
3
+ export declare enum KycPassportMethod {
4
+ biometric = "BIOMETRIC",
5
+ otp = "OTP"
6
+ }
7
+ export interface InitKycPassportParams extends NativeParams<unknown> {
8
+ eKycDocuments?: Array<EKycDocumentType>;
9
+ callbackUrl: string;
10
+ isSkipKYCRequiredHalfsheet?: boolean;
11
+ getCompletedKycOnly?: boolean;
12
+ }
@@ -0,0 +1,3 @@
1
+ export declare type LogoutResult = {
2
+ statusCode: 'LOGGED_OUT';
3
+ };
@@ -0,0 +1,46 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ import { Address } from '../types/getUserAddress';
3
+ export interface MakePaymentParams extends NativeParams<MakePaymentResult> {
4
+ amount: Amount;
5
+ merchantPaymentId: string;
6
+ requestedAt: number;
7
+ merchantAlias?: string;
8
+ orderDescription?: string;
9
+ storeId?: string;
10
+ terminalId?: string;
11
+ isAuthorization?: boolean;
12
+ orderItems?: Array<OrderItem>;
13
+ expiresAt?: number;
14
+ orderReceiptNumber?: string;
15
+ agreeSimilarTransaction?: boolean;
16
+ prepaidOnly?: boolean;
17
+ metadata?: unknown;
18
+ sourceInfoApp?: string;
19
+ alwaysDisplayCompletionScreen?: boolean;
20
+ alwaysHideCompletionScreen?: boolean;
21
+ storeInfo?: string;
22
+ productType?: string;
23
+ taxExempt?: boolean;
24
+ additionalUserInfo?: {
25
+ userAddress?: {
26
+ visible: boolean;
27
+ mandatory: boolean;
28
+ };
29
+ };
30
+ merchantTimeoutAt?: number;
31
+ }
32
+ export interface Amount {
33
+ amount: number;
34
+ currency?: string;
35
+ }
36
+ export interface OrderItem {
37
+ name: string;
38
+ category?: string;
39
+ quantity: number;
40
+ productId?: string;
41
+ unitPrice: Amount;
42
+ }
43
+ export declare type MakePaymentResult = {
44
+ jws: string;
45
+ address: Address | null;
46
+ };
@@ -0,0 +1,11 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ export interface OpenWebviewParams extends NativeParams<void> {
3
+ url: string;
4
+ style?: OpenWebviewStyleType;
5
+ }
6
+ export declare const OpenWebviewStyle: {
7
+ readonly modal: "modal";
8
+ readonly slide: "slide";
9
+ readonly external: "external";
10
+ };
11
+ export declare type OpenWebviewStyleType = (typeof OpenWebviewStyle)[keyof typeof OpenWebviewStyle];
@@ -0,0 +1,5 @@
1
+ export declare type RegisterEmailStatusType = 'EMAIL_REGISTERED' | 'EMAIL_NOT_VERIFIED';
2
+ export declare type RegisterEmailResult = {
3
+ statusCode: RegisterEmailStatusType;
4
+ email?: string;
5
+ };
@@ -0,0 +1,8 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ import { EKycDocumentType, KycData, KycMethodType } from '../types/getKycInformation';
3
+ export interface RegisterKycParams extends NativeParams<unknown> {
4
+ type: KycMethodType;
5
+ eKycDocuments: Array<EKycDocumentType>;
6
+ redirectUrl: string;
7
+ data?: KycData;
8
+ }
@@ -0,0 +1,12 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ export interface ShowUpdateWarningParams extends NativeParams<ShowUpdateWarningResult> {
3
+ isMandatory?: boolean;
4
+ }
5
+ export declare const ShowUpdateWarningUserAction: {
6
+ readonly update: "UPDATE";
7
+ readonly ignore: "IGNORE";
8
+ };
9
+ export declare type ShowUpdateWarningUserActionType = (typeof ShowUpdateWarningUserAction)[keyof typeof ShowUpdateWarningUserAction];
10
+ export declare type ShowUpdateWarningResult = {
11
+ userAction: ShowUpdateWarningUserActionType;
12
+ };
@@ -0,0 +1,10 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ import { MiniAppResult } from '../types';
3
+ export interface StartMultiFactorAuthParams extends NativeParams<MiniAppResult> {
4
+ type: MutiFactorAuthType;
5
+ callbackUrl: string;
6
+ }
7
+ export declare const MultiFactorAuth: {
8
+ readonly biometric: "BIOMETRIC";
9
+ };
10
+ export declare type MutiFactorAuthType = (typeof MultiFactorAuth)[keyof typeof MultiFactorAuth];
@@ -0,0 +1,18 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ import { MiniAppErrorResultType } from '../types';
3
+ import { PaymentMethodNameType } from '../model/makePayment';
4
+ export interface TopupParams extends NativeParams<TopupResult, MiniAppErrorResultType & {
5
+ jws?: string;
6
+ }> {
7
+ merchantTopUpId: string;
8
+ requestedAt: number;
9
+ prepaidOnly?: boolean;
10
+ merchant?: string;
11
+ productType?: string;
12
+ sourceInfoApp?: string;
13
+ methodType?: PaymentMethodNameType;
14
+ bankCode?: string;
15
+ }
16
+ export declare type TopupResult = {
17
+ jws: string;
18
+ };
@@ -0,0 +1,15 @@
1
+ import { NativeParams } from '../jsbridge-core/jsbridge';
2
+ export declare type SessionResponse = {
3
+ unsigned: {
4
+ data: VerifyMultiFactorAuthStatus;
5
+ resultInfo: {
6
+ code: string;
7
+ };
8
+ };
9
+ };
10
+ export interface VerifyMultiFactorAuthResultParams extends NativeParams<VerifyMultiFactorAuthStatus> {
11
+ sessionId: string | null;
12
+ }
13
+ export declare type VerifyMultiFactorAuthStatus = {
14
+ status: 'SUCCESS';
15
+ };
package/dist/types.d.ts CHANGED
@@ -1,6 +1,14 @@
1
1
  import { NativeParams, NativeResponse } from './jsbridge-core/jsbridge';
2
2
  import { MiniAppErrorType } from './model/miniAppError';
3
3
  import { ButtonType } from './package/button';
4
+ import { RegisterEmailResult } from './types/registerEmail';
5
+ import { ShowUpdateWarningParams } from './types/showUpdateWarning';
6
+ import { GetBankInfoResult } from './types/getBankInfo';
7
+ import { MakePaymentParams } from './types/makePayment';
8
+ import { GetUserAddressParams, InputAddressParams } from './types/getUserAddress';
9
+ import { AuthStatusFailResult } from './types/getAuthStatus';
10
+ import { Permission } from './types/getPermissionStatus';
11
+ import { TopupParams } from './types/topup';
4
12
  declare global {
5
13
  type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
6
14
  }
@@ -8,67 +16,9 @@ export declare type MiniAppResult = Record<string, unknown>;
8
16
  export interface MiniAppErrorResultType {
9
17
  errorCode: MiniAppErrorType;
10
18
  }
11
- export interface OrderItem {
12
- name: string;
13
- category?: string;
14
- quantity: number;
15
- productId?: string;
16
- unitPrice: Amount;
17
- }
18
- export interface MakePaymentParams extends NativeParams<MiniAppResult> {
19
- amount: Amount;
20
- merchantPaymentId: string;
21
- requestedAt: number;
22
- merchantAlias?: string;
23
- orderDescription?: string;
24
- storeId?: string;
25
- terminalId?: string;
26
- isAuthorization?: boolean;
27
- orderItems?: Array<OrderItem>;
28
- expiresAt?: number;
29
- orderReceiptNumber?: string;
30
- agreeSimilarTransaction?: boolean;
31
- prepaidOnly?: boolean;
32
- metadata?: unknown;
33
- sourceInfoApp?: string;
34
- alwaysDisplayCompletionScreen?: boolean;
35
- alwaysHideCompletionScreen?: boolean;
36
- storeInfo?: string;
37
- productType?: string;
38
- taxExempt?: boolean;
39
- additionalUserInfo?: {
40
- userAddress?: {
41
- visible: boolean;
42
- mandatory: boolean;
43
- };
44
- };
45
- }
46
19
  export interface CopyToClipBoardParams extends NativeParams<void> {
47
20
  value: string;
48
21
  }
49
- export interface GetPermissionStatusParams extends NativeParams<MiniAppResult> {
50
- name?: string;
51
- }
52
- export interface InitClientParams extends NativeParams<MiniAppResult> {
53
- clientId?: string;
54
- env?: string;
55
- mode?: string;
56
- debugMode?: boolean;
57
- useAllFunctions?: boolean;
58
- }
59
- export interface InitParams extends NativeParams<MiniAppResult> {
60
- clientId?: string;
61
- env?: string;
62
- mode?: string;
63
- token?: string;
64
- ott?: string;
65
- clientOrigin?: string;
66
- refreshToken?: string;
67
- codeVerifier?: string;
68
- clientVersion?: string;
69
- debugMode?: boolean;
70
- useAllFunctions?: boolean;
71
- }
72
22
  export interface IosMapParams {
73
23
  label: string;
74
24
  scheme?: string;
@@ -100,18 +50,6 @@ export interface Amount {
100
50
  amount: number;
101
51
  currency?: string;
102
52
  }
103
- export interface TopupParams extends NativeParams<MiniAppResult, MiniAppErrorResultType & {
104
- jws?: string;
105
- }> {
106
- merchantTopUpId: string;
107
- requestedAt: number;
108
- prepaidOnly?: boolean;
109
- merchant?: string;
110
- productType?: string;
111
- sourceInfoApp?: string;
112
- methodType?: string;
113
- bankCode?: string;
114
- }
115
53
  export interface SetDataParams extends NativeParams<void> {
116
54
  key: string;
117
55
  value: string;
@@ -151,9 +89,6 @@ export interface SmsAuthParams extends NativeParams<void> {
151
89
  export interface SetEnablePullDownRefreshParams extends NativeParams<void> {
152
90
  enabled: boolean;
153
91
  }
154
- export interface ShowUpdateWarningParams extends NativeParams<MiniAppResult> {
155
- isMandatory?: boolean;
156
- }
157
92
  interface IosOpenApp {
158
93
  link: string;
159
94
  }
@@ -171,49 +106,13 @@ export interface OpenAppParams extends NativeParams<MiniAppResult> {
171
106
  ios?: IosOpenApp;
172
107
  android?: AndroidOpenApp;
173
108
  }
174
- interface AddressBase {
175
- street1: string;
176
- country: string;
177
- zip: string;
178
- state: string;
179
- city: string;
180
- tags?: Array<string>;
181
- title?: string;
182
- receiver?: string;
183
- street2?: string;
184
- }
185
- export interface Address extends AddressBase {
186
- id: number;
187
- kyc: boolean;
188
- }
189
- export interface NewAddress extends AddressBase {
190
- id: number | null;
191
- }
192
- export interface InputAddressParams extends NativeParams<void> {
193
- address?: Address;
194
- }
195
109
  export interface RegisterUserInfoParams extends NativeParams<void> {
196
110
  formName: string;
197
111
  fieldInForm?: string | string[];
198
112
  }
199
- export interface GetUserLocationResult {
200
- result: {
201
- lat: number;
202
- long: number;
203
- };
204
- }
205
- export interface GetUserLocationParams extends NativeParams<GetUserLocationResult> {
206
- validTimeMinutes?: number;
207
- accuracy?: string;
208
- fallbackToGeolocation?: boolean;
209
- }
210
113
  export interface SetTitleParams extends NativeParams<void> {
211
114
  title?: string;
212
115
  }
213
- export interface OpenWebviewParams extends NativeParams<void> {
214
- url: string;
215
- style?: string;
216
- }
217
116
  export interface ShareParams extends NativeParams<void> {
218
117
  text: string;
219
118
  screenshot?: boolean;
@@ -230,11 +129,6 @@ export declare enum Environment {
230
129
  CANARY = "canary",
231
130
  PRD = "prd"
232
131
  }
233
- export interface GetBalanceParams extends NativeParams<MiniAppResult> {
234
- productType?: string;
235
- merchant?: string;
236
- sourceInfoApp?: string;
237
- }
238
132
  export interface OpenMiniAppParams extends NativeParams<void> {
239
133
  redirectUrl?: string;
240
134
  }
@@ -247,49 +141,6 @@ export interface GetKycInformationParams extends NativeParams<MiniAppResult> {
247
141
  type?: string;
248
142
  eKycDocuments?: Array<string>;
249
143
  }
250
- export interface CheckPaymentMethodParams extends NativeParams<MiniAppResult> {
251
- type: string;
252
- methodType: string;
253
- bankCode: string;
254
- merchant?: string;
255
- productType?: string;
256
- sourceInfoApp?: string;
257
- }
258
- export interface GetUserAddressParams extends NativeParams<Address> {
259
- type?: string;
260
- }
261
- export interface KycAddress {
262
- zipCode?: string;
263
- countryCode?: string;
264
- country?: string;
265
- state?: string;
266
- city?: string;
267
- street1?: string;
268
- street2?: string;
269
- }
270
- export interface KycData {
271
- lastName?: string;
272
- firstName?: string;
273
- lastNameKana?: string;
274
- firstNameKana?: string;
275
- dateOfBirth?: string;
276
- address?: KycAddress;
277
- job?: string;
278
- }
279
- export interface RegisterKycParams extends NativeParams<unknown> {
280
- type?: string;
281
- eKycDocuments?: Array<string>;
282
- redirectUrl?: string;
283
- data?: KycData;
284
- }
285
- export interface InitKycPassportParams extends NativeParams<unknown> {
286
- eKycDocuments?: Array<string>;
287
- callbackUrl: string;
288
- isSkipKYCRequiredHalfsheet?: boolean;
289
- }
290
- export interface GetKycPassportInfoParams extends NativeParams<unknown> {
291
- url: string;
292
- }
293
144
  export interface StartMultiFactorAuthParams extends NativeParams<MiniAppResult> {
294
145
  type: string;
295
146
  callbackUrl: string;
@@ -352,6 +203,7 @@ export interface SmartPayParams {
352
203
  amount: SmartPayAmount;
353
204
  requestedAt: number;
354
205
  merchantPaymentId: string;
206
+ merchantTimeoutAt?: number;
355
207
  orderItems?: Array<SmartPayOrderItem>;
356
208
  orderDescription?: string;
357
209
  orderReceiptNumber?: string;
@@ -378,13 +230,7 @@ export interface UserInfo {
378
230
  avatarUrl: string;
379
231
  nickName: string;
380
232
  }
381
- export declare type PopStateInputParams = ShowErrorSheetParams | GetUserAddressParams | InputAddressParams | MakePaymentParams | OpenAppParams | MapParams | ShowAlertParams | ShowUpdateWarningParams | TopupParams;
382
- export declare type Permission = {
383
- blocker: boolean;
384
- name: string;
385
- type: string;
386
- isBlocker: boolean;
387
- };
233
+ export declare type PopStateInputParams = ShowErrorSheetParams | GetUserAddressParams | InputAddressParams | MakePaymentParams | OpenAppParams | MapParams | ShowAlertParams | ShowUpdateWarningParams | TopupParams | NativeParams<GetBankInfoResult> | NativeParams<RegisterEmailResult>;
388
234
  export declare type Window = {
389
235
  navigationBarBackgroundColor: string;
390
236
  navigationBarTextStyle: string;
@@ -447,18 +293,10 @@ export declare enum PpLocalStorageKey {
447
293
  merchant = "ppjssdk.merchant",
448
294
  consumedOTT = "ppjssdk.consumedOTT"
449
295
  }
450
- export declare enum KycPassportMethod {
451
- biometric = "BIOMETRIC",
452
- otp = "OTP"
453
- }
454
296
  export declare enum RenderType {
455
297
  COVER = "cover",
456
298
  CONTAIN = "contain"
457
299
  }
458
- export declare type AddressUpdateEvent = {
459
- selectedAddress: Address;
460
- addresses: Address[];
461
- };
462
300
  export declare const PaymentFeatureTypes: {
463
301
  readonly PRE_TRANSACTION_AUTO_CHARGE: "PRE_TRANSACTION_AUTO_CHARGE";
464
302
  readonly FALLBACK_PAYMENT_METHOD: "FALLBACK_PAYMENT_METHOD";
@@ -477,13 +315,6 @@ export interface RegisterPaymentFeaturesParams extends NativeParams<void> {
477
315
  merchant?: string;
478
316
  productType?: string;
479
317
  }
480
- export declare type GrantedPermissionRespone = {
481
- unsigned?: {
482
- data?: {
483
- scopes?: Array<string>;
484
- };
485
- };
486
- };
487
318
  export declare type BalanceType = {
488
319
  unsigned?: {
489
320
  resultInfo?: {
@@ -504,25 +335,7 @@ export declare type SessionResponse = {
504
335
  };
505
336
  };
506
337
  };
507
- export declare enum ChallengeMethod {
508
- S256 = "S256"
509
- }
510
- export interface PKCEChallengeType {
511
- challenge: string;
512
- challengeMethod: ChallengeMethod;
513
- }
514
- interface AuthStatusFailResult extends MiniAppErrorResultType {
515
- code: PKCEChallengeType | null;
516
- }
517
338
  export declare type ResultErrorType = MiniAppErrorResultType | AuthStatusFailResult;
518
- export interface GetAuthStatusClientParams extends NativeParams<MiniAppResult, AuthStatusFailResult> {
519
- isInternal?: boolean;
520
- }
521
- export interface GetAuthStatusParams extends NativeParams<MiniAppResult, AuthStatusFailResult> {
522
- isInternal?: boolean;
523
- url?: string;
524
- clientOrigin?: string;
525
- }
526
339
  export declare type ErrorSheetButton = {
527
340
  title: string;
528
341
  buttonType: 'BLUE' | 'WHITE' | ButtonType;
@@ -554,11 +367,6 @@ export declare type ShortcutExistsType = (typeof ShortcutExistsTypes)[keyof type
554
367
  export interface ShortcutExistsParams extends NativeParams<MiniAppResult> {
555
368
  type: ShortcutExistsType;
556
369
  }
557
- export interface GetUserPaymentFeatureSettingsParams extends NativeParams<MiniAppResult> {
558
- paymentFeatureType?: 'PRE_TRANSACTION_AUTO_CHARGE' | 'FALLBACK_PAYMENT_METHOD';
559
- merchant?: string;
560
- productType?: string;
561
- }
562
370
  export declare const PPFunctionResult: {
563
371
  readonly success: "success";
564
372
  readonly fail: "fail";
@@ -603,9 +411,6 @@ export declare type CashbackResponse = {
603
411
  };
604
412
  };
605
413
  };
606
- export interface VerifyMultiFactorAuthResultParams extends NativeParams<MiniAppResult> {
607
- sessionId: string | null;
608
- }
609
414
  export interface ShowStorageAccessPermissionAlertParams extends NativeParams<void> {
610
415
  clientUrl: string;
611
416
  }
@@ -692,12 +497,6 @@ export declare type ClientJsBridge = {
692
497
  export declare type ConsoleDebugInfoParams = {
693
498
  params: unknown[];
694
499
  };
695
- export declare const KycPassportUrlParam: {
696
- authType: string;
697
- ekycDocuments: string;
698
- sessionId: string;
699
- functionName: string;
700
- };
701
500
  export interface PayPayCallStackParamsType {
702
501
  complete?: () => void;
703
502
  [index: string]: unknown;