Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated vezgo functions, removed unnecessary vezgo functions
- Loading branch information
1 parent
d10e0a1
commit 57c251c
Showing
11 changed files
with
99 additions
and
210 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
import { MethodMetadata } from '..'; | ||
import { Headers } from '../../helpers/axios'; | ||
import { useRestCall } from '../../helpers/rest-calls'; | ||
|
||
const path = 'vezgo-connect/:userProfileId/:provider'; | ||
|
||
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: 'userProfileId', | ||
description: 'User ID', | ||
required: 'yes', | ||
default: '', | ||
dataType: 'string', | ||
}, | ||
{ | ||
key: 2, | ||
name: 'provider', | ||
description: 'Provider Name', | ||
required: 'yes', | ||
default: '', | ||
dataType: 'string', | ||
}, | ||
]; | ||
|
||
export const metadata: MethodMetadata = { | ||
author: 'Aaron Knott', | ||
authorPicture: '', | ||
description: 'Get a Vezgo Link for a specific provider', | ||
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,43 @@ | ||
import { MethodMetadata } from '..'; | ||
import { Headers } from '../../helpers/axios'; | ||
import { useRestCall } from '../../helpers/rest-calls'; | ||
|
||
const path = 'store-account/'; | ||
|
||
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: 'code', | ||
description: 'Vezgo Account ID', | ||
required: 'yes', | ||
default: '', | ||
dataType: 'string', | ||
}, | ||
{ | ||
key: 2, | ||
name: 'institution', | ||
description: 'Vezgo Account Name', | ||
required: 'yes', | ||
default: '', | ||
dataType: 'string', | ||
}, | ||
]; | ||
|
||
export const metadata: MethodMetadata = { | ||
author: 'Aaron Knott', | ||
authorPicture: '', | ||
description: 'Store account credentials ', | ||
name: path, | ||
method: 'POST', | ||
parameters, | ||
}; |