Struct square_api_client::api::CustomerSegmentsApi
source · pub struct CustomerSegmentsApi { /* private fields */ }
Expand description
Retrieve customer segments (also called smart groups) in a business account.
Implementations§
source§impl CustomerSegmentsApi
impl CustomerSegmentsApi
pub fn new(config: Configuration, client: HttpClient) -> Self
sourcepub async fn list_customer_segments(
&self,
params: &ListCustomerSegmentsParameters
) -> Result<ListCustomerSegmentsResponse, ApiError>
pub async fn list_customer_segments(
&self,
params: &ListCustomerSegmentsParameters
) -> Result<ListCustomerSegmentsResponse, ApiError>
Retrieves the list of customer segments of a business.
sourcepub async fn retrieve_customer_segment(
&self,
segment_id: &str
) -> Result<RetrieveCustomerSegmentResponse, ApiError>
pub async fn retrieve_customer_segment(
&self,
segment_id: &str
) -> Result<RetrieveCustomerSegmentResponse, ApiError>
Retrieves a specific customer segment as identified by the segment_id
value.