Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.66 KB | None | 0 0
  1. import {ApiRequest, ApiAdapter, ApiRequestMethod} from 'api'
  2.  
  3. export default function (bankAccountId, portfolioId, clientId: string, twoFAToken: string, token: string, adapter: ApiAdapter) {
  4.   return adapter.handleRequest({
  5.     path: `/api/v1/portfolio/${clientId}/liquidate`,
  6.     method: ApiRequestMethod.post,
  7.     data: {
  8.         data: {
  9.             attributes: {
  10.                 id: portfolioId,
  11.                 'bank-account-id': bankAccountId,
  12.                 'money-withdrawal-reason-type': moneyWithdrawalReasonType,
  13.                 'money-withdrawal-reason': moneyWithdrawalReason
  14.             }
  15.         }
  16.     }
  17.   }, {authToken: token, twoFAToken})
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement