@paypay/mini-app-js-sdk 1.58.0 → 1.60.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.
@@ -0,0 +1,2 @@
1
+ import { GetUserPaymentFeatureSettingsParams } from '../../types';
2
+ export declare function getUserPaymentFeatureSettings(params: GetUserPaymentFeatureSettingsParams): Promise<void>;
@@ -223,12 +223,6 @@ export declare type GetPaymentMethodsResponse = ResponseBase & {
223
223
  };
224
224
  };
225
225
  };
226
- export declare const getPaymentMethods: (params: {
227
- merchant?: string;
228
- type: string;
229
- productType?: string;
230
- sourceInfoApp?: string;
231
- }) => Promise<GetPaymentMethodsResponse | import("../utils/fetch").ErrorResponse>;
232
226
  export declare const getPaymentMethods2: (params: {
233
227
  merchant?: string;
234
228
  type: string;
@@ -10,6 +10,11 @@ declare const _default: import("vue").DefineComponent<{
10
10
  required: false;
11
11
  default: boolean;
12
12
  };
13
+ ignoreBankMaintenanceFlag: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ required: false;
17
+ };
13
18
  }, {
14
19
  bankInfo: import("vue").ComputedRef<{
15
20
  logo: string | undefined;
@@ -40,9 +45,15 @@ declare const _default: import("vue").DefineComponent<{
40
45
  required: false;
41
46
  default: boolean;
42
47
  };
48
+ ignoreBankMaintenanceFlag: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ required: false;
52
+ };
43
53
  }>> & {
44
54
  onSelect?: (() => any) | undefined;
45
55
  }, {
46
56
  round: boolean;
57
+ ignoreBankMaintenanceFlag: boolean;
47
58
  }>;
48
59
  export default _default;
@@ -6,6 +6,11 @@ export declare const PaymentMethod: import("vue").DefineComponent<{
6
6
  required: true;
7
7
  default: () => void;
8
8
  };
9
+ ignoreBankMaintenanceFlag: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ required: false;
13
+ };
9
14
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
15
  select: () => true;
11
16
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -14,8 +19,14 @@ export declare const PaymentMethod: import("vue").DefineComponent<{
14
19
  required: true;
15
20
  default: () => void;
16
21
  };
22
+ ignoreBankMaintenanceFlag: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ required: false;
26
+ };
17
27
  }>> & {
18
28
  onSelect?: (() => any) | undefined;
19
29
  }, {
20
30
  paymentMethod: TPaymentMethod;
31
+ ignoreBankMaintenanceFlag: boolean;
21
32
  }>;
@@ -16,6 +16,11 @@ declare const _default: import("vue").DefineComponent<{
16
16
  required: false;
17
17
  default: boolean;
18
18
  };
19
+ ignoreBankMaintenanceFlag: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ required: false;
23
+ };
19
24
  }, {
20
25
  style: Record<string, string>;
21
26
  select: (index: number) => void;
@@ -37,9 +42,15 @@ declare const _default: import("vue").DefineComponent<{
37
42
  required: false;
38
43
  default: boolean;
39
44
  };
45
+ ignoreBankMaintenanceFlag: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ required: false;
49
+ };
40
50
  }>> & {
41
51
  onSelect?: ((_index: number) => any) | undefined;
42
52
  }, {
53
+ ignoreBankMaintenanceFlag: boolean;
43
54
  paymentMethods: TPaymentMethod[];
44
55
  selectPaymentIndex: number;
45
56
  isTopup: boolean;
package/dist/types.d.ts CHANGED
@@ -471,4 +471,9 @@ export declare type ErrorSheetButton = {
471
471
  export interface ScanCodeParams extends NativeParams<MiniAppResult> {
472
472
  redirectUrlOnCancel?: string;
473
473
  }
474
+ export interface GetUserPaymentFeatureSettingsParams extends NativeParams<MiniAppResult> {
475
+ type?: 'PRE_TRANSACTION_AUTO_CHARGE' | 'FALLBACK_PAYMENT_METHOD';
476
+ merchant?: string;
477
+ productType?: string;
478
+ }
474
479
  export {};
@@ -129,14 +129,6 @@ export declare type BalanceParams = {
129
129
  };
130
130
  export declare function getBalance(params?: BalanceParams): Promise<import("./fetch").PPFetchResult<unknown, Record<string, unknown>>>;
131
131
  export declare function getCashBackInfo(): Promise<import("./fetch").PPFetchResult<WalletInfoResponse, Record<string, unknown>>>;
132
- export declare type getCashBackResponse = {
133
- signed: unknown;
134
- unsigned: unknown;
135
- };
136
- declare type CashBackParams = {
137
- paymentId: string;
138
- };
139
- export declare function getCashbackDetail(params: CashBackParams): Promise<unknown>;
140
132
  export declare type ShallowAddress = {
141
133
  prefecture: string;
142
134
  cityAndOaza: string;
@@ -16,7 +16,6 @@ declare type PPFetchOptions = {
16
16
  skipResultCodeCheck?: boolean;
17
17
  skipStatusCodeCheck?: boolean;
18
18
  };
19
- declare function ppFetch<T>(options: PPFetchOptions): Promise<T | ErrorResponse>;
20
19
  declare type APIBaseResponse = {
21
20
  signed: {
22
21
  jws: string;
@@ -68,4 +67,4 @@ export declare type PPFetchResult<T, E = Record<string, unknown>> = {
68
67
  body?: null;
69
68
  };
70
69
  export declare function ppFetch2<T, E = Record<string, unknown>>(options: PPFetchOptions): Promise<PPFetchResult<T, E>>;
71
- export { createHeaderMiniAppApi, ppFetch };
70
+ export { createHeaderMiniAppApi };
@@ -57,4 +57,5 @@ export declare function generateCodeVerifier(length?: number): string;
57
57
  export declare function generateCodeChallange(codeVerifier: string): Promise<string>;
58
58
  export declare function openUrl(linkUrl: string): void;
59
59
  export declare function getButtonType(button: UIComponentsErrorButton | ErrorSheetButton, onlyButton?: boolean): "success" | "default" | "primary" | "warning" | "danger" | "link" | "outLined";
60
+ export declare function isAlphabet(value: string): boolean;
60
61
  export {};
@@ -451,6 +451,7 @@ declare const _default: import("vue").DefineComponent<{
451
451
  onlyButton(): boolean;
452
452
  }, {
453
453
  buttonClick(buttonInfo?: ErrorSheetButton | UIComponentsErrorButton | undefined): void;
454
+ openWebView(buttonInfo: UIComponentsErrorButton): void;
454
455
  getButtonType: typeof getButtonType;
455
456
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
456
457
  'close-click': () => true;
@@ -429,6 +429,7 @@ declare const _default: import("vue").DefineComponent<{
429
429
  } | null>;
430
430
  confirmSelectedAddress: () => void;
431
431
  selectedAddressId: import("vue").ComputedRef<number | undefined>;
432
+ isSelected: (index: number) => boolean;
432
433
  showAddresses: () => void;
433
434
  hideAddresses: () => void;
434
435
  confirmAddresses: () => void;
@@ -4,7 +4,7 @@ import { PPFetchResult } from '../../../utils/fetch';
4
4
  export declare function useApp(params: {
5
5
  handleError: () => boolean;
6
6
  success: () => void;
7
- address?: Address | null | undefined;
7
+ address?: Address | null;
8
8
  }): {
9
9
  addAddress: (_address: NewAddress) => Promise<boolean | undefined>;
10
10
  loading: import("vue").ComputedRef<boolean>;
@@ -30,6 +30,11 @@ declare const _default: import("vue").DefineComponent<{
30
30
  type: PropType<AppealDescription | null>;
31
31
  default: null;
32
32
  };
33
+ ignoreBankMaintenanceFlag: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ required: false;
37
+ };
33
38
  }, {
34
39
  back: () => void;
35
40
  select: (index: number) => void;
@@ -431,6 +436,11 @@ declare const _default: import("vue").DefineComponent<{
431
436
  type: PropType<AppealDescription | null>;
432
437
  default: null;
433
438
  };
439
+ ignoreBankMaintenanceFlag: {
440
+ type: BooleanConstructor;
441
+ default: boolean;
442
+ required: false;
443
+ };
434
444
  }>> & {
435
445
  onBack?: ((...args: any[]) => any) | undefined;
436
446
  onSelectPaymentMethod?: ((_index: number) => any) | undefined;
@@ -438,6 +448,7 @@ declare const _default: import("vue").DefineComponent<{
438
448
  header: boolean;
439
449
  showIcon: boolean;
440
450
  selectIndex: number;
451
+ ignoreBankMaintenanceFlag: boolean;
441
452
  paymentMethods: PaymentMethod[];
442
453
  isTopup: boolean;
443
454
  appealDescription: AppealDescription | null;
@@ -42,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
42
42
  onError: (e: Event) => void;
43
43
  iconUrl: string;
44
44
  smallBtn: boolean;
45
+ redirectUrl: import("vue").ComputedRef<string | undefined>;
45
46
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
47
  click: () => true;
47
48
  mount: () => true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "1.58.0",
3
+ "version": "1.60.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vite build",
@@ -33,6 +33,7 @@
33
33
  "@babel/core": "^7.15.5",
34
34
  "@babel/plugin-transform-typescript": "^7.15.4",
35
35
  "@babel/preset-env": "^7.15.4",
36
+ "@braintree/sanitize-url": "^6.0.2",
36
37
  "@pinia/testing": "^0.0.12",
37
38
  "@rollup/plugin-replace": "^3.0.0",
38
39
  "@testing-library/jest-dom": "^5.16.2",