Skip to content

Commit

Permalink
feat: P4ADEV-1775 initialized openApi (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoGiuliani authored Dec 20, 2024
1 parent c67bce6 commit 5360cf1
Show file tree
Hide file tree
Showing 3 changed files with 298 additions and 32 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ springBoot {

openApiGenerate {
generatorName.set("spring")
inputSpec.set("$rootDir/openapi/template-payments-java-repository.openapi.yaml")
inputSpec.set("$rootDir/openapi/p4pa-debt-position.openapi.yaml")
outputDir.set("$projectDir/build/generated")
apiPackage.set("it.gov.pagopa.template.controller.generated")
modelPackage.set("it.gov.pagopa.template.model.generated")
Expand Down
297 changes: 297 additions & 0 deletions openapi/p4pa-debt-position.openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,297 @@
openapi: 3.0.1
info:
title: p4pa-debt-positions
description: Api and Models
version: 0.0.1
servers:
- url: http://localhost:8080
description: Generated server url
paths:
/debt-positions:
post:
tags:
- debt-position
operationId: createDebtPosition
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/DebtPositionDTO"
required: true
responses:
"201":
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/DebtPositionDTO'
"400":
description: Invalid request
"500":
description: Internal server error
components:
schemas:
DebtPositionDTO:
required:
- debtPositionTypeOrgId
- organizationId
type: object
properties:
debtPositionId:
type: integer
format: int64
iupdOrg:
type: string
iupdPagopa:
type: string
description:
type: string
status:
type: string
ingestionFlowFileId:
type: integer
format: int64
ingestionFlowFileLineNumber:
type: integer
format: int64
organizationId:
type: integer
format: int64
debtPositionTypeOrgId:
type: integer
format: int64
notificationDate:
type: string
format: date-time
validityDate:
type: string
format: date-time
flagIuvVolatile:
type: boolean
creationDate:
type: string
format: date-time
updateDate:
type: string
format: date-time
paymentOptions:
type: array
items:
$ref: "#/components/schemas/PaymentOptionDTO"
PaymentOptionDTO:
required:
- installments
- totalAmountCents
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:
required:
- amountCents
- debtor
- remittanceInformation
- transfers
type: object
properties:
installmentId:
type: integer
format: int64
paymentOptionId:
type: integer
format: int64
status:
type: string
iud:
type: string
iuv:
type: string
iur:
type: string
dueDate:
type: string
format: date-time
paymentTypeCode:
type: string
amountCents:
type: integer
format: int64
notificationFeeCents:
type: integer
format: int64
remittanceInformation:
type: string
humanFriendlyRemittanceInformation:
type: string
balance:
type: string
legacyPaymentMetadata:
type: string
debtor:
$ref: "#/components/schemas/PersonDTO"
transfers:
type: array
items:
$ref: "#/components/schemas/TransferDTO"
creationDate:
type: string
format: date-time
updateDate:
type: string
format: date-time
TransferDTO:
required:
- amountCents
- category
- orgFiscalCode
- orgName
- remittanceInformation
type: object
properties:
transferId:
type: integer
format: int64
orgFiscalCode:
type: string
orgName:
type: string
amountCents:
type: integer
format: int64
remittanceInformation:
type: string
stampType:
type: string
stampHashDocument:
type: string
stampProvincialResidence:
type: string
iban:
type: string
postalIban:
type: string
category:
type: string
transferIndex:
type: integer
format: int32
ReceiptDTO:
type: object
properties:
receiptId:
type: integer
format: int64
installmentId:
type: integer
format: int64
paymentReceiptId:
type: string
noticeNumber:
type: string
orgFiscalCode:
type: string
outcome:
type: string
creditorReferenceId:
type: string
paymentAmountCents:
type: integer
format: int64
description:
type: string
companyName:
type: string
officeName:
type: string
idPsp:
type: string
pspFiscalCode:
type: string
pspPartitaIva:
type: string
pspCompanyName:
type: string
idChannel:
type: string
channelDescription:
type: string
paymentMethod:
type: string
feeCents:
type: integer
format: int64
paymentDateTime:
type: string
format: date-time
applicationDate:
type: string
format: date-time
transferDate:
type: string
format: date-time
receiptBytes:
type: string
format: byte
standin:
type: boolean
debtor:
$ref: "#/components/schemas/PersonDTO"
payer:
$ref: "#/components/schemas/PersonDTO"
creationDate:
type: string
format: date-time
updateDate:
type: string
format: date-time
PersonDTO:
required:
- email
- fullName
- uniqueIdentifierCode
- uniqueIdentifierType
type: object
properties:
uniqueIdentifierType:
type: string
uniqueIdentifierCode:
type: string
fullName:
type: string
address:
type: string
civic:
type: string
postalCode:
type: string
location:
type: string
province:
type: string
nation:
type: string
email:
type: string
31 changes: 0 additions & 31 deletions openapi/template-payments-java-repository.openapi.yaml

This file was deleted.

0 comments on commit 5360cf1

Please sign in to comment.