Skip to content

Commit

Permalink
Small fixes for ClipsPay workflow (#1577)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomer-shvadron authored Nov 7, 2023
1 parent e177c60 commit 7540013
Showing 1 changed file with 13 additions and 5 deletions.
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

0 comments on commit 7540013

Please sign in to comment.