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§
Source§impl Clone for InvoiceRecipient
impl Clone for InvoiceRecipient
Source§fn clone(&self) -> InvoiceRecipient
fn clone(&self) -> InvoiceRecipient
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InvoiceRecipient
impl Debug for InvoiceRecipient
Source§impl Default for InvoiceRecipient
impl Default for InvoiceRecipient
Source§fn default() -> InvoiceRecipient
fn default() -> InvoiceRecipient
Source§impl<'de> Deserialize<'de> for InvoiceRecipient
impl<'de> Deserialize<'de> for InvoiceRecipient
Source§fn 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>,
Source§impl PartialEq for InvoiceRecipient
impl PartialEq for InvoiceRecipient
Source§impl Serialize for InvoiceRecipient
impl Serialize for InvoiceRecipient
impl Eq for InvoiceRecipient
impl StructuralPartialEq for InvoiceRecipient
Auto Trait Implementations§
impl Freeze for InvoiceRecipient
impl RefUnwindSafe for InvoiceRecipient
impl Send for InvoiceRecipient
impl Sync for InvoiceRecipient
impl Unpin for InvoiceRecipient
impl UnwindSafe for InvoiceRecipient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.