DHIL-3364 - Order lines are added in single.
This commit is contained in:
parent
a411e60968
commit
673d456fc2
@ -672,8 +672,8 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
description: The id of the order to process.
|
description: The id of the order to process.
|
||||||
post:
|
post:
|
||||||
summary: P1. Add one or more order lines to an order.
|
summary: P1. Add a single order line to an order.
|
||||||
description: Add one or more order lines to an order.
|
description: Add a single order line to an order.
|
||||||
tags:
|
tags:
|
||||||
- Order Line
|
- Order Line
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -682,53 +682,51 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/unavailable"
|
$ref: "#/components/schemas/unavailable"
|
||||||
example:
|
example:
|
||||||
[
|
{
|
||||||
{
|
"productId": 1,
|
||||||
"productId": 1,
|
"productName": "HTM Maandkorting 20%",
|
||||||
"productName": "HTM Maandkorting 20%",
|
"productCode": "HTM-MND-20",
|
||||||
"productCode": "HTM-MND-20",
|
"productDescription": "HTM Maandkorting 20%",
|
||||||
"productDescription": "HTM Maandkorting 20%",
|
"taxAmount": 21,
|
||||||
"taxAmount": 21,
|
"taxMetadataId": "1d6f1725-1072-4f08-982c-3df51dd854a1",
|
||||||
"taxMetadataId": "1d6f1725-1072-4f08-982c-3df51dd854a1",
|
"amountExclTax": 100,
|
||||||
"amountExclTax": 100,
|
"amountInclTax": 121,
|
||||||
"amountInclTax": 121,
|
"quantity": 1,
|
||||||
"quantity": 1,
|
"orderLineTerms":
|
||||||
"orderLineTerms":
|
[{ "termsUrl": "generalTermsAndConditions.pdf" }],
|
||||||
[{ "termsUrl": "generalTermsAndConditions.pdf" }],
|
"validFrom": "2024-03-22T09:00:00",
|
||||||
"validFrom": "2024-03-22T09:00:00",
|
"validUntil": "2025-03-22T09:00:00",
|
||||||
"validUntil": "2025-03-22T09:00:00",
|
"orderLineStatusId": 4,
|
||||||
"orderLineStatusId": 4,
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
"createdOn": "2024-03-22T09:00:00",
|
"customerTokens":
|
||||||
"customerTokens":
|
[
|
||||||
[
|
{
|
||||||
{
|
"tokenTypeId": 1,
|
||||||
"tokenTypeId": 1,
|
"ovPayTokenId": 1,
|
||||||
"ovPayTokenId": 1,
|
"serviceReferenceId": "NLOV1234567ABCDEFG",
|
||||||
"serviceReferenceId": "NLOV1234567ABCDEFG",
|
"amount": 34,
|
||||||
"amount": 34,
|
"ovpasNumber": "OV34567",
|
||||||
"ovpasNumber": "OV34567",
|
"verificationCode": "A7H6",
|
||||||
"verificationCode": "A7H6",
|
"personalAccountData":
|
||||||
"personalAccountData":
|
{
|
||||||
{
|
"name": "Jan de Vries",
|
||||||
"name": "Jan de Vries",
|
"dateOfBirth": "01-01-1970",
|
||||||
"dateOfBirth": "01-01-1970",
|
"photoReference": "DSC_0502.JPG",
|
||||||
"photoReference": "DSC_0502.JPG",
|
"fileType": "image/jpg",
|
||||||
"fileType": "image/jpg",
|
"challengeTypeId": 1,
|
||||||
"challengeTypeId": 1,
|
"oneTimePassword": "H5Iiz3JTaQeIV8p",
|
||||||
"oneTimePassword": "H5Iiz3JTaQeIV8p",
|
},
|
||||||
},
|
},
|
||||||
},
|
],
|
||||||
],
|
"orderAccountingStatuses":
|
||||||
"orderAccountingStatuses":
|
[
|
||||||
[
|
{
|
||||||
{
|
"accountingStatusId": 1,
|
||||||
"accountingStatusId": 1,
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
"createdOn": "2024-03-22T09:00:00",
|
"description": "Financiele transactie voor de FIKO.",
|
||||||
"description": "Financiele transactie voor de FIKO.",
|
},
|
||||||
},
|
],
|
||||||
],
|
}
|
||||||
},
|
|
||||||
]
|
|
||||||
responses:
|
responses:
|
||||||
"201":
|
"201":
|
||||||
description: Created
|
description: Created
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user