Struct square_api_client::api::CustomerGroupsApi
source · [−]pub struct CustomerGroupsApi { /* private fields */ }
Expand description
Create and manage customer groups to streamline and automate workflows and help personalize customer interactions.
Implementations
sourceimpl 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 !RefUnwindSafe for CustomerGroupsApi
impl Send for CustomerGroupsApi
impl Sync for CustomerGroupsApi
impl Unpin for CustomerGroupsApi
impl !UnwindSafe for CustomerGroupsApi
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more