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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more