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