Перейти к содержанию

Customer#

Title: Customer

Type object
Required No
Additional properties Not allowed

Description: Клиент

Property Pattern Type Deprecated Definition Title/Description
+ id No string No - Уникальный идентификатор
- createdBy No string No - id пользователя, создавшего клиента
+ type No enum (of string) No - Тип заказчика

- `COMPANY`: юр.лицо
- `PERSON`: физ.лицо
- `IP`: индивидуальный предприниматель
+ status No enum (of string) No In common/_common.schema.json#/status Статус клиента
- statusPrevious No enum (of string) No Same as status Предыдущий статус клиента
- email No string No In common/_common.schema.json#/email E-mail клиента
+ partner No string No - Партнер
- signingType No enum (of string) No - Способ подписания документов

- `HANDWRITTEN`: подписание вручную
- `SIMPLE_ELECTRONIC`: ПЭП
- canRequestSubsidiary No boolean No - Может запрашивать согласование плательщика
- prioritySubsidiaries No array No - -

1. Property Customer > id#

Type string
Required Yes
Format uuid

Description: Уникальный идентификатор

2. Property Customer > createdBy#

Type string
Required No

Description: id пользователя, создавшего клиента

3. Property Customer > type#

Type enum (of string)
Required Yes

Description: Тип заказчика

  • COMPANY: юр.лицо
  • PERSON: физ.лицо
  • IP: индивидуальный предприниматель

Must be one of: * "COMPANY" * "PERSON" * "IP"

4. Property Customer > status#

Type enum (of string)
Required Yes
Defined in common/_common.schema.json#/status

Description: Статус клиента

Must be one of: * "ACTIVE" * "INACTIVE" * "INVITED"

5. Property Customer > statusPrevious#

Type enum (of string)
Required No
Same definition as status

Description: Предыдущий статус клиента

6. Property Customer > email#

Type string
Required No
Defined in common/_common.schema.json#/email

Description: E-mail клиента

Restrictions
Must match regular expression (?=^[\w\W]{0,255}$)^\s*(?:[a-zA-Z0-9!#$%&'*+/=?^_`{\|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{\|}~-]+)*\|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]\|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\|\[(?:(?:(2(5[0-5]\|[0-4][0-9])\|1[0-9][0-9]\|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]\|[0-4][0-9])\|1[0-9][0-9]\|[1-9]?[0-9])\|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]\|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])\s*$ Test

7. Property Customer > partner#

Type string
Required Yes

Description: Партнер

8. Property Customer > signingType#

Type enum (of string)
Required No

Description: Способ подписания документов

  • HANDWRITTEN: подписание вручную
  • SIMPLE_ELECTRONIC: ПЭП

Must be one of: * "SIMPLE_ELECTRONIC" * "HANDWRITTEN"

9. Property Customer > canRequestSubsidiary#

Type boolean
Required No

Description: Может запрашивать согласование плательщика

10. Property Customer > prioritySubsidiaries#

Type array
Required No
Array restrictions
Min items N/A
Max items N/A
Items unicity False
Additional items False
Tuple validation N/A

Generated using json-schema-for-humans on 2025-02-11 at 14:13:53 +0000