square_api_client/models/
application_details.rs

1//! Model struct for ApplicationDetails type.
2
3use serde::{Deserialize, Serialize};
4
5use super::enums::ApplicationDetailsExternalSquareProduct;
6
7/// Details about the application that took the payment.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct ApplicationDetails {
10    /// The Square product, such as Square Point of Sale (POS), Square Invoices, or Square Virtual
11    /// Terminal.
12    pub square_product: Option<ApplicationDetailsExternalSquareProduct>,
13    /// The Square ID assigned to the application used to take the payment. Application developers
14    /// can use this information to identify payments that their application processed. For example,
15    /// if a developer uses a custom application to process payments, this field contains the
16    /// application ID from the Developer Dashboard. If a seller uses a [Square App
17    /// Marketplace](https://developer.squareup.com/docs/app-marketplace) application to process
18    /// payments, the field contains the corresponding application ID.
19    pub application_id: Option<String>,
20}