pub struct Companies { /* private fields */ }Expand description
B2B company operations.
Implementations§
Source§impl Companies
impl Companies
Sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Whether companies are supported by the active backend.
Sourcepub fn create(&self, input: CreateCompany) -> Result<Company>
pub fn create(&self, input: CreateCompany) -> Result<Company>
Create a new company.
Sourcepub fn list(&self, filter: CompanyFilter) -> Result<Vec<Company>>
pub fn list(&self, filter: CompanyFilter) -> Result<Vec<Company>>
List companies with optional filtering.
Sourcepub fn list_addresses(
&self,
id: CompanyId,
) -> Result<Vec<CompanyShippingAddress>>
pub fn list_addresses( &self, id: CompanyId, ) -> Result<Vec<CompanyShippingAddress>>
List a company’s shipping addresses.
Sourcepub fn list_price_overrides(
&self,
id: CompanyId,
) -> Result<Vec<CompanyPriceOverride>>
pub fn list_price_overrides( &self, id: CompanyId, ) -> Result<Vec<CompanyPriceOverride>>
List a company’s product price overrides.
Sourcepub fn create_contact(&self, input: CreateContact) -> Result<Contact>
pub fn create_contact(&self, input: CreateContact) -> Result<Contact>
Create a contact linked to one or more companies.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Companies
impl !UnwindSafe for Companies
impl Freeze for Companies
impl Send for Companies
impl Sync for Companies
impl Unpin for Companies
impl UnsafeUnpin for Companies
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