OVPAY-680 - Added interface voor contract cancellation pt.2.
This commit is contained in:
parent
f9f22f4ccd
commit
b042c901e7
@ -322,6 +322,52 @@ paths:
|
|||||||
"refundAmount": "2489",
|
"refundAmount": "2489",
|
||||||
"refundMethods": [ "creditInvoice", "iDeal" ]
|
"refundMethods": [ "creditInvoice", "iDeal" ]
|
||||||
}
|
}
|
||||||
|
/contracts/{contractId}/cancellation:
|
||||||
|
parameters:
|
||||||
|
- in: header
|
||||||
|
name: X-HTM-JWT-AUTH-HEADER
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
|
||||||
|
required: true
|
||||||
|
description: The JWT of the logged in customer.
|
||||||
|
- in: path
|
||||||
|
name: contractId
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
|
example: 9e224750-3065-471d-af57-85b9cffa7c89
|
||||||
|
required: true
|
||||||
|
description: The id of the contract to process.
|
||||||
|
post:
|
||||||
|
summary: Cancel a contract.
|
||||||
|
description: Cancel a contract.
|
||||||
|
tags:
|
||||||
|
- SE Contract Cancellation v2
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/unavailable"
|
||||||
|
example:
|
||||||
|
{
|
||||||
|
"end": "2024-08-10T00:00:00",
|
||||||
|
"refundMethod": "creditInvoice"
|
||||||
|
}
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/unavailable"
|
||||||
|
example:
|
||||||
|
{
|
||||||
|
"end": "2024-08-10T03:59:59",
|
||||||
|
"refundAmount": "2489",
|
||||||
|
"refundMethod": "creditInvoice"
|
||||||
|
}
|
||||||
components:
|
components:
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
bearerToken:
|
bearerToken:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user