paypal_rust/resources/
name.rs

1use serde::{Deserialize, Serialize};
2use serde_with::skip_serializing_none;
3
4#[skip_serializing_none]
5#[derive(Clone, Debug, Default, Deserialize, Serialize)]
6pub struct Name {
7    /// The prefix, or title, to the party's name.
8    pub prefix: Option<String>,
9
10    /// When the party is a person, the party's given, or first, name.
11    pub given_name: Option<String>,
12
13    /// When the party is a person, the party's surname or family name. Also known as the last name. Required when the party is a person.
14    /// Use also to store multiple surnames including the matronymic, or mother's, surname.
15    pub surname: Option<String>,
16
17    /// When the party is a person, the party's middle name.
18    /// Use also to store multiple middle names including the patronymic, or father's, middle name.
19    pub middle_name: Option<String>,
20
21    /// The suffix for the party's name.
22    pub suffix: Option<String>,
23
24    /// When the party is a person, the party's full name.
25    pub full_name: Option<String>,
26}