@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.
- package/dist/client/index.d.ts +11 -6
- package/dist/composition-api/useGetUserAddress.d.ts +1 -1
- package/dist/composition-api/useInpuAddress.d.ts +1 -1
- package/dist/composition-api/useKycPassport.d.ts +1 -1
- package/dist/composition-api/useMakePayment.d.ts +1 -1
- package/dist/composition-api/useRegisterEmail.d.ts +2 -1
- package/dist/composition-api/useShowUpdateWarning.d.ts +1 -1
- package/dist/composition-api/useShowUpdateWarningKycPassport.d.ts +2 -2
- package/dist/composition-api/useTopup.d.ts +1 -1
- package/dist/core/coreUtils.d.ts +3 -2
- package/dist/core/sentry.d.ts +1 -0
- package/dist/environment-variables.d.ts +5 -0
- package/dist/mini-app-api.d.ts +26 -4
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +5 -16
- package/dist/model/OPAErrorCodes.d.ts +4 -0
- package/dist/model/bridge/checkAccessToken.d.ts +4 -2
- package/dist/model/bridge/checkPaymentMethod.d.ts +1 -1
- package/dist/model/bridge/getAuthStatus.d.ts +1 -1
- package/dist/model/bridge/getBalance.d.ts +1 -1
- package/dist/model/bridge/getBankInfo.d.ts +2 -2
- package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
- package/dist/model/bridge/getKycInformation.d.ts +1 -1
- package/dist/model/bridge/getKycPassportInfo.d.ts +1 -1
- package/dist/model/bridge/getLoginUrl.d.ts +2 -1
- package/dist/model/bridge/getPermissionStatus.d.ts +1 -1
- package/dist/model/bridge/getPlatformInformation.d.ts +2 -2
- package/dist/model/bridge/getTopBarHeight.d.ts +2 -2
- package/dist/model/bridge/getTransactionInfo.d.ts +1 -1
- package/dist/model/bridge/getTransactions.d.ts +1 -1
- package/dist/model/bridge/getUAID.d.ts +2 -2
- package/dist/model/bridge/getUserAddress.d.ts +1 -1
- package/dist/model/bridge/getUserLocation.d.ts +1 -1
- package/dist/model/bridge/getUserPaymentFeatureSettings.d.ts +1 -1
- package/dist/model/bridge/getUserProfile.d.ts +2 -2
- package/dist/model/bridge/init.d.ts +1 -1
- package/dist/model/bridge/initKycPassport.d.ts +1 -1
- package/dist/model/bridge/inputAddress.d.ts +1 -1
- package/dist/model/bridge/logout.d.ts +2 -2
- package/dist/model/bridge/makePayment.d.ts +1 -1
- package/dist/model/bridge/openWebview.d.ts +1 -1
- package/dist/model/bridge/registerEmail.d.ts +2 -1
- package/dist/model/bridge/registerKyc.d.ts +1 -1
- package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
- package/dist/model/bridge/startMultiFactorAuth.d.ts +1 -1
- package/dist/model/bridge/topup.d.ts +1 -1
- package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +1 -1
- package/dist/model/makePayment.d.ts +18 -17
- package/dist/model/miniAppError.d.ts +2 -1
- package/dist/model/permission.d.ts +2 -23
- package/dist/package/button/index.d.ts +2 -2
- package/dist/resources/en.d.ts +2 -0
- package/dist/resources/ja.d.ts +2 -0
- package/dist/types/checkPaymentMethod.d.ts +20 -0
- package/dist/types/getAuthStatus.d.ts +22 -0
- package/dist/types/getBalance.d.ts +31 -0
- package/dist/types/getBankInfo.d.ts +32 -0
- package/dist/types/getDeviceInformation.d.ts +3 -0
- package/dist/types/getKycInformation.d.ts +50 -0
- package/dist/types/getKycPassportInfo.d.ts +21 -0
- package/dist/types/getPermissionStatus.d.ts +68 -0
- package/dist/types/getPlatformInformation.d.ts +7 -0
- package/dist/types/getTopBarHeight.d.ts +3 -0
- package/dist/types/getTransactionInfo.d.ts +32 -0
- package/dist/types/getTransactions.d.ts +16 -0
- package/dist/types/getUAID.d.ts +3 -0
- package/dist/types/getUserAddress.d.ts +39 -0
- package/dist/types/getUserLocation.d.ts +13 -0
- package/dist/types/getUserPaymentFeatureSettings.d.ts +16 -0
- package/dist/types/getUserProfile.d.ts +25 -0
- package/dist/types/init.d.ts +41 -0
- package/dist/types/initKycPassport.d.ts +12 -0
- package/dist/types/logout.d.ts +3 -0
- package/dist/types/makePayment.d.ts +46 -0
- package/dist/types/openWebview.d.ts +11 -0
- package/dist/types/registerEmail.d.ts +5 -0
- package/dist/types/registerKycParams.d.ts +8 -0
- package/dist/types/showUpdateWarning.d.ts +12 -0
- package/dist/types/startMultiFactorAuth.d.ts +10 -0
- package/dist/types/topup.d.ts +18 -0
- package/dist/types/verifyMultiFactorAuthResult.d.ts +15 -0
- package/dist/types.d.ts +10 -229
- package/dist/utils/analytics.d.ts +2 -1
- package/dist/utils/api.d.ts +7 -12
- package/dist/utils/getLanguage.d.ts +2 -0
- package/dist/utils/helper.d.ts +1 -1
- package/dist/utils/storage.d.ts +3 -2
- package/dist/views/registerPaymentFeatures/types.d.ts +4 -4
- package/package.json +2 -1
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?: {
|
|
@@ -493,11 +324,6 @@ export declare type BalanceType = {
|
|
|
493
324
|
totalBalance?: {
|
|
494
325
|
amount?: number;
|
|
495
326
|
};
|
|
496
|
-
details?: {
|
|
497
|
-
money?: number;
|
|
498
|
-
moneyLite?: number;
|
|
499
|
-
point?: number;
|
|
500
|
-
};
|
|
501
327
|
};
|
|
502
328
|
};
|
|
503
329
|
};
|
|
@@ -509,25 +335,7 @@ export declare type SessionResponse = {
|
|
|
509
335
|
};
|
|
510
336
|
};
|
|
511
337
|
};
|
|
512
|
-
export declare enum ChallengeMethod {
|
|
513
|
-
S256 = "S256"
|
|
514
|
-
}
|
|
515
|
-
export interface PKCEChallengeType {
|
|
516
|
-
challenge: string;
|
|
517
|
-
challengeMethod: ChallengeMethod;
|
|
518
|
-
}
|
|
519
|
-
interface AuthStatusFailResult extends MiniAppErrorResultType {
|
|
520
|
-
code: PKCEChallengeType | null;
|
|
521
|
-
}
|
|
522
338
|
export declare type ResultErrorType = MiniAppErrorResultType | AuthStatusFailResult;
|
|
523
|
-
export interface GetAuthStatusClientParams extends NativeParams<MiniAppResult, AuthStatusFailResult> {
|
|
524
|
-
isInternal?: boolean;
|
|
525
|
-
}
|
|
526
|
-
export interface GetAuthStatusParams extends NativeParams<MiniAppResult, AuthStatusFailResult> {
|
|
527
|
-
isInternal?: boolean;
|
|
528
|
-
url?: string;
|
|
529
|
-
clientOrigin?: string;
|
|
530
|
-
}
|
|
531
339
|
export declare type ErrorSheetButton = {
|
|
532
340
|
title: string;
|
|
533
341
|
buttonType: 'BLUE' | 'WHITE' | ButtonType;
|
|
@@ -559,11 +367,6 @@ export declare type ShortcutExistsType = (typeof ShortcutExistsTypes)[keyof type
|
|
|
559
367
|
export interface ShortcutExistsParams extends NativeParams<MiniAppResult> {
|
|
560
368
|
type: ShortcutExistsType;
|
|
561
369
|
}
|
|
562
|
-
export interface GetUserPaymentFeatureSettingsParams extends NativeParams<MiniAppResult> {
|
|
563
|
-
paymentFeatureType?: 'PRE_TRANSACTION_AUTO_CHARGE' | 'FALLBACK_PAYMENT_METHOD';
|
|
564
|
-
merchant?: string;
|
|
565
|
-
productType?: string;
|
|
566
|
-
}
|
|
567
370
|
export declare const PPFunctionResult: {
|
|
568
371
|
readonly success: "success";
|
|
569
372
|
readonly fail: "fail";
|
|
@@ -608,9 +411,6 @@ export declare type CashbackResponse = {
|
|
|
608
411
|
};
|
|
609
412
|
};
|
|
610
413
|
};
|
|
611
|
-
export interface VerifyMultiFactorAuthResultParams extends NativeParams<MiniAppResult> {
|
|
612
|
-
sessionId: string | null;
|
|
613
|
-
}
|
|
614
414
|
export interface ShowStorageAccessPermissionAlertParams extends NativeParams<void> {
|
|
615
415
|
clientUrl: string;
|
|
616
416
|
}
|
|
@@ -697,12 +497,6 @@ export declare type ClientJsBridge = {
|
|
|
697
497
|
export declare type ConsoleDebugInfoParams = {
|
|
698
498
|
params: unknown[];
|
|
699
499
|
};
|
|
700
|
-
export declare const KycPassportUrlParam: {
|
|
701
|
-
authType: string;
|
|
702
|
-
ekycDocuments: string;
|
|
703
|
-
sessionId: string;
|
|
704
|
-
functionName: string;
|
|
705
|
-
};
|
|
706
500
|
export interface PayPayCallStackParamsType {
|
|
707
501
|
complete?: () => void;
|
|
708
502
|
[index: string]: unknown;
|
|
@@ -714,17 +508,4 @@ declare global {
|
|
|
714
508
|
_ppsl?: boolean;
|
|
715
509
|
}
|
|
716
510
|
}
|
|
717
|
-
export interface GetTransactionInfoParams extends NativeParams<MiniAppResult> {
|
|
718
|
-
orderId: string;
|
|
719
|
-
orderType?: string;
|
|
720
|
-
}
|
|
721
|
-
export interface GetTransactionsParams extends NativeParams<MiniAppResult> {
|
|
722
|
-
types?: string | string[];
|
|
723
|
-
statuses?: string | string[];
|
|
724
|
-
mids?: string | string[];
|
|
725
|
-
startDate?: string;
|
|
726
|
-
endDate?: string;
|
|
727
|
-
cursor?: string;
|
|
728
|
-
size?: number;
|
|
729
|
-
}
|
|
730
511
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PPFunctionNameType } from '../types';
|
|
2
|
+
import { PPEnvType } from '../types/init';
|
|
2
3
|
export declare function logSDKEvent(eventName: string, eventParams: {
|
|
3
4
|
event_category: string;
|
|
4
5
|
event_label?: string;
|
|
@@ -6,5 +7,5 @@ export declare function logSDKEvent(eventName: string, eventParams: {
|
|
|
6
7
|
event_action?: string;
|
|
7
8
|
error_value?: string;
|
|
8
9
|
event_label2?: unknown;
|
|
9
|
-
}): void;
|
|
10
|
+
}, env?: PPEnvType): void;
|
|
10
11
|
export declare function handleLogSDKEvent(name: PPFunctionNameType, eventActionSuffix: string, errorValue?: string, params?: unknown): void;
|
package/dist/utils/api.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { MiniAppErrorType } from '../model/miniAppError';
|
|
2
2
|
import { UIComponentsError } from '../model/uiComponents';
|
|
3
|
-
import {
|
|
3
|
+
import { CashbackResponse, SmartPayParams } from '../types';
|
|
4
|
+
import { Address, NewAddress } from '../types/getUserAddress';
|
|
5
|
+
import { MakePaymentParams } from '../types/makePayment';
|
|
6
|
+
import { GetKycPassportInfoResult } from '../types/getKycPassportInfo';
|
|
7
|
+
import { InitKycPassportParams } from '../types/initKycPassport';
|
|
4
8
|
export declare type TopupQuery = {
|
|
5
9
|
merchant?: string;
|
|
6
10
|
agreeSimilarTransaction?: boolean;
|
|
@@ -241,22 +245,13 @@ export declare type VerifyKycPassportResponse = {
|
|
|
241
245
|
resultInfo?: {
|
|
242
246
|
code?: string;
|
|
243
247
|
};
|
|
244
|
-
jws
|
|
248
|
+
jws: string;
|
|
245
249
|
};
|
|
246
250
|
unsigned: {
|
|
247
251
|
resultInfo?: {
|
|
248
252
|
code?: string;
|
|
249
253
|
};
|
|
250
|
-
data
|
|
251
|
-
status?: string;
|
|
252
|
-
kycAt?: string;
|
|
253
|
-
type?: string;
|
|
254
|
-
eKycDocuments?: string;
|
|
255
|
-
kycInfo?: unknown;
|
|
256
|
-
kycPassportMethod?: string;
|
|
257
|
-
nonce: string;
|
|
258
|
-
possessionAuthResult: 'SUCCESS' | 'FAILED';
|
|
259
|
-
};
|
|
254
|
+
data: GetKycPassportInfoResult;
|
|
260
255
|
};
|
|
261
256
|
};
|
|
262
257
|
export declare function getInitKycPassport(params: InitKycPassportParams): Promise<import("./fetch").PPFetchResult<KycTypeResponse, Record<string, unknown>>>;
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { MiniAppErrorType } from '../model/miniAppError';
|
|
|
2
2
|
import { BankInfo, CreditCardInfo, SbidBankInfo, PayLaterCCInfo } from '../model/makePayment';
|
|
3
3
|
import { UIComponentsErrorButton } from '../model/uiComponents';
|
|
4
4
|
import { ErrorSheetButton } from '../types';
|
|
5
|
+
import { FontSize } from '../types/getPlatformInformation';
|
|
5
6
|
export declare function isDef<T>(val: T): val is NonNullable<T>;
|
|
6
7
|
export declare function isFunction(val: unknown): val is () => void;
|
|
7
8
|
export declare function isNumeric(val: string | number): val is string;
|
|
@@ -44,7 +45,6 @@ export declare function getEventLabel(merchant?: string | null): string;
|
|
|
44
45
|
export declare function getEventCategory(): string;
|
|
45
46
|
export declare function semVerCompare(a: string, b: string): boolean;
|
|
46
47
|
export declare function checkVersion(minVersion: string): boolean;
|
|
47
|
-
declare type FontSize = 'REGULAR' | 'LARGE' | 'EXTRA_LARGE';
|
|
48
48
|
export declare function getPlatformFontSize(): FontSize;
|
|
49
49
|
export declare function delay(time?: number): Promise<boolean>;
|
|
50
50
|
export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string | null | undefined) => {
|
package/dist/utils/storage.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PpLocalStorageKey } from '../types';
|
|
2
|
+
import { PPEnvType } from '../types/init';
|
|
2
3
|
export declare function getKeyWithClientId(baseKey: PpLocalStorageKey): string;
|
|
3
4
|
export declare function getAccessToken(): string | null;
|
|
4
5
|
export declare function saveLocalStorage(key: string, value: string): void;
|
|
@@ -12,8 +13,8 @@ export declare function getRefreshToken(): string;
|
|
|
12
13
|
export declare function saveRefreshToken(token: string): void;
|
|
13
14
|
export declare function getConsumedOtt(): string | null;
|
|
14
15
|
export declare function saveConsumedOtt(ott: string): void;
|
|
15
|
-
export declare function saveEnv(env
|
|
16
|
-
export declare function getEnv():
|
|
16
|
+
export declare function saveEnv(env?: PPEnvType): void;
|
|
17
|
+
export declare function getEnv(): PPEnvType | null;
|
|
17
18
|
export declare function isProdEnv(): boolean;
|
|
18
19
|
export declare function getClientUUID(): string;
|
|
19
20
|
export declare function getDeviceUUIDFromNative(): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaymentMethod,
|
|
1
|
+
import { PaymentMethod, PaymentMethodNameType } from '../../model/makePayment';
|
|
2
2
|
import { ConsultPaymentFeatureType, PaymentFeatureType } from '../../types';
|
|
3
3
|
export declare const AutoTopupModeType: {
|
|
4
4
|
readonly POST_AUTO_TOPUP: "PostAutoTopup";
|
|
@@ -27,7 +27,7 @@ export declare type UpdatePreTransactionAutoTopupConfigurationParams = {
|
|
|
27
27
|
isEnabled: boolean;
|
|
28
28
|
minimumTopupAmount: number;
|
|
29
29
|
paymentMethodId: string;
|
|
30
|
-
methodType:
|
|
30
|
+
methodType: PaymentMethodNameType;
|
|
31
31
|
ccType?: string;
|
|
32
32
|
isAuthenticated?: boolean;
|
|
33
33
|
};
|
|
@@ -54,13 +54,13 @@ declare type PostTransactionAutoTopupConfiguration = {
|
|
|
54
54
|
topupAmount?: number;
|
|
55
55
|
currency?: Currency;
|
|
56
56
|
paymentMethodId: string;
|
|
57
|
-
methodType:
|
|
57
|
+
methodType: PaymentMethodNameType;
|
|
58
58
|
};
|
|
59
59
|
declare type PreTransactionAutoTopupConfiguration = {
|
|
60
60
|
isEnabled: boolean;
|
|
61
61
|
minimumTopupAmount?: number;
|
|
62
62
|
paymentMethodId?: string;
|
|
63
|
-
methodType:
|
|
63
|
+
methodType: PaymentMethodNameType;
|
|
64
64
|
};
|
|
65
65
|
declare type DescriptionInfo = {
|
|
66
66
|
text: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paypay/mini-app-js-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:client && yarn build:core && yarn build:init",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"@rollup/plugin-html": "^1.0.2",
|
|
46
46
|
"@rollup/plugin-replace": "^3.0.0",
|
|
47
47
|
"@rollup/plugin-terser": "^0.4.3",
|
|
48
|
+
"@sentry/browser": "^7.74.1",
|
|
48
49
|
"@testing-library/jest-dom": "^5.16.2",
|
|
49
50
|
"@testing-library/vue": "^6.4.2",
|
|
50
51
|
"@types/ip": "^1.1.0",
|