pub struct CreateCustomerInput {Show 25 fields
pub external_id: String,
pub name: Option<String>,
pub firstname: Option<String>,
pub lastname: Option<String>,
pub email: Option<String>,
pub address_line1: Option<String>,
pub address_line2: Option<String>,
pub city: Option<String>,
pub country: Option<String>,
pub state: Option<String>,
pub zipcode: Option<String>,
pub phone: Option<String>,
pub url: Option<String>,
pub legal_name: Option<String>,
pub legal_number: Option<String>,
pub logo_url: Option<String>,
pub tax_identification_number: Option<String>,
pub timezone: Option<String>,
pub currency: Option<String>,
pub net_payment_term: Option<i32>,
pub customer_type: Option<CustomerType>,
pub finalize_zero_amount_invoice: Option<CustomerFinalizeZeroAmountInvoice>,
pub billing_configuration: Option<CreateCustomerBillingConfiguration>,
pub shipping_address: Option<CreateCustomerShippingAddress>,
pub metadata: Option<Vec<CreateCustomerMetadata>>,
}Fields§
§external_id: String§name: Option<String>§firstname: Option<String>§lastname: Option<String>§email: Option<String>§address_line1: Option<String>§address_line2: Option<String>§city: Option<String>§country: Option<String>§state: Option<String>§zipcode: Option<String>§phone: Option<String>§url: Option<String>§legal_name: Option<String>§legal_number: Option<String>§logo_url: Option<String>§tax_identification_number: Option<String>§timezone: Option<String>§currency: Option<String>§net_payment_term: Option<i32>§customer_type: Option<CustomerType>§finalize_zero_amount_invoice: Option<CustomerFinalizeZeroAmountInvoice>§billing_configuration: Option<CreateCustomerBillingConfiguration>§shipping_address: Option<CreateCustomerShippingAddress>§metadata: Option<Vec<CreateCustomerMetadata>>Implementations§
Source§impl CreateCustomerInput
impl CreateCustomerInput
pub fn with_name(self, name: String) -> Self
pub fn with_firstname(self, firstname: String) -> Self
pub fn with_lastname(self, lastname: String) -> Self
pub fn with_email(self, email: String) -> Self
pub fn with_address( self, address_line1: String, address_line2: Option<String>, city: Option<String>, country: Option<String>, state: Option<String>, zipcode: Option<String>, ) -> Self
pub fn with_phone(self, phone: String) -> Self
pub fn with_url(self, url: String) -> Self
pub fn with_legal_info( self, legal_name: String, legal_number: Option<String>, ) -> Self
pub fn with_tax_identification_number(self, tax_id: String) -> Self
pub fn with_timezone(self, timezone: String) -> Self
pub fn with_currency(self, currency: String) -> Self
pub fn with_net_payment_term(self, days: i32) -> Self
pub fn with_customer_type(self, customer_type: CustomerType) -> Self
pub fn with_finalize_zero_amount_invoice( self, setting: CustomerFinalizeZeroAmountInvoice, ) -> Self
pub fn with_billing_configuration( self, config: CreateCustomerBillingConfiguration, ) -> Self
pub fn with_shipping_address( self, address: CreateCustomerShippingAddress, ) -> Self
pub fn with_metadata(self, metadata: Vec<CreateCustomerMetadata>) -> Self
Trait Implementations§
Source§impl Clone for CreateCustomerInput
impl Clone for CreateCustomerInput
Source§fn clone(&self) -> CreateCustomerInput
fn clone(&self) -> CreateCustomerInput
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 Debug for CreateCustomerInput
impl Debug for CreateCustomerInput
Source§impl<'de> Deserialize<'de> for CreateCustomerInput
impl<'de> Deserialize<'de> for CreateCustomerInput
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateCustomerInput
impl RefUnwindSafe for CreateCustomerInput
impl Send for CreateCustomerInput
impl Sync for CreateCustomerInput
impl Unpin for CreateCustomerInput
impl UnwindSafe for CreateCustomerInput
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