square_api_client/models/
additional_recipient.rs

1//! Model struct for AdditionalRecipient type
2
3use serde::{Deserialize, Serialize};
4
5use super::Money;
6
7/// Represents an additional recipient (other than the merchant) receiving a portion of this tender.
8#[deprecated]
9#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
10pub struct AdditionalRecipient {
11    /// **Required** The location ID for a recipient (other than the merchant) receiving a portion
12    /// of this tender.
13    pub location_id: String,
14    /// The description of the additional recipient.
15    pub description: Option<String>,
16    /// **Required** The amount of money distributed to the recipient.
17    pub amount_money: Money,
18    /// The unique ID for this [AdditionalRecipientReceivable], assigned by the server.
19    pub receivable_id: Option<String>,
20}