Skip to content

Commit

Permalink
Add product interests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabitanalla committed Apr 27, 2022
1 parent cc7652e commit e4b40b5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/common/rest/get-product-interests/index.ts
@@ -0,0 +1,24 @@
import { MethodMetadata } from '..';
import { Headers } from '../../helpers/axios';
import { useRestCall } from '../../helpers/rest-calls';

const path = 'product-interest';

export function useMethod({ pathParameters, body }: any) {
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: 'pulls the full list of product interests',
name: path,
method: 'GET',
parameters: [],
};
2 changes: 2 additions & 0 deletions src/common/rest/index.ts
Expand Up @@ -21,6 +21,7 @@ import * as getPlaidAccessToken from './plaid/get-plaid-access-token';
import * as savePlaidAccounts from './plaid/save-plaid-accounts';
import * as savePlaidTransaction from './plaid/save-plaid-transactions';
import * as postUser from './post-user';
import * as getProductInterests from './get-product-interests'

export interface Parameter {
key: number;
Expand Down Expand Up @@ -63,4 +64,5 @@ export const masaRestClient = {
getCountries,
postUser,
postCountry,
getProductInterests,
};

0 comments on commit e4b40b5

Please sign in to comment.