diff --git a/app/models/move.rb b/app/models/move.rb index f31f6756d..56483a0a8 100644 --- a/app/models/move.rb +++ b/app/models/move.rb @@ -67,6 +67,7 @@ class Move < VersionedModel CANCELLATION_REASON_CANCELLED_BY_PMU = 'cancelled_by_pmu', CANCELLATION_REASON_REJECTED = 'rejected', CANCELLATION_REASON_DATABASE_CORRECTION = 'database_correction', + CANCELLATION_REASON_INCOMPLETE_PER = 'incomplete_per', CANCELLATION_REASON_OTHER = 'other', ].freeze diff --git a/spec/models/move_spec.rb b/spec/models/move_spec.rb index 61e34f78f..c59cc9d38 100644 --- a/spec/models/move_spec.rb +++ b/spec/models/move_spec.rb @@ -37,6 +37,7 @@ supplier_declined_to_move cancelled_by_pmu rejected + incomplete_per other ]) } diff --git a/spec/swagger/swagger_doc_v1.yaml b/spec/swagger/swagger_doc_v1.yaml index f82b81738..2a659af00 100644 --- a/spec/swagger/swagger_doc_v1.yaml +++ b/spec/swagger/swagger_doc_v1.yaml @@ -721,6 +721,7 @@ - supplier_declined_to_move - cancelled_by_pmu - rejected + - incomplete_per - other - name: filter[rejection_reason] in: query diff --git a/spec/swagger/swagger_doc_v2.yaml b/spec/swagger/swagger_doc_v2.yaml index 66878e1ca..6f5f1e421 100644 --- a/spec/swagger/swagger_doc_v2.yaml +++ b/spec/swagger/swagger_doc_v2.yaml @@ -397,6 +397,7 @@ - supplier_declined_to_move - cancelled_by_pmu - rejected + - incomplete_per - other - name: filter[rejection_reason] in: query diff --git a/swagger/v1/move.yaml b/swagger/v1/move.yaml index 172045760..9ffe3dd9e 100644 --- a/swagger/v1/move.yaml +++ b/swagger/v1/move.yaml @@ -100,6 +100,7 @@ Move: - supplier_declined_to_move - cancelled_by_pmu - rejected + - incomplete_per - other - type: 'null' description: Reason the move has been cancelled diff --git a/swagger/v1/move_cancellation_reason_attribute.yaml b/swagger/v1/move_cancellation_reason_attribute.yaml index ea80e6d73..c85c8f0c3 100644 --- a/swagger/v1/move_cancellation_reason_attribute.yaml +++ b/swagger/v1/move_cancellation_reason_attribute.yaml @@ -6,5 +6,6 @@ MoveCancellationReason: - supplier_declined_to_move - cancelled_by_pmu - rejected + - incomplete_per - other description: The reason the move has been cancelled diff --git a/swagger/v2/move.yaml b/swagger/v2/move.yaml index 933d2d2d4..2854ecdfa 100644 --- a/swagger/v2/move.yaml +++ b/swagger/v2/move.yaml @@ -105,6 +105,7 @@ Move: - supplier_declined_to_move - cancelled_by_pmu - rejected + - incomplete_per - other - type: "null" description: Reason the move has been cancelled diff --git a/swagger/v2/patch_move.yaml b/swagger/v2/patch_move.yaml index c8a9f681d..25acabac7 100644 --- a/swagger/v2/patch_move.yaml +++ b/swagger/v2/patch_move.yaml @@ -98,6 +98,7 @@ Move: - supplier_declined_to_move - cancelled_by_pmu - rejected + - incomplete_per - other - type: "null" description: Reason the move has been cancelled