square_api_client/models/retrieve_gift_card_response.rs
1//! Response struct for Retrieve Gift Card API
2
3use serde::Deserialize;
4
5use super::{errors::Error, GiftCard};
6
7/// This is a model struct for RetrieveGiftCardResponse type
8#[derive(Clone, Debug, Deserialize, Default, Eq, PartialEq)]
9pub struct RetrieveGiftCardResponse {
10 /// Any errors that occurred during the request.
11 pub errors: Option<Vec<Error>>,
12 /// The gift card retrieved.
13 pub gift_card: Option<GiftCard>,
14}