@paypay/mini-app-js-sdk 1.18.0 → 1.22.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 (203) hide show
  1. package/dist/composition-api/dom/index.d.ts +5 -4
  2. package/dist/composition-api/dom/useCountDown.d.ts +20 -0
  3. package/dist/composition-api/dom/useEventListener.d.ts +8 -8
  4. package/dist/composition-api/dom/useHorizontalScrollDirective.d.ts +4 -4
  5. package/dist/composition-api/dom/useOnMountedOrActivated.d.ts +1 -1
  6. package/dist/composition-api/dom/useVerticalScrollDirective.d.ts +4 -4
  7. package/dist/composition-api/useErrorSheet.d.ts +3 -3
  8. package/dist/composition-api/useGetUserAddress.d.ts +2 -2
  9. package/dist/composition-api/useHeightProperties.d.ts +19 -19
  10. package/dist/composition-api/useInpuAddress.d.ts +2 -2
  11. package/dist/composition-api/useMakePayment.d.ts +3 -3
  12. package/dist/composition-api/useOpenApp.d.ts +3 -3
  13. package/dist/composition-api/useOpenMap.d.ts +3 -3
  14. package/dist/composition-api/useRegisterEmail.d.ts +2 -2
  15. package/dist/composition-api/useRenderSmartButton.d.ts +3 -3
  16. package/dist/composition-api/useShowAlert.d.ts +3 -3
  17. package/dist/composition-api/useShowUpdateWarning.d.ts +3 -3
  18. package/dist/composition-api/useTakePhoto.d.ts +3 -3
  19. package/dist/composition-api/useTopup.d.ts +3 -3
  20. package/dist/index.d.ts +3 -3
  21. package/dist/jsbridge-core/index.d.ts +4 -4
  22. package/dist/jsbridge-core/jsbridge.d.ts +62 -62
  23. package/dist/jsbridge-core/lib/browser.d.ts +3 -3
  24. package/dist/jsbridge-core/lib/logger.d.ts +9 -9
  25. package/dist/jsbridge-core/lib/reconstructParams.d.ts +2 -2
  26. package/dist/jsbridge-core/module.d.ts +15 -14
  27. package/dist/jsbridge-core/namespace.d.ts +2 -2
  28. package/dist/jsbridge-core/paypay-jsbridge.d.ts +17 -16
  29. package/dist/mini-app-api.d.ts +51 -51
  30. package/dist/mini-app-js-sdk.browser.js +1 -1
  31. package/dist/mini-app-js-sdk.d.ts +9 -9
  32. package/dist/mini-app-js-sdk.es.js +33675 -1
  33. package/dist/mini-app-js-sdk.min.css +1 -1
  34. package/dist/model/bridge/checkAccessToken.d.ts +3 -3
  35. package/dist/model/bridge/checkPaymentMethod.d.ts +2 -2
  36. package/dist/model/bridge/closeApp.d.ts +2 -2
  37. package/dist/model/bridge/copyToClipboard.d.ts +2 -2
  38. package/dist/model/bridge/debug.d.ts +3 -3
  39. package/dist/model/bridge/getAppDetail.d.ts +3 -17
  40. package/dist/model/bridge/getAuthStatus.d.ts +3 -3
  41. package/dist/model/bridge/getBalance.d.ts +2 -2
  42. package/dist/model/bridge/getConfigure.d.ts +39 -39
  43. package/dist/model/bridge/getDeviceInformation.d.ts +3 -3
  44. package/dist/model/bridge/getKycInformation.d.ts +2 -2
  45. package/dist/model/bridge/getPermissionStatus.d.ts +2 -2
  46. package/dist/model/bridge/getPlatformInformation.d.ts +3 -3
  47. package/dist/model/bridge/getSessionData.d.ts +2 -2
  48. package/dist/model/bridge/getStorageData.d.ts +2 -2
  49. package/dist/model/bridge/getTopBarHeight.d.ts +3 -3
  50. package/dist/model/bridge/getUAID.d.ts +3 -3
  51. package/dist/model/bridge/getUserAddress.d.ts +2 -2
  52. package/dist/model/bridge/getUserLocation.d.ts +2 -2
  53. package/dist/model/bridge/getUserProfile.d.ts +3 -3
  54. package/dist/model/bridge/index.d.ts +43 -43
  55. package/dist/model/bridge/init.d.ts +2 -2
  56. package/dist/model/bridge/inputAddress.d.ts +2 -2
  57. package/dist/model/bridge/logout.d.ts +3 -3
  58. package/dist/model/bridge/makePayment.d.ts +2 -2
  59. package/dist/model/bridge/openApp.d.ts +2 -2
  60. package/dist/model/bridge/openMap.d.ts +2 -2
  61. package/dist/model/bridge/openWebview.d.ts +3 -3
  62. package/dist/model/bridge/registerEmail.d.ts +2 -2
  63. package/dist/model/bridge/registerKyc.d.ts +2 -2
  64. package/dist/model/bridge/removeStorageData.d.ts +2 -2
  65. package/dist/model/bridge/render.d.ts +2 -2
  66. package/dist/model/bridge/renderLoginButton.d.ts +6 -2
  67. package/dist/model/bridge/renderPayButton.d.ts +6 -2
  68. package/dist/model/bridge/request.d.ts +2 -2
  69. package/dist/model/bridge/requestInternal.d.ts +2 -2
  70. package/dist/model/bridge/scanCode.d.ts +3 -3
  71. package/dist/model/bridge/setSessionData.d.ts +2 -2
  72. package/dist/model/bridge/setStorageData.d.ts +2 -2
  73. package/dist/model/bridge/setTitle.d.ts +2 -2
  74. package/dist/model/bridge/share.d.ts +2 -2
  75. package/dist/model/bridge/showAlert.d.ts +2 -2
  76. package/dist/model/bridge/showErrorSheet.d.ts +2 -2
  77. package/dist/model/bridge/showUpdateWarning.d.ts +2 -2
  78. package/dist/model/bridge/startMultiFactorAuth.d.ts +2 -2
  79. package/dist/model/bridge/takePhoto.d.ts +2 -2
  80. package/dist/model/bridge/topup.d.ts +2 -2
  81. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +3 -3
  82. package/dist/model/makePayment.d.ts +334 -324
  83. package/dist/model/miniAppError.d.ts +57 -57
  84. package/dist/model/miniAppStatus.d.ts +9 -9
  85. package/dist/model/permission.d.ts +21 -21
  86. package/dist/model/uiComponents.d.ts +24 -23
  87. package/dist/package/action-sheet/index.d.ts +97 -91
  88. package/dist/package/banner-header/index.vue.d.ts +56 -56
  89. package/dist/package/button/index.d.ts +77 -69
  90. package/dist/package/charge-amount-list/index.vue.d.ts +48 -54
  91. package/dist/package/charge-amount-more-list/index.vue.d.ts +23 -19
  92. package/dist/package/date-button/index.vue.d.ts +19 -21
  93. package/dist/package/desktop-header/index.d.ts +21 -0
  94. package/dist/package/divider/index.d.ts +21 -22
  95. package/dist/package/header/index.d.ts +65 -65
  96. package/dist/package/index.d.ts +17 -16
  97. package/dist/package/input/index.d.ts +209 -170
  98. package/dist/package/input/utils.d.ts +10 -10
  99. package/dist/package/lottie/index.d.ts +58 -62
  100. package/dist/package/overlay/index.d.ts +44 -45
  101. package/dist/package/payment-method/Bank.vue.d.ts +35 -35
  102. package/dist/package/payment-method/CreditCard.vue.d.ts +42 -42
  103. package/dist/package/payment-method/SbidBank.vue.d.ts +279 -21
  104. package/dist/package/payment-method/Wallet.vue.d.ts +289 -31
  105. package/dist/package/payment-method/index.d.ts +15 -15
  106. package/dist/package/payment-method-list/index.vue.d.ts +39 -27
  107. package/dist/package/payment-type/Bank.vue.d.ts +31 -31
  108. package/dist/package/payment-type/CreditCard.vue.d.ts +32 -32
  109. package/dist/package/payment-type/Sbid.vue.d.ts +275 -17
  110. package/dist/package/payment-type/Wallet.vue.d.ts +276 -17
  111. package/dist/package/payment-type/index.d.ts +13 -15
  112. package/dist/package/select-list/Components.d.ts +77 -65
  113. package/dist/package/select-list/index.d.ts +82 -73
  114. package/dist/package/switch/index.d.ts +22 -23
  115. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +286 -0
  116. package/dist/types.d.ts +376 -344
  117. package/dist/utils/api.d.ts +168 -147
  118. package/dist/utils/common.d.ts +2 -2
  119. package/dist/utils/create/bem.d.ts +6 -6
  120. package/dist/utils/create/index.d.ts +5 -5
  121. package/dist/utils/fetch.d.ts +16 -16
  122. package/dist/utils/getImages.d.ts +36 -5
  123. package/dist/utils/getLanguage.d.ts +225 -3
  124. package/dist/utils/helper.d.ts +44 -47
  125. package/dist/utils/ip.d.ts +2 -2
  126. package/dist/utils/miniAppRequest.d.ts +9 -9
  127. package/dist/utils/popstateHandler.d.ts +4 -4
  128. package/dist/utils/secondary-list.d.ts +1 -1
  129. package/dist/utils/storage.d.ts +28 -26
  130. package/dist/utils/uiConstants.d.ts +1 -0
  131. package/dist/utils/useBreakpoints.d.ts +5 -0
  132. package/dist/utils/utils.d.ts +2 -0
  133. package/dist/views/email-registration/App.vue.d.ts +302 -79
  134. package/dist/views/email-registration/components/EmailButton.vue.d.ts +45 -45
  135. package/dist/views/email-registration/components/icons.d.ts +2 -2
  136. package/dist/views/email-registration/hooks/callback.d.ts +7 -7
  137. package/dist/views/email-registration/hooks/ui.d.ts +29 -29
  138. package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +52 -52
  139. package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +24 -24
  140. package/dist/views/error-sheet/Index.vue.d.ts +310 -52
  141. package/dist/views/get-user-address/App.vue.d.ts +52 -52
  142. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +307 -73
  143. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +281 -23
  144. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +276 -33
  145. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +258 -35
  146. package/dist/views/get-user-address/Sheet/AddSheet/constants.d.ts +4 -4
  147. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +311 -83
  148. package/dist/views/get-user-address/Sheet/App.vue.d.ts +79 -70
  149. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +264 -32
  150. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +249 -25
  151. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +332 -49
  152. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +240 -0
  153. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +259 -0
  154. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +254 -0
  155. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +246 -0
  156. package/dist/views/get-user-address/hooks/ui-hooks.d.ts +57 -14
  157. package/dist/views/get-user-address/store/error-handle.d.ts +13 -12
  158. package/dist/views/get-user-address/store/root.d.ts +18 -14
  159. package/dist/views/input-address/App.vue.d.ts +35 -36
  160. package/dist/views/input-address/hook/app.d.ts +13 -13
  161. package/dist/views/input-address/hook/error-handle.d.ts +10 -10
  162. package/dist/views/input-address/hook/root.d.ts +10 -10
  163. package/dist/views/make-payment/App.vue.d.ts +52 -60
  164. package/dist/views/make-payment/Main.vue.d.ts +197 -638
  165. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +247 -25
  166. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +244 -20
  167. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +277 -19
  168. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +274 -16
  169. package/dist/views/make-payment/Sheets/CashBackDetails/FloatingButton.vue.d.ts +24 -24
  170. package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +26 -26
  171. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +311 -53
  172. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +269 -32
  173. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +422 -80
  174. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +308 -49
  175. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +833 -522
  176. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +264 -38
  177. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +265 -0
  178. package/dist/views/make-payment/Sheets/Consult.vue.d.ts +23 -23
  179. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +250 -27
  180. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +328 -0
  181. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +428 -108
  182. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +70 -36
  183. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +354 -69
  184. package/dist/views/make-payment/hooks/app-hooks.d.ts +381 -568
  185. package/dist/views/make-payment/hooks/ui-hooks.d.ts +87 -72
  186. package/dist/views/make-payment/store/age-confirm.d.ts +9 -9
  187. package/dist/views/make-payment/store/handle-error.d.ts +36 -36
  188. package/dist/views/make-payment/store/root.d.ts +22 -22
  189. package/dist/views/make-payment/store/util-for-handle-error.d.ts +16 -16
  190. package/dist/views/make-payment/utils/paymentMethod.d.ts +5 -3
  191. package/dist/views/open-app/App.vue.d.ts +286 -28
  192. package/dist/views/open-map/App.vue.d.ts +251 -28
  193. package/dist/views/show-alert/App.vue.d.ts +36 -36
  194. package/dist/views/show-update-warning/App.vue.d.ts +286 -28
  195. package/dist/views/smart-button/App.vue.d.ts +87 -87
  196. package/dist/views/take-photo/App.vue.d.ts +248 -25
  197. package/dist/views/take-photo/helper.d.ts +2 -2
  198. package/dist/views/topup/App.vue.d.ts +378 -100
  199. package/dist/views/topup/BannerInfo.vue.d.ts +27 -23
  200. package/dist/views/topup/CashbackInfo.vue.d.ts +267 -44
  201. package/dist/views/topup/TopupCompletion.vue.d.ts +286 -26
  202. package/package.json +12 -18
  203. package/dist/utils/mock-data/mockData.d.ts +0 -64
@@ -0,0 +1,246 @@
1
+ import { PropType } from 'vue';
2
+ import { Address } from '../../../../../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ selectedAddress: {
5
+ type: PropType<Address | null>;
6
+ required: false;
7
+ default: () => void;
8
+ };
9
+ }, {
10
+ lg: {
11
+ showUpdateWarning: {
12
+ closeBtn: string;
13
+ notNow: string;
14
+ update: string;
15
+ title: string;
16
+ errorText: string;
17
+ desc1: string;
18
+ desc2: string;
19
+ };
20
+ openApp: {
21
+ title: string;
22
+ body: string;
23
+ errorText: string;
24
+ openApp: string;
25
+ cancel: string;
26
+ };
27
+ openMap: {
28
+ title: string;
29
+ errorText: string;
30
+ };
31
+ topup: {
32
+ title: string;
33
+ balMoney: string;
34
+ charge: string;
35
+ minAmount: string;
36
+ maxAmount: string;
37
+ moneyLabel: string;
38
+ noMethod: string;
39
+ loading: string;
40
+ payBtn: string;
41
+ availableBalance: string;
42
+ availableBalanceAfter: string;
43
+ allBalance: string;
44
+ };
45
+ takePhoto: {
46
+ camera: string;
47
+ photo: string;
48
+ };
49
+ payment: {
50
+ title: string;
51
+ payAmount: string;
52
+ payAmountTaxExempt: string;
53
+ method: string;
54
+ address: string;
55
+ insufficientAmount: string;
56
+ paying: string;
57
+ pay: string;
58
+ charge: string;
59
+ cancel: string;
60
+ noAddress: string;
61
+ change: string;
62
+ close: string;
63
+ };
64
+ duplicate: {
65
+ header: string;
66
+ text1: string;
67
+ text2: string;
68
+ cancel: string;
69
+ agreeButtonText: string;
70
+ topHeader: string;
71
+ topText1: string;
72
+ topText2: string;
73
+ topAgreeButtonText: string;
74
+ };
75
+ birthdayConfirm: {
76
+ title: string;
77
+ title2: string;
78
+ desc: string;
79
+ desc1: string;
80
+ desc2: string;
81
+ desc3: string;
82
+ date: string;
83
+ primaryBtn: string;
84
+ cancelBtn: string;
85
+ };
86
+ birthdayConfirmError: {
87
+ title: string;
88
+ title2: string;
89
+ desc: string;
90
+ desc2: string;
91
+ helpBtn: string;
92
+ closeBtn: string;
93
+ };
94
+ cashbackDet: {
95
+ button1: string;
96
+ button2: string;
97
+ button3: string;
98
+ };
99
+ topContent: {
100
+ title: string;
101
+ chargeTitle: string;
102
+ chargeLabel: string;
103
+ loading: string;
104
+ unavailable1: string;
105
+ unavailable2: string;
106
+ amount: string;
107
+ return: string;
108
+ };
109
+ topInfo: {
110
+ sufficientRow: string;
111
+ insufficientAmount: string;
112
+ insufficientAmountText: string;
113
+ paymentAmount: string;
114
+ };
115
+ choosePayment: {
116
+ title: string;
117
+ desc1: string;
118
+ desc2: string;
119
+ title2: string;
120
+ addMethod: string;
121
+ noMethod: string;
122
+ };
123
+ topupCompletion: {
124
+ title: string;
125
+ idInfo: string;
126
+ copied: string;
127
+ };
128
+ userAddress: {
129
+ title: string;
130
+ header: string;
131
+ tagForm: string;
132
+ home: string;
133
+ work: string;
134
+ billing: string;
135
+ footer: string;
136
+ titlePre: string;
137
+ titleApp: string;
138
+ titlePlace: string;
139
+ receiverPre: string;
140
+ receiverPlace: string;
141
+ inputPre: string;
142
+ statePre: string;
143
+ statePlace: string;
144
+ cityPre: string;
145
+ cityPlace: string;
146
+ street1Pre: string;
147
+ streetPlace: string;
148
+ street2Pre: string;
149
+ street2Place: string;
150
+ footerBtn1: string;
151
+ footerBtn2: string;
152
+ displayTitle: string;
153
+ deleteTitle: string;
154
+ delete: string;
155
+ close: string;
156
+ addAddress: string;
157
+ address: string;
158
+ return: string;
159
+ change: string;
160
+ noAddress: string;
161
+ registerAddress: string;
162
+ confirmAddress: string;
163
+ returnEdit: string;
164
+ selectAddress: string;
165
+ };
166
+ errorSheet: {
167
+ title: string;
168
+ title1: string;
169
+ desc: string;
170
+ topup: string;
171
+ topupDesc: string;
172
+ pay: string;
173
+ payDesc: string;
174
+ };
175
+ paymentMethod: {
176
+ expired: string;
177
+ ordinary: string;
178
+ current: string;
179
+ checkGreen: string;
180
+ authenticated: string;
181
+ yjTitle: string;
182
+ ppCardTitle: string;
183
+ brand: string;
184
+ };
185
+ wallet: {
186
+ title: string;
187
+ desc: string;
188
+ eMoney: string;
189
+ nonUsable: string;
190
+ cashBackUsable: string;
191
+ cashBackExpirable: string;
192
+ balance: string;
193
+ };
194
+ softbank: {
195
+ desc: string;
196
+ desc1: string;
197
+ isDisable: string;
198
+ };
199
+ registerEmail: {
200
+ title: string;
201
+ warning: string;
202
+ cancelTxt: string;
203
+ errorTitleAlreadyRegistered: string;
204
+ errorDescriptionAlreadyRegistered: string;
205
+ errorTitle: string;
206
+ errorDescription: string;
207
+ };
208
+ smartLogin: {
209
+ title: string;
210
+ signIn: string;
211
+ continueAs: string;
212
+ };
213
+ smartPay: {
214
+ pay: string;
215
+ paypay: string;
216
+ cashback: string;
217
+ };
218
+ cashbackList: {
219
+ close: string;
220
+ };
221
+ desktopTitle: {
222
+ Payment: string;
223
+ addNewAddress: string;
224
+ editAddress: string;
225
+ paymentCompletion: string;
226
+ getUserAddress: string;
227
+ };
228
+ closeConfirmation: {
229
+ title: string;
230
+ confirm: string;
231
+ cancel: string;
232
+ };
233
+ };
234
+ style: Record<string, string>;
235
+ isDesktop: import("vue").ComputedRef<boolean>;
236
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "confirm")[], "close" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
237
+ selectedAddress?: unknown;
238
+ } & {
239
+ selectedAddress: Address | null;
240
+ } & {}> & {
241
+ onClose?: ((...args: any[]) => any) | undefined;
242
+ onConfirm?: ((...args: any[]) => any) | undefined;
243
+ }, {
244
+ selectedAddress: Address | null;
245
+ }>;
246
+ export default _default;
@@ -1,14 +1,57 @@
1
- import { Address } from '../../../types';
2
- export declare function useUIControl(): {
3
- pageTransition: {
4
- fullScreen: import("vue").ComputedRef<boolean>;
5
- showAddSheet: import("vue").ComputedRef<boolean>;
6
- openAddSheet: (address: Address) => void;
7
- closeAddSheet: () => void;
8
- resetAddress: () => void;
9
- address: import("vue").ComputedRef<any>;
10
- };
11
- headerHeight: import("vue").ComputedRef<{
12
- maxHeight: string;
13
- }>;
14
- };
1
+ import { Address } from '../../../types';
2
+ export declare function useUIControl(): {
3
+ pageTransition: {
4
+ fullScreen: import("vue").ComputedRef<boolean>;
5
+ showAddSheet: import("vue").ComputedRef<boolean>;
6
+ openAddSheet: (address?: Address | undefined) => void;
7
+ closeAddSheet: () => void;
8
+ resetAddress: () => void;
9
+ address: import("vue").ComputedRef<{
10
+ id: number;
11
+ kyc: boolean;
12
+ street1: string;
13
+ country: string;
14
+ zip: string;
15
+ state: string;
16
+ city: string;
17
+ tags?: string[] | undefined;
18
+ title?: string | undefined;
19
+ receiver?: string | undefined;
20
+ street2?: string | undefined;
21
+ } | null>;
22
+ isDesktop: import("vue").ComputedRef<boolean>;
23
+ };
24
+ headerHeight: import("vue").ComputedRef<{
25
+ maxHeight: string;
26
+ }>;
27
+ };
28
+ export declare function useAddressControl(): {
29
+ selectedAddress: import("vue").ComputedRef<{
30
+ id: number;
31
+ kyc: boolean;
32
+ street1: string;
33
+ country: string;
34
+ zip: string;
35
+ state: string;
36
+ city: string;
37
+ tags?: string[] | undefined;
38
+ title?: string | undefined;
39
+ receiver?: string | undefined;
40
+ street2?: string | undefined;
41
+ } | null>;
42
+ setSelectedAddress: (index: number, address: Address[], isMakePayment?: boolean) => void;
43
+ confirmedSelectedAddress: import("vue").ComputedRef<{
44
+ id: number;
45
+ kyc: boolean;
46
+ street1: string;
47
+ country: string;
48
+ zip: string;
49
+ state: string;
50
+ city: string;
51
+ tags?: string[] | undefined;
52
+ title?: string | undefined;
53
+ receiver?: string | undefined;
54
+ street2?: string | undefined;
55
+ } | null>;
56
+ confirmSelectedAddress: () => void;
57
+ };
@@ -1,12 +1,13 @@
1
- import { ComputedRef } from 'vue';
2
- import { ErrorResponse } from '../../../utils/fetch';
3
- export declare const KEY = "getUserAddress_error_handling";
4
- export interface ErrorHandleStore {
5
- errorShow: ComputedRef<boolean>;
6
- errorTitle: ComputedRef<string>;
7
- errorDescription: ComputedRef<string>;
8
- errorIcon: ComputedRef<string>;
9
- handleError: <T>(res?: ErrorResponse | T) => res is ErrorResponse;
10
- }
11
- export declare function initErrorHandling(): ErrorHandleStore;
12
- export declare function getErrorHandling(): ErrorHandleStore;
1
+ import { ComputedRef } from 'vue';
2
+ import { ErrorResponse } from '../../../utils/fetch';
3
+ import { GetAddressListResponse } from '../../../utils/api';
4
+ export declare const KEY = "getUserAddress_error_handling";
5
+ export interface ErrorHandleStore {
6
+ errorShow: ComputedRef<boolean>;
7
+ errorTitle: ComputedRef<string>;
8
+ errorDescription: ComputedRef<string>;
9
+ errorIcon: ComputedRef<string>;
10
+ handleError: (res?: ErrorResponse | GetAddressListResponse) => res is ErrorResponse;
11
+ }
12
+ export declare function initErrorHandling(): ErrorHandleStore;
13
+ export declare function getErrorHandling(): ErrorHandleStore;
@@ -1,14 +1,18 @@
1
- import { SetupContext } from 'vue';
2
- import { Address, GetUserAddressParams } from '../../../types';
3
- export declare const KEY = "getUserAddress_root";
4
- export interface Props {
5
- getUserAddressParams: GetUserAddressParams;
6
- }
7
- export interface RootStore {
8
- cancel: () => void;
9
- success: (address: Address) => void;
10
- back: () => void;
11
- makepayment: (index: any) => void;
12
- }
13
- export declare function initRoot(props: Props, { emit }: SetupContext): RootStore;
14
- export declare function getRoot(): RootStore;
1
+ import { SetupContext } from 'vue';
2
+ import { Address, GetUserAddressParams, AddressUpdateEvent } from '../../../types';
3
+ export declare const KEY = "getUserAddress_root";
4
+ export interface Props {
5
+ getUserAddressParams: GetUserAddressParams;
6
+ selectedAddress: Address | null;
7
+ }
8
+ export interface RootStore {
9
+ cancel: () => void;
10
+ success: (address: Address) => void;
11
+ back: () => void;
12
+ chooseAddress: (address: Address) => void;
13
+ layoutUpdate: (value?: boolean) => void;
14
+ updateAddress: (data: AddressUpdateEvent) => void;
15
+ savedMakepayAddressid: number;
16
+ }
17
+ export declare function initRoot(props: Props, { emit }: SetupContext): RootStore;
18
+ export declare function getRoot(): RootStore;
@@ -1,36 +1,35 @@
1
- import { PropType } from 'vue';
2
- import { InputAddressParams } from '../../types';
3
- declare const _default: import("vue").DefineComponent<{
4
- inputAddressParams: {
5
- type: PropType<InputAddressParams>;
6
- required: true;
7
- default: any;
8
- };
9
- show: {
10
- type: BooleanConstructor;
11
- required: false;
12
- default: boolean;
13
- };
14
- }, {
15
- cancel: () => void;
16
- errorTitle: import("vue").ComputedRef<string>;
17
- errorShow: import("vue").ComputedRef<boolean>;
18
- errorIcon: import("vue").ComputedRef<string>;
19
- errorDescription: import("vue").ComputedRef<string>;
20
- addAddress: (_address: import("../../types").Address) => Promise<void>;
21
- loading: import("vue").ComputedRef<boolean>;
22
- closeError: () => void;
23
- address: import("vue").ComputedRef<any>;
24
- delAddress: (_address: import("../../types").Address) => Promise<void>;
25
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
26
- inputAddressParams?: unknown;
27
- show?: unknown;
28
- } & {
29
- show: boolean;
30
- } & {
31
- inputAddressParams?: any;
32
- }>, {
33
- inputAddressParams: any;
34
- show: boolean;
35
- }>;
36
- export default _default;
1
+ import { PropType } from 'vue';
2
+ import { InputAddressParams } from '../../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ inputAddressParams: {
5
+ type: PropType<InputAddressParams>;
6
+ required: true;
7
+ default: null;
8
+ };
9
+ show: {
10
+ type: BooleanConstructor;
11
+ required: false;
12
+ default: boolean;
13
+ };
14
+ }, {
15
+ cancel: () => void;
16
+ errorTitle: import("vue").ComputedRef<string>;
17
+ errorShow: import("vue").ComputedRef<boolean>;
18
+ errorIcon: import("vue").ComputedRef<string>;
19
+ errorDescription: import("vue").ComputedRef<string>;
20
+ addAddress: (_address: import("../../types").Address) => Promise<void>;
21
+ loading: import("vue").ComputedRef<boolean>;
22
+ closeError: () => void;
23
+ address: import("vue").ComputedRef<import("../../types").Address | undefined>;
24
+ delAddress: (res: unknown) => Promise<void>;
25
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
26
+ inputAddressParams?: unknown;
27
+ show?: unknown;
28
+ } & {
29
+ show: boolean;
30
+ inputAddressParams: InputAddressParams;
31
+ } & {}>, {
32
+ show: boolean;
33
+ inputAddressParams: InputAddressParams;
34
+ }>;
35
+ export default _default;
@@ -1,13 +1,13 @@
1
- import { Address } from '../../../types';
2
- import { ErrorResponse } from '../../../utils/fetch';
3
- export declare function useApp(params: {
4
- handleError: (res?: ErrorResponse | any) => res is ErrorResponse;
5
- success: () => void;
6
- address?: Address | null | undefined;
7
- }): {
8
- addAddress: (_address: Address) => Promise<void>;
9
- loading: import("vue").ComputedRef<boolean>;
10
- delAddress: (_address: Address) => Promise<void>;
11
- shallow: import("vue").ComputedRef<boolean>;
12
- reset: () => void;
13
- };
1
+ import { Address } from '../../../types';
2
+ import { ErrorResponse } from '../../../utils/fetch';
3
+ export declare function useApp(params: {
4
+ handleError: (res?: ErrorResponse | unknown) => res is ErrorResponse;
5
+ success: () => void;
6
+ address?: Address | null | undefined;
7
+ }): {
8
+ addAddress: (_address: Address) => Promise<void>;
9
+ loading: import("vue").ComputedRef<boolean>;
10
+ delAddress: (res: ErrorResponse | unknown) => Promise<void>;
11
+ shallow: import("vue").ComputedRef<boolean>;
12
+ reset: () => void;
13
+ };
@@ -1,10 +1,10 @@
1
- import { SetupContext } from 'vue';
2
- import { ErrorResponse } from '../../../utils/fetch';
3
- export declare function useErrorHandling({ emit }: SetupContext): {
4
- errorShow: import("vue").ComputedRef<boolean>;
5
- errorTitle: import("vue").ComputedRef<string>;
6
- errorIcon: import("vue").ComputedRef<string>;
7
- errorDescription: import("vue").ComputedRef<string>;
8
- handleError: (res?: ErrorResponse | any) => res is ErrorResponse;
9
- closeError: () => void;
10
- };
1
+ import { SetupContext } from 'vue';
2
+ import { ErrorResponse } from '../../../utils/fetch';
3
+ export declare function useErrorHandling({}: SetupContext): {
4
+ errorShow: import("vue").ComputedRef<boolean>;
5
+ errorTitle: import("vue").ComputedRef<string>;
6
+ errorIcon: import("vue").ComputedRef<string>;
7
+ errorDescription: import("vue").ComputedRef<string>;
8
+ handleError: (res?: ErrorResponse | any) => res is ErrorResponse;
9
+ closeError: () => void;
10
+ };
@@ -1,10 +1,10 @@
1
- import { InputAddressParams } from '../../../types';
2
- import { SetupContext } from 'vue';
3
- export interface Props {
4
- inputAddressParams: InputAddressParams;
5
- show: boolean;
6
- }
7
- export declare function useRoot(props: Props, { emit }: SetupContext): {
8
- cancel: () => void;
9
- success: () => void;
10
- };
1
+ import { InputAddressParams } from '../../../types';
2
+ import { SetupContext } from 'vue';
3
+ export interface Props {
4
+ inputAddressParams: InputAddressParams;
5
+ show: boolean;
6
+ }
7
+ export declare function useRoot(props: Props, { emit }: SetupContext): {
8
+ cancel: () => void;
9
+ success: () => void;
10
+ };
@@ -1,60 +1,52 @@
1
- import { PropType } from 'vue';
2
- import { Address, MakePaymentParams } from '../../types';
3
- declare const _default: import("vue").DefineComponent<{
4
- show: BooleanConstructor;
5
- paymentParams: {
6
- type: PropType<MakePaymentParams>;
7
- default: () => void;
8
- };
9
- orderItems: {
10
- type: ObjectConstructor;
11
- default: () => void;
12
- };
13
- addresses: {
14
- type: PropType<Address[]>;
15
- required: false;
16
- default: () => Address[];
17
- };
18
- showUserAddress: {
19
- type: BooleanConstructor;
20
- required: false;
21
- default: boolean;
22
- };
23
- defaultSelected: {
24
- type: NumberConstructor;
25
- required: false;
26
- default: number;
27
- };
28
- }, {
29
- endApplication: () => void;
30
- isError: import("vue").ComputedRef<boolean>;
31
- closeError: (immediately: boolean) => void;
32
- showConsultError: import("vue").ComputedRef<boolean>;
33
- consultError: import("vue").ComputedRef<import("../../model/uiComponents").UIComponentsError>;
34
- isErrorOverlay: import("vue").ComputedRef<boolean>;
35
- errorIcon: import("vue").ComputedRef<string>;
36
- errorDescription: import("vue").ComputedRef<string>;
37
- errorTitle: import("vue").ComputedRef<string>;
38
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
39
- show?: unknown;
40
- paymentParams?: unknown;
41
- orderItems?: unknown;
42
- addresses?: unknown;
43
- showUserAddress?: unknown;
44
- defaultSelected?: unknown;
45
- } & {
46
- show: boolean;
47
- paymentParams: MakePaymentParams;
48
- orderItems: Record<string, any>;
49
- addresses: Address[];
50
- showUserAddress: boolean;
51
- defaultSelected: number;
52
- } & {}>, {
53
- show: boolean;
54
- paymentParams: MakePaymentParams;
55
- orderItems: Record<string, any>;
56
- addresses: Address[];
57
- showUserAddress: boolean;
58
- defaultSelected: number;
59
- }>;
60
- export default _default;
1
+ import { PropType } from 'vue';
2
+ import { Address, MakePaymentParams } from '../../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ show: BooleanConstructor;
5
+ paymentParams: {
6
+ type: PropType<MakePaymentParams>;
7
+ default: () => void;
8
+ };
9
+ orderItems: {
10
+ type: ObjectConstructor;
11
+ default: () => void;
12
+ };
13
+ addresses: {
14
+ type: PropType<Address[]>;
15
+ required: false;
16
+ default: () => Address[];
17
+ };
18
+ showUserAddress: {
19
+ type: BooleanConstructor;
20
+ required: false;
21
+ default: boolean;
22
+ };
23
+ }, {
24
+ endApplication: () => void;
25
+ isError: import("vue").ComputedRef<boolean>;
26
+ closeError: (immediately: boolean) => void;
27
+ showConsultError: import("vue").ComputedRef<boolean>;
28
+ consultError: import("vue").ComputedRef<import("../../model/uiComponents").UIComponentsError | null>;
29
+ isErrorOverlay: import("vue").ComputedRef<boolean>;
30
+ errorIcon: import("vue").ComputedRef<string>;
31
+ errorDescription: import("vue").ComputedRef<string>;
32
+ errorTitle: import("vue").ComputedRef<string>;
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
34
+ show?: unknown;
35
+ paymentParams?: unknown;
36
+ orderItems?: unknown;
37
+ addresses?: unknown;
38
+ showUserAddress?: unknown;
39
+ } & {
40
+ orderItems: Record<string, any>;
41
+ show: boolean;
42
+ addresses: Address[];
43
+ paymentParams: MakePaymentParams;
44
+ showUserAddress: boolean;
45
+ } & {}>, {
46
+ orderItems: Record<string, any>;
47
+ show: boolean;
48
+ addresses: Address[];
49
+ paymentParams: MakePaymentParams;
50
+ showUserAddress: boolean;
51
+ }>;
52
+ export default _default;