pub struct BusinessCreate<'a> { /* private fields */ }
Expand description
Request builder for creating customer businesses in Paddle API.
Implementations§
Source§impl<'a> BusinessCreate<'a>
impl<'a> BusinessCreate<'a>
pub fn new( client: &'a Paddle, customer_id: impl Into<CustomerID>, name: impl Into<String>, ) -> Self
Sourcepub fn company_number(&mut self, company_number: impl Into<String>) -> &mut Self
pub fn company_number(&mut self, company_number: impl Into<String>) -> &mut Self
Company number for this business.
Sourcepub fn tax_identifier(&mut self, tax_identifier: impl Into<String>) -> &mut Self
pub fn tax_identifier(&mut self, tax_identifier: impl Into<String>) -> &mut Self
Tax identifier for this business.
Sourcepub fn contacts(
&mut self,
contacts: impl IntoIterator<Item = Contact>,
) -> &mut Self
pub fn contacts( &mut self, contacts: impl IntoIterator<Item = Contact>, ) -> &mut Self
Contact information for this business.
Sourcepub fn custom_data(&mut self, custom_data: HashMap<String, String>) -> &mut Self
pub fn custom_data(&mut self, custom_data: HashMap<String, String>) -> &mut Self
Custom data for this business.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BusinessCreate<'a>
impl<'a> RefUnwindSafe for BusinessCreate<'a>
impl<'a> Send for BusinessCreate<'a>
impl<'a> Sync for BusinessCreate<'a>
impl<'a> Unpin for BusinessCreate<'a>
impl<'a> UnwindSafe for BusinessCreate<'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