Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes for ClipsPay workflow #1577

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const dynamicUiWorkflowDefinition = {
{
name: 'cn_kyb',
pluginKind: 'kyb',
url: `${env.UNIFIED_API_URL}/companies-v2`,
url: `{secret.UNIFIED_API_URL}/companies-v2`,
method: 'GET',
stateNames: ['run_cn_kyb'],
successAction: 'CN_KYB_DONE',
Expand Down Expand Up @@ -224,7 +224,7 @@ export const dynamicUiWorkflowDefinition = {
{
name: 'hk_kyb',
pluginKind: 'api',
url: `${env.UNIFIED_API_URL}/companies-v2/HK/{entity.data.registrationNumber}`,
url: `{secret.UNIFIED_API_URL}/companies-v2/HK/{entity.data.registrationNumber}`,
method: 'GET',
stateNames: ['run_hk_kyb'],
successAction: 'HK_KYB_HOOK_RESPONDED',
Expand All @@ -242,11 +242,19 @@ export const dynamicUiWorkflowDefinition = {
},
],
},
response: {
transform: [
{
transformer: 'jmespath',
mapping: '{request: @}', // jmespath
},
],
},
},
{
name: 'company_sanctions',
pluginKind: 'api',
url: `${env.UNIFIED_API_URL}/companies/{entity.data.country}/{entity.data.companyName}/sanctions`,
url: `{secret.UNIFIED_API_URL}/companies/{entity.data.country}/{entity.data.companyName}/sanctions`,
method: 'GET',
stateNames: ['run_vendor_company_sanctions'],
successAction: 'COMPANY_SANCTIONS_DONE',
Expand Down Expand Up @@ -274,7 +282,7 @@ export const dynamicUiWorkflowDefinition = {
{
name: 'ubo',
pluginKind: 'api',
url: `${env.UNIFIED_API_URL}/companies/{entity.data.country}/{entity.data.registrationNumber}/ubo`,
url: `{secret.UNIFIED_API_URL}/companies/{entity.data.country}/{entity.data.registrationNumber}/ubo`,
method: 'GET',
stateNames: ['run_vendor_ubos'],
successAction: 'UBO_HOOK_RESPONDED',
Expand All @@ -295,7 +303,7 @@ export const dynamicUiWorkflowDefinition = {
transform: [
{
transformer: 'jmespath',
mapping: '@', // jmespath
mapping: '{request: @}', // jmespath
},
],
},
Expand Down