@paypay/mini-app-js-sdk 2.41.0 → 2.48.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 (61) hide show
  1. package/dist/client/clientUtils.d.ts +2 -1
  2. package/dist/client/communicationWithCore.d.ts +16 -0
  3. package/dist/client/functions/copyToClipboard.d.ts +2 -0
  4. package/dist/client/functions/coreWindowBridgeFunctions.d.ts +12 -0
  5. package/dist/client/functions/getKycPassportInfo.d.ts +3 -0
  6. package/dist/client/functions/logout.d.ts +6 -0
  7. package/dist/client/functions/renderCoupons.d.ts +6 -0
  8. package/dist/client/functions/scanCode.d.ts +2 -0
  9. package/dist/client/functions/setTitle.d.ts +2 -0
  10. package/dist/client/functions/share.d.ts +2 -0
  11. package/dist/client/functions/storageFunctions.d.ts +6 -0
  12. package/dist/client/functions/verifyMultiFactorAuthResult.d.ts +3 -0
  13. package/dist/client/index.d.ts +4 -54
  14. package/dist/client/types.d.ts +37 -2
  15. package/dist/client/{clientFunctions → windowBridgeFunctions}/storageFunctions.d.ts +10 -0
  16. package/dist/client/{clientFunctions → windowBridgeFunctions}/urlFunctions.d.ts +1 -0
  17. package/dist/core/coreFunctions/fetchCoupons.d.ts +4 -0
  18. package/dist/core/coreFunctions/getLoginUrl.d.ts +5 -1
  19. package/dist/core/coreFunctions/index.d.ts +17 -7
  20. package/dist/core/coreFunctions/logEvent.d.ts +4 -0
  21. package/dist/core/coreFunctions/markAsReady.d.ts +4 -0
  22. package/dist/core/coreFunctions/middlewares/initRequired.d.ts +2 -0
  23. package/dist/core/coreFunctions/middlewares/loginRequired.d.ts +2 -0
  24. package/dist/core/coreUtils.d.ts +1 -1
  25. package/dist/core/index.d.ts +1 -1
  26. package/dist/environment-variables.d.ts +0 -1
  27. package/dist/jsbridge-core/jsbridge.d.ts +4 -5
  28. package/dist/mini-app-api.d.ts +4 -4
  29. package/dist/mini-app-js-sdk.browser.js +2 -2
  30. package/dist/mini-app-js-sdk.es.js +865 -1493
  31. package/dist/model/bridge/getPlatformInformation.d.ts +1 -1
  32. package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
  33. package/dist/model/bridge/renderPayButton.d.ts +0 -6
  34. package/dist/model/miniAppError.d.ts +2 -5
  35. package/dist/package/lottie/lottie.d.ts +6 -6
  36. package/dist/types/checkPaymentMethod.d.ts +1 -1
  37. package/dist/types/getKycInformation.d.ts +3 -3
  38. package/dist/types/getKycPassportInfo.d.ts +2 -2
  39. package/dist/types/getPlatformInformation.d.ts +0 -1
  40. package/dist/types/init.d.ts +2 -3
  41. package/dist/types/makePayment.d.ts +421 -1
  42. package/dist/types/topup.d.ts +1 -1
  43. package/dist/types.d.ts +8 -2
  44. package/dist/utils/analytics.d.ts +1 -0
  45. package/dist/utils/api.d.ts +0 -1
  46. package/dist/utils/getAppDetail.d.ts +1 -0
  47. package/dist/utils/helper.d.ts +7 -4
  48. package/dist/utils/minimumAppVersion.d.ts +0 -5
  49. package/dist/utils/minimumJSSDKVersion.d.ts +1 -0
  50. package/dist/utils/storage.d.ts +0 -2
  51. package/dist/utils/windowBridge.d.ts +24 -3
  52. package/dist/views/coupon/components/Arrow/index.d.ts +5 -5
  53. package/dist/views/coupon/components/CouponAction/index.d.ts +27 -7
  54. package/dist/views/coupon/components/CouponContainer/index.d.ts +3 -3
  55. package/dist/views/coupon/index.d.ts +27 -7
  56. package/dist/views/registerPaymentFeatures/types.d.ts +1 -1
  57. package/package.json +55 -67
  58. package/dist/composition-api/useShowUpdateWarningKycPassport.d.ts +0 -4
  59. package/dist/model/makePayment.d.ts +0 -430
  60. package/dist/types/getLoginUrl.d.ts +0 -8
  61. /package/dist/client/{clientFunctions → windowBridgeFunctions}/index.d.ts +0 -0
@@ -1,3 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
2
  import { GetPlatformInformationResult } from '../../types/getPlatformInformation';
3
- export declare function getPlatformInformation(params: NativeParams<GetPlatformInformationResult>): Promise<void>;
3
+ export declare function getPlatformInformation(params: NativeParams<GetPlatformInformationResult>): void;
@@ -1,3 +1,3 @@
1
1
  import { NativeParams } from '../../jsbridge-core/jsbridge';
2
2
  import { GetTopBarHeightResult } from '../../types/getTopBarHeight';
3
- export declare function getTopBarHeight(params: NativeParams<GetTopBarHeightResult>): void;
3
+ export declare function getTopBarHeight(params: NativeParams<GetTopBarHeightResult>): Promise<void>;
@@ -1,11 +1,5 @@
1
1
  import { RenderSmartButtonParams, SmartButtonParam } from '../../types';
2
2
  export declare function getRenderPayInfo(params: RenderSmartButtonParams): Promise<{
3
- renderParams: RenderSmartButtonParams;
4
- data: SmartButtonParam;
5
- preferredLanguage: string;
6
- isLoggedIn?: undefined;
7
- isJustLoggedIn?: undefined;
8
- } | {
9
3
  renderParams: RenderSmartButtonParams;
10
4
  data: SmartButtonParam;
11
5
  isLoggedIn: boolean;
@@ -67,9 +67,6 @@ export declare enum MiniAppErrorType {
67
67
  unexpectedOperation = "UNEXPECTED_OP",
68
68
  merchantTimeout = "MERCHANT_TIMEOUT",
69
69
  rateLimitExceeded = "RATE_LIMIT_EXCEEDED",
70
- sdkUpgradeRequired = "SDK_UPGRADE_REQUIRED"
71
- }
72
- export declare class MiniAppError extends Error {
73
- constructor(type: MiniAppErrorType);
74
- toString(): string;
70
+ sdkUpgradeRequired = "SDK_UPGRADE_REQUIRED",
71
+ authorizationNeeded = "AUTHORIZATION_NEEDED"
75
72
  }
@@ -2,7 +2,7 @@ import { PropType } from 'vue';
2
2
  import { AnimationItem } from 'lottie-web/build/player/lottie_svg';
3
3
  import { RenderType } from '../../types';
4
4
  declare type TRenderType = (typeof RenderType)[keyof typeof RenderType];
5
- declare const _default: import("vue").DefineComponent<{
5
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
6
  loop: {
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
@@ -32,9 +32,9 @@ declare const _default: import("vue").DefineComponent<{
32
32
  default: RenderType;
33
33
  required: false;
34
34
  };
35
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
36
  'create-lottie': (_p: AnimationItem) => true;
37
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
38
  loop: {
39
39
  type: BooleanConstructor;
40
40
  default: boolean;
@@ -64,14 +64,14 @@ declare const _default: import("vue").DefineComponent<{
64
64
  default: RenderType;
65
65
  required: false;
66
66
  };
67
- }>> & {
67
+ }>> & Readonly<{
68
68
  "onCreate-lottie"?: ((_p: AnimationItem) => any) | undefined;
69
- }, {
69
+ }>, {
70
70
  path: string;
71
71
  type: TRenderType;
72
72
  loop: boolean;
73
73
  autoplay: boolean;
74
74
  styles: Record<string, any>;
75
75
  className: string;
76
- }>;
76
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
77
77
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { NativeParams } from '../jsbridge-core/jsbridge';
2
- import { PaymentMethodNameType } from '../model/makePayment';
2
+ import { PaymentMethodNameType } from '../types/makePayment';
3
3
  export declare const AvailableCheckPaymentMethod: {
4
4
  readonly acquiring: "ACQUIRING";
5
5
  readonly topup: "TOPUP";
@@ -40,11 +40,11 @@ export interface KycData {
40
40
  job?: string;
41
41
  }
42
42
  export declare type GetKycInformationResult = {
43
- status: KycStatusType | string;
43
+ status: KycStatusType;
44
44
  kycAt?: string;
45
45
  kycInfo?: KycData;
46
- type?: KycMethodType | string;
47
- eKycDocuments?: EKycDocumentType | string;
46
+ type?: KycMethodType;
47
+ eKycDocuments?: EKycDocumentType;
48
48
  ngReason?: string;
49
49
  jws: string;
50
50
  };
@@ -13,8 +13,8 @@ export declare type GetKycPassportInfoResult = {
13
13
  status: 'COMPLETED';
14
14
  kycAt: string;
15
15
  kycInfo: KycData;
16
- type: KycMethodType | string;
17
- eKycDocuments: EKycDocumentType | string;
16
+ type: KycMethodType;
17
+ eKycDocuments: EKycDocumentType;
18
18
  jws: string;
19
19
  possessionAuthResult: 'SUCCESS';
20
20
  nonce: string;
@@ -1,6 +1,5 @@
1
1
  export declare type GetPlatformInformationResult = {
2
2
  appVersion: string | null;
3
- sdkVersion: string | null;
4
3
  preferredLanguage: string;
5
4
  fontSize: FontSize;
6
5
  };
@@ -5,7 +5,6 @@ export interface InitClientParams extends NativeParams<InitResult> {
5
5
  env?: PPEnvType;
6
6
  mode?: string;
7
7
  debugMode?: boolean;
8
- useAllFunctions?: boolean;
9
8
  }
10
9
  export interface InitParams extends NativeParams<InitResult> {
11
10
  clientId: string;
@@ -17,7 +16,6 @@ export interface InitParams extends NativeParams<InitResult> {
17
16
  codeVerifier?: string;
18
17
  clientVersion?: string;
19
18
  debugMode?: boolean;
20
- useAllFunctions?: boolean;
21
19
  clientSdkType?: SdkType;
22
20
  clientUrl?: string;
23
21
  }
@@ -31,7 +29,7 @@ export declare const PPEnv: {
31
29
  };
32
30
  export declare type PPEnvType = (typeof PPEnv)[keyof typeof PPEnv];
33
31
  export declare type InitResult = {
34
- statusCode: InitStatusCodeType | string;
32
+ statusCode: InitStatusCodeType;
35
33
  };
36
34
  export declare const InitStatusCode: {
37
35
  readonly initialized: "INITIALIZED";
@@ -39,5 +37,6 @@ export declare const InitStatusCode: {
39
37
  readonly tokenExpired: "TOKEN_EXPIRED";
40
38
  readonly sdkNotInitialized: "SDK_NOT_INITIALIZED";
41
39
  readonly tokenNotFound: "TOKEN_NOT_FOUND";
40
+ readonly authorizationNeeded: "AUTHORIZATION_NEEDED";
42
41
  };
43
42
  export declare type InitStatusCodeType = (typeof InitStatusCode)[keyof typeof InitStatusCode];
@@ -1,5 +1,7 @@
1
1
  import { NativeParams } from '../jsbridge-core/jsbridge';
2
2
  import { Address } from '../types/getUserAddress';
3
+ import { UIComponentsError } from '../model/uiComponents';
4
+ import { MiniAppErrorType } from '../model/miniAppError';
3
5
  export declare const Order: {
4
6
  readonly ACQUIRING: "ACQUIRING";
5
7
  readonly REMITTANCE: "REMITTANCE";
@@ -50,6 +52,424 @@ export declare type MakePaymentResult = {
50
52
  address: Address | null;
51
53
  };
52
54
  export declare const PaymentConsultResultCode: {
53
- EKYC_REQUIRED: string;
55
+ EKYC_REQUIRED_FOR_DONATION: string;
54
56
  INSUFFICIENT_BALANCE_AND_NO_AVAILABLE_TOPUP_METHOD: string;
57
+ EKYC_REQUIRED_FOR_PAYMENT: string;
55
58
  };
59
+ export declare type PaymentQuery = {
60
+ merchant?: string;
61
+ agreeSimilarTransaction: boolean;
62
+ };
63
+ export interface PaymentBody {
64
+ merchantPaymentId: string;
65
+ amount: Amount;
66
+ orderReceiptNumber?: string;
67
+ orderDescription?: string;
68
+ orderItems?: Array<OrderItem>;
69
+ metaData?: unknown;
70
+ storeId?: string;
71
+ paymentMethodId: string;
72
+ terminalId?: number | string;
73
+ merchantAlias?: string;
74
+ requestedAt?: number;
75
+ productType?: string;
76
+ storeInfo?: string;
77
+ metadata?: unknown;
78
+ expiresAt?: number;
79
+ merchant?: string;
80
+ }
81
+ export declare type Balance = {
82
+ balance: number;
83
+ currency: 'JPY';
84
+ usable: boolean;
85
+ };
86
+ export declare const PaymentMethodName: {
87
+ readonly WALLET: "WALLET";
88
+ readonly CREDIT_CARD: "CREDIT_CARD";
89
+ readonly BANK: "BANK";
90
+ readonly YMONEY_BANK: "YMONEY_BANK";
91
+ readonly SBID_CARRIER_BILLING: "SBID_CARRIER_BILLING";
92
+ readonly PAY_LATER: "PAY_LATER";
93
+ readonly PAY_LATER_CC: "PAY_LATER_CC";
94
+ };
95
+ export declare type PaymentMethodNameType = (typeof PaymentMethodName)[keyof typeof PaymentMethodName];
96
+ declare type GlobalLimitInfo = {
97
+ topup?: {
98
+ min: number;
99
+ max: number;
100
+ formattedMax: string;
101
+ formattedMin: string;
102
+ };
103
+ };
104
+ declare type MethodBase = {
105
+ paymentMethodId: string;
106
+ paymentMethodType: PaymentMethodNameType;
107
+ descriptionBannerInfo?: BannerInfo;
108
+ walletInfo?: unknown;
109
+ creditCardInfo?: unknown;
110
+ bankInfo?: unknown;
111
+ sbidCarrierBillingInfo?: unknown;
112
+ payLaterCcInfo?: unknown;
113
+ paymentMethodDescriptionInfo?: {
114
+ statusDescription: DescriptionInfo | null;
115
+ additionalDescription: DescriptionInfo | null;
116
+ detailDescription: DescriptionInfo | null;
117
+ label?: DescriptionInfo | null;
118
+ amountInfo?: {
119
+ label: string;
120
+ amount: number;
121
+ currency: string;
122
+ };
123
+ };
124
+ feeInfo?: TopupFeeInfo;
125
+ globalLimitInfo?: GlobalLimitInfo;
126
+ };
127
+ export declare type DescriptionInfo = {
128
+ text: string;
129
+ linkUrl?: string;
130
+ headerIcon?: string;
131
+ isBold: boolean;
132
+ color: string;
133
+ backgroundColor?: string;
134
+ };
135
+ export declare type BannerInfo = {
136
+ label?: string;
137
+ title?: string;
138
+ iconImageUrl?: string;
139
+ displayResponse?: UIComponentsError;
140
+ };
141
+ export declare type WalletMethod = MethodBase & {
142
+ paymentMethodType: 'WALLET';
143
+ walletInfo?: {
144
+ cashBackBalanceInfo?: Balance;
145
+ cashBackExpirableBalanceInfo?: Balance;
146
+ emoneyBalanceInfo?: Balance;
147
+ prepaidBalanceInfo?: Balance;
148
+ isPreTransactionAutoChargeEnabled?: boolean;
149
+ walletSummary?: {
150
+ totalBalanceInfo: Balance;
151
+ payoutableBalanceInfo: Balance;
152
+ transferableBalanceInfo: Balance;
153
+ };
154
+ walletDetail?: {
155
+ emoneyBalanceInfo?: Balance;
156
+ totalEmoneyBalanceInfo?: Balance;
157
+ prepaidBalanceInfo?: Balance;
158
+ cashBackBalanceInfo?: Balance;
159
+ cashBackExpirableBalanceInfo?: Balance;
160
+ };
161
+ };
162
+ };
163
+ export declare enum CreditTypes {
164
+ VISA = "VISA",
165
+ MASTER = "MASTER",
166
+ JCB = "JCB",
167
+ DINERS = "D",
168
+ AMEX = "A",
169
+ OTHER = "O"
170
+ }
171
+ export declare enum PaymentMethodStatus {
172
+ ACTIVATED = "ACTIVATED",
173
+ OFF = "OFF",
174
+ APPLYING = "APPLYING",
175
+ MAINTENANCE = "MAINTENANCE",
176
+ BUSY = "BUSY",
177
+ SUSPENDED = "SUSPENDED"
178
+ }
179
+ export declare enum PayPayCardType {
180
+ GOLD = "GOLD",
181
+ REGULAR = "REGULAR"
182
+ }
183
+ export declare type CreditCardInfo = {
184
+ brand?: CreditTypes;
185
+ isAuthenticated?: boolean;
186
+ isExpired?: boolean;
187
+ isYjCard?: boolean;
188
+ last4digits?: string;
189
+ ccType?: string;
190
+ paymentMethodStatus?: PaymentMethodStatus;
191
+ preTransactionAutoChargeSupported?: boolean;
192
+ paymentMethodStatusLabel?: string;
193
+ };
194
+ export declare type CreditMethod = MethodBase & {
195
+ paymentMethodType: 'CREDIT_CARD';
196
+ creditCardInfo?: CreditCardInfo;
197
+ };
198
+ export declare enum bankCode {
199
+ MIZUHO_BANK_CODE = "0001",
200
+ MUFJ_BANK_CODE = "0005",
201
+ SMBC_BANK_CODE = "0009",
202
+ RESONA_BANK_CODE = "0010",
203
+ S_RESONA_BANK_CODE = "0017",
204
+ JNB_BANK_CODE = "0033",
205
+ YUCHO_BANK_CODE = "9900",
206
+ AEON_BANK_CODE = "0040",
207
+ JIBUN_BANK_CODE = "0039",
208
+ SBI_BANK_CODE = "0038"
209
+ }
210
+ export declare const status: Readonly<{
211
+ ACTIVATED: string;
212
+ OFF: string;
213
+ APPLYING: string;
214
+ MAINTENANCE: string;
215
+ BUSY: string;
216
+ SUSPENDED: string;
217
+ }>;
218
+ export declare type BankInfo = {
219
+ paymentMethodStatusLabel?: string;
220
+ paymentMethodStatus?: PaymentMethodStatus;
221
+ bankName?: string;
222
+ bankLogoUrl?: string;
223
+ bankCode?: string;
224
+ bankCardImage?: {
225
+ cardUrl: string;
226
+ textColor: string;
227
+ uiColor: string;
228
+ };
229
+ bankBranchName?: string;
230
+ bankBranchCode?: string;
231
+ bankAccountType?: string;
232
+ bankAccountNumberLast2digits?: string;
233
+ preTransactionAutoChargeSupported?: boolean;
234
+ showAmount?: boolean;
235
+ };
236
+ export declare type BankMethod = MethodBase & {
237
+ paymentMethodType: 'BANK' | 'YMONEY_BANK';
238
+ bankInfo?: BankInfo;
239
+ };
240
+ export declare type SbidBankMethod = MethodBase & {
241
+ paymentMethodType: 'SBID_CARRIER_BILLING';
242
+ sbidCarrierBillingInfo?: SbidBankInfo;
243
+ };
244
+ export declare type SbidBankInfo = {
245
+ paymentMethodStatus?: PaymentMethodStatus;
246
+ paymentMethodStatusLabel?: string;
247
+ };
248
+ declare type PayLaterCCMethodAdditionalInfo = {
249
+ showCardDetails?: boolean;
250
+ };
251
+ export declare type PayLaterCCMethod = MethodBase & PayLaterCCMethodAdditionalInfo & {
252
+ paymentMethodType: 'PAY_LATER_CC';
253
+ payLaterCcInfo?: PayLaterCCInfo;
254
+ };
255
+ export declare type PayLaterCCInfo = {
256
+ cardName?: string;
257
+ last4digits?: string;
258
+ linkedCardBrand?: Exclude<CreditTypes, CreditTypes.AMEX | CreditTypes.DINERS | CreditTypes.OTHER>;
259
+ linkedCardType?: PayPayCardType;
260
+ availableAmount?: number;
261
+ paymentMethodStatus?: PaymentMethodStatus;
262
+ paymentMethodStatusLabel?: string;
263
+ };
264
+ declare type PayLaterMethod = MethodBase & {
265
+ paymentMethodType: 'PAY_LATER';
266
+ };
267
+ export declare type ResponseBase = {
268
+ status: number;
269
+ signed: {
270
+ jws?: string;
271
+ };
272
+ uiComponents?: {
273
+ displayErrorResponse: UIComponentsError;
274
+ };
275
+ unsigned: {
276
+ resultInfo: {
277
+ code: MiniAppErrorType;
278
+ };
279
+ };
280
+ };
281
+ export declare type PaymentMethod = WalletMethod | CreditMethod | BankMethod | SbidBankMethod | PayLaterCCMethod | PayLaterMethod;
282
+ export declare type TopupFeeInfo = {
283
+ feePercentage?: number;
284
+ label: string;
285
+ zeroFeeText?: string;
286
+ };
287
+ declare type PaymentMethodPreference = {
288
+ preTransactionAutoChargeEnabled: boolean;
289
+ prioritizedPaymentMethodsEnabled: boolean;
290
+ };
291
+ declare type OverdraftBalanceInfo = {
292
+ balance: number;
293
+ currency: string;
294
+ };
295
+ export declare type InfoBanner = {
296
+ text: string;
297
+ additionalText: string;
298
+ link: string;
299
+ linkText: string;
300
+ type: string;
301
+ };
302
+ export declare type GetPaymentMethodsResponse = ResponseBase & {
303
+ unsigned: {
304
+ data: {
305
+ payload: {
306
+ paymentMethodList: PaymentMethod[];
307
+ appealDescription: AppealDescription | null;
308
+ paymentMethodPreference: PaymentMethodPreference | null;
309
+ overdraftBalanceInfo?: OverdraftBalanceInfo;
310
+ infoBannerList?: InfoBanner[];
311
+ };
312
+ };
313
+ };
314
+ };
315
+ export declare type PaymentResult = {
316
+ requestedAt: number;
317
+ storeId: string;
318
+ amount: Amount;
319
+ statusLabelString: string;
320
+ statusLabelColor: string;
321
+ userAuthorizationId: string;
322
+ acceptedAt: number;
323
+ merchantName: string;
324
+ orderDescription: string;
325
+ status: 'COMPLETED' | 'AUTHORIZED';
326
+ paymentId: string;
327
+ expiresAt: number;
328
+ };
329
+ export declare type MakePaymentResponse = ResponseBase & {
330
+ signed: {
331
+ jws: string;
332
+ };
333
+ unsigned: {
334
+ data: PaymentResult;
335
+ };
336
+ };
337
+ export declare type AppealDescription = {
338
+ backgroundColor?: string;
339
+ color: string;
340
+ headerIcon?: string | null;
341
+ isBold: boolean;
342
+ linkUrl?: string;
343
+ text: string;
344
+ };
345
+ export declare type InsufficientBalanceInfo = {
346
+ appealDescription: AppealDescription;
347
+ insufficientAmount: number;
348
+ paymentMethodList: PaymentMethod[];
349
+ prepaidOnly: boolean | null;
350
+ recommendedTopupAmount: number;
351
+ totalBalanceInfo: {
352
+ balance: number;
353
+ currency: 'JPY';
354
+ };
355
+ overdraftBalanceInfo?: OverdraftBalanceInfo;
356
+ infoBannerList?: InfoBanner[];
357
+ };
358
+ export declare type ConsultError = {
359
+ backendResultCode: string;
360
+ displayErrorResponse?: UIComponentsError;
361
+ insufficientAmount: number;
362
+ insufficientBalanceInfo: InsufficientBalanceInfo;
363
+ paymentMethodList: PaymentMethod[];
364
+ recommendedTopupAmount: number;
365
+ };
366
+ export declare type ConsultResponse = ResponseBase & {
367
+ unsigned: {
368
+ resultInfo: unknown;
369
+ data: {
370
+ error?: ConsultError;
371
+ header: {
372
+ resultCode: string;
373
+ };
374
+ };
375
+ };
376
+ };
377
+ export declare type PaymentObject = {
378
+ methodId: string;
379
+ methodType: string;
380
+ amount: number;
381
+ currency: string;
382
+ };
383
+ interface CashBackDetailHelpLink {
384
+ label: string;
385
+ url: string;
386
+ googleAnalyticsInfo: unknown;
387
+ }
388
+ interface CashBackDetailItem {
389
+ campaignId: string;
390
+ bannerId: string | null;
391
+ campaignName: string;
392
+ campaignNameColor: string;
393
+ optionalText: string | null;
394
+ optionalTextColor: string | null;
395
+ amountText: string;
396
+ amountTextColor: string;
397
+ couponIdText: string | null;
398
+ couponIdTextColor: string | null;
399
+ status: string;
400
+ isMeti: boolean;
401
+ deeplinkUrl: string | null;
402
+ googleAnalyticsInfo: unknown;
403
+ }
404
+ interface CouponCashbackDetail {
405
+ title: string;
406
+ iconImageUrl: string;
407
+ cashBackDetailLinkLabel: string;
408
+ cashBackDetailLinkTarget: string;
409
+ googleAnalyticsInfo: unknown;
410
+ }
411
+ interface CashBackDetail {
412
+ cashBackDetailListDescription: string | null;
413
+ cashBackDetailHelpLink: CashBackDetailHelpLink | null;
414
+ cashBackDetailList: Array<CashBackDetailItem>;
415
+ googleAnalyticsInfo: unknown;
416
+ }
417
+ export interface CashBackComponent {
418
+ cashBackAmount: number;
419
+ currencyText: string;
420
+ cashBackAmountText: string | null;
421
+ cashBackDescription: string;
422
+ animationUrl: string;
423
+ optionalText: string | null;
424
+ cashBackDetailLinkLabel: string;
425
+ couponCashbackDetail: CouponCashbackDetail;
426
+ cashBackDetail: CashBackDetail;
427
+ }
428
+ export interface AnimationCard {
429
+ cardId: string;
430
+ campaignId: string | null;
431
+ cardType: string;
432
+ animationUrl: string;
433
+ amount: number | null;
434
+ soundUrl: string | null;
435
+ duration: number | null;
436
+ title: string | null;
437
+ description: string | null;
438
+ showAgeConfirmFlag?: boolean | null;
439
+ backgroundColor: string | null;
440
+ }
441
+ export interface StackAnimationCardInfo {
442
+ totalAnimationCards: number;
443
+ animationCardList: Array<AnimationCard>;
444
+ }
445
+ export interface CashBackDetailResponsePayload {
446
+ cashBackComponent: CashBackComponent;
447
+ stackAnimationCardInfo: StackAnimationCardInfo | null;
448
+ cashBackDescriptionForShareLink: string;
449
+ }
450
+ export declare type CashBackDetailResponse = ResponseBase & {
451
+ unsigned: {
452
+ data: {
453
+ payload: CashBackDetailResponsePayload;
454
+ };
455
+ };
456
+ };
457
+ export declare type SendAgePayload = {
458
+ month: number;
459
+ orderId: string;
460
+ year: number;
461
+ orderType: 'ACQUIRING';
462
+ amount: number;
463
+ date: number;
464
+ campaignId: string;
465
+ };
466
+ export declare type SendAgeResponse = ResponseBase & {
467
+ unsigned: {
468
+ data: {
469
+ payload: {
470
+ isEligibleForCashBack: boolean;
471
+ };
472
+ };
473
+ };
474
+ };
475
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { NativeParams } from '../jsbridge-core/jsbridge';
2
2
  import { MiniAppErrorResultType } from '../types';
3
- import { PaymentMethodNameType } from '../model/makePayment';
3
+ import { PaymentMethodNameType } from '../types/makePayment';
4
4
  export interface TopupParams extends NativeParams<TopupResult, MiniAppErrorResultType & {
5
5
  jws?: string;
6
6
  }> {
package/dist/types.d.ts CHANGED
@@ -286,7 +286,8 @@ export declare enum PpLocalStorageKey {
286
286
  debugMode = "ppjssdk.debugMode",
287
287
  claimCouponImmediately = "ppjssdk.claimCouponImmediately",
288
288
  merchant = "ppjssdk.merchant",
289
- consumedOTT = "ppjssdk.consumedOTT"
289
+ consumedOTT = "ppjssdk.consumedOTT",
290
+ initializedAt = "ppjssdk.initializedAt"
290
291
  }
291
292
  export declare enum RenderType {
292
293
  COVER = "cover",
@@ -488,7 +489,12 @@ export interface PayPayCallStackParamsType {
488
489
  complete?: () => void;
489
490
  [index: string]: unknown;
490
491
  }
491
- export declare type PayPayCallStackType = Array<[string, PayPayCallStackParamsType]>;
492
+ declare type PromiseResolve<T> = (value?: T | PromiseLike<T>) => void;
493
+ export declare type PayPayCallStackType = Array<[
494
+ string,
495
+ PayPayCallStackParamsType,
496
+ PromiseResolve<unknown>
497
+ ]>;
492
498
  declare global {
493
499
  interface Window {
494
500
  _ppcs?: PayPayCallStackType;
@@ -15,6 +15,7 @@ interface EventParams {
15
15
  hashed_ott?: string;
16
16
  has_rt?: string;
17
17
  has_cv?: string;
18
+ incognito?: string;
18
19
  }
19
20
  interface Options {
20
21
  env?: PPEnvType;
@@ -328,5 +328,4 @@ export declare function getUserLocationRequest(params: {
328
328
  validTimeMinutes: number;
329
329
  }): Promise<import("./fetch").PPFetchResult<UserLocationResponse, Record<string, unknown>>>;
330
330
  export declare function getExpectedCashbackInfo(orderInfo: SmartPayParams): Promise<import("./fetch").PPFetchResult<CashbackResponse, Record<string, unknown>>>;
331
- export declare function isValidUrl(urlChallenge: string): boolean;
332
331
  export {};
@@ -4,3 +4,4 @@ export declare function fetchAppDetail(accessToken?: string, options?: {
4
4
  priority?: 'high' | 'low';
5
5
  }): Promise<SerializedAppDetail>;
6
6
  export declare function useAppDetail(): Ref<SerializedAppDetail | null>;
7
+ export declare function getCachedAppDetailOrFetch(): Promise<SerializedAppDetail>;
@@ -1,13 +1,13 @@
1
1
  import { MiniAppErrorType } from '../model/miniAppError';
2
- import { BankInfo, CreditCardInfo, SbidBankInfo, PayLaterCCInfo, PaymentMethod, InfoBanner } from '../model/makePayment';
3
2
  import { UIComponentsErrorButton } from '../model/uiComponents';
4
3
  import { ErrorSheetButton, PaymentLabelType, SmartPayParams } from '../types';
5
4
  import { FontSize } from '../types/getPlatformInformation';
6
5
  import { NativeParams } from '../jsbridge-core/jsbridge';
7
6
  import { App } from 'vue';
8
- import { OrderType, MakePaymentParams } from '../types/makePayment';
7
+ import { OrderType, MakePaymentParams, BankInfo, CreditCardInfo, InfoBanner, PayLaterCCInfo, PaymentMethod, SbidBankInfo } from '../types/makePayment';
8
+ import { InitParams } from '../types/init';
9
9
  export declare function isDef<T>(val: T): val is NonNullable<T>;
10
- export declare function isFunction(val: unknown): val is () => void;
10
+ export declare function isFunction(val: unknown): val is (...ars: Array<unknown>) => unknown;
11
11
  export declare function isNumeric(val: string | number): val is string;
12
12
  export declare function formatNumber(value: string, options?: {
13
13
  allowDot?: boolean;
@@ -43,12 +43,13 @@ export declare enum MiniAppRuntime {
43
43
  }
44
44
  export declare function getRuntime(): MiniAppRuntime;
45
45
  export declare function isPayPayMiniApp(): boolean;
46
+ export declare function getAndroidVersion(): number | null;
46
47
  export declare function getAppVersion(): string | null;
47
48
  export declare function semVerCompare(a: string, b: string): boolean;
48
49
  export declare function checkVersion(minVersion: string): boolean;
49
50
  export declare function checkJSSDKVersion(minVersion: string): boolean;
50
51
  export declare function clientStorageFunctionsAreAvailable(): boolean;
51
- export declare function clientQueryParamRemoval(): boolean;
52
+ export declare function shouldRemoveOTTFromQueryParams(initParams: InitParams): boolean;
52
53
  export declare function getPlatformFontSize(): FontSize;
53
54
  export declare function delay(time?: number): Promise<boolean>;
54
55
  export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string | null | undefined) => {
@@ -91,4 +92,6 @@ export declare function checkIfSdkUpgradeNeededForRemittance(orderType?: OrderTy
91
92
  export declare function isMobileSize(width: number): boolean;
92
93
  export declare function isDesktopSize(width: number): boolean;
93
94
  export declare function getOverDraftInfoBanner(banners?: Array<InfoBanner>): InfoBanner | undefined;
95
+ export declare function isValidUrl(urlChallenge: string): boolean;
96
+ export declare function calculateTopMargin(navigationStyle: string, statusBarHeight: number, navBarHeight: number): number;
94
97
  export {};