@paypay/mini-app-js-sdk 1.28.0 → 1.31.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 (59) hide show
  1. package/dist/mini-app-api.d.ts +2 -1
  2. package/dist/mini-app-js-sdk.browser.js +1 -1
  3. package/dist/mini-app-js-sdk.es.js +295 -200
  4. package/dist/mini-app-js-sdk.min.css +1 -1
  5. package/dist/model/bridge/index.d.ts +1 -0
  6. package/dist/model/bridge/openMiniApp.d.ts +2 -0
  7. package/dist/model/makePayment.d.ts +1 -0
  8. package/dist/model/uiComponents.d.ts +2 -1
  9. package/dist/package/charge-amount-list/index.vue.d.ts +8 -0
  10. package/dist/package/payment-method/PayLaterCC.vue.d.ts +1 -0
  11. package/dist/package/payment-method/SbidBank.vue.d.ts +1 -0
  12. package/dist/package/payment-method/Wallet.vue.d.ts +1 -0
  13. package/dist/package/payment-type/PayLaterCC.vue.d.ts +1 -0
  14. package/dist/package/payment-type/Sbid.vue.d.ts +1 -0
  15. package/dist/package/payment-type/Wallet.vue.d.ts +2 -0
  16. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +2 -0
  17. package/dist/types.d.ts +3 -0
  18. package/dist/utils/getLanguage.d.ts +1 -0
  19. package/dist/utils/helper.d.ts +2 -0
  20. package/dist/views/email-registration/App.vue.d.ts +1 -0
  21. package/dist/views/error-sheet/Index.vue.d.ts +7 -2
  22. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +1 -0
  23. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +1 -0
  24. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +1 -0
  25. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +1 -0
  26. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +1 -0
  27. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +1 -0
  28. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +1 -0
  29. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +1 -0
  30. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +1 -0
  31. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +1 -0
  32. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +1 -0
  33. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +1 -0
  34. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +1 -0
  35. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +1 -0
  36. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +1 -0
  37. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +1 -0
  38. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +1 -0
  39. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +1 -0
  40. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +1 -0
  41. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +1 -0
  42. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +3 -0
  43. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +1 -0
  44. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +1 -0
  45. package/dist/views/make-payment/Sheets/Consult.vue.d.ts +1 -1
  46. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +1 -0
  47. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +1 -0
  48. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +1 -0
  49. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +1 -0
  50. package/dist/views/make-payment/hooks/app-hooks.d.ts +1 -0
  51. package/dist/views/open-app/App.vue.d.ts +1 -0
  52. package/dist/views/open-map/App.vue.d.ts +1 -0
  53. package/dist/views/show-update-warning/App.vue.d.ts +1 -0
  54. package/dist/views/smart-button/App.vue.d.ts +2 -2
  55. package/dist/views/take-photo/App.vue.d.ts +1 -0
  56. package/dist/views/topup/App.vue.d.ts +1 -0
  57. package/dist/views/topup/CashbackInfo.vue.d.ts +1 -0
  58. package/dist/views/topup/TopupCompletion.vue.d.ts +1 -0
  59. package/package.json +1 -1
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  cashBackUsable: boolean | undefined;
16
16
  cashBackExpirable: string;
17
17
  cashBackExpirebleUsable: boolean | undefined;
18
+ showExpirableBalance: boolean | undefined;
18
19
  }>;
19
20
  images: {
20
21
  iconBalanceError: string;
@@ -245,6 +246,7 @@ declare const _default: import("vue").DefineComponent<{
245
246
  cashBackUsable: string;
246
247
  cashBackExpirable: string;
247
248
  balance: string;
249
+ autoCharge: string;
248
250
  };
249
251
  payLater: {
250
252
  title: string;
package/dist/types.d.ts CHANGED
@@ -206,6 +206,9 @@ export interface GetBalanceParams extends NativeParams<MiniAppResult> {
206
206
  merchant?: string;
207
207
  sourceInfoApp?: string;
208
208
  }
209
+ export interface OpenMiniAppParams extends NativeParams<void> {
210
+ redirectUrl?: string;
211
+ }
209
212
  export interface CloseAppParams extends NativeParams<unknown> {
210
213
  options?: {
211
214
  deeplink?: string;
@@ -190,6 +190,7 @@ export declare function getLanguage(): {
190
190
  cashBackUsable: string;
191
191
  cashBackExpirable: string;
192
192
  balance: string;
193
+ autoCharge: string;
193
194
  };
194
195
  payLater: {
195
196
  title: string;
@@ -1,5 +1,6 @@
1
1
  import { MiniAppErrorType } from '../model/miniAppError';
2
2
  import { PaymentMethodStatus } from '../model/makePayment';
3
+ import { UIComponentsErrorButton } from '../model/uiComponents';
3
4
  export declare function isDef<T>(val: T): val is NonNullable<T>;
4
5
  export declare function isFunction(val: unknown): val is () => void;
5
6
  export declare function isNumeric(val: string | number): val is string;
@@ -47,4 +48,5 @@ export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string
47
48
  export declare function updateLocalisedString(data: string, target: string, value: string): string;
48
49
  export declare function handleHeightResize(el: HTMLElement, windowHeight: number, isScrollable: boolean, offsetHeight: number): boolean;
49
50
  export declare function getPaymentMethodStatus(isExpired: boolean, val?: PaymentMethodStatus): unknown;
51
+ export declare function filterErrorButtonList(buttonList: UIComponentsErrorButton[] | null): UIComponentsErrorButton[] | undefined;
50
52
  export {};
@@ -221,6 +221,7 @@ declare const _default: import("vue").DefineComponent<{
221
221
  cashBackUsable: string;
222
222
  cashBackExpirable: string;
223
223
  balance: string;
224
+ autoCharge: string;
224
225
  };
225
226
  payLater: {
226
227
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { UIComponentsErrorButton } from '../../model/uiComponents';
2
+ import { UIComponentsErrorButton, UIComponentsButtonType } from '../../model/uiComponents';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  show: {
5
5
  type: BooleanConstructor;
@@ -253,6 +253,7 @@ declare const _default: import("vue").DefineComponent<{
253
253
  cashBackUsable: string;
254
254
  cashBackExpirable: string;
255
255
  balance: string;
256
+ autoCharge: string;
256
257
  };
257
258
  payLater: {
258
259
  title: string;
@@ -298,8 +299,12 @@ declare const _default: import("vue").DefineComponent<{
298
299
  cancel: string;
299
300
  };
300
301
  };
301
- }, {}, {
302
+ }, {
303
+ buttonListData(): UIComponentsErrorButton[] | undefined;
304
+ onlyButton(): boolean;
305
+ }, {
302
306
  buttonClick(buttonInfo: UIComponentsErrorButton): void;
307
+ getButtonType(type: UIComponentsButtonType): "link" | "primary";
303
308
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close-click"[], "close-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
304
309
  show?: unknown;
305
310
  errorTitle?: unknown;
@@ -246,6 +246,7 @@ declare const _default: import("vue").DefineComponent<{
246
246
  cashBackUsable: string;
247
247
  cashBackExpirable: string;
248
248
  balance: string;
249
+ autoCharge: string;
249
250
  };
250
251
  payLater: {
251
252
  title: string;
@@ -200,6 +200,7 @@ declare const _default: import("vue").DefineComponent<{
200
200
  cashBackUsable: string;
201
201
  cashBackExpirable: string;
202
202
  balance: string;
203
+ autoCharge: string;
203
204
  };
204
205
  payLater: {
205
206
  title: string;
@@ -221,6 +221,7 @@ declare const _default: import("vue").DefineComponent<{
221
221
  cashBackUsable: string;
222
222
  cashBackExpirable: string;
223
223
  balance: string;
224
+ autoCharge: string;
224
225
  };
225
226
  payLater: {
226
227
  title: string;
@@ -210,6 +210,7 @@ declare const _default: import("vue").DefineComponent<{
210
210
  cashBackUsable: string;
211
211
  cashBackExpirable: string;
212
212
  balance: string;
213
+ autoCharge: string;
213
214
  };
214
215
  payLater: {
215
216
  title: string;
@@ -243,6 +243,7 @@ declare const _default: import("vue").DefineComponent<{
243
243
  cashBackUsable: string;
244
244
  cashBackExpirable: string;
245
245
  balance: string;
246
+ autoCharge: string;
246
247
  };
247
248
  payLater: {
248
249
  title: string;
@@ -212,6 +212,7 @@ declare const _default: import("vue").DefineComponent<{
212
212
  cashBackUsable: string;
213
213
  cashBackExpirable: string;
214
214
  balance: string;
215
+ autoCharge: string;
215
216
  };
216
217
  payLater: {
217
218
  title: string;
@@ -209,6 +209,7 @@ declare const _default: import("vue").DefineComponent<{
209
209
  cashBackUsable: string;
210
210
  cashBackExpirable: string;
211
211
  balance: string;
212
+ autoCharge: string;
212
213
  };
213
214
  payLater: {
214
215
  title: string;
@@ -231,6 +231,7 @@ declare const _default: import("vue").DefineComponent<{
231
231
  cashBackUsable: string;
232
232
  cashBackExpirable: string;
233
233
  balance: string;
234
+ autoCharge: string;
234
235
  };
235
236
  payLater: {
236
237
  title: string;
@@ -196,6 +196,7 @@ declare const _default: import("vue").DefineComponent<{
196
196
  cashBackUsable: string;
197
197
  cashBackExpirable: string;
198
198
  balance: string;
199
+ autoCharge: string;
199
200
  };
200
201
  payLater: {
201
202
  title: string;
@@ -204,6 +204,7 @@ declare const _default: import("vue").DefineComponent<{
204
204
  cashBackUsable: string;
205
205
  cashBackExpirable: string;
206
206
  balance: string;
207
+ autoCharge: string;
207
208
  };
208
209
  payLater: {
209
210
  title: string;
@@ -204,6 +204,7 @@ declare const _default: import("vue").DefineComponent<{
204
204
  cashBackUsable: string;
205
205
  cashBackExpirable: string;
206
206
  balance: string;
207
+ autoCharge: string;
207
208
  };
208
209
  payLater: {
209
210
  title: string;
@@ -199,6 +199,7 @@ declare const _default: import("vue").DefineComponent<{
199
199
  cashBackUsable: string;
200
200
  cashBackExpirable: string;
201
201
  balance: string;
202
+ autoCharge: string;
202
203
  };
203
204
  payLater: {
204
205
  title: string;
@@ -200,6 +200,7 @@ declare const _default: import("vue").DefineComponent<{
200
200
  cashBackUsable: string;
201
201
  cashBackExpirable: string;
202
202
  balance: string;
203
+ autoCharge: string;
203
204
  };
204
205
  payLater: {
205
206
  title: string;
@@ -200,6 +200,7 @@ declare const _default: import("vue").DefineComponent<{
200
200
  cashBackUsable: string;
201
201
  cashBackExpirable: string;
202
202
  balance: string;
203
+ autoCharge: string;
203
204
  };
204
205
  payLater: {
205
206
  title: string;
@@ -238,6 +238,7 @@ declare const _default: import("vue").DefineComponent<{
238
238
  cashBackUsable: string;
239
239
  cashBackExpirable: string;
240
240
  balance: string;
241
+ autoCharge: string;
241
242
  };
242
243
  payLater: {
243
244
  title: string;
@@ -235,6 +235,7 @@ declare const _default: import("vue").DefineComponent<{
235
235
  cashBackUsable: string;
236
236
  cashBackExpirable: string;
237
237
  balance: string;
238
+ autoCharge: string;
238
239
  };
239
240
  payLater: {
240
241
  title: string;
@@ -268,6 +268,7 @@ declare const _default: import("vue").DefineComponent<{
268
268
  cashBackUsable: string;
269
269
  cashBackExpirable: string;
270
270
  balance: string;
271
+ autoCharge: string;
271
272
  };
272
273
  payLater: {
273
274
  title: string;
@@ -215,6 +215,7 @@ declare const _default: import("vue").DefineComponent<{
215
215
  cashBackUsable: string;
216
216
  cashBackExpirable: string;
217
217
  balance: string;
218
+ autoCharge: string;
218
219
  };
219
220
  payLater: {
220
221
  title: string;
@@ -315,6 +315,7 @@ declare const _default: import("vue").DefineComponent<{
315
315
  cashBackUsable: string;
316
316
  cashBackExpirable: string;
317
317
  balance: string;
318
+ autoCharge: string;
318
319
  };
319
320
  payLater: {
320
321
  title: string;
@@ -257,6 +257,7 @@ declare const _default: import("vue").DefineComponent<{
257
257
  cashBackUsable: string;
258
258
  cashBackExpirable: string;
259
259
  balance: string;
260
+ autoCharge: string;
260
261
  };
261
262
  payLater: {
262
263
  title: string;
@@ -99,6 +99,7 @@ declare const _default: import("vue").DefineComponent<{
99
99
  currency: "JPY";
100
100
  usable: boolean;
101
101
  } | undefined;
102
+ isPreTransactionAutoChargeEnabled?: boolean | undefined;
102
103
  walletSummary?: {
103
104
  totalBalanceInfo: {
104
105
  balance: number;
@@ -376,6 +377,7 @@ declare const _default: import("vue").DefineComponent<{
376
377
  currency: "JPY";
377
378
  usable: boolean;
378
379
  } | undefined;
380
+ isPreTransactionAutoChargeEnabled?: boolean | undefined;
379
381
  walletSummary?: {
380
382
  totalBalanceInfo: {
381
383
  balance: number;
@@ -788,6 +790,7 @@ declare const _default: import("vue").DefineComponent<{
788
790
  cashBackUsable: string;
789
791
  cashBackExpirable: string;
790
792
  balance: string;
793
+ autoCharge: string;
791
794
  };
792
795
  payLater: {
793
796
  title: string;
@@ -213,6 +213,7 @@ declare const _default: import("vue").DefineComponent<{
213
213
  cashBackUsable: string;
214
214
  cashBackExpirable: string;
215
215
  balance: string;
216
+ autoCharge: string;
216
217
  };
217
218
  payLater: {
218
219
  title: string;
@@ -228,6 +228,7 @@ declare const _default: import("vue").DefineComponent<{}, {
228
228
  cashBackUsable: string;
229
229
  cashBackExpirable: string;
230
230
  balance: string;
231
+ autoCharge: string;
231
232
  };
232
233
  payLater: {
233
234
  title: string;
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
12
12
  iconUrl: import("vue").ComputedRef<string | undefined>;
13
13
  title: import("vue").ComputedRef<string>;
14
14
  description: import("vue").ComputedRef<string>;
15
- buttonList: import("vue").ComputedRef<UIComponentsErrorButton[]>;
15
+ buttonList: import("vue").ComputedRef<UIComponentsErrorButton[] | undefined>;
16
16
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
17
17
  consultInfo?: unknown;
18
18
  } & {
@@ -205,6 +205,7 @@ declare const _default: import("vue").DefineComponent<{
205
205
  cashBackUsable: string;
206
206
  cashBackExpirable: string;
207
207
  balance: string;
208
+ autoCharge: string;
208
209
  };
209
210
  payLater: {
210
211
  title: string;
@@ -232,6 +232,7 @@ declare const _default: import("vue").DefineComponent<{
232
232
  cashBackUsable: string;
233
233
  cashBackExpirable: string;
234
234
  balance: string;
235
+ autoCharge: string;
235
236
  };
236
237
  payLater: {
237
238
  title: string;
@@ -310,6 +310,7 @@ declare const _default: import("vue").DefineComponent<{
310
310
  cashBackUsable: string;
311
311
  cashBackExpirable: string;
312
312
  balance: string;
313
+ autoCharge: string;
313
314
  };
314
315
  payLater: {
315
316
  title: string;
@@ -291,6 +291,7 @@ declare const _default: import("vue").DefineComponent<{
291
291
  cashBackUsable: string;
292
292
  cashBackExpirable: string;
293
293
  balance: string;
294
+ autoCharge: string;
294
295
  };
295
296
  payLater: {
296
297
  title: string;
@@ -100,6 +100,7 @@ export declare function useConsult(props: Props): {
100
100
  currency: "JPY";
101
101
  usable: boolean;
102
102
  } | undefined;
103
+ isPreTransactionAutoChargeEnabled?: boolean | undefined;
103
104
  walletSummary?: {
104
105
  totalBalanceInfo: {
105
106
  balance: number;
@@ -242,6 +242,7 @@ declare const _default: import("vue").DefineComponent<{
242
242
  cashBackUsable: string;
243
243
  cashBackExpirable: string;
244
244
  balance: string;
245
+ autoCharge: string;
245
246
  };
246
247
  payLater: {
247
248
  title: string;
@@ -202,6 +202,7 @@ declare const _default: import("vue").DefineComponent<{
202
202
  cashBackUsable: string;
203
203
  cashBackExpirable: string;
204
204
  balance: string;
205
+ autoCharge: string;
205
206
  };
206
207
  payLater: {
207
208
  title: string;
@@ -200,6 +200,7 @@ declare const _default: import("vue").DefineComponent<{
200
200
  cashBackUsable: string;
201
201
  cashBackExpirable: string;
202
202
  balance: string;
203
+ autoCharge: string;
203
204
  };
204
205
  payLater: {
205
206
  title: string;
@@ -59,12 +59,12 @@ declare const _default: import("vue").DefineComponent<{
59
59
  url?: unknown;
60
60
  success?: unknown;
61
61
  } & {
62
+ success: Function;
62
63
  title: string;
63
64
  type: SmartButtonType;
64
65
  isShortText: boolean;
65
66
  buttonSize: SmartButtonSize;
66
67
  theme: SmartButtonTheme;
67
- success: Function;
68
68
  avatarUrl: string;
69
69
  cashbackInfo: string;
70
70
  preferredLanguage: SmartButtonLg;
@@ -73,13 +73,13 @@ declare const _default: import("vue").DefineComponent<{
73
73
  }> & {
74
74
  onClick?: ((...args: any[]) => any) | undefined;
75
75
  }, {
76
+ success: Function;
76
77
  url: string | undefined;
77
78
  title: string;
78
79
  type: SmartButtonType;
79
80
  isShortText: boolean;
80
81
  buttonSize: SmartButtonSize;
81
82
  theme: SmartButtonTheme;
82
- success: Function;
83
83
  avatarUrl: string;
84
84
  cashbackInfo: string;
85
85
  preferredLanguage: SmartButtonLg;
@@ -199,6 +199,7 @@ declare const _default: import("vue").DefineComponent<{
199
199
  cashBackUsable: string;
200
200
  cashBackExpirable: string;
201
201
  balance: string;
202
+ autoCharge: string;
202
203
  };
203
204
  payLater: {
204
205
  title: string;
@@ -246,6 +246,7 @@ declare const _default: import("vue").DefineComponent<{
246
246
  cashBackUsable: string;
247
247
  cashBackExpirable: string;
248
248
  balance: string;
249
+ autoCharge: string;
249
250
  };
250
251
  payLater: {
251
252
  title: string;
@@ -215,6 +215,7 @@ declare const _default: import("vue").DefineComponent<{
215
215
  cashBackUsable: string;
216
216
  cashBackExpirable: string;
217
217
  balance: string;
218
+ autoCharge: string;
218
219
  };
219
220
  payLater: {
220
221
  title: string;
@@ -241,6 +241,7 @@ declare const _default: import("vue").DefineComponent<{
241
241
  cashBackUsable: string;
242
242
  cashBackExpirable: string;
243
243
  balance: string;
244
+ autoCharge: string;
244
245
  };
245
246
  payLater: {
246
247
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "1.28.0",
3
+ "version": "1.31.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vite build",