Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
75e91cf
commit 2e7b2bc
Showing
8 changed files
with
169 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { MethodMetadata, Parameter } from '../..'; | ||
import { useRestCall } from '../../../helpers/rest-calls'; | ||
import { Headers } from '../../../helpers/axios'; | ||
|
||
const path = 'sync-plaid/:userId/?publicToken=:publicToken'; | ||
|
||
export function useMethod({ pathParameters, body }: any) { | ||
const { data, error, loading, getData } = useRestCall({ | ||
pathParameters, | ||
headers: Headers, | ||
body, | ||
metadata, | ||
}); | ||
return { data, error, loading, getData }; | ||
} | ||
|
||
const parameters: Parameter[] = [ | ||
{ | ||
key: 1, | ||
name: 'userId', | ||
description: 'User ID', | ||
required: 'yes', | ||
default: '', | ||
dataType: 'string', | ||
}, | ||
{ | ||
key: 2, | ||
name: 'publicToken', | ||
description: 'Public Token', | ||
required: 'yes', | ||
default: '', | ||
dataType: 'string', | ||
}, | ||
]; | ||
|
||
export const metadata: MethodMetadata = { | ||
author: 'Aaron Knott', | ||
authorPicture: '', | ||
description: | ||
'Send Public Token to be exchanged for access token and to sync plaid data with user accounts', | ||
name: path, | ||
method: 'GET', | ||
parameters, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { MethodMetadata } from '..'; | ||
import { Headers } from '../../helpers/axios'; | ||
import { useRestCall } from '../../helpers/rest-calls'; | ||
|
||
const path = 'vezgo-accounts/:userId'; | ||
|
||
export function useMethod({ pathParameters, body }: any) { | ||
const { data, error, loading, getData } = useRestCall({ | ||
pathParameters, | ||
headers: Headers, | ||
body, | ||
metadata, | ||
}); | ||
return { data, error, loading, getData }; | ||
} | ||
|
||
const parameters: Parameter[] = [ | ||
{ | ||
key: 1, | ||
name: 'userId', | ||
description: 'User ID', | ||
required: 'yes', | ||
default: '', | ||
dataType: 'string', | ||
}, | ||
]; | ||
|
||
export const metadata: MethodMetadata = { | ||
author: 'Aaron Knott', | ||
authorPicture: '', | ||
description: 'Get all Vezgo Accounts of a user', | ||
name: path, | ||
method: 'GET', | ||
parameters, | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { MethodMetadata } from '..'; | ||
import { Headers } from '../../helpers/axios'; | ||
import { useRestCall } from '../../helpers/rest-calls'; | ||
|
||
const path = | ||
'vezgo-transactions/:accountId/?pageNbr=:pageNbr&pageSize=:pageSize'; | ||
|
||
export function useMethod({ pathParameters, body }: any) { | ||
const { data, error, loading, getData } = useRestCall({ | ||
pathParameters, | ||
headers: Headers, | ||
body, | ||
metadata, | ||
}); | ||
return { data, error, loading, getData }; | ||
} | ||
|
||
const parameters: Parameter[] = [ | ||
{ | ||
key: 1, | ||
name: 'accountId', | ||
description: 'Account ID', | ||
required: 'yes', | ||
default: '', | ||
dataType: 'string', | ||
}, | ||
{ | ||
key: 2, | ||
name: 'pageNbr', | ||
description: 'Pagination page number', | ||
required: 'no', | ||
default: '', | ||
dataType: 'number', | ||
}, | ||
{ | ||
key: 3, | ||
name: 'pageSize', | ||
description: 'pageSize', | ||
required: 'no', | ||
default: '', | ||
dataType: 'number', | ||
}, | ||
]; | ||
|
||
export const metadata: MethodMetadata = { | ||
author: 'Aaron Knott', | ||
authorPicture: '', | ||
description: 'Get list of Vezgo Transactions for a given account', | ||
name: path, | ||
method: 'GET', | ||
parameters, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters