import type * as Square from "../index"; /** * Defines the response returned by [ListPaymentRefunds](api-endpoint:Refunds-ListPaymentRefunds). * * Either `errors` or `refunds` is present in a given response (never both). */ export interface ListPaymentRefundsResponse { /** Information about errors encountered during the request. */ errors?: Square.Error_[]; /** The list of requested refunds. */ refunds?: Square.PaymentRefund[]; /** * The pagination cursor to be used in a subsequent request. If empty, * this is the final response. * * For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). */ cursor?: string; }