From 3af23cc4d3b224ba4d9c68f62a6545ab99a75ef0 Mon Sep 17 00:00:00 2001 From: Pasha Date: Mon, 27 Oct 2025 15:45:30 +0300 Subject: [PATCH] added types custom yclients fields --- model/yclients.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/model/yclients.go b/model/yclients.go index 7ac1617..60cc2e9 100644 --- a/model/yclients.go +++ b/model/yclients.go @@ -152,3 +152,13 @@ type YclientsClientAgreements struct { IsNewsletterAllowed bool `json:"is_newsletter_allowed"` IsPersonalDataProcessingAllowed bool `json:"is_personal_data_processing_allowed"` } + +type YclientsCustomFieldsType string + +const ( + TypeYclientsText YclientsCustomFieldsType = "text" // строка длиной до 255 символов + TypeYclientsNumber YclientsCustomFieldsType = "number" // число + TypeYclientsSelect YclientsCustomFieldsType = "select" // список + TypeYclientsDate YclientsCustomFieldsType = "date" // Дата (Y-m-d) + TypeYclientsDateTime YclientsCustomFieldsType = "datetime" // Дата и время (Y-m-d H:i:s) +)