Struct square_api_client::models::InvoiceRecipient
source · pub struct InvoiceRecipient {
pub customer_id: Option<String>,
pub given_name: Option<String>,
pub family_name: Option<String>,
pub email_address: Option<String>,
pub address: Option<Address>,
pub phone_number: Option<String>,
pub company_name: Option<String>,
pub tax_ids: Option<InvoiceRecipientTaxIds>,
}
Expand description
Represents a snapshot of customer data.
This object stores customer data that is displayed on the invoice and that Square uses to deliver the invoice.
When you provide a customer ID for a draft invoice, Square retrieves the associated customer
profile and populates the remaining InvoiceRecipient
fields. You cannot update these fields
after the invoice is published. Square updates the customer ID in response to a merge operation,
but does not update other fields.
Fields
customer_id: Option<String>
The ID of the customer. This is the customer profile ID that you provide when creating a draft invoice.
Min Length: 1, Max Length: 255
given_name: Option<String>
Read only The recipient’s given (that is, first) name.
family_name: Option<String>
Read only The recipient’s family (that is, last) name.
email_address: Option<String>
Read only The recipient’s email address.
address: Option<Address>
Read only The recipient’s physical address.
phone_number: Option<String>
Read only The recipient’s phone number.
company_name: Option<String>
Read only The name of the recipient’s company.
tax_ids: Option<InvoiceRecipientTaxIds>
Read only The recipient’s tax IDs. The country of the seller account determines whether this field is available for the customer. For more information, see Invoice recipient tax IDs.
Trait Implementations
sourceimpl Clone for InvoiceRecipient
impl Clone for InvoiceRecipient
sourcefn clone(&self) -> InvoiceRecipient
fn clone(&self) -> InvoiceRecipient
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for InvoiceRecipient
impl Debug for InvoiceRecipient
sourceimpl Default for InvoiceRecipient
impl Default for InvoiceRecipient
sourcefn default() -> InvoiceRecipient
fn default() -> InvoiceRecipient
sourceimpl<'de> Deserialize<'de> for InvoiceRecipient
impl<'de> Deserialize<'de> for InvoiceRecipient
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
sourceimpl PartialEq<InvoiceRecipient> for InvoiceRecipient
impl PartialEq<InvoiceRecipient> for InvoiceRecipient
sourcefn eq(&self, other: &InvoiceRecipient) -> bool
fn eq(&self, other: &InvoiceRecipient) -> bool
sourceimpl Serialize for InvoiceRecipient
impl Serialize for InvoiceRecipient
impl Eq for InvoiceRecipient
impl StructuralEq for InvoiceRecipient
impl StructuralPartialEq for InvoiceRecipient
Auto Trait Implementations
impl RefUnwindSafe for InvoiceRecipient
impl Send for InvoiceRecipient
impl Sync for InvoiceRecipient
impl Unpin for InvoiceRecipient
impl UnwindSafe for InvoiceRecipient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.