adata-ui 2.0.74 → 2.0.75

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.
@@ -11,6 +11,7 @@ const { commonAuth } = useAppConfig()
11
11
  const accessToken = useCookie('accessToken')
12
12
 
13
13
  const {
14
+ rateId,
14
15
  topUpSidePanel,
15
16
  methodSidePanel,
16
17
  kaspiQRSidePanel,
@@ -64,6 +65,7 @@ async function directionsBanks(bank: 'kaspi' | 'other', sum: number) {
64
65
  params: {
65
66
  amount: sum,
66
67
  initial: 1,
68
+ rate_id: rateId.value ?? undefined,
67
69
  },
68
70
  })
69
71
  requestId.value = data.request_id
@@ -30,14 +30,14 @@ const { locale } = useI18n()
30
30
 
31
31
  const items = useHeaderMenuLinks()
32
32
 
33
- const { topUpSidePanel } = usePayment()
33
+ const { topUpSidePanel, rateId } = usePayment()
34
34
 
35
35
  const onReplenish = () => {
36
36
  // if (myLayer.authMode === 'locale') {
37
37
  // topUpSidePanel.value = true
38
38
  // return
39
39
  // }
40
-
40
+ rateId.value = ''
41
41
  topUpSidePanel.value = true
42
42
  }
43
43
  </script>
@@ -5,6 +5,7 @@ export function usePayment() {
5
5
  const methodSidePanel = useState('method-side-panel', () => false)
6
6
  const kaspiQRSidePanel = useState('kaspi-qr-side-panel', () => false)
7
7
  const kaspiRedirectSidePanel = useState('kaspi-redirect-side-panel', () => false)
8
+ const rateId = useState<string>('use-rate-id')
8
9
 
9
10
  async function payByCard(sum: number, rate?: any) {
10
11
  const { $toast, $i18n } = useNuxtApp()
@@ -63,6 +64,7 @@ export function usePayment() {
63
64
  }
64
65
 
65
66
  return {
67
+ rateId,
66
68
  topUpSidePanel,
67
69
  methodSidePanel,
68
70
  kaspiQRSidePanel,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.0.74",
4
+ "version": "2.0.75",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",