square_api_client/models/retrieve_gift_card_from_gan_response.rs
1//! Response struct for Retrieve Gift Card From GAN API
2
3use serde::Deserialize;
4
5use super::{errors::Error, GiftCard};
6
7/// This is a model struct for RetrieveGiftCardFromGANResponse type
8#[derive(Clone, Debug, Deserialize, Default, Eq, PartialEq)]
9pub struct RetrieveGiftCardFromGANResponse {
10 /// Any errors that occurred during the request.
11 pub errors: Option<Vec<Error>>,
12 /// A gift card that was fetched, if present. It returns empty if an error occurred.
13 pub gift_card: Option<GiftCard>,
14}