pub struct Customer {Show 16 fields
pub id: String,
pub external_id: Option<String>,
pub name: String,
pub email: String,
pub additional_emails: Vec<String>,
pub timezone: String,
pub payment_provider_id: Option<String>,
pub payment_provider: Option<PaymentProvider>,
pub shipping_address: Option<Address>,
pub billing_address: Option<Address>,
pub currency: Option<CurrencyCode>,
pub tax_id: Option<TaxId>,
pub auto_collection: bool,
pub balance: String,
pub created_at: OffsetDateTime,
pub portal_url: Option<String>,
}Expand description
An Orb customer.
Fields§
§id: StringThe Orb-assigned unique identifier for the customer.
external_id: Option<String>An optional user-defined ID for this customer resource, used throughout the system as an alias for this customer.
name: StringThe full name of the customer.
email: StringA valid email for the customer, to be used for notifications.
additional_emails: Vec<String>Additional email addresses for this customer.
timezone: StringThe customer’s timezone as an identifier from the IANA timezone database.
payment_provider_id: Option<String>The ID of this customer in an external payments solution, such as Stripe.
payment_provider: Option<PaymentProvider>The external payments or invoicing solution connected to the customer.
shipping_address: Option<Address>The customer’s shipping address.
billing_address: Option<Address>The customer’s billing address.
currency: Option<CurrencyCode>The currency used for the customer’s invoices and balance.
tax_id: Option<TaxId>The tax ID details to display on the customer’s invoice.
auto_collection: boolUndocumented upstream.
balance: StringThe customer’s current balance in their currency.
created_at: OffsetDateTimeThe time at which the customer was created.
portal_url: Option<String>An authenticated URL link to the customer’s private Orb dashboard portal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Customer
impl<'de> Deserialize<'de> for Customer
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>,
impl Eq for Customer
impl StructuralPartialEq for Customer
Auto Trait Implementations§
impl Freeze for Customer
impl RefUnwindSafe for Customer
impl Send for Customer
impl Sync for Customer
impl Unpin for Customer
impl UnwindSafe for Customer
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.