square_api_client/models/
create_payment_response.rs

1//! Response struct for the Create Payment API
2
3use serde::Deserialize;
4
5use super::errors::Error;
6use super::Payment;
7
8/// This is a model struct for CreatePaymentResponse type.
9#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
10pub struct CreatePaymentResponse {
11    /// Information about errors encountered during the request.
12    pub errors: Option<Vec<Error>>,
13    /// The newly created payment.
14    pub payment: Payment,
15}