pub struct CustomerGroupsApi { /* private fields */ }
Expand description
Create and manage customer groups to streamline and automate workflows and help personalize customer interactions.
Implementations§
Source§impl CustomerGroupsApi
impl CustomerGroupsApi
pub fn new(config: Configuration, client: HttpClient) -> Self
Sourcepub async fn list_customer_groups(
&self,
params: &ListCustomerGroupsParameters,
) -> Result<ListCustomerGroupsResponse, ApiError>
pub async fn list_customer_groups( &self, params: &ListCustomerGroupsParameters, ) -> Result<ListCustomerGroupsResponse, ApiError>
Retrieves the list of customer groups of a business.
Sourcepub async fn create_customer_group(
&self,
body: &CreateCustomerGroupRequest,
) -> Result<CreateCustomerGroupResponse, ApiError>
pub async fn create_customer_group( &self, body: &CreateCustomerGroupRequest, ) -> Result<CreateCustomerGroupResponse, ApiError>
Creates a new customer group for a business.
The request must include the name
value of the group.
Sourcepub async fn delete_customer_group(
&self,
group_id: &str,
) -> Result<DeleteCustomerGroupResponse, ApiError>
pub async fn delete_customer_group( &self, group_id: &str, ) -> Result<DeleteCustomerGroupResponse, ApiError>
Deletes a customer group as identified by the group_id
value.
Sourcepub async fn retrieve_customer_group(
&self,
group_id: &str,
) -> Result<RetrieveCustomerGroupResponse, ApiError>
pub async fn retrieve_customer_group( &self, group_id: &str, ) -> Result<RetrieveCustomerGroupResponse, ApiError>
Retrieves a specific customer group as identified by the group_id
value.
pub async fn update_customer_group( &self, group_id: &str, body: &UpdateCustomerGroupRequest, ) -> Result<UpdateCustomerGroupResponse, ApiError>
Auto Trait Implementations§
impl Freeze for CustomerGroupsApi
impl !RefUnwindSafe for CustomerGroupsApi
impl Send for CustomerGroupsApi
impl Sync for CustomerGroupsApi
impl Unpin for CustomerGroupsApi
impl !UnwindSafe for CustomerGroupsApi
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