@paypay/mini-app-js-sdk 2.69.0 → 2.73.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/client/clientUtils.d.ts +1 -0
- package/dist/client/communicationWithCore.d.ts +2 -0
- package/dist/client/functions/logPageNav.d.ts +2 -0
- package/dist/client/functions/logPerf.d.ts +2 -0
- package/dist/client/observeTtid.d.ts +2 -0
- package/dist/client/supportedFunctionsList.d.ts +1 -1
- package/dist/client/types.d.ts +3 -1
- package/dist/constants/localStorageKeys.d.ts +1 -1
- package/dist/core/coreFunctions/index.d.ts +4 -0
- package/dist/core/coreFunctions/logPageNav.d.ts +6 -0
- package/dist/core/coreFunctions/logPerf.d.ts +6 -0
- package/dist/core/coreUtils.d.ts +1 -1
- package/dist/core/coupon/middlewares/clientOriginOnly.d.ts +2 -0
- package/dist/core/coupon/utils/helpers.d.ts +15 -0
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +2012 -140
- package/dist/model/makePayment.d.ts +20 -1
- package/dist/package/lottie/lottie.d.ts +2 -0
- package/dist/resources/images.d.ts +8 -0
- package/dist/resources/locales/payment/index.d.ts +0 -20
- package/dist/resources/locales/payment/ja.d.ts +0 -10
- package/dist/types/init.d.ts +17 -1
- package/dist/types/makePayment.d.ts +217 -1
- package/dist/types.d.ts +11 -1
- package/dist/utils/analytics.d.ts +0 -1
- package/dist/utils/consumedOtt.d.ts +2 -0
- package/dist/utils/fetch.d.ts +1 -1
- package/dist/utils/helper.d.ts +7 -3
- package/dist/utils/ip.d.ts +0 -1
- package/dist/utils/openTelemetry/index.d.ts +5 -0
- package/dist/utils/openTelemetry/openTelemetry.d.ts +5 -0
- package/dist/utils/openTelemetry/types.d.ts +23 -0
- package/dist/utils/popstateHandler.d.ts +1 -1
- package/dist/views/coupon/components/CouponAction/index.d.ts +4 -0
- package/dist/views/coupon/index.d.ts +4 -0
- package/dist/views/make-payment/store.d.ts +5264 -46
- package/package.json +60 -37
- package/dist/utils/secondary-list.d.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PPFetchResult } from '../utils/fetch';
|
|
2
|
-
import { OrderType, CashBackDetailResponse, ConsultResponse, GetPaymentMethodsResponse, MakePaymentResponse, PaymentBody, PaymentObject, PaymentQuery, SendAgePayload, SendAgeResponse } from '../types/makePayment';
|
|
2
|
+
import { OrderType, CashBackDetailResponse, ConsultResponse, GetPaymentMethodsResponse, GetPostPaymentAnimationsResponse, GetScratchCardCashbackInfoResponse, MakePaymentResponse, PaymentBody, PaymentObject, PaymentQuery, PostScratchCardResponse, SendAgePayload, SendAgeResponse, GetScratchCardCashbackInfoPayload } from '../types/makePayment';
|
|
3
3
|
export declare const getPaymentMethods2: (params: {
|
|
4
4
|
merchant?: string;
|
|
5
5
|
type: string;
|
|
@@ -16,3 +16,22 @@ export declare const getConsult: ({ merchant, amount, productType, metaData, ord
|
|
|
16
16
|
export declare const makePayment: (queryParams: PaymentQuery, body: PaymentBody, isAuthorization: boolean) => Promise<PPFetchResult<MakePaymentResponse>>;
|
|
17
17
|
export declare const getCashBackDetails: (paymentId: string, orderType?: OrderType) => Promise<PPFetchResult<CashBackDetailResponse, Record<string, unknown>>>;
|
|
18
18
|
export declare const sendAge: (payload: SendAgePayload) => Promise<PPFetchResult<SendAgeResponse, Record<string, unknown>>>;
|
|
19
|
+
export declare const getPostPaymentAnimations: (params: {
|
|
20
|
+
orderId: string;
|
|
21
|
+
orderType: OrderType;
|
|
22
|
+
}) => Promise<PPFetchResult<GetPostPaymentAnimationsResponse>>;
|
|
23
|
+
export declare const postScratchCard: (params: {
|
|
24
|
+
cardId: string;
|
|
25
|
+
}) => Promise<PPFetchResult<PostScratchCardResponse>>;
|
|
26
|
+
export declare const getScratchCardCashbackInfo: (params: {
|
|
27
|
+
cardId: string;
|
|
28
|
+
orderType?: OrderType;
|
|
29
|
+
}) => Promise<PPFetchResult<GetScratchCardCashbackInfoResponse>>;
|
|
30
|
+
export declare function scratchCardAndFetchCashback(params: {
|
|
31
|
+
cardId: string;
|
|
32
|
+
orderType?: OrderType;
|
|
33
|
+
}): Promise<GetScratchCardCashbackInfoPayload | null>;
|
|
34
|
+
export declare function scratchCardAndFetchCashbackWithDelay(params: {
|
|
35
|
+
cardId: string;
|
|
36
|
+
orderType?: OrderType;
|
|
37
|
+
}): Promise<GetScratchCardCashbackInfoPayload | null>;
|
|
@@ -37,6 +37,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
37
37
|
};
|
|
38
38
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
39
|
animationEnd: () => true;
|
|
40
|
+
animationLoaded: () => true;
|
|
40
41
|
dataLoadFail: () => true;
|
|
41
42
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
43
|
loop: {
|
|
@@ -74,6 +75,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
74
75
|
};
|
|
75
76
|
}>> & Readonly<{
|
|
76
77
|
onAnimationEnd?: (() => any) | undefined;
|
|
78
|
+
onAnimationLoaded?: (() => any) | undefined;
|
|
77
79
|
onDataLoadFail?: (() => any) | undefined;
|
|
78
80
|
}>, {
|
|
79
81
|
path: string;
|
|
@@ -2,6 +2,7 @@ export declare const img_iconBalanceError: string;
|
|
|
2
2
|
export declare const img_animationDone: string;
|
|
3
3
|
export declare const img_merchant: string;
|
|
4
4
|
export declare const img_cashback: string;
|
|
5
|
+
export declare const img_infoMono: string;
|
|
5
6
|
export declare const img_iconCopy: string;
|
|
6
7
|
export declare const img_iconError: string;
|
|
7
8
|
export declare const img_iconOpenApp: string;
|
|
@@ -51,10 +52,17 @@ export declare const img_mobileIcon: string;
|
|
|
51
52
|
export declare const img_exclaimIcon: string;
|
|
52
53
|
export declare const img_iconPpcdGold: string;
|
|
53
54
|
export declare const img_iconPpcd: string;
|
|
55
|
+
export declare const img_iconPpcdPink: string;
|
|
56
|
+
export declare const img_iconPpcdBlue: string;
|
|
57
|
+
export declare const img_iconPpcdLavender: string;
|
|
54
58
|
export declare const img_kyc: string;
|
|
55
59
|
export declare const img_ppCredit: string;
|
|
60
|
+
export declare const img_discover: string;
|
|
56
61
|
export declare const qr_kyc: string;
|
|
57
62
|
export declare const qr_topup: string;
|
|
58
63
|
export declare const img_iconEmail: string;
|
|
59
64
|
export declare const img_iconGV: string;
|
|
60
65
|
export declare const img_iconTopup: string;
|
|
66
|
+
export declare const img_payLaterTwoTone: string;
|
|
67
|
+
export declare const img_paypayPointColorful: string;
|
|
68
|
+
export declare const img_smcc: string;
|
|
@@ -8,7 +8,6 @@ declare const _default: {
|
|
|
8
8
|
change: string;
|
|
9
9
|
close: string;
|
|
10
10
|
noCashBack: string;
|
|
11
|
-
transactionId: string;
|
|
12
11
|
ppPointGuideMessage: string;
|
|
13
12
|
};
|
|
14
13
|
duplicate: {
|
|
@@ -52,15 +51,6 @@ declare const _default: {
|
|
|
52
51
|
return: string;
|
|
53
52
|
lowBalanceToTopUpErrorMessage: string;
|
|
54
53
|
};
|
|
55
|
-
cashbackList: {
|
|
56
|
-
pointCalendar: string;
|
|
57
|
-
close: string;
|
|
58
|
-
condition: string;
|
|
59
|
-
};
|
|
60
|
-
newOffersBanner: {
|
|
61
|
-
title: string;
|
|
62
|
-
description: string;
|
|
63
|
-
};
|
|
64
54
|
ekyc: {
|
|
65
55
|
title: string;
|
|
66
56
|
link: string;
|
|
@@ -273,7 +263,6 @@ declare const _default: {
|
|
|
273
263
|
change: string;
|
|
274
264
|
close: string;
|
|
275
265
|
noCashBack: string;
|
|
276
|
-
transactionId: string;
|
|
277
266
|
ppPointGuideMessage: string;
|
|
278
267
|
};
|
|
279
268
|
duplicate: {
|
|
@@ -317,15 +306,6 @@ declare const _default: {
|
|
|
317
306
|
return: string;
|
|
318
307
|
lowBalanceToTopUpErrorMessage: string;
|
|
319
308
|
};
|
|
320
|
-
cashbackList: {
|
|
321
|
-
pointCalendar: string;
|
|
322
|
-
close: string;
|
|
323
|
-
condition: string;
|
|
324
|
-
};
|
|
325
|
-
newOffersBanner: {
|
|
326
|
-
title: string;
|
|
327
|
-
description: string;
|
|
328
|
-
};
|
|
329
309
|
ekyc: {
|
|
330
310
|
title: string;
|
|
331
311
|
link: string;
|
|
@@ -7,7 +7,6 @@ declare const _default: {
|
|
|
7
7
|
change: string;
|
|
8
8
|
close: string;
|
|
9
9
|
noCashBack: string;
|
|
10
|
-
transactionId: string;
|
|
11
10
|
ppPointGuideMessage: string;
|
|
12
11
|
};
|
|
13
12
|
duplicate: {
|
|
@@ -51,15 +50,6 @@ declare const _default: {
|
|
|
51
50
|
return: string;
|
|
52
51
|
lowBalanceToTopUpErrorMessage: string;
|
|
53
52
|
};
|
|
54
|
-
cashbackList: {
|
|
55
|
-
pointCalendar: string;
|
|
56
|
-
close: string;
|
|
57
|
-
condition: string;
|
|
58
|
-
};
|
|
59
|
-
newOffersBanner: {
|
|
60
|
-
title: string;
|
|
61
|
-
description: string;
|
|
62
|
-
};
|
|
63
53
|
ekyc: {
|
|
64
54
|
title: string;
|
|
65
55
|
link: string;
|
package/dist/types/init.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
2
|
import { SdkType } from '../types';
|
|
3
|
-
|
|
3
|
+
interface InitClientParamsWithoutOtel extends NativeParams<InitResult> {
|
|
4
4
|
clientId: string;
|
|
5
5
|
env?: PPEnvType;
|
|
6
6
|
mode?: string;
|
|
@@ -8,6 +8,16 @@ export interface InitClientParams extends NativeParams<InitResult> {
|
|
|
8
8
|
useLocalStorage?: boolean;
|
|
9
9
|
disableBackgroundScrollLock?: boolean;
|
|
10
10
|
}
|
|
11
|
+
interface InitOtelParams {
|
|
12
|
+
pageName: string;
|
|
13
|
+
otelEndpoint: string;
|
|
14
|
+
serviceName: string;
|
|
15
|
+
serviceVersion: string;
|
|
16
|
+
}
|
|
17
|
+
declare type InitClientParamsForbidOtel = InitClientParamsWithoutOtel & {
|
|
18
|
+
[K in keyof InitOtelParams]?: never;
|
|
19
|
+
};
|
|
20
|
+
export declare type InitClientParams = InitClientParamsForbidOtel | (InitClientParamsWithoutOtel & InitOtelParams);
|
|
11
21
|
export interface InitParams extends NativeParams<InitResult> {
|
|
12
22
|
clientId: string;
|
|
13
23
|
env?: PPEnvType;
|
|
@@ -21,6 +31,11 @@ export interface InitParams extends NativeParams<InitResult> {
|
|
|
21
31
|
clientSdkType?: SdkType;
|
|
22
32
|
clientUrl?: string;
|
|
23
33
|
useLocalStorage?: boolean;
|
|
34
|
+
pageName?: string;
|
|
35
|
+
clientPageLoadStartTime?: number;
|
|
36
|
+
otelEndpoint?: string;
|
|
37
|
+
serviceName?: string;
|
|
38
|
+
serviceVersion?: string;
|
|
24
39
|
}
|
|
25
40
|
export declare const PPEnv: {
|
|
26
41
|
readonly staging: "staging";
|
|
@@ -43,3 +58,4 @@ export declare const InitStatusCode: {
|
|
|
43
58
|
readonly authorizationNeeded: "AUTHORIZATION_NEEDED";
|
|
44
59
|
};
|
|
45
60
|
export declare type InitStatusCodeType = (typeof InitStatusCode)[keyof typeof InitStatusCode];
|
|
61
|
+
export {};
|
|
@@ -183,6 +183,13 @@ export declare enum PayPayCardType {
|
|
|
183
183
|
GOLD = "GOLD",
|
|
184
184
|
REGULAR = "REGULAR"
|
|
185
185
|
}
|
|
186
|
+
export declare enum PayPayCardFaceCode {
|
|
187
|
+
BLACK = "BLACK",
|
|
188
|
+
PINK = "PINK",
|
|
189
|
+
BLUE = "BLUE",
|
|
190
|
+
LAVENDER = "LAVENDER",
|
|
191
|
+
GOLD = "GOLD"
|
|
192
|
+
}
|
|
186
193
|
export declare type CreditCardInfo = {
|
|
187
194
|
brand?: CreditTypes;
|
|
188
195
|
isAuthenticated?: boolean;
|
|
@@ -260,6 +267,7 @@ export declare type PayLaterCCInfo = {
|
|
|
260
267
|
last4digits?: string;
|
|
261
268
|
linkedCardBrand?: Exclude<CreditTypes, CreditTypes.AMEX | CreditTypes.DINERS | CreditTypes.OTHER>;
|
|
262
269
|
linkedCardType?: PayPayCardType;
|
|
270
|
+
faceCode?: PayPayCardFaceCode;
|
|
263
271
|
availableAmount?: number;
|
|
264
272
|
paymentMethodStatus?: PaymentMethodStatus;
|
|
265
273
|
paymentMethodStatusLabel?: string;
|
|
@@ -334,6 +342,26 @@ export declare type GetPaymentMethodsResponse = ResponseBase & {
|
|
|
334
342
|
};
|
|
335
343
|
};
|
|
336
344
|
};
|
|
345
|
+
export declare type UsageInfoStyleInfo = {
|
|
346
|
+
color: string;
|
|
347
|
+
text: string;
|
|
348
|
+
};
|
|
349
|
+
export declare type UsageInfo = {
|
|
350
|
+
description: string;
|
|
351
|
+
styleInfo: UsageInfoStyleInfo;
|
|
352
|
+
};
|
|
353
|
+
export declare type PaymentAmountInfo = {
|
|
354
|
+
label: string;
|
|
355
|
+
amount: number;
|
|
356
|
+
currencyText: string;
|
|
357
|
+
};
|
|
358
|
+
export declare type ToastMessage = {
|
|
359
|
+
title: string;
|
|
360
|
+
description?: string;
|
|
361
|
+
backgroundColor?: string;
|
|
362
|
+
textColor?: string;
|
|
363
|
+
messageType?: string;
|
|
364
|
+
};
|
|
337
365
|
export declare type PaymentResult = {
|
|
338
366
|
requestedAt: number;
|
|
339
367
|
storeId: string;
|
|
@@ -347,6 +375,72 @@ export declare type PaymentResult = {
|
|
|
347
375
|
status: 'COMPLETED' | 'AUTHORIZED';
|
|
348
376
|
paymentId: string;
|
|
349
377
|
expiresAt: number;
|
|
378
|
+
usageInfo?: UsageInfo;
|
|
379
|
+
amountInfo?: PaymentAmountInfo[];
|
|
380
|
+
toastMessages?: ToastMessage[];
|
|
381
|
+
displayMethodInfoList?: DisplayMethodInfo[];
|
|
382
|
+
};
|
|
383
|
+
export declare type DisplayMethodType = PaymentMethodNameType | 'YMONEY_BALANCE' | 'MERCHANT' | 'GIFT_CARD' | 'PAY_LATER' | 'PAY_LATER_CC' | 'GIFT_VOUCHER' | 'EXTERNAL_PPPC' | 'PAYROLL_BANK' | 'PAYROLL_INTERMEDIATE_WALLET' | 'POINT' | 'HC_WALLET' | 'PPBK_PAYMENT' | 'TOPUP_NOW' | 'SC_WALLET' | 'SC_CREDIT' | 'EXTERNAL_SC_CREDIT';
|
|
384
|
+
export declare type DisplayMethodInfo = {
|
|
385
|
+
paymentMethodId?: number;
|
|
386
|
+
paymentMethodIdString?: string;
|
|
387
|
+
paymentMethodType: DisplayMethodType;
|
|
388
|
+
paymentMethodTitle?: string | null;
|
|
389
|
+
paymentMethodDescription?: string | null;
|
|
390
|
+
paymentMethodLabel?: string | null;
|
|
391
|
+
creditCardInfo?: DisplayCreditCardInfo | null;
|
|
392
|
+
walletInfo?: unknown;
|
|
393
|
+
moneyBalanceInfo?: unknown;
|
|
394
|
+
moneyBankInfo?: DisplayMoneyBankInfo | null;
|
|
395
|
+
merchantMethodInfo?: {
|
|
396
|
+
merchantName: string;
|
|
397
|
+
} | null;
|
|
398
|
+
giftCardMethodInfo?: {
|
|
399
|
+
last4codes?: string | null;
|
|
400
|
+
} | null;
|
|
401
|
+
sbidCarrierBillingMethodInfo?: unknown;
|
|
402
|
+
payLaterInfo?: unknown;
|
|
403
|
+
payLaterCcInfo?: DisplayCardMethodInfo | null;
|
|
404
|
+
gvMethodInfo?: {
|
|
405
|
+
displayName: string;
|
|
406
|
+
} | null;
|
|
407
|
+
payrollMethodInfo?: {
|
|
408
|
+
displayName: string;
|
|
409
|
+
} | null;
|
|
410
|
+
ppcdMethodInfo?: DisplayCardMethodInfo | null;
|
|
411
|
+
pointInfo?: {
|
|
412
|
+
displayName: string;
|
|
413
|
+
} | null;
|
|
414
|
+
superCardMethodInfo?: DisplayCardMethodInfo & {
|
|
415
|
+
mode?: string | null;
|
|
416
|
+
modeDescription?: string | null;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
export declare type DisplayCreditCardInfo = {
|
|
420
|
+
brand?: string | null;
|
|
421
|
+
last4digits?: string | null;
|
|
422
|
+
ccType?: string | null;
|
|
423
|
+
cardName?: string | null;
|
|
424
|
+
isAvailableForDirectPayment?: boolean | null;
|
|
425
|
+
};
|
|
426
|
+
export declare type DisplayCardMethodInfo = {
|
|
427
|
+
brand?: string | null;
|
|
428
|
+
rank?: PayPayCardType | string | null;
|
|
429
|
+
faceCode?: string | null;
|
|
430
|
+
last4digits?: string | null;
|
|
431
|
+
cardName?: string | null;
|
|
432
|
+
repaymentType?: string | null;
|
|
433
|
+
repaymentTypeEnum?: string | null;
|
|
434
|
+
userType?: string | null;
|
|
435
|
+
};
|
|
436
|
+
export declare type DisplayMoneyBankInfo = {
|
|
437
|
+
bankImageUrl?: string | null;
|
|
438
|
+
bankName: string;
|
|
439
|
+
bankCode?: string | null;
|
|
440
|
+
bankAccountNumber?: string | null;
|
|
441
|
+
bankBranchName?: string | null;
|
|
442
|
+
bankBranchCode?: string | null;
|
|
443
|
+
bankAccountType?: string | null;
|
|
350
444
|
};
|
|
351
445
|
export declare type MakePaymentResponse = ResponseBase & {
|
|
352
446
|
signed: {
|
|
@@ -407,6 +501,10 @@ interface CashBackDetailHelpLink {
|
|
|
407
501
|
url: string;
|
|
408
502
|
googleAnalyticsInfo: unknown;
|
|
409
503
|
}
|
|
504
|
+
interface CashbackDescriptionLink {
|
|
505
|
+
text: string;
|
|
506
|
+
link: string;
|
|
507
|
+
}
|
|
410
508
|
export interface CashBackDetailItem {
|
|
411
509
|
campaignId: string;
|
|
412
510
|
bannerId: string | null;
|
|
@@ -421,6 +519,7 @@ export interface CashBackDetailItem {
|
|
|
421
519
|
status: string;
|
|
422
520
|
isMeti: boolean;
|
|
423
521
|
deeplinkUrl: string | null;
|
|
522
|
+
campaignLabel: string | null;
|
|
424
523
|
googleAnalyticsInfo: unknown;
|
|
425
524
|
}
|
|
426
525
|
interface CouponCashbackDetail {
|
|
@@ -433,6 +532,7 @@ interface CouponCashbackDetail {
|
|
|
433
532
|
interface CashBackDetail {
|
|
434
533
|
cashBackDetailListDescription: string | null;
|
|
435
534
|
cashBackDetailHelpLink: CashBackDetailHelpLink | null;
|
|
535
|
+
cashbackDescriptionLink: CashbackDescriptionLink | null;
|
|
436
536
|
cashBackDetailList: Array<CashBackDetailItem>;
|
|
437
537
|
googleAnalyticsInfo: unknown;
|
|
438
538
|
}
|
|
@@ -448,10 +548,20 @@ export interface CashBackComponent {
|
|
|
448
548
|
couponCashbackDetail: CouponCashbackDetail;
|
|
449
549
|
cashBackDetail: CashBackDetail;
|
|
450
550
|
}
|
|
551
|
+
export declare const RewardCards: {
|
|
552
|
+
readonly SCRATCH_CARD: "SCRATCH_CARD";
|
|
553
|
+
readonly DEFAULT: "DEFAULT";
|
|
554
|
+
readonly STEP: "STEP";
|
|
555
|
+
readonly STAMP_CARD: "STAMP_CARD";
|
|
556
|
+
readonly COUPON: "COUPON";
|
|
557
|
+
readonly TIME_SPECIFIC: "TIME_SPECIFIC";
|
|
558
|
+
readonly JUMBO: "JUMBO";
|
|
559
|
+
};
|
|
560
|
+
export declare type RewardCardType = (typeof RewardCards)[keyof typeof RewardCards];
|
|
451
561
|
export interface AnimationCard {
|
|
452
562
|
cardId: string;
|
|
453
563
|
campaignId: string | null;
|
|
454
|
-
cardType:
|
|
564
|
+
cardType: RewardCardType;
|
|
455
565
|
animationUrl: string;
|
|
456
566
|
amount: number | null;
|
|
457
567
|
soundUrl: string | null;
|
|
@@ -461,6 +571,112 @@ export interface AnimationCard {
|
|
|
461
571
|
showAgeConfirmFlag?: boolean | null;
|
|
462
572
|
backgroundColor: string | null;
|
|
463
573
|
}
|
|
574
|
+
export declare const ScratchCardStatus: {
|
|
575
|
+
readonly CREATED: "CREATED";
|
|
576
|
+
readonly USED: "USED";
|
|
577
|
+
readonly EXPIRED: "EXPIRED";
|
|
578
|
+
readonly CANCELLED: "CANCELLED";
|
|
579
|
+
};
|
|
580
|
+
export declare type ScratchCardStatusValue = (typeof ScratchCardStatus)[keyof typeof ScratchCardStatus];
|
|
581
|
+
export interface UnscratchedDetails {
|
|
582
|
+
title: string;
|
|
583
|
+
description: string;
|
|
584
|
+
}
|
|
585
|
+
export interface ScratchSuccessDetails {
|
|
586
|
+
title?: string;
|
|
587
|
+
cashBackAmount?: number;
|
|
588
|
+
cashBackAmountCurrency?: string;
|
|
589
|
+
balloonText?: string;
|
|
590
|
+
}
|
|
591
|
+
export interface ScratchFailedDetails {
|
|
592
|
+
title: string;
|
|
593
|
+
}
|
|
594
|
+
export interface ScratchCardDetail {
|
|
595
|
+
initialBackgroundLottieFileUrl: string;
|
|
596
|
+
scratchingLottieFileUrl?: string;
|
|
597
|
+
scratchingSoundUrl?: string;
|
|
598
|
+
status: ScratchCardStatusValue;
|
|
599
|
+
deepLink?: string;
|
|
600
|
+
unscratchedDetails?: UnscratchedDetails;
|
|
601
|
+
successDetails?: ScratchSuccessDetails;
|
|
602
|
+
failedDetails?: ScratchFailedDetails;
|
|
603
|
+
}
|
|
604
|
+
export interface DefaultCardDetails {
|
|
605
|
+
lottieFileUrl: string;
|
|
606
|
+
title?: string;
|
|
607
|
+
description?: string;
|
|
608
|
+
deepLink?: string;
|
|
609
|
+
}
|
|
610
|
+
export interface StepCardDetails {
|
|
611
|
+
lottieFileUrl: string;
|
|
612
|
+
title?: string;
|
|
613
|
+
description?: string;
|
|
614
|
+
deepLink?: string;
|
|
615
|
+
}
|
|
616
|
+
export interface DetailAnimationCard {
|
|
617
|
+
cardType: RewardCardType;
|
|
618
|
+
campaignId?: string;
|
|
619
|
+
orderId: string;
|
|
620
|
+
cardId: string;
|
|
621
|
+
backgroundColor?: string;
|
|
622
|
+
fallbackImageUrl?: string;
|
|
623
|
+
scratchCardDetails?: ScratchCardDetail;
|
|
624
|
+
defaultCardDetails?: DefaultCardDetails;
|
|
625
|
+
stepCardDetails?: StepCardDetails;
|
|
626
|
+
}
|
|
627
|
+
export interface GetPostPaymentAnimationsData {
|
|
628
|
+
detailAnimationCardList: DetailAnimationCard[];
|
|
629
|
+
responseValidTill?: number;
|
|
630
|
+
}
|
|
631
|
+
export declare type GetPostPaymentAnimationsResponse = ResponseBase & {
|
|
632
|
+
unsigned: {
|
|
633
|
+
data: GetPostPaymentAnimationsData;
|
|
634
|
+
responseValidTill?: number;
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
export interface BffResponseHeader {
|
|
638
|
+
resultCode: string;
|
|
639
|
+
resultMessage: string;
|
|
640
|
+
}
|
|
641
|
+
export interface ScratchFailedAnimationInfo {
|
|
642
|
+
lottieFileUrl: string;
|
|
643
|
+
status: ScratchCardStatusValue;
|
|
644
|
+
failedDetails?: ScratchFailedDetails;
|
|
645
|
+
}
|
|
646
|
+
export interface PostScratchCardPayload {
|
|
647
|
+
isSuccess: boolean;
|
|
648
|
+
scratchFailedAnimationInfo?: ScratchFailedAnimationInfo | null;
|
|
649
|
+
}
|
|
650
|
+
export interface PostScratchCardData {
|
|
651
|
+
header: BffResponseHeader;
|
|
652
|
+
payload: PostScratchCardPayload;
|
|
653
|
+
responseValidTill?: number;
|
|
654
|
+
}
|
|
655
|
+
export declare type PostScratchCardResponse = ResponseBase & {
|
|
656
|
+
unsigned: {
|
|
657
|
+
data: PostScratchCardData;
|
|
658
|
+
responseValidTill?: number;
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
export interface GetScratchCardCashbackInfoPayload {
|
|
662
|
+
lottieFileUrl: string;
|
|
663
|
+
soundUrl?: string;
|
|
664
|
+
deepLink?: string;
|
|
665
|
+
status: ScratchCardStatusValue;
|
|
666
|
+
successDetails?: ScratchSuccessDetails;
|
|
667
|
+
failedDetails?: ScratchFailedDetails;
|
|
668
|
+
}
|
|
669
|
+
export interface GetScratchCardCashbackInfoData {
|
|
670
|
+
header: BffResponseHeader;
|
|
671
|
+
payload: GetScratchCardCashbackInfoPayload;
|
|
672
|
+
responseValidTill?: number;
|
|
673
|
+
}
|
|
674
|
+
export declare type GetScratchCardCashbackInfoResponse = ResponseBase & {
|
|
675
|
+
unsigned: {
|
|
676
|
+
data: GetScratchCardCashbackInfoData;
|
|
677
|
+
responseValidTill?: number;
|
|
678
|
+
};
|
|
679
|
+
};
|
|
464
680
|
export interface StackAnimationCardInfo {
|
|
465
681
|
totalAnimationCards: number;
|
|
466
682
|
animationCardList: Array<AnimationCard>;
|
package/dist/types.d.ts
CHANGED
|
@@ -4,9 +4,19 @@ import { NativeParams, NativeResponse } from './jsbridge-core/jsbridge';
|
|
|
4
4
|
import { MiniAppErrorType } from './model/miniAppError';
|
|
5
5
|
import { OrderType } from './types/makePayment';
|
|
6
6
|
import { ErrorCodesType, PPFunctionNameType, PPUtilFunctionNameType } from './constants';
|
|
7
|
+
interface UserAgentData {
|
|
8
|
+
platform: string;
|
|
9
|
+
getHighEntropyValues: (hints: string[]) => Promise<{
|
|
10
|
+
platformVersion?: string;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
7
13
|
declare global {
|
|
8
|
-
type Optional<T, K extends keyof T> = Pick<
|
|
14
|
+
type Optional<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;
|
|
15
|
+
type PartialRequired<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
|
|
9
16
|
type ObjectValues<T> = T[keyof T];
|
|
17
|
+
interface Navigator {
|
|
18
|
+
readonly userAgentData?: UserAgentData;
|
|
19
|
+
}
|
|
10
20
|
}
|
|
11
21
|
export declare type MiniAppResult = Record<string, unknown>;
|
|
12
22
|
export interface MiniAppErrorResultType {
|
package/dist/utils/fetch.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export declare function fetchRefreshToken(refreshToken: string, clientOrigin?: s
|
|
|
85
85
|
success: boolean;
|
|
86
86
|
errorCode?: ErrorCodesType;
|
|
87
87
|
}>;
|
|
88
|
-
export declare function
|
|
88
|
+
export declare function logoutSmartPayment(): Promise<{
|
|
89
89
|
success: boolean;
|
|
90
90
|
}>;
|
|
91
91
|
export declare function fetchCookieSignal(clientId: string): Promise<void>;
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ErrorCodesType } from '../constants';
|
|
2
2
|
import { UIComponentsErrorButton } from '../model/uiComponents';
|
|
3
|
-
import { ErrorSheetButton, PaymentLabelType, SmartPayParams } from '../types';
|
|
3
|
+
import { ErrorSheetButton, Locale, PaymentLabelType, SmartPayParams } from '../types';
|
|
4
4
|
import { FontSize } from '../types/getPlatformInformation';
|
|
5
5
|
import { InitParams } from '../types/init';
|
|
6
|
-
import { BankInfo, CreditCardInfo, InfoBanner, MakePaymentParams, OrderType, PayLaterCCInfo, PaymentMethod, SbidBankInfo } from '../types/makePayment';
|
|
6
|
+
import { BankInfo, CreditCardInfo, InfoBanner, MakePaymentParams, OrderType, PayLaterCCInfo, PayPayCardFaceCode, PaymentMethod, SbidBankInfo } from '../types/makePayment';
|
|
7
7
|
import { PPFetchResult } from './fetch';
|
|
8
8
|
export declare function isDef<T>(val: T): val is NonNullable<T>;
|
|
9
9
|
export declare function isNumeric(val: string | number): val is string;
|
|
@@ -42,7 +42,7 @@ export declare enum MiniAppRuntime {
|
|
|
42
42
|
}
|
|
43
43
|
export declare function getRuntime(): MiniAppRuntime;
|
|
44
44
|
export declare function isPayPayMiniApp(): boolean;
|
|
45
|
-
export declare function getAndroidVersion(): number | null
|
|
45
|
+
export declare function getAndroidVersion(): Promise<number | null>;
|
|
46
46
|
export declare function getAppVersion(): string | null;
|
|
47
47
|
export declare function semVerCompare(a: string, b: string): boolean;
|
|
48
48
|
export declare function checkVersion(minVersion: string): boolean;
|
|
@@ -83,6 +83,8 @@ export declare function makeDefaultErrorHandler(params: {
|
|
|
83
83
|
}) => void;
|
|
84
84
|
} | undefined, onComplete: () => void, reportException?: (error: unknown) => void): (err: unknown) => void;
|
|
85
85
|
export declare function getCardBrandImage(brandName: string): string;
|
|
86
|
+
export declare const PAYPAY_CARD_FACE_IMAGE_MAP: Record<PayPayCardFaceCode, string>;
|
|
87
|
+
export declare function getPayPayCardFaceImage(payLaterCcInfo?: Pick<PayLaterCCInfo, 'faceCode' | 'linkedCardType'>): string | undefined;
|
|
86
88
|
export declare function hasMultiplePPCD(paymentMethods: PaymentMethod[] | undefined): boolean;
|
|
87
89
|
export declare function addAdditionalInfoForMultiplePPCD(paymentMethods: PaymentMethod[]): void;
|
|
88
90
|
declare type OrderInfo = SmartPayParams | MakePaymentParams;
|
|
@@ -97,4 +99,6 @@ export declare function isValidUrl(urlChallenge: string): boolean;
|
|
|
97
99
|
export declare function calculateTopMargin(navigationStyle: string, statusBarHeight: number, navBarHeight: number): number;
|
|
98
100
|
export declare function getWindowByName(frames: Window, windowName: string): Window | undefined;
|
|
99
101
|
export declare function isPaymentMethodDisabled(paymentMethod: PaymentMethod, ignoreMaintenanceFlag?: boolean): boolean;
|
|
102
|
+
export declare function to2DigitString(value: number | string): string;
|
|
103
|
+
export declare function getDateStringFromTimeStamp(timestamp: number, language: Locale): string;
|
|
100
104
|
export {};
|
package/dist/utils/ip.d.ts
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LogPageNavParams, LogPerfParams } from './types';
|
|
2
|
+
import { InitParams } from '../../types/init';
|
|
3
|
+
export declare function initOpenTelemetryWhenEnabled(initParams: InitParams): void;
|
|
4
|
+
export declare function logPageNav(params: LogPageNavParams): void;
|
|
5
|
+
export declare function logPerf(params: LogPerfParams): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InitOpenTelemetryParams, LogPageNavParams, LogPerfParams } from './types';
|
|
2
|
+
export declare function initOpenTelemetry({ clientId, otelEndpoint, pageName, clientPageLoadStartTime: _clientPageLoadStartTime, clientPageUrl, environmentName, serviceName, serviceVersion, }: InitOpenTelemetryParams): void;
|
|
3
|
+
export declare function removeEventListeners(): void;
|
|
4
|
+
export declare function logPageNav({ startTime, pageName, url, navigationType, }: LogPageNavParams): void;
|
|
5
|
+
export declare function logPerf({ type, startTime, endTime, featureName, }: LogPerfParams): void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface InitOpenTelemetryParams {
|
|
2
|
+
clientId: string;
|
|
3
|
+
pageName: string;
|
|
4
|
+
otelEndpoint: string;
|
|
5
|
+
clientPageLoadStartTime: number;
|
|
6
|
+
clientPageUrl: string;
|
|
7
|
+
environmentName: string;
|
|
8
|
+
serviceName?: string;
|
|
9
|
+
serviceVersion?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface LogPageNavParams {
|
|
12
|
+
startTime: number;
|
|
13
|
+
pageName: string;
|
|
14
|
+
url: string;
|
|
15
|
+
navigationType?: 'page-load' | 'spa-navigation';
|
|
16
|
+
}
|
|
17
|
+
export declare type MeasurementType = 'TTID' | 'TTKI' | 'TTMI' | 'TTFD';
|
|
18
|
+
export interface LogPerfParams {
|
|
19
|
+
type: MeasurementType;
|
|
20
|
+
startTime?: number;
|
|
21
|
+
endTime: number;
|
|
22
|
+
featureName?: string;
|
|
23
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
-
export declare function usePopStateHandler(callback: () => void, inputParams?: NativeParams<never>): void;
|
|
2
|
+
export declare function usePopStateHandler(callback: () => boolean | void, inputParams?: NativeParams<never>): void;
|
|
@@ -18,6 +18,8 @@ declare const CouponAction: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
18
18
|
getLoginUrl: typeof import("../../../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
19
19
|
getPaymentSettings: typeof import("../../../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
20
20
|
logEvent: typeof import("../../../../core/coreFunctions/logEvent").logEvent;
|
|
21
|
+
logPerf: typeof import("../../../../core/coreFunctions/logPerf").logPerf;
|
|
22
|
+
logPageNav: typeof import("../../../../core/coreFunctions/logPageNav").logPageNav;
|
|
21
23
|
logout: typeof import("../../../../core/coreFunctions/logout").logout;
|
|
22
24
|
markAsReady: typeof import("../../../../core/coreFunctions/markAsReady").markAsReady;
|
|
23
25
|
renderButton: typeof import("../../../../core/coreFunctions/renderButton").renderButton;
|
|
@@ -54,6 +56,8 @@ declare const CouponAction: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
54
56
|
getLoginUrl: typeof import("../../../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
55
57
|
getPaymentSettings: typeof import("../../../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
56
58
|
logEvent: typeof import("../../../../core/coreFunctions/logEvent").logEvent;
|
|
59
|
+
logPerf: typeof import("../../../../core/coreFunctions/logPerf").logPerf;
|
|
60
|
+
logPageNav: typeof import("../../../../core/coreFunctions/logPageNav").logPageNav;
|
|
57
61
|
logout: typeof import("../../../../core/coreFunctions/logout").logout;
|
|
58
62
|
markAsReady: typeof import("../../../../core/coreFunctions/markAsReady").markAsReady;
|
|
59
63
|
renderButton: typeof import("../../../../core/coreFunctions/renderButton").renderButton;
|
|
@@ -22,6 +22,8 @@ export declare const CouponView: import("vue").DefineComponent<import("vue").Ext
|
|
|
22
22
|
getLoginUrl: typeof import("../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
23
23
|
getPaymentSettings: typeof import("../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
24
24
|
logEvent: typeof import("../../core/coreFunctions/logEvent").logEvent;
|
|
25
|
+
logPerf: typeof import("../../core/coreFunctions/logPerf").logPerf;
|
|
26
|
+
logPageNav: typeof import("../../core/coreFunctions/logPageNav").logPageNav;
|
|
25
27
|
logout: typeof import("../../core/coreFunctions/logout").logout;
|
|
26
28
|
markAsReady: typeof import("../../core/coreFunctions/markAsReady").markAsReady;
|
|
27
29
|
renderButton: typeof import("../../core/coreFunctions/renderButton").renderButton;
|
|
@@ -66,6 +68,8 @@ export declare const CouponView: import("vue").DefineComponent<import("vue").Ext
|
|
|
66
68
|
getLoginUrl: typeof import("../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
67
69
|
getPaymentSettings: typeof import("../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
68
70
|
logEvent: typeof import("../../core/coreFunctions/logEvent").logEvent;
|
|
71
|
+
logPerf: typeof import("../../core/coreFunctions/logPerf").logPerf;
|
|
72
|
+
logPageNav: typeof import("../../core/coreFunctions/logPageNav").logPageNav;
|
|
69
73
|
logout: typeof import("../../core/coreFunctions/logout").logout;
|
|
70
74
|
markAsReady: typeof import("../../core/coreFunctions/markAsReady").markAsReady;
|
|
71
75
|
renderButton: typeof import("../../core/coreFunctions/renderButton").renderButton;
|