square_api_client/models/source_application.rs
1//! Model struct for SourceApplication type.
2
3use serde::{Deserialize, Serialize};
4
5use super::enums::Product;
6
7/// Provides information about the application used to generate a change.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct SourceApplication {
10 /// **Read-only** [Product] type for the application.
11 pub product: Option<Product>,
12 /// **Read-only** Square ID assigned to the application. Only used for [Product] type
13 /// `EXTERNAL_API`.
14 pub application_id: Option<String>,
15 /// **Read-only** display name assigned to the application (e.g. `"Custom Application"`,
16 /// `"Square POS 4.74 for Android"`).
17 pub name: Option<String>,
18}