Skip to content

Commit

Permalink
Add reason code to refused supporting documents
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrine-ds committed Jan 6, 2025
1 parent 9406f9e commit fed49f3
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 29 deletions.
4 changes: 2 additions & 2 deletions clients/banking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"@swan-io/boxed": "3.1.1",
"@swan-io/chicane": "2.1.0",
"@swan-io/graphql-client": "0.4.2",
"@swan-io/lake": "11.1.12",
"@swan-io/lake": "11.2.3",
"@swan-io/request": "1.0.6",
"@swan-io/shared-business": "11.1.12",
"@swan-io/shared-business": "11.2.3",
"@swan-io/use-form": "3.1.0",
"core-js": "3.38.1",
"dayjs": "1.11.13",
Expand Down
6 changes: 5 additions & 1 deletion clients/banking/src/components/SupportingDocumentsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ export const SupportingDocumentsForm = forwardRef<SupportingDocumentsFormRef, Pr
file: {
id: document.id,
name: document.statusInfo.filename,
statusInfo: { status: "Refused", reason: document.statusInfo.reason },
statusInfo: {
status: "Refused",
reason: document.statusInfo.reason,
reasonCode: document.statusInfo.reasonCode,
},
},
}),
)
Expand Down
1 change: 1 addition & 0 deletions clients/banking/src/graphql/partner.gql
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,7 @@ query AccountActivationPage($accountMembershipId: ID!) {
... on SupportingDocumentRefusedStatusInfo {
filename
reason
reasonCode
}
... on SupportingDocumentUploadedStatusInfo {
filename
Expand Down
4 changes: 2 additions & 2 deletions clients/onboarding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"@swan-io/boxed": "3.1.1",
"@swan-io/chicane": "2.1.0",
"@swan-io/graphql-client": "0.4.2",
"@swan-io/lake": "11.1.12",
"@swan-io/lake": "11.2.3",
"@swan-io/request": "1.0.6",
"@swan-io/shared-business": "11.1.12",
"@swan-io/shared-business": "11.2.3",
"@swan-io/use-form": "3.1.0",
"core-js": "3.38.1",
"dayjs": "1.11.13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ export const SupportingDocumentCollectionFlow = ({ supportingDocumentCollectionI
file: {
id: document.id,
name: document.statusInfo.filename,
statusInfo: { status: "Refused", reason: document.statusInfo.reason },
statusInfo: {
status: "Refused",
reason: document.statusInfo.reason,
reasonCode: document.statusInfo.reasonCode,
},
},
})
: Option.None(),
Expand Down
1 change: 1 addition & 0 deletions clients/onboarding/src/graphql/unauthenticated.gql
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ fragment SupportingDocument on SupportingDocument {
filename
}
... on SupportingDocumentRefusedStatusInfo {
reasonCode
reason
filename
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ export const OnboardingCompanyDocuments = ({
file: {
id: document.id,
name: document.statusInfo.filename,
statusInfo: { status: "Refused", reason: document.statusInfo.reason },
statusInfo: {
status: "Refused",
reason: document.statusInfo.reason,
reasonCode: document.statusInfo.reasonCode,
},
},
}),
)
Expand Down
4 changes: 2 additions & 2 deletions clients/payment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@swan-io/boxed": "3.1.1",
"@swan-io/chicane": "2.1.0",
"@swan-io/graphql-client": "0.4.2",
"@swan-io/lake": "11.1.12",
"@swan-io/shared-business": "11.1.12",
"@swan-io/lake": "11.2.3",
"@swan-io/shared-business": "11.2.3",
"@swan-io/use-form": "3.1.0",
"core-js": "3.38.1",
"dayjs": "1.11.13",
Expand Down
40 changes: 20 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fed49f3

Please sign in to comment.