Skip to content

Commit

Permalink
P4ADEV-1668 modified DebtPositionStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoGiuliani committed Jan 16, 2025
1 parent 314c933 commit 71fad4f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
22 changes: 21 additions & 1 deletion openapi/p4pa-debt-position.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ paths:
tags:
- debt-position
operationId: createDebtPosition
parameters:
- name: massive
in: query
description: Indicates if the operation is massive (true) or single (false).
required: false
schema:
type: boolean
requestBody:
content:
application/json:
Expand All @@ -27,6 +34,8 @@ paths:
$ref: '#/components/schemas/DebtPositionDTO'
"400":
description: Invalid request
"409":
description: Debt position already exists
"500":
description: Internal server error
security:
Expand All @@ -52,7 +61,7 @@ components:
description:
type: string
status:
type: string
$ref: "#/components/schemas/DebtPositionStatus"
ingestionFlowFileId:
type: integer
format: int64
Expand Down Expand Up @@ -313,3 +322,14 @@ components:
type: string
email:
type: string
DebtPositionStatus:
type: string
enum:
- TO_SYNC
- REPORTED
- PAID
- PARTIALLY_PAID
- CANCELLED
- INVALID
- EXPIRED
- UNPAID
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package it.gov.pagopa.pu.debtpositions.model;

import it.gov.pagopa.pu.debtpositions.dto.generated.DebtPositionStatus;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down Expand Up @@ -36,7 +37,7 @@ public class DebtPosition extends BaseEntity implements Serializable {
private Long debtPositionId;
private String iupdOrg;
private String description;
private String status;
private DebtPositionStatus status;
private Long ingestionFlowFileId;
private Long ingestionFlowFileLineNumber;
private Long organizationId;
Expand Down

0 comments on commit 71fad4f

Please sign in to comment.