OVPAY-416 - Bugfixes on GET contracts.

This commit is contained in:
Bas Boterman 2024-08-02 11:04:37 +02:00
parent 98c4b3bd64
commit b8bf553a8e

View File

@ -162,7 +162,7 @@ paths:
schema:
type: integer
required: false
description: Number of invoices to include in response body.
description: Number of invoices to include in response body (per contract).
responses:
"200":
description: OK
@ -189,16 +189,25 @@ paths:
"billingDay": 15,
"highestInvoiceTerm": 1,
"xSpit": "1c345237-4d84-47f0-93c2-7b94338e3355",
"highestContractInvoice":
{
"contractInvoiceId": "8699d72a-cf4d-4e6b-9e9c-549d837ca51f",
"externalReference": "WEFACT-123456",
"term": 1,
"created": "2024-07-02 15:01:00.000",
"updated": "2024-07-02 15:01:00.000",
"state": "invoice_created",
"data": "{json}",
},
"contractInvoices":
[
{
"contractInvoiceId": "8699d72a-cf4d-4e6b-9e9c-549d837ca51f",
"externalReference": "F2024-0001",
"term": 1,
"created": "2024-07-02 15:01:00.000",
"updated": "2024-07-02 15:01:00.000",
"state": "invoice_created",
},
{
"contractInvoiceId": "1c345237-4d84-47f0-93c2-7b94338e3355",
"externalReference": "F2024-0002",
"term": 1,
"created": "2024-07-02 15:01:00.000",
"updated": "2024-07-02 15:01:00.000",
"state": "invoice_created",
},
],
},
{
"contractId": "f07253e6-c364-474c-a342-a10a4a7cf305",
@ -215,16 +224,25 @@ paths:
"billingDay": 15,
"highestInvoiceTerm": 1,
"xSpit": "1c345237-4d84-47f0-93c2-7b94338e3355",
"highestContractInvoice":
{
"contractInvoiceId": "e2462347-6749-4841-b42a-cf8de19ec727",
"externalReference": "WEFACT-123457",
"term": 1,
"created": "2024-07-02 15:01:00.000",
"updated": "2024-07-02 15:01:00.000",
"state": "invoice_created",
"data": "{json}",
},
"contractInvoices":
[
{
"contractInvoiceId": "8699d72a-cf4d-4e6b-9e9c-549d837ca51f",
"externalReference": "F2024-0003",
"term": 1,
"created": "2024-07-02 15:01:00.000",
"updated": "2024-07-02 15:01:00.000",
"state": "invoice_created",
},
{
"contractInvoiceId": "1c345237-4d84-47f0-93c2-7b94338e3355",
"externalReference": "F2024-0004",
"term": 1,
"created": "2024-07-02 15:01:00.000",
"updated": "2024-07-02 15:01:00.000",
"state": "invoice_created",
},
],
},
],
}
@ -314,7 +332,7 @@ paths:
[
{
"contractInvoiceId": "8699d72a-cf4d-4e6b-9e9c-549d837ca51f",
"externalReference": "WEFACT-123456",
"externalReference": "F2024-0001",
"term": 1,
"created": "2024-07-02 15:01:00.000",
"updated": "2024-07-02 15:01:00.000",
@ -472,7 +490,7 @@ paths:
{
"contractInvoice":
{
"externalReference": "WEFACT-123456",
"externalReference": "F2024-0001",
"term": 1,
"created": "2024-07-02 15:01:00.000",
"updated": "2024-07-02 15:01:00.000",
@ -772,7 +790,7 @@ components:
example: 8699d72a-cf4d-4e6b-9e9c-549d837ca51f
externalReference:
type: string
example: WEFACT-123456
example: F2024-0001
term:
type: integer
example: 1