generated from pagopa/template-payments-java-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: P4ADEV-1775 initialized openApi (#5)
- Loading branch information
1 parent
c67bce6
commit 5360cf1
Showing
3 changed files
with
298 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
- 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 |
This file was deleted.
Oops, something went wrong.