Skip to main content

autogen_squareup/models/
retrieve_order_response.rs

1/*
2 * Square
3 *
4 * Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.
5 *
6 * The version of the OpenAPI document: 2.0
7 * Contact: developers@squareup.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RetrieveOrderResponse {
16    #[serde(rename = "order", skip_serializing_if = "Option::is_none")]
17    pub order: Option<Box<models::Order>>,
18    /// Any errors that occurred during the request.
19    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
20    pub errors: Option<Vec<models::Error>>,
21}
22
23impl RetrieveOrderResponse {
24    pub fn new() -> RetrieveOrderResponse {
25        RetrieveOrderResponse {
26            order: None,
27            errors: None,
28        }
29    }
30}
31