diff --git a/src/openforms/contrib/zgw/service.py b/src/openforms/contrib/zgw/service.py index f40ccef24c..5263d4c9fe 100644 --- a/src/openforms/contrib/zgw/service.py +++ b/src/openforms/contrib/zgw/service.py @@ -1,10 +1,16 @@ +import json from io import BytesIO -from typing import Literal, NotRequired, TypedDict +from typing import Literal +from django.core.serializers.json import DjangoJSONEncoder + +from openforms.formio.datastructures import FormioData from openforms.submissions.models import SubmissionFileAttachment, SubmissionReport +from openforms.typing import JSONObject from .clients.documenten import DocumentenClient from .resolvers import DocumentTypeResolver +from .typing import DocumentOptions __all__ = [ "DocumentOptions", @@ -17,15 +23,6 @@ type SupportedLanguage = Literal["nl", "en"] -class DocumentOptions(TypedDict): - informatieobjecttype: str - organisatie_rsin: str - auteur: NotRequired[str] - doc_vertrouwelijkheidaanduiding: NotRequired[str] - ontvangstdatum: NotRequired[str] - titel: NotRequired[str] - - def create_report_document( client: DocumentenClient, name: str, @@ -104,3 +101,27 @@ def create_attachment_document( "doc_vertrouwelijkheidaanduiding", "" ), ) + + +def create_json_document( + client: DocumentenClient, + name: str, + document_data: dict[str, FormioData | JSONObject], + options: DocumentOptions, + language: SupportedLanguage, +) -> dict: + content = BytesIO(json.dumps(document_data, cls=DjangoJSONEncoder).encode("utf-8")) + return client.create_document( + informatieobjecttype=options["informatieobjecttype"], + bronorganisatie=options["organisatie_rsin"], + title=name, + author=options.get("auteur") or "Aanvrager", + language=language, + format="application/json", + content=content, + status="definitief", + filename=f"openforms-{name}.json", + description="Ingezonden formulier", + received_date=options.get("ontvangstdatum"), + vertrouwelijkheidaanduiding=options.get("doc_vertrouwelijkheidaanduiding", ""), + ) diff --git a/src/openforms/contrib/zgw/typing.py b/src/openforms/contrib/zgw/typing.py new file mode 100644 index 0000000000..8e75549c88 --- /dev/null +++ b/src/openforms/contrib/zgw/typing.py @@ -0,0 +1,10 @@ +from typing import NotRequired, TypedDict + + +class DocumentOptions(TypedDict): + informatieobjecttype: str + organisatie_rsin: str + auteur: NotRequired[str] + doc_vertrouwelijkheidaanduiding: NotRequired[str] + ontvangstdatum: NotRequired[str] + titel: NotRequired[str] diff --git a/src/openforms/formio/components/custom.py b/src/openforms/formio/components/custom.py index 8df4a8e643..998d2ff538 100644 --- a/src/openforms/formio/components/custom.py +++ b/src/openforms/formio/components/custom.py @@ -796,6 +796,7 @@ def validate_list(self, partners): @register("partners") class Partners(BasePlugin[Component]): formatter = DefaultFormatter + internal_properties = {"dateOfBirthPrecision", "__addedManually"} def build_serializer_field(self, component: Component) -> PartnerListField: return PartnerListField(component=component) @@ -953,6 +954,12 @@ def selection_state_untampered(self, children) -> bool: @register("children") class Children(BasePlugin[ChildrenComponent]): formatter = DefaultFormatter + internal_properties = { + "dateOfBirthPrecision", + "__id", + "selected", + "__addedManually", + } def build_serializer_field(self, component: ChildrenComponent) -> ChildListField: return ChildListField(component=component) diff --git a/src/openforms/formio/registry.py b/src/openforms/formio/registry.py index 9d950d5743..53772a2de6 100644 --- a/src/openforms/formio/registry.py +++ b/src/openforms/formio/registry.py @@ -97,6 +97,8 @@ class BasePlugin(Generic[ComponentT], AbstractBasePlugin, abc.ABC): # noqa: UP0 Flag to indicate whether data can be submitted for this component. """ + internal_properties: set[str] | None = None + @property def is_enabled(self) -> Literal[True]: return True diff --git a/src/openforms/formio/service.py b/src/openforms/formio/service.py index 12bb349d54..ecea724b46 100644 --- a/src/openforms/formio/service.py +++ b/src/openforms/formio/service.py @@ -25,7 +25,7 @@ rewrite_formio_components, rewrite_formio_components_for_request, ) -from .registry import ComponentRegistry, register +from .registry import BasePlugin, ComponentRegistry, register from .serializers import build_serializer as _build_serializer from .typing import Component from .utils import ( @@ -136,6 +136,13 @@ def build_serializer( return _build_serializer(components, register=_register or register, **kwargs) +def as_component_plugin( + component: Component, _register: ComponentRegistry | None = None +) -> BasePlugin: + registry = _register or register + return registry[component["type"]] + + def as_json_schema( component: Component, _register: ComponentRegistry | None = None ) -> JSONObject | list[JSONObject] | None: @@ -157,9 +164,7 @@ def as_json_schema( :returns: None for content and softRequiredErrors components, list of JSON objects for columns and fieldsets, and a JSON object otherwise. """ - registry = _register or register - - component_plugin = registry[component["type"]] + component_plugin = as_component_plugin(component, _register=_register) schema = component_plugin.as_json_schema(component) if isinstance(schema, dict) and (description := component.get("description")): schema["description"] = description diff --git a/src/openforms/js/compiled-lang/en.json b/src/openforms/js/compiled-lang/en.json index d5558307a5..0aece26fa5 100644 --- a/src/openforms/js/compiled-lang/en.json +++ b/src/openforms/js/compiled-lang/en.json @@ -359,6 +359,12 @@ "value": "Service fetch configuration" } ], + "27Ibq3": [ + { + "type": 0, + "value": "Which summary documents to include during registration." + } + ], "294MCM": [ { "type": 0, @@ -1233,6 +1239,12 @@ "value": "Please select the logic type:" } ], + "9EaH83": [ + { + "type": 0, + "value": "Summary documents" + } + ], "9LdZVP": [ { "type": 0, diff --git a/src/openforms/js/compiled-lang/nl.json b/src/openforms/js/compiled-lang/nl.json index 659ae088dd..0520c4a0db 100644 --- a/src/openforms/js/compiled-lang/nl.json +++ b/src/openforms/js/compiled-lang/nl.json @@ -359,6 +359,12 @@ "value": "Servicebevraging instellen" } ], + "27Ibq3": [ + { + "type": 0, + "value": "Which summary documents to include during registration." + } + ], "294MCM": [ { "type": 0, @@ -1237,6 +1243,12 @@ "value": "Kies het soort logica:" } ], + "9EaH83": [ + { + "type": 0, + "value": "Summary documents" + } + ], "9LdZVP": [ { "type": 0, diff --git a/src/openforms/js/components/admin/form_design/RegistrationFields.stories.js b/src/openforms/js/components/admin/form_design/RegistrationFields.stories.js index 0027df2af5..6ca3ed855c 100644 --- a/src/openforms/js/components/admin/form_design/RegistrationFields.stories.js +++ b/src/openforms/js/components/admin/form_design/RegistrationFields.stories.js @@ -55,6 +55,10 @@ export default { enum: ['objects-group'], enumNames: ['Objects API Group'], }, + summaryDocuments: { + enum: ['pdf', 'json'], + enumNames: ['PDF document', 'JSON document'], + }, }, }, }, @@ -621,6 +625,7 @@ export const ConfiguredBackends = { objecttypeVersion: '', contentJson: '', propertyMappings: [], + summaryDocuments: [], }, }, { diff --git a/src/openforms/js/components/admin/form_design/registrations/zgw/OptionalOptionsFieldset.js b/src/openforms/js/components/admin/form_design/registrations/zgw/OptionalOptionsFieldset.js index 0274d4bb4d..667b8b6cd6 100644 --- a/src/openforms/js/components/admin/form_design/registrations/zgw/OptionalOptionsFieldset.js +++ b/src/openforms/js/components/admin/form_design/registrations/zgw/OptionalOptionsFieldset.js @@ -11,9 +11,14 @@ import { OrganisationRSIN, ProductSelect, RoltypeFields, + SummaryDocuments, } from './fields'; -const OptionalOptionsFieldset = ({confidentialityLevelChoices, catalogueUrl}) => { +const OptionalOptionsFieldset = ({ + confidentialityLevelChoices, + catalogueUrl, + summaryDocumentChoices, +}) => { return (
'childrenRoltype', 'childrenDescription', 'productUrl', + 'summaryDocuments', ]} >
@@ -71,6 +77,7 @@ const OptionalOptionsFieldset = ({confidentialityLevelChoices, catalogueUrl}) => } > +
); @@ -80,6 +87,9 @@ OptionalOptionsFieldset.propTypes = { confidentialityLevelChoices: PropTypes.arrayOf( PropTypes.arrayOf(PropTypes.string) // value & label are both string ).isRequired, + summaryDocumentChoices: PropTypes.arrayOf( + PropTypes.arrayOf(PropTypes.string) // value & label are both string + ).isRequired, catalogueUrl: PropTypes.string, }; diff --git a/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsForm.js b/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsForm.js index a9835d6cd1..d6ba042828 100644 --- a/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsForm.js +++ b/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsForm.js @@ -11,7 +11,8 @@ import ZGWFormFields from './ZGWOptionsFormFields'; const ZGWOptionsForm = ({name, label, schema, formData, onChange}) => { const validationErrors = useContext(ValidationErrorContext); - const {zgwApiGroup, zaakVertrouwelijkheidaanduiding, objectsApiGroup} = schema.properties; + const {zgwApiGroup, zaakVertrouwelijkheidaanduiding, objectsApiGroup, summaryDocuments} = + schema.properties; const apiGroupChoices = getChoicesFromSchema(zgwApiGroup.enum, zgwApiGroup.enumNames); const objectsApiGroupChoices = getChoicesFromSchema( objectsApiGroup.enum, @@ -21,9 +22,14 @@ const ZGWOptionsForm = ({name, label, schema, formData, onChange}) => { zaakVertrouwelijkheidaanduiding.enum, zaakVertrouwelijkheidaanduiding.enumNames ); + const summaryDocumentChoices = getChoicesFromSchema( + summaryDocuments.enum, + summaryDocuments.enumNames + ); const numErrors = filterErrors(name, validationErrors).length; const defaultGroup = apiGroupChoices.length === 1 ? apiGroupChoices[0][0] : undefined; + const defaultSummaryDocument = summaryDocumentChoices.find(([value]) => value === 'pdf'); return ( { ...formData, // Ensure that if there's only one option, it is automatically selected. zgwApiGroup: formData.zgwApiGroup ?? defaultGroup, + summaryDocuments: formData.summaryDocuments ?? [defaultSummaryDocument[0]], }} onSubmit={values => onChange({formData: values})} > @@ -68,6 +75,7 @@ const ZGWOptionsForm = ({name, label, schema, formData, onChange}) => { apiGroupChoices={apiGroupChoices} objectsApiGroupChoices={objectsApiGroupChoices} confidentialityLevelChoices={confidentialityLevelChoices} + summaryDocumentChoices={summaryDocumentChoices} /> ); @@ -90,6 +98,10 @@ ZGWOptionsForm.propTypes = { enum: PropTypes.arrayOf(PropTypes.string).isRequired, enumNames: PropTypes.arrayOf(PropTypes.string).isRequired, }).isRequired, + summaryDocuments: PropTypes.shape({ + enum: PropTypes.arrayOf(PropTypes.string).isRequired, + enumNames: PropTypes.arrayOf(PropTypes.string).isRequired, + }).isRequired, }).isRequired, }).isRequired, formData: PropTypes.shape({ @@ -116,6 +128,7 @@ ZGWOptionsForm.propTypes = { objecttype: PropTypes.string, objecttypeVersion: PropTypes.string, contentJson: PropTypes.string, + summaryDocuments: PropTypes.arrayOf(PropTypes.string), }), onChange: PropTypes.func.isRequired, }; diff --git a/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsFormFields.js b/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsFormFields.js index f0b0cfa4ec..8071bd4d61 100644 --- a/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsFormFields.js +++ b/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsFormFields.js @@ -23,6 +23,7 @@ const ZGWFormFields = ({ apiGroupChoices, objectsApiGroupChoices, confidentialityLevelChoices, + summaryDocumentChoices, }) => { const { values: {propertyMappings = []}, @@ -71,6 +72,7 @@ const ZGWFormFields = ({ @@ -105,6 +107,9 @@ ZGWFormFields.propTypes = { confidentialityLevelChoices: PropTypes.arrayOf( PropTypes.arrayOf(PropTypes.string) // value & label are both string ).isRequired, + summaryDocumentChoices: PropTypes.arrayOf( + PropTypes.arrayOf(PropTypes.string) // value & label are both string + ).isRequired, }; export default ZGWFormFields; diff --git a/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsFormFields.stories.js b/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsFormFields.stories.js index 251612ccff..da04681755 100644 --- a/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsFormFields.stories.js +++ b/src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsFormFields.stories.js @@ -21,7 +21,13 @@ import { const NAME = 'form.registrationBackends.0.options'; -const render = ({apiGroups, objectsApiGroupChoices, confidentialityLevelChoices, formData}) => ( +const render = ({ + apiGroups, + objectsApiGroupChoices, + confidentialityLevelChoices, + summaryDocumentChoices, + formData, +}) => ( @@ -80,6 +87,10 @@ export default { ['openbaar', 'Openbaar'], ['geheim', 'Geheim'], ], + summaryDocumentChoices: [ + ['pdf', 'PDF document'], + ['json', 'JSON document'], + ], formData: {}, availableComponents: { textField1: { @@ -177,6 +188,7 @@ export const SelectCaseTypeAndDocumentType = { zgwApiGroup: 1, zaaktype: '', propertyMappings: [], + summaryDocuments: [], }, }, diff --git a/src/openforms/js/components/admin/form_design/registrations/zgw/fields/SummaryDocuments.js b/src/openforms/js/components/admin/form_design/registrations/zgw/fields/SummaryDocuments.js new file mode 100644 index 0000000000..be9aed1c6f --- /dev/null +++ b/src/openforms/js/components/admin/form_design/registrations/zgw/fields/SummaryDocuments.js @@ -0,0 +1,53 @@ +import {useField} from 'formik'; +import PropTypes from 'prop-types'; +import {FormattedMessage} from 'react-intl'; + +import Field from 'components/admin/forms/Field'; +import FormRow from 'components/admin/forms/FormRow'; +import {Checkbox} from 'components/admin/forms/Inputs'; + +const SummaryDocuments = ({summaryDocumentChoices}) => { + const [fieldProps] = useField('summaryDocuments'); + const {name: fieldName, value: initialValue, onChange} = fieldProps; + + return ( + + + } + helpText={ + + } + > +
    + {summaryDocumentChoices.map(([value, label], index) => ( +
  • + +
  • + ))} +
+
+
+ ); +}; + +SummaryDocuments.propTypes = { + summaryDocumentChoices: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string)).isRequired, +}; + +export default SummaryDocuments; diff --git a/src/openforms/js/components/admin/form_design/registrations/zgw/fields/index.js b/src/openforms/js/components/admin/form_design/registrations/zgw/fields/index.js index 081dc073b6..9f6ce639d3 100644 --- a/src/openforms/js/components/admin/form_design/registrations/zgw/fields/index.js +++ b/src/openforms/js/components/admin/form_design/registrations/zgw/fields/index.js @@ -13,3 +13,4 @@ export {default as ObjectTypeVersion} from './ObjectTypeVersion'; export {default as ProductSelect} from './ProductSelect'; export {default as CaseDescription} from './CaseDescription'; export {default as CaseExplanation} from './CaseExplanation'; +export {default as SummaryDocuments} from './SummaryDocuments'; diff --git a/src/openforms/js/lang/en.json b/src/openforms/js/lang/en.json index 0f44c8fb38..ab66cbc008 100644 --- a/src/openforms/js/lang/en.json +++ b/src/openforms/js/lang/en.json @@ -149,6 +149,11 @@ "description": "Service fetch configuration selection modal title", "originalDefault": "Service fetch configuration" }, + "27Ibq3": { + "defaultMessage": "Which summary documents to include during registration.", + "description": "ZGW APIs registration options 'summaryDocuments' help text", + "originalDefault": "Which summary documents to include during registration." + }, "294MCM": { "defaultMessage": "Is deleted", "description": "Form deleted field label", @@ -519,6 +524,11 @@ "description": "Logic type selection label", "originalDefault": "Please select the logic type:" }, + "9EaH83": { + "defaultMessage": "Summary documents", + "description": "ZGW APIs registration options 'summaryDocuments' label", + "originalDefault": "Summary documents" + }, "9LdZVP": { "defaultMessage": "Attribute", "description": "Variable prefill attribute label", diff --git a/src/openforms/js/lang/nl.json b/src/openforms/js/lang/nl.json index 28dd9076f2..50440071e8 100644 --- a/src/openforms/js/lang/nl.json +++ b/src/openforms/js/lang/nl.json @@ -150,6 +150,11 @@ "description": "Service fetch configuration selection modal title", "originalDefault": "Service fetch configuration" }, + "27Ibq3": { + "defaultMessage": "Which summary documents to include during registration.", + "description": "ZGW APIs registration options 'summaryDocuments' help text", + "originalDefault": "Which summary documents to include during registration." + }, "294MCM": { "defaultMessage": "Verwijderd", "description": "Form deleted field label", @@ -526,6 +531,11 @@ "description": "Logic type selection label", "originalDefault": "Please select the logic type:" }, + "9EaH83": { + "defaultMessage": "Summary documents", + "description": "ZGW APIs registration options 'summaryDocuments' label", + "originalDefault": "Summary documents" + }, "9LdZVP": { "defaultMessage": "Attribuut", "description": "Variable prefill attribute label", diff --git a/src/openforms/registrations/contrib/generic_json/plugin.py b/src/openforms/registrations/contrib/generic_json/plugin.py index 04203f5eb5..7be25d5803 100644 --- a/src/openforms/registrations/contrib/generic_json/plugin.py +++ b/src/openforms/registrations/contrib/generic_json/plugin.py @@ -11,7 +11,11 @@ from zgw_consumers.client import build_client -from openforms.formio.service import FormioConfigurationWrapper, FormioData +from openforms.formio.service import ( + FormioConfigurationWrapper, + FormioData, + as_component_plugin, +) from openforms.formio.typing import ( Component, EditGridComponent, @@ -397,11 +401,10 @@ def process_component( for partner in partners: assert isinstance(partner, dict) - - # these are not relevant (at least for now) - partner.pop("dateOfBirthPrecision", None) - partner.pop("__addedManually", None) - + component_plugin = as_component_plugin(component) + assert component_plugin.internal_properties is not None + for internal_property in component_plugin.internal_properties: + partner.pop(internal_property, None) case {"type": "children"}: children = values[key] assert isinstance(children, list) @@ -412,11 +415,10 @@ def process_component( if child.get("selected") not in (None, True): continue - # not relevant properties - child.pop("dateOfBirthPrecision", None) - child.pop("__id", None) - child.pop("__addedManually", None) - child.pop("selected", None) + component_plugin = as_component_plugin(component) + assert component_plugin.internal_properties is not None + for internal_property in component_plugin.internal_properties: + child.pop(internal_property, None) updated.append(child) diff --git a/src/openforms/registrations/contrib/objects_api/handlers/v2.py b/src/openforms/registrations/contrib/objects_api/handlers/v2.py index 128cabb775..8f897bbca2 100644 --- a/src/openforms/registrations/contrib/objects_api/handlers/v2.py +++ b/src/openforms/registrations/contrib/objects_api/handlers/v2.py @@ -10,7 +10,7 @@ from glom import Assign, Path, glom from openforms.api.utils import underscore_to_camel -from openforms.formio.service import FormioData +from openforms.formio.service import FormioData, as_component_plugin from openforms.formio.typing import Component, EditGridComponent from openforms.formio.typing.vanilla import FileComponent from openforms.submissions.models import SubmissionValueVariable @@ -164,28 +164,23 @@ def process_mapped_variable( for partner in value: assert isinstance(partner, dict) - # these are not relevant for the object (at least for now) - partner.pop("dateOfBirthPrecision", None) - partner.pop("__addedManually", None) + component_plugin = as_component_plugin(component) + assert component_plugin.internal_properties is not None + for internal_property in component_plugin.internal_properties: + partner.pop(internal_property, None) case {"type": "children"}: assert isinstance(value, list) - # these are not relevant for the object - need_removal = ( - "dateOfBirthPrecision", - "__id", - "selected", - "__addedManually", - ) - updated = [] for child in value: assert isinstance(child, dict) if child.get("selected") not in (None, True): continue - for attribute in need_removal: - child.pop(attribute, None) + component_plugin = as_component_plugin(component) + assert component_plugin.internal_properties is not None + for internal_property in component_plugin.internal_properties: + child.pop(internal_property, None) updated.append(child) diff --git a/src/openforms/registrations/contrib/zgw_apis/constants.py b/src/openforms/registrations/contrib/zgw_apis/constants.py new file mode 100644 index 0000000000..72572a2dd0 --- /dev/null +++ b/src/openforms/registrations/contrib/zgw_apis/constants.py @@ -0,0 +1,7 @@ +from django.db import models +from django.utils.translation import gettext_lazy as _ + + +class SummaryDocumentChoices(models.TextChoices): + json = "json", _("JSON document") + pdf = "pdf", _("PDF document") diff --git a/src/openforms/registrations/contrib/zgw_apis/options.py b/src/openforms/registrations/contrib/zgw_apis/options.py index 6593364c43..5740709c30 100644 --- a/src/openforms/registrations/contrib/zgw_apis/options.py +++ b/src/openforms/registrations/contrib/zgw_apis/options.py @@ -28,6 +28,7 @@ from openforms.utils.validators import validate_rsin from .client import get_catalogi_client +from .constants import SummaryDocumentChoices from .models import ZGWApiGroupConfig from .typing import RegistrationOptions @@ -47,6 +48,13 @@ class MappedVariablePropertySerializer(serializers.Serializer): ) +class JSONMultipleChoiceField(serializers.MultipleChoiceField): + def to_representation(self, value) -> list[str]: # pyright: ignore[reportIncompatibleMethodOverride] + # Return a list as MultipleChoiceField fields return a set here by default + # which cannot be serialized to JSON with python's stdlib JSON encoder. + return list(super().to_representation(value)) + + class ZaakOptionsSerializer(JsonSchemaSerializerMixin, serializers.Serializer): zgw_api_group = PrimaryKeyRelatedAsChoicesField( queryset=ZGWApiGroupConfig.objects.exclude( @@ -102,6 +110,13 @@ class ZaakOptionsSerializer(JsonSchemaSerializerMixin, serializers.Serializer): default="", ) + summary_documents = JSONMultipleChoiceField( + choices=SummaryDocumentChoices.choices, + label=_("Summary documents"), + help_text=_("Which summary documents to include during registration."), + default={SummaryDocumentChoices.pdf}, + ) + # DeprecationWarning - deprecated, will be removed in OF 4.0 zaaktype = serializers.URLField( help_text=_("URL of the ZAAKTYPE in the Catalogi API"), diff --git a/src/openforms/registrations/contrib/zgw_apis/plugin.py b/src/openforms/registrations/contrib/zgw_apis/plugin.py index 20e0eb82c0..53c20a6d84 100644 --- a/src/openforms/registrations/contrib/zgw_apis/plugin.py +++ b/src/openforms/registrations/contrib/zgw_apis/plugin.py @@ -1,9 +1,12 @@ import warnings +from collections import defaultdict from datetime import datetime from functools import partial, wraps from io import BytesIO from typing import Any, TypedDict +from django.db.models import F, TextField, Value +from django.db.models.functions import Coalesce, NullIf from django.urls import reverse from django.utils.text import Truncator from django.utils.translation import gettext, gettext_lazy as _ @@ -27,16 +30,23 @@ DocumentOptions, DocumentTypeResolver, create_attachment_document, + create_json_document, create_report_document, ) from openforms.emails.service import get_last_confirmation_email +from openforms.formio.datastructures import FormioConfigurationWrapper, FormioData +from openforms.formio.service import as_component_plugin +from openforms.formio.typing.base import Component +from openforms.forms.json_schema import NestedDict, generate_json_schema from openforms.submissions.mapping import SKIP, FieldConf, apply_data_mapping from openforms.submissions.models import Submission, SubmissionReport +from openforms.submissions.models.submission_files import SubmissionFileAttachment from openforms.submissions.public_references import generate_unique_submission_reference from openforms.template import openforms_backend, render_from_string -from openforms.typing import VariableValue +from openforms.typing import JSONObject, VariableValue from openforms.utils.date import datetime_in_amsterdam from openforms.utils.pdf import convert_html_to_pdf +from openforms.variables.constants import FormVariableSources from ...base import BasePlugin, PreRegistrationResult from ...constants import REGISTRATION_ATTRIBUTE, RegistrationAttribute @@ -46,6 +56,7 @@ from ...utils import execute_unless_result_exists from .checks import check_config from .client import get_catalogi_client, get_documents_client, get_zaken_client +from .constants import SummaryDocumentChoices from .models import ZGWApiGroupConfig from .options import ZaakOptionsSerializer from .typing import CatalogueOption, RegistrationOptions @@ -182,7 +193,10 @@ def _get_template_context(submission: Submission) -> ZaakTemplateContext: } -@register("zgw-create-zaak") +PLUGIN_IDENTIFIER = "zgw-create-zaak" + + +@register(PLUGIN_IDENTIFIER) class ZGWRegistration(BasePlugin[RegistrationOptions]): verbose_name = _("ZGW API's") configuration_options = ZaakOptionsSerializer @@ -324,7 +338,7 @@ def pre_register_submission( @wrap_api_errors def register_submission( self, submission: Submission, options: RegistrationOptions - ) -> dict | None: + ) -> dict: """ Add the PDF document with the submission data (confirmation report) to the zaak created during pre-registration. """ @@ -422,8 +436,7 @@ def register_submission( result["informatieobjecttype_url"] = informatieobjecttype_url - # Upload the summary PDF - pdf_options: DocumentOptions = { + summary_document_options: DocumentOptions = { "informatieobjecttype": informatieobjecttype_url, "organisatie_rsin": options["organisatie_rsin"], "auteur": options["auteur"], @@ -431,29 +444,30 @@ def register_submission( "doc_vertrouwelijkheidaanduiding" ], } - summary_pdf_document = execute_unless_result_exists( - partial( - create_report_document, - client=documents_client, - name=submission.form.name, - submission_report=submission_report, - options=pdf_options, - language=submission_report.submission.language_code, - ), - submission, - "intermediate.documents.report.document", - ) - - # Relate summary PDF - execute_unless_result_exists( - partial( - zaken_client.relate_document, - zaak=zaak, - document=summary_pdf_document, - ), - submission, - "intermediate.documents.report.relation", - ) + summary_documents = options.get("summary_documents", []) or [] + if SummaryDocumentChoices.pdf in summary_documents: + summary_pdf_document = execute_unless_result_exists( + partial( + create_report_document, + client=documents_client, + name=f"{submission.form.name} (PDF)", + submission_report=submission_report, + options=summary_document_options, + language=submission_report.submission.language_code, + ), + submission, + "intermediate.documents.report.document", + ) + # Relate summary PDF + execute_unless_result_exists( + partial( + zaken_client.relate_document, + zaak=zaak, + document=summary_pdf_document, + ), + submission, + "intermediate.documents.report.relation", + ) initiator_rol = execute_unless_result_exists( partial( @@ -686,9 +700,63 @@ def register_submission( f"intermediate.documents.{attachment.id}.relation", # type: ignore ) + if SummaryDocumentChoices.json in summary_documents: + state = submission.variables_state + all_values = state.get_data(include_static_variables=True) + variables = state.variables + values_schema = generate_json_schema( + submission.form, + list(variables.keys()), + backend_id=PLUGIN_IDENTIFIER, + backend_options=options, # pyright: ignore[reportArgumentType] + submission=submission, + ) + submission_uploads = get_submission_uploads(submission) + + post_process( + list(variables.keys()), + all_values, + NestedDict(values_schema), + submission, + submission_uploads, + ) + + document_data = { + "values": all_values.data, + "values_schema": values_schema, + } + summary_json_document = execute_unless_result_exists( + partial( + create_json_document, + client=documents_client, + document_data=document_data, + name=f"{submission.form.name} (JSON)", + options=summary_document_options, + language=submission_report.submission.language_code, + ), + submission, + "intermediate.documents.json.document", + ) + result["intermediate"]["documents"]["json"]["values_schema"] = ( + document_data["values_schema"] + ) + result["intermediate"]["documents"]["json"]["values"] = document_data[ + "values" + ] + + # Relate summary JSON + execute_unless_result_exists( + partial( + zaken_client.relate_document, + zaak=zaak, + document=summary_json_document, + ), + submission, + "intermediate.documents.json.relation", + ) + result.update( { - "document": summary_pdf_document, "status": status, "initiator_rol": initiator_rol, } @@ -930,3 +998,200 @@ def update_registration_with_confirmation_email( ) return result + + @staticmethod + def allows_json_schema_generation(options: RegistrationOptions) -> bool: + return True + + def process_variable_schema( + self, + component: Component, + schema: JSONObject, + options: RegistrationOptions, + configuration_wrapper: FormioConfigurationWrapper, + ) -> None: + match component: + case {"type": "partners"}: + assert isinstance(schema["items"], dict) + _properties = schema["items"]["properties"] + assert isinstance(_properties, dict) + + _properties["firstNames"] = {"type": "string"} + case {"type": "children"}: + assert isinstance(schema["items"], dict) + _properties = schema["items"]["properties"] + assert isinstance(_properties, dict) + + _properties["affixes"] = {"type": "string"} + _properties["initials"] = {"type": "string"} + _properties["lastName"] = {"type": "string"} + case {"type": "file"}: + assert isinstance(schema["items"], dict) + schema["items"] = {"type": "string", "format": "uri"} + case {"type": "editgrid"}: + assert isinstance(schema["items"], dict) + _properties = schema["items"]["properties"] + assert isinstance(_properties, dict) + + for child_key, child_schema in _properties.items(): + child_component = configuration_wrapper[child_key] + assert isinstance(child_schema, dict) + self.process_variable_schema( + child_component, + child_schema, + options, + configuration_wrapper, + ) + case _: + pass + + +def post_process( + variables: list[str], + values: FormioData, + schema: NestedDict, + submission: Submission, + attachments: dict[str, list[str]], +) -> None: + state = submission.variables_state + configuration_wrapper = submission.total_configuration_wrapper + + for key in variables: + variable = state.variables.get(key) + if ( + variable is None + or variable.form_variable is None + or variable.form_variable.source == FormVariableSources.user_defined + ): + # None for static variables, and processing user defined variables is + # not relevant here + continue + + component = configuration_wrapper[key] + assert component is not None + + process_component(component, values, schema, configuration_wrapper, attachments) + + +def process_component( + component: Component, + values: FormioData, + schema: NestedDict, + configuration_wrapper: FormioConfigurationWrapper, + attachments: dict[str, list[str]], + key_prefix: str = "", +) -> None: + key = component["key"] + schema_key = f"properties.{key.replace('.', '.properties.')}" + + match component: + case {"type": "partners"}: + partners = values[key] + assert isinstance(partners, list) + + for partner in partners: + assert isinstance(partner, dict) + component_plugin = as_component_plugin(component) + assert component_plugin.internal_properties is not None + for internal_property in component_plugin.internal_properties: + partner.pop(internal_property, None) + + case {"type": "children"}: + children = values[key] + assert isinstance(children, list) + + updated = [] + for child in children: + assert isinstance(child, dict) + if child.get("selected") not in (None, True): + continue + + component_plugin = as_component_plugin(component) + assert component_plugin.internal_properties is not None + for internal_property in component_plugin.internal_properties: + child.pop(internal_property, None) + + updated.append(child) + + values[key] = updated + + case {"type": "file"}: + values[key] = attachments.get(key, []) + + case {"type": "editgrid"}: + # Note: the schema actually only needs to be processed once for each child + # component, but will be processed for each submitted repeating group entry + # for implementation simplicity. + edit_grid_schema = NestedDict(schema[schema_key]["items"]) # type: ignore + + component = component + assert "components" in component + + assert isinstance(values[key], (list,)) + for index, edit_grid_values in enumerate(values[key]): + edit_grid_values = FormioData(edit_grid_values) + + for child_component in component["components"]: + child_key = child_component["key"] + + process_component( + component=configuration_wrapper[child_key], + values=edit_grid_values, + schema=edit_grid_schema, + attachments=attachments, + configuration_wrapper=configuration_wrapper, + key_prefix=( + f"{key_prefix}.{key}.{index}" + if key_prefix + else f"{key}.{index}" + ), + ) + + # Need to manually set it to the list, as ``FormioData`` creates a copy + # so mutations are not applied to ``values`` + values[key][index] = edit_grid_values.data + + +def get_submission_uploads(submission: Submission) -> dict[str, list[str]]: + component_path_mapping: dict[str, list[str]] = defaultdict(list) + + # fmt: off + attachments = ( + SubmissionFileAttachment.objects + .annotate( + data_path=Coalesce( + NullIf( + F("_component_data_path"), + Value(""), + ), + # fall back to variable/component key if no explicit data path is set + F("submission_variable__key"), + output_field=TextField(), + ), + + ) + .filter( + submission_step__submission=submission, + submission_variable__isnull=False + ) + ) + # fmt: on + + registration_result = submission.registration_result + assert isinstance(registration_result, dict) + for attachment in attachments: + key: str = attachment.data_path + component = attachment.component + assert component, "Component could not be resolved" + documents_relation = ( + registration_result.get("intermediate", {}) + .get("documents", {}) + .get(str(attachment.pk), {}) + .get("document") + ) + + if not documents_relation: + continue + + component_path_mapping[key].append(documents_relation["url"]) + return component_path_mapping diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/test_backend.py b/src/openforms/registrations/contrib/zgw_apis/tests/test_backend.py index 066180e9a7..276473e313 100644 --- a/src/openforms/registrations/contrib/zgw_apis/tests/test_backend.py +++ b/src/openforms/registrations/contrib/zgw_apis/tests/test_backend.py @@ -38,7 +38,8 @@ from ....constants import RegistrationAttribute from ....exceptions import RegistrationFailed from ..client import get_documents_client, get_zaken_client -from ..plugin import ZGWRegistration +from ..constants import SummaryDocumentChoices +from ..plugin import PLUGIN_IDENTIFIER, ZGWRegistration from ..typing import RegistrationOptions from .factories import ZGWApiGroupConfigFactory @@ -255,6 +256,7 @@ def test_submission_with_registrator(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") _run_preregistration(submission, plugin, options) @@ -348,6 +350,7 @@ def test_create_zaak_with_natuurlijk_persoon_initiator_and_legacy_config(self): "type": "Point", "coordinates": [4.893164274470299, 52.36673378967122], }, + "summary_documents": [], }, bsn="111222333", form__product__price=Decimal("0"), @@ -376,6 +379,7 @@ def test_create_zaak_with_natuurlijk_persoon_initiator_and_legacy_config(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") @@ -393,9 +397,9 @@ def test_create_zaak_with_natuurlijk_persoon_initiator_and_legacy_config(self): documenten_root = self.zgw_group.drc_service.api_root self.assertTrue(result["zaak"]["url"].startswith(f"{zaken_root}zaken/")) self.assertTrue( - result["document"]["url"].startswith( - f"{documenten_root}enkelvoudiginformatieobjecten/" - ) + result["intermediate"]["documents"]["report"]["document"][ + "url" + ].startswith(f"{documenten_root}enkelvoudiginformatieobjecten/") ) self.assertTrue( result["initiator_rol"]["url"].startswith(f"{zaken_root}rollen/") @@ -567,6 +571,7 @@ def test_create_zaak_with_vestiging_and_kvk_initiator_and_legacy_config(self): "partners_roltype": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") pre_registration_result = plugin.pre_register_submission(submission, options) @@ -651,6 +656,7 @@ def test_create_zaak_with_vestiging_and_kvk_initiator_and_legacy_config_through_ "partners_roltype": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") pre_registration_result = plugin.pre_register_submission(submission, options) @@ -758,6 +764,7 @@ def test_create_zaak_with_kvk_initiator_only_and_legacy_config(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") pre_registration_result = plugin.pre_register_submission(submission, options) @@ -840,6 +847,7 @@ def test_create_zaak_with_case_identification_reference(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") @@ -922,6 +930,7 @@ def test_create_zaak_with_zaaktype_where_initiator_roltype_is_missing(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") _run_preregistration(submission, plugin, options) @@ -968,6 +977,7 @@ def test_create_zaak_with_case_identification_reference_and_product(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") @@ -1027,6 +1037,7 @@ def test_allow_registration_with_unpublished_case_types(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") @@ -1079,6 +1090,7 @@ def test_create_document_with_document_type_description_reference(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") client = get_zaken_client(self.zgw_group) @@ -1139,6 +1151,7 @@ def test_retried_registration_with_internal_reference(self): "organisatie_rsin": "000000000", "vertrouwelijkheidaanduiding": "openbaar", "objects_api_group": None, + "summary_documents": [], }, ) @@ -1201,6 +1214,7 @@ def test_submission_with_multiple_eigenschappen_creation(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } client = get_zaken_client(self.zgw_group) self.addCleanup(client.close) @@ -1292,6 +1306,7 @@ def test_submission_with_nested_component_columns_and_eigenschap(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } client = get_zaken_client(self.zgw_group) self.addCleanup(client.close) @@ -1350,6 +1365,7 @@ def test_register_and_update_paid_product(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") _run_preregistration(submission, plugin, options) @@ -1442,6 +1458,7 @@ def test_file_attachments_respect_field_specific_overrides(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], # empty-ish value should fall back to default "auteur": "", } @@ -1638,6 +1655,7 @@ def test_submission_with_zgw_and_objects_api_backends(self): ] }""" ), + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") _run_preregistration(submission, plugin, options) @@ -1802,6 +1820,7 @@ def test_confirmation_emails_are_attached_when_updating_registration( "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") pre_registration_result = plugin.pre_register_submission(submission, options) @@ -1878,6 +1897,7 @@ def test_confirmation_email_is_only_attached_once(self, mock_get_last_email): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") pre_registration_result = plugin.pre_register_submission(submission, options) @@ -1938,6 +1958,7 @@ def test_updating_registration_skips_when_confirmation_email_was_not_sent(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") @@ -1984,6 +2005,7 @@ def test_updating_registration_raises_when_confirmation_email_was_not_found( "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") pre_registration_result = plugin.pre_register_submission(submission, options) @@ -2057,6 +2079,9 @@ def test_submission_with_partners_component(self, m, n): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [ + SummaryDocumentChoices.json, + ], } prefill_variables(submission) @@ -2122,6 +2147,57 @@ def test_submission_with_partners_component(self, m, n): }, ) + document_results = result["intermediate"]["documents"] + json_details = document_results["json"] + assert all( + key in json_details for key in ("values", "values_schema", "document") + ) + + expected_values = [ + { + "bsn": "999995182", + "affixes": "", + "initials": "A.M.P.", + "lastName": "Jansma", + "firstNames": "Anna Maria Petra", + "dateOfBirth": date(1945, 4, 18), + }, + { + "bsn": "123456782", + "affixes": "", + "initials": "T.s.p.", + "lastName": "Test", + "firstNames": "Test second partner", + "dateOfBirth": date(1945, 4, 18), + }, + ] + expected_schema = { + "items": { + "additionalProperties": False, + "properties": { + "affixes": {"type": "string"}, + "bsn": { + "format": "nl-bsn", + "pattern": "^\\d{9}$", + "type": "string", + }, + "dateOfBirth": {"format": "date", "type": "string"}, + "firstNames": {"type": "string"}, + "initials": {"type": "string"}, + "lastName": {"type": "string"}, + }, + "required": ["bsn"], + "type": "object", + }, + "title": "Partners", + "type": "array", + } + self.assertEqual(json_details["values"]["partners"], expected_values) + self.assertEqual( + json_details["values_schema"]["properties"]["partners"], + expected_schema, + ) + @tag("gh-5840") def test_submission_with_partners_component_and_manually_added_data(self): submission = SubmissionFactory.from_components( @@ -2169,6 +2245,9 @@ def test_submission_with_partners_component_and_manually_added_data(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [ + SummaryDocumentChoices.json, + ], } client = get_zaken_client(self.zgw_group) @@ -2284,6 +2363,7 @@ def test_submission_with_children_component_and_selection_disabled(self, m, n): "partners_description": "", "children_roltype": "Children role type", "children_description": "", + "summary_documents": [SummaryDocumentChoices.json], } prefill_variables(submission) @@ -2367,6 +2447,57 @@ def test_submission_with_children_component_and_selection_disabled(self, m, n): }, ) + document_results = result["intermediate"]["documents"] + json_details = document_results["json"] + assert all( + key in json_details for key in ("values", "values_schema", "document") + ) + + expected_values = [ + { + "affixes": "", + "bsn": "999970100", + "dateOfBirth": date(2022, 2, 2), + "firstNames": "Olle", + "initials": "O.", + "lastName": "Oostingh", + }, + { + "affixes": "", + "bsn": "999970112", + "dateOfBirth": date(2022, 2, 2), + "firstNames": "Onne", + "initials": "O.", + "lastName": "Oostingh", + }, + ] + expected_schema = { + "items": { + "additionalProperties": False, + "properties": { + "affixes": {"type": "string"}, + "bsn": { + "format": "nl-bsn", + "pattern": "^\\d{9}$", + "type": "string", + }, + "dateOfBirth": {"format": "date", "type": "string"}, + "firstNames": {"type": "string"}, + "initials": {"type": "string"}, + "lastName": {"type": "string"}, + }, + "required": ["bsn"], + "type": "object", + }, + "title": "Children", + "type": "array", + } + self.assertEqual(json_details["values"]["children"], expected_values) + self.assertEqual( + json_details["values_schema"]["properties"]["children"], + expected_schema, + ) + @patch( "openforms.contrib.haal_centraal.clients.HaalCentraalConfig.get_solo", return_value=HaalCentraalConfig( @@ -2430,6 +2561,7 @@ def test_submission_with_children_component_and_selection_enabled(self, m, n): "partners_description": "", "children_roltype": "Children role type", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } prefill_variables(submission) @@ -2578,6 +2710,7 @@ def test_submission_with_manually_added_children_and_selection_enabled(self): "partners_description": "", "children_roltype": "Children role type", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } client = get_zaken_client(self.zgw_group) @@ -2701,6 +2834,7 @@ def test_submission_with_manually_added_children_and_selection_disabled(self): "partners_description": "", "children_roltype": "Children role type", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } # the submitted data needs extra handling because frontend adds some extra field @@ -2817,6 +2951,7 @@ def test_submission_with_children_component_and_manually_added_data(self): "partners_description": "", "children_roltype": "Children role type", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], } client = get_zaken_client(self.zgw_group) @@ -2896,6 +3031,7 @@ def test_documents_use_public_form_name(self): "partners_description": "", "children_roltype": "", "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], # empty-ish value should fall back to default "auteur": "", } @@ -2952,6 +3088,7 @@ def test_create_zaak_with_templated_description_and_explanation(self): "auteur": "", "zaak_omschrijving": "Description: {{ form_name }}", "zaak_toelichting": "Extra explanation about {{ form_name }}", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") @@ -3006,6 +3143,7 @@ def test_create_zaak_with_empty_description_and_explanation(self): "children_description": "", "zaak_omschrijving": "", "zaak_toelichting": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") @@ -3074,6 +3212,7 @@ def test_can_upload_attachments_with_indirect_document_type_reference(self): "children_description": "", # empty-ish value should fall back to default "auteur": "", + "summary_documents": [SummaryDocumentChoices.pdf], } plugin = ZGWRegistration("zgw") _run_preregistration(submission, plugin, options) @@ -3091,3 +3230,263 @@ def test_can_upload_attachments_with_indirect_document_type_reference(self): self.assertTrue( resolved_document_type.endswith("/7755ab0f-9e37-4834-8bbf-158f9f2da38e") ) + + def test_all_summary_documents(self): + submission = SubmissionFactory.from_components( + [ + { + "type": "textfield", + "key": "someText", + "label": "Some text", + }, + { + "key": "file", + "type": "file", + "file": {"type": []}, + "filePattern": "", + "url": "", + }, + { + "key": "editgrid", + "type": "editgrid", + "label": "Editgrid", + "components": [ + { + "type": "time", + "key": "time", + "label": "Time", + } + ], + }, + ], + submitted_data={ + "someText": "Foo", + "file": [ + { + "url": "some://url", + "name": "my-foo.bin", + "type": "application/foo", + "originalName": "my-foo.bin", + } + ], + "editgrid": [{"time": "12:34:56"}], + }, + form__name="Public form name", + form__internal_name="Internal form name", + form__registration_backend=PLUGIN_IDENTIFIER, + bsn="111222333", + completed=True, + # Pin to a known case & document type version + completed_on=datetime(2024, 11, 9, 15, 30, 0).replace(tzinfo=UTC), + with_report=True, + ) + + SubmissionFileAttachmentFactory.create( + form_key="file", + submission_step=submission.steps[0], + file_name="test_file.txt", + original_name="test_file.txt", + content_type="application/text", + content__data=b"This is example content.", + _component_configuration_path="components.1", + _component_data_path="file", + ) + + options: RegistrationOptions = { + "zgw_api_group": self.zgw_group, + "catalogue": { + "domain": "TEST", + "rsin": "000000000", + }, + "case_type_identification": "ZT-001", + "document_type_description": "PDF Informatieobjecttype", + "zaaktype": "", + "informatieobjecttype": "", + "organisatie_rsin": "000000000", + # empty value should be ignored, use the VA from the zaaktype + "zaak_vertrouwelijkheidaanduiding": "", + "objects_api_group": None, + "product_url": "", + "partners_roltype": "", + "partners_description": "", + "children_roltype": "", + "children_description": "", + "summary_documents": [ + SummaryDocumentChoices.pdf, + SummaryDocumentChoices.json, + ], + # empty-ish value should fall back to default + "auteur": "", + } + plugin = ZGWRegistration("zgw") + _run_preregistration(submission, plugin, options) + + plugin.register_submission(submission, options) + + submission.refresh_from_db() + assert submission.registration_result + + document_results = submission.registration_result["intermediate"]["documents"] + pdf_details = document_results["report"]["document"] + self.assertEqual(pdf_details["titel"], "Public form name (PDF)") + + json_details = document_results["json"] + assert all( + key in json_details for key in ("values", "values_schema", "document") + ) + self.assertEqual(json_details["document"]["titel"], "Public form name (JSON)") + self.assertEqual(json_details["document"]["formaat"], "application/json") + self.assertEqual(json_details["values"]["someText"], "Foo") + self.assertEqual( + json_details["values"]["file"], + [ + "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/a1d18cc1-717d-4457-9154-3c3028267e30" + ], + ) + self.assertEqual( + json_details["values"]["editgrid"], + [{"time": "12:34:56"}], + ) + self.assertEqual( + json_details["values_schema"]["properties"]["file"], + { + "type": "array", + "title": "File", + "items": {"type": "string", "format": "uri"}, + }, + ) + self.assertEqual( + json_details["values_schema"]["properties"]["someText"], + {"title": "Some text", "type": "string"}, + ) + self.assertEqual( + json_details["values_schema"]["properties"]["editgrid"], + { + "type": "array", + "title": "Editgrid", + "items": { + "additionalProperties": False, + "type": "object", + "properties": { + "time": { + "format": "time", + "title": "Time", + "type": "string", + } + }, + "required": ["time"], + }, + }, + ) + + def test_single_document_summary(self): + submission = SubmissionFactory.from_components( + [ + { + "type": "textfield", + "key": "someText", + "label": "Some text", + } + ], + submitted_data={ + "someText": "Foo", + }, + form__name="Public form name", + form__internal_name="Internal form name", + form__registration_backend=PLUGIN_IDENTIFIER, + bsn="111222333", + completed=True, + # Pin to a known case & document type version + completed_on=datetime(2024, 11, 9, 15, 30, 0).replace(tzinfo=UTC), + with_report=True, + ) + + options: RegistrationOptions = { + "zgw_api_group": self.zgw_group, + "catalogue": { + "domain": "TEST", + "rsin": "000000000", + }, + "case_type_identification": "ZT-001", + "document_type_description": "PDF Informatieobjecttype", + "zaaktype": "", + "informatieobjecttype": "", + "organisatie_rsin": "000000000", + # empty value should be ignored, use the VA from the zaaktype + "zaak_vertrouwelijkheidaanduiding": "", + "objects_api_group": None, + "product_url": "", + "partners_roltype": "", + "partners_description": "", + "children_roltype": "", + "children_description": "", + "summary_documents": [SummaryDocumentChoices.pdf], + # empty-ish value should fall back to default + "auteur": "", + } + plugin = ZGWRegistration("zgw") + _run_preregistration(submission, plugin, options) + + plugin.register_submission(submission, options) + + submission.refresh_from_db() + assert submission.registration_result + + document_results = submission.registration_result["intermediate"]["documents"] + pdf_details = document_results["report"]["document"] + self.assertEqual(pdf_details["titel"], "Public form name") + self.assertTrue("json" not in document_results) + + def test_no_summary_documents(self): + submission = SubmissionFactory.from_components( + [ + { + "type": "textfield", + "key": "someText", + "label": "Some text", + } + ], + submitted_data={ + "someText": "Foo", + }, + form__name="Public form name", + form__internal_name="Internal form name", + form__registration_backend=PLUGIN_IDENTIFIER, + bsn="111222333", + completed=True, + # Pin to a known case & document type version + completed_on=datetime(2024, 11, 9, 15, 30, 0).replace(tzinfo=UTC), + with_report=True, + ) + + options: RegistrationOptions = { + "zgw_api_group": self.zgw_group, + "catalogue": { + "domain": "TEST", + "rsin": "000000000", + }, + "case_type_identification": "ZT-001", + "document_type_description": "PDF Informatieobjecttype", + "zaaktype": "", + "informatieobjecttype": "", + "organisatie_rsin": "000000000", + # empty value should be ignored, use the VA from the zaaktype + "zaak_vertrouwelijkheidaanduiding": "", + "objects_api_group": None, + "product_url": "", + "partners_roltype": "", + "partners_description": "", + "children_roltype": "", + "children_description": "", + # empty-ish value should fall back to default + "auteur": "", + "summary_documents": [], + } + plugin = ZGWRegistration("zgw") + _run_preregistration(submission, plugin, options) + + plugin.register_submission(submission, options) + + submission.refresh_from_db() + assert submission.registration_result + self.assertTrue("documents" not in submission.registration_result) diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/test_backend_partial_failure.py b/src/openforms/registrations/contrib/zgw_apis/tests/test_backend_partial_failure.py index 8727c11138..192cde4502 100644 --- a/src/openforms/registrations/contrib/zgw_apis/tests/test_backend_partial_failure.py +++ b/src/openforms/registrations/contrib/zgw_apis/tests/test_backend_partial_failure.py @@ -20,6 +20,7 @@ from ....exceptions import RegistrationFailed from ....tasks import register_submission +from ..constants import SummaryDocumentChoices from .factories import ZGWApiGroupConfigFactory @@ -97,6 +98,7 @@ def _reset_vcr_hook(): "informatieobjecttype": "", "organisatie_rsin": "000000000", "vertrouwelijkheidaanduiding": "", + "summary_documents": [SummaryDocumentChoices.pdf], }, completed_not_preregistered=True, bsn="111222333", diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_all_summary_documents.yaml b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_all_summary_documents.yaml new file mode 100644 index 0000000000..c3e5785df3 --- /dev/null +++ b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_all_summary_documents.yaml @@ -0,0 +1,722 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=TEST&rsin=000000000 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","domein":"TEST","rsin":"000000000","contactpersoonBeheerNaam":"Test + name","contactpersoonBeheerTelefoonnummer":"","contactpersoonBeheerEmailadres":"","zaaktypen":["http://localhost:8003/catalogi/api/v1/zaaktypen/1f41885e-23fc-4462-bbc8-80be4ae484dc","http://localhost:8003/catalogi/api/v1/zaaktypen/b79d9c2f-5ec4-4e23-bb66-ec6dd959a400","http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","http://localhost:8003/catalogi/api/v1/zaaktypen/fcc3499a-04d4-421c-b115-7e3cba2127ac","http://localhost:8003/catalogi/api/v1/zaaktypen/6cc5c7eb-9adf-4262-98ab-1b26b738a5ae"],"besluittypen":[],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7a474713-0833-402a-8441-e467c08ac55b","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/b2d83b94-9b9b-4e80-a82f-73ff993c62f3","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"naam":"Test + catalog","versie":"","begindatumVersie":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1345' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/zaaktypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2Fbd58635c-793e-446d-a7e0-460d7b04829d&identificatie=ZT-001&datumGeldigheid=2024-11-09 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","identificatie":"ZT-001","omschrijving":"Test","omschrijvingGeneriek":"","vertrouwelijkheidaanduiding":"intern","doel":"testen","aanleiding":"integratietests","toelichting":"","indicatieInternOfExtern":"intern","handelingInitiator":"Formulier + indienen","onderwerp":"Testformulier","handelingBehandelaar":"Controleren","doorlooptijd":"P1D","servicenorm":null,"opschortingEnAanhoudingMogelijk":false,"verlengingMogelijk":false,"verlengingstermijn":null,"trefwoorden":[],"publicatieIndicatie":false,"publicatietekst":"","verantwoordingsrelatie":[],"productenOfDiensten":["http://localhost:81/product/1234abcd-12ab-34cd-56ef-12345abcde10"],"selectielijstProcestype":"https://selectielijst.openzaak.nl/api/v1/procestypen/aa8aa2fd-b9c6-4e34-9a6c-58a677f60ea0","referentieproces":{"naam":"Testen","link":""},"concept":false,"verantwoordelijke":"Ontwikkelaar","beginGeldigheid":"2024-10-31","eindeGeldigheid":null,"versiedatum":"2024-10-31","beginObject":"2023-01-01","eindeObject":null,"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","statustypen":["http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47"],"resultaattypen":["http://localhost:8003/catalogi/api/v1/resultaattypen/e84e6028-c52a-420b-a098-d10897395c52"],"eigenschappen":["http://localhost:8003/catalogi/api/v1/eigenschappen/3a094e33-7a20-4018-bd60-3c15d06a1555","http://localhost:8003/catalogi/api/v1/eigenschappen/f376c43d-97f6-423c-a25c-9264142db235"],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"roltypen":["http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","http://localhost:8003/catalogi/api/v1/roltypen/d44d68c2-1e06-461e-9657-adf174a922fb"],"besluittypen":[],"deelzaaktypen":[],"gerelateerdeZaaktypen":[],"zaakobjecttypen":[]}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '2325' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"zaaktype": "http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774", + "bronorganisatie": "000000000", "verantwoordelijkeOrganisatie": "000000000", + "registratiedatum": "2026-05-26", "startdatum": "2026-05-26", "productenOfDiensten": + [], "omschrijving": "Public form name", "toelichting": "", "betalingsindicatie": + "nvt", "identificatie": "OF-ATUFFD"}' + headers: + Accept: + - '*/*' + Accept-Crs: + - EPSG:4326 + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Crs: + - EPSG:4326 + Content-Length: + - '380' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/zaken + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd","uuid":"62f08554-ef5d-490e-b635-6b66fb194dbd","identificatie":"OF-ATUFFD","bronorganisatie":"000000000","omschrijving":"Public + form name","toelichting":"","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","registratiedatum":"2026-05-26","verantwoordelijkeOrganisatie":"000000000","startdatum":"2026-05-26","einddatum":null,"einddatumGepland":null,"uiterlijkeEinddatumAfdoening":null,"publicatiedatum":null,"communicatiekanaal":"","communicatiekanaalNaam":"","productenOfDiensten":[],"vertrouwelijkheidaanduiding":"intern","betalingsindicatie":"nvt","betalingsindicatieWeergave":"Er + is geen sprake van te betalen, met de zaak gemoeide, kosten.","laatsteBetaaldatum":null,"zaakgeometrie":null,"verlenging":null,"opschorting":{"indicatie":false,"reden":""},"selectielijstklasse":"","hoofdzaak":null,"deelzaken":[],"relevanteAndereZaken":[],"eigenschappen":[],"rollen":[],"status":null,"zaakinformatieobjecten":[],"zaakobjecten":[],"kenmerken":[],"archiefnominatie":null,"archiefstatus":"nog_te_archiveren","archiefactiedatum":null,"resultaat":null,"opdrachtgevendeOrganisatie":"","processobjectaard":"","startdatumBewaartermijn":null,"processobject":{"datumkenmerk":"","identificatie":"","objecttype":"","registratie":""}}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Crs: + - EPSG:4326 + Content-Length: + - '1354' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd + Referrer-Policy: + - same-origin + Vary: + - origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=TEST&rsin=000000000 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","domein":"TEST","rsin":"000000000","contactpersoonBeheerNaam":"Test + name","contactpersoonBeheerTelefoonnummer":"","contactpersoonBeheerEmailadres":"","zaaktypen":["http://localhost:8003/catalogi/api/v1/zaaktypen/1f41885e-23fc-4462-bbc8-80be4ae484dc","http://localhost:8003/catalogi/api/v1/zaaktypen/b79d9c2f-5ec4-4e23-bb66-ec6dd959a400","http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","http://localhost:8003/catalogi/api/v1/zaaktypen/fcc3499a-04d4-421c-b115-7e3cba2127ac","http://localhost:8003/catalogi/api/v1/zaaktypen/6cc5c7eb-9adf-4262-98ab-1b26b738a5ae"],"besluittypen":[],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7a474713-0833-402a-8441-e467c08ac55b","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/b2d83b94-9b9b-4e80-a82f-73ff993c62f3","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"naam":"Test + catalog","versie":"","begindatumVersie":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1345' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/informatieobjecttypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2Fbd58635c-793e-446d-a7e0-460d7b04829d&omschrijving=PDF+Informatieobjecttype&datumGeldigheid=2024-11-09 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","omschrijving":"PDF + Informatieobjecttype","vertrouwelijkheidaanduiding":"openbaar","beginGeldigheid":"2024-07-11","eindeGeldigheid":null,"concept":false,"besluittypen":[],"informatieobjectcategorie":"Test + category","trefwoord":[],"omschrijvingGeneriek":{"informatieobjecttypeOmschrijvingGeneriek":"","definitieInformatieobjecttypeOmschrijvingGeneriek":"","herkomstInformatieobjecttypeOmschrijvingGeneriek":"","hierarchieInformatieobjecttypeOmschrijvingGeneriek":"","opmerkingInformatieobjecttypeOmschrijvingGeneriek":""},"zaaktypen":["http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774"],"beginObject":"2024-03-19","eindeObject":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '928' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774 + response: + body: + string: '{"url":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","identificatie":"ZT-001","omschrijving":"Test","omschrijvingGeneriek":"","vertrouwelijkheidaanduiding":"intern","doel":"testen","aanleiding":"integratietests","toelichting":"","indicatieInternOfExtern":"intern","handelingInitiator":"Formulier + indienen","onderwerp":"Testformulier","handelingBehandelaar":"Controleren","doorlooptijd":"P1D","servicenorm":null,"opschortingEnAanhoudingMogelijk":false,"verlengingMogelijk":false,"verlengingstermijn":null,"trefwoorden":[],"publicatieIndicatie":false,"publicatietekst":"","verantwoordingsrelatie":[],"productenOfDiensten":["http://localhost:81/product/1234abcd-12ab-34cd-56ef-12345abcde10"],"selectielijstProcestype":"https://selectielijst.openzaak.nl/api/v1/procestypen/aa8aa2fd-b9c6-4e34-9a6c-58a677f60ea0","referentieproces":{"naam":"Testen","link":""},"concept":false,"verantwoordelijke":"Ontwikkelaar","beginGeldigheid":"2024-10-31","eindeGeldigheid":null,"versiedatum":"2024-10-31","beginObject":"2023-01-01","eindeObject":null,"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","statustypen":["http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47"],"resultaattypen":["http://localhost:8003/catalogi/api/v1/resultaattypen/e84e6028-c52a-420b-a098-d10897395c52"],"eigenschappen":["http://localhost:8003/catalogi/api/v1/eigenschappen/3a094e33-7a20-4018-bd60-3c15d06a1555","http://localhost:8003/catalogi/api/v1/eigenschappen/f376c43d-97f6-423c-a25c-9264142db235"],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"roltypen":["http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","http://localhost:8003/catalogi/api/v1/roltypen/d44d68c2-1e06-461e-9657-adf174a922fb"],"besluittypen":[],"deelzaaktypen":[],"gerelateerdeZaaktypen":[],"zaakobjecttypen":[]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, PUT, PATCH, DELETE, HEAD, OPTIONS + Content-Length: + - '2273' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + ETag: + - '"14cb0d757ba364562edbb66412778d30"' + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"informatieobjecttype": "http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71", + "bronorganisatie": "000000000", "creatiedatum": "2026-05-26", "titel": "Public + form name (PDF)", "auteur": "Aanvrager", "taal": "nld", "formaat": "application/pdf", + "inhoud": "", "status": "definitief", "bestandsnaam": "open-forms-Public form + name (PDF).pdf", "ontvangstdatum": null, "beschrijving": "Ingezonden formulier", + "indicatieGebruiksrecht": false, "bestandsomvang": 0}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '502' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten + response: + body: + string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/be00a292-c6dd-4111-94a7-017a45175cdd","identificatie":"DOCUMENT-2026-0000000022","bronorganisatie":"000000000","creatiedatum":"2026-05-26","titel":"Public + form name (PDF)","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"application/pdf","taal":"nld","versie":1,"beginRegistratie":"2026-05-26T10:56:34.111127Z","bestandsnaam":"open-forms-Public + form name (PDF).pdf","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/be00a292-c6dd-4111-94a7-017a45175cdd/download?versie=1","bestandsomvang":0,"link":"","beschrijving":"Ingezonden + formulier","ontvangstdatum":null,"verzenddatum":null,"indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":{"soort":"","datum":null},"integriteit":{"algoritme":"","waarde":"","datum":null},"informatieobjecttype":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","locked":false,"bestandsdelen":[],"trefwoorden":[],"lock":""}' + headers: + API-version: + - 1.4.2 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1070' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/be00a292-c6dd-4111-94a7-017a45175cdd + Referrer-Policy: + - same-origin + Vary: + - origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd", + "informatieobject": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/be00a292-c6dd-4111-94a7-017a45175cdd"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '219' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/zaakinformatieobjecten + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/b708ade2-ac51-4a11-9334-92c78c5ebe71","uuid":"b708ade2-ac51-4a11-9334-92c78c5ebe71","informatieobject":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/be00a292-c6dd-4111-94a7-017a45175cdd","zaak":"http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd","aardRelatieWeergave":"Hoort + bij, omgekeerd: kent","titel":"","beschrijving":"","registratiedatum":"2026-05-26T10:56:34.223688Z","vernietigingsdatum":null,"status":null}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '534' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/b708ade2-ac51-4a11-9334-92c78c5ebe71 + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/roltypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2Ff609b6fe-449a-46dc-a0af-de55dc5f6774&omschrijvingGeneriek=initiator + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","zaaktypeIdentificatie":"ZT-001","omschrijving":"Initiator","omschrijvingGeneriek":"initiator","catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","beginGeldigheid":null,"eindeGeldigheid":null,"beginObject":null,"eindeObject":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '524' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd", + "betrokkeneType": "natuurlijk_persoon", "roltype": "http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8", + "roltoelichting": "inzender formulier", "indicatieMachtiging": "", "betrokkeneIdentificatie": + {"inpBsn": "111222333", "vestigingsNummer": ""}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '370' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/rollen + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/b191ff61-099b-4a1b-8a14-a77a6f368078","uuid":"b191ff61-099b-4a1b-8a14-a77a6f368078","zaak":"http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","omschrijving":"Initiator","omschrijvingGeneriek":"initiator","roltoelichting":"inzender + formulier","registratiedatum":"2026-05-26T10:56:34.370906Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"111222333","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"","geslachtsaanduiding":"","geboortedatum":"","verblijfsadres":null,"subVerblijfBuitenland":null}}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '935' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/rollen/b191ff61-099b-4a1b-8a14-a77a6f368078 + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/statustypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2Ff609b6fe-449a-46dc-a0af-de55dc5f6774 + response: + body: + string: '{"count":2,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47","omschrijving":"Ontvangen","omschrijvingGeneriek":"","statustekst":"","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","zaaktypeIdentificatie":"ZT-001","volgnummer":1,"isEindstatus":false,"informeren":false,"doorlooptijd":null,"toelichting":null,"checklistitemStatustype":[],"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","eigenschappen":[],"zaakobjecttypen":[],"beginGeldigheid":null,"eindeGeldigheid":null,"beginObject":null,"eindeObject":null},{"url":"http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","omschrijving":"Afgerond","omschrijvingGeneriek":"","statustekst":"","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","zaaktypeIdentificatie":"ZT-001","volgnummer":2,"isEindstatus":true,"informeren":false,"doorlooptijd":null,"toelichting":null,"checklistitemStatustype":[],"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","eigenschappen":[],"zaakobjecttypen":[],"beginGeldigheid":null,"eindeGeldigheid":null,"beginObject":null,"eindeObject":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1343' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd", + "statustype": "http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47", + "datumStatusGezet": "2026-05-26T10:56:34.466390+00:00", "statustoelichting": + ""}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '274' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/statussen + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/statussen/48b94f01-5530-42cc-bf2d-75d5958ed48a","uuid":"48b94f01-5530-42cc-bf2d-75d5958ed48a","zaak":"http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd","statustype":"http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47","datumStatusGezet":"2026-05-26T10:56:34.466390Z","statustoelichting":"","indicatieLaatstGezetteStatus":true,"gezetdoor":null,"zaakinformatieobjecten":[]}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '479' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/statussen/48b94f01-5530-42cc-bf2d-75d5958ed48a + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: '{"informatieobjecttype": "http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71", + "bronorganisatie": "000000000", "creatiedatum": "2026-05-26", "titel": "test_file.txt", + "auteur": "Aanvrager", "taal": "nld", "formaat": "application/text", "inhoud": + "VGhpcyBpcyBleGFtcGxlIGNvbnRlbnQu", "status": "definitief", "bestandsnaam": + "test_file.txt", "ontvangstdatum": "2024-11-09", "beschrijving": "Bijgevoegd + document", "indicatieGebruiksrecht": false, "bestandsomvang": 24}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '510' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten + response: + body: + string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/a1d18cc1-717d-4457-9154-3c3028267e30","identificatie":"DOCUMENT-2026-0000000023","bronorganisatie":"000000000","creatiedatum":"2026-05-26","titel":"test_file.txt","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"application/text","taal":"nld","versie":1,"beginRegistratie":"2026-05-26T10:56:34.691021Z","bestandsnaam":"test_file.txt","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/a1d18cc1-717d-4457-9154-3c3028267e30/download?versie=1","bestandsomvang":24,"link":"","beschrijving":"Bijgevoegd + document","ontvangstdatum":"2024-11-09","verzenddatum":null,"indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":{"soort":"","datum":null},"integriteit":{"algoritme":"","waarde":"","datum":null},"informatieobjecttype":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","locked":false,"bestandsdelen":[],"trefwoorden":[],"lock":""}' + headers: + API-version: + - 1.4.2 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1046' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/a1d18cc1-717d-4457-9154-3c3028267e30 + Referrer-Policy: + - same-origin + Vary: + - origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd", + "informatieobject": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/a1d18cc1-717d-4457-9154-3c3028267e30"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '219' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/zaakinformatieobjecten + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/8fb45a24-7aa4-448d-9367-4913e3e894cd","uuid":"8fb45a24-7aa4-448d-9367-4913e3e894cd","informatieobject":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/a1d18cc1-717d-4457-9154-3c3028267e30","zaak":"http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd","aardRelatieWeergave":"Hoort + bij, omgekeerd: kent","titel":"","beschrijving":"","registratiedatum":"2026-05-26T10:56:34.813127Z","vernietigingsdatum":null,"status":null}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '534' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/8fb45a24-7aa4-448d-9367-4913e3e894cd + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: '{"informatieobjecttype": "http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71", + "bronorganisatie": "000000000", "creatiedatum": "2026-05-26", "titel": "Public + form name (JSON)", "auteur": "Aanvrager", "taal": "nld", "formaat": "application/json", + "inhoud": "eyJ2YWx1ZXMiOiB7InNvbWVUZXh0IjogIkZvbyIsICJmaWxlIjogWyJodHRwOi8vbG9jYWxob3N0OjgwMDMvZG9jdW1lbnRlbi9hcGkvdjEvZW5rZWx2b3VkaWdpbmZvcm1hdGllb2JqZWN0ZW4vYTFkMThjYzEtNzE3ZC00NDU3LTkxNTQtM2MzMDI4MjY3ZTMwIl0sICJlZGl0Z3JpZCI6IFt7InRpbWUiOiAiMTI6MzQ6NTYifV0sICJub3ciOiAiMjAyNi0wNS0yNlQxMDo1NjowMFoiLCAidG9kYXkiOiAiMjAyNi0wNS0yNiIsICJjdXJyZW50X3llYXIiOiAyMDI2LCAiZW52aXJvbm1lbnQiOiAiZGV2ZWxvcG1lbnQiLCAiZm9ybV9uYW1lIjogIlB1YmxpYyBmb3JtIG5hbWUiLCAiZm9ybV9pZCI6ICJhNmIxNWEwYy01NmUwLTQ5ZjEtYmViZi04NGI0NDAxMzdjZWUiLCAic3VibWlzc2lvbl9pZCI6ICI5YzdhOTgwMS01ZGJkLTQyODAtODkxYi01MjU5MjFjNmYxYzEiLCAibGFuZ3VhZ2VfY29kZSI6ICJubCIsICJhdXRoIjogeyJwbHVnaW4iOiAiZGlnaWQiLCAiYXR0cmlidXRlIjogImJzbiIsICJ2YWx1ZSI6ICIxMTEyMjIzMzMiLCAiYWRkaXRpb25hbF9jbGFpbXMiOiB7fX0sICJhdXRoX3R5cGUiOiAiYnNuIiwgImF1dGhfYnNuIjogIjExMTIyMjMzMyIsICJhdXRoX2t2ayI6ICIiLCAiYXV0aF9wc2V1ZG8iOiAiIiwgImF1dGhfYWRkaXRpb25hbF9jbGFpbXMiOiB7fSwgImF1dGhfY29udGV4dCI6IHsic291cmNlIjogImRpZ2lkIiwgImxldmVsT2ZBc3N1cmFuY2UiOiAidXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOmFjOmNsYXNzZXM6TW9iaWxlVHdvRmFjdG9yQ29udHJhY3QiLCAiYXV0aG9yaXplZSI6IHsibGVnYWxTdWJqZWN0IjogeyJpZGVudGlmaWVyVHlwZSI6ICJic24iLCAiaWRlbnRpZmllciI6ICIxMTEyMjIzMzMifX19LCAiYXV0aF9jb250ZXh0X3NvdXJjZSI6ICJkaWdpZCIsICJhdXRoX2NvbnRleHRfbG9hIjogInVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphYzpjbGFzc2VzOk1vYmlsZVR3b0ZhY3RvckNvbnRyYWN0IiwgImF1dGhfY29udGV4dF9yZXByZXNlbnRlZV9pZGVudGlmaWVyX3R5cGUiOiAiIiwgImF1dGhfY29udGV4dF9yZXByZXNlbnRlZV9pZGVudGlmaWVyIjogIiIsICJhdXRoX2NvbnRleHRfbGVnYWxfc3ViamVjdF9pZGVudGlmaWVyX3R5cGUiOiAiYnNuIiwgImF1dGhfY29udGV4dF9sZWdhbF9zdWJqZWN0X2lkZW50aWZpZXIiOiAiMTExMjIyMzMzIiwgImF1dGhfY29udGV4dF9icmFuY2hfbnVtYmVyIjogIiIsICJhdXRoX2NvbnRleHRfYWN0aW5nX3N1YmplY3RfaWRlbnRpZmllcl90eXBlIjogIiIsICJhdXRoX2NvbnRleHRfYWN0aW5nX3N1YmplY3RfaWRlbnRpZmllciI6ICIifSwgInZhbHVlc19zY2hlbWEiOiB7IiRzY2hlbWEiOiAiaHR0cHM6Ly9qc29uLXNjaGVtYS5vcmcvZHJhZnQvMjAyMC0xMi9zY2hlbWEiLCAidHlwZSI6ICJvYmplY3QiLCAicHJvcGVydGllcyI6IHsic29tZVRleHQiOiB7InRpdGxlIjogIlNvbWUgdGV4dCIsICJ0eXBlIjogInN0cmluZyJ9LCAiZmlsZSI6IHsidGl0bGUiOiAiRmlsZSIsICJ0eXBlIjogImFycmF5IiwgIml0ZW1zIjogeyJ0eXBlIjogInN0cmluZyIsICJmb3JtYXQiOiAidXJpIn19LCAiZWRpdGdyaWQiOiB7InRpdGxlIjogIkVkaXRncmlkIiwgInR5cGUiOiAiYXJyYXkiLCAiaXRlbXMiOiB7InR5cGUiOiAib2JqZWN0IiwgInByb3BlcnRpZXMiOiB7InRpbWUiOiB7InRpdGxlIjogIlRpbWUiLCAidHlwZSI6ICJzdHJpbmciLCAiZm9ybWF0IjogInRpbWUifX0sICJyZXF1aXJlZCI6IFsidGltZSJdLCAiYWRkaXRpb25hbFByb3BlcnRpZXMiOiBmYWxzZX19fSwgInJlcXVpcmVkIjogWyJzb21lVGV4dCIsICJmaWxlIiwgImVkaXRncmlkIl0sICJhZGRpdGlvbmFsUHJvcGVydGllcyI6IGZhbHNlfX0=", + "status": "definitief", "bestandsnaam": "openforms-Public form name (JSON).json", + "ontvangstdatum": null, "beschrijving": "Ingezonden formulier", "indicatieGebruiksrecht": + false, "bestandsomvang": 1865}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '2996' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten + response: + body: + string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/8cc204f1-81a4-4ff8-bb10-79ce6f0be10c","identificatie":"DOCUMENT-2026-0000000024","bronorganisatie":"000000000","creatiedatum":"2026-05-26","titel":"Public + form name (JSON)","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"application/json","taal":"nld","versie":1,"beginRegistratie":"2026-05-26T10:56:34.926861Z","bestandsnaam":"openforms-Public + form name (JSON).json","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/8cc204f1-81a4-4ff8-bb10-79ce6f0be10c/download?versie=1","bestandsomvang":1865,"link":"","beschrijving":"Ingezonden + formulier","ontvangstdatum":null,"verzenddatum":null,"indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":{"soort":"","datum":null},"integriteit":{"algoritme":"","waarde":"","datum":null},"informatieobjecttype":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","locked":false,"bestandsdelen":[],"trefwoorden":[],"lock":""}' + headers: + API-version: + - 1.4.2 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1076' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/8cc204f1-81a4-4ff8-bb10-79ce6f0be10c + Referrer-Policy: + - same-origin + Vary: + - origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd", + "informatieobject": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/8cc204f1-81a4-4ff8-bb10-79ce6f0be10c"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '219' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/zaakinformatieobjecten + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/f1e53497-fa09-45c4-aff2-64ce52699f4f","uuid":"f1e53497-fa09-45c4-aff2-64ce52699f4f","informatieobject":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/8cc204f1-81a4-4ff8-bb10-79ce6f0be10c","zaak":"http://localhost:8003/zaken/api/v1/zaken/62f08554-ef5d-490e-b635-6b66fb194dbd","aardRelatieWeergave":"Hoort + bij, omgekeerd: kent","titel":"","beschrijving":"","registratiedatum":"2026-05-26T10:56:35.037070Z","vernietigingsdatum":null,"status":null}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '534' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/f1e53497-fa09-45c4-aff2-64ce52699f4f + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +version: 1 diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_no_summary_documents.yaml b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_no_summary_documents.yaml new file mode 100644 index 0000000000..faaf976748 --- /dev/null +++ b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_no_summary_documents.yaml @@ -0,0 +1,429 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=TEST&rsin=000000000 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","domein":"TEST","rsin":"000000000","contactpersoonBeheerNaam":"Test + name","contactpersoonBeheerTelefoonnummer":"","contactpersoonBeheerEmailadres":"","zaaktypen":["http://localhost:8003/catalogi/api/v1/zaaktypen/1f41885e-23fc-4462-bbc8-80be4ae484dc","http://localhost:8003/catalogi/api/v1/zaaktypen/b79d9c2f-5ec4-4e23-bb66-ec6dd959a400","http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","http://localhost:8003/catalogi/api/v1/zaaktypen/fcc3499a-04d4-421c-b115-7e3cba2127ac","http://localhost:8003/catalogi/api/v1/zaaktypen/6cc5c7eb-9adf-4262-98ab-1b26b738a5ae"],"besluittypen":[],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7a474713-0833-402a-8441-e467c08ac55b","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/b2d83b94-9b9b-4e80-a82f-73ff993c62f3","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"naam":"Test + catalog","versie":"","begindatumVersie":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1345' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/zaaktypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2Fbd58635c-793e-446d-a7e0-460d7b04829d&identificatie=ZT-001&datumGeldigheid=2024-11-09 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","identificatie":"ZT-001","omschrijving":"Test","omschrijvingGeneriek":"","vertrouwelijkheidaanduiding":"intern","doel":"testen","aanleiding":"integratietests","toelichting":"","indicatieInternOfExtern":"intern","handelingInitiator":"Formulier + indienen","onderwerp":"Testformulier","handelingBehandelaar":"Controleren","doorlooptijd":"P1D","servicenorm":null,"opschortingEnAanhoudingMogelijk":false,"verlengingMogelijk":false,"verlengingstermijn":null,"trefwoorden":[],"publicatieIndicatie":false,"publicatietekst":"","verantwoordingsrelatie":[],"productenOfDiensten":["http://localhost:81/product/1234abcd-12ab-34cd-56ef-12345abcde10"],"selectielijstProcestype":"https://selectielijst.openzaak.nl/api/v1/procestypen/aa8aa2fd-b9c6-4e34-9a6c-58a677f60ea0","referentieproces":{"naam":"Testen","link":""},"concept":false,"verantwoordelijke":"Ontwikkelaar","beginGeldigheid":"2024-10-31","eindeGeldigheid":null,"versiedatum":"2024-10-31","beginObject":"2023-01-01","eindeObject":null,"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","statustypen":["http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47"],"resultaattypen":["http://localhost:8003/catalogi/api/v1/resultaattypen/e84e6028-c52a-420b-a098-d10897395c52"],"eigenschappen":["http://localhost:8003/catalogi/api/v1/eigenschappen/3a094e33-7a20-4018-bd60-3c15d06a1555","http://localhost:8003/catalogi/api/v1/eigenschappen/f376c43d-97f6-423c-a25c-9264142db235"],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"roltypen":["http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","http://localhost:8003/catalogi/api/v1/roltypen/d44d68c2-1e06-461e-9657-adf174a922fb"],"besluittypen":[],"deelzaaktypen":[],"gerelateerdeZaaktypen":[],"zaakobjecttypen":[]}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '2325' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"zaaktype": "http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774", + "bronorganisatie": "000000000", "verantwoordelijkeOrganisatie": "000000000", + "registratiedatum": "2026-05-12", "startdatum": "2026-05-12", "productenOfDiensten": + [], "omschrijving": "Public form name", "toelichting": "Aangemaakt door Open + Formulieren", "betalingsindicatie": "nvt"}' + headers: + Accept: + - '*/*' + Accept-Crs: + - EPSG:4326 + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Crs: + - EPSG:4326 + Content-Length: + - '382' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/zaken + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/zaken/0f8670a0-dc02-4817-8f85-7154dfea4ef6","uuid":"0f8670a0-dc02-4817-8f85-7154dfea4ef6","identificatie":"ZAAK-2026-0000000004","bronorganisatie":"000000000","omschrijving":"Public + form name","toelichting":"Aangemaakt door Open Formulieren","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","registratiedatum":"2026-05-12","verantwoordelijkeOrganisatie":"000000000","startdatum":"2026-05-12","einddatum":null,"einddatumGepland":null,"uiterlijkeEinddatumAfdoening":null,"publicatiedatum":null,"communicatiekanaal":"","communicatiekanaalNaam":"","productenOfDiensten":[],"vertrouwelijkheidaanduiding":"intern","betalingsindicatie":"nvt","betalingsindicatieWeergave":"Er + is geen sprake van te betalen, met de zaak gemoeide, kosten.","laatsteBetaaldatum":null,"zaakgeometrie":null,"verlenging":null,"opschorting":{"indicatie":false,"reden":""},"selectielijstklasse":"","hoofdzaak":null,"deelzaken":[],"relevanteAndereZaken":[],"eigenschappen":[],"rollen":[],"status":null,"zaakinformatieobjecten":[],"zaakobjecten":[],"kenmerken":[],"archiefnominatie":null,"archiefstatus":"nog_te_archiveren","archiefactiedatum":null,"resultaat":null,"opdrachtgevendeOrganisatie":"","processobjectaard":"","startdatumBewaartermijn":null,"processobject":{"datumkenmerk":"","identificatie":"","objecttype":"","registratie":""}}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Crs: + - EPSG:4326 + Content-Length: + - '1397' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/zaken/0f8670a0-dc02-4817-8f85-7154dfea4ef6 + Referrer-Policy: + - same-origin + Vary: + - origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=TEST&rsin=000000000 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","domein":"TEST","rsin":"000000000","contactpersoonBeheerNaam":"Test + name","contactpersoonBeheerTelefoonnummer":"","contactpersoonBeheerEmailadres":"","zaaktypen":["http://localhost:8003/catalogi/api/v1/zaaktypen/1f41885e-23fc-4462-bbc8-80be4ae484dc","http://localhost:8003/catalogi/api/v1/zaaktypen/b79d9c2f-5ec4-4e23-bb66-ec6dd959a400","http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","http://localhost:8003/catalogi/api/v1/zaaktypen/fcc3499a-04d4-421c-b115-7e3cba2127ac","http://localhost:8003/catalogi/api/v1/zaaktypen/6cc5c7eb-9adf-4262-98ab-1b26b738a5ae"],"besluittypen":[],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7a474713-0833-402a-8441-e467c08ac55b","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/b2d83b94-9b9b-4e80-a82f-73ff993c62f3","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"naam":"Test + catalog","versie":"","begindatumVersie":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1345' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/informatieobjecttypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2Fbd58635c-793e-446d-a7e0-460d7b04829d&omschrijving=PDF+Informatieobjecttype&datumGeldigheid=2024-11-09 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","omschrijving":"PDF + Informatieobjecttype","vertrouwelijkheidaanduiding":"openbaar","beginGeldigheid":"2024-07-11","eindeGeldigheid":null,"concept":false,"besluittypen":[],"informatieobjectcategorie":"Test + category","trefwoord":[],"omschrijvingGeneriek":{"informatieobjecttypeOmschrijvingGeneriek":"","definitieInformatieobjecttypeOmschrijvingGeneriek":"","herkomstInformatieobjecttypeOmschrijvingGeneriek":"","hierarchieInformatieobjecttypeOmschrijvingGeneriek":"","opmerkingInformatieobjecttypeOmschrijvingGeneriek":""},"zaaktypen":["http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774"],"beginObject":"2024-03-19","eindeObject":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '928' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774 + response: + body: + string: '{"url":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","identificatie":"ZT-001","omschrijving":"Test","omschrijvingGeneriek":"","vertrouwelijkheidaanduiding":"intern","doel":"testen","aanleiding":"integratietests","toelichting":"","indicatieInternOfExtern":"intern","handelingInitiator":"Formulier + indienen","onderwerp":"Testformulier","handelingBehandelaar":"Controleren","doorlooptijd":"P1D","servicenorm":null,"opschortingEnAanhoudingMogelijk":false,"verlengingMogelijk":false,"verlengingstermijn":null,"trefwoorden":[],"publicatieIndicatie":false,"publicatietekst":"","verantwoordingsrelatie":[],"productenOfDiensten":["http://localhost:81/product/1234abcd-12ab-34cd-56ef-12345abcde10"],"selectielijstProcestype":"https://selectielijst.openzaak.nl/api/v1/procestypen/aa8aa2fd-b9c6-4e34-9a6c-58a677f60ea0","referentieproces":{"naam":"Testen","link":""},"concept":false,"verantwoordelijke":"Ontwikkelaar","beginGeldigheid":"2024-10-31","eindeGeldigheid":null,"versiedatum":"2024-10-31","beginObject":"2023-01-01","eindeObject":null,"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","statustypen":["http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47"],"resultaattypen":["http://localhost:8003/catalogi/api/v1/resultaattypen/e84e6028-c52a-420b-a098-d10897395c52"],"eigenschappen":["http://localhost:8003/catalogi/api/v1/eigenschappen/3a094e33-7a20-4018-bd60-3c15d06a1555","http://localhost:8003/catalogi/api/v1/eigenschappen/f376c43d-97f6-423c-a25c-9264142db235"],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"roltypen":["http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","http://localhost:8003/catalogi/api/v1/roltypen/d44d68c2-1e06-461e-9657-adf174a922fb"],"besluittypen":[],"deelzaaktypen":[],"gerelateerdeZaaktypen":[],"zaakobjecttypen":[]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, PUT, PATCH, DELETE, HEAD, OPTIONS + Content-Length: + - '2273' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + ETag: + - '"14cb0d757ba364562edbb66412778d30"' + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/roltypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2Ff609b6fe-449a-46dc-a0af-de55dc5f6774&omschrijvingGeneriek=initiator + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","zaaktypeIdentificatie":"ZT-001","omschrijving":"Initiator","omschrijvingGeneriek":"initiator","catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","beginGeldigheid":null,"eindeGeldigheid":null,"beginObject":null,"eindeObject":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '524' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/0f8670a0-dc02-4817-8f85-7154dfea4ef6", + "betrokkeneType": "natuurlijk_persoon", "roltype": "http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8", + "roltoelichting": "inzender formulier", "indicatieMachtiging": "", "betrokkeneIdentificatie": + {"inpBsn": "111222333", "vestigingsNummer": ""}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '370' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/rollen + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/95712d89-7b45-4ac6-85dd-023fa926cac7","uuid":"95712d89-7b45-4ac6-85dd-023fa926cac7","zaak":"http://localhost:8003/zaken/api/v1/zaken/0f8670a0-dc02-4817-8f85-7154dfea4ef6","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","omschrijving":"Initiator","omschrijvingGeneriek":"initiator","roltoelichting":"inzender + formulier","registratiedatum":"2026-05-12T10:45:58.915946Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"111222333","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"","geslachtsaanduiding":"","geboortedatum":"","verblijfsadres":null,"subVerblijfBuitenland":null}}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '935' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/rollen/95712d89-7b45-4ac6-85dd-023fa926cac7 + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/statustypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2Ff609b6fe-449a-46dc-a0af-de55dc5f6774 + response: + body: + string: '{"count":2,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47","omschrijving":"Ontvangen","omschrijvingGeneriek":"","statustekst":"","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","zaaktypeIdentificatie":"ZT-001","volgnummer":1,"isEindstatus":false,"informeren":false,"doorlooptijd":null,"toelichting":null,"checklistitemStatustype":[],"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","eigenschappen":[],"zaakobjecttypen":[],"beginGeldigheid":null,"eindeGeldigheid":null,"beginObject":null,"eindeObject":null},{"url":"http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","omschrijving":"Afgerond","omschrijvingGeneriek":"","statustekst":"","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","zaaktypeIdentificatie":"ZT-001","volgnummer":2,"isEindstatus":true,"informeren":false,"doorlooptijd":null,"toelichting":null,"checklistitemStatustype":[],"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","eigenschappen":[],"zaakobjecttypen":[],"beginGeldigheid":null,"eindeGeldigheid":null,"beginObject":null,"eindeObject":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1343' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/0f8670a0-dc02-4817-8f85-7154dfea4ef6", + "statustype": "http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47", + "datumStatusGezet": "2026-05-12T10:45:58.952489+00:00", "statustoelichting": + ""}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '274' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/statussen + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/statussen/c8539947-794e-4bdc-b663-6dd72dcd884e","uuid":"c8539947-794e-4bdc-b663-6dd72dcd884e","zaak":"http://localhost:8003/zaken/api/v1/zaken/0f8670a0-dc02-4817-8f85-7154dfea4ef6","statustype":"http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47","datumStatusGezet":"2026-05-12T10:45:58.952489Z","statustoelichting":"","indicatieLaatstGezetteStatus":true,"gezetdoor":null,"zaakinformatieobjecten":[]}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '479' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/statussen/c8539947-794e-4bdc-b663-6dd72dcd884e + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +version: 1 diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_single_document_summary.yaml b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_single_document_summary.yaml new file mode 100644 index 0000000000..d206fa7e7c --- /dev/null +++ b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_single_document_summary.yaml @@ -0,0 +1,527 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=TEST&rsin=000000000 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","domein":"TEST","rsin":"000000000","contactpersoonBeheerNaam":"Test + name","contactpersoonBeheerTelefoonnummer":"","contactpersoonBeheerEmailadres":"","zaaktypen":["http://localhost:8003/catalogi/api/v1/zaaktypen/1f41885e-23fc-4462-bbc8-80be4ae484dc","http://localhost:8003/catalogi/api/v1/zaaktypen/b79d9c2f-5ec4-4e23-bb66-ec6dd959a400","http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","http://localhost:8003/catalogi/api/v1/zaaktypen/fcc3499a-04d4-421c-b115-7e3cba2127ac","http://localhost:8003/catalogi/api/v1/zaaktypen/6cc5c7eb-9adf-4262-98ab-1b26b738a5ae"],"besluittypen":[],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7a474713-0833-402a-8441-e467c08ac55b","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/b2d83b94-9b9b-4e80-a82f-73ff993c62f3","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"naam":"Test + catalog","versie":"","begindatumVersie":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1345' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/zaaktypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2Fbd58635c-793e-446d-a7e0-460d7b04829d&identificatie=ZT-001&datumGeldigheid=2024-11-09 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","identificatie":"ZT-001","omschrijving":"Test","omschrijvingGeneriek":"","vertrouwelijkheidaanduiding":"intern","doel":"testen","aanleiding":"integratietests","toelichting":"","indicatieInternOfExtern":"intern","handelingInitiator":"Formulier + indienen","onderwerp":"Testformulier","handelingBehandelaar":"Controleren","doorlooptijd":"P1D","servicenorm":null,"opschortingEnAanhoudingMogelijk":false,"verlengingMogelijk":false,"verlengingstermijn":null,"trefwoorden":[],"publicatieIndicatie":false,"publicatietekst":"","verantwoordingsrelatie":[],"productenOfDiensten":["http://localhost:81/product/1234abcd-12ab-34cd-56ef-12345abcde10"],"selectielijstProcestype":"https://selectielijst.openzaak.nl/api/v1/procestypen/aa8aa2fd-b9c6-4e34-9a6c-58a677f60ea0","referentieproces":{"naam":"Testen","link":""},"concept":false,"verantwoordelijke":"Ontwikkelaar","beginGeldigheid":"2024-10-31","eindeGeldigheid":null,"versiedatum":"2024-10-31","beginObject":"2023-01-01","eindeObject":null,"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","statustypen":["http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47"],"resultaattypen":["http://localhost:8003/catalogi/api/v1/resultaattypen/e84e6028-c52a-420b-a098-d10897395c52"],"eigenschappen":["http://localhost:8003/catalogi/api/v1/eigenschappen/3a094e33-7a20-4018-bd60-3c15d06a1555","http://localhost:8003/catalogi/api/v1/eigenschappen/f376c43d-97f6-423c-a25c-9264142db235"],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"roltypen":["http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","http://localhost:8003/catalogi/api/v1/roltypen/d44d68c2-1e06-461e-9657-adf174a922fb"],"besluittypen":[],"deelzaaktypen":[],"gerelateerdeZaaktypen":[],"zaakobjecttypen":[]}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '2325' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"zaaktype": "http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774", + "bronorganisatie": "000000000", "verantwoordelijkeOrganisatie": "000000000", + "registratiedatum": "2026-05-12", "startdatum": "2026-05-12", "productenOfDiensten": + [], "omschrijving": "Public form name", "toelichting": "Aangemaakt door Open + Formulieren", "betalingsindicatie": "nvt"}' + headers: + Accept: + - '*/*' + Accept-Crs: + - EPSG:4326 + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Crs: + - EPSG:4326 + Content-Length: + - '382' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/zaken + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/zaken/db051df4-d821-46f2-b268-e39456262305","uuid":"db051df4-d821-46f2-b268-e39456262305","identificatie":"ZAAK-2026-0000000005","bronorganisatie":"000000000","omschrijving":"Public + form name","toelichting":"Aangemaakt door Open Formulieren","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","registratiedatum":"2026-05-12","verantwoordelijkeOrganisatie":"000000000","startdatum":"2026-05-12","einddatum":null,"einddatumGepland":null,"uiterlijkeEinddatumAfdoening":null,"publicatiedatum":null,"communicatiekanaal":"","communicatiekanaalNaam":"","productenOfDiensten":[],"vertrouwelijkheidaanduiding":"intern","betalingsindicatie":"nvt","betalingsindicatieWeergave":"Er + is geen sprake van te betalen, met de zaak gemoeide, kosten.","laatsteBetaaldatum":null,"zaakgeometrie":null,"verlenging":null,"opschorting":{"indicatie":false,"reden":""},"selectielijstklasse":"","hoofdzaak":null,"deelzaken":[],"relevanteAndereZaken":[],"eigenschappen":[],"rollen":[],"status":null,"zaakinformatieobjecten":[],"zaakobjecten":[],"kenmerken":[],"archiefnominatie":null,"archiefstatus":"nog_te_archiveren","archiefactiedatum":null,"resultaat":null,"opdrachtgevendeOrganisatie":"","processobjectaard":"","startdatumBewaartermijn":null,"processobject":{"datumkenmerk":"","identificatie":"","objecttype":"","registratie":""}}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Crs: + - EPSG:4326 + Content-Length: + - '1397' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/zaken/db051df4-d821-46f2-b268-e39456262305 + Referrer-Policy: + - same-origin + Vary: + - origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=TEST&rsin=000000000 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","domein":"TEST","rsin":"000000000","contactpersoonBeheerNaam":"Test + name","contactpersoonBeheerTelefoonnummer":"","contactpersoonBeheerEmailadres":"","zaaktypen":["http://localhost:8003/catalogi/api/v1/zaaktypen/1f41885e-23fc-4462-bbc8-80be4ae484dc","http://localhost:8003/catalogi/api/v1/zaaktypen/b79d9c2f-5ec4-4e23-bb66-ec6dd959a400","http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","http://localhost:8003/catalogi/api/v1/zaaktypen/fcc3499a-04d4-421c-b115-7e3cba2127ac","http://localhost:8003/catalogi/api/v1/zaaktypen/6cc5c7eb-9adf-4262-98ab-1b26b738a5ae"],"besluittypen":[],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7a474713-0833-402a-8441-e467c08ac55b","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/b2d83b94-9b9b-4e80-a82f-73ff993c62f3","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"naam":"Test + catalog","versie":"","begindatumVersie":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1345' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/informatieobjecttypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2Fbd58635c-793e-446d-a7e0-460d7b04829d&omschrijving=PDF+Informatieobjecttype&datumGeldigheid=2024-11-09 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","omschrijving":"PDF + Informatieobjecttype","vertrouwelijkheidaanduiding":"openbaar","beginGeldigheid":"2024-07-11","eindeGeldigheid":null,"concept":false,"besluittypen":[],"informatieobjectcategorie":"Test + category","trefwoord":[],"omschrijvingGeneriek":{"informatieobjecttypeOmschrijvingGeneriek":"","definitieInformatieobjecttypeOmschrijvingGeneriek":"","herkomstInformatieobjecttypeOmschrijvingGeneriek":"","hierarchieInformatieobjecttypeOmschrijvingGeneriek":"","opmerkingInformatieobjecttypeOmschrijvingGeneriek":""},"zaaktypen":["http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774"],"beginObject":"2024-03-19","eindeObject":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '928' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774 + response: + body: + string: '{"url":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","identificatie":"ZT-001","omschrijving":"Test","omschrijvingGeneriek":"","vertrouwelijkheidaanduiding":"intern","doel":"testen","aanleiding":"integratietests","toelichting":"","indicatieInternOfExtern":"intern","handelingInitiator":"Formulier + indienen","onderwerp":"Testformulier","handelingBehandelaar":"Controleren","doorlooptijd":"P1D","servicenorm":null,"opschortingEnAanhoudingMogelijk":false,"verlengingMogelijk":false,"verlengingstermijn":null,"trefwoorden":[],"publicatieIndicatie":false,"publicatietekst":"","verantwoordingsrelatie":[],"productenOfDiensten":["http://localhost:81/product/1234abcd-12ab-34cd-56ef-12345abcde10"],"selectielijstProcestype":"https://selectielijst.openzaak.nl/api/v1/procestypen/aa8aa2fd-b9c6-4e34-9a6c-58a677f60ea0","referentieproces":{"naam":"Testen","link":""},"concept":false,"verantwoordelijke":"Ontwikkelaar","beginGeldigheid":"2024-10-31","eindeGeldigheid":null,"versiedatum":"2024-10-31","beginObject":"2023-01-01","eindeObject":null,"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","statustypen":["http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47"],"resultaattypen":["http://localhost:8003/catalogi/api/v1/resultaattypen/e84e6028-c52a-420b-a098-d10897395c52"],"eigenschappen":["http://localhost:8003/catalogi/api/v1/eigenschappen/3a094e33-7a20-4018-bd60-3c15d06a1555","http://localhost:8003/catalogi/api/v1/eigenschappen/f376c43d-97f6-423c-a25c-9264142db235"],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7755ab0f-9e37-4834-8bbf-158f9f2da38e"],"roltypen":["http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","http://localhost:8003/catalogi/api/v1/roltypen/d44d68c2-1e06-461e-9657-adf174a922fb"],"besluittypen":[],"deelzaaktypen":[],"gerelateerdeZaaktypen":[],"zaakobjecttypen":[]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, PUT, PATCH, DELETE, HEAD, OPTIONS + Content-Length: + - '2273' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + ETag: + - '"14cb0d757ba364562edbb66412778d30"' + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"informatieobjecttype": "http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71", + "bronorganisatie": "000000000", "creatiedatum": "2026-05-12", "titel": "Public + form name", "auteur": "Aanvrager", "taal": "nld", "formaat": "application/pdf", + "inhoud": "", "status": "definitief", "bestandsnaam": "open-forms-Public form + name.pdf", "ontvangstdatum": null, "beschrijving": "Ingezonden formulier", "indicatieGebruiksrecht": + false, "bestandsomvang": 0}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '490' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten + response: + body: + string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/66a1d68f-8375-4199-a850-1f32c99071e6","identificatie":"DOCUMENT-2026-0000000007","bronorganisatie":"000000000","creatiedatum":"2026-05-12","titel":"Public + form name","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"application/pdf","taal":"nld","versie":1,"beginRegistratie":"2026-05-12T10:49:33.450517Z","bestandsnaam":"open-forms-Public + form name.pdf","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/66a1d68f-8375-4199-a850-1f32c99071e6/download?versie=1","bestandsomvang":0,"link":"","beschrijving":"Ingezonden + formulier","ontvangstdatum":null,"verzenddatum":null,"indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":{"soort":"","datum":null},"integriteit":{"algoritme":"","waarde":"","datum":null},"informatieobjecttype":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71","locked":false,"bestandsdelen":[],"trefwoorden":[],"lock":""}' + headers: + API-version: + - 1.4.2 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1058' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/66a1d68f-8375-4199-a850-1f32c99071e6 + Referrer-Policy: + - same-origin + Vary: + - origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/db051df4-d821-46f2-b268-e39456262305", + "informatieobject": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/66a1d68f-8375-4199-a850-1f32c99071e6"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '219' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/zaakinformatieobjecten + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/8e3449d9-681b-4545-9f09-e0a62d9b19bf","uuid":"8e3449d9-681b-4545-9f09-e0a62d9b19bf","informatieobject":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/66a1d68f-8375-4199-a850-1f32c99071e6","zaak":"http://localhost:8003/zaken/api/v1/zaken/db051df4-d821-46f2-b268-e39456262305","aardRelatieWeergave":"Hoort + bij, omgekeerd: kent","titel":"","beschrijving":"","registratiedatum":"2026-05-12T10:49:33.498783Z","vernietigingsdatum":null,"status":null}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '534' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/8e3449d9-681b-4545-9f09-e0a62d9b19bf + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/roltypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2Ff609b6fe-449a-46dc-a0af-de55dc5f6774&omschrijvingGeneriek=initiator + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","zaaktypeIdentificatie":"ZT-001","omschrijving":"Initiator","omschrijvingGeneriek":"initiator","catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","beginGeldigheid":null,"eindeGeldigheid":null,"beginObject":null,"eindeObject":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '524' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/db051df4-d821-46f2-b268-e39456262305", + "betrokkeneType": "natuurlijk_persoon", "roltype": "http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8", + "roltoelichting": "inzender formulier", "indicatieMachtiging": "", "betrokkeneIdentificatie": + {"inpBsn": "111222333", "vestigingsNummer": ""}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '370' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/rollen + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/02ca7ee2-a303-4ac7-a4b9-c767d7bf7b86","uuid":"02ca7ee2-a303-4ac7-a4b9-c767d7bf7b86","zaak":"http://localhost:8003/zaken/api/v1/zaken/db051df4-d821-46f2-b268-e39456262305","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","omschrijving":"Initiator","omschrijvingGeneriek":"initiator","roltoelichting":"inzender + formulier","registratiedatum":"2026-05-12T10:49:33.562959Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"111222333","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"","geslachtsaanduiding":"","geboortedatum":"","verblijfsadres":null,"subVerblijfBuitenland":null}}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '935' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/rollen/02ca7ee2-a303-4ac7-a4b9-c767d7bf7b86 + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - python-requests/2.33.0 + method: GET + uri: http://localhost:8003/catalogi/api/v1/statustypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2Ff609b6fe-449a-46dc-a0af-de55dc5f6774 + response: + body: + string: '{"count":2,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47","omschrijving":"Ontvangen","omschrijvingGeneriek":"","statustekst":"","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","zaaktypeIdentificatie":"ZT-001","volgnummer":1,"isEindstatus":false,"informeren":false,"doorlooptijd":null,"toelichting":null,"checklistitemStatustype":[],"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","eigenschappen":[],"zaakobjecttypen":[],"beginGeldigheid":null,"eindeGeldigheid":null,"beginObject":null,"eindeObject":null},{"url":"http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","omschrijving":"Afgerond","omschrijvingGeneriek":"","statustekst":"","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","zaaktypeIdentificatie":"ZT-001","volgnummer":2,"isEindstatus":true,"informeren":false,"doorlooptijd":null,"toelichting":null,"checklistitemStatustype":[],"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","eigenschappen":[],"zaakobjecttypen":[],"beginGeldigheid":null,"eindeGeldigheid":null,"beginObject":null,"eindeObject":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1343' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/db051df4-d821-46f2-b268-e39456262305", + "statustype": "http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47", + "datumStatusGezet": "2026-05-12T10:49:33.598003+00:00", "statustoelichting": + ""}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '274' + Content-Type: + - application/json + User-Agent: + - python-requests/2.33.0 + method: POST + uri: http://localhost:8003/zaken/api/v1/statussen + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/statussen/14b1df1f-3bca-4211-aaa7-9c10f62e229a","uuid":"14b1df1f-3bca-4211-aaa7-9c10f62e229a","zaak":"http://localhost:8003/zaken/api/v1/zaken/db051df4-d821-46f2-b268-e39456262305","statustype":"http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47","datumStatusGezet":"2026-05-12T10:49:33.598003Z","statustoelichting":"","indicatieLaatstGezetteStatus":true,"gezetdoor":null,"zaakinformatieobjecten":[]}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '479' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/statussen/14b1df1f-3bca-4211-aaa7-9c10f62e229a + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +version: 1 diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_children_component_and_selection_disabled.yaml b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_children_component_and_selection_disabled.yaml index 6e85617d02..d10c43bb6e 100644 --- a/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_children_component_and_selection_disabled.yaml +++ b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_children_component_and_selection_disabled.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 x-doelbinding: - '' x-gebruiker: @@ -37,7 +37,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Tue, 17 Mar 2026 11:41:24 GMT + - Thu, 21 May 2026 12:47:42 GMT Server: - Kestrel status: @@ -58,7 +58,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 x-doelbinding: - '' x-gebruiker: @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Tue, 17 Mar 2026 11:41:24 GMT + - Thu, 21 May 2026 12:47:44 GMT Server: - Kestrel status: @@ -94,7 +94,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=CHILD&rsin=000000000 response: @@ -134,7 +134,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/zaaktypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2Fe035387e-6374-4eb9-b3d1-416294402bae&identificatie=ZAAKTYPE-2020-0000000002&datumGeldigheid=2024-11-09 response: @@ -167,9 +167,9 @@ interactions: - request: body: '{"zaaktype": "http://localhost:8003/catalogi/api/v1/zaaktypen/a516793a-cb5f-446d-bfa3-56077c1897be", "bronorganisatie": "000000000", "verantwoordelijkeOrganisatie": "000000000", - "registratiedatum": "2026-03-17", "startdatum": "2026-03-17", "productenOfDiensten": - [], "omschrijving": "Form 017", "toelichting": "Aangemaakt door Open Formulieren", - "betalingsindicatie": "nvt"}' + "registratiedatum": "2026-05-21", "startdatum": "2026-05-21", "productenOfDiensten": + [], "omschrijving": "Form 000", "toelichting": "", "betalingsindicatie": "nvt", + "identificatie": "OF-USLN82"}' headers: Accept: - '*/*' @@ -182,17 +182,17 @@ interactions: Content-Crs: - EPSG:4326 Content-Length: - - '374' + - '372' Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/zaken response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f","uuid":"5e452a57-fe94-4486-9a86-8db010910a5f","identificatie":"ZAAK-2026-0000000008","bronorganisatie":"000000000","omschrijving":"Form - 017","toelichting":"Aangemaakt door Open Formulieren","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/a516793a-cb5f-446d-bfa3-56077c1897be","registratiedatum":"2026-03-17","verantwoordelijkeOrganisatie":"000000000","startdatum":"2026-03-17","einddatum":null,"einddatumGepland":null,"uiterlijkeEinddatumAfdoening":null,"publicatiedatum":null,"communicatiekanaal":"","communicatiekanaalNaam":"","productenOfDiensten":[],"vertrouwelijkheidaanduiding":"openbaar","betalingsindicatie":"nvt","betalingsindicatieWeergave":"Er + string: '{"url":"http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80","uuid":"c7c21930-9451-47cc-a843-1477857beb80","identificatie":"OF-USLN82","bronorganisatie":"000000000","omschrijving":"Form + 000","toelichting":"","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/a516793a-cb5f-446d-bfa3-56077c1897be","registratiedatum":"2026-05-21","verantwoordelijkeOrganisatie":"000000000","startdatum":"2026-05-21","einddatum":null,"einddatumGepland":null,"uiterlijkeEinddatumAfdoening":null,"publicatiedatum":null,"communicatiekanaal":"","communicatiekanaalNaam":"","productenOfDiensten":[],"vertrouwelijkheidaanduiding":"openbaar","betalingsindicatie":"nvt","betalingsindicatieWeergave":"Er is geen sprake van te betalen, met de zaak gemoeide, kosten.","laatsteBetaaldatum":null,"zaakgeometrie":null,"verlenging":null,"opschorting":{"indicatie":false,"reden":""},"selectielijstklasse":"","hoofdzaak":null,"deelzaken":[],"relevanteAndereZaken":[],"eigenschappen":[],"rollen":[],"status":null,"zaakinformatieobjecten":[],"zaakobjecten":[],"kenmerken":[],"archiefnominatie":null,"archiefstatus":"nog_te_archiveren","archiefactiedatum":null,"resultaat":null,"opdrachtgevendeOrganisatie":"","processobjectaard":"","startdatumBewaartermijn":null,"processobject":{"datumkenmerk":"","identificatie":"","objecttype":"","registratie":""}}' headers: API-version: @@ -202,13 +202,13 @@ interactions: Content-Crs: - EPSG:4326 Content-Length: - - '1391' + - '1348' Content-Type: - application/json Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f + - http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80 Referrer-Policy: - same-origin Vary: @@ -230,7 +230,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=CHILD&rsin=000000000 response: @@ -270,7 +270,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/informatieobjecttypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2Fe035387e-6374-4eb9-b3d1-416294402bae&omschrijving=Children+PDF+Informatieobjecttype&datumGeldigheid=2024-11-09 response: @@ -310,7 +310,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/zaaktypen/a516793a-cb5f-446d-bfa3-56077c1897be response: @@ -344,11 +344,12 @@ interactions: message: OK - request: body: '{"informatieobjecttype": "http://localhost:8003/catalogi/api/v1/informatieobjecttypen/68ce2d9c-fe0f-49cc-a1d6-ddb3d404da35", - "bronorganisatie": "000000000", "creatiedatum": "2026-03-17", "titel": "Form - 017", "auteur": "Aanvrager", "taal": "nld", "formaat": "application/pdf", "inhoud": - "", "status": "definitief", "bestandsnaam": "open-forms-Form 017.pdf", "ontvangstdatum": + "bronorganisatie": "000000000", "creatiedatum": "2026-05-21", "titel": "Form + 000 (JSON)", "auteur": "Aanvrager", "taal": "nld", "formaat": "application/json", + "inhoud": "eyJ2YWx1ZXMiOiB7ImNoaWxkcmVuIjogW3siYnNuIjogIjk5OTk3MDEwMCIsICJmaXJzdE5hbWVzIjogIk9sbGUiLCAiaW5pdGlhbHMiOiAiTy4iLCAiYWZmaXhlcyI6ICIiLCAibGFzdE5hbWUiOiAiT29zdGluZ2giLCAiZGF0ZU9mQmlydGgiOiAiMjAyMi0wMi0wMiJ9LCB7ImJzbiI6ICI5OTk5NzAxMTIiLCAiZmlyc3ROYW1lcyI6ICJPbm5lIiwgImluaXRpYWxzIjogIk8uIiwgImFmZml4ZXMiOiAiIiwgImxhc3ROYW1lIjogIk9vc3RpbmdoIiwgImRhdGVPZkJpcnRoIjogIjIwMjItMDItMDIifV0sICJjaGlsZHJlbl9pbW11dGFibGUiOiBbeyJic24iOiAiOTk5OTcwMTAwIiwgImZpcnN0TmFtZXMiOiAiT2xsZSIsICJpbml0aWFscyI6ICJPLiIsICJhZmZpeGVzIjogIiIsICJsYXN0TmFtZSI6ICJPb3N0aW5naCIsICJkYXRlT2ZCaXJ0aCI6ICIyMDIyLTAyLTAyIiwgImRhdGVPZkJpcnRoUHJlY2lzaW9uIjogImRhdGUifSwgeyJic24iOiAiOTk5OTcwMTEyIiwgImZpcnN0TmFtZXMiOiAiT25uZSIsICJpbml0aWFscyI6ICJPLiIsICJhZmZpeGVzIjogIiIsICJsYXN0TmFtZSI6ICJPb3N0aW5naCIsICJkYXRlT2ZCaXJ0aCI6ICIyMDIyLTAyLTAyIiwgImRhdGVPZkJpcnRoUHJlY2lzaW9uIjogImRhdGUifV0sICJub3ciOiAiMjAyNi0wNS0yMVQxMjo0NzowMFoiLCAidG9kYXkiOiAiMjAyNi0wNS0yMSIsICJjdXJyZW50X3llYXIiOiAyMDI2LCAiZW52aXJvbm1lbnQiOiAiZGV2ZWxvcG1lbnQiLCAiZm9ybV9uYW1lIjogIkZvcm0gMDAwIiwgImZvcm1faWQiOiAiNmI5MWI0NTUtZTcyNS00ZjIzLTk1YjEtYmIzNDIyZTY4YTMyIiwgInN1Ym1pc3Npb25faWQiOiAiY2QxYTkxMWMtOTY0NC00MjZkLWFiNTYtMTBmNGQ1NTdkMWM4IiwgImxhbmd1YWdlX2NvZGUiOiAibmwiLCAiYXV0aCI6IHsicGx1Z2luIjogImRpZ2lkIiwgImF0dHJpYnV0ZSI6ICJic24iLCAidmFsdWUiOiAiOTk5OTcwMDk0IiwgImFkZGl0aW9uYWxfY2xhaW1zIjoge319LCAiYXV0aF90eXBlIjogImJzbiIsICJhdXRoX2JzbiI6ICI5OTk5NzAwOTQiLCAiYXV0aF9rdmsiOiAiIiwgImF1dGhfcHNldWRvIjogIiIsICJhdXRoX2FkZGl0aW9uYWxfY2xhaW1zIjoge30sICJhdXRoX2NvbnRleHQiOiB7InNvdXJjZSI6ICJkaWdpZCIsICJsZXZlbE9mQXNzdXJhbmNlIjogInVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphYzpjbGFzc2VzOk1vYmlsZVR3b0ZhY3RvckNvbnRyYWN0IiwgImF1dGhvcml6ZWUiOiB7ImxlZ2FsU3ViamVjdCI6IHsiaWRlbnRpZmllclR5cGUiOiAiYnNuIiwgImlkZW50aWZpZXIiOiAiOTk5OTcwMDk0In19fSwgImF1dGhfY29udGV4dF9zb3VyY2UiOiAiZGlnaWQiLCAiYXV0aF9jb250ZXh0X2xvYSI6ICJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpNb2JpbGVUd29GYWN0b3JDb250cmFjdCIsICJhdXRoX2NvbnRleHRfcmVwcmVzZW50ZWVfaWRlbnRpZmllcl90eXBlIjogIiIsICJhdXRoX2NvbnRleHRfcmVwcmVzZW50ZWVfaWRlbnRpZmllciI6ICIiLCAiYXV0aF9jb250ZXh0X2xlZ2FsX3N1YmplY3RfaWRlbnRpZmllcl90eXBlIjogImJzbiIsICJhdXRoX2NvbnRleHRfbGVnYWxfc3ViamVjdF9pZGVudGlmaWVyIjogIjk5OTk3MDA5NCIsICJhdXRoX2NvbnRleHRfYnJhbmNoX251bWJlciI6ICIiLCAiYXV0aF9jb250ZXh0X2FjdGluZ19zdWJqZWN0X2lkZW50aWZpZXJfdHlwZSI6ICIiLCAiYXV0aF9jb250ZXh0X2FjdGluZ19zdWJqZWN0X2lkZW50aWZpZXIiOiAiIn0sICJ2YWx1ZXNfc2NoZW1hIjogeyIkc2NoZW1hIjogImh0dHBzOi8vanNvbi1zY2hlbWEub3JnL2RyYWZ0LzIwMjAtMTIvc2NoZW1hIiwgInR5cGUiOiAib2JqZWN0IiwgInByb3BlcnRpZXMiOiB7ImNoaWxkcmVuIjogeyJ0aXRsZSI6ICJDaGlsZHJlbiIsICJ0eXBlIjogImFycmF5IiwgIml0ZW1zIjogeyJ0eXBlIjogIm9iamVjdCIsICJyZXF1aXJlZCI6IFsiYnNuIl0sICJwcm9wZXJ0aWVzIjogeyJic24iOiB7InR5cGUiOiAic3RyaW5nIiwgInBhdHRlcm4iOiAiXlxcZHs5fSQiLCAiZm9ybWF0IjogIm5sLWJzbiJ9LCAiZmlyc3ROYW1lcyI6IHsidHlwZSI6ICJzdHJpbmcifSwgImRhdGVPZkJpcnRoIjogeyJ0eXBlIjogInN0cmluZyIsICJmb3JtYXQiOiAiZGF0ZSJ9fSwgImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjogZmFsc2V9fSwgImNoaWxkcmVuX2ltbXV0YWJsZSI6IHsidHlwZSI6ICJzdHJpbmciLCAidGl0bGUiOiAiVmFyaWFibGUgMDAwIn19LCAicmVxdWlyZWQiOiBbImNoaWxkcmVuIiwgImNoaWxkcmVuX2ltbXV0YWJsZSJdLCAiYWRkaXRpb25hbFByb3BlcnRpZXMiOiBmYWxzZX19", + "status": "definitief", "bestandsnaam": "openforms-Form 000 (JSON).json", "ontvangstdatum": null, "beschrijving": "Ingezonden formulier", "indicatieGebruiksrecht": false, - "bestandsomvang": 0}' + "bestandsomvang": 2322}' headers: Accept: - '*/*' @@ -357,18 +358,18 @@ interactions: Connection: - keep-alive Content-Length: - - '474' + - '3588' Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten response: body: - string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b95a647e-4c69-48ce-8c4a-bf7ed8c7a6bf","identificatie":"DOCUMENT-2026-0000000008","bronorganisatie":"000000000","creatiedatum":"2026-03-17","titel":"Form - 017","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"application/pdf","taal":"nld","versie":1,"beginRegistratie":"2026-03-17T11:41:25.186636Z","bestandsnaam":"open-forms-Form - 017.pdf","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b95a647e-4c69-48ce-8c4a-bf7ed8c7a6bf/download?versie=1","bestandsomvang":0,"link":"","beschrijving":"Ingezonden + string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/694af954-5634-4811-a5a8-e23b31261639","identificatie":"DOCUMENT-2026-0000000015","bronorganisatie":"000000000","creatiedatum":"2026-05-21","titel":"Form + 000 (JSON)","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"application/json","taal":"nld","versie":1,"beginRegistratie":"2026-05-21T12:47:45.256843Z","bestandsnaam":"openforms-Form + 000 (JSON).json","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/694af954-5634-4811-a5a8-e23b31261639/download?versie=1","bestandsomvang":2322,"link":"","beschrijving":"Ingezonden formulier","ontvangstdatum":null,"verzenddatum":null,"indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":{"soort":"","datum":null},"integriteit":{"algoritme":"","waarde":"","datum":null},"informatieobjecttype":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/68ce2d9c-fe0f-49cc-a1d6-ddb3d404da35","locked":false,"bestandsdelen":[],"trefwoorden":[],"lock":""}' headers: API-version: @@ -376,13 +377,13 @@ interactions: Allow: - GET, POST, HEAD, OPTIONS Content-Length: - - '1042' + - '1060' Content-Type: - application/json Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b95a647e-4c69-48ce-8c4a-bf7ed8c7a6bf + - http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/694af954-5634-4811-a5a8-e23b31261639 Referrer-Policy: - same-origin Vary: @@ -395,8 +396,8 @@ interactions: code: 201 message: Created - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f", - "informatieobject": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b95a647e-4c69-48ce-8c4a-bf7ed8c7a6bf"}' + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80", + "informatieobject": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/694af954-5634-4811-a5a8-e23b31261639"}' headers: Accept: - '*/*' @@ -409,13 +410,13 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/zaakinformatieobjecten response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/fd925e2c-9896-4e6c-b80b-b56529d528ee","uuid":"fd925e2c-9896-4e6c-b80b-b56529d528ee","informatieobject":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b95a647e-4c69-48ce-8c4a-bf7ed8c7a6bf","zaak":"http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f","aardRelatieWeergave":"Hoort - bij, omgekeerd: kent","titel":"","beschrijving":"","registratiedatum":"2026-03-17T11:41:25.228270Z","vernietigingsdatum":null,"status":null}' + string: '{"url":"http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/2cdc65a9-197e-4aac-824a-d3b322e55a8d","uuid":"2cdc65a9-197e-4aac-824a-d3b322e55a8d","informatieobject":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/694af954-5634-4811-a5a8-e23b31261639","zaak":"http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80","aardRelatieWeergave":"Hoort + bij, omgekeerd: kent","titel":"","beschrijving":"","registratiedatum":"2026-05-21T12:47:45.360362Z","vernietigingsdatum":null,"status":null}' headers: API-version: - 1.5.1 @@ -428,7 +429,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/fd925e2c-9896-4e6c-b80b-b56529d528ee + - http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/2cdc65a9-197e-4aac-824a-d3b322e55a8d Referrer-Policy: - same-origin Vary: @@ -450,7 +451,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/roltypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2Fa516793a-cb5f-446d-bfa3-56077c1897be&omschrijvingGeneriek=initiator response: @@ -480,7 +481,7 @@ interactions: code: 200 message: OK - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f", + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80", "betrokkeneType": "natuurlijk_persoon", "roltype": "http://localhost:8003/catalogi/api/v1/roltypen/c76d3b20-d42c-4c6e-9837-abb1005bba68", "roltoelichting": "inzender formulier", "indicatieMachtiging": "", "betrokkeneIdentificatie": {"inpBsn": "999970094", "vestigingsNummer": ""}}' @@ -496,14 +497,14 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/rollen response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/13375551-1734-49b2-8f8f-dfce18ff49f0","uuid":"13375551-1734-49b2-8f8f-dfce18ff49f0","zaak":"http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/c76d3b20-d42c-4c6e-9837-abb1005bba68","omschrijving":"Children + string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/76b06c27-3efd-4ec1-88a3-b0673f850e07","uuid":"76b06c27-3efd-4ec1-88a3-b0673f850e07","zaak":"http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/c76d3b20-d42c-4c6e-9837-abb1005bba68","omschrijving":"Children initiator role type","omschrijvingGeneriek":"initiator","roltoelichting":"inzender - formulier","registratiedatum":"2026-03-17T11:41:25.286291Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"999970094","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"","geslachtsaanduiding":"","geboortedatum":"","verblijfsadres":null,"subVerblijfBuitenland":null}}' + formulier","registratiedatum":"2026-05-21T12:47:45.465208Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"999970094","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"","geslachtsaanduiding":"","geboortedatum":"","verblijfsadres":null,"subVerblijfBuitenland":null}}' headers: API-version: - 1.5.1 @@ -516,7 +517,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/rollen/13375551-1734-49b2-8f8f-dfce18ff49f0 + - http://localhost:8003/zaken/api/v1/rollen/76b06c27-3efd-4ec1-88a3-b0673f850e07 Referrer-Policy: - same-origin Vary: @@ -538,7 +539,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/roltypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2Fa516793a-cb5f-446d-bfa3-56077c1897be response: @@ -569,7 +570,7 @@ interactions: code: 200 message: OK - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f", + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80", "betrokkeneType": "natuurlijk_persoon", "roltype": "http://localhost:8003/catalogi/api/v1/roltypen/03e330e2-acd6-4e4d-a382-1ed9b71e8a6e", "roltoelichting": "natuurlijk_persoon", "indicatieMachtiging": "", "betrokkeneIdentificatie": {"inpBsn": "999970100", "voorvoegselGeslachtsnaam": "", "voorletters": "O.", @@ -586,13 +587,13 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/rollen response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/7742ae5e-6b80-4dd1-bb83-839efc55c7c4","uuid":"7742ae5e-6b80-4dd1-bb83-839efc55c7c4","zaak":"http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/03e330e2-acd6-4e4d-a382-1ed9b71e8a6e","omschrijving":"Children - role type","omschrijvingGeneriek":"behandelaar","roltoelichting":"natuurlijk_persoon","registratiedatum":"2026-03-17T11:41:25.347863Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"999970100","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"Oostingh","voorvoegselGeslachtsnaam":"","voorletters":"O.","voornamen":"Olle","geslachtsaanduiding":"","geboortedatum":"2022-02-02","verblijfsadres":null,"subVerblijfBuitenland":null}}' + string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/52f0a790-1e49-4ea5-83e0-449da9e2d86d","uuid":"52f0a790-1e49-4ea5-83e0-449da9e2d86d","zaak":"http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/03e330e2-acd6-4e4d-a382-1ed9b71e8a6e","omschrijving":"Children + role type","omschrijvingGeneriek":"behandelaar","roltoelichting":"natuurlijk_persoon","registratiedatum":"2026-05-21T12:47:45.600774Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"999970100","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"Oostingh","voorvoegselGeslachtsnaam":"","voorletters":"O.","voornamen":"Olle","geslachtsaanduiding":"","geboortedatum":"2022-02-02","verblijfsadres":null,"subVerblijfBuitenland":null}}' headers: API-version: - 1.5.1 @@ -605,7 +606,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/rollen/7742ae5e-6b80-4dd1-bb83-839efc55c7c4 + - http://localhost:8003/zaken/api/v1/rollen/52f0a790-1e49-4ea5-83e0-449da9e2d86d Referrer-Policy: - same-origin Vary: @@ -627,7 +628,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/roltypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2Fa516793a-cb5f-446d-bfa3-56077c1897be response: @@ -658,7 +659,7 @@ interactions: code: 200 message: OK - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f", + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80", "betrokkeneType": "natuurlijk_persoon", "roltype": "http://localhost:8003/catalogi/api/v1/roltypen/03e330e2-acd6-4e4d-a382-1ed9b71e8a6e", "roltoelichting": "natuurlijk_persoon", "indicatieMachtiging": "", "betrokkeneIdentificatie": {"inpBsn": "999970112", "voorvoegselGeslachtsnaam": "", "voorletters": "O.", @@ -675,13 +676,13 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/rollen response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/dc4904e7-387a-4471-b20a-8131f5e23b31","uuid":"dc4904e7-387a-4471-b20a-8131f5e23b31","zaak":"http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/03e330e2-acd6-4e4d-a382-1ed9b71e8a6e","omschrijving":"Children - role type","omschrijvingGeneriek":"behandelaar","roltoelichting":"natuurlijk_persoon","registratiedatum":"2026-03-17T11:41:25.409970Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"999970112","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"Oostingh","voorvoegselGeslachtsnaam":"","voorletters":"O.","voornamen":"Onne","geslachtsaanduiding":"","geboortedatum":"2022-02-02","verblijfsadres":null,"subVerblijfBuitenland":null}}' + string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/716379ee-e95c-4fb8-a167-0f2e804ccb3c","uuid":"716379ee-e95c-4fb8-a167-0f2e804ccb3c","zaak":"http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/03e330e2-acd6-4e4d-a382-1ed9b71e8a6e","omschrijving":"Children + role type","omschrijvingGeneriek":"behandelaar","roltoelichting":"natuurlijk_persoon","registratiedatum":"2026-05-21T12:47:45.702745Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"999970112","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"Oostingh","voorvoegselGeslachtsnaam":"","voorletters":"O.","voornamen":"Onne","geslachtsaanduiding":"","geboortedatum":"2022-02-02","verblijfsadres":null,"subVerblijfBuitenland":null}}' headers: API-version: - 1.5.1 @@ -694,7 +695,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/rollen/dc4904e7-387a-4471-b20a-8131f5e23b31 + - http://localhost:8003/zaken/api/v1/rollen/716379ee-e95c-4fb8-a167-0f2e804ccb3c Referrer-Policy: - same-origin Vary: @@ -716,7 +717,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/statustypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2Fa516793a-cb5f-446d-bfa3-56077c1897be response: @@ -745,9 +746,9 @@ interactions: code: 200 message: OK - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f", + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80", "statustype": "http://localhost:8003/catalogi/api/v1/statustypen/60b6154a-a480-47db-93ab-d8ccc39d4022", - "datumStatusGezet": "2026-03-17T11:41:25.450029+00:00", "statustoelichting": + "datumStatusGezet": "2026-05-21T12:47:45.782821+00:00", "statustoelichting": ""}' headers: Accept: @@ -761,12 +762,12 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/statussen response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/statussen/37017fc7-682e-4dcd-acce-5666240c2e5a","uuid":"37017fc7-682e-4dcd-acce-5666240c2e5a","zaak":"http://localhost:8003/zaken/api/v1/zaken/5e452a57-fe94-4486-9a86-8db010910a5f","statustype":"http://localhost:8003/catalogi/api/v1/statustypen/60b6154a-a480-47db-93ab-d8ccc39d4022","datumStatusGezet":"2026-03-17T11:41:25.450029Z","statustoelichting":"","indicatieLaatstGezetteStatus":true,"gezetdoor":null,"zaakinformatieobjecten":[]}' + string: '{"url":"http://localhost:8003/zaken/api/v1/statussen/3981b56d-11dc-43d8-a91e-1812a33e8e50","uuid":"3981b56d-11dc-43d8-a91e-1812a33e8e50","zaak":"http://localhost:8003/zaken/api/v1/zaken/c7c21930-9451-47cc-a843-1477857beb80","statustype":"http://localhost:8003/catalogi/api/v1/statustypen/60b6154a-a480-47db-93ab-d8ccc39d4022","datumStatusGezet":"2026-05-21T12:47:45.782821Z","statustoelichting":"","indicatieLaatstGezetteStatus":true,"gezetdoor":null,"zaakinformatieobjecten":[]}' headers: API-version: - 1.5.1 @@ -779,7 +780,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/statussen/37017fc7-682e-4dcd-acce-5666240c2e5a + - http://localhost:8003/zaken/api/v1/statussen/3981b56d-11dc-43d8-a91e-1812a33e8e50 Referrer-Policy: - same-origin Vary: diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_partners_component.yaml b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_partners_component.yaml index 9c8ed7bdf0..324ba8a658 100644 --- a/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_partners_component.yaml +++ b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_partners_component.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 x-doelbinding: - '' x-gebruiker: @@ -39,7 +39,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Tue, 17 Mar 2026 11:40:51 GMT + - Thu, 21 May 2026 09:55:17 GMT Server: - Kestrel status: @@ -60,7 +60,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 x-doelbinding: - '' x-gebruiker: @@ -80,7 +80,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Tue, 17 Mar 2026 11:40:51 GMT + - Thu, 21 May 2026 09:55:18 GMT Server: - Kestrel status: @@ -96,7 +96,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=PARTN&rsin=000000000 response: @@ -136,7 +136,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/zaaktypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2F7575ec62-a5ed-421f-bfc7-f8837066dd10&identificatie=ZAAKTYPE-2020-0000000001&datumGeldigheid=2024-11-09 response: @@ -169,9 +169,9 @@ interactions: - request: body: '{"zaaktype": "http://localhost:8003/catalogi/api/v1/zaaktypen/77543c85-e5cd-4b3e-b7a5-27165e1334b1", "bronorganisatie": "000000000", "verantwoordelijkeOrganisatie": "000000000", - "registratiedatum": "2026-03-17", "startdatum": "2026-03-17", "productenOfDiensten": - [], "omschrijving": "Form 001", "toelichting": "Aangemaakt door Open Formulieren", - "betalingsindicatie": "nvt"}' + "registratiedatum": "2026-05-21", "startdatum": "2026-05-21", "productenOfDiensten": + [], "omschrijving": "Form 000", "toelichting": "", "betalingsindicatie": "nvt", + "identificatie": "OF-T3XKT5"}' headers: Accept: - '*/*' @@ -184,17 +184,17 @@ interactions: Content-Crs: - EPSG:4326 Content-Length: - - '374' + - '372' Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/zaken response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9","uuid":"80777d28-ba5e-4f6e-a156-77eb6aba22f9","identificatie":"ZAAK-2026-0000000007","bronorganisatie":"000000000","omschrijving":"Form - 001","toelichting":"Aangemaakt door Open Formulieren","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/77543c85-e5cd-4b3e-b7a5-27165e1334b1","registratiedatum":"2026-03-17","verantwoordelijkeOrganisatie":"000000000","startdatum":"2026-03-17","einddatum":null,"einddatumGepland":null,"uiterlijkeEinddatumAfdoening":null,"publicatiedatum":null,"communicatiekanaal":"","communicatiekanaalNaam":"","productenOfDiensten":[],"vertrouwelijkheidaanduiding":"openbaar","betalingsindicatie":"nvt","betalingsindicatieWeergave":"Er + string: '{"url":"http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf","uuid":"4a277b6e-5acf-4e93-a03c-83f373f403bf","identificatie":"OF-T3XKT5","bronorganisatie":"000000000","omschrijving":"Form + 000","toelichting":"","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/77543c85-e5cd-4b3e-b7a5-27165e1334b1","registratiedatum":"2026-05-21","verantwoordelijkeOrganisatie":"000000000","startdatum":"2026-05-21","einddatum":null,"einddatumGepland":null,"uiterlijkeEinddatumAfdoening":null,"publicatiedatum":null,"communicatiekanaal":"","communicatiekanaalNaam":"","productenOfDiensten":[],"vertrouwelijkheidaanduiding":"openbaar","betalingsindicatie":"nvt","betalingsindicatieWeergave":"Er is geen sprake van te betalen, met de zaak gemoeide, kosten.","laatsteBetaaldatum":null,"zaakgeometrie":null,"verlenging":null,"opschorting":{"indicatie":false,"reden":""},"selectielijstklasse":"","hoofdzaak":null,"deelzaken":[],"relevanteAndereZaken":[],"eigenschappen":[],"rollen":[],"status":null,"zaakinformatieobjecten":[],"zaakobjecten":[],"kenmerken":[],"archiefnominatie":null,"archiefstatus":"nog_te_archiveren","archiefactiedatum":null,"resultaat":null,"opdrachtgevendeOrganisatie":"","processobjectaard":"","startdatumBewaartermijn":null,"processobject":{"datumkenmerk":"","identificatie":"","objecttype":"","registratie":""}}' headers: API-version: @@ -204,13 +204,13 @@ interactions: Content-Crs: - EPSG:4326 Content-Length: - - '1391' + - '1348' Content-Type: - application/json Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9 + - http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf Referrer-Policy: - same-origin Vary: @@ -232,7 +232,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=PARTN&rsin=000000000 response: @@ -272,7 +272,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/informatieobjecttypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2F7575ec62-a5ed-421f-bfc7-f8837066dd10&omschrijving=Partners+PDF+Informatieobjecttype&datumGeldigheid=2024-11-09 response: @@ -312,7 +312,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/zaaktypen/77543c85-e5cd-4b3e-b7a5-27165e1334b1 response: @@ -346,11 +346,12 @@ interactions: message: OK - request: body: '{"informatieobjecttype": "http://localhost:8003/catalogi/api/v1/informatieobjecttypen/d2ea38b1-5215-402f-a3f5-2977d112bf72", - "bronorganisatie": "000000000", "creatiedatum": "2026-03-17", "titel": "Form - 001", "auteur": "Aanvrager", "taal": "nld", "formaat": "application/pdf", "inhoud": - "", "status": "definitief", "bestandsnaam": "open-forms-Form 001.pdf", "ontvangstdatum": + "bronorganisatie": "000000000", "creatiedatum": "2026-05-21", "titel": "Form + 000 (JSON)", "auteur": "Aanvrager", "taal": "nld", "formaat": "application/json", + "inhoud": "eyJ2YWx1ZXMiOiB7InBhcnRuZXJzIjogW3siYnNuIjogIjk5OTk5NTE4MiIsICJmaXJzdE5hbWVzIjogIkFubmEgTWFyaWEgUGV0cmEiLCAiaW5pdGlhbHMiOiAiQS5NLlAuIiwgImFmZml4ZXMiOiAiIiwgImxhc3ROYW1lIjogIkphbnNtYSIsICJkYXRlT2ZCaXJ0aCI6ICIxOTQ1LTA0LTE4In0sIHsiYnNuIjogIjEyMzQ1Njc4MiIsICJmaXJzdE5hbWVzIjogIlRlc3Qgc2Vjb25kIHBhcnRuZXIiLCAiaW5pdGlhbHMiOiAiVC5zLnAuIiwgImFmZml4ZXMiOiAiIiwgImxhc3ROYW1lIjogIlRlc3QiLCAiZGF0ZU9mQmlydGgiOiAiMTk0NS0wNC0xOCJ9XSwgInBhcnRuZXJzX2ltbXV0YWJsZSI6IFt7ImJzbiI6ICI5OTk5OTUxODIiLCAiZmlyc3ROYW1lcyI6ICJBbm5hIE1hcmlhIFBldHJhIiwgImluaXRpYWxzIjogIkEuTS5QLiIsICJhZmZpeGVzIjogIiIsICJsYXN0TmFtZSI6ICJKYW5zbWEiLCAiZGF0ZU9mQmlydGgiOiAiMTk0NS0wNC0xOCIsICJkYXRlT2ZCaXJ0aFByZWNpc2lvbiI6ICJkYXRlIn0sIHsiYnNuIjogIjEyMzQ1Njc4MiIsICJmaXJzdE5hbWVzIjogIlRlc3Qgc2Vjb25kIHBhcnRuZXIiLCAiaW5pdGlhbHMiOiAiVC5zLnAuIiwgImFmZml4ZXMiOiAiIiwgImxhc3ROYW1lIjogIlRlc3QiLCAiZGF0ZU9mQmlydGgiOiAiMTk0NS0wNC0xOCIsICJkYXRlT2ZCaXJ0aFByZWNpc2lvbiI6ICJkYXRlIn1dLCAibm93IjogIjIwMjYtMDUtMjFUMDk6NTU6MDBaIiwgInRvZGF5IjogIjIwMjYtMDUtMjEiLCAiY3VycmVudF95ZWFyIjogMjAyNiwgImVudmlyb25tZW50IjogImRldmVsb3BtZW50IiwgImZvcm1fbmFtZSI6ICJGb3JtIDAwMCIsICJmb3JtX2lkIjogIjE0YTIxNDIxLTg2ZjMtNDI1YS05NmE0LWVmYWUzNmRmNmMxOSIsICJzdWJtaXNzaW9uX2lkIjogImNiNTQzMmE4LTY3MGQtNDkwYy1iYzYwLTZlZWY4ZjA5ZTA1MSIsICJsYW5ndWFnZV9jb2RlIjogIm5sIiwgImF1dGgiOiB7InBsdWdpbiI6ICJkaWdpZCIsICJhdHRyaWJ1dGUiOiAiYnNuIiwgInZhbHVlIjogIjAwMDAwOTkyMSIsICJhZGRpdGlvbmFsX2NsYWltcyI6IHt9fSwgImF1dGhfdHlwZSI6ICJic24iLCAiYXV0aF9ic24iOiAiMDAwMDA5OTIxIiwgImF1dGhfa3ZrIjogIiIsICJhdXRoX3BzZXVkbyI6ICIiLCAiYXV0aF9hZGRpdGlvbmFsX2NsYWltcyI6IHt9LCAiYXV0aF9jb250ZXh0IjogeyJzb3VyY2UiOiAiZGlnaWQiLCAibGV2ZWxPZkFzc3VyYW5jZSI6ICJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpNb2JpbGVUd29GYWN0b3JDb250cmFjdCIsICJhdXRob3JpemVlIjogeyJsZWdhbFN1YmplY3QiOiB7ImlkZW50aWZpZXJUeXBlIjogImJzbiIsICJpZGVudGlmaWVyIjogIjAwMDAwOTkyMSJ9fX0sICJhdXRoX2NvbnRleHRfc291cmNlIjogImRpZ2lkIiwgImF1dGhfY29udGV4dF9sb2EiOiAidXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOmFjOmNsYXNzZXM6TW9iaWxlVHdvRmFjdG9yQ29udHJhY3QiLCAiYXV0aF9jb250ZXh0X3JlcHJlc2VudGVlX2lkZW50aWZpZXJfdHlwZSI6ICIiLCAiYXV0aF9jb250ZXh0X3JlcHJlc2VudGVlX2lkZW50aWZpZXIiOiAiIiwgImF1dGhfY29udGV4dF9sZWdhbF9zdWJqZWN0X2lkZW50aWZpZXJfdHlwZSI6ICJic24iLCAiYXV0aF9jb250ZXh0X2xlZ2FsX3N1YmplY3RfaWRlbnRpZmllciI6ICIwMDAwMDk5MjEiLCAiYXV0aF9jb250ZXh0X2JyYW5jaF9udW1iZXIiOiAiIiwgImF1dGhfY29udGV4dF9hY3Rpbmdfc3ViamVjdF9pZGVudGlmaWVyX3R5cGUiOiAiIiwgImF1dGhfY29udGV4dF9hY3Rpbmdfc3ViamVjdF9pZGVudGlmaWVyIjogIiJ9LCAidmFsdWVzX3NjaGVtYSI6IHsiJHNjaGVtYSI6ICJodHRwczovL2pzb24tc2NoZW1hLm9yZy9kcmFmdC8yMDIwLTEyL3NjaGVtYSIsICJ0eXBlIjogIm9iamVjdCIsICJwcm9wZXJ0aWVzIjogeyJwYXJ0bmVycyI6IHsidGl0bGUiOiAiUGFydG5lcnMiLCAidHlwZSI6ICJhcnJheSIsICJpdGVtcyI6IHsidHlwZSI6ICJvYmplY3QiLCAicmVxdWlyZWQiOiBbImJzbiJdLCAicHJvcGVydGllcyI6IHsiYnNuIjogeyJ0eXBlIjogInN0cmluZyIsICJwYXR0ZXJuIjogIl5cXGR7OX0kIiwgImZvcm1hdCI6ICJubC1ic24ifSwgImluaXRpYWxzIjogeyJ0eXBlIjogInN0cmluZyJ9LCAiYWZmaXhlcyI6IHsidHlwZSI6ICJzdHJpbmcifSwgImxhc3ROYW1lIjogeyJ0eXBlIjogInN0cmluZyJ9LCAiZGF0ZU9mQmlydGgiOiB7InR5cGUiOiAic3RyaW5nIiwgImZvcm1hdCI6ICJkYXRlIn19LCAiYWRkaXRpb25hbFByb3BlcnRpZXMiOiBmYWxzZX19LCAicGFydG5lcnNfaW1tdXRhYmxlIjogeyJ0eXBlIjogInN0cmluZyIsICJ0aXRsZSI6ICJWYXJpYWJsZSAwMDAifX0sICJyZXF1aXJlZCI6IFsicGFydG5lcnMiLCAicGFydG5lcnNfaW1tdXRhYmxlIl0sICJhZGRpdGlvbmFsUHJvcGVydGllcyI6IGZhbHNlfX0=", + "status": "definitief", "bestandsnaam": "openforms-Form 000 (JSON).json", "ontvangstdatum": null, "beschrijving": "Ingezonden formulier", "indicatieGebruiksrecht": false, - "bestandsomvang": 0}' + "bestandsomvang": 2441}' headers: Accept: - '*/*' @@ -359,18 +360,18 @@ interactions: Connection: - keep-alive Content-Length: - - '474' + - '3748' Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten response: body: - string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/a9acad66-c263-4786-a0c4-42567d329a8e","identificatie":"DOCUMENT-2026-0000000007","bronorganisatie":"000000000","creatiedatum":"2026-03-17","titel":"Form - 001","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"application/pdf","taal":"nld","versie":1,"beginRegistratie":"2026-03-17T11:40:53.213324Z","bestandsnaam":"open-forms-Form - 001.pdf","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/a9acad66-c263-4786-a0c4-42567d329a8e/download?versie=1","bestandsomvang":0,"link":"","beschrijving":"Ingezonden + string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/953120c1-0e77-4fdc-9bb4-0f9317b2f8e8","identificatie":"DOCUMENT-2026-0000000013","bronorganisatie":"000000000","creatiedatum":"2026-05-21","titel":"Form + 000 (JSON)","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"application/json","taal":"nld","versie":1,"beginRegistratie":"2026-05-21T09:55:19.426797Z","bestandsnaam":"openforms-Form + 000 (JSON).json","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/953120c1-0e77-4fdc-9bb4-0f9317b2f8e8/download?versie=1","bestandsomvang":2441,"link":"","beschrijving":"Ingezonden formulier","ontvangstdatum":null,"verzenddatum":null,"indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":{"soort":"","datum":null},"integriteit":{"algoritme":"","waarde":"","datum":null},"informatieobjecttype":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/d2ea38b1-5215-402f-a3f5-2977d112bf72","locked":false,"bestandsdelen":[],"trefwoorden":[],"lock":""}' headers: API-version: @@ -378,13 +379,13 @@ interactions: Allow: - GET, POST, HEAD, OPTIONS Content-Length: - - '1042' + - '1060' Content-Type: - application/json Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/a9acad66-c263-4786-a0c4-42567d329a8e + - http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/953120c1-0e77-4fdc-9bb4-0f9317b2f8e8 Referrer-Policy: - same-origin Vary: @@ -397,8 +398,8 @@ interactions: code: 201 message: Created - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9", - "informatieobject": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/a9acad66-c263-4786-a0c4-42567d329a8e"}' + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf", + "informatieobject": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/953120c1-0e77-4fdc-9bb4-0f9317b2f8e8"}' headers: Accept: - '*/*' @@ -411,13 +412,13 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/zaakinformatieobjecten response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/7bf8245c-5fdc-4103-af02-e955939d9be0","uuid":"7bf8245c-5fdc-4103-af02-e955939d9be0","informatieobject":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/a9acad66-c263-4786-a0c4-42567d329a8e","zaak":"http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9","aardRelatieWeergave":"Hoort - bij, omgekeerd: kent","titel":"","beschrijving":"","registratiedatum":"2026-03-17T11:40:53.350675Z","vernietigingsdatum":null,"status":null}' + string: '{"url":"http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/38b2dc27-b8f9-4469-85a5-88f53494717e","uuid":"38b2dc27-b8f9-4469-85a5-88f53494717e","informatieobject":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/953120c1-0e77-4fdc-9bb4-0f9317b2f8e8","zaak":"http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf","aardRelatieWeergave":"Hoort + bij, omgekeerd: kent","titel":"","beschrijving":"","registratiedatum":"2026-05-21T09:55:19.566377Z","vernietigingsdatum":null,"status":null}' headers: API-version: - 1.5.1 @@ -430,7 +431,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/7bf8245c-5fdc-4103-af02-e955939d9be0 + - http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/38b2dc27-b8f9-4469-85a5-88f53494717e Referrer-Policy: - same-origin Vary: @@ -452,7 +453,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/roltypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2F77543c85-e5cd-4b3e-b7a5-27165e1334b1&omschrijvingGeneriek=initiator response: @@ -482,7 +483,7 @@ interactions: code: 200 message: OK - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9", + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf", "betrokkeneType": "natuurlijk_persoon", "roltype": "http://localhost:8003/catalogi/api/v1/roltypen/eedd2d97-19b1-4d66-821b-307f3f44363e", "roltoelichting": "inzender formulier", "indicatieMachtiging": "", "betrokkeneIdentificatie": {"inpBsn": "000009921", "vestigingsNummer": ""}}' @@ -498,14 +499,14 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/rollen response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/0127f704-ea5b-4215-9441-1eae67fdcd44","uuid":"0127f704-ea5b-4215-9441-1eae67fdcd44","zaak":"http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/eedd2d97-19b1-4d66-821b-307f3f44363e","omschrijving":"Partner + string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/489d0a6a-2548-404d-abbe-60b476d49240","uuid":"489d0a6a-2548-404d-abbe-60b476d49240","zaak":"http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/eedd2d97-19b1-4d66-821b-307f3f44363e","omschrijving":"Partner initiator role type","omschrijvingGeneriek":"initiator","roltoelichting":"inzender - formulier","registratiedatum":"2026-03-17T11:40:53.509167Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"000009921","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"","geslachtsaanduiding":"","geboortedatum":"","verblijfsadres":null,"subVerblijfBuitenland":null}}' + formulier","registratiedatum":"2026-05-21T09:55:19.735154Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"000009921","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"","geslachtsaanduiding":"","geboortedatum":"","verblijfsadres":null,"subVerblijfBuitenland":null}}' headers: API-version: - 1.5.1 @@ -518,7 +519,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/rollen/0127f704-ea5b-4215-9441-1eae67fdcd44 + - http://localhost:8003/zaken/api/v1/rollen/489d0a6a-2548-404d-abbe-60b476d49240 Referrer-Policy: - same-origin Vary: @@ -540,7 +541,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/roltypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2F77543c85-e5cd-4b3e-b7a5-27165e1334b1 response: @@ -571,7 +572,7 @@ interactions: code: 200 message: OK - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9", + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf", "betrokkeneType": "natuurlijk_persoon", "roltype": "http://localhost:8003/catalogi/api/v1/roltypen/706464f3-cd55-425c-92ac-76be4ac8a61b", "roltoelichting": "natuurlijk_persoon", "indicatieMachtiging": "", "betrokkeneIdentificatie": {"inpBsn": "999995182", "voorvoegselGeslachtsnaam": "", "voorletters": "A.M.P.", @@ -589,13 +590,13 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/rollen response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/6b921b62-a250-4454-8d9c-55d3725d1224","uuid":"6b921b62-a250-4454-8d9c-55d3725d1224","zaak":"http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/706464f3-cd55-425c-92ac-76be4ac8a61b","omschrijving":"Partner - role type","omschrijvingGeneriek":"behandelaar","roltoelichting":"natuurlijk_persoon","registratiedatum":"2026-03-17T11:40:53.615657Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"999995182","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"Jansma","voorvoegselGeslachtsnaam":"","voorletters":"A.M.P.","voornamen":"Anna + string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/0be9d73b-86e4-4b1d-b48c-198c1de8a220","uuid":"0be9d73b-86e4-4b1d-b48c-198c1de8a220","zaak":"http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/706464f3-cd55-425c-92ac-76be4ac8a61b","omschrijving":"Partner + role type","omschrijvingGeneriek":"behandelaar","roltoelichting":"natuurlijk_persoon","registratiedatum":"2026-05-21T09:55:19.885087Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"999995182","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"Jansma","voorvoegselGeslachtsnaam":"","voorletters":"A.M.P.","voornamen":"Anna Maria Petra","geslachtsaanduiding":"","geboortedatum":"1945-04-18","verblijfsadres":null,"subVerblijfBuitenland":null}}' headers: API-version: @@ -609,7 +610,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/rollen/6b921b62-a250-4454-8d9c-55d3725d1224 + - http://localhost:8003/zaken/api/v1/rollen/0be9d73b-86e4-4b1d-b48c-198c1de8a220 Referrer-Policy: - same-origin Vary: @@ -631,7 +632,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/roltypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2F77543c85-e5cd-4b3e-b7a5-27165e1334b1 response: @@ -662,7 +663,7 @@ interactions: code: 200 message: OK - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9", + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf", "betrokkeneType": "natuurlijk_persoon", "roltype": "http://localhost:8003/catalogi/api/v1/roltypen/706464f3-cd55-425c-92ac-76be4ac8a61b", "roltoelichting": "natuurlijk_persoon", "indicatieMachtiging": "", "betrokkeneIdentificatie": {"inpBsn": "123456782", "voorvoegselGeslachtsnaam": "", "voorletters": "T.s.p.", @@ -680,13 +681,13 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/rollen response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/d144eef6-aa20-45b8-9cd9-2fc0f84a1498","uuid":"d144eef6-aa20-45b8-9cd9-2fc0f84a1498","zaak":"http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/706464f3-cd55-425c-92ac-76be4ac8a61b","omschrijving":"Partner - role type","omschrijvingGeneriek":"behandelaar","roltoelichting":"natuurlijk_persoon","registratiedatum":"2026-03-17T11:40:53.692973Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"123456782","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"Test","voorvoegselGeslachtsnaam":"","voorletters":"T.s.p.","voornamen":"Test + string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/d8b5ea7e-a308-4c26-b211-343b66b84c6a","uuid":"d8b5ea7e-a308-4c26-b211-343b66b84c6a","zaak":"http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/706464f3-cd55-425c-92ac-76be4ac8a61b","omschrijving":"Partner + role type","omschrijvingGeneriek":"behandelaar","roltoelichting":"natuurlijk_persoon","registratiedatum":"2026-05-21T09:55:20.048695Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"123456782","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"Test","voorvoegselGeslachtsnaam":"","voorletters":"T.s.p.","voornamen":"Test second partner","geslachtsaanduiding":"","geboortedatum":"1945-04-18","verblijfsadres":null,"subVerblijfBuitenland":null}}' headers: API-version: @@ -700,7 +701,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/rollen/d144eef6-aa20-45b8-9cd9-2fc0f84a1498 + - http://localhost:8003/zaken/api/v1/rollen/d8b5ea7e-a308-4c26-b211-343b66b84c6a Referrer-Policy: - same-origin Vary: @@ -722,7 +723,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/statustypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2F77543c85-e5cd-4b3e-b7a5-27165e1334b1 response: @@ -751,9 +752,9 @@ interactions: code: 200 message: OK - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9", + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf", "statustype": "http://localhost:8003/catalogi/api/v1/statustypen/48c43449-1ce2-4db9-a282-3ba86e37b7c3", - "datumStatusGezet": "2026-03-17T11:40:53.747863+00:00", "statustoelichting": + "datumStatusGezet": "2026-05-21T09:55:20.141270+00:00", "statustoelichting": ""}' headers: Accept: @@ -767,12 +768,12 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/statussen response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/statussen/0e097286-80c8-4d6c-9c0f-c720ff3bbde9","uuid":"0e097286-80c8-4d6c-9c0f-c720ff3bbde9","zaak":"http://localhost:8003/zaken/api/v1/zaken/80777d28-ba5e-4f6e-a156-77eb6aba22f9","statustype":"http://localhost:8003/catalogi/api/v1/statustypen/48c43449-1ce2-4db9-a282-3ba86e37b7c3","datumStatusGezet":"2026-03-17T11:40:53.747863Z","statustoelichting":"","indicatieLaatstGezetteStatus":true,"gezetdoor":null,"zaakinformatieobjecten":[]}' + string: '{"url":"http://localhost:8003/zaken/api/v1/statussen/9e26538e-8366-4ca8-b0f0-b6475abf1811","uuid":"9e26538e-8366-4ca8-b0f0-b6475abf1811","zaak":"http://localhost:8003/zaken/api/v1/zaken/4a277b6e-5acf-4e93-a03c-83f373f403bf","statustype":"http://localhost:8003/catalogi/api/v1/statustypen/48c43449-1ce2-4db9-a282-3ba86e37b7c3","datumStatusGezet":"2026-05-21T09:55:20.141270Z","statustoelichting":"","indicatieLaatstGezetteStatus":true,"gezetdoor":null,"zaakinformatieobjecten":[]}' headers: API-version: - 1.5.1 @@ -785,7 +786,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/statussen/0e097286-80c8-4d6c-9c0f-c720ff3bbde9 + - http://localhost:8003/zaken/api/v1/statussen/9e26538e-8366-4ca8-b0f0-b6475abf1811 Referrer-Policy: - same-origin Vary: diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_partners_component_and_manually_added_data.yaml b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_partners_component_and_manually_added_data.yaml index 96c5b62aa0..b8b3922d43 100644 --- a/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_partners_component_and_manually_added_data.yaml +++ b/src/openforms/registrations/contrib/zgw_apis/tests/vcr_cassettes/test_backend/ZGWBackendVCRTests/test_submission_with_partners_component_and_manually_added_data.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=PARTN&rsin=000000000 response: @@ -49,7 +49,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/zaaktypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2F7575ec62-a5ed-421f-bfc7-f8837066dd10&identificatie=ZAAKTYPE-2020-0000000001&datumGeldigheid=2024-11-09 response: @@ -82,9 +82,9 @@ interactions: - request: body: '{"zaaktype": "http://localhost:8003/catalogi/api/v1/zaaktypen/77543c85-e5cd-4b3e-b7a5-27165e1334b1", "bronorganisatie": "000000000", "verantwoordelijkeOrganisatie": "000000000", - "registratiedatum": "2026-03-25", "startdatum": "2026-03-25", "productenOfDiensten": - [], "omschrijving": "Form 024", "toelichting": "Aangemaakt door Open Formulieren", - "betalingsindicatie": "nvt"}' + "registratiedatum": "2026-05-21", "startdatum": "2026-05-21", "productenOfDiensten": + [], "omschrijving": "Form 000", "toelichting": "", "betalingsindicatie": "nvt", + "identificatie": "OF-L4V3ZP"}' headers: Accept: - '*/*' @@ -97,17 +97,17 @@ interactions: Content-Crs: - EPSG:4326 Content-Length: - - '374' + - '372' Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/zaken response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/zaken/6c5a5814-15ba-4ac1-a2ba-fda0cb591e10","uuid":"6c5a5814-15ba-4ac1-a2ba-fda0cb591e10","identificatie":"ZAAK-2026-0000000082","bronorganisatie":"000000000","omschrijving":"Form - 024","toelichting":"Aangemaakt door Open Formulieren","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/77543c85-e5cd-4b3e-b7a5-27165e1334b1","registratiedatum":"2026-03-25","verantwoordelijkeOrganisatie":"000000000","startdatum":"2026-03-25","einddatum":null,"einddatumGepland":null,"uiterlijkeEinddatumAfdoening":null,"publicatiedatum":null,"communicatiekanaal":"","communicatiekanaalNaam":"","productenOfDiensten":[],"vertrouwelijkheidaanduiding":"openbaar","betalingsindicatie":"nvt","betalingsindicatieWeergave":"Er + string: '{"url":"http://localhost:8003/zaken/api/v1/zaken/0a91f57f-42de-44d6-b6be-5714860ff163","uuid":"0a91f57f-42de-44d6-b6be-5714860ff163","identificatie":"OF-L4V3ZP","bronorganisatie":"000000000","omschrijving":"Form + 000","toelichting":"","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/77543c85-e5cd-4b3e-b7a5-27165e1334b1","registratiedatum":"2026-05-21","verantwoordelijkeOrganisatie":"000000000","startdatum":"2026-05-21","einddatum":null,"einddatumGepland":null,"uiterlijkeEinddatumAfdoening":null,"publicatiedatum":null,"communicatiekanaal":"","communicatiekanaalNaam":"","productenOfDiensten":[],"vertrouwelijkheidaanduiding":"openbaar","betalingsindicatie":"nvt","betalingsindicatieWeergave":"Er is geen sprake van te betalen, met de zaak gemoeide, kosten.","laatsteBetaaldatum":null,"zaakgeometrie":null,"verlenging":null,"opschorting":{"indicatie":false,"reden":""},"selectielijstklasse":"","hoofdzaak":null,"deelzaken":[],"relevanteAndereZaken":[],"eigenschappen":[],"rollen":[],"status":null,"zaakinformatieobjecten":[],"zaakobjecten":[],"kenmerken":[],"archiefnominatie":null,"archiefstatus":"nog_te_archiveren","archiefactiedatum":null,"resultaat":null,"opdrachtgevendeOrganisatie":"","processobjectaard":"","startdatumBewaartermijn":null,"processobject":{"datumkenmerk":"","identificatie":"","objecttype":"","registratie":""}}' headers: API-version: @@ -117,13 +117,13 @@ interactions: Content-Crs: - EPSG:4326 Content-Length: - - '1391' + - '1348' Content-Type: - application/json Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/zaken/6c5a5814-15ba-4ac1-a2ba-fda0cb591e10 + - http://localhost:8003/zaken/api/v1/zaken/0a91f57f-42de-44d6-b6be-5714860ff163 Referrer-Policy: - same-origin Vary: @@ -145,7 +145,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=PARTN&rsin=000000000 response: @@ -185,7 +185,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/informatieobjecttypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2F7575ec62-a5ed-421f-bfc7-f8837066dd10&omschrijving=Partners+PDF+Informatieobjecttype&datumGeldigheid=2024-11-09 response: @@ -225,7 +225,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/zaaktypen/77543c85-e5cd-4b3e-b7a5-27165e1334b1 response: @@ -259,11 +259,12 @@ interactions: message: OK - request: body: '{"informatieobjecttype": "http://localhost:8003/catalogi/api/v1/informatieobjecttypen/d2ea38b1-5215-402f-a3f5-2977d112bf72", - "bronorganisatie": "000000000", "creatiedatum": "2026-03-25", "titel": "Form - 024", "auteur": "Aanvrager", "taal": "nld", "formaat": "application/pdf", "inhoud": - "", "status": "definitief", "bestandsnaam": "open-forms-Form 024.pdf", "ontvangstdatum": + "bronorganisatie": "000000000", "creatiedatum": "2026-05-21", "titel": "Form + 000 (JSON)", "auteur": "Aanvrager", "taal": "nld", "formaat": "application/json", + "inhoud": "eyJ2YWx1ZXMiOiB7InBhcnRuZXJzIjogW3siYnNuIjogIjk5OTk3MDQwOSIsICJhZmZpeGVzIjogIiIsICJpbml0aWFscyI6ICIiLCAibGFzdE5hbWUiOiAiUGFhc3NlbiIsICJkYXRlT2ZCaXJ0aCI6ICIyMDIzLTAyLTAxIn1dLCAibm93IjogIjIwMjYtMDUtMjFUMTE6MTY6MDBaIiwgInRvZGF5IjogIjIwMjYtMDUtMjEiLCAiY3VycmVudF95ZWFyIjogMjAyNiwgImVudmlyb25tZW50IjogImRldmVsb3BtZW50IiwgImZvcm1fbmFtZSI6ICJGb3JtIDAwMCIsICJmb3JtX2lkIjogIjM5NzU4ZDU5LWE3ZjQtNGJmOS04ZjllLTg5MTA2NmViMWU2MCIsICJzdWJtaXNzaW9uX2lkIjogImU5MDM1NWI0LTU4Y2MtNDc1Yi04YjdhLWQ3OTE0ZGEyNzQ3ZCIsICJsYW5ndWFnZV9jb2RlIjogIm5sIiwgImF1dGgiOiB7InBsdWdpbiI6ICJkaWdpZCIsICJhdHRyaWJ1dGUiOiAiYnNuIiwgInZhbHVlIjogIjEyMzQ1Njc4MiIsICJhZGRpdGlvbmFsX2NsYWltcyI6IHt9fSwgImF1dGhfdHlwZSI6ICJic24iLCAiYXV0aF9ic24iOiAiMTIzNDU2NzgyIiwgImF1dGhfa3ZrIjogIiIsICJhdXRoX3BzZXVkbyI6ICIiLCAiYXV0aF9hZGRpdGlvbmFsX2NsYWltcyI6IHt9LCAiYXV0aF9jb250ZXh0IjogeyJzb3VyY2UiOiAiZGlnaWQiLCAibGV2ZWxPZkFzc3VyYW5jZSI6ICJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpNb2JpbGVUd29GYWN0b3JDb250cmFjdCIsICJhdXRob3JpemVlIjogeyJsZWdhbFN1YmplY3QiOiB7ImlkZW50aWZpZXJUeXBlIjogImJzbiIsICJpZGVudGlmaWVyIjogIjEyMzQ1Njc4MiJ9fX0sICJhdXRoX2NvbnRleHRfc291cmNlIjogImRpZ2lkIiwgImF1dGhfY29udGV4dF9sb2EiOiAidXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOmFjOmNsYXNzZXM6TW9iaWxlVHdvRmFjdG9yQ29udHJhY3QiLCAiYXV0aF9jb250ZXh0X3JlcHJlc2VudGVlX2lkZW50aWZpZXJfdHlwZSI6ICIiLCAiYXV0aF9jb250ZXh0X3JlcHJlc2VudGVlX2lkZW50aWZpZXIiOiAiIiwgImF1dGhfY29udGV4dF9sZWdhbF9zdWJqZWN0X2lkZW50aWZpZXJfdHlwZSI6ICJic24iLCAiYXV0aF9jb250ZXh0X2xlZ2FsX3N1YmplY3RfaWRlbnRpZmllciI6ICIxMjM0NTY3ODIiLCAiYXV0aF9jb250ZXh0X2JyYW5jaF9udW1iZXIiOiAiIiwgImF1dGhfY29udGV4dF9hY3Rpbmdfc3ViamVjdF9pZGVudGlmaWVyX3R5cGUiOiAiIiwgImF1dGhfY29udGV4dF9hY3Rpbmdfc3ViamVjdF9pZGVudGlmaWVyIjogIiJ9LCAidmFsdWVzX3NjaGVtYSI6IHsiJHNjaGVtYSI6ICJodHRwczovL2pzb24tc2NoZW1hLm9yZy9kcmFmdC8yMDIwLTEyL3NjaGVtYSIsICJ0eXBlIjogIm9iamVjdCIsICJwcm9wZXJ0aWVzIjogeyJwYXJ0bmVycyI6IHsidGl0bGUiOiAiUGFydG5lcnMiLCAidHlwZSI6ICJhcnJheSIsICJpdGVtcyI6IHsidHlwZSI6ICJvYmplY3QiLCAicmVxdWlyZWQiOiBbImJzbiJdLCAicHJvcGVydGllcyI6IHsiYnNuIjogeyJ0eXBlIjogInN0cmluZyIsICJwYXR0ZXJuIjogIl5cXGR7OX0kIiwgImZvcm1hdCI6ICJubC1ic24ifSwgImluaXRpYWxzIjogeyJ0eXBlIjogInN0cmluZyJ9LCAiYWZmaXhlcyI6IHsidHlwZSI6ICJzdHJpbmcifSwgImxhc3ROYW1lIjogeyJ0eXBlIjogInN0cmluZyJ9LCAiZGF0ZU9mQmlydGgiOiB7InR5cGUiOiAic3RyaW5nIiwgImZvcm1hdCI6ICJkYXRlIn0sICJmaXJzdE5hbWVzIjogeyJ0eXBlIjogInN0cmluZyJ9fSwgImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjogZmFsc2V9fX0sICJyZXF1aXJlZCI6IFsicGFydG5lcnMiXSwgImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjogZmFsc2V9fQ==", + "status": "definitief", "bestandsnaam": "openforms-Form 000 (JSON).json", "ontvangstdatum": null, "beschrijving": "Ingezonden formulier", "indicatieGebruiksrecht": false, - "bestandsomvang": 0}' + "bestandsomvang": 1825}' headers: Accept: - '*/*' @@ -272,18 +273,18 @@ interactions: Connection: - keep-alive Content-Length: - - '474' + - '2928' Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten response: body: - string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b14e256d-0217-4771-b5cb-806544722ada","identificatie":"DOCUMENT-2026-0000000087","bronorganisatie":"000000000","creatiedatum":"2026-03-25","titel":"Form - 024","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"application/pdf","taal":"nld","versie":1,"beginRegistratie":"2026-03-25T12:25:40.888651Z","bestandsnaam":"open-forms-Form - 024.pdf","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b14e256d-0217-4771-b5cb-806544722ada/download?versie=1","bestandsomvang":0,"link":"","beschrijving":"Ingezonden + string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/7a688194-6055-4a0a-80b6-986fcae52093","identificatie":"DOCUMENT-2026-0000000014","bronorganisatie":"000000000","creatiedatum":"2026-05-21","titel":"Form + 000 (JSON)","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"application/json","taal":"nld","versie":1,"beginRegistratie":"2026-05-21T11:16:26.981654Z","bestandsnaam":"openforms-Form + 000 (JSON).json","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/7a688194-6055-4a0a-80b6-986fcae52093/download?versie=1","bestandsomvang":1825,"link":"","beschrijving":"Ingezonden formulier","ontvangstdatum":null,"verzenddatum":null,"indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":{"soort":"","datum":null},"integriteit":{"algoritme":"","waarde":"","datum":null},"informatieobjecttype":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/d2ea38b1-5215-402f-a3f5-2977d112bf72","locked":false,"bestandsdelen":[],"trefwoorden":[],"lock":""}' headers: API-version: @@ -291,13 +292,13 @@ interactions: Allow: - GET, POST, HEAD, OPTIONS Content-Length: - - '1042' + - '1060' Content-Type: - application/json Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b14e256d-0217-4771-b5cb-806544722ada + - http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/7a688194-6055-4a0a-80b6-986fcae52093 Referrer-Policy: - same-origin Vary: @@ -310,8 +311,8 @@ interactions: code: 201 message: Created - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/6c5a5814-15ba-4ac1-a2ba-fda0cb591e10", - "informatieobject": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b14e256d-0217-4771-b5cb-806544722ada"}' + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/0a91f57f-42de-44d6-b6be-5714860ff163", + "informatieobject": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/7a688194-6055-4a0a-80b6-986fcae52093"}' headers: Accept: - '*/*' @@ -324,13 +325,13 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/zaakinformatieobjecten response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/f6f45aae-4e20-4cf3-b814-6bd37f9eaef8","uuid":"f6f45aae-4e20-4cf3-b814-6bd37f9eaef8","informatieobject":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b14e256d-0217-4771-b5cb-806544722ada","zaak":"http://localhost:8003/zaken/api/v1/zaken/6c5a5814-15ba-4ac1-a2ba-fda0cb591e10","aardRelatieWeergave":"Hoort - bij, omgekeerd: kent","titel":"","beschrijving":"","registratiedatum":"2026-03-25T12:25:40.922555Z","vernietigingsdatum":null,"status":null}' + string: '{"url":"http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/e01bc934-b1f8-43ee-bd25-dfdc1bee3d1e","uuid":"e01bc934-b1f8-43ee-bd25-dfdc1bee3d1e","informatieobject":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/7a688194-6055-4a0a-80b6-986fcae52093","zaak":"http://localhost:8003/zaken/api/v1/zaken/0a91f57f-42de-44d6-b6be-5714860ff163","aardRelatieWeergave":"Hoort + bij, omgekeerd: kent","titel":"","beschrijving":"","registratiedatum":"2026-05-21T11:16:27.067397Z","vernietigingsdatum":null,"status":null}' headers: API-version: - 1.5.1 @@ -343,7 +344,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/f6f45aae-4e20-4cf3-b814-6bd37f9eaef8 + - http://localhost:8003/zaken/api/v1/zaakinformatieobjecten/e01bc934-b1f8-43ee-bd25-dfdc1bee3d1e Referrer-Policy: - same-origin Vary: @@ -365,7 +366,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/roltypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2F77543c85-e5cd-4b3e-b7a5-27165e1334b1&omschrijvingGeneriek=initiator response: @@ -395,7 +396,7 @@ interactions: code: 200 message: OK - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/6c5a5814-15ba-4ac1-a2ba-fda0cb591e10", + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/0a91f57f-42de-44d6-b6be-5714860ff163", "betrokkeneType": "natuurlijk_persoon", "roltype": "http://localhost:8003/catalogi/api/v1/roltypen/eedd2d97-19b1-4d66-821b-307f3f44363e", "roltoelichting": "inzender formulier", "indicatieMachtiging": "", "betrokkeneIdentificatie": {"inpBsn": "123456782", "vestigingsNummer": ""}}' @@ -411,14 +412,14 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/rollen response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/111a4923-4712-4547-98ee-09f10fbe2130","uuid":"111a4923-4712-4547-98ee-09f10fbe2130","zaak":"http://localhost:8003/zaken/api/v1/zaken/6c5a5814-15ba-4ac1-a2ba-fda0cb591e10","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/eedd2d97-19b1-4d66-821b-307f3f44363e","omschrijving":"Partner + string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/47cfb844-9348-495f-858d-213ac6637d21","uuid":"47cfb844-9348-495f-858d-213ac6637d21","zaak":"http://localhost:8003/zaken/api/v1/zaken/0a91f57f-42de-44d6-b6be-5714860ff163","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/eedd2d97-19b1-4d66-821b-307f3f44363e","omschrijving":"Partner initiator role type","omschrijvingGeneriek":"initiator","roltoelichting":"inzender - formulier","registratiedatum":"2026-03-25T12:25:40.968695Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"123456782","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"","geslachtsaanduiding":"","geboortedatum":"","verblijfsadres":null,"subVerblijfBuitenland":null}}' + formulier","registratiedatum":"2026-05-21T11:16:27.189237Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"123456782","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"","geslachtsaanduiding":"","geboortedatum":"","verblijfsadres":null,"subVerblijfBuitenland":null}}' headers: API-version: - 1.5.1 @@ -431,7 +432,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/rollen/111a4923-4712-4547-98ee-09f10fbe2130 + - http://localhost:8003/zaken/api/v1/rollen/47cfb844-9348-495f-858d-213ac6637d21 Referrer-Policy: - same-origin Vary: @@ -453,7 +454,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/roltypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2F77543c85-e5cd-4b3e-b7a5-27165e1334b1 response: @@ -484,7 +485,7 @@ interactions: code: 200 message: OK - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/6c5a5814-15ba-4ac1-a2ba-fda0cb591e10", + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/0a91f57f-42de-44d6-b6be-5714860ff163", "betrokkeneType": "natuurlijk_persoon", "roltype": "http://localhost:8003/catalogi/api/v1/roltypen/706464f3-cd55-425c-92ac-76be4ac8a61b", "roltoelichting": "natuurlijk_persoon", "indicatieMachtiging": "", "betrokkeneIdentificatie": {"inpBsn": "999970409", "voorvoegselGeslachtsnaam": "", "voorletters": "", "geslachtsnaam": @@ -501,13 +502,13 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/rollen response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/51e998ae-aff1-4094-8ed4-df1fff6ba2aa","uuid":"51e998ae-aff1-4094-8ed4-df1fff6ba2aa","zaak":"http://localhost:8003/zaken/api/v1/zaken/6c5a5814-15ba-4ac1-a2ba-fda0cb591e10","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/706464f3-cd55-425c-92ac-76be4ac8a61b","omschrijving":"Partner - role type","omschrijvingGeneriek":"behandelaar","roltoelichting":"natuurlijk_persoon","registratiedatum":"2026-03-25T12:25:41.019165Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"999970409","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"Paassen","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"","geslachtsaanduiding":"","geboortedatum":"2023-02-01","verblijfsadres":null,"subVerblijfBuitenland":null}}' + string: '{"url":"http://localhost:8003/zaken/api/v1/rollen/3a491728-798b-4ad8-82dd-5ca69cd68ae5","uuid":"3a491728-798b-4ad8-82dd-5ca69cd68ae5","zaak":"http://localhost:8003/zaken/api/v1/zaken/0a91f57f-42de-44d6-b6be-5714860ff163","betrokkene":"","betrokkeneType":"natuurlijk_persoon","afwijkendeNaamBetrokkene":"","roltype":"http://localhost:8003/catalogi/api/v1/roltypen/706464f3-cd55-425c-92ac-76be4ac8a61b","omschrijving":"Partner + role type","omschrijvingGeneriek":"behandelaar","roltoelichting":"natuurlijk_persoon","registratiedatum":"2026-05-21T11:16:27.350223Z","indicatieMachtiging":"","contactpersoonRol":{"emailadres":"","functie":"","telefoonnummer":"","naam":""},"statussen":[],"betrokkeneIdentificatie":{"inpBsn":"999970409","anpIdentificatie":"","inpA_nummer":"","geslachtsnaam":"Paassen","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"","geslachtsaanduiding":"","geboortedatum":"2023-02-01","verblijfsadres":null,"subVerblijfBuitenland":null}}' headers: API-version: - 1.5.1 @@ -520,7 +521,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/rollen/51e998ae-aff1-4094-8ed4-df1fff6ba2aa + - http://localhost:8003/zaken/api/v1/rollen/3a491728-798b-4ad8-82dd-5ca69cd68ae5 Referrer-Policy: - same-origin Vary: @@ -542,7 +543,7 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: GET uri: http://localhost:8003/catalogi/api/v1/statustypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2F77543c85-e5cd-4b3e-b7a5-27165e1334b1 response: @@ -571,9 +572,9 @@ interactions: code: 200 message: OK - request: - body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/6c5a5814-15ba-4ac1-a2ba-fda0cb591e10", + body: '{"zaak": "http://localhost:8003/zaken/api/v1/zaken/0a91f57f-42de-44d6-b6be-5714860ff163", "statustype": "http://localhost:8003/catalogi/api/v1/statustypen/48c43449-1ce2-4db9-a282-3ba86e37b7c3", - "datumStatusGezet": "2026-03-25T12:25:41.045786+00:00", "statustoelichting": + "datumStatusGezet": "2026-05-21T11:16:27.436084+00:00", "statustoelichting": ""}' headers: Accept: @@ -587,12 +588,12 @@ interactions: Content-Type: - application/json User-Agent: - - python-requests/2.32.5 + - python-requests/2.33.0 method: POST uri: http://localhost:8003/zaken/api/v1/statussen response: body: - string: '{"url":"http://localhost:8003/zaken/api/v1/statussen/0ae6b23b-08c4-4395-8a03-344ddd25d4ea","uuid":"0ae6b23b-08c4-4395-8a03-344ddd25d4ea","zaak":"http://localhost:8003/zaken/api/v1/zaken/6c5a5814-15ba-4ac1-a2ba-fda0cb591e10","statustype":"http://localhost:8003/catalogi/api/v1/statustypen/48c43449-1ce2-4db9-a282-3ba86e37b7c3","datumStatusGezet":"2026-03-25T12:25:41.045786Z","statustoelichting":"","indicatieLaatstGezetteStatus":true,"gezetdoor":null,"zaakinformatieobjecten":[]}' + string: '{"url":"http://localhost:8003/zaken/api/v1/statussen/498175fd-a73e-44b0-a0ce-1d563fbcc179","uuid":"498175fd-a73e-44b0-a0ce-1d563fbcc179","zaak":"http://localhost:8003/zaken/api/v1/zaken/0a91f57f-42de-44d6-b6be-5714860ff163","statustype":"http://localhost:8003/catalogi/api/v1/statustypen/48c43449-1ce2-4db9-a282-3ba86e37b7c3","datumStatusGezet":"2026-05-21T11:16:27.436084Z","statustoelichting":"","indicatieLaatstGezetteStatus":true,"gezetdoor":null,"zaakinformatieobjecten":[]}' headers: API-version: - 1.5.1 @@ -605,7 +606,7 @@ interactions: Cross-Origin-Opener-Policy: - same-origin Location: - - http://localhost:8003/zaken/api/v1/statussen/0ae6b23b-08c4-4395-8a03-344ddd25d4ea + - http://localhost:8003/zaken/api/v1/statussen/498175fd-a73e-44b0-a0ce-1d563fbcc179 Referrer-Policy: - same-origin Vary: diff --git a/src/openforms/registrations/contrib/zgw_apis/typing.py b/src/openforms/registrations/contrib/zgw_apis/typing.py index 6d56c448b7..0b5d436a89 100644 --- a/src/openforms/registrations/contrib/zgw_apis/typing.py +++ b/src/openforms/registrations/contrib/zgw_apis/typing.py @@ -1,7 +1,10 @@ from __future__ import annotations +from collections.abc import Collection from typing import TYPE_CHECKING, Literal, NotRequired, TypedDict +from .constants import SummaryDocumentChoices + if TYPE_CHECKING: from openforms.contrib.objects_api.models import ObjectsAPIGroupConfig @@ -57,3 +60,4 @@ class RegistrationOptions(TypedDict): auteur: NotRequired[str] zaak_omschrijving: NotRequired[str] zaak_toelichting: NotRequired[str] + summary_documents: Collection[SummaryDocumentChoices] diff --git a/src/openforms/submissions/migrations/0012_alter_submission_registration_result.py b/src/openforms/submissions/migrations/0012_alter_submission_registration_result.py new file mode 100644 index 0000000000..455d8cf796 --- /dev/null +++ b/src/openforms/submissions/migrations/0012_alter_submission_registration_result.py @@ -0,0 +1,24 @@ +# Generated by Django 5.2.14 on 2026-05-18 11:17 + +import django.core.serializers.json +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("submissions", "0011_merge_20260304_1610"), + ] + + operations = [ + migrations.AlterField( + model_name="submission", + name="registration_result", + field=models.JSONField( + blank=True, + encoder=django.core.serializers.json.DjangoJSONEncoder, + help_text="Contains data returned by the registration backend while registering the submission data.", + null=True, + verbose_name="registration backend result", + ), + ), + ] diff --git a/src/openforms/submissions/migrations/0013_merge_20260526_1606.py b/src/openforms/submissions/migrations/0013_merge_20260526_1606.py new file mode 100644 index 0000000000..e6393e92ae --- /dev/null +++ b/src/openforms/submissions/migrations/0013_merge_20260526_1606.py @@ -0,0 +1,12 @@ +# Generated by Django 5.2.14 on 2026-05-26 14:06 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("submissions", "0012_alter_submission_registration_result"), + ("submissions", "0012_alter_submissionfileattachment_content_and_more"), + ] + + operations = [] diff --git a/src/openforms/submissions/models/submission.py b/src/openforms/submissions/models/submission.py index 830ea103a8..3766f5fad5 100644 --- a/src/openforms/submissions/models/submission.py +++ b/src/openforms/submissions/models/submission.py @@ -8,6 +8,7 @@ from typing import TYPE_CHECKING, ClassVar, assert_never from django.conf import settings +from django.core.serializers.json import DjangoJSONEncoder from django.db import models, transaction from django.utils import timezone from django.utils.formats import localize @@ -195,6 +196,7 @@ class Submission(models.Model): help_text=_( "Contains data returned by the registration backend while registering the submission data." ), + encoder=DjangoJSONEncoder, ) registration_status = models.CharField( _("registration backend status"), diff --git a/src/openforms/submissions/tests/test_on_completion_retry_chain.py b/src/openforms/submissions/tests/test_on_completion_retry_chain.py index 8a8099d513..eb3368d5ac 100644 --- a/src/openforms/submissions/tests/test_on_completion_retry_chain.py +++ b/src/openforms/submissions/tests/test_on_completion_retry_chain.py @@ -8,6 +8,7 @@ from privates.test import temp_private_root from openforms.appointments.tests.factories import AppointmentInfoFactory +from openforms.registrations.contrib.zgw_apis.constants import SummaryDocumentChoices from openforms.registrations.contrib.zgw_apis.tests.factories import ( ZGWApiGroupConfigFactory, ) @@ -290,6 +291,7 @@ def test_backend_registration_succeeds(self, mock_update_payment): "partners_roltype": "", "children_description": "", "children_roltype": "", + "summary_documents": {SummaryDocumentChoices.pdf}, }, ) self.assertNotEqual(submission.last_register_date, original_register_date) diff --git a/src/openforms/tests/test_zgw_urls_migrator.py b/src/openforms/tests/test_zgw_urls_migrator.py index 146a8087c4..e75447d0fe 100644 --- a/src/openforms/tests/test_zgw_urls_migrator.py +++ b/src/openforms/tests/test_zgw_urls_migrator.py @@ -19,6 +19,7 @@ from openforms.registrations.contrib.objects_api.typing import ( RegistrationOptionsV2 as ObjectsRegistrationOptionsV2, ) +from openforms.registrations.contrib.zgw_apis.constants import SummaryDocumentChoices from openforms.registrations.contrib.zgw_apis.options import ZaakOptionsSerializer from openforms.registrations.contrib.zgw_apis.tests.factories import ( ZGWApiGroupConfigFactory, @@ -406,6 +407,7 @@ def test_happy_flow_migrate_form(self): "children_roltype": "", "children_description": "", "objects_api_group": None, + "summary_documents": [SummaryDocumentChoices.pdf], } zgw_backend_1 = FormRegistrationBackendFactory.create( form=form, @@ -431,6 +433,7 @@ def test_happy_flow_migrate_form(self): "children_roltype": "", "children_description": "", "objects_api_group": None, + "summary_documents": [SummaryDocumentChoices.pdf], } zgw_backend_2 = FormRegistrationBackendFactory.create( form=form, @@ -707,6 +710,7 @@ def test_happy_flow_already_modern_config_is_left_untouched(self): "children_roltype": "", "children_description": "", "objects_api_group": None, + "summary_documents": [SummaryDocumentChoices.pdf], } zgw_backend_1 = FormRegistrationBackendFactory.create( form=form, @@ -732,6 +736,7 @@ def test_happy_flow_already_modern_config_is_left_untouched(self): "children_roltype": "", "children_description": "", "objects_api_group": None, + "summary_documents": [SummaryDocumentChoices.pdf], } zgw_backend_2 = FormRegistrationBackendFactory.create( form=form, @@ -1156,6 +1161,7 @@ def test_error_flow_zgw_invalid_case_type_references(self): "children_roltype": "", "children_description": "", "objects_api_group": None, + "summary_documents": [SummaryDocumentChoices.pdf], } FormRegistrationBackendFactory.create( form=form, @@ -1182,6 +1188,7 @@ def test_error_flow_zgw_invalid_case_type_references(self): "children_roltype": "", "children_description": "", "objects_api_group": None, + "summary_documents": [SummaryDocumentChoices.pdf], } FormRegistrationBackendFactory.create( form=form, @@ -1231,6 +1238,7 @@ def test_error_flow_zgw_invalid_document_type_references(self): "children_roltype": "", "children_description": "", "objects_api_group": None, + "summary_documents": [SummaryDocumentChoices.pdf], } FormRegistrationBackendFactory.create( form=form, @@ -1257,6 +1265,7 @@ def test_error_flow_zgw_invalid_document_type_references(self): "children_roltype": "", "children_description": "", "objects_api_group": None, + "summary_documents": [SummaryDocumentChoices.pdf], } FormRegistrationBackendFactory.create( form=form, @@ -1307,6 +1316,7 @@ def test_error_flow_zgw_case_type_document_type_have_different_catalogues(self): "children_roltype": "", "children_description": "", "objects_api_group": None, + "summary_documents": [SummaryDocumentChoices.pdf], } FormRegistrationBackendFactory.create( form=form, @@ -1363,6 +1373,7 @@ def test_error_flow_zgw_case_type_document_type_options_different_catalogue(self "children_roltype": "", "children_description": "", "objects_api_group": None, + "summary_documents": [SummaryDocumentChoices.pdf], } FormRegistrationBackendFactory.create( form=form, @@ -1414,6 +1425,7 @@ def test_error_flow_zgw_document_type_does_not_belong_to_case_type(self): "children_roltype": "", "children_description": "", "objects_api_group": None, + "summary_documents": [SummaryDocumentChoices.pdf], } FormRegistrationBackendFactory.create( form=form,