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
3 changes: 2 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@
/>
<p class="subtitle-2 font-weight-light">
Risk signals for the end user initiating the request. Required
when creating wire accounts.
when creating wire accounts, withdrawals, transfers, or
recipient addresses.
</p>
</v-form>
</v-expansion-panel-text>
Expand Down
2 changes: 2 additions & 0 deletions lib/daa/addressesApi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { daaInstance, nullIfEmpty } from './client'
import type { RiskSignals } from './wiresApi'

export interface CreateDepositAddressPayload {
idempotencyKey: string
Expand All @@ -15,6 +16,7 @@ export interface CreateRecipientAddressPayload {
currency?: string
description: string
clientEntityId?: string
riskSignals: RiskSignals
}

const DEPOSIT_PATH = '/v1/accounts/addresses/deposit'
Expand Down
2 changes: 2 additions & 0 deletions lib/daa/transfersApi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { daaInstance, nullIfEmpty } from './client'
import type { RiskSignals } from './wiresApi'

export interface BlockchainDestination {
type: string
Expand All @@ -25,6 +26,7 @@ export interface CreateTransferPayload {
destination: BlockchainDestination | AccountDestination
amount: Amount
source?: Source
riskSignals: RiskSignals
}

const TRANSFERS_PATH = '/v1/accounts/transfers'
Expand Down
2 changes: 2 additions & 0 deletions lib/daa/withdrawalsApi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { daaInstance, nullIfEmpty } from './client'
import type { RiskSignals } from './wiresApi'

export interface CreateWithdrawalPayload {
idempotencyKey: string
Expand All @@ -17,6 +18,7 @@ export interface CreateWithdrawalPayload {
toAmount?: {
currency: string
}
riskSignals: RiskSignals
}

const WITHDRAWALS_PATH = '/v1/accounts/withdrawals'
Expand Down
1 change: 1 addition & 0 deletions pages/debug/daa/addresses/recipient/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const makeApiCall = async () => {
currency,
description,
clientEntityId,
riskSignals: { ...store.getRiskSignals },
}

if (hasAddressTagSupport(chain)) {
Expand Down
1 change: 1 addition & 0 deletions pages/debug/daa/transfers/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const makeApiCall = async () => {
...(formData.sourceId && {
source: { type: 'account', id: formData.sourceId },
}),
riskSignals: { ...store.getRiskSignals },
}

try {
Expand Down
1 change: 1 addition & 0 deletions pages/debug/daa/withdrawals/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const makeApiCall = async () => {
...(formData.toCurrency && {
toAmount: { currency: formData.toCurrency },
}),
riskSignals: { ...store.getRiskSignals },
}
try {
await $daaWithdrawalsApi.createWithdrawal(payloadData)
Expand Down
Loading