OVPAY-982 - Added isCredit to CRUD Contracts.

This commit is contained in:
Bas Boterman 2024-10-25 12:14:59 +02:00
parent 4371149bb3
commit e8353b78da

View File

@ -216,6 +216,7 @@ paths:
"created": "2024-06-02 15:01:00.000", "created": "2024-06-02 15:01:00.000",
"updated": "2024-06-02 15:01:00.000", "updated": "2024-06-02 15:01:00.000",
"state": "invoice_created", "state": "invoice_created",
"isCredit": false,
}, },
{ {
"contractInvoiceId": "1c345237-4d84-47f0-93c2-7b94338e3355", "contractInvoiceId": "1c345237-4d84-47f0-93c2-7b94338e3355",
@ -224,6 +225,7 @@ paths:
"created": "2024-07-02 15:01:00.000", "created": "2024-07-02 15:01:00.000",
"updated": "2024-07-02 15:01:00.000", "updated": "2024-07-02 15:01:00.000",
"state": "invoice_created", "state": "invoice_created",
"isCredit": false,
}, },
], ],
"contractVersions": "contractVersions":
@ -273,6 +275,7 @@ paths:
"created": "2024-06-02 15:01:00.000", "created": "2024-06-02 15:01:00.000",
"updated": "2024-06-02 15:01:00.000", "updated": "2024-06-02 15:01:00.000",
"state": "invoice_created", "state": "invoice_created",
"isCredit": false,
}, },
{ {
"contractInvoiceId": "1c345237-4d84-47f0-93c2-7b94338e3355", "contractInvoiceId": "1c345237-4d84-47f0-93c2-7b94338e3355",
@ -281,6 +284,7 @@ paths:
"created": "2024-07-02 15:01:00.000", "created": "2024-07-02 15:01:00.000",
"updated": "2024-07-02 15:01:00.000", "updated": "2024-07-02 15:01:00.000",
"state": "invoice_created", "state": "invoice_created",
"isCredit": false,
}, },
], ],
"contractVersions": "contractVersions":
@ -401,6 +405,7 @@ paths:
"updated": "2024-07-02 15:01:00.000", "updated": "2024-07-02 15:01:00.000",
"state": "invoice_created", "state": "invoice_created",
"data": "{json}", "data": "{json}",
"isCredit": false,
}, },
], ],
}, },
@ -568,6 +573,7 @@ paths:
"updated": "2024-07-02 15:01:00.000", "updated": "2024-07-02 15:01:00.000",
"state": "invoice_sent", "state": "invoice_sent",
"data": "{json}", "data": "{json}",
"isCredit": false,
}, },
{ {
"contractInvoiceId": "dadff658-4ff5-4eb8-b516-492f1f6c6245", "contractInvoiceId": "dadff658-4ff5-4eb8-b516-492f1f6c6245",
@ -577,6 +583,7 @@ paths:
"updated": "2024-08-02 15:01:00.000", "updated": "2024-08-02 15:01:00.000",
"state": "invoice_created", "state": "invoice_created",
"data": "{json}", "data": "{json}",
"isCredit": false,
}, },
], ],
} }
@ -600,6 +607,7 @@ paths:
"updated": "2024-07-02 15:01:00.000", "updated": "2024-07-02 15:01:00.000",
"state": "invoice_created", "state": "invoice_created",
"data": "{json}", "data": "{json}",
"isCredit": false,
}, },
} }
responses: responses:
@ -684,6 +692,13 @@ paths:
example: created example: created
required: false required: false
description: Invoice state. description: Invoice state.
- in: query
name: isCredit
schema:
type: boolean
example: false
required: false
description: Whether the invoice is a credit invoice.
responses: responses:
"200": "200":
description: OK description: OK
@ -704,6 +719,7 @@ paths:
"updated": "2024-06-02 15:01:00.000", "updated": "2024-06-02 15:01:00.000",
"state": "invoice_created", "state": "invoice_created",
"data": "{json}", "data": "{json}",
"isCredit": false,
}, },
{ {
"contractId": "a7452e22-3894-40cc-87d6-869370a92277", "contractId": "a7452e22-3894-40cc-87d6-869370a92277",
@ -714,6 +730,7 @@ paths:
"updated": "2024-08-02 15:01:00.000", "updated": "2024-08-02 15:01:00.000",
"state": "invoice_created", "state": "invoice_created",
"data": "{json}", "data": "{json}",
"isCredit": false,
}, },
], ],
} }
@ -1049,6 +1066,9 @@ components:
type: string type: string
format: json format: json
example: { json } example: { json }
isCredit:
type: boolean
example: false
ContractStatus: ContractStatus:
type: object type: object
properties: properties: