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
ce12cf4
commit aadc9fe
Showing
10 changed files
with
41 additions
and
32 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
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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
import { MethodMetadata } from '..'; | ||
import { Headers } from '../../helpers/axios'; | ||
import { useRestCall } from '../../helpers/rest-calls'; | ||
|
||
const path = 'vezgo-transaction/:transactionId'; | ||
const path = 'vesgo-transactions/:userProfileId'; | ||
|
||
export function useMethod({ pathParameters, body }: any) { | ||
const { data, error, loading, getData } = useRestCall({ | ||
pathParameters, | ||
headers: Headers, | ||
body, | ||
metadata, | ||
}); | ||
return { data, error, loading, getData }; | ||
const { data, error, loading, getData } = useRestCall({ | ||
pathParameters, | ||
headers: Headers, | ||
body, | ||
metadata, | ||
}); | ||
return { data, error, loading, getData }; | ||
} | ||
|
||
export const metadata: MethodMetadata = { | ||
author: 'Gabriela Golmar', | ||
authorPicture: '', | ||
description: 'This is our get vezgo transaction', | ||
name: path, | ||
method: 'GET', | ||
parameters: [], | ||
author: 'Gabriela Golmar', | ||
authorPicture: '', | ||
description: 'This is our get vezgo transaction', | ||
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
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