Const
Dispatch to submit a refund request.
refundRequest requires uniqueRefundRequestId and refundReason. Optional lineItems contain lineItemId and optional refundAmountInCents; omit them to refund according to the API's full transaction behavior.
refundRequest
uniqueRefundRequestId
refundReason
lineItems
lineItemId
refundAmountInCents
{ type: "REFUND", payload: { transactionId: "transaction-id", refundRequest: { uniqueRefundRequestId: "refund-request-id", lineItems: [{ lineItemId: "line-item-id", refundAmountInCents: 12550 }], refundReason: "REQUESTED_BY_CUSTOMER" } }} Copy
{ type: "REFUND", payload: { transactionId: "transaction-id", refundRequest: { uniqueRefundRequestId: "refund-request-id", lineItems: [{ lineItemId: "line-item-id", refundAmountInCents: 12550 }], refundReason: "REQUESTED_BY_CUSTOMER" } }}
module-payit-credit/lib/browser/reducers/pointOfSaleReducers.refund
Dispatch to submit a refund request.