@paypay/mini-app-js-sdk 1.17.1 → 1.21.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 (191) hide show
  1. package/dist/composition-api/dom/index.d.ts +4 -4
  2. package/dist/composition-api/dom/useEventListener.d.ts +8 -8
  3. package/dist/composition-api/dom/useHorizontalScrollDirective.d.ts +4 -4
  4. package/dist/composition-api/dom/useOnMountedOrActivated.d.ts +1 -1
  5. package/dist/composition-api/dom/useVerticalScrollDirective.d.ts +4 -4
  6. package/dist/composition-api/useErrorSheet.d.ts +3 -3
  7. package/dist/composition-api/useGetUserAddress.d.ts +2 -2
  8. package/dist/composition-api/useHeightProperties.d.ts +19 -19
  9. package/dist/composition-api/useInpuAddress.d.ts +2 -2
  10. package/dist/composition-api/useMakePayment.d.ts +3 -3
  11. package/dist/composition-api/useOpenApp.d.ts +3 -3
  12. package/dist/composition-api/useOpenMap.d.ts +3 -3
  13. package/dist/composition-api/useRegisterEmail.d.ts +2 -2
  14. package/dist/composition-api/useRenderSmartButton.d.ts +3 -3
  15. package/dist/composition-api/useShowAlert.d.ts +3 -3
  16. package/dist/composition-api/useShowUpdateWarning.d.ts +3 -3
  17. package/dist/composition-api/useTakePhoto.d.ts +3 -3
  18. package/dist/composition-api/useTopup.d.ts +3 -3
  19. package/dist/index.d.ts +3 -3
  20. package/dist/jsbridge-core/index.d.ts +4 -4
  21. package/dist/jsbridge-core/jsbridge.d.ts +62 -62
  22. package/dist/jsbridge-core/lib/browser.d.ts +3 -3
  23. package/dist/jsbridge-core/lib/logger.d.ts +9 -9
  24. package/dist/jsbridge-core/lib/reconstructParams.d.ts +2 -2
  25. package/dist/jsbridge-core/module.d.ts +15 -14
  26. package/dist/jsbridge-core/namespace.d.ts +2 -2
  27. package/dist/jsbridge-core/paypay-jsbridge.d.ts +17 -16
  28. package/dist/mini-app-api.d.ts +51 -51
  29. package/dist/mini-app-js-sdk.browser.js +1 -1
  30. package/dist/mini-app-js-sdk.d.ts +9 -9
  31. package/dist/mini-app-js-sdk.es.js +31031 -1
  32. package/dist/mini-app-js-sdk.min.css +1 -1
  33. package/dist/model/bridge/checkAccessToken.d.ts +3 -3
  34. package/dist/model/bridge/checkPaymentMethod.d.ts +2 -2
  35. package/dist/model/bridge/closeApp.d.ts +2 -2
  36. package/dist/model/bridge/copyToClipboard.d.ts +2 -2
  37. package/dist/model/bridge/debug.d.ts +3 -3
  38. package/dist/model/bridge/getAppDetail.d.ts +17 -17
  39. package/dist/model/bridge/getAuthStatus.d.ts +3 -3
  40. package/dist/model/bridge/getBalance.d.ts +2 -2
  41. package/dist/model/bridge/getConfigure.d.ts +39 -39
  42. package/dist/model/bridge/getDeviceInformation.d.ts +3 -3
  43. package/dist/model/bridge/getKycInformation.d.ts +2 -2
  44. package/dist/model/bridge/getPermissionStatus.d.ts +2 -2
  45. package/dist/model/bridge/getPlatformInformation.d.ts +3 -3
  46. package/dist/model/bridge/getSessionData.d.ts +2 -2
  47. package/dist/model/bridge/getStorageData.d.ts +2 -2
  48. package/dist/model/bridge/getTopBarHeight.d.ts +3 -3
  49. package/dist/model/bridge/getUAID.d.ts +3 -3
  50. package/dist/model/bridge/getUserAddress.d.ts +2 -2
  51. package/dist/model/bridge/getUserLocation.d.ts +2 -2
  52. package/dist/model/bridge/getUserProfile.d.ts +3 -3
  53. package/dist/model/bridge/index.d.ts +43 -43
  54. package/dist/model/bridge/init.d.ts +2 -2
  55. package/dist/model/bridge/inputAddress.d.ts +2 -2
  56. package/dist/model/bridge/logout.d.ts +3 -3
  57. package/dist/model/bridge/makePayment.d.ts +2 -2
  58. package/dist/model/bridge/openApp.d.ts +2 -2
  59. package/dist/model/bridge/openMap.d.ts +2 -2
  60. package/dist/model/bridge/openWebview.d.ts +3 -3
  61. package/dist/model/bridge/registerEmail.d.ts +2 -2
  62. package/dist/model/bridge/registerKyc.d.ts +2 -2
  63. package/dist/model/bridge/removeStorageData.d.ts +2 -2
  64. package/dist/model/bridge/render.d.ts +2 -2
  65. package/dist/model/bridge/renderLoginButton.d.ts +2 -2
  66. package/dist/model/bridge/renderPayButton.d.ts +2 -2
  67. package/dist/model/bridge/request.d.ts +2 -2
  68. package/dist/model/bridge/requestInternal.d.ts +2 -2
  69. package/dist/model/bridge/scanCode.d.ts +3 -3
  70. package/dist/model/bridge/setSessionData.d.ts +2 -2
  71. package/dist/model/bridge/setStorageData.d.ts +2 -2
  72. package/dist/model/bridge/setTitle.d.ts +2 -2
  73. package/dist/model/bridge/share.d.ts +2 -2
  74. package/dist/model/bridge/showAlert.d.ts +2 -2
  75. package/dist/model/bridge/showErrorSheet.d.ts +2 -2
  76. package/dist/model/bridge/showUpdateWarning.d.ts +2 -2
  77. package/dist/model/bridge/startMultiFactorAuth.d.ts +2 -2
  78. package/dist/model/bridge/takePhoto.d.ts +2 -2
  79. package/dist/model/bridge/topup.d.ts +2 -2
  80. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +3 -3
  81. package/dist/model/makePayment.d.ts +324 -324
  82. package/dist/model/miniAppError.d.ts +57 -57
  83. package/dist/model/miniAppStatus.d.ts +9 -9
  84. package/dist/model/permission.d.ts +21 -19
  85. package/dist/model/uiComponents.d.ts +23 -23
  86. package/dist/package/action-sheet/index.d.ts +90 -91
  87. package/dist/package/banner-header/index.vue.d.ts +56 -56
  88. package/dist/package/button/index.d.ts +69 -69
  89. package/dist/package/charge-amount-list/index.vue.d.ts +54 -54
  90. package/dist/package/charge-amount-more-list/index.vue.d.ts +19 -19
  91. package/dist/package/date-button/index.vue.d.ts +21 -21
  92. package/dist/package/divider/index.d.ts +21 -22
  93. package/dist/package/header/index.d.ts +65 -65
  94. package/dist/package/index.d.ts +16 -16
  95. package/dist/package/input/index.d.ts +169 -170
  96. package/dist/package/input/utils.d.ts +10 -10
  97. package/dist/package/lottie/index.d.ts +61 -62
  98. package/dist/package/overlay/index.d.ts +44 -45
  99. package/dist/package/payment-method/Bank.vue.d.ts +35 -35
  100. package/dist/package/payment-method/CreditCard.vue.d.ts +42 -42
  101. package/dist/package/payment-method/SbidBank.vue.d.ts +21 -21
  102. package/dist/package/payment-method/Wallet.vue.d.ts +31 -31
  103. package/dist/package/payment-method/index.d.ts +15 -15
  104. package/dist/package/payment-method-list/index.vue.d.ts +27 -27
  105. package/dist/package/payment-type/Bank.vue.d.ts +31 -31
  106. package/dist/package/payment-type/CreditCard.vue.d.ts +32 -32
  107. package/dist/package/payment-type/Sbid.vue.d.ts +17 -17
  108. package/dist/package/payment-type/Wallet.vue.d.ts +17 -17
  109. package/dist/package/payment-type/index.d.ts +15 -15
  110. package/dist/package/select-list/Components.d.ts +65 -65
  111. package/dist/package/select-list/index.d.ts +73 -73
  112. package/dist/package/switch/index.d.ts +22 -23
  113. package/dist/types.d.ts +345 -344
  114. package/dist/utils/api.d.ts +160 -147
  115. package/dist/utils/common.d.ts +2 -2
  116. package/dist/utils/create/bem.d.ts +6 -6
  117. package/dist/utils/create/index.d.ts +5 -5
  118. package/dist/utils/fetch.d.ts +16 -16
  119. package/dist/utils/getImages.d.ts +5 -5
  120. package/dist/utils/getLanguage.d.ts +3 -3
  121. package/dist/utils/helper.d.ts +47 -47
  122. package/dist/utils/ip.d.ts +2 -2
  123. package/dist/utils/miniAppRequest.d.ts +9 -9
  124. package/dist/utils/popstateHandler.d.ts +4 -4
  125. package/dist/utils/secondary-list.d.ts +1 -1
  126. package/dist/utils/storage.d.ts +26 -26
  127. package/dist/views/email-registration/App.vue.d.ts +79 -79
  128. package/dist/views/email-registration/components/EmailButton.vue.d.ts +45 -45
  129. package/dist/views/email-registration/components/icons.d.ts +2 -2
  130. package/dist/views/email-registration/hooks/callback.d.ts +7 -7
  131. package/dist/views/email-registration/hooks/ui.d.ts +29 -29
  132. package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +52 -52
  133. package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +24 -24
  134. package/dist/views/error-sheet/Index.vue.d.ts +52 -52
  135. package/dist/views/get-user-address/App.vue.d.ts +44 -52
  136. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +73 -73
  137. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +23 -23
  138. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +33 -33
  139. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +35 -35
  140. package/dist/views/get-user-address/Sheet/AddSheet/constants.d.ts +4 -4
  141. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +83 -83
  142. package/dist/views/get-user-address/Sheet/App.vue.d.ts +62 -70
  143. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +32 -32
  144. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +25 -25
  145. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +41 -49
  146. package/dist/views/get-user-address/hooks/ui-hooks.d.ts +14 -14
  147. package/dist/views/get-user-address/store/error-handle.d.ts +12 -12
  148. package/dist/views/get-user-address/store/root.d.ts +14 -14
  149. package/dist/views/input-address/App.vue.d.ts +36 -36
  150. package/dist/views/input-address/hook/app.d.ts +13 -13
  151. package/dist/views/input-address/hook/error-handle.d.ts +10 -10
  152. package/dist/views/input-address/hook/root.d.ts +10 -10
  153. package/dist/views/make-payment/App.vue.d.ts +52 -60
  154. package/dist/views/make-payment/Main.vue.d.ts +630 -638
  155. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +25 -25
  156. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +20 -20
  157. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +19 -19
  158. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +16 -16
  159. package/dist/views/make-payment/Sheets/CashBackDetails/FloatingButton.vue.d.ts +24 -24
  160. package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +26 -26
  161. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +53 -53
  162. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +32 -32
  163. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +80 -80
  164. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +49 -49
  165. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +522 -522
  166. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +38 -38
  167. package/dist/views/make-payment/Sheets/Consult.vue.d.ts +23 -23
  168. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +27 -27
  169. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +108 -108
  170. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +36 -36
  171. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +69 -69
  172. package/dist/views/make-payment/hooks/app-hooks.d.ts +568 -568
  173. package/dist/views/make-payment/hooks/ui-hooks.d.ts +72 -72
  174. package/dist/views/make-payment/store/age-confirm.d.ts +9 -9
  175. package/dist/views/make-payment/store/handle-error.d.ts +36 -36
  176. package/dist/views/make-payment/store/root.d.ts +22 -22
  177. package/dist/views/make-payment/store/util-for-handle-error.d.ts +16 -16
  178. package/dist/views/make-payment/utils/paymentMethod.d.ts +3 -3
  179. package/dist/views/open-app/App.vue.d.ts +28 -28
  180. package/dist/views/open-map/App.vue.d.ts +28 -28
  181. package/dist/views/show-alert/App.vue.d.ts +36 -36
  182. package/dist/views/show-update-warning/App.vue.d.ts +28 -28
  183. package/dist/views/smart-button/App.vue.d.ts +87 -87
  184. package/dist/views/take-photo/App.vue.d.ts +25 -25
  185. package/dist/views/take-photo/helper.d.ts +2 -2
  186. package/dist/views/topup/App.vue.d.ts +102 -100
  187. package/dist/views/topup/BannerInfo.vue.d.ts +23 -23
  188. package/dist/views/topup/CashbackInfo.vue.d.ts +44 -44
  189. package/dist/views/topup/TopupCompletion.vue.d.ts +26 -26
  190. package/package.json +9 -16
  191. package/dist/utils/mock-data/mockData.d.ts +0 -64
@@ -1,568 +1,568 @@
1
- import { MakePaymentResponse, PaymentMethod, PaymentMethodType, CashBackDetail, ConsultResponse, getPaymentMethodsResponse } from '../../../model/makePayment';
2
- import { UIComponentsError } from '../../../model/uiComponents';
3
- import { ComputedRef, SetupContext } from 'vue';
4
- import { MakePaymentParams, Address } from '../../../types';
5
- import { ErrorResponse } from '../../../utils/fetch';
6
- export interface Props {
7
- show: Boolean;
8
- paymentParams: MakePaymentParams;
9
- }
10
- export declare function usePaymentMethod(props: Props): {
11
- getPaymentMethods: (dryRun?: boolean) => Promise<{
12
- res: ErrorResponse | getPaymentMethodsResponse;
13
- result: boolean;
14
- }>;
15
- selectPayment: (index: number) => void;
16
- paymentMethod: ComputedRef<PaymentMethod>;
17
- paymentMethods: ComputedRef<({
18
- paymentMethodId: string;
19
- bankInfo: unknown;
20
- paymentMethodType: PaymentMethodType.WALLET;
21
- descriptionBannerInfo?: {
22
- label?: string;
23
- title?: string;
24
- iconImageUrl?: string;
25
- displayResponse?: {
26
- title: string;
27
- buttonList: {
28
- nativeAction: string;
29
- title: string;
30
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
31
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
32
- deeplink?: string;
33
- googleAnalyticsInfo: any;
34
- }[];
35
- iconUrl?: string;
36
- description: string;
37
- canCloseByOutsideTap: boolean;
38
- };
39
- };
40
- walletInfo: {
41
- cashBackBalanceInfo: {
42
- balance: number;
43
- currency: "JPY";
44
- usable: boolean;
45
- };
46
- cashBackExpirableBalanceInfo: {
47
- balance: number;
48
- currency: "JPY";
49
- usable: boolean;
50
- };
51
- emoneyBalanceInfo: {
52
- balance: number;
53
- currency: "JPY";
54
- usable: boolean;
55
- };
56
- prepaidBalanceInfo: {
57
- balance: number;
58
- currency: "JPY";
59
- usable: boolean;
60
- };
61
- walletSummary: {
62
- totalBalanceInfo: {
63
- balance: number;
64
- currency: "JPY";
65
- usable: boolean;
66
- };
67
- payoutableBalanceInfo: {
68
- balance: number;
69
- currency: "JPY";
70
- usable: boolean;
71
- };
72
- transferableBalanceInfo: {
73
- balance: number;
74
- currency: "JPY";
75
- usable: boolean;
76
- };
77
- };
78
- walletDetail: {
79
- emoneyBalanceInfo?: {
80
- balance: number;
81
- currency: "JPY";
82
- usable: boolean;
83
- };
84
- prepaidBalanceInfo?: {
85
- balance: number;
86
- currency: "JPY";
87
- usable: boolean;
88
- };
89
- cashBackBalanceInfo?: {
90
- balance: number;
91
- currency: "JPY";
92
- usable: boolean;
93
- };
94
- cashBackExpirableBalanceInfo?: {
95
- balance: number;
96
- currency: "JPY";
97
- usable: boolean;
98
- };
99
- };
100
- };
101
- } | {
102
- walletInfo: unknown;
103
- paymentMethodId: string & Number;
104
- bankInfo: unknown;
105
- paymentMethodType: PaymentMethodType.CREDIT_CARD;
106
- descriptionBannerInfo?: {
107
- label?: string;
108
- title?: string;
109
- iconImageUrl?: string;
110
- displayResponse?: {
111
- title: string;
112
- buttonList: {
113
- nativeAction: string;
114
- title: string;
115
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
116
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
117
- deeplink?: string;
118
- googleAnalyticsInfo: any;
119
- }[];
120
- iconUrl?: string;
121
- description: string;
122
- canCloseByOutsideTap: boolean;
123
- };
124
- };
125
- paymentMethodDescriptionInfo: any;
126
- creditCardInfo: {
127
- brand: import("../../../model/makePayment").CreditTypes;
128
- isAuthenticated: boolean;
129
- isExpired: boolean;
130
- isYjCard: boolean;
131
- last4digits: string;
132
- ccType: string;
133
- paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
134
- };
135
- } | {
136
- walletInfo: unknown;
137
- paymentMethodId: string & Number;
138
- paymentMethodType: PaymentMethodType.BANK | PaymentMethodType.YMONEY_BANK;
139
- descriptionBannerInfo?: {
140
- label?: string;
141
- title?: string;
142
- iconImageUrl?: string;
143
- displayResponse?: {
144
- title: string;
145
- buttonList: {
146
- nativeAction: string;
147
- title: string;
148
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
149
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
150
- deeplink?: string;
151
- googleAnalyticsInfo: any;
152
- }[];
153
- iconUrl?: string;
154
- description: string;
155
- canCloseByOutsideTap: boolean;
156
- };
157
- };
158
- paymentMethodDescriptionInfo: any;
159
- bankInfo: {
160
- paymentMethodStatusLabel: string;
161
- paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
162
- bankName: string;
163
- bankLogoUrl: string;
164
- bankCode: string;
165
- bankCardImage: {
166
- cardUrl: string;
167
- textColor: string;
168
- uiColor: string;
169
- };
170
- bankBranchName: string;
171
- bankBranchCode: string;
172
- bankAccountType: string;
173
- bankAccountNumberLast2digits: string;
174
- };
175
- } | {
176
- walletInfo: unknown;
177
- paymentMethodId: string & Number;
178
- bankInfo: unknown;
179
- paymentMethodType: PaymentMethodType.SBID_CARRIER_BILLING;
180
- descriptionBannerInfo?: {
181
- label?: string;
182
- title?: string;
183
- iconImageUrl?: string;
184
- displayResponse?: {
185
- title: string;
186
- buttonList: {
187
- nativeAction: string;
188
- title: string;
189
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
190
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
191
- deeplink?: string;
192
- googleAnalyticsInfo: any;
193
- }[];
194
- iconUrl?: string;
195
- description: string;
196
- canCloseByOutsideTap: boolean;
197
- };
198
- };
199
- paymentMethodDescriptionInfo: any;
200
- sbidCarrierBillingInfo: {
201
- paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
202
- };
203
- } | {
204
- walletInfo: unknown;
205
- paymentMethodId: string & Number;
206
- bankInfo: unknown;
207
- paymentMethodType: PaymentMethodType.PAY_LATER | PaymentMethodType.PAY_LATER_CC;
208
- descriptionBannerInfo?: {
209
- label?: string;
210
- title?: string;
211
- iconImageUrl?: string;
212
- displayResponse?: {
213
- title: string;
214
- buttonList: {
215
- nativeAction: string;
216
- title: string;
217
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
218
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
219
- deeplink?: string;
220
- googleAnalyticsInfo: any;
221
- }[];
222
- iconUrl?: string;
223
- description: string;
224
- canCloseByOutsideTap: boolean;
225
- };
226
- };
227
- paymentMethodDescriptionInfo: any;
228
- })[]>;
229
- selectPaymentIndex: ComputedRef<number>;
230
- bannerInfo: ComputedRef<{
231
- label?: string;
232
- title?: string;
233
- iconImageUrl?: string;
234
- displayResponse?: {
235
- title: string;
236
- buttonList: {
237
- nativeAction: string;
238
- title: string;
239
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
240
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
241
- deeplink?: string;
242
- googleAnalyticsInfo: any;
243
- }[];
244
- iconUrl?: string;
245
- description: string;
246
- canCloseByOutsideTap: boolean;
247
- };
248
- }>;
249
- };
250
- export declare function useConsult(props: Props, { emit }: SetupContext): {
251
- showConsult: ComputedRef<boolean>;
252
- consultInfo: ComputedRef<{
253
- title: string;
254
- buttonList: {
255
- nativeAction: string;
256
- title: string;
257
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
258
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
259
- deeplink?: string;
260
- googleAnalyticsInfo: any;
261
- }[];
262
- iconUrl?: string;
263
- description: string;
264
- canCloseByOutsideTap: boolean;
265
- }>;
266
- insufficientBalanceInfo: ComputedRef<{
267
- appealDescription: {
268
- backgroundColor: string;
269
- color: string;
270
- headerIcon: string;
271
- isBold: true;
272
- linkUrl: string;
273
- text: string;
274
- };
275
- insufficientAmount: number;
276
- paymentMethodList: ({
277
- paymentMethodId: string;
278
- bankInfo: unknown;
279
- paymentMethodType: PaymentMethodType.WALLET;
280
- descriptionBannerInfo?: {
281
- label?: string;
282
- title?: string;
283
- iconImageUrl?: string;
284
- displayResponse?: {
285
- title: string;
286
- buttonList: {
287
- nativeAction: string;
288
- title: string;
289
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
290
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
291
- deeplink?: string;
292
- googleAnalyticsInfo: any;
293
- }[];
294
- iconUrl?: string;
295
- description: string;
296
- canCloseByOutsideTap: boolean;
297
- };
298
- };
299
- walletInfo: {
300
- cashBackBalanceInfo: {
301
- balance: number;
302
- currency: "JPY";
303
- usable: boolean;
304
- };
305
- cashBackExpirableBalanceInfo: {
306
- balance: number;
307
- currency: "JPY";
308
- usable: boolean;
309
- };
310
- emoneyBalanceInfo: {
311
- balance: number;
312
- currency: "JPY";
313
- usable: boolean;
314
- };
315
- prepaidBalanceInfo: {
316
- balance: number;
317
- currency: "JPY";
318
- usable: boolean;
319
- };
320
- walletSummary: {
321
- totalBalanceInfo: {
322
- balance: number;
323
- currency: "JPY";
324
- usable: boolean;
325
- };
326
- payoutableBalanceInfo: {
327
- balance: number;
328
- currency: "JPY";
329
- usable: boolean;
330
- };
331
- transferableBalanceInfo: {
332
- balance: number;
333
- currency: "JPY";
334
- usable: boolean;
335
- };
336
- };
337
- walletDetail: {
338
- emoneyBalanceInfo?: {
339
- balance: number;
340
- currency: "JPY";
341
- usable: boolean;
342
- };
343
- prepaidBalanceInfo?: {
344
- balance: number;
345
- currency: "JPY";
346
- usable: boolean;
347
- };
348
- cashBackBalanceInfo?: {
349
- balance: number;
350
- currency: "JPY";
351
- usable: boolean;
352
- };
353
- cashBackExpirableBalanceInfo?: {
354
- balance: number;
355
- currency: "JPY";
356
- usable: boolean;
357
- };
358
- };
359
- };
360
- } | {
361
- walletInfo: unknown;
362
- paymentMethodId: string & Number;
363
- bankInfo: unknown;
364
- paymentMethodType: PaymentMethodType.CREDIT_CARD;
365
- descriptionBannerInfo?: {
366
- label?: string;
367
- title?: string;
368
- iconImageUrl?: string;
369
- displayResponse?: {
370
- title: string;
371
- buttonList: {
372
- nativeAction: string;
373
- title: string;
374
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
375
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
376
- deeplink?: string;
377
- googleAnalyticsInfo: any;
378
- }[];
379
- iconUrl?: string;
380
- description: string;
381
- canCloseByOutsideTap: boolean;
382
- };
383
- };
384
- paymentMethodDescriptionInfo: any;
385
- creditCardInfo: {
386
- brand: import("../../../model/makePayment").CreditTypes;
387
- isAuthenticated: boolean;
388
- isExpired: boolean;
389
- isYjCard: boolean;
390
- last4digits: string;
391
- ccType: string;
392
- paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
393
- };
394
- } | {
395
- walletInfo: unknown;
396
- paymentMethodId: string & Number;
397
- paymentMethodType: PaymentMethodType.BANK | PaymentMethodType.YMONEY_BANK;
398
- descriptionBannerInfo?: {
399
- label?: string;
400
- title?: string;
401
- iconImageUrl?: string;
402
- displayResponse?: {
403
- title: string;
404
- buttonList: {
405
- nativeAction: string;
406
- title: string;
407
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
408
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
409
- deeplink?: string;
410
- googleAnalyticsInfo: any;
411
- }[];
412
- iconUrl?: string;
413
- description: string;
414
- canCloseByOutsideTap: boolean;
415
- };
416
- };
417
- paymentMethodDescriptionInfo: any;
418
- bankInfo: {
419
- paymentMethodStatusLabel: string;
420
- paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
421
- bankName: string;
422
- bankLogoUrl: string;
423
- bankCode: string;
424
- bankCardImage: {
425
- cardUrl: string;
426
- textColor: string;
427
- uiColor: string;
428
- };
429
- bankBranchName: string;
430
- bankBranchCode: string;
431
- bankAccountType: string;
432
- bankAccountNumberLast2digits: string;
433
- };
434
- } | {
435
- walletInfo: unknown;
436
- paymentMethodId: string & Number;
437
- bankInfo: unknown;
438
- paymentMethodType: PaymentMethodType.SBID_CARRIER_BILLING;
439
- descriptionBannerInfo?: {
440
- label?: string;
441
- title?: string;
442
- iconImageUrl?: string;
443
- displayResponse?: {
444
- title: string;
445
- buttonList: {
446
- nativeAction: string;
447
- title: string;
448
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
449
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
450
- deeplink?: string;
451
- googleAnalyticsInfo: any;
452
- }[];
453
- iconUrl?: string;
454
- description: string;
455
- canCloseByOutsideTap: boolean;
456
- };
457
- };
458
- paymentMethodDescriptionInfo: any;
459
- sbidCarrierBillingInfo: {
460
- paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
461
- };
462
- } | {
463
- walletInfo: unknown;
464
- paymentMethodId: string & Number;
465
- bankInfo: unknown;
466
- paymentMethodType: PaymentMethodType.PAY_LATER | PaymentMethodType.PAY_LATER_CC;
467
- descriptionBannerInfo?: {
468
- label?: string;
469
- title?: string;
470
- iconImageUrl?: string;
471
- displayResponse?: {
472
- title: string;
473
- buttonList: {
474
- nativeAction: string;
475
- title: string;
476
- actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
477
- buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
478
- deeplink?: string;
479
- googleAnalyticsInfo: any;
480
- }[];
481
- iconUrl?: string;
482
- description: string;
483
- canCloseByOutsideTap: boolean;
484
- };
485
- };
486
- paymentMethodDescriptionInfo: any;
487
- })[];
488
- prepaidOnly: boolean;
489
- recommendedTopupAmount: number;
490
- totalBalanceInfo: {
491
- balance: number;
492
- currency: "JPY";
493
- };
494
- }>;
495
- getConsult: () => Promise<boolean>;
496
- closeConsult: () => void;
497
- setConsult: (consult: UIComponentsError) => void;
498
- getConsultForTopup: (_retryCount?: number) => Promise<false | ErrorResponse | ConsultResponse>;
499
- };
500
- export declare function usePayment(props: Props, { paymentMethod, duplicatePayment, selectedAddress, }: {
501
- paymentMethod: ComputedRef<PaymentMethod>;
502
- duplicatePayment: ComputedRef<boolean>;
503
- selectedAddress: ComputedRef<Address>;
504
- }): {
505
- pay: () => Promise<MakePaymentResponse>;
506
- paymentId: ComputedRef<string>;
507
- };
508
- export declare function useCashBackDetail(props: Props): {
509
- cashBackDetail: ComputedRef<{
510
- cashBackAmount: number;
511
- cashBackAmountText?: string;
512
- cashBackDetailLinkLabel: string;
513
- cashBackDetailList: {
514
- amountText: string;
515
- deeplinkUrl: string;
516
- campaignName: string;
517
- campaignId: string;
518
- status: string;
519
- isMeti: boolean;
520
- bannerId?: string;
521
- optionalText?: string;
522
- googleAnalyticsInfo?: any;
523
- }[];
524
- animationInfoList: {
525
- soundUrl: string;
526
- campaignUrl: string;
527
- campaignHomeUrl?: string;
528
- amount: number;
529
- showAgeConfirmFlag: boolean;
530
- shareDetail?: {
531
- text: string;
532
- imageUrl: string;
533
- };
534
- animationType: import("../../../model/makePayment").CashBackAnimationType;
535
- optionalText: string;
536
- campaignId: string;
537
- url: string;
538
- }[];
539
- optionalText: string;
540
- animationUrl: string;
541
- couponCashbackDetail: string;
542
- googleAnalyticsInfo: any;
543
- cashBackDescription: string;
544
- cashBackDetailListDescription: string;
545
- lotteryAnimationUrl?: string;
546
- }>;
547
- hasCashBackAnimation: ComputedRef<boolean>;
548
- calculating: ComputedRef<boolean>;
549
- calculated: ComputedRef<boolean>;
550
- handleCashBackDetails: (cashBackDetail: CashBackDetail) => Promise<void>;
551
- closeAnimation: () => void;
552
- getCashBackDetail: ({ paymentId, }: {
553
- paymentId: string;
554
- }) => Promise<{
555
- shouldShowPaymentCompletion: boolean;
556
- cashBackDetail: CashBackDetail | null;
557
- }>;
558
- };
559
- export declare function useCharge(props: Props): {
560
- showCharge: ComputedRef<boolean>;
561
- openCharge: () => boolean;
562
- closeCharge: () => boolean;
563
- charge: ({ paymentMethod, amount, duplicateTopup, }: {
564
- paymentMethod: PaymentMethod;
565
- amount: number;
566
- duplicateTopup: boolean;
567
- }) => Promise<boolean>;
568
- };
1
+ import { MakePaymentResponse, PaymentMethod, PaymentMethodType, CashBackDetail, ConsultResponse, getPaymentMethodsResponse } from '../../../model/makePayment';
2
+ import { UIComponentsError } from '../../../model/uiComponents';
3
+ import { ComputedRef, SetupContext } from 'vue';
4
+ import { MakePaymentParams, Address } from '../../../types';
5
+ import { ErrorResponse } from '../../../utils/fetch';
6
+ export interface Props {
7
+ show: Boolean;
8
+ paymentParams: MakePaymentParams;
9
+ }
10
+ export declare function usePaymentMethod(props: Props): {
11
+ getPaymentMethods: (dryRun?: boolean) => Promise<{
12
+ res: ErrorResponse | getPaymentMethodsResponse;
13
+ result: boolean;
14
+ }>;
15
+ selectPayment: (index: number) => void;
16
+ paymentMethod: ComputedRef<PaymentMethod>;
17
+ paymentMethods: ComputedRef<({
18
+ paymentMethodId: string;
19
+ bankInfo: unknown;
20
+ paymentMethodType: PaymentMethodType.WALLET;
21
+ descriptionBannerInfo?: {
22
+ label?: string;
23
+ title?: string;
24
+ iconImageUrl?: string;
25
+ displayResponse?: {
26
+ title: string;
27
+ buttonList: {
28
+ nativeAction: string;
29
+ title: string;
30
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
31
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
32
+ deeplink?: string;
33
+ googleAnalyticsInfo: any;
34
+ }[];
35
+ iconUrl?: string;
36
+ description: string;
37
+ canCloseByOutsideTap: boolean;
38
+ };
39
+ };
40
+ walletInfo: {
41
+ cashBackBalanceInfo: {
42
+ balance: number;
43
+ currency: "JPY";
44
+ usable: boolean;
45
+ };
46
+ cashBackExpirableBalanceInfo: {
47
+ balance: number;
48
+ currency: "JPY";
49
+ usable: boolean;
50
+ };
51
+ emoneyBalanceInfo: {
52
+ balance: number;
53
+ currency: "JPY";
54
+ usable: boolean;
55
+ };
56
+ prepaidBalanceInfo: {
57
+ balance: number;
58
+ currency: "JPY";
59
+ usable: boolean;
60
+ };
61
+ walletSummary: {
62
+ totalBalanceInfo: {
63
+ balance: number;
64
+ currency: "JPY";
65
+ usable: boolean;
66
+ };
67
+ payoutableBalanceInfo: {
68
+ balance: number;
69
+ currency: "JPY";
70
+ usable: boolean;
71
+ };
72
+ transferableBalanceInfo: {
73
+ balance: number;
74
+ currency: "JPY";
75
+ usable: boolean;
76
+ };
77
+ };
78
+ walletDetail: {
79
+ emoneyBalanceInfo?: {
80
+ balance: number;
81
+ currency: "JPY";
82
+ usable: boolean;
83
+ };
84
+ prepaidBalanceInfo?: {
85
+ balance: number;
86
+ currency: "JPY";
87
+ usable: boolean;
88
+ };
89
+ cashBackBalanceInfo?: {
90
+ balance: number;
91
+ currency: "JPY";
92
+ usable: boolean;
93
+ };
94
+ cashBackExpirableBalanceInfo?: {
95
+ balance: number;
96
+ currency: "JPY";
97
+ usable: boolean;
98
+ };
99
+ };
100
+ };
101
+ } | {
102
+ walletInfo: unknown;
103
+ paymentMethodId: string & Number;
104
+ bankInfo: unknown;
105
+ paymentMethodType: PaymentMethodType.CREDIT_CARD;
106
+ descriptionBannerInfo?: {
107
+ label?: string;
108
+ title?: string;
109
+ iconImageUrl?: string;
110
+ displayResponse?: {
111
+ title: string;
112
+ buttonList: {
113
+ nativeAction: string;
114
+ title: string;
115
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
116
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
117
+ deeplink?: string;
118
+ googleAnalyticsInfo: any;
119
+ }[];
120
+ iconUrl?: string;
121
+ description: string;
122
+ canCloseByOutsideTap: boolean;
123
+ };
124
+ };
125
+ paymentMethodDescriptionInfo: any;
126
+ creditCardInfo: {
127
+ brand: import("../../../model/makePayment").CreditTypes;
128
+ isAuthenticated: boolean;
129
+ isExpired: boolean;
130
+ isYjCard: boolean;
131
+ last4digits: string;
132
+ ccType: string;
133
+ paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
134
+ };
135
+ } | {
136
+ walletInfo: unknown;
137
+ paymentMethodId: string & Number;
138
+ paymentMethodType: PaymentMethodType.BANK | PaymentMethodType.YMONEY_BANK;
139
+ descriptionBannerInfo?: {
140
+ label?: string;
141
+ title?: string;
142
+ iconImageUrl?: string;
143
+ displayResponse?: {
144
+ title: string;
145
+ buttonList: {
146
+ nativeAction: string;
147
+ title: string;
148
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
149
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
150
+ deeplink?: string;
151
+ googleAnalyticsInfo: any;
152
+ }[];
153
+ iconUrl?: string;
154
+ description: string;
155
+ canCloseByOutsideTap: boolean;
156
+ };
157
+ };
158
+ paymentMethodDescriptionInfo: any;
159
+ bankInfo: {
160
+ paymentMethodStatusLabel: string;
161
+ paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
162
+ bankName: string;
163
+ bankLogoUrl: string;
164
+ bankCode: string;
165
+ bankCardImage: {
166
+ cardUrl: string;
167
+ textColor: string;
168
+ uiColor: string;
169
+ };
170
+ bankBranchName: string;
171
+ bankBranchCode: string;
172
+ bankAccountType: string;
173
+ bankAccountNumberLast2digits: string;
174
+ };
175
+ } | {
176
+ walletInfo: unknown;
177
+ paymentMethodId: string & Number;
178
+ bankInfo: unknown;
179
+ paymentMethodType: PaymentMethodType.SBID_CARRIER_BILLING;
180
+ descriptionBannerInfo?: {
181
+ label?: string;
182
+ title?: string;
183
+ iconImageUrl?: string;
184
+ displayResponse?: {
185
+ title: string;
186
+ buttonList: {
187
+ nativeAction: string;
188
+ title: string;
189
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
190
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
191
+ deeplink?: string;
192
+ googleAnalyticsInfo: any;
193
+ }[];
194
+ iconUrl?: string;
195
+ description: string;
196
+ canCloseByOutsideTap: boolean;
197
+ };
198
+ };
199
+ paymentMethodDescriptionInfo: any;
200
+ sbidCarrierBillingInfo: {
201
+ paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
202
+ };
203
+ } | {
204
+ walletInfo: unknown;
205
+ paymentMethodId: string & Number;
206
+ bankInfo: unknown;
207
+ paymentMethodType: PaymentMethodType.PAY_LATER | PaymentMethodType.PAY_LATER_CC;
208
+ descriptionBannerInfo?: {
209
+ label?: string;
210
+ title?: string;
211
+ iconImageUrl?: string;
212
+ displayResponse?: {
213
+ title: string;
214
+ buttonList: {
215
+ nativeAction: string;
216
+ title: string;
217
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
218
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
219
+ deeplink?: string;
220
+ googleAnalyticsInfo: any;
221
+ }[];
222
+ iconUrl?: string;
223
+ description: string;
224
+ canCloseByOutsideTap: boolean;
225
+ };
226
+ };
227
+ paymentMethodDescriptionInfo: any;
228
+ })[]>;
229
+ selectPaymentIndex: ComputedRef<number>;
230
+ bannerInfo: ComputedRef<{
231
+ label?: string;
232
+ title?: string;
233
+ iconImageUrl?: string;
234
+ displayResponse?: {
235
+ title: string;
236
+ buttonList: {
237
+ nativeAction: string;
238
+ title: string;
239
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
240
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
241
+ deeplink?: string;
242
+ googleAnalyticsInfo: any;
243
+ }[];
244
+ iconUrl?: string;
245
+ description: string;
246
+ canCloseByOutsideTap: boolean;
247
+ };
248
+ }>;
249
+ };
250
+ export declare function useConsult(props: Props, { emit }: SetupContext): {
251
+ showConsult: ComputedRef<boolean>;
252
+ consultInfo: ComputedRef<{
253
+ title: string;
254
+ buttonList: {
255
+ nativeAction: string;
256
+ title: string;
257
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
258
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
259
+ deeplink?: string;
260
+ googleAnalyticsInfo: any;
261
+ }[];
262
+ iconUrl?: string;
263
+ description: string;
264
+ canCloseByOutsideTap: boolean;
265
+ }>;
266
+ insufficientBalanceInfo: ComputedRef<{
267
+ appealDescription: {
268
+ backgroundColor: string;
269
+ color: string;
270
+ headerIcon: string;
271
+ isBold: true;
272
+ linkUrl: string;
273
+ text: string;
274
+ };
275
+ insufficientAmount: number;
276
+ paymentMethodList: ({
277
+ paymentMethodId: string;
278
+ bankInfo: unknown;
279
+ paymentMethodType: PaymentMethodType.WALLET;
280
+ descriptionBannerInfo?: {
281
+ label?: string;
282
+ title?: string;
283
+ iconImageUrl?: string;
284
+ displayResponse?: {
285
+ title: string;
286
+ buttonList: {
287
+ nativeAction: string;
288
+ title: string;
289
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
290
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
291
+ deeplink?: string;
292
+ googleAnalyticsInfo: any;
293
+ }[];
294
+ iconUrl?: string;
295
+ description: string;
296
+ canCloseByOutsideTap: boolean;
297
+ };
298
+ };
299
+ walletInfo: {
300
+ cashBackBalanceInfo: {
301
+ balance: number;
302
+ currency: "JPY";
303
+ usable: boolean;
304
+ };
305
+ cashBackExpirableBalanceInfo: {
306
+ balance: number;
307
+ currency: "JPY";
308
+ usable: boolean;
309
+ };
310
+ emoneyBalanceInfo: {
311
+ balance: number;
312
+ currency: "JPY";
313
+ usable: boolean;
314
+ };
315
+ prepaidBalanceInfo: {
316
+ balance: number;
317
+ currency: "JPY";
318
+ usable: boolean;
319
+ };
320
+ walletSummary: {
321
+ totalBalanceInfo: {
322
+ balance: number;
323
+ currency: "JPY";
324
+ usable: boolean;
325
+ };
326
+ payoutableBalanceInfo: {
327
+ balance: number;
328
+ currency: "JPY";
329
+ usable: boolean;
330
+ };
331
+ transferableBalanceInfo: {
332
+ balance: number;
333
+ currency: "JPY";
334
+ usable: boolean;
335
+ };
336
+ };
337
+ walletDetail: {
338
+ emoneyBalanceInfo?: {
339
+ balance: number;
340
+ currency: "JPY";
341
+ usable: boolean;
342
+ };
343
+ prepaidBalanceInfo?: {
344
+ balance: number;
345
+ currency: "JPY";
346
+ usable: boolean;
347
+ };
348
+ cashBackBalanceInfo?: {
349
+ balance: number;
350
+ currency: "JPY";
351
+ usable: boolean;
352
+ };
353
+ cashBackExpirableBalanceInfo?: {
354
+ balance: number;
355
+ currency: "JPY";
356
+ usable: boolean;
357
+ };
358
+ };
359
+ };
360
+ } | {
361
+ walletInfo: unknown;
362
+ paymentMethodId: string & Number;
363
+ bankInfo: unknown;
364
+ paymentMethodType: PaymentMethodType.CREDIT_CARD;
365
+ descriptionBannerInfo?: {
366
+ label?: string;
367
+ title?: string;
368
+ iconImageUrl?: string;
369
+ displayResponse?: {
370
+ title: string;
371
+ buttonList: {
372
+ nativeAction: string;
373
+ title: string;
374
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
375
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
376
+ deeplink?: string;
377
+ googleAnalyticsInfo: any;
378
+ }[];
379
+ iconUrl?: string;
380
+ description: string;
381
+ canCloseByOutsideTap: boolean;
382
+ };
383
+ };
384
+ paymentMethodDescriptionInfo: any;
385
+ creditCardInfo: {
386
+ brand: import("../../../model/makePayment").CreditTypes;
387
+ isAuthenticated: boolean;
388
+ isExpired: boolean;
389
+ isYjCard: boolean;
390
+ last4digits: string;
391
+ ccType: string;
392
+ paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
393
+ };
394
+ } | {
395
+ walletInfo: unknown;
396
+ paymentMethodId: string & Number;
397
+ paymentMethodType: PaymentMethodType.BANK | PaymentMethodType.YMONEY_BANK;
398
+ descriptionBannerInfo?: {
399
+ label?: string;
400
+ title?: string;
401
+ iconImageUrl?: string;
402
+ displayResponse?: {
403
+ title: string;
404
+ buttonList: {
405
+ nativeAction: string;
406
+ title: string;
407
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
408
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
409
+ deeplink?: string;
410
+ googleAnalyticsInfo: any;
411
+ }[];
412
+ iconUrl?: string;
413
+ description: string;
414
+ canCloseByOutsideTap: boolean;
415
+ };
416
+ };
417
+ paymentMethodDescriptionInfo: any;
418
+ bankInfo: {
419
+ paymentMethodStatusLabel: string;
420
+ paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
421
+ bankName: string;
422
+ bankLogoUrl: string;
423
+ bankCode: string;
424
+ bankCardImage: {
425
+ cardUrl: string;
426
+ textColor: string;
427
+ uiColor: string;
428
+ };
429
+ bankBranchName: string;
430
+ bankBranchCode: string;
431
+ bankAccountType: string;
432
+ bankAccountNumberLast2digits: string;
433
+ };
434
+ } | {
435
+ walletInfo: unknown;
436
+ paymentMethodId: string & Number;
437
+ bankInfo: unknown;
438
+ paymentMethodType: PaymentMethodType.SBID_CARRIER_BILLING;
439
+ descriptionBannerInfo?: {
440
+ label?: string;
441
+ title?: string;
442
+ iconImageUrl?: string;
443
+ displayResponse?: {
444
+ title: string;
445
+ buttonList: {
446
+ nativeAction: string;
447
+ title: string;
448
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
449
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
450
+ deeplink?: string;
451
+ googleAnalyticsInfo: any;
452
+ }[];
453
+ iconUrl?: string;
454
+ description: string;
455
+ canCloseByOutsideTap: boolean;
456
+ };
457
+ };
458
+ paymentMethodDescriptionInfo: any;
459
+ sbidCarrierBillingInfo: {
460
+ paymentMethodStatus: import("../../../model/makePayment").PaymentMethodStatus;
461
+ };
462
+ } | {
463
+ walletInfo: unknown;
464
+ paymentMethodId: string & Number;
465
+ bankInfo: unknown;
466
+ paymentMethodType: PaymentMethodType.PAY_LATER | PaymentMethodType.PAY_LATER_CC;
467
+ descriptionBannerInfo?: {
468
+ label?: string;
469
+ title?: string;
470
+ iconImageUrl?: string;
471
+ displayResponse?: {
472
+ title: string;
473
+ buttonList: {
474
+ nativeAction: string;
475
+ title: string;
476
+ actionType: import("../../../model/uiComponents").UIComponentsButtonActionType;
477
+ buttonType: import("../../../model/uiComponents").UIComponentsButtonType;
478
+ deeplink?: string;
479
+ googleAnalyticsInfo: any;
480
+ }[];
481
+ iconUrl?: string;
482
+ description: string;
483
+ canCloseByOutsideTap: boolean;
484
+ };
485
+ };
486
+ paymentMethodDescriptionInfo: any;
487
+ })[];
488
+ prepaidOnly: boolean;
489
+ recommendedTopupAmount: number;
490
+ totalBalanceInfo: {
491
+ balance: number;
492
+ currency: "JPY";
493
+ };
494
+ }>;
495
+ getConsult: () => Promise<boolean>;
496
+ closeConsult: () => void;
497
+ setConsult: (consult: UIComponentsError) => void;
498
+ getConsultForTopup: (_retryCount?: number) => Promise<false | ErrorResponse | ConsultResponse>;
499
+ };
500
+ export declare function usePayment(props: Props, { paymentMethod, duplicatePayment, selectedAddress, }: {
501
+ paymentMethod: ComputedRef<PaymentMethod>;
502
+ duplicatePayment: ComputedRef<boolean>;
503
+ selectedAddress: ComputedRef<Address>;
504
+ }): {
505
+ pay: () => Promise<MakePaymentResponse>;
506
+ paymentId: ComputedRef<string>;
507
+ };
508
+ export declare function useCashBackDetail(props: Props): {
509
+ cashBackDetail: ComputedRef<{
510
+ cashBackAmount: number;
511
+ cashBackAmountText?: string;
512
+ cashBackDetailLinkLabel: string;
513
+ cashBackDetailList: {
514
+ amountText: string;
515
+ deeplinkUrl: string;
516
+ campaignName: string;
517
+ campaignId: string;
518
+ status: string;
519
+ isMeti: boolean;
520
+ bannerId?: string;
521
+ optionalText?: string;
522
+ googleAnalyticsInfo?: any;
523
+ }[];
524
+ animationInfoList: {
525
+ soundUrl: string;
526
+ campaignUrl: string;
527
+ campaignHomeUrl?: string;
528
+ amount: number;
529
+ showAgeConfirmFlag: boolean;
530
+ shareDetail?: {
531
+ text: string;
532
+ imageUrl: string;
533
+ };
534
+ animationType: import("../../../model/makePayment").CashBackAnimationType;
535
+ optionalText: string;
536
+ campaignId: string;
537
+ url: string;
538
+ }[];
539
+ optionalText: string;
540
+ animationUrl: string;
541
+ couponCashbackDetail: string;
542
+ googleAnalyticsInfo: any;
543
+ cashBackDescription: string;
544
+ cashBackDetailListDescription: string;
545
+ lotteryAnimationUrl?: string;
546
+ }>;
547
+ hasCashBackAnimation: ComputedRef<boolean>;
548
+ calculating: ComputedRef<boolean>;
549
+ calculated: ComputedRef<boolean>;
550
+ handleCashBackDetails: (cashBackDetail: CashBackDetail) => Promise<void>;
551
+ closeAnimation: () => void;
552
+ getCashBackDetail: ({ paymentId, }: {
553
+ paymentId: string;
554
+ }) => Promise<{
555
+ shouldShowPaymentCompletion: boolean;
556
+ cashBackDetail: CashBackDetail | null;
557
+ }>;
558
+ };
559
+ export declare function useCharge(props: Props): {
560
+ showCharge: ComputedRef<boolean>;
561
+ openCharge: () => boolean;
562
+ closeCharge: () => boolean;
563
+ charge: ({ paymentMethod, amount, duplicateTopup, }: {
564
+ paymentMethod: PaymentMethod;
565
+ amount: number;
566
+ duplicateTopup: boolean;
567
+ }) => Promise<boolean>;
568
+ };