UNPKG

pcp-server-nodejs-sdk

Version:

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=PAYONE-GmbH_PCP-server-nodeJS-SDK&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=PAYONE-GmbH_PCP-server-nodeJS-SDK) [![Coverage](https://sonarcloud.io/api/pr

23 lines (22 loc) 1.02 kB
import type { FundSplit } from './FundSplit.js'; import type { ReturnItem } from './ReturnItem.js'; import type { ReturnType } from './ReturnType.js'; /** * @description Request to mark items of the respective Checkout as returned and to automatically refund a payment for those * items. * A Return can be created for a full or the partial ShoppingCart of the Checkout. * The platform will automatically calculate the respective amount to trigger the Refund. For a partial Return a * list of items must be provided. * The item details for the Refund will be automatically loaded from the Checkout. * The returnReason can be provided for reporting and reconciliation purposes but is not mandatory. */ export interface ReturnRequest { returnType?: ReturnType; /** * @description Reason of the Refund (e.g. communicated by or to the consumer). * @example Customer complained */ returnReason?: string; returnItems?: ReturnItem[]; fundSplit?: FundSplit; }