@paypay/mini-app-js-sdk 1.47.0 → 1.50.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 (28) 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 +2177 -725
  4. package/dist/mini-app-js-sdk.min.css +1 -1
  5. package/dist/model/bridge/getCashbackInformation.d.ts +2 -0
  6. package/dist/model/makePayment.d.ts +22 -14
  7. package/dist/model/miniAppError.d.ts +2 -1
  8. package/dist/model/permission.d.ts +1 -0
  9. package/dist/package/banner-header/index.vue.d.ts +1 -1
  10. package/dist/package/payment-method/Bank.vue.d.ts +14 -5
  11. package/dist/package/payment-method/CreditCard.vue.d.ts +14 -13
  12. package/dist/package/payment-method/PayLaterCC.vue.d.ts +14 -4
  13. package/dist/package/payment-method/SbidBank.vue.d.ts +14 -5
  14. package/dist/package/payment-method/Wallet.vue.d.ts +6 -2
  15. package/dist/package/payment-method/index.d.ts +6 -2
  16. package/dist/types.d.ts +5 -0
  17. package/dist/utils/helper.d.ts +3 -2
  18. package/dist/views/make-payment/Main.vue.d.ts +1 -0
  19. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +10 -1
  20. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +10 -1
  21. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +230 -36
  22. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +10 -1
  23. package/dist/views/make-payment/Sheets/MaintenanceInfo.vue.d.ts +20 -0
  24. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +10 -1
  25. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +10 -1
  26. package/dist/views/make-payment/hooks/app-hooks.d.ts +116 -22
  27. package/dist/views/topup/App.vue.d.ts +2 -3
  28. package/package.json +5 -4
@@ -19,6 +19,7 @@ export declare function usePaymentMethod(props: Props): {
19
19
  selectPaymentIndex: ComputedRef<number>;
20
20
  bannerInfo: ComputedRef<BannerInfo>;
21
21
  showPaymentMethodList: ComputedRef<boolean>;
22
+ appealDescription: ComputedRef<import('../../../model/makePayment').AppealDescription | null>;
22
23
  };
23
24
  export declare function useConsult(props: Props): {
24
25
  showConsult: ComputedRef<boolean>;
@@ -39,11 +40,11 @@ export declare function useConsult(props: Props): {
39
40
  } | null>;
40
41
  insufficientBalanceInfo: ComputedRef<{
41
42
  appealDescription: {
42
- backgroundColor: string;
43
+ backgroundColor?: string | undefined;
43
44
  color: string;
44
- headerIcon: string | null;
45
- isBold: true;
46
- linkUrl: string;
45
+ headerIcon?: string | null | undefined;
46
+ isBold: boolean;
47
+ linkUrl?: string | undefined;
47
48
  text: string;
48
49
  };
49
50
  insufficientAmount: number;
@@ -137,15 +138,30 @@ export declare function useConsult(props: Props): {
137
138
  sbidCarrierBillingInfo?: unknown;
138
139
  payLaterCcInfo?: unknown;
139
140
  paymentMethodDescriptionInfo?: {
140
- statusDescription: Record<string, unknown> | null;
141
- additionalDescription?: {
141
+ statusDescription: {
142
142
  text: string;
143
143
  linkUrl?: string | undefined;
144
144
  headerIcon?: string | undefined;
145
145
  isBold: boolean;
146
146
  color: string;
147
147
  backgroundColor?: string | undefined;
148
- } | undefined;
148
+ } | null;
149
+ additionalDescription: {
150
+ text: string;
151
+ linkUrl?: string | undefined;
152
+ headerIcon?: string | undefined;
153
+ isBold: boolean;
154
+ color: string;
155
+ backgroundColor?: string | undefined;
156
+ } | null;
157
+ detailDescription: {
158
+ text: string;
159
+ linkUrl?: string | undefined;
160
+ headerIcon?: string | undefined;
161
+ isBold: boolean;
162
+ color: string;
163
+ backgroundColor?: string | undefined;
164
+ } | null;
149
165
  } | undefined;
150
166
  } | {
151
167
  paymentMethodId: string;
@@ -180,20 +196,36 @@ export declare function useConsult(props: Props): {
180
196
  ccType?: string | undefined;
181
197
  paymentMethodStatus?: import('../../../model/makePayment').PaymentMethodStatus | undefined;
182
198
  preTransactionAutoChargeSupported?: boolean | undefined;
199
+ paymentMethodStatusLabel?: string | undefined;
183
200
  } | undefined;
184
201
  bankInfo?: unknown;
185
202
  sbidCarrierBillingInfo?: unknown;
186
203
  payLaterCcInfo?: unknown;
187
204
  paymentMethodDescriptionInfo?: {
188
- statusDescription: Record<string, unknown> | null;
189
- additionalDescription?: {
205
+ statusDescription: {
190
206
  text: string;
191
207
  linkUrl?: string | undefined;
192
208
  headerIcon?: string | undefined;
193
209
  isBold: boolean;
194
210
  color: string;
195
211
  backgroundColor?: string | undefined;
196
- } | undefined;
212
+ } | null;
213
+ additionalDescription: {
214
+ text: string;
215
+ linkUrl?: string | undefined;
216
+ headerIcon?: string | undefined;
217
+ isBold: boolean;
218
+ color: string;
219
+ backgroundColor?: string | undefined;
220
+ } | null;
221
+ detailDescription: {
222
+ text: string;
223
+ linkUrl?: string | undefined;
224
+ headerIcon?: string | undefined;
225
+ isBold: boolean;
226
+ color: string;
227
+ backgroundColor?: string | undefined;
228
+ } | null;
197
229
  } | undefined;
198
230
  } | {
199
231
  paymentMethodId: string;
@@ -240,15 +272,30 @@ export declare function useConsult(props: Props): {
240
272
  sbidCarrierBillingInfo?: unknown;
241
273
  payLaterCcInfo?: unknown;
242
274
  paymentMethodDescriptionInfo?: {
243
- statusDescription: Record<string, unknown> | null;
244
- additionalDescription?: {
275
+ statusDescription: {
245
276
  text: string;
246
277
  linkUrl?: string | undefined;
247
278
  headerIcon?: string | undefined;
248
279
  isBold: boolean;
249
280
  color: string;
250
281
  backgroundColor?: string | undefined;
251
- } | undefined;
282
+ } | null;
283
+ additionalDescription: {
284
+ text: string;
285
+ linkUrl?: string | undefined;
286
+ headerIcon?: string | undefined;
287
+ isBold: boolean;
288
+ color: string;
289
+ backgroundColor?: string | undefined;
290
+ } | null;
291
+ detailDescription: {
292
+ text: string;
293
+ linkUrl?: string | undefined;
294
+ headerIcon?: string | undefined;
295
+ isBold: boolean;
296
+ color: string;
297
+ backgroundColor?: string | undefined;
298
+ } | null;
252
299
  } | undefined;
253
300
  } | {
254
301
  paymentMethodId: string;
@@ -278,18 +325,34 @@ export declare function useConsult(props: Props): {
278
325
  bankInfo?: unknown;
279
326
  sbidCarrierBillingInfo?: {
280
327
  paymentMethodStatus?: import('../../../model/makePayment').PaymentMethodStatus | undefined;
328
+ paymentMethodStatusLabel?: string | undefined;
281
329
  } | undefined;
282
330
  payLaterCcInfo?: unknown;
283
331
  paymentMethodDescriptionInfo?: {
284
- statusDescription: Record<string, unknown> | null;
285
- additionalDescription?: {
332
+ statusDescription: {
286
333
  text: string;
287
334
  linkUrl?: string | undefined;
288
335
  headerIcon?: string | undefined;
289
336
  isBold: boolean;
290
337
  color: string;
291
338
  backgroundColor?: string | undefined;
292
- } | undefined;
339
+ } | null;
340
+ additionalDescription: {
341
+ text: string;
342
+ linkUrl?: string | undefined;
343
+ headerIcon?: string | undefined;
344
+ isBold: boolean;
345
+ color: string;
346
+ backgroundColor?: string | undefined;
347
+ } | null;
348
+ detailDescription: {
349
+ text: string;
350
+ linkUrl?: string | undefined;
351
+ headerIcon?: string | undefined;
352
+ isBold: boolean;
353
+ color: string;
354
+ backgroundColor?: string | undefined;
355
+ } | null;
293
356
  } | undefined;
294
357
  } | {
295
358
  paymentMethodId: string;
@@ -321,17 +384,33 @@ export declare function useConsult(props: Props): {
321
384
  payLaterCcInfo?: {
322
385
  availableAmount?: number | undefined;
323
386
  paymentMethodStatus?: import('../../../model/makePayment').PaymentMethodStatus | undefined;
387
+ paymentMethodStatusLabel?: string | undefined;
324
388
  } | undefined;
325
389
  paymentMethodDescriptionInfo?: {
326
- statusDescription: Record<string, unknown> | null;
327
- additionalDescription?: {
390
+ statusDescription: {
328
391
  text: string;
329
392
  linkUrl?: string | undefined;
330
393
  headerIcon?: string | undefined;
331
394
  isBold: boolean;
332
395
  color: string;
333
396
  backgroundColor?: string | undefined;
334
- } | undefined;
397
+ } | null;
398
+ additionalDescription: {
399
+ text: string;
400
+ linkUrl?: string | undefined;
401
+ headerIcon?: string | undefined;
402
+ isBold: boolean;
403
+ color: string;
404
+ backgroundColor?: string | undefined;
405
+ } | null;
406
+ detailDescription: {
407
+ text: string;
408
+ linkUrl?: string | undefined;
409
+ headerIcon?: string | undefined;
410
+ isBold: boolean;
411
+ color: string;
412
+ backgroundColor?: string | undefined;
413
+ } | null;
335
414
  } | undefined;
336
415
  } | {
337
416
  paymentMethodId: string;
@@ -362,15 +441,30 @@ export declare function useConsult(props: Props): {
362
441
  sbidCarrierBillingInfo?: unknown;
363
442
  payLaterCcInfo?: unknown;
364
443
  paymentMethodDescriptionInfo?: {
365
- statusDescription: Record<string, unknown> | null;
366
- additionalDescription?: {
444
+ statusDescription: {
367
445
  text: string;
368
446
  linkUrl?: string | undefined;
369
447
  headerIcon?: string | undefined;
370
448
  isBold: boolean;
371
449
  color: string;
372
450
  backgroundColor?: string | undefined;
373
- } | undefined;
451
+ } | null;
452
+ additionalDescription: {
453
+ text: string;
454
+ linkUrl?: string | undefined;
455
+ headerIcon?: string | undefined;
456
+ isBold: boolean;
457
+ color: string;
458
+ backgroundColor?: string | undefined;
459
+ } | null;
460
+ detailDescription: {
461
+ text: string;
462
+ linkUrl?: string | undefined;
463
+ headerIcon?: string | undefined;
464
+ isBold: boolean;
465
+ color: string;
466
+ backgroundColor?: string | undefined;
467
+ } | null;
374
468
  } | undefined;
375
469
  })[];
376
470
  prepaidOnly: boolean | null;
@@ -1,6 +1,6 @@
1
1
  import { AnimationItem } from 'lottie-web';
2
2
  import { PropType } from 'vue';
3
- import { PaymentMethod as TPaymentMethod, CreditMethod } from '../../model/makePayment';
3
+ import { PaymentMethod as TPaymentMethod, CreditMethod, AppealDescription } from '../../model/makePayment';
4
4
  import { MiniAppErrorType } from '../../model/miniAppError';
5
5
  import { UIComponentsErrorButton } from '../../model/uiComponents';
6
6
  import { TopupParams } from '../../types';
@@ -52,7 +52,6 @@ declare const _default: import("vue").DefineComponent<{
52
52
  ORDINARY: string;
53
53
  };
54
54
  lottieAnim: AnimationItem | null;
55
- footerposition: boolean;
56
55
  cashbackData: {};
57
56
  lg: {
58
57
  showUpdateWarning: {
@@ -459,6 +458,7 @@ declare const _default: import("vue").DefineComponent<{
459
458
  isFirstLoad: boolean;
460
459
  show3DSecureSheet: boolean;
461
460
  topupMinAmount: number;
461
+ appealDescription: AppealDescription | null;
462
462
  }, {
463
463
  descriptionBannerInfo(): {
464
464
  label?: string | undefined;
@@ -495,7 +495,6 @@ declare const _default: import("vue").DefineComponent<{
495
495
  switchInput(): Promise<void>;
496
496
  setMoney(money: number): void;
497
497
  closeIconClick(): void;
498
- togglePosition(toggle: boolean): void;
499
498
  checkValidAmount(): void;
500
499
  showBannerInfo(): void;
501
500
  bannerBtnClick(item?: UIComponentsErrorButton | undefined, index?: number | undefined): void;
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "1.47.0",
3
+ "version": "1.50.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vite build",
7
7
  "dev": "vite",
8
- "lint": "eslint src test --ext .ts,.tsx,.vue",
8
+ "lint": "yarn lint:script && yarn lint:style",
9
+ "lint:script": "eslint src test --ext .ts,.tsx,.vue",
9
10
  "lint:style": "stylelint src/**/*.{css,less,vue}",
10
11
  "format": "prettier --write '{src,test}/**/*.{ts,tsx,vue,less}'",
11
12
  "upgrade": "yarn upgrade-interactive",
@@ -23,8 +24,8 @@
23
24
  },
24
25
  "dependencies": {
25
26
  "js-cookie": "^3.0.1",
26
- "lottie-web": "^5.9.2",
27
- "pinia": "^2.0.13",
27
+ "lottie-web": "^5.9.6",
28
+ "pinia": "^2.0.16",
28
29
  "uuid": "^8.3.2",
29
30
  "vue": "^3.2.35"
30
31
  },