Skip to content

Commit

Permalink
Fix for Case rollen to Request customers mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Aug 23, 2024
1 parent c70b2e8 commit 1cfbd00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Installation/Mapping/rolToCustomer.mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"version": "0.0.1",
"passTrough": false,
"mapping": {
"customer": "{{ 'https://vrijbrp.nl/bsn/' ~ value.betrokkeneIdentificatie.inpbsn }}",
"role": "{% set translations = {'mede_initiator':'co_initiator','belanghebbende':'interested_party'} %}{{ value.roltype.omschrijvingGeneriek|replace(translations) }}",
"customer": "{{ 'https://vrijbrp.nl/bsn/' ~ betrokkeneIdentificatie.inpBsn }}",
"role": "{% set translations = {'mede_initiator':'co_initiator','belanghebbende':'interested_party'} %}{{ embedded.roltype.omschrijvingGeneriek|replace(translations) }}",
"authorizationIndication": "authorizer"
}
}
4 changes: 2 additions & 2 deletions src/Service/RequestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ public function createRequestHandler(array $data, array $configuration): array

// Handle documents (zaakinformatieobjecten) for this Case.
foreach ($requestBody['documents'] as $key => $document) {
// Todo: we could / should maybe create synchronizations for these documents as well?
$requestBody['documents'][$key] = $this->createDocument(source: $source, document: $document)['contentUrl'];
// Todo: we could create synchronizations for these documents as well
$requestBody['documents'][$key] = $this->createDocument(source: $source, document: $document)['@id'];
}

// Create synchronization & sync.
Expand Down

0 comments on commit 1cfbd00

Please sign in to comment.