ZyncCustomerManager

Public API manager for customer operations in the Zync SDK.

This manager provides the public interface for customer-related functionality, following the offline-first approach where local data is returned immediately and background sync operations keep the data updated.

Usage:

val result = zync.customers?.getCustomerDetail("customer_uid_123")
when (result) {
is CustomerDetailResult.Success -> {
val customerDetail = result.data
println("Customer: ${customerDetail.firstName} ${customerDetail.lastName}")
println("Email: ${customerDetail.email}")
println("Company: ${customerDetail.companyName}")
}
is CustomerDetailResult.Failure -> {
println("Error: ${result.error.message}")
}
}