square_api_client/models/unlink_customer_from_gift_card_response.rs
1//! The response body for the Unlink Customer From Gift Card API
2
3use serde::Deserialize;
4
5use super::{errors::Error, GiftCard};
6
7/// This is a model struct for UnlinkCustomerFromGiftCardResponse type
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct UnlinkCustomerFromGiftCardResponse {
10 /// Any errors that occurred during the request.
11 pub errors: Option<Vec<Error>>,
12 /// The gift card with the ID of the unlinked customer removed from the `customer_ids` field.
13 /// If no other customers are linked, the `customer_ids` field is also removed.
14 pub gift_card: Option<GiftCard>,
15}