-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TPA-4677: Add in base url and override url for testing purposes.
- Loading branch information
JasonMRojas
authored and
JasonMRojas
committed
Jul 28, 2024
1 parent
a684de1
commit e44ad44
Showing
13 changed files
with
90 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import { sdkAxios } from '../services/axios'; | ||
|
||
export const getFixCredentials = async ({ email }) => { | ||
const fixCredentialsResponse = await sdkAxios.get( | ||
`https://app.tpastream.com/sdk-api/fix-credentials`, | ||
{ | ||
params: { | ||
email: email | ||
} | ||
const fixCredentialsResponse = await sdkAxios.get(`fix-credentials`, { | ||
params: { | ||
email: email | ||
} | ||
); | ||
}); | ||
return fixCredentialsResponse.data.data; | ||
}; |
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,17 @@ | ||
import { sdkAxios } from '../services/axios'; | ||
|
||
export const beginInterop = async ({ email }) => { | ||
const interopStateResponse = await sdkAxios.post( | ||
'https://app.tpastream.com/sdk-api/interop', | ||
{ | ||
user_email: email | ||
} | ||
); | ||
const interopStateResponse = await sdkAxios.post('interop', { | ||
user_email: email | ||
}); | ||
return interopStateResponse.data.data; | ||
}; | ||
|
||
export const getInteropState = async ({ email }) => { | ||
const interopStateResponse = await sdkAxios.get( | ||
'https://app.tpastream.com/sdk-api/interop', | ||
{ | ||
params: { | ||
email: email | ||
} | ||
const interopStateResponse = await sdkAxios.get('interop', { | ||
params: { | ||
email: email | ||
} | ||
); | ||
}); | ||
return interopStateResponse.data.data; | ||
}; |
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,14 +1,11 @@ | ||
import { sdkAxios } from '../services/axios'; | ||
|
||
export const getPayer = async ({ email, employerId, payerId, referer }) => { | ||
const payerResponse = await sdkAxios.get( | ||
`https://app.tpastream.com/sdk-api/payer/${employerId}/${payerId}`, | ||
{ | ||
params: { | ||
email: email, | ||
referer: referer | ||
} | ||
const payerResponse = await sdkAxios.get(`payer/${employerId}/${payerId}`, { | ||
params: { | ||
email: email, | ||
referer: referer | ||
} | ||
); | ||
}); | ||
return payerResponse.data.data; | ||
}; |
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,25 +1,19 @@ | ||
import { sdkAxios } from '../services/axios'; | ||
|
||
export const getTerms = async ({ email }) => { | ||
const termsResponse = await sdkAxios.get( | ||
`https://app.tpastream.com/sdk-api/terms_of_service`, | ||
{ | ||
params: { | ||
email: email | ||
} | ||
const termsResponse = await sdkAxios.get(`terms_of_service`, { | ||
params: { | ||
email: email | ||
} | ||
); | ||
}); | ||
return termsResponse.data.data.html_string; | ||
}; | ||
|
||
export const getTermsText = async ({ email }) => { | ||
const termsResponse = await sdkAxios.get( | ||
`https://app.tpastream.com/sdk-api/terms_of_service`, | ||
{ | ||
params: { | ||
email: email | ||
} | ||
const termsResponse = await sdkAxios.get(`terms_of_service`, { | ||
params: { | ||
email: email | ||
} | ||
); | ||
}); | ||
return termsResponse.data.data.text; | ||
}; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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