square_api_client/models/retrieve_card_response.rs
1//! Model struct for RetrieveCardResponse type
2
3use serde::Deserialize;
4
5use super::{errors::Error, Card};
6
7/// This is a model struct for RetrieveCardResponse type
8#[derive(Clone, Debug, Deserialize, Default, Eq, PartialEq)]
9pub struct RetrieveCardResponse {
10 /// Information on errors encountered during the request.
11 pub errors: Option<Vec<Error>>,
12 /// Represents the payment details of a card to be used for payments. These details are
13 /// determined by the payment token generated by Web Payments SDK.
14 pub card: Card,
15}