diff --git a/spec/schemas/callback-new-events.yaml b/spec/schemas/callback-new-events.yaml index dd1a0ce66d45828576deca0e35ec76c09e5d68c8..57a42e76d37bb1885c0a2c3b83fc21f546f42982 100644 --- a/spec/schemas/callback-new-events.yaml +++ b/spec/schemas/callback-new-events.yaml @@ -10,7 +10,8 @@ properties: - https://schema.fitko.de/fit-connect/submission-api/callbacks/new-events submissionIds: title: Liste der zugehörigen `submissionId`s - description: Liste der `submissionId`s, für die neue Events im Event Log bereitstehen. + description: '(DEPRECATED) Liste der `submissionId`s, für die neue Events im Event Log bereitstehen' + deprecated: true type: array minItems: 1 items: @@ -18,3 +19,10 @@ properties: format: uuid minLength: 32 maxLength: 36 + submissions: + title: Liste abholbereiter Einreichungen + description: 'Liste von Einreichungen, für die neue Events im Event Log bereitstehen.' + type: array + minItems: 1 + items: + $ref: './submission-for-new-events.yaml' diff --git a/spec/schemas/callback-new-submissions.yaml b/spec/schemas/callback-new-submissions.yaml index d94098c4e3394e10a0c6eca8b4a0e13f389d03e7..be9acc3430833ccfd98385ff6df7fb105cb0f57f 100644 --- a/spec/schemas/callback-new-submissions.yaml +++ b/spec/schemas/callback-new-submissions.yaml @@ -10,7 +10,8 @@ properties: - https://schema.fitko.de/fit-connect/submission-api/callbacks/new-submissions submissionIds: title: Liste abholbereiter Einreichungen - description: 'Liste von `submissionId`s aller Einreichungen, die zur Abholung bereitstehen' + description: '(DEPRECATED) Liste von `submissionId`s aller Einreichungen, die zur Abholung bereitstehen.' + deprecated: true type: array minItems: 1 items: @@ -18,3 +19,11 @@ properties: format: uuid minLength: 32 maxLength: 36 + submissions: + title: Liste abholbereiter Einreichungen + description: 'Liste von Einreichungen, die zur Abholung bereitstehen' + type: array + minItems: 1 + items: + $ref: './submission-for-pickup.yaml' + diff --git a/spec/schemas/submission-for-new-events.yaml b/spec/schemas/submission-for-new-events.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b0e9dc88db05f9080e838624da7122be1763d432 --- /dev/null +++ b/spec/schemas/submission-for-new-events.yaml @@ -0,0 +1,26 @@ +type: object +title: Einreichungen mit neuen Events +description: Eine einzelne Einreichung, abzurufen beim Zustellpunkt mit der angegebenen `destinationId`. +required: + - destinationId + - submissionId + - caseId +properties: + destinationId: + type: string + format: uuid + minLength: 32 + maxLength: 36 + description: Identifikator des Zustellpunktes im Format einer UUID + submissionId: + type: string + format: uuid + minLength: 32 + maxLength: 36 + description: Identifikator der Einreichung im Format einer UUID + caseId: + type: string + format: uuid + minLength: 32 + maxLength: 36 + description: Vorgangsreferenz des Vorgangs, zu der die Einreichung gehört. diff --git a/spec/submission-api.yaml b/spec/submission-api.yaml index a037844a3dbeba08bec704399d42f275990489d0..d23cb9f8c2b9b4b6001a88eca5dc54851a6d21ea 100644 --- a/spec/submission-api.yaml +++ b/spec/submission-api.yaml @@ -131,6 +131,8 @@ components: $ref: './schemas/service-region.yaml' SubmissionForPickup: $ref: './schemas/submission-for-pickup.yaml' + SubmissionForNewEvents: + $ref: './schemas/submission-for-new-events.yaml' SubmissionsForPickup: $ref: './schemas/submissions-for-pickup.yaml' SubmitSubmission: