@paypay/mini-app-js-sdk 1.24.0 → 1.25.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.
@@ -2,5 +2,5 @@ export declare type Mod = string | {
2
2
  [key: string]: unknown;
3
3
  };
4
4
  export declare type Mods = Mod | Mod[];
5
- export declare function createBEM(name: string): (el?: Mods | undefined, mods?: Mods | undefined) => Mods;
5
+ export declare function createBEM(name: string): (el?: Mods | undefined, mods?: Mods | undefined) => string;
6
6
  export declare type BEM = ReturnType<typeof createBEM>;
@@ -1,4 +1,4 @@
1
- export declare function createNamespace(name: string): readonly [(el?: import("./bem").Mods | undefined, mods?: import("./bem").Mods | undefined) => import("./bem").Mods];
1
+ export declare function createNamespace(name: string): readonly [(el?: import("./bem").Mods | undefined, mods?: import("./bem").Mods | undefined) => string];
2
2
  export declare type ObjectLiteralStyle = {
3
3
  [className: string]: boolean;
4
4
  };
@@ -7,7 +7,7 @@ export declare type ErrorResponse = {
7
7
  declare function ppFetch<T>(options: {
8
8
  method: string;
9
9
  url: string;
10
- params?: any;
10
+ params?: Record<string, string | number | boolean | undefined>;
11
11
  data?: unknown;
12
12
  headers?: Record<string, string>;
13
13
  suppressRefresh?: boolean;
@@ -8,10 +8,13 @@ export declare function formatNumber(value: string, options?: {
8
8
  allowMinus?: boolean;
9
9
  }): string;
10
10
  export declare const numberWithCommas: (x?: number) => string;
11
- export declare function formatCurrency(val: number, n: number, x?: number): string;
11
+ export declare function formatCurrency(val: number, n: number): string;
12
12
  export declare function trigger(target: Element, type: string): void;
13
13
  export declare function isObject(val: unknown): val is Record<string, unknown>;
14
14
  export declare function isPromise<T = unknown>(val: unknown): val is Promise<T>;
15
+ interface LastPayment {
16
+ paymentAt: number;
17
+ }
15
18
  export declare function checkDuplicateTopup(amount: number): boolean;
16
19
  export declare const debounce: (fn: (args?: unknown) => unknown) => (...params: unknown[]) => void;
17
20
  interface PersistenceLastPayment {
@@ -22,7 +25,7 @@ interface PersistenceLastTopup {
22
25
  amount: number;
23
26
  }
24
27
  export declare function saveTopup(lastTopup: PersistenceLastTopup): boolean;
25
- export declare function getLastPayment(): any;
28
+ export declare function getLastPayment(): (LastPayment & PersistenceLastPayment) | null;
26
29
  export declare function getLastPaymentMethod(): string | null;
27
30
  export declare function getLastTopupPayMethod(): string | null;
28
31
  export declare function existDuplicatePayment(price: number): boolean;
@@ -42,5 +45,5 @@ export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string
42
45
  };
43
46
  export declare function updateLocalisedString(data: string, target: string, value: string): string;
44
47
  export declare function handleHeightResize(el: HTMLElement, windowHeight: number, isScrollable: boolean, offsetHeight: number): boolean;
45
- export declare function getPaymentMethodStatus(isExpired: boolean, val?: PaymentMethodStatus): string;
48
+ export declare function getPaymentMethodStatus(isExpired: boolean, val?: PaymentMethodStatus): unknown;
46
49
  export {};
@@ -1,4 +1,5 @@
1
- export declare const popStateHandler: (callback: () => void, inputParams?: Record<string, any> | undefined) => {
1
+ import { PopStateInputParams } from '../types';
2
+ export declare const popStateHandler: (callback: () => void, inputParams?: PopStateInputParams | undefined) => {
2
3
  mounted(): void;
3
4
  unmounted(): void;
4
5
  };
@@ -72,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
72
72
  paymentMethodDescriptionInfo?: {
73
73
  statusDescription: {
74
74
  [x: string]: unknown;
75
- };
75
+ } | null;
76
76
  } | undefined;
77
77
  walletInfo?: {
78
78
  cashBackBalanceInfo?: {
@@ -164,7 +164,7 @@ declare const _default: import("vue").DefineComponent<{
164
164
  paymentMethodDescriptionInfo?: {
165
165
  statusDescription: {
166
166
  [x: string]: unknown;
167
- };
167
+ } | null;
168
168
  } | undefined;
169
169
  creditCardInfo?: {
170
170
  brand?: import("../../../../model/makePayment").CreditTypes | undefined;
@@ -204,7 +204,7 @@ declare const _default: import("vue").DefineComponent<{
204
204
  paymentMethodDescriptionInfo?: {
205
205
  statusDescription: {
206
206
  [x: string]: unknown;
207
- };
207
+ } | null;
208
208
  } | undefined;
209
209
  bankInfo?: {
210
210
  paymentMethodStatusLabel?: string | undefined;
@@ -251,7 +251,7 @@ declare const _default: import("vue").DefineComponent<{
251
251
  paymentMethodDescriptionInfo?: {
252
252
  statusDescription: {
253
253
  [x: string]: unknown;
254
- };
254
+ } | null;
255
255
  } | undefined;
256
256
  sbidCarrierBillingInfo?: {
257
257
  paymentMethodStatus?: import("../../../../model/makePayment").PaymentMethodStatus | undefined;
@@ -286,7 +286,11 @@ declare const _default: import("vue").DefineComponent<{
286
286
  paymentMethodDescriptionInfo?: {
287
287
  statusDescription: {
288
288
  [x: string]: unknown;
289
- };
289
+ } | null;
290
+ } | undefined;
291
+ payLaterCcInfo?: {
292
+ availableAmount?: number | undefined;
293
+ paymentMethodStatus?: import("../../../../model/makePayment").PaymentMethodStatus | undefined;
290
294
  } | undefined;
291
295
  }>;
292
296
  bannerInfo: import("vue").ComputedRef<{
@@ -341,7 +345,7 @@ declare const _default: import("vue").DefineComponent<{
341
345
  paymentMethodDescriptionInfo?: {
342
346
  statusDescription: {
343
347
  [x: string]: unknown;
344
- };
348
+ } | null;
345
349
  } | undefined;
346
350
  walletInfo?: {
347
351
  cashBackBalanceInfo?: {
@@ -433,7 +437,7 @@ declare const _default: import("vue").DefineComponent<{
433
437
  paymentMethodDescriptionInfo?: {
434
438
  statusDescription: {
435
439
  [x: string]: unknown;
436
- };
440
+ } | null;
437
441
  } | undefined;
438
442
  creditCardInfo?: {
439
443
  brand?: import("../../../../model/makePayment").CreditTypes | undefined;
@@ -473,7 +477,7 @@ declare const _default: import("vue").DefineComponent<{
473
477
  paymentMethodDescriptionInfo?: {
474
478
  statusDescription: {
475
479
  [x: string]: unknown;
476
- };
480
+ } | null;
477
481
  } | undefined;
478
482
  bankInfo?: {
479
483
  paymentMethodStatusLabel?: string | undefined;
@@ -520,7 +524,7 @@ declare const _default: import("vue").DefineComponent<{
520
524
  paymentMethodDescriptionInfo?: {
521
525
  statusDescription: {
522
526
  [x: string]: unknown;
523
- };
527
+ } | null;
524
528
  } | undefined;
525
529
  sbidCarrierBillingInfo?: {
526
530
  paymentMethodStatus?: import("../../../../model/makePayment").PaymentMethodStatus | undefined;
@@ -555,7 +559,11 @@ declare const _default: import("vue").DefineComponent<{
555
559
  paymentMethodDescriptionInfo?: {
556
560
  statusDescription: {
557
561
  [x: string]: unknown;
558
- };
562
+ } | null;
563
+ } | undefined;
564
+ payLaterCcInfo?: {
565
+ availableAmount?: number | undefined;
566
+ paymentMethodStatus?: import("../../../../model/makePayment").PaymentMethodStatus | undefined;
559
567
  } | undefined;
560
568
  })[]>;
561
569
  setMoney: (price: number) => number;
@@ -76,7 +76,7 @@ export declare function useConsult(props: Props): {
76
76
  paymentMethodDescriptionInfo?: {
77
77
  statusDescription: {
78
78
  [x: string]: unknown;
79
- };
79
+ } | null;
80
80
  } | undefined;
81
81
  walletInfo?: {
82
82
  cashBackBalanceInfo?: {
@@ -168,7 +168,7 @@ export declare function useConsult(props: Props): {
168
168
  paymentMethodDescriptionInfo?: {
169
169
  statusDescription: {
170
170
  [x: string]: unknown;
171
- };
171
+ } | null;
172
172
  } | undefined;
173
173
  creditCardInfo?: {
174
174
  brand?: import("../../../model/makePayment").CreditTypes | undefined;
@@ -208,7 +208,7 @@ export declare function useConsult(props: Props): {
208
208
  paymentMethodDescriptionInfo?: {
209
209
  statusDescription: {
210
210
  [x: string]: unknown;
211
- };
211
+ } | null;
212
212
  } | undefined;
213
213
  bankInfo?: {
214
214
  paymentMethodStatusLabel?: string | undefined;
@@ -255,7 +255,7 @@ export declare function useConsult(props: Props): {
255
255
  paymentMethodDescriptionInfo?: {
256
256
  statusDescription: {
257
257
  [x: string]: unknown;
258
- };
258
+ } | null;
259
259
  } | undefined;
260
260
  sbidCarrierBillingInfo?: {
261
261
  paymentMethodStatus?: import("../../../model/makePayment").PaymentMethodStatus | undefined;
@@ -290,7 +290,11 @@ export declare function useConsult(props: Props): {
290
290
  paymentMethodDescriptionInfo?: {
291
291
  statusDescription: {
292
292
  [x: string]: unknown;
293
- };
293
+ } | null;
294
+ } | undefined;
295
+ payLaterCcInfo?: {
296
+ availableAmount?: number | undefined;
297
+ paymentMethodStatus?: import("../../../model/makePayment").PaymentMethodStatus | undefined;
294
298
  } | undefined;
295
299
  })[];
296
300
  prepaidOnly: boolean | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vite build",