pub struct CreateCustomerRequest {
pub idempotency_key: Option<String>,
pub given_name: Option<String>,
pub family_name: Option<String>,
pub company_name: Option<String>,
pub nickname: Option<String>,
pub email_address: Option<String>,
pub address: Option<Address>,
pub phone_number: Option<String>,
pub reference_id: Option<String>,
pub note: Option<String>,
pub birthday: Option<String>,
pub tax_ids: Option<CustomerTaxIds>,
}
Fields§
§idempotency_key: Option<String>
The idempotency key for the request. For more information, see Idempotency.
given_name: Option<String>
The given name (that is, the first name) associated with the customer profile.
family_name: Option<String>
The family name (that is, the last name) associated with the customer profile.
company_name: Option<String>
A business name associated with the customer profile.
nickname: Option<String>
A nickname for the customer profile.
email_address: Option<String>
The email address associated with the customer profile.
address: Option<Address>
Represents a postal address in a country. For more information, see Working with Addresses.
phone_number: Option<String>
The 11-digit phone number associated with the customer profile.
reference_id: Option<String>
An optional second ID used to associate the customer profile with an entity in another system.
note: Option<String>
A custom note associated with the customer profile.
birthday: Option<String>
The birthday associated with the customer profile, in RFC 3339 format. The year is optional.
The timezone and time are not allowed. For example, 0000-09-21T00:00:00-00:00
represents a
birthday on September 21 and 1998-09-21T00:00:00-00:00
represents a birthday on September
21, 1998. You can also specify this value in YYYY-MM-DD
format.
tax_ids: Option<CustomerTaxIds>
Represents the tax ID associated with a customer profile. The corresponding
tax_ids
field is available only for customers of sellers in EU countries or the United
Kingdom. For more information, see Customer tax
IDs.
Trait Implementations§
Source§impl Clone for CreateCustomerRequest
impl Clone for CreateCustomerRequest
Source§fn clone(&self) -> CreateCustomerRequest
fn clone(&self) -> CreateCustomerRequest
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 CreateCustomerRequest
impl Debug for CreateCustomerRequest
Source§impl Default for CreateCustomerRequest
impl Default for CreateCustomerRequest
Source§fn default() -> CreateCustomerRequest
fn default() -> CreateCustomerRequest
Source§impl PartialEq for CreateCustomerRequest
impl PartialEq for CreateCustomerRequest
Source§impl Serialize for CreateCustomerRequest
impl Serialize for CreateCustomerRequest
impl Eq for CreateCustomerRequest
impl StructuralPartialEq for CreateCustomerRequest
Auto Trait Implementations§
impl Freeze for CreateCustomerRequest
impl RefUnwindSafe for CreateCustomerRequest
impl Send for CreateCustomerRequest
impl Sync for CreateCustomerRequest
impl Unpin for CreateCustomerRequest
impl UnwindSafe for CreateCustomerRequest
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.