diff --git a/src/openapi/orders/orders-crud.yaml b/src/openapi/orders/orders-crud.yaml index 8adb8c2..764ffb2 100644 --- a/src/openapi/orders/orders-crud.yaml +++ b/src/openapi/orders/orders-crud.yaml @@ -1651,6 +1651,80 @@ paths: responses: "200": description: Ok + /orderlines/{orderLineId}/orderLineTerms: + parameters: + - in: path + name: orderLineId + schema: + type: string + format: uuid + example: 9ff2e034-ed4f-44d5-8f6c-d703bd4df332 + required: true + description: The id of the order line to process. + post: + summary: Add a orderLine term to an order line. + description: Add a orderLine term to an order line. + tags: + - Order Line + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/unavailable" + example: + { + termsUrl": "generalTermsAndConditions.pdf", + } + responses: + "201": + description: Created + content: + application/json: + schema: + $ref: "#/components/schemas/unavailable" + example: + { "orderLineTermsId": "eeec597c-36c4-41b2-aeeb-ab5c32f2365d" } + /orderLineTerms/{orderLineTermsId}: + parameters: + - in: path + name: orderLineTermsId + schema: + type: string + format: uuid + example: 9ff2e034-ed4f-44d5-8f6c-d703bd4df332 + required: true + description: The id of the order line terms to process. + patch: + summary: Update a orderLine term to an order line. + description: Update a orderLine term to an order line. + tags: + - Order Line Terms + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/unavailable" + example: + { + termsUrl": "generalTermsAndConditions.pdf", + } + responses: + "200": + description: Ok + content: + application/json: + schema: + $ref: "#/components/schemas/unavailable" + example: + { "orderLineTermsId": "eeec597c-36c4-41b2-aeeb-ab5c32f2365d" } + delete: + summary: Remove a orderLine term from an order line. + description: Remove a orderLine term from an order line. + tags: + - Order Line Terms + responses: + "200": + description: OK /payments: get: summary: Find payments.