pub struct CreateCustomerRequest<'a> {
pub external_id: Option<&'a str>,
pub name: &'a str,
pub email: &'a str,
pub additional_emails: Option<Vec<&'a str>>,
pub timezone: Option<&'a str>,
pub payment_provider: Option<CustomerPaymentProviderRequest<'a>>,
pub shipping_address: Option<AddressRequest<'a>>,
pub billing_address: Option<AddressRequest<'a>>,
pub currency: Option<CurrencyCode>,
pub tax_id: Option<TaxIdRequest<'a>>,
pub idempotency_key: Option<&'a str>,
}Expand description
The subset of Customer used in create requests.
Fields§
§external_id: Option<&'a str>An optional user-defined ID for this customer resource, used throughout the system as an alias for this customer.
name: &'a strThe full name of the customer.
email: &'a strA valid email for the customer, to be used for notifications.
additional_emails: Option<Vec<&'a str>>Additional email addresses for this customer.
timezone: Option<&'a str>The customer’s timezone as an identifier from the IANA timezone database.
payment_provider: Option<CustomerPaymentProviderRequest<'a>>The external payments or invoicing solution connected to the customer.
shipping_address: Option<AddressRequest<'a>>The customer’s shipping address.
billing_address: Option<AddressRequest<'a>>The customer’s billing address.
currency: Option<CurrencyCode>The currency used for the customer’s invoices and balance.
tax_id: Option<TaxIdRequest<'a>>The tax ID details to display on the customer’s invoice.
idempotency_key: Option<&'a str>An idempotency key can ensure that if the same request comes in multiple times in a 48-hour period, only one makes changes.
Trait Implementations§
Source§impl<'a> Clone for CreateCustomerRequest<'a>
impl<'a> Clone for CreateCustomerRequest<'a>
Source§fn clone(&self) -> CreateCustomerRequest<'a>
fn clone(&self) -> CreateCustomerRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CreateCustomerRequest<'a>
impl<'a> Debug for CreateCustomerRequest<'a>
Source§impl<'a> Default for CreateCustomerRequest<'a>
impl<'a> Default for CreateCustomerRequest<'a>
Source§fn default() -> CreateCustomerRequest<'a>
fn default() -> CreateCustomerRequest<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Hash for CreateCustomerRequest<'a>
impl<'a> Hash for CreateCustomerRequest<'a>
Source§impl<'a> PartialEq for CreateCustomerRequest<'a>
impl<'a> PartialEq for CreateCustomerRequest<'a>
Source§impl<'a> Serialize for CreateCustomerRequest<'a>
impl<'a> Serialize for CreateCustomerRequest<'a>
impl<'a> Eq for CreateCustomerRequest<'a>
impl<'a> StructuralPartialEq for CreateCustomerRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateCustomerRequest<'a>
impl<'a> RefUnwindSafe for CreateCustomerRequest<'a>
impl<'a> Send for CreateCustomerRequest<'a>
impl<'a> Sync for CreateCustomerRequest<'a>
impl<'a> Unpin for CreateCustomerRequest<'a>
impl<'a> UnwindSafe for CreateCustomerRequest<'a>
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.