square_api_client/models/
link_customer_to_gift_card_response.rs

1//! The response body for the Link Customer To Gift Card API
2
3use serde::Deserialize;
4
5use super::{errors::Error, GiftCard};
6
7/// This is a model struct for LinkCustomerToGiftCardResponse type
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct LinkCustomerToGiftCardResponse {
10    /// Any errors that occurred during the request.
11    pub errors: Option<Vec<Error>>,
12    /// The gift card with the ID of the linked customer listed in the `customer_ids` field.
13    pub gift_card: Option<GiftCard>,
14}