@paypay/mini-app-js-sdk 1.25.0 → 1.28.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 (92) hide show
  1. package/dist/composition-api/useRegisterEmail.d.ts +1 -1
  2. package/dist/jsbridge-core/jsbridge.d.ts +11 -11
  3. package/dist/jsbridge-core/lib/reconstructParams.d.ts +2 -1
  4. package/dist/jsbridge-core/module.d.ts +1 -3
  5. package/dist/jsbridge-core/paypay-jsbridge.d.ts +2 -3
  6. package/dist/mini-app-api.d.ts +14 -14
  7. package/dist/mini-app-js-sdk.browser.js +1 -1
  8. package/dist/mini-app-js-sdk.es.js +819 -576
  9. package/dist/mini-app-js-sdk.min.css +1 -1
  10. package/dist/model/bridge/checkAccessToken.d.ts +2 -2
  11. package/dist/model/bridge/debug.d.ts +2 -2
  12. package/dist/model/bridge/getAppDetail.d.ts +1 -1
  13. package/dist/model/bridge/getAuthStatus.d.ts +2 -2
  14. package/dist/model/bridge/getConfigure.d.ts +2 -1
  15. package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
  16. package/dist/model/bridge/getPlatformInformation.d.ts +1 -1
  17. package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
  18. package/dist/model/bridge/getUAID.d.ts +2 -2
  19. package/dist/model/bridge/getUserProfile.d.ts +2 -2
  20. package/dist/model/bridge/logout.d.ts +2 -2
  21. package/dist/model/bridge/registerEmail.d.ts +1 -1
  22. package/dist/model/bridge/registerKyc.d.ts +1 -1
  23. package/dist/model/bridge/removeStorageData.d.ts +2 -2
  24. package/dist/model/bridge/render.d.ts +1 -1
  25. package/dist/model/bridge/renderLoginButton.d.ts +1 -1
  26. package/dist/model/bridge/renderPayButton.d.ts +1 -1
  27. package/dist/model/bridge/scanCode.d.ts +1 -1
  28. package/dist/model/bridge/setSessionData.d.ts +1 -1
  29. package/dist/model/bridge/setStorageData.d.ts +1 -1
  30. package/dist/model/bridge/setTitle.d.ts +1 -1
  31. package/dist/model/bridge/showAlert.d.ts +1 -1
  32. package/dist/model/bridge/showErrorSheet.d.ts +1 -1
  33. package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
  34. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +2 -2
  35. package/dist/model/makePayment.d.ts +10 -2
  36. package/dist/package/input/index.d.ts +0 -19
  37. package/dist/package/input/utils.d.ts +0 -4
  38. package/dist/package/payment-method/PayLaterCC.vue.d.ts +291 -0
  39. package/dist/package/payment-method/SbidBank.vue.d.ts +5 -0
  40. package/dist/package/payment-method/Wallet.vue.d.ts +5 -1
  41. package/dist/package/payment-type/PayLaterCC.vue.d.ts +289 -0
  42. package/dist/package/payment-type/Sbid.vue.d.ts +5 -0
  43. package/dist/package/payment-type/Wallet.vue.d.ts +5 -0
  44. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +5 -0
  45. package/dist/types.d.ts +33 -31
  46. package/dist/utils/fetch.d.ts +43 -2
  47. package/dist/utils/getImages.d.ts +1 -0
  48. package/dist/utils/getLanguage.d.ts +4 -0
  49. package/dist/utils/helper.d.ts +1 -0
  50. package/dist/utils/miniAppRequest.d.ts +2 -1
  51. package/dist/views/email-registration/App.vue.d.ts +7 -3
  52. package/dist/views/email-registration/hooks/callback.d.ts +1 -1
  53. package/dist/views/error-sheet/Index.vue.d.ts +5 -0
  54. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +4 -0
  55. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +5 -0
  56. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +4 -0
  57. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +4 -0
  58. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +4 -0
  59. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +4 -0
  60. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +4 -0
  61. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +4 -0
  62. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +4 -0
  63. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +4 -0
  64. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +4 -0
  65. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +4 -0
  66. package/dist/views/make-payment/Main.vue.d.ts +1 -0
  67. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +4 -0
  68. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +5 -0
  69. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +5 -0
  70. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +5 -0
  71. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +6 -0
  72. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +4 -0
  73. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +5 -0
  74. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +7 -7
  75. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +16 -1
  76. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +4 -0
  77. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +5 -0
  78. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +4 -0
  79. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +5 -0
  80. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +5 -0
  81. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +1 -0
  82. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +5 -0
  83. package/dist/views/make-payment/hooks/app-hooks.d.ts +7 -2
  84. package/dist/views/open-app/App.vue.d.ts +5 -0
  85. package/dist/views/open-map/App.vue.d.ts +4 -0
  86. package/dist/views/show-update-warning/App.vue.d.ts +5 -0
  87. package/dist/views/take-photo/App.vue.d.ts +4 -0
  88. package/dist/views/topup/App.vue.d.ts +10 -5
  89. package/dist/views/topup/CashbackInfo.vue.d.ts +4 -0
  90. package/dist/views/topup/TopupCompletion.vue.d.ts +5 -0
  91. package/package.json +3 -1
  92. package/dist/utils/common.d.ts +0 -2
@@ -0,0 +1,289 @@
1
+ import { PropType } from 'vue';
2
+ import { PayLaterMethod } from '../../model/makePayment';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ payLater: {
5
+ type: PropType<PayLaterMethod>;
6
+ required: true;
7
+ };
8
+ }, {
9
+ formattedBalance: import("vue").ComputedRef<string>;
10
+ images: {
11
+ iconBalanceError: string;
12
+ animationDone: string;
13
+ merchant: string;
14
+ cashback: string;
15
+ iconCopy: string;
16
+ iconError: string;
17
+ iconOpenApp: string;
18
+ iconAppUpdate: string;
19
+ iconBackArrow: string;
20
+ paypay: string;
21
+ copyIcon: string;
22
+ jcb: string;
23
+ visa: string;
24
+ master: string;
25
+ amex: string;
26
+ iconAlert: string;
27
+ checkGreen: string;
28
+ yahoo: string;
29
+ ppCard: string;
30
+ softbank: string;
31
+ iconBirthday: string;
32
+ iconMinorAge: string;
33
+ iconClose: string;
34
+ myOffer: string;
35
+ lightBlue: string;
36
+ iconBalanceIcon: string;
37
+ share: string;
38
+ rightArrow: string;
39
+ iconGrayError: string;
40
+ paypayRec: string;
41
+ paypayRecWhite: string;
42
+ downArrow: string;
43
+ bankIcon: string;
44
+ confetti: string;
45
+ payLater: string;
46
+ };
47
+ lg: {
48
+ showUpdateWarning: {
49
+ closeBtn: string;
50
+ notNow: string;
51
+ update: string;
52
+ title: string;
53
+ errorText: string;
54
+ desc1: string;
55
+ desc2: string;
56
+ };
57
+ openApp: {
58
+ title: string;
59
+ body: string;
60
+ errorText: string;
61
+ openApp: string;
62
+ cancel: string;
63
+ };
64
+ openMap: {
65
+ title: string;
66
+ errorText: string;
67
+ };
68
+ topup: {
69
+ title: string;
70
+ balMoney: string;
71
+ charge: string;
72
+ minAmount: string;
73
+ maxAmount: string;
74
+ moneyLabel: string;
75
+ noMethod: string;
76
+ loading: string;
77
+ payBtn: string;
78
+ availableBalance: string;
79
+ availableBalanceAfter: string;
80
+ allBalance: string;
81
+ };
82
+ takePhoto: {
83
+ camera: string;
84
+ photo: string;
85
+ };
86
+ payment: {
87
+ title: string;
88
+ payAmount: string;
89
+ payAmountTaxExempt: string;
90
+ method: string;
91
+ address: string;
92
+ insufficientAmount: string;
93
+ paying: string;
94
+ pay: string;
95
+ charge: string;
96
+ cancel: string;
97
+ noAddress: string;
98
+ change: string;
99
+ close: string;
100
+ };
101
+ duplicate: {
102
+ header: string;
103
+ text1: string;
104
+ text2: string;
105
+ cancel: string;
106
+ agreeButtonText: string;
107
+ topHeader: string;
108
+ topText1: string;
109
+ topText2: string;
110
+ topAgreeButtonText: string;
111
+ };
112
+ birthdayConfirm: {
113
+ title: string;
114
+ title2: string;
115
+ desc: string;
116
+ desc1: string;
117
+ desc2: string;
118
+ desc3: string;
119
+ date: string;
120
+ primaryBtn: string;
121
+ cancelBtn: string;
122
+ };
123
+ birthdayConfirmError: {
124
+ title: string;
125
+ title2: string;
126
+ desc: string;
127
+ desc2: string;
128
+ helpBtn: string;
129
+ closeBtn: string;
130
+ };
131
+ cashbackDet: {
132
+ button1: string;
133
+ button2: string;
134
+ button3: string;
135
+ };
136
+ topContent: {
137
+ title: string;
138
+ chargeTitle: string;
139
+ chargeLabel: string;
140
+ loading: string;
141
+ unavailable1: string;
142
+ unavailable2: string;
143
+ amount: string;
144
+ return: string;
145
+ };
146
+ topInfo: {
147
+ sufficientRow: string;
148
+ insufficientAmount: string;
149
+ insufficientAmountText: string;
150
+ paymentAmount: string;
151
+ };
152
+ choosePayment: {
153
+ title: string;
154
+ desc1: string;
155
+ desc2: string;
156
+ title2: string;
157
+ addMethod: string;
158
+ noMethod: string;
159
+ };
160
+ topupCompletion: {
161
+ title: string;
162
+ idInfo: string;
163
+ copied: string;
164
+ };
165
+ userAddress: {
166
+ title: string;
167
+ header: string;
168
+ tagForm: string;
169
+ home: string;
170
+ work: string;
171
+ billing: string;
172
+ footer: string;
173
+ titlePre: string;
174
+ titleApp: string;
175
+ titlePlace: string;
176
+ receiverPre: string;
177
+ receiverPlace: string;
178
+ inputPre: string;
179
+ statePre: string;
180
+ statePlace: string;
181
+ cityPre: string;
182
+ cityPlace: string;
183
+ street1Pre: string;
184
+ streetPlace: string;
185
+ street2Pre: string;
186
+ street2Place: string;
187
+ footerBtn1: string;
188
+ footerBtn2: string;
189
+ displayTitle: string;
190
+ deleteTitle: string;
191
+ delete: string;
192
+ close: string;
193
+ addAddress: string;
194
+ address: string;
195
+ return: string;
196
+ change: string;
197
+ noAddress: string;
198
+ registerAddress: string;
199
+ confirmAddress: string;
200
+ returnEdit: string;
201
+ selectAddress: string;
202
+ selectDeliveryAddress: string;
203
+ };
204
+ errorSheet: {
205
+ title: string;
206
+ title1: string;
207
+ desc: string;
208
+ topup: string;
209
+ topupDesc: string;
210
+ pay: string;
211
+ payDesc: string;
212
+ };
213
+ paymentMethod: {
214
+ expired: string;
215
+ ordinary: string;
216
+ current: string;
217
+ checkGreen: string;
218
+ authenticated: string;
219
+ yjTitle: string;
220
+ ppCardTitle: string;
221
+ brand: string;
222
+ };
223
+ paymentMethodStatus: {
224
+ ACTIVATED: string;
225
+ OFF: string;
226
+ APPLYING: string;
227
+ MAINTENANCE: string;
228
+ BUSY: string;
229
+ SUSPENDED: string;
230
+ };
231
+ wallet: {
232
+ title: string;
233
+ desc: string;
234
+ eMoney: string;
235
+ nonUsable: string;
236
+ cashBackUsable: string;
237
+ cashBackExpirable: string;
238
+ balance: string;
239
+ };
240
+ payLater: {
241
+ title: string;
242
+ balance: string;
243
+ };
244
+ softbank: {
245
+ desc: string;
246
+ desc1: string;
247
+ isDisable: string;
248
+ };
249
+ registerEmail: {
250
+ title: string;
251
+ warning: string;
252
+ cancelTxt: string;
253
+ errorTitleAlreadyRegistered: string;
254
+ errorDescriptionAlreadyRegistered: string;
255
+ errorTitle: string;
256
+ errorDescription: string;
257
+ };
258
+ smartLogin: {
259
+ title: string;
260
+ signIn: string;
261
+ continueAs: string;
262
+ };
263
+ smartPay: {
264
+ pay: string;
265
+ paypay: string;
266
+ cashback: string;
267
+ };
268
+ cashbackList: {
269
+ close: string;
270
+ };
271
+ desktopTitle: {
272
+ Payment: string;
273
+ addNewAddress: string;
274
+ editAddress: string;
275
+ paymentCompletion: string;
276
+ getUserAddress: string;
277
+ };
278
+ closeConfirmation: {
279
+ title: string;
280
+ confirm: string;
281
+ cancel: string;
282
+ };
283
+ };
284
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
285
+ payLater?: unknown;
286
+ } & {
287
+ payLater: PayLaterMethod;
288
+ } & {}>, {}>;
289
+ export default _default;
@@ -42,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
42
42
  downArrow: string;
43
43
  bankIcon: string;
44
44
  confetti: string;
45
+ payLater: string;
45
46
  };
46
47
  lg: {
47
48
  showUpdateWarning: {
@@ -236,6 +237,10 @@ declare const _default: import("vue").DefineComponent<{
236
237
  cashBackExpirable: string;
237
238
  balance: string;
238
239
  };
240
+ payLater: {
241
+ title: string;
242
+ balance: string;
243
+ };
239
244
  softbank: {
240
245
  desc: string;
241
246
  desc1: string;
@@ -42,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
42
42
  downArrow: string;
43
43
  bankIcon: string;
44
44
  confetti: string;
45
+ payLater: string;
45
46
  };
46
47
  lg: {
47
48
  showUpdateWarning: {
@@ -236,6 +237,10 @@ declare const _default: import("vue").DefineComponent<{
236
237
  cashBackExpirable: string;
237
238
  balance: string;
238
239
  };
240
+ payLater: {
241
+ title: string;
242
+ balance: string;
243
+ };
239
244
  softbank: {
240
245
  desc: string;
241
246
  desc1: string;
@@ -51,6 +51,7 @@ declare const _default: import("vue").DefineComponent<{
51
51
  downArrow: string;
52
52
  bankIcon: string;
53
53
  confetti: string;
54
+ payLater: string;
54
55
  };
55
56
  lg: {
56
57
  showUpdateWarning: {
@@ -245,6 +246,10 @@ declare const _default: import("vue").DefineComponent<{
245
246
  cashBackExpirable: string;
246
247
  balance: string;
247
248
  };
249
+ payLater: {
250
+ title: string;
251
+ balance: string;
252
+ };
248
253
  softbank: {
249
254
  desc: string;
250
255
  desc1: string;
package/dist/types.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { NativeParams } from './jsbridge-core';
2
2
  import { MiniAppErrorType } from './model/miniAppError';
3
- export declare type NativeCallback<R = unknown> = (args?: R) => void;
4
3
  export declare type MiniAppResult = Record<string, unknown>;
5
4
  export interface MiniAppErrorResultType {
6
5
  errorCode: MiniAppErrorType;
@@ -12,7 +11,7 @@ export interface OrderItem {
12
11
  productId?: string;
13
12
  unitPrice: Amount;
14
13
  }
15
- export interface MakePaymentParams extends NativeParams<MiniAppResult, unknown, void> {
14
+ export interface MakePaymentParams extends NativeParams<MiniAppResult> {
16
15
  amount: Amount;
17
16
  merchantPaymentId: string;
18
17
  requestedAt: number;
@@ -39,13 +38,13 @@ export interface MakePaymentParams extends NativeParams<MiniAppResult, unknown,
39
38
  };
40
39
  };
41
40
  }
42
- export interface CopyToClipBoardParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
41
+ export interface CopyToClipBoardParams extends NativeParams<void> {
43
42
  value: string;
44
43
  }
45
- export interface GetPermissionStatusParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
44
+ export interface GetPermissionStatusParams extends NativeParams<MiniAppResult> {
46
45
  name?: string;
47
46
  }
48
- export interface InitParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
47
+ export interface InitParams extends NativeParams<MiniAppResult> {
49
48
  clientId?: string;
50
49
  env?: string;
51
50
  mode?: string;
@@ -58,17 +57,17 @@ export interface IosMapParams {
58
57
  interface AndroidMapParams {
59
58
  parameters: string;
60
59
  }
61
- export interface MapParams extends NativeParams<void, MiniAppErrorResultType, void> {
60
+ export interface MapParams extends NativeParams<void> {
62
61
  ios: Array<IosMapParams>;
63
62
  android: AndroidMapParams;
64
63
  }
65
- export interface RequestParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
64
+ export interface RequestParams extends NativeParams<MiniAppResult> {
66
65
  url: string;
67
66
  method?: string;
68
67
  header?: Record<string, string>;
69
68
  data?: Record<string, string>;
70
69
  }
71
- export interface RequestInternalParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
70
+ export interface RequestInternalParams extends NativeParams<MiniAppResult> {
72
71
  path: string;
73
72
  environment?: string | Environment;
74
73
  endpointType?: string | EndpointType;
@@ -76,14 +75,14 @@ export interface RequestInternalParams extends NativeParams<MiniAppResult, MiniA
76
75
  header?: Record<string, string>;
77
76
  data?: Record<string, string>;
78
77
  }
79
- export declare type EmptyParamsWithResult = NativeParams<MiniAppResult, void, void>;
78
+ export declare type EmptyParamsWithResult = NativeParams<MiniAppResult>;
80
79
  export interface Amount {
81
80
  amount: number;
82
81
  currency?: string;
83
82
  }
84
83
  export interface TopupParams extends NativeParams<MiniAppResult, MiniAppErrorResultType & {
85
84
  jws?: string;
86
- }, void> {
85
+ }> {
87
86
  merchantTopUpId: string;
88
87
  requestedAt: number;
89
88
  prepaidOnly?: boolean;
@@ -93,14 +92,17 @@ export interface TopupParams extends NativeParams<MiniAppResult, MiniAppErrorRes
93
92
  methodType?: string;
94
93
  bankCode?: string;
95
94
  }
96
- export interface SetDataParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
95
+ export interface SetDataParams extends NativeParams<void> {
97
96
  key: string;
98
97
  value: string;
99
98
  }
100
- export interface GetDataParams extends NativeParams<MiniAppResult, void, void> {
99
+ export interface GetDataParams extends NativeParams<MiniAppResult> {
101
100
  key: string;
102
101
  }
103
- export interface ShowAlertParams extends NativeParams<void, MiniAppErrorResultType, void> {
102
+ export interface RemoveDataParams extends NativeParams<void> {
103
+ key: string;
104
+ }
105
+ export interface ShowAlertParams extends NativeParams<void> {
104
106
  text: string;
105
107
  title?: string;
106
108
  buttonTitle?: string;
@@ -114,15 +116,15 @@ export declare type ButtonList = {
114
116
  link: string;
115
117
  style: ButtonStyle;
116
118
  };
117
- export interface ShowErrorSheetParams extends NativeParams<void, MiniAppErrorResultType, void> {
119
+ export interface ShowErrorSheetParams extends NativeParams<void> {
118
120
  text: string;
119
121
  title?: string;
120
122
  buttons?: ButtonList[];
121
123
  }
122
- export interface SetEnablePullDownRefreshParams extends NativeParams<void, MiniAppErrorResultType, void> {
124
+ export interface SetEnablePullDownRefreshParams extends NativeParams<void> {
123
125
  enabled: boolean;
124
126
  }
125
- export interface ShowUpdateWarningParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
127
+ export interface ShowUpdateWarningParams extends NativeParams<MiniAppResult> {
126
128
  isMandatory?: boolean;
127
129
  }
128
130
  interface IosOpenApp {
@@ -137,7 +139,7 @@ interface AndroidOpenApp {
137
139
  className?: string;
138
140
  extra?: Array<ExtraParameter>;
139
141
  }
140
- export interface OpenAppParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
142
+ export interface OpenAppParams extends NativeParams<MiniAppResult> {
141
143
  url?: string;
142
144
  ios?: IosOpenApp;
143
145
  android?: AndroidOpenApp;
@@ -155,7 +157,7 @@ export interface Address {
155
157
  receiver?: string;
156
158
  street2?: string;
157
159
  }
158
- export interface InputAddressParams extends NativeParams<void, MiniAppErrorResultType, void> {
160
+ export interface InputAddressParams extends NativeParams<void> {
159
161
  address?: Address;
160
162
  }
161
163
  export interface GetUserLocationResult {
@@ -164,7 +166,7 @@ export interface GetUserLocationResult {
164
166
  long: number;
165
167
  };
166
168
  }
167
- export interface GetUserLocationParams extends NativeParams<GetUserLocationResult, MiniAppErrorResultType, void> {
169
+ export interface GetUserLocationParams extends NativeParams<GetUserLocationResult> {
168
170
  validTimeMinutes?: number;
169
171
  accuracy?: string;
170
172
  }
@@ -175,16 +177,16 @@ export declare enum TakePhotoMode {
175
177
  export interface TakePhotoResult extends MiniAppResult {
176
178
  data?: string;
177
179
  }
178
- export declare type TakePhotoParams = NativeParams<TakePhotoResult, MiniAppErrorResultType, void>;
179
- export interface SetTitleParams extends NativeParams<void, MiniAppErrorResultType, void> {
180
+ export declare type TakePhotoParams = NativeParams<TakePhotoResult>;
181
+ export interface SetTitleParams extends NativeParams<void> {
180
182
  title?: string;
181
183
  }
182
- export interface OpenWebviewParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
184
+ export interface OpenWebviewParams extends NativeParams<void> {
183
185
  url: string;
184
186
  style?: string;
185
187
  authorization?: boolean;
186
188
  }
187
- export interface ShareParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
189
+ export interface ShareParams extends NativeParams<void> {
188
190
  text: string;
189
191
  screenshot?: boolean;
190
192
  imageUrl?: string;
@@ -199,21 +201,21 @@ export declare enum Environment {
199
201
  STG = "stg",
200
202
  PRD = "prd"
201
203
  }
202
- export interface GetBalanceParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
204
+ export interface GetBalanceParams extends NativeParams<MiniAppResult> {
203
205
  productType?: string;
204
206
  merchant?: string;
205
207
  sourceInfoApp?: string;
206
208
  }
207
- export interface CloseAppParams extends NativeParams<unknown, unknown, void> {
209
+ export interface CloseAppParams extends NativeParams<unknown> {
208
210
  options?: {
209
211
  deeplink?: string;
210
212
  };
211
213
  }
212
- export interface GetKycInformationParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
214
+ export interface GetKycInformationParams extends NativeParams<MiniAppResult> {
213
215
  type?: string;
214
216
  eKycDocuments?: Array<string>;
215
217
  }
216
- export interface CheckPaymentMethodParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
218
+ export interface CheckPaymentMethodParams extends NativeParams<MiniAppResult> {
217
219
  type: string;
218
220
  methodType: string;
219
221
  bankCode: string;
@@ -221,7 +223,7 @@ export interface CheckPaymentMethodParams extends NativeParams<MiniAppResult, Mi
221
223
  productType?: string;
222
224
  sourceInfoApp?: string;
223
225
  }
224
- export interface GetUserAddressParams extends NativeParams<Address, MiniAppErrorResultType, void> {
226
+ export interface GetUserAddressParams extends NativeParams<Address> {
225
227
  type?: string;
226
228
  }
227
229
  export interface KycAddress {
@@ -242,13 +244,13 @@ export interface KycData {
242
244
  address?: KycAddress;
243
245
  job?: string;
244
246
  }
245
- export interface RegisterKycParams extends NativeParams<unknown, unknown, void> {
247
+ export interface RegisterKycParams extends NativeParams<unknown> {
246
248
  type?: string;
247
249
  eKycDocuments?: Array<string>;
248
250
  redirectUrl?: string;
249
251
  data?: KycData;
250
252
  }
251
- export interface StartMultiFactorAuthParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
253
+ export interface StartMultiFactorAuthParams extends NativeParams<MiniAppResult> {
252
254
  type: string;
253
255
  callbackUrl: string;
254
256
  }
@@ -256,7 +258,7 @@ export declare type SmartButtonType = 'login' | 'pay';
256
258
  export declare type SmartButtonSize = 'lg' | 'sm';
257
259
  export declare type SmartButtonTheme = 'light' | 'dark' | 'red';
258
260
  export declare type SmartButtonLg = 'en' | 'ja';
259
- export interface RenderSmartButtonParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
261
+ export interface RenderSmartButtonParams extends NativeParams<MiniAppResult> {
260
262
  type: SmartButtonType;
261
263
  containerId: string;
262
264
  locale?: SmartButtonLg;
@@ -4,7 +4,7 @@ export declare type ErrorResponse = {
4
4
  message: string;
5
5
  };
6
6
  };
7
- declare function ppFetch<T>(options: {
7
+ declare type PPFetchOptions = {
8
8
  method: string;
9
9
  url: string;
10
10
  params?: Record<string, string | number | boolean | undefined>;
@@ -12,5 +12,46 @@ declare function ppFetch<T>(options: {
12
12
  headers?: Record<string, string>;
13
13
  suppressRefresh?: boolean;
14
14
  timeout?: number;
15
- }): Promise<T | ErrorResponse>;
15
+ };
16
+ declare function ppFetch<T>(options: PPFetchOptions): Promise<T | ErrorResponse>;
17
+ declare type APIBaseResponse = {
18
+ signed: {
19
+ jws: string;
20
+ };
21
+ unsigned: {
22
+ resultInfo: {
23
+ code: string;
24
+ };
25
+ data?: {
26
+ header?: {
27
+ resultCode?: string;
28
+ };
29
+ };
30
+ };
31
+ } | {
32
+ signed?: undefined;
33
+ unsigned?: undefined;
34
+ resultInfo: {
35
+ code: string;
36
+ };
37
+ };
38
+ export declare type PPFetchResult<T, E = Record<string, unknown>> = {
39
+ ppFetchResult: 'success';
40
+ statusCode: number;
41
+ body: T;
42
+ } | {
43
+ ppFetchResult: 'apiError';
44
+ statusCode: number;
45
+ body: APIBaseResponse & E;
46
+ } | {
47
+ ppFetchResult: 'notInitialized';
48
+ body: null;
49
+ } | {
50
+ ppFetchResult: 'fetchError';
51
+ body: null;
52
+ } | {
53
+ ppFetchResult: 'timeout';
54
+ body: null;
55
+ };
56
+ export declare function ppFetch2<T, E = Record<string, unknown>>(options: PPFetchOptions): Promise<PPFetchResult<T, E>>;
16
57
  export { createHeaderMiniAppApi, ppFetch };
@@ -33,4 +33,5 @@ export declare function getImages(): {
33
33
  downArrow: string;
34
34
  bankIcon: string;
35
35
  confetti: string;
36
+ payLater: string;
36
37
  };
@@ -191,6 +191,10 @@ export declare function getLanguage(): {
191
191
  cashBackExpirable: string;
192
192
  balance: string;
193
193
  };
194
+ payLater: {
195
+ title: string;
196
+ balance: string;
197
+ };
194
198
  softbank: {
195
199
  desc: string;
196
200
  desc1: string;
@@ -8,6 +8,7 @@ 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 formatAmount(val?: number): string;
11
12
  export declare function formatCurrency(val: number, n: number): string;
12
13
  export declare function trigger(target: Element, type: string): void;
13
14
  export declare function isObject(val: unknown): val is Record<string, unknown>;
@@ -1,4 +1,5 @@
1
- export declare const errorCodes: Map<any, any>;
1
+ import { MiniAppErrorType } from '../model/miniAppError';
2
+ export declare const errorCodes: Map<number, MiniAppErrorType>;
2
3
  declare type MiniAppRequestParams = {
3
4
  url: string;
4
5
  headers: Headers;
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
8
8
  default: () => void;
9
9
  };
10
10
  params: {
11
- type: PropType<NativeParams<unknown, unknown, unknown>>;
11
+ type: PropType<NativeParams<unknown, import("../../types").MiniAppErrorResultType>>;
12
12
  default: () => {};
13
13
  };
14
14
  emailRegistered: {
@@ -222,6 +222,10 @@ declare const _default: import("vue").DefineComponent<{
222
222
  cashBackExpirable: string;
223
223
  balance: string;
224
224
  };
225
+ payLater: {
226
+ title: string;
227
+ balance: string;
228
+ };
225
229
  softbank: {
226
230
  desc: string;
227
231
  desc1: string;
@@ -298,7 +302,7 @@ declare const _default: import("vue").DefineComponent<{
298
302
  show: boolean;
299
303
  email: string;
300
304
  emailRegistered: boolean;
301
- params: NativeParams<unknown, unknown, unknown>;
305
+ params: NativeParams<unknown, import("../../types").MiniAppErrorResultType>;
302
306
  } & {}> & {
303
307
  onClick?: ((...args: any[]) => any) | undefined;
304
308
  }, {
@@ -306,6 +310,6 @@ declare const _default: import("vue").DefineComponent<{
306
310
  show: boolean;
307
311
  email: string;
308
312
  emailRegistered: boolean;
309
- params: NativeParams<unknown, unknown, unknown>;
313
+ params: NativeParams<unknown, import("../../types").MiniAppErrorResultType>;
310
314
  }>;
311
315
  export default _default;