square_api_client/models/
update_customer_request.rs

1//! Model struct for UpdateCustomerRequest type
2
3use super::{Address, CustomerTaxIds};
4use serde::Serialize;
5/// This is a model struct for UpdateCustomerRequest type.
6#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
7pub struct UpdateCustomerRequest {
8    /// The email address associated with the customer profile.
9    pub email_address: Option<String>,
10    /// The family name (that is, the last name) associated with the customer profile.
11    pub family_name: Option<String>,
12    // The given name (that is, the first name) associated with the customer profile.
13    pub given_name: Option<String>,
14    /// The 11-digit phone number associated with the customer profile.
15    pub phone_number: Option<String>,
16    /// Represents a postal address in a country. For more information, see [Working with
17    /// Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
18    pub address: Option<Address>,
19    /// The birthday associated with the customer profile, in RFC 3339 format. The year is optional.
20    /// The timezone and time are not allowed. For example, `0000-09-21T00:00:00-00:00` represents a
21    /// birthday on September 21 and `1998-09-21T00:00:00-00:00` represents a birthday on September
22    /// 21, 1998. You can also specify this value in `YYYY-MM-DD` format.
23    pub birthday: Option<String>,
24    /// An optional second ID used to associate the customer profile with an entity in another system.
25    pub reference_id: Option<String>,
26    /// Represents the tax ID associated with a [customer profile]($m/Customer). The corresponding
27    /// `tax_ids` field is available only for customers of sellers in EU countries or the United
28    /// Kingdom. For more information, see [Customer tax
29    /// IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids).
30    pub tax_ids: Option<CustomerTaxIds>,
31}