Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Aligned to debt-position openApi #25

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ openApiGenerate {
outputDir.set("$projectDir/build/generated")
apiPackage.set("it.gov.pagopa.pu.pagopapayments.controller.generated")
modelPackage.set("it.gov.pagopa.pu.pagopapayments.dto.generated")
typeMappings.set(mapOf(
"DebtPositionDTO" to "it.gov.pagopa.pu.debtpositions.dto.generated.DebtPositionDTO",
"InstallmentStatus" to "it.gov.pagopa.pu.debtpositions.dto.generated.InstallmentDTO.StatusEnum"
))
configOptions.set(mapOf(
"dateLibrary" to "java8",
"requestMappingMode" to "api_interface",
Expand Down
372 changes: 1 addition & 371 deletions openapi/p4pa-pagopa-payments.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/DebtPositionDTO"
type: "DebtPositionDTO"
required: true
responses:
"204":
Expand Down Expand Up @@ -108,376 +108,6 @@ security:
- BearerAuth: []
components:
schemas:
DebtPositionDTO:
required:
- organizationId
- debtPositionTypeOrgId
- paymentOptions
type: object
properties:
debtPositionId:
type: integer
format: int64
iupdOrg:
type: string
description:
type: string
status:
$ref: "#/components/schemas/DebtPositionStatus"
debtPositionOrigin:
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
- paymentOptionType
type: object
properties:
paymentOptionId:
type: integer
format: int64
debtPositionId:
type: integer
format: int64
totalAmountCents:
type: integer
format: int64
status:
$ref: "#/components/schemas/PaymentOptionStatus"
multiDebtor:
type: boolean
dueDate:
type: string
format: date-time
description:
type: string
paymentOptionType:
type: string
enum:
- SINGLE_INSTALLMENT
- INSTALLMENTS
- 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:
$ref: "#/components/schemas/InstallmentStatus"
debtPositionOrigin:
$ref: "#/components/schemas/DebtPositionOrigin"
syncStatus:
$ref: "#/components/schemas/InstallmentSyncStatus"
iupdPagopa:
type: string
iud:
type: string
iuv:
type: string
iur:
type: string
iuf:
type: string
nav:
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
installmentId:
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
required:
- receiptSource
- paymentReceiptId
- noticeNumber
- orgFiscalCode
- outcome
- creditorReferenceId
- paymentAmountCents
- description
- companyName
- idPsp
- pspCompanyName
- idChannel
- channelDescription
- debtor
- payer
properties:
receiptId:
type: integer
format: int64
installmentId:
type: integer
format: int64
ingestionFlowFileId:
type: integer
format: int64
receiptOrigin:
type: string
paymentReceiptId:
type: string
noticeNumber:
type: string
paymentNote:
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
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
- entityType
- fiscalCode
type: object
properties:
entityType:
type: string
enum:
- F
- G
fiscalCode:
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
DebtPositionStatus:
type: string
enum:
- TO_SYNC
- REPORTED
- PAID
- PARTIALLY_PAID
- CANCELLED
- INVALID
- EXPIRED
- UNPAID
- DRAFT
DebtPositionOrigin:
type: string
enum:
- ORDINARY
- SPONTANEOUS
- SECONDARY_ORG
- RECEIPT_FILE
- RECEIPT_PAGOPA
- REPORTING_PAGOPA
PaymentOptionStatus:
type: string
enum:
- TO_SYNC
- REPORTED
- PAID
- PARTIALLY_PAID
- CANCELLED
- INVALID
- EXPIRED
- UNPAID
- DRAFT
InstallmentStatus:
type: string
enum:
- TO_SYNC
- REPORTED
- PAID
- CANCELLED
- INVALID
- EXPIRED
- UNPAID
- DRAFT
SyncStatusUpdateRequestDTO:
type: object
additionalProperties:
$ref: "#/components/schemas/IupdSyncStatusUpdateDTO"
IupdSyncStatusUpdateDTO:
type: object
properties:
newStatus:
$ref: "#/components/schemas/InstallmentStatus"
iupdPagopa:
type: string
InstallmentSyncStatus:
required:
- syncStatusFrom
- syncStatusTo
type: object
properties:
syncStatusFrom:
$ref: "#/components/schemas/InstallmentStatus"
syncStatusTo:
$ref: "#/components/schemas/InstallmentStatus"
PaymentsReportingIdDTO:
required:
- pagopaPaymentsReportingId
Expand Down
Loading
Loading