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

Bank account verification plugin #2931

Merged
merged 18 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
5aea501
feat(plugins): add bank account verification plugin
tomer-shvadron Dec 31, 2024
bfa3a23
feat(bank-account-verification): enhance bank account verification lo…
tomer-shvadron Jan 1, 2025
503b300
fix(middleware): enable setting entities in middleware classes
tomer-shvadron Jan 1, 2025
fe9fbf6
chore(release): bump package versions and update changelogs
tomer-shvadron Jan 2, 2025
64082a7
Revert "chore(release): bump package versions and update changelogs"
tomer-shvadron Jan 3, 2025
3f12a01
chore(workflows): update workflow configurations and dependencies
tomer-shvadron Jan 3, 2025
ba7779a
chore(all): update package versions and dependencies
tomer-shvadron Jan 3, 2025
d1a2665
Merge branch 'dev' into bal-3173
alonp99 Jan 4, 2025
294baa2
Merge branch 'dev' into bal-3173
tomer-shvadron Jan 12, 2025
6650723
chore: bump versions and update dependencies across multiple packages
tomer-shvadron Jan 12, 2025
57a74a2
Merge branch 'dev' into bal-3173
tomer-shvadron Jan 19, 2025
3d7a616
refactor(plugins): rename ballerine-plugin to ballerine-api-plugin
tomer-shvadron Jan 20, 2025
f2af165
fix(plugin): correct transformers order in handleJmespathTransformers
tomer-shvadron Jan 20, 2025
8ef6db8
Merge branch 'dev' into bal-3173
tomer-shvadron Jan 21, 2025
dac1b7e
chore: bump versions across multiple packages and update dependencies
tomer-shvadron Jan 21, 2025
28bb4f2
chore(deps): update vite dependency to use @types/[email protected]
tomer-shvadron Jan 21, 2025
b22d99e
test(external-plugin): enhance plugin tests with additional properties
tomer-shvadron Jan 21, 2025
60f0be9
Merge branch 'dev' into bal-3173
tomer-shvadron Jan 21, 2025
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
13 changes: 13 additions & 0 deletions apps/backoffice-v2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @ballerine/backoffice-v2

## 0.7.94

### Patch Changes

- version bump
- Updated dependencies
- @ballerine/[email protected]
- @ballerine/[email protected]
- @ballerine/[email protected]
- @ballerine/[email protected]
- @ballerine/[email protected]
- @ballerine/[email protected]

## 0.7.93

### Patch Changes
Expand Down
18 changes: 9 additions & 9 deletions apps/backoffice-v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ballerine/backoffice-v2",
"version": "0.7.93",
"version": "0.7.94",
"description": "Ballerine - Backoffice",
"homepage": "https://github.com/ballerine-io/ballerine",
"type": "module",
Expand Down Expand Up @@ -52,12 +52,12 @@
"preview": "vite preview"
},
"dependencies": {
"@ballerine/blocks": "0.2.32",
"@ballerine/common": "0.9.66",
"@ballerine/workflow-browser-sdk": "0.6.85",
"@ballerine/workflow-node-sdk": "0.6.85",
"@ballerine/react-pdf-toolkit": "^1.2.62",
"@ballerine/ui": "^0.5.62",
"@ballerine/blocks": "0.2.33",
"@ballerine/common": "0.9.67",
"@ballerine/workflow-browser-sdk": "0.6.86",
"@ballerine/workflow-node-sdk": "0.6.86",
"@ballerine/react-pdf-toolkit": "^1.2.66",
"@ballerine/ui": "^0.5.66",
"@botpress/webchat": "^2.1.10",
"@botpress/webchat-generator": "^0.2.9",
"@fontsource/inter": "^4.5.15",
Expand Down Expand Up @@ -152,8 +152,8 @@
"zod": "^3.23.4"
},
"devDependencies": {
"@ballerine/config": "^1.1.30",
"@ballerine/eslint-config-react": "^2.0.30",
"@ballerine/config": "^1.1.31",
"@ballerine/eslint-config-react": "^2.0.31",
"@cspell/cspell-types": "^6.31.1",
"@faker-js/faker": "^7.6.0",
"@playwright/test": "^1.32.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import { createBlocksTyped } from '@/lib/blocks/create-blocks-typed/create-block
import { WarningFilledSvg } from '@ballerine/ui';

export const useKybRegistryInfoBlock = ({ pluginsOutput, workflow }) => {
const isBankAccountVerification = useMemo(
() => !!pluginsOutput?.bankAccountVerification,
[pluginsOutput?.bankAccountVerification],
);

const getCell = useCallback(() => {
if (Object.keys(pluginsOutput?.businessInformation?.data?.[0] ?? {}).length) {
return {
Expand All @@ -28,6 +33,39 @@ export const useKybRegistryInfoBlock = ({ pluginsOutput, workflow }) => {
>;
}

if (Object.keys(pluginsOutput?.bankAccountVerification?.clientResponsePayload ?? {}).length) {
const data = {
...pluginsOutput?.bankAccountVerification?.responseHeader.overallResponse,
decisionElements:
pluginsOutput?.bankAccountVerification?.clientResponsePayload.decisionElements,
orchestrationDecisions:
pluginsOutput?.bankAccountVerification?.clientResponsePayload.orchestrationDecisions,
};

return {
id: 'nested-details',
type: 'details',
hideSeparator: true,
value: {
data: Object.entries(data)
?.filter(([property]) => {
console.log(property);

return !['tenantID', 'clientReferenceId'].includes(property);
})
.map(([title, value]) => ({
title,
value,
})),
},
} satisfies Extract<
Parameters<ReturnType<typeof createBlocksTyped>['addCell']>[0],
{
type: 'details';
}
>;
}

const message =
pluginsOutput?.businessInformation?.message ??
pluginsOutput?.businessInformation?.data?.message;
Expand Down Expand Up @@ -94,12 +132,12 @@ export const useKybRegistryInfoBlock = ({ pluginsOutput, workflow }) => {
.addCell({
id: 'nested-details-heading',
type: 'heading',
value: 'Registry Information',
value: isBankAccountVerification ? 'Bank Account Verification' : 'Registry Information',
})
.addCell({
id: 'nested-details-subheading',
type: 'subheading',
value: 'Registry-Provided Data',
value: `${isBankAccountVerification ? 'Experian' : 'Registry'}-Provided Data`,
props: {
className: 'mb-4',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ export const useDefaultBlocksLogic = () => {
...entityDataAdditionalInfo
} = workflow?.context?.entity?.data?.additionalInfo ?? {};
const { website: websiteBasicRequirement, processingDetails, ...storeInfo } = store ?? {};
const kycChildWorkflows = workflow?.childWorkflows?.filter(
childWorkflow => childWorkflow?.context?.entity?.type === 'individual',
);

const kybChildWorkflows = workflow?.childWorkflows?.filter(
childWorkflow => childWorkflow?.context?.entity?.type === 'business',
);
Expand Down
11 changes: 11 additions & 0 deletions apps/kyb-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# kyb-app

## 0.3.113

### Patch Changes

- version bump
- Updated dependencies
- @ballerine/[email protected]
- @ballerine/[email protected]
- @ballerine/[email protected]
- @ballerine/[email protected]

## 0.3.112

### Patch Changes
Expand Down
14 changes: 7 additions & 7 deletions apps/kyb-app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ballerine/kyb-app",
"private": true,
"version": "0.3.112",
"version": "0.3.113",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -16,10 +16,10 @@
"test:dev": "vitest"
},
"dependencies": {
"@ballerine/blocks": "0.2.32",
"@ballerine/common": "^0.9.66",
"@ballerine/workflow-browser-sdk": "0.6.85",
"@ballerine/ui": "0.5.65",
"@ballerine/blocks": "0.2.33",
"@ballerine/common": "^0.9.67",
"@ballerine/workflow-browser-sdk": "0.6.86",
"@ballerine/ui": "0.5.66",
"@lukemorales/query-key-factory": "^1.0.3",
"@radix-ui/react-icons": "^1.3.0",
"@rjsf/core": "^5.9.0",
Expand Down Expand Up @@ -65,8 +65,8 @@
"zod": "^3.23.4"
},
"devDependencies": {
"@ballerine/config": "^1.1.30",
"@ballerine/eslint-config-react": "^2.0.30",
"@ballerine/config": "^1.1.31",
"@ballerine/eslint-config-react": "^2.0.31",
"@jest/globals": "^29.7.0",
"@sentry/vite-plugin": "^2.9.0",
"@testing-library/jest-dom": "^6.1.4",
Expand Down
9 changes: 9 additions & 0 deletions apps/workflows-dashboard/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @ballerine/workflows-dashboard

## 0.2.31

### Patch Changes

- version bump
- Updated dependencies
- @ballerine/[email protected]
- @ballerine/[email protected]

## 0.2.30

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions apps/workflows-dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ballerine/workflows-dashboard",
"private": false,
"version": "0.2.30",
"version": "0.2.31",
"type": "module",
"scripts": {
"spellcheck": "cspell \"*\"",
Expand All @@ -16,8 +16,8 @@
"test": "NODE_ENV=test jest"
},
"dependencies": {
"@ballerine/common": "^0.9.66",
"@ballerine/ui": "^0.5.62",
"@ballerine/common": "^0.9.67",
"@ballerine/ui": "^0.5.66",
"@lukemorales/query-key-factory": "^1.0.3",
"@radix-ui/react-avatar": "^1.0.3",
"@radix-ui/react-dialog": "1.0.4",
Expand Down Expand Up @@ -64,8 +64,8 @@
"zod": "^3.22.3"
},
"devDependencies": {
"@ballerine/config": "^1.1.30",
"@ballerine/eslint-config-react": "^2.0.30",
"@ballerine/config": "^1.1.31",
"@ballerine/eslint-config-react": "^2.0.31",
"@cspell/cspell-types": "^6.31.1",
"@types/axios": "^0.14.0",
"@types/classnames": "^2.3.1",
Expand Down
9 changes: 9 additions & 0 deletions examples/headless-example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @ballerine/headless-example

## 0.3.85

### Patch Changes

- version bump
- Updated dependencies
- @ballerine/[email protected]
- @ballerine/[email protected]

## 0.3.84

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions examples/headless-example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ballerine/headless-example",
"private": true,
"version": "0.3.84",
"version": "0.3.85",
"type": "module",
"scripts": {
"spellcheck": "cspell \"*\"",
Expand Down Expand Up @@ -34,8 +34,8 @@
"vite": "^4.5.3"
},
"dependencies": {
"@ballerine/common": "0.9.66",
"@ballerine/workflow-browser-sdk": "0.6.85",
"@ballerine/common": "0.9.67",
"@ballerine/workflow-browser-sdk": "0.6.86",
"@felte/reporter-svelte": "^1.1.5",
"@felte/validator-zod": "^1.0.13",
"@fontsource/inter": "^4.5.15",
Expand Down
8 changes: 8 additions & 0 deletions examples/report-generation-example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @ballerine/report-generation-example

## 0.2.30

### Patch Changes

- version bump
- Updated dependencies
- @ballerine/[email protected]

## 0.2.29

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions examples/report-generation-example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ballerine/report-generation-example",
"private": false,
"version": "0.2.29",
"version": "0.2.30",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -10,7 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@ballerine/react-pdf-toolkit": "^1.2.62",
"@ballerine/react-pdf-toolkit": "^1.2.66",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/blocks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @ballerine/blocks

## 0.2.33

### Patch Changes

- version bump
- Updated dependencies
- @ballerine/[email protected]

## 0.2.32

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": false,
"name": "@ballerine/blocks",
"author": "Ballerine <[email protected]>",
"version": "0.2.32",
"version": "0.2.33",
"description": "blocks",
"module": "./dist/esm/index.js",
"main": "./dist/cjs/index.js",
Expand Down Expand Up @@ -42,8 +42,8 @@
"@babel/preset-env": "7.16.11",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "7.16.7",
"@ballerine/config": "^1.1.30",
"@ballerine/eslint-config": "^1.1.30",
"@ballerine/config": "^1.1.31",
"@ballerine/eslint-config": "^1.1.31",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.0.0",
Expand Down Expand Up @@ -91,6 +91,6 @@
"vitest": "^0.33.0"
},
"dependencies": {
"@ballerine/common": "^0.9.66"
"@ballerine/common": "^0.9.67"
}
}
6 changes: 6 additions & 0 deletions packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @ballerine/common

## 0.9.67

### Patch Changes

- version bump

## 0.9.66

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": false,
"name": "@ballerine/common",
"author": "Ballerine <[email protected]>",
"version": "0.9.66",
"version": "0.9.67",
"description": "common",
"module": "./dist/esm/index.js",
"main": "./dist/cjs/index.js",
Expand Down Expand Up @@ -38,8 +38,8 @@
"@babel/core": "7.17.9",
"@babel/preset-env": "7.16.11",
"@babel/preset-typescript": "7.16.7",
"@ballerine/config": "^1.1.30",
"@ballerine/eslint-config": "^1.1.30",
"@ballerine/config": "^1.1.31",
"@ballerine/eslint-config": "^1.1.31",
"@cspell/cspell-types": "^6.31.1",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-commonjs": "^24.0.1",
Expand Down
6 changes: 6 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @ballerine/config

## 1.1.31

### Patch Changes

- version bump

## 1.1.30

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": false,
"name": "@ballerine/config",
"version": "1.1.30",
"version": "1.1.31",
"description": "",
"main": "index.js",
"scripts": {},
Expand Down
Loading
Loading