OVPAY-416 - Added ContractInvoice to response of GET Contracts.

This commit is contained in:
Bas Boterman 2024-08-05 09:29:29 +02:00
parent 77323b6310
commit 30359b9983

View File

@ -155,6 +155,7 @@ paths:
name: billingDay name: billingDay
schema: schema:
type: integer type: integer
example: 13
required: false required: false
description: Filter on billingDay. In case of weekly termDuration, Sunday = 0, Monday = 1, etc. description: Filter on billingDay. In case of weekly termDuration, Sunday = 0, Monday = 1, etc.
- in: query - in: query
@ -168,6 +169,7 @@ paths:
name: invoiceLimit name: invoiceLimit
schema: schema:
type: integer type: integer
example: 2
required: false required: false
description: Number of invoices to include in response body (per contract). description: Number of invoices to include in response body (per contract).
responses: responses:
@ -215,6 +217,28 @@ paths:
"state": "invoice_created", "state": "invoice_created",
}, },
], ],
"contractVersions":
[
{
"contractVersionId": 1,
"termsAndConditions": "https://www.htm.nl/reisproducten/productvoorwaarden/htm-maandkorting/",
"termAmountExclTax": 1200,
"taxCode": "V21",
"taxAmount": 108,
"termAmountInclTax": 1308,
"start": "2024-07-04 15:01:00.000",
"end": "2024-12-31 15:01:00.000",
},
{
"contractVersionId": 2,
"termsAndConditions": "https://www.htm.nl/reisproducten/productvoorwaarden/htm-maandkorting/",
"termAmountExclTax": 1300,
"taxCode": "V21",
"taxAmount": 117,
"termAmountInclTax": 1417,
"start": "2025-01-01 15:01:00.000",
},
],
}, },
{ {
"contractId": "f07253e6-c364-474c-a342-a10a4a7cf305", "contractId": "f07253e6-c364-474c-a342-a10a4a7cf305",
@ -250,6 +274,28 @@ paths:
"state": "invoice_created", "state": "invoice_created",
}, },
], ],
"contractVersions":
[
{
"contractVersionId": 1,
"termsAndConditions": "https://www.htm.nl/reisproducten/productvoorwaarden/htm-maandkorting/",
"termAmountExclTax": 1200,
"taxCode": "V21",
"taxAmount": 108,
"termAmountInclTax": 1308,
"start": "2024-07-04 15:01:00.000",
"end": "2024-12-31 15:01:00.000",
},
{
"contractVersionId": 2,
"termsAndConditions": "https://www.htm.nl/reisproducten/productvoorwaarden/htm-maandkorting/",
"termAmountExclTax": 1300,
"taxCode": "V21",
"taxAmount": 117,
"termAmountInclTax": 1417,
"start": "2025-01-01 15:01:00.000",
},
],
}, },
], ],
} }