From 6fa2eb82eb0b8dfe6ef7052fe5c759157a43acc3 Mon Sep 17 00:00:00 2001 From: RiccardoGiuliani Date: Thu, 19 Dec 2024 16:16:42 +0100 Subject: [PATCH] P4ADEV-1775 modified path, tag, paymentOptionId and receiptId in Installment, ordering --- openapi/p4pa-debt-position.openapi.yaml | 126 ++++++++++++------------ 1 file changed, 64 insertions(+), 62 deletions(-) diff --git a/openapi/p4pa-debt-position.openapi.yaml b/openapi/p4pa-debt-position.openapi.yaml index 99922ca..a12c1fd 100644 --- a/openapi/p4pa-debt-position.openapi.yaml +++ b/openapi/p4pa-debt-position.openapi.yaml @@ -7,10 +7,10 @@ servers: - url: http://localhost:8080 description: Generated server url paths: - /api/debt-positions: + /debt-positions: post: tags: - - debt-position-controller + - debt-position operationId: createDebtPosition requestBody: content: @@ -75,6 +75,34 @@ components: type: array items: $ref: "#/components/schemas/PaymentOptionDTO" + PaymentOptionDTO: + type: object + properties: + paymentOptionId: + type: integer + format: int64 + totalAmountCents: + type: integer + format: int64 + status: + type: string + multiDebtor: + type: boolean + dueDate: + type: string + format: date-time + description: + type: string + paymentOptionType: + type: string + enum: + - SINGLE_INSTALLMENT + - INSTALMENTS + - DOWN_PAYMENT + installments: + type: array + items: + $ref: "#/components/schemas/InstallmentDTO" InstallmentDTO: type: object properties: @@ -82,7 +110,8 @@ components: type: integer format: int64 paymentOptionId: - $ref: "#/components/schemas/PaymentOptionDTO" + type: integer + format: int64 status: type: string iud: @@ -116,65 +145,45 @@ components: type: array items: $ref: "#/components/schemas/TransferDTO" - receipt: - $ref: "#/components/schemas/ReceiptDTO" + receiptId: + type: integer + format: int64 creationDate: type: string format: date-time updateDate: type: string format: date-time - PaymentOptionDTO: + TransferDTO: type: object properties: - paymentOptionId: - type: integer - format: int64 - totalAmountCents: + transferId: type: integer format: int64 - status: - type: string - multiDebtor: - type: boolean - dueDate: - type: string - format: date-time - description: - type: string - paymentOptionType: - type: string - enum: - - SINGLE_INSTALLMENT - - INSTALMENTS - - DOWN_PAYMENT - installments: - type: array - items: - $ref: "#/components/schemas/InstallmentDTO" - PersonDTO: - type: object - properties: - uniqueIdentifierType: - type: string - uniqueIdentifierCode: + orgFiscalCode: type: string - fullName: + orgName: type: string - address: + amountCents: + type: integer + format: int64 + remittanceInformation: type: string - civic: + stampType: type: string - postalCode: + stampHashDocument: type: string - location: + stampProvincialResidence: type: string - province: + iban: type: string - nation: + postalIban: type: string - email: + category: type: string + transferIndex: + type: integer + format: int32 ReceiptDTO: type: object properties: @@ -241,33 +250,26 @@ components: updateDate: type: string format: date-time - TransferDTO: + PersonDTO: type: object properties: - transferId: - type: integer - format: int64 - orgFiscalCode: + uniqueIdentifierType: type: string - orgName: + uniqueIdentifierCode: type: string - amountCents: - type: integer - format: int64 - remittanceInformation: + fullName: type: string - stampType: + address: type: string - stampHashDocument: + civic: type: string - stampProvincialResidence: + postalCode: type: string - iban: + location: type: string - postalIban: + province: type: string - category: + nation: + type: string + email: type: string - transferIndex: - type: integer - format: int32