Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion pages/debug/businessAccount/transfers/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<v-form>
<v-text-field v-model="formData.amount" label="Amount" />

<v-select
v-model="formData.currency"
:items="currencyTypes"
label="Currency"
/>

<v-text-field v-model="formData.addressId" label="Address ID" />

<v-btn
Expand Down Expand Up @@ -45,9 +51,11 @@ const isFiatAccount = true
const formData = reactive({
idempotencyKey: '',
amount: '',
currency: 'USD',
addressId: '',
})

const currencyTypes = ['USD', 'EUR']
const required = [(v: string) => !!v || 'Field is required']
const error = ref<any>({})
const loading = ref(false)
Expand All @@ -67,7 +75,7 @@ const makeApiCall = async () => {

const amountDetail = {
amount: formData.amount,
currency: 'USD',
currency: formData.currency,
}
const destinationDetail = {
type: 'verified_blockchain',
Expand Down
10 changes: 9 additions & 1 deletion pages/debug/daa/transfers/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<v-form>
<v-text-field v-model="formData.amount" label="Amount" />

<v-select
v-model="formData.currency"
:items="currencyTypes"
label="Currency"
/>

<v-select
v-model="formData.destinationType"
:items="destinationTypes"
Expand Down Expand Up @@ -61,12 +67,14 @@ const { $daaTransfersApi } = useNuxtApp()

const formData = reactive({
amount: '',
currency: 'USD',
destinationType: 'verified_blockchain',
destinationId: '',
sourceId: '',
})

const destinationTypes = ['verified_blockchain', 'account']
const currencyTypes = ['USD', 'EUR']
const error = ref<any>({})
const loading = ref(false)
const showError = ref(false)
Expand All @@ -85,7 +93,7 @@ const makeApiCall = async () => {

const amountDetail = {
amount: formData.amount,
currency: 'USD',
currency: formData.currency,
}
const destinationDetail =
formData.destinationType === 'account'
Expand Down
Loading