square_api_client/models/list_payment_refunds_response.rs
1//! Model struct for ListPaymentRefundsResponse type
2
3use serde::Deserialize;
4
5use super::{errors::Error, PaymentRefund};
6
7/// This is a model struct for ListPaymentRefundsResponse type
8#[derive(Clone, Debug, Deserialize, Eq, PartialEq)]
9pub struct ListPaymentRefundsResponse {
10 /// Information about errors encountered during the request.
11 pub errors: Option<Vec<Error>>,
12 /// The list of requested refunds.
13 pub payments: Option<Vec<PaymentRefund>>,
14 /// The pagination cursor to be used in a subsequent request. If empty, this is the final
15 /// response.
16 ///
17 /// For more information, see
18 /// [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
19 pub cursor: Option<String>,
20}