pcp-server-nodejs-sdk
Version:
[](https://sonarcloud.io/summary/new_code?id=PAYONE-GmbH_PCP-server-nodeJS-SDK) [ • 1.11 kB
TypeScript
/**
* @description The cancelType refers to the ShoppingCart items of the Checkout.
* cancelType = FULL should be provided if all items should be marked as cancelled and the payment for the entire
* ShoppingCart should be reversed.
* cancelType = PARTIAL should be provided if only certain items should be marked as cancelled and the Cancel
* should not be made for the entire ShoppingCart. For this type the list of items has to be provided.
* Please note that a reversal for a partial payment will not reverse the respective amount from the authorization
* but only reduces the openAmount that is ready for collecting.
*
* Following conditions apply to the Cancel request:
* * items must be in status ORDERED
* * there was no Capture, Refund or Cancel triggered over the Payment Execution resource
* * for the cancelType FULL no items are provided in the request
* Note: If a DISCOUNT productType is among the ShoppingCart items, only cancelType FULL is possible.
*/
export declare enum CancelType {
FULL = "FULL",
PARTIAL = "PARTIAL"
}