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§
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.