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