Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Open API (Swagger) Viewer
{"paths":{"/api/v1/import/store/{id}/barcodePrices":{"post":{"operationId":"importBarcodePrices","tags":["routes"],"summary":"Импорт цен, назначенных на штрихкоды товара","description":"Импорт цен, назначенных на штрихкоды товара","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.BarcodePriceList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/items":{"post":{"operationId":"importItems","tags":["routes"],"summary":"Импорт товаров","description":"Импорт товаров","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.ItemList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/groupItems":{"post":{"operationId":"importGroupItems","tags":["routes"],"summary":"Импорт групп товаров","description":"Импорт групп товаров (товарная иерархия)","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.GroupItemList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/store/{id}/itemPrices":{"post":{"operationId":"importItemPrices","tags":["routes"],"summary":"Импорт цен на товары","description":"Импорт цен на товары","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.ItemPriceList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/store/{id}/AlternativeItemPrices":{"post":{"operationId":"importAlternativeItemPrices","tags":["routes"],"summary":"Импорт дополнительныхальтернативных цен на товары","description":"Импорт дополнительныхальтернативных цен на товары","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.AlternativeItemPriceList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/picklistsstore/{id}/AdditionalItemPrices":{"post":{"operationId":"importPicklistsimportAdditionalItemPrices","tags":["routes"],"summary":"Импорт picklist дополнительных цен на товары","description":"Импорт picklistдополнительных (произвольныецен Перечнина товаров)товары","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.PicklistListAdditionalItemPriceList"}}],"responses":{"200":{"description":"Успешная загрузка"},"400":{"description":"Плохой запрос (дубликаты или неверно заполнена структура)"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/store/{id}/sellerspicklists":{"post":{"operationId":"importSellersimportPicklists","tags":["routes"],"summary":"Импорт продавцов и их картpicklist","description":"Импорт продавцовpicklist и(произвольные их карт (индивидуальные продажиПеречни товаров)","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.SellerListPicklistList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/taxGroupsstore/{id}/sellers":{"post":{"operationId":"importTaxGroupsimportSellers","tags":["routes"],"summary":"Импорт групп налоговпродавцов и их карт","description":"Импорт групп налогов продавцов и их карт (индивидуальные продажи)","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.TaxGroupListSellerList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/taxestaxGroups":{"post":{"operationId":"importTaxesimportTaxGroups","tags":["routes"],"summary":"Импорт групп налогов","description":"Импорт групп налогов","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.TaxListTaxGroupList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/store/{id}/userstaxes":{"post":{"operationId":"importUsersimportTaxes","tags":["routes"],"summary":"Импорт пользователейналогов","description":"Импорт пользователей касс (кассиров)налогов","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.UserListTaxList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/legalEntityItemVendorsstore/{id}/users":{"post":{"operationId":"importLegalEntityItemVendorsimportUsers","tags":["routes"],"summary":"Импорт поставщиковпользователей","description":"Импорт поставщиковпользователей товаров для магазиновкасс (кассиров)","parameters":[{"in":"path","name":"id","type":"string","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.LegalEntityItemVendorListUserList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/legalEntityItemContractorslegalEntityItemVendors":{"post":{"operationId":"importLegalEntityItemContractorsimportLegalEntityItemVendors","tags":["routes"],"summary":"Импорт продавцов товаровпоставщиков","description":"Импорт продавцовпоставщиков товаров для магазинов","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.LegalEntityItemContractorListLegalEntityItemVendorList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/legalEntitieslegalEntityItemContractors":{"post":{"operationId":"importLegalEntitiesimportLegalEntityItemContractors","tags":["routes"],"summary":"Импорт юр.продавцов лицтоваров","description":"Импорт продавцов товаров юридическихдля лицмагазинов","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.LegalEntityListLegalEntityItemContractorList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/itemPropertieslegalEntities":{"post":{"operationId":"importItemPropertiesimportLegalEntities","tags":["routes"],"summary":"Импорт свойствюр. товаровлиц","description":"Импорт дополнительныхюридических свойств товаровлиц","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.ItemPropertiesListLegalEntityList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/import/legalEntityItemPaymentAgentsitemProperties":{"post":{"operationId":"importLegalEntityItemPaymentAgentsimportItemProperties","tags":["routes"],"summary":"Импорт привязки платежного агента к товару-услугесвойств товаров","description":"Импорт привязкидополнительных платежного агента к товару-услугесвойств товаров","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/models.importer.LegalEntityItemPaymentAgentListItemPropertiesList"}}],"responses":{"200":{"description":"Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/export/receipt/{storeId}/{date}import/legalEntityItemPaymentAgents":{"getpost":{"operationId":"exportReceiptsimportLegalEntityItemPaymentAgents","tags":["routes"],"summary":"ЭкспортИмпорт чековпривязки поплатежного запросуагента за дату","parameters":[{"in":"path","name":"storeIdк товару-услуге","description":"НомерИмпорт магазинапривязки воплатежного внешнейагента товароучётнойк системетовару-услуге","typeparameters":"string","required":true},[{"in":"pathbody","name":"datebody","schema":{"description$ref":"Дата закрытия чека в формате `yyyy-MM-dd`","type":"string","required":true#/definitions/models.importer.LegalEntityItemPaymentAgentList"}}],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.ReceiptsList"}}Успешная загрузка"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}},"consumes":["application/json"]}},"/api/v1/export/receiptPackagereceipt/{storeId}/{date}":{"get":{"operationId":"getReceiptPackageexportReceipts","tags":["routes"],"summary":"Запрос очередного пакета чеков","description":"Экспорт пакета чеков спо подтверждениемзапросу обработкиза пакета чековдату","responsesparameters":[{"200in":{"description":"successpath","schema":{"$refname":"#/definitions/models.exporter.ReceiptsList"}},"404":{"storeId","description":"Нет необработанных чековНомер магазина во внешней товароучётной системе","schema":{"type":"string"}},"423required":true},{"descriptionin":"Получение пакета блокировано, так как нет подтверждения обработки предыдущего пакетаpath","schemaname":{"type":"string"}},"500":{"date","description":"Ошибка обработки","schema":{"Дата закрытия чека в формате `yyyy-MM-dd`","type":"string"}}}},"deleterequired":{"operationId":"unlockReceiptPackage"true}],"tagsresponses":["routes"],"summary":"Сброс блокировки повторной выгрузки пакета чеков","{"200":{"description":"Сброс блокировки повторной выгрузки пакета чековsuccess","responsesschema":{"200$ref":{"description":"success""#/definitions/models.exporter.ReceiptsList"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}},"put"/api/v1/export/receiptPackage":{"get":{"operationId":"confirmReceiptPackagegetReceiptPackage","tags":["routes"],"summary":"ПодтверждениеЗапрос обработкиочередного пакета чеков","description":"ПодтверждениеЭкспорт обработки пакета чеков послес операцииподтверждением запросаобработки пакета чеков","responses":{"200":{"description":"success"},"500schema":{"description$ref":"Ошибка обработки","schema#/definitions/models.exporter.ReceiptsList"}},"404":{"typedescription":"string"}}}}},"/api/v1/export/shiftWOReceipts/{storeId}/{date}Нет необработанных чеков","schema":{"gettype":{"operationId":"exportShiftsWOReceipts"string"}},"tags423":[{"routesdescription"],"summary":"Экспорт смен без чеков по запросу за дату","parameters":[{"in":"path","name":"storeId","description":"Номер магазина во внешней товароучётной системе","Получение пакета блокировано, так как нет подтверждения обработки предыдущего пакета","schema":{"type":"string"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}},"requireddelete":true},{"inoperationId":"pathunlockReceiptPackage","nametags":["dateroutes"],"descriptionsummary":"ДатаСброс закрытияблокировки сменыповторной ввыгрузки формате `yyyy-MM-dd`пакета чеков","typedescription":"string","required":true}]Сброс блокировки повторной выгрузки пакета чеков","responses":{"200":{"description":"success"},"500":{"description":"Ошибка обработки","schema":{"$reftype":"#/definitions/models.exporter.ShiftWOReceiptsList"}string"}}}},"put":{"operationId":"confirmReceiptPackage","tags":["routes"],"summary":"Подтверждение обработки пакета чеков","description":"Подтверждение обработки пакета чеков после операции запроса пакета чеков","responses":{"200":{"description":"success"},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}},"/api/v1/export/shiftshiftWOReceipts/{storeId}/{posId}/{date}":{"get":{"operationId":"exportShiftsexportShiftsWOReceipts","tags":["routes"],"summary":"Экспорт смен без сменычеков по запросу","description":"Экспорт конкретной смены со всеми имеющимися по ней данными за дату","parameters":[{"in":"path","name":"storeId","description":"Номер магазина во внешней товароучётной системе","type":"string","required":true},{"in":"path","name":"posIddate","description":"Номер кассы","type":"string","required":true},{"in":"path","name":"date","description":"Дата закрытия смены в Дата закрытия смены в формате `yyyy-MM-dd`","type":"string","required":true}],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.ShiftWithReceiptsListShiftWOReceiptsList"}},"404":{"description":"Смена по запрошенным параметрам не найдена","schema":{"type":"string"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}},"/api/v1/export/moneyOperationshift/{storeId}/{posId}/{date}":{"get":{"operationId":"exportMoneyOperationsexportShifts","tags":["routes"],"summary":"Экспорт операцийсмены с денежным ящиком.по запросу","description":"Экспорт конкретной смены операцийсо свсеми денежнымимеющимися ящикомпо сней данными","parameters":[{"in":"path","name":"storeId","description":"Номер магазина во внешней товароучётной системе","type":"string","required":true},{"in":"path","name":"posId","description":"Номер кассы","type":"string","required":true},{"in":"path","name":"date","description":"Дата закрытия операциисмены в формате `yyyy-MM-dd`","type":"string","required":true}],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.MoneyOperationListShiftWithReceiptsList"}},"404":{"description":"Операции с денежным ящиком Смена по запрошенным параметрам не найденынайдена","schema":{"type":"string"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}},"/api/v1/export/receipt/moneyOperation/{storeId}/{posId}/{date}":{"get":{"operationId":"indexexportMoneyOperations","tags":["routes"],"summary":"Экспорт чеков.операций Этотс метод должен быть реализован на внешнем сервере. Тут просто приведена схемаденежным ящиком.","responsesdescription":{"200":{"description"Экспорт операций с денежным ящиком с данными","parameters":[{"in":"path","name":"successstoreId","schemadescription":{"$ref"Номер магазина во внешней товароучётной системе","type":"#/definitions/models.exporter.Receipt"}}string","500required":true},{"descriptionin":"Ошибка обработкиpath","schemaname":{"type"posId","description":"string"}}}}},"/api/v1/export/shift":{"get":{"operationId":"index","tags":["routes"],"summary":"Экспорт смены. Этот метод должен быть реализован на внешнем сервере. Тут просто приведена схема"Номер кассы","type":"string","required":true},{"in":"path","name":"date","description":"Дата операции в формате `yyyy-MM-dd`","type":"string","required":true}],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.ShiftWithReceiptsMoneyOperationList"}},"404":{"description":"Операции с денежным ящиком по запрошенным параметрам не найдены","schema":{"type":"string"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}},"/api/v1/export/moneyOperationreceipt":{"get":{"operationId":"index","tags":["routes"],"summary":"Экспорт операций с денежным ящикомчеков. Этот метод должен быть реализован на внешнем сервере. Тут просто приведена схема","responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.MoneyOperationReceipt"}},"500":{"description":"Ошибка обработки","schema":{"type":"string"}}}}}},"produces,"/api/v1/export/shift":{"get":{"operationId":"index","tags":["application/jsonroutes"],"definitionssummary":{"models.importer.ItemPropertiesList":{"propertiesЭкспорт смены. Этот метод должен быть реализован на внешнем сервере. Тут просто приведена схема","responses":{"elements200":{"typedescription":"arraysuccess","itemsschema":{"$ref":"#/definitions/models.importerexporter.ItemPropertiesShiftWithReceipts"}}},"required500":[{"elementsdescription"]},"models.importer.TaxRate":{"properties:"Ошибка обработки","schema":{"taxtype":{"$ref":"#/definitions/models.importer.Tax"},"percentstring"}}}}},"/api/v1/export/moneyOperation":{"formatget":{"int32operationId","description":"Налоговая ставка в процентах (10 или 20)index","type":"integer"}},"requiredtags":["taxroutes","percent"]},"ru.servplus.pos.common.models.receipt.common.AgentTypesummary":{"properties":{}},"models.exporter.ShiftWithReceipts":{"description":"Основная модель Информация о смене (включая чеки)","properties":{"receipts":{"type":"array","items"Экспорт операций с денежным ящиком. Этот метод должен быть реализован на внешнем сервере. Тут просто приведена схема","responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/models.exporter.ReceiptMoneyOperation"}},"expenseCount500":{"typedescription":"integerОшибка обработки","formatschema":"int32"},"kkmExpenseCount":{"type":"integer"string"}}}}}},"formatproduces":["int32application/json"}],"expenseAmountdefinitions":{"typemodels.importer.ItemPropertiesList":{"numberproperties","format":{"doubleelements"},"counters":{"$reftype":"#/definitions/models.exporter.ShiftCounters"}array","shiftitems":{"$ref":"#/definitions/models.exporterimporter.ShiftItemProperties"}}},"paymentsrequired":{["type":"array","itemselements"]},"models.importer.TaxRate":{"$refproperties":"#/definitions/models.exporter.ShiftPayment"}},"fnInfo"{"tax":{"$ref":"#/definitions/models.exporterimporter.ShiftFNInfoTax"},"kkmExpenseAmountpercent":{"typeformat":"numberint32","formatdescription":"double"},"kkmInfo":{"$ref":"#/definitions/models.exporter.ShiftKKMInfoНалоговая ставка в процентах (10 или 20)","type":"integer"}},"required":["shifttax","paymentspercent","receipts"]},"ru.servplus.pos.common.models.exporterreceipt.common.MoneyOperationListAgentType":{"properties":{"elements"}},"models.exporter.ShiftWithReceipts":{"description":"Основная модель Информация о смене (включая чеки)","properties":{"receipts":{"type":"array","items":{"$ref":"#/definitions/models.exporter.MoneyOperationReceipt"}}},"requiredexpenseCount":[{"elementstype"]},"models.importer.SellerCard":{"description:"integer","format":"Карта продавцаint32"},"propertieskkmExpenseCount":{"numbertype":{"descriptioninteger":"Код идентификации, записанный на карте","type"format":"string","maxLength":40int32"},"dateTillexpenseAmount":{"formattype":"date-timenumber","descriptionformat":"Дата окончания действия карты"double"},"typecounters":{"string$ref","example":"2018-06-22T08:00:19:"#/definitions/models.exporter.ShiftCounters"},"activeshift":{"type$ref":"boolean#/definitions/models.exporter.Shift"},"dateFrompayments":{"formattype":"date-timearray","description":"Дата начала действия карты","items":{"$ref":"#/definitions/models.exporter.ShiftPayment"}},"fnInfo":{"$ref":"#/definitions/models.exporter.ShiftFNInfo"},"kkmExpenseAmount":{"type":"stringnumber","exampleformat":"2018-06-22T08:00:19"double"},"kkmInfo":{"$ref":"#/definitions/models.exporter.ShiftKKMInfo"}},"required":["numbershift","payments","activereceipts"]},"models.exporter.ShiftCountersMoneyOperationList":{"description":"Информация о количестве чеков за смену по данным кассы","properties":{"receiptsExpenseelements":{"type":"integerarray","formatitems":{"$ref":"int32"}#/definitions/models.exporter.MoneyOperation"}}},"posIdrequired":{["formatelements":"int64",]},"models.importer.SellerCard":{"description":"ИДКарта кассыпродавца","typeproperties":{"integernumber"},"shiftId":{"formatdescription":"int64","description":"Уникальный (в рамках кассы) идентификатор сменыКод идентификации, записанный на карте","type":"integer"string","maxLength":40},"receiptsReturndateTill":{"format":"int32date-time","description":"КоличествоДата чековокончания возвратов за смену по данным кассыдействия карты","type":"integerstring"},"receiptsCancelexample":{"format":"int32","description":"Количество аннулированных чеков за смену по данным кассы","2018-06-22T08:00:19"},"active":{"type":"integerboolean"},"moneyboxAmountdateFrom":{"format":"doubledate-time","description":"суммаДата наличныхначала в денежном ящике после закрытия сменыдействия карты","type":"number""string","example":"2018-06-22T08:00:19"}},"cumulativeSalerequired":{["formatnumber":,"doubleactive"]},"models.exporter.ShiftCounters":{"description":"накопительный итог продаж с начала работыИнформация о количестве чеков за смену по данным кассы","typeproperties":{"number"receiptsExpense":{"type":"integer","format":"int32"},"insertionposId":{"format":"int32int64","description":"Количество внесений в денежный ящик за смену по данным ИД кассы","type":"integer"},"withdrawalshiftId":{"format":"int32int64","description":"КоличествоУникальный изъятий израмках денежногокассы) ящика за смену по данным кассыидентификатор смены","type":"integer"},"storeIdreceiptsReturn":{"format":"int32","description":"ИД магазинаКоличество чеков возвратов за смену по данным кассы","type":"stringinteger"},"receiptsSalereceiptsCancel":{"format":"int32","description":"Количество аннулированных чеков продаж за смену по данным кассы","type":"integer"}},"requiredmoneyboxAmount":[{"posIdformat",:"storeIddouble","shiftIddescription","cumulativeSale:"сумма наличных в денежном ящике после закрытия смены","receiptsSaletype",:"receiptsReturnnumber"},"receiptsCancelcumulativeSale",:{"insertionformat",:"withdrawaldouble"]},"ru.servplus.pos.common.models.receipt.common.DiscountKind":{"description":"manual-ручная скидка или отсутствует (пусто)накопительный итог продаж с начала работы кассы","propertiestype":{"number"}},"models.importer.GroupItemListinsertion":{"propertiesformat":{"elements":{"type":"array"int32","itemsdescription":{"$ref":"#/definitions/models.importer.GroupItem"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.common.ReceiptNumber":{"properties":{"posNumber":{"format":"int64"Количество внесений в денежный ящик за смену по данным кассы","type":"integer"},"withdrawal":{"format":"int32","description":"Количество изъятий из денежного ящика за смену по данным кассы","type":"integer"},"shiftNumberstoreId":{"formatdescription":"int64ИД магазина","type":"integerstring"},"globalDocNumberreceiptsSale":{"format":"int64int32","description":"Количество чеков продаж за смену по данным кассы","type":"integer"}},"receiptNumberrequired":{["formatposId":,"int64storeId","typeshiftId":,"integercumulativeSale"}},"requiredreceiptsSale":[,"posNumberreceiptsReturn","shiftNumberreceiptsCancel","receiptNumberinsertion","globalDocNumberwithdrawal"]},"models.exporterimporter.ReceiptDatesAdditionalItemPriceList":{"description":"даты чека","properties":{"dateOpenelements":{"formattype":"date-timearray","descriptionitems":"дата-время начала чека","type":"string","example":"2018-06-22T08:00:19"},"dateClose":{"format":"date-time","description":"дата-время окончания чека","type":"string","example":"2018-06-22T08:00:19"},"dateSubtotal":{"format":"date-time","description":"дата-время начала оплаты чека (последнего подытога)","type":"string","example":"2018-06-22T08:00:19"{"$ref":"#/definitions/models.importer.AdditionalItemPrice"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.common.DiscountKind":{"description":"manual-ручная скидка или отсутствует (пусто)","properties":{}},"models.importer.GroupItemList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.GroupItem"}}},"required":["dateOpenelements","dateClose"]},"ru.servplus.pos.common.models.receipt.common.DiscountProgramSourceReceiptNumber":{"properties":{}},"ru.servplus.pos.common.models.receipt.common.OperationMode"posNumber":{"descriptionformat":"0 - расчет скидок выполнялся при наличие связи с сервером маркетинга УКМ5, 1 - при отсутствии связиint64","propertiestype":{"integer"}},"models.exporter.misc.AwardCoupon":{"propertiesshiftNumber":{"expiryDate":{"format":"date-timeint64","type":"stringinteger"},"numberglobalDocNumber":{"typeformat":"stringint64"},"amounttype":{"$ref":"#/definitions/Money"integer"},"effectDatereceiptNumber":{"format":"date-timeint64","type":"stringinteger"}},"commentrequired":{["typeposNumber":,"stringshiftNumber"}},"required":["number"receiptNumber","commentglobalDocNumber"]},"models.importerexporter.LegalEntityReceiptDates":{"description":"юр.даты лицочека","properties":{"agentTypedateOpen":{"format":"date-time","description":"тип агентадата-время начала чека","type":"string","enumexample":["broker","agent","bankAgent","notSet"]},"phoneNumber":{"2018-06-22T08:00:19"},"dateClose":{"format":"date-time","description":"дата-время окончания чека","type":"string"},"addressexample":{"type":"string""2018-06-22T08:00:19"},"deleteddateSubtotal":{"typeformat":"booleandate-time"},"inn":{"description":"ИНН. Может быть или юр. лица, или физ. лицадата-время начала оплаты чека (последнего подытога)","type":"string","maxLengthexample":40"2018-06-22T08:00:19"}},"namerequired":{["descriptiondateOpen":"название","typedateClose":"string","maxLength":100},"payVat]},"ru.servplus.pos.common.models.receipt.common.DiscountProgramSource":{"properties":{}},"ru.servplus.pos.common.models.receipt.common.OperationMode":{"description":"это платильщик НДС. Если да, то обычне налоги. Если нет, то специальные","type":"boolean"}},"required":["inn","name","payVat","agentType","deleted"]},"models.importer.LegalEntityItemVendorList":{"properties":{"elements0 - расчет скидок выполнялся при наличие связи с сервером маркетинга УКМ5, 1 - при отсутствии связи","properties":{}},"models.exporter.misc.AwardCoupon":{"properties":{"expiryDate":{"format":"date-time","type":"string"},"number":{"type":"arraystring"},"itemsamount":{"$ref":"#/definitions/models.importer.LegalEntityItemVendor"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.common.DiscountInfoMoney"},"effectDate":{"format":"date-time","type":"string"},"comment":{"propertiestype":{"amount":{"descriptionstring"}},"required":["сумма скидкиnumber","$ref":"#/definitions/Money"comment"]},"codemodels.importer.LegalEntity":{"typedescription":"stringюр. лицо"},"programSourceproperties":{"$refagentType":"#/definitions/ru.servplus.pos.common.models.receipt.common.DiscountProgramSource"},"couponNumber":{{"description":"тип агента","type":"string"},"kindenum":{["$refbroker":"#/definitions/ru.servplus.pos.common.models.receipt.common.DiscountKind"},"couponQuantity":{"format":"int32",,"agent","bankAgent","notSet"]},"phoneNumber":{"type":"integerstring"},"nameaddress":{"descriptiontype":"название скидкиstring"},"deleted":{"type":"stringboolean"},"discountCardinn":{"description":"номер дискИНН.карты (еслиМожет скидкабыть была предоставлена по диск.карте) это НЕ карта клиента!или юр. лица, или физ. лица","type":"string"},"mechanicIdmaxLength":{"format":"int32","type":"integer"40},"idname":{"formatdescription":"int32название","descriptiontype":"ИД скидкиstring","typemaxLength":"integer"100},"eftspayVat":{"formatdescription":"int32","description":"код типа скидкиэто платильщик НДС. Если да, то обычне налоги. Если нет, то специальные","type":"integerboolean"}},"required":["inn","idname","eftspayVat","nameagentType","amountdeleted"]},"models.importer.LegalEntityItemContractorListLegalEntityItemVendorList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.LegalEntityItemContractorLegalEntityItemVendor"}}},"required":["elements"]},"ru.servplus.pos.common.documentsmodels.receipt.rawreceiptcommon.RawReceiptTypeDiscountInfo":{"description":"sale - чек продажи, refundOnReceipt - возврат на основании чека","properties":{}},"models.exporter.ShiftWOReceipts"amount":{"propertiesdescription":{"shift":{сумма скидки","$ref":"#/definitions/models.exporter.Shift"Money"},"counterscode":{"$reftype":"#/definitions/models.exporter.ShiftCountersstring"},"kkmInfoprogramSource":{"$ref":"#/definitions/models.exporter.ShiftKKMInfo"},"fnInfo":{"$ref":"#/definitions/models.exporter.ShiftFNInforu.servplus.pos.common.models.receipt.common.DiscountProgramSource"},"paymentscouponNumber":{"type":"arraystring"},"itemskind":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.exportercommon.ShiftPaymentDiscountKind"}},"expenseAmountcouponQuantity":{"typeformat":"numberint32","formattype":"doubleinteger"},"expenseCountname":{"typedescription":"integerназвание скидки","formattype":"int32string"},"kkmExpenseAmountdiscountCard":{"typedescription":"numberномер диск.карты (если скидка была предоставлена по диск.карте) это НЕ карта клиента!","formattype":"doublestring"},"kkmExpenseCountmechanicId":{"format":"int32","type":"integer"},"id":{"format":"int32"}},"requireddescription":["shiftИД скидки","paymentstype":"integer"]},"models.importer.GroupAttributeefts":{"format":"int32","description":"аттрибуткод группы. Используется для ограничений продажи и маркировки. Возможные значения alcohol, tobacco, egais, markedTobacco, markedGoods, advance, noSellerRequired, service",типа скидки","type":"integer"}},"required":["id","efts","name","amount"]},"models.importer.LegalEntityItemContractorList":{"properties":{"idelements":{"type":"stringarray","maxLength":40items":{"$ref":"#/definitions/models.importer.LegalEntityItemContractor"}}},"required":["idelements"]},"models.importer.ItemPropertyru.servplus.common.documents.rawreceipt.RawReceiptType":{"description":"дополнительное свойство товараsale - чек продажи, refundOnReceipt - возврат на основании чека","properties":{"showToCashier}},"models.exporter.ShiftWOReceipts":{"typeproperties":{"booleanshift"},"values":{"description$ref":"возможные значения свойства. Если не задано, должен ввести кассир. Если задано одно, оно подставляется по умолчанию. Если задан список, кассир выбирает из списка.","type":"array","items#/definitions/models.exporter.Shift"},"counters":{"$ref":"#/definitions/models.exporter.ShiftCounters"},"kkmInfo":{"$ref":"#/definitions/models.importerexporter.ItemPropertyValueShiftKKMInfo"}},"namefnInfo":{"description$ref":"название свойства",#/definitions/models.exporter.ShiftFNInfo"},"payments":{"type":"stringarray"},"printOnReceiptitems":{"type$ref":"boolean#/definitions/models.exporter.ShiftPayment"}},"idexpenseAmount":{"descriptiontype":"идентификатор свойстваnumber","typeformat":"stringdouble"}},"requiredexpenseCount":[{"idtype",:"nameinteger","valuesformat",:"showToCashierint32","printOnReceipt"]},"models.exporter.ReceiptsListkkmExpenseAmount":{"propertiestype":{"elementsnumber":{,"typeformat":"arraydouble"},"itemskkmExpenseCount":{"$reftype":"integer","format":"#/definitions/models.exporter.Receiptint32"}}},"required":["elementsshift","payments"]},"ru.servplus.pos.common.models.receiptimporter.common.GiftGroupAttribute":{"description":"Перечень подарков, выданных по чеку в рамках системы лояльностиаттрибут группы. Используется для ограничений продажи и маркировки. Возможные значения alcohol, tobacco, egais, markedTobacco, markedGoods, advance, noSellerRequired, service","properties":{"itemid":{"description":"Код (артикул) товара, выданного как подарок","type":"string"},"quantity":{"$ref":"#/definitions/ru.servplus.pos.common.models.Quantity"maxLength":40}},"required":["item","quantityid"]},"ru.servplus.pos.common.models.receiptimporter.sale.EGAISMarkItemProperty":{"description":"маркадополнительное ЕГАИС, прочитанная с свойство товара","properties":{"markshowToCashier":{"descriptiontype":"маркаboolean"},"typevalues":{"string"}},"required":["mark"]},"ru.servplus.pos.common.models.receipt.common.ItemProperty":{"properties":{"showToCashier":{"type":"boolean"},"values":{description":"возможные значения свойства. Если не задано, должен ввести кассир. Если задано одно, оно подставляется по умолчанию. Если задан список, кассир выбирает из списка.","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.commonimporter.ItemPropertyValue"}},"name":{"description":"название свойства","type":"string"},"printOnReceipt":{"type":"boolean"},"id":{"description":"идентификатор свойства","type":"string"}},"required":["id","name","values","showToCashier","printOnReceipt"]},"models.importerexporter.LegalEntityListReceiptsList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importerexporter.LegalEntityReceipt"}}},"required":["elements"]},"ru.servplus.pos.common.models.importerreceipt.common.BarcodeGift":{"description":"ШтрихкодПеречень товара","properties":{"quantityподарков, выданных по чеку в рамках системы лояльности","properties":{"formatitem":{"double","description":"Количество товара по штрихкоду (в упаковке) (для штучного товара значение 0 трактуется кассой как 1)Код (артикул) товара, выданного как подарок","type":"numberstring"},"idquantity":{"description$ref":"Штрихкод товара","type":"string","maxLength":40#/definitions/ru.servplus.pos.common.models.Quantity"}},"required":["iditem","quantity"]},"ru.servplus.pos.common.models.receipt.sale.RequisiteEGAISMark":{"propertiesdescription":{"code":{"type":"string"},"rType":{"type":"integer","format":"int32"марка ЕГАИС, прочитанная с товара","properties":{"mark":{"description":"марка","type":"string"}},"required":["code","rTypemark"]},"ru.servplus.pos.common.models.receipt.Usercommon.ItemProperty":{"description":"кассир","properties":{"roleIdshowToCashier":{"formattype":"int64boolean"},"descriptionvalues":"код роли кассира","{"type":"integerarray"},"nameitems":{"description$ref":"ФИО","type":"string"#/definitions/ru.servplus.pos.common.models.receipt.common.ItemPropertyValue"}},"innname":{"description":"ИНН кассира","type":"string"},"idprintOnReceipt":{"formattype":"int64boolean"},"descriptionid":"код кассира",{"type":"integerstring"}},"required":["id","name","roleId"values","showToCashier","printOnReceipt"]},"models.importer.TaxGroupLegalEntityList":{"description":"Налоговая группа (ее id указывается у товара)","properties":{"taxRateselements":{"type":"array","items":{"$ref":"#/definitions/models.importer.TaxRateLegalEntity"}}},"isPreferentialrequired":{["type":"boolean"elements"]},"advanceTaxIdmodels.importer.Barcode":{"formatdescription":"int64Штрихкод товара","typeproperties":"integer"},"id{"quantity":{"format":"int64double","description":"Код налоговой группы (с кодом в ККТ не связан напрямуюКоличество товара по штрихкоду (в упаковке) (для штучного товара значение 0 трактуется кассой как 1)","type":"integernumber"},"deleteid":{"typedescription":"boolean"},"fpCode":{"description":"Не используетсяШтрихкод товара","type":"string","maxLength":2040}},"required":["id","fpCode","taxRates","delete"quantity"]},"ru.servplus.pos.common.models.exporterreceipt.miscsale.MarketingResultRequisite":{"properties":{"awardCouponscode":{"type":"arraystring"},"itemsrType":{"$ref"type":"integer","format":"#/definitions/models.exporter.misc.AwardCouponint32"}},"discountAmountrequired":{["$refcode":"#/definitions/Money","rType"]},"transactionTimeru.servplus.pos.common.models.User":{"typedescription":"stringкассир"},"transactionIDproperties":{"typeroleId":{"stringformat"},:"eftsint64":{,"formatdescription":"int32код роли кассира","type":"integer"},"operationModename":{"$refdescription":"#/definitions/ru.servplus.pos.common.models.receipt.common.OperationMode"},"cardNum":{"ФИО","type":"string"},"usedBonusesinn":{"$refdescription":"#/definitions/Money"}ИНН кассира","origTransactionIDtype":{"type":"string"},"usedCouponsid":{"typeformat":"arrayint64","itemsdescription":{"$ref"код кассира","type":"#/definitions/ru.servplus.pos.common.models.receipt.common.UsedCouponinteger"}},"operationTyperequired":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.OperationType"},"awardBonuses["id","name","roleId"]},"models.importer.TaxGroup":{"$refdescription":"#/definitions/Money"},"giftsНалоговая группа (ее id указывается у товара)","properties":{"taxRates":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receiptimporter.common.GiftTaxRate"}}},"requiredisPreferential":[{"eftstype",:"transactionTimeboolean"},"operationTypeadvanceTaxId",:{"operationModeformat",:"discountAmountint64","awardBonusestype",:"usedBonusesinteger"},"awardCouponsid",:{"usedCouponsformat",:"giftsint64"]},"ru.servplus.pos.common.models.receipt.sale.KKTKIZ":{"description":"информация для маркир.товаров, отправленнаяdescription":"Код налоговой группы (с кодом в ККТ не связан напрямую)","propertiestype":{"kizType"integer"},"delete":{"$reftype":"#/definitions/ru.servplus.pos.common.models.receipt.sale.KIZTypeboolean"},"kktCodefpCode":{"description":"массив байт, который был отправлен в ККТ (тег 1162)Не используется","type":"string","maxLength":20},"serial},"required":["id","fpCode","taxRates","delete"]},"models.exporter.misc.MarketingResult":{"descriptionproperties":"уникальный код маркированного товара",{"awardCoupons":{"type":"stringarray"},"requisiteitems":{"$ref":"#/definitions/ru.servplus.pos.common.models.receiptexporter.salemisc.RequisiteAwardCoupon"}},"checkResultdiscountAmount":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.CheckResult"}},"required":["kktCode","kizType"]},"ru.servplus.pos.common.models.receipt.sale.EGAISReceiptDataMoney"},"transactionTime":{"type":"string"},"transactionID":{"propertiestype":{"sign"string"},"efts":{"descriptionformat":"Подпись чека от УТМint32","type":"stringinteger"},"idoperationMode":{"type$ref":"string"}#/definitions/ru.servplus.pos.common.models.receipt.common.OperationMode"},"requiredcardNum":[{"signtype",:"idstring"]},"ru.servplus.common.documents.rawreceipt.RawReceiptResultusedBonuses":{"description$ref":"completed - нормально завершенный чек, canceled - отмененный чек","properties":{}},"models.importer.User#/definitions/Money"},"origTransactionID":{"type":"string"},"usedCoupons":{"descriptiontype":"Пользователь кассы (кассир)array","propertiesitems":{"password$ref":{"description":"Пароль кассира (в открытом виде)","type":"string","maxLength":48},"cards":{"description":"Перечень карт кассира","#/definitions/ru.servplus.pos.common.models.receipt.common.UsedCoupon"}},"operationType":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.OperationType"},"awardBonuses":{"$ref":"#/definitions/Money"},"gifts":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.importerreceipt.common.UserCardGift"}}},"roleIdrequired":{["formatefts":,"int64transactionTime","descriptionoperationType":"Код роли (кассир, ст.кассир и т.д.),"operationMode","typediscountAmount":,"integerawardBonuses"},"nameusedBonuses":{,"description":"Имя (ФИО) кассира"awardCoupons","typeusedCoupons":"string","maxLengthgifts":100]},"inn"ru.servplus.pos.common.models.receipt.sale.KKTKIZ":{"description":"ИНН кассира","type":"string","maxLength":20},"id":{"format":"int64","description":"Код кассира","type":"integer"},"delete":{"type":"boolean"}},"required":["id","name","roleId","cards","delete"]},"информация для маркир.товаров, отправленная в ККТ","properties":{"kizType":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.ClientKIZType"},"kktCode":{"description":"Клиент системы лояльности. Заполнение зависит от системы лояльноси","properties":{"refusePaperCheck":{"массив байт, который был отправлен в ККТ (тег 1162)","type":"booleanstring"},"patronymicserial":{"description":"Отчество клиентауникальный код маркированного товара","type":"string"},"phonerequisite":{"type$ref":"string"},"surname#/definitions/ru.servplus.pos.common.models.receipt.sale.Requisite"},"checkResult":{"description$ref":"Фамилия клиента","type":"string"},"name#/definitions/ru.servplus.pos.common.models.receipt.sale.CheckResult"}},"required":["kktCode","kizType"]},"ru.servplus.pos.common.models.receipt.sale.EGAISReceiptData":{"properties":{"sign":{"description":"Имя клиентаПодпись чека от УТМ","type":"string"},"loyalitySysUIDid":{"descriptiontype":"код (efts) системы лояльности, в которой зарегистрирован клиент","type":"string"},"categorystring"}},"required":["sign","id"]},"ru.servplus.common.documents.rawreceipt.RawReceiptResult":{"description":"категория клиента (если вернула система лояльности)completed - нормально завершенный чек, canceled - отмененный чек","typeproperties":"string"{}},"cardNumbermodels.importer.User":{"description":"номерПользователь картыкассы клиента(кассир)","typeproperties":{"stringpassword"},:{"emaildescription":{"Пароль кассира (в открытом виде)","type":"string"}},"requiredmaxLength":["surname"48},"namecards",:{"patronymicdescription","cardNumber:"Перечень карт кассира","categorytype",:"loyalitySysUIDarray"]},"models.exporter.ReceiptAdditionalParamsitems":{"description$ref":"параметры чека","properties#/definitions/models.importer.UserCard"}},"roleId":{"marketingResultsformat":{"int64","description":"ДляКод каждойроли системы маркетинга отдельная запись(кассир, ст.кассир и т.д.)","type":"arrayinteger"},"itemsname":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.MarketingResult"}},"discountCards"description":"Имя (ФИО) кассира","type":"string","maxLength":100},"inn":{"description":"все диск.карты (не карты клиентов!), которые были введены в чеке через шаблон ввода. Часть из них (которые привели в предоставлению скидки), перечислены  в модели MarketingResult"ИНН кассира","type":"arraystring","itemsmaxLength":20},"id":{"typeformat":"stringint64"}},"couponsCodes":{"description":"все купоны, введенные в чек через шаблон ввода. Примененные/выданные купоны в модели MarketingResultКод кассира","type":"arrayinteger"},"itemsdelete":{"type":"stringboolean"}},"returnReasonrequired":{"$ref":"#/definitions/models.exporter.ExportableReturnReason"},"egaisReceiptData":{"$ref":"#/definitions/["id","name","roleId","cards","delete"]},"ru.servplus.pos.common.models.receipt.sale.EGAISReceiptDataClient"},"client":{"$refdescription":"#/definitions/ru.servplus.pos.common.models.receipt.sale.Client"},"customerContactInfoКлиент системы лояльности. Заполнение зависит от системы лояльноси","properties":{"description":"контактные данные покупателя для отправки чека через ОФД (телефон или почта)",refusePaperCheck":{"type":"stringboolean"},"supervisorpatronymic":{"description":"для отмененных чеков кассир, отменивший чек","$ref":"#/definitions/ru.servplus.pos.common.models.UserОтчество клиента","type":"string"},"phone":{"type":"string"},"propertiessurname":{"description":"дополнительные свойства, привязанные к чекуФамилия клиента","type":"arraystring"},"itemsname":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.Property"}},"originalReceiptNumbers"description":"Имя клиента","type":"string"},"loyalitySysUID":{"description":"длякод чеков(efts) возвратасистемы полояльности, чекув номеркоторой исходногозарегистрирован чека продажиклиент","$reftype":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptNumberstring"},"originalReceiptIdcategory":{"description":"длякатегория чековклиента возврата(если повернула чеку id исходного чека продажисистема лояльности)","$reftype":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptIdstring"}},"required":["marketingResults"]},"ru.servplus.pos.common.models.receipt.common.BarcodePropertyValuecardNumber":{"propertiesdescription":{"id":{номер карты клиента","type":"string"},"nameemail":{"type":"string"}},"required":["idsurname","name","patronymic","cardNumber","category","loyalitySysUID"]},"models.importerexporter.AlternativeItemPriceReceiptAdditionalParams":{"description":"параметры чека","properties":{"itemIdmarketingResults":{"typedescription":"stringДля каждой системы маркетинга отдельная запись","maxLengthtype":40}"array","minprice":{"format":"doubleitems":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.MarketingResult"}},"discountCards":{"description":"все диск.карты (не карты клиентов!), которые были введены в чеке через шаблон ввода. Часть из них (которые привели в предоставлению скидки), перечислены  в модели MarketingResult","type":"array","items":{"type":"string"}},"couponsCodes":{"description":"все купоны, введенные в чек через шаблон ввода. Примененные/выданные купоны в модели MarketingResult","type":"array","items":{"type":"string"}},"returnReason":{"$ref":"#/definitions/models.exporter.ExportableReturnReason"},"egaisReceiptData":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.EGAISReceiptData"},"client":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.Client"},"customerContactInfo":{"description":"контактные данные покупателя для отправки чека через ОФД (телефон или почта)","type":"string"},"supervisor":{"description":"для отмененных чеков кассир, отменивший чек","$ref":"#/definitions/ru.servplus.pos.common.models.User"},"properties":{"description":"дополнительные свойства, привязанные к чеку","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.Property"}},"originalReceiptNumbers":{"description":"для чеков возврата по чеку номер исходного чека продажи","$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptNumber"},"originalReceiptId":{"description":"для чеков возврата по чеку id исходного чека продажи","$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptId"}},"required":["marketingResults"]},"ru.servplus.pos.common.models.receipt.common.BarcodePropertyValue":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"models.importer.AlternativeItemPrice":{"properties":{"itemId":{"type":"string","maxLength":40},"minprice":{"format":"double","type":"number"},"price":{"format":"double","type":"number"},"description":{"type":"string","maxLength":100},"delete":{"type":"boolean"}},"required":["itemId","price","minprice","description","delete"]},"ru.servplus.pos.common.models.Quantity":{"description":"значение количества","properties":{"decimals":{"format":"int32","description":"вспомогательное поле - количество символов в дробной части","type":"integer"},"value":{"format":"double","description":"значение количества","type":"number"}},"required":["value","decimals"]},"models.exporter.ShiftFNInfo":{"description":"Информация о состоянии ФН на момент закрытия смены","properties":{"shiftId":{"format":"int64","description":"Уникальный (в рамках кассы) идентификатор смены","type":"integer"},"ofdQueueLength":{"format":"int32","description":"Количество документов в очереди в ОФД","type":"integer"},"longWaitOFD":{"description":"Превышено время работы без отправки чеков в ОФД","type":"boolean"},"firstQueueDocNumber":{"format":"int32","description":"Номер первого неотправленного в ОФД документа","type":"integer"},"storeId":{"description":"ИД магазина","type":"string"},"firstQueueDocDateTime":{"format":"date-time","description":"Дата-время первого неотправленного в ОФД документа","type":"string","example":"2018-06-22T08:00:19"},"fiscalDocNumber":{"format":"int32","description":"Номер последнего записанного в ФН документа","type":"integer"},"posId":{"format":"int64","description":"ИД кассы","type":"integer"},"needChangeFN":{"description":"Признак необходимости замены ФН (по времени). Осталось менее 3 дней","type":"boolean"},"fnNumber":{"description":"Заводской номер ФН","type":"string"},"shiftState":{"format":"int32","description":"состояние смены в ККТ 0 - смена открыта, 1 - смена закрыта","type":"integer"},"endingResourceFN":{"description":"Приближается необходимость замены ФН (по времени). Осталось 30 дней","type":"boolean"},"lifePhase":{"format":"int32","description":"= 2 открыт фискальный режим","type":"integer"},"lifeTime":{"format":"date-time","description":"Срок действия ФН","type":"string","example":"2018-06-22T08:00:19"},"overflowFN":{"description":"Переполнение ФН по памяти (более 90% заполнено)","type":"numberboolean"},"pricestatus":{"format":"doubleint32","type":"number"integer"}},"required":["posId","storeId","shiftId"]},"descriptionmodels.importer.ItemPriceList":{"typeproperties":{"stringelements",:{"maxLengthtype":100}"array","deleteitems":{"type$ref":"boolean#/definitions/models.importer.ItemPrice"}}},"required":["itemIdelements"]},"price","minprice","description","delete"]},"ru.servplus.pos.common.models.Quantity":{"description":"значение количества","properties":{"decimals"models.importer.ItemPrice":{"description":"Цена на товар (на уникальный код)","properties":{"itemId":{"description":"Уникальный код товара","type":"string","maxLength":40},"isPromoPrice":{"description":"Признак, что данная цена акционная (промо)","type":"boolean"},"minprice":{"format":"int32double","description":"вспомогательное поле - количество символов в дробной частиМинимальна цена","type":"integernumber"},"valueprice":{"format":"double","description":"значение количестваЦена","type":"number"}},"requireddateTo":[{"valueformat",:"decimalsdate-time"]},"models.exporter.ShiftFNInfo":{"description":"ИнформацияДата оокончания состоянии ФН на момент закрытия смены","properties":{"shiftIdдействия цены","type":"string","example":"2018-06-22T08:00:19"},"dateFrom":{"format":"int64date-time","description":"УникальныйДата начала рамках кассы) идентификатор сменыдействия цены","type":"string","example":"integer2018-06-22T08:00:19"},"ofdQueueLengthdelete":{"formattype":"int32boolean"}},"descriptionrequired":"Количество документов в очереди в ОФД["itemId","price","minprice","typeisPromoPrice":,"integerdelete"]},"longWaitOFDru.servplus.pos.common.models.Money":{"descriptionproperties":"Превышено время работы без отправки чеков в ОФД",{"value_j":{"type":"booleanjava.bigdecimal"},"firstQueueDocNumbercurrencyCode":{"formattype":"int32string"},"description"decimals":{"type":"Номер первого неотправленного в ОФД документаinteger","typeformat":"integerint32"},"storeIdroundingMode":{"descriptiontype":"ИД магазинаstring","typeenum":["stringROUND_HALF_EVEN"},"firstQueueDocDateTime":{"format":"date-time","description":"Дата-время первого неотправленного в ОФД документа","type":"string","example":"2018-06-22T08:00:19"},"fiscalDocNumber":{"format":"int32",ROUND_UP","ROUND_CEILING","ROUND_HALF_UP","ROUND_UNNECESSARY","ROUND_HALF_DOWN","ROUND_DOWN","ROUND_FLOOR"]}},"required":["value_j","currencyCode","decimals","roundingMode"]},"models.importer.ItemProperties":{"description":"Номерсписок последнегодополнительных записанного в ФН документасвойств товара","typeproperties":"integer"},"posId{"itemId":{"formatdescription":"int64код товара","descriptiontype":"ИД кассыstring"},"deleted":{"type":"integerboolean"},"needChangeFNproperties":{"description":"Признак необходимости замены ФН (по времени). Осталось менее 3 днейсвойства","type":"booleanarray"},"fnNumberitems":{"description$ref":"Заводской номер ФН","type":"string"},"shiftState#/definitions/models.importer.ItemProperty"}}},"required":["itemId","properties","deleted"]},"models.exporter.Receipt.ReceiptDates":{"formatproperties":{"int32","description":"состояние смены в ККТ 0 - смена открыта, 1 - смена закрыта",dateOpen":{"type":"integerstring"},"endingResourceFNdateClose":{"descriptiontype":"Приближается необходимость замены ФН (по времени). Осталось 30 дней","string"},"dateSubtotal":{"type":"booleanstring"}},"lifePhaserequired":{["formatdateOpen":,"int32dateClose"]},"ru.servplus.pos.common.models.receipt.sale.KIZType":{"description":"=tobacco-маркированное 2 открыт фискальный режимтабачное изделие","typeproperties":"integer"{}},"lifeTimeru.servplus.pos.common.models.receipt.common.ReceiptTax":{"formatdescription":"date-timeналоги по чеку, рассчитанные кассой","properties":{"amount":{"description":"Срокрассчитанное действиязначение ФНналога","type$ref":"string#/definitions/Money"},"exampletaxId":"2018-06-22T08:00:19"},"overflowFN":{"{"format":"int64","description":"Переполнение ФН по памяти (более 90% заполнено)ИД налоговой ставки","type":"booleaninteger"},"statustaxGroupId":{"format":"int32int64","typedescription":"integer"}}ИД налоговой группы","requiredtype":["posId","storeId","shiftId"]integer"},"models.importer.ItemPriceListname":{"propertiesdescription":{"elements":{название налога","type":"arraystring"},"itemspercent":{"$refformat":"int32","description":"#/definitions/models.importer.ItemPrice"}}},"required":["elements"]},"models.importer.ItemPriceставка налога","type":"integer"},"fpCode":{"description":"Ценазарезервировано напод товар (на уникальный код)дальнейшее развитие","propertiestype":{"itemId"string"}},"required":{["descriptiontaxId":"Уникальный код товара,"taxGroupId","typename":,"stringpercent","maxLengthamount":40]},"isPromoPriceru.servplus.pos.common.models.receipt.common.OperationType":{"description":"Признак, что данная цена акционная (промо)","type":"boolean"},"minprice":{"format":"double",:"0 - взаимодействие с системой лояльности выполнялась в чеке Приход (продажа), 1 - в чеке возврата прихода, 2 - взаимодействие было отменено","properties":{}},"models.importer.Tax":{"description":"МинимальнаОписание ценаналога","typeproperties":{"numbername"},"price":{"formatdescription":"doubleНазвание налога (Например, НДС)","descriptiontype":"Ценаstring","typemaxLength":"number"40},"dateToid":{"format":"date-timeint64","description":"Дата окончания действия ценыКод налога (произвольный идентификатор - например, 1)","type":"string","example":"2018-06-22T08:00:19integer"},"dateFrompriority":{"format":"date-time""int32","maximum":128,"description":"Дата начала действия ценыПриоритет расчета налога (т.к. сейчас существует только НДС, то константа = 10)","type":"string","example":"2018-06-22T08:00:19"},"delete":{"type":"boolean"}integer"}},"required":["itemIdid","pricename","minprice","isPromoPrice","delete"priority"]},"rumodels.servplus.pos.common.models.Moneyimporter.LegalEntityItemPaymentAgentList":{"properties":{"value_jelements":{"type":"java.bigdecimalarray"},"currencyCodeitems":{"type$ref":"string"#/definitions/models.importer.LegalEntityItemContractor"}}},"decimalsrequired":{["type":"integer","format":"int32"elements"]},"roundingModemodels.importer.BarcodePriceList":{"typeproperties":{"string","enumelements":["ROUND_HALF_EVEN","ROUND_UP","ROUND_CEILING","ROUND_HALF_UP","ROUND_UNNECESSARY","ROUND_HALF_DOWN","ROUND_DOWN","ROUND_FLOOR"]}},"required":["value_j","currencyCode","decimals","roundingMode{"type":"array","items":{"$ref":"#/definitions/models.importer.BarcodePrice"}}},"required":["elements"]},"models.importer.ItemPropertiesLegalEntityStore":{"description":"список дополнительных свойств товарапривязка юр. лица к магазину","properties":{"itemIdinn":{"description":"код товараИНН юр. лица","type":"string"},"deletedmaxLength":{"type":"boolean"40},"propertiesstoreId":{"description":"свойстваид магазина","type":"arraystring","itemsmaxLength":{"$ref":"#/definitions/models.importer.ItemProperty"}100}},"required":["itemIdstoreId","propertiesinn","deleted"]},"models.exporter.Receipt.ReceiptDatesPayment":{"description":"Оплата","properties":{"dateOpendeviceType":{"description":"Тип банковской авторизации для оплат картой","type":"string"},"dateCloseamount":{"typedescription":"string"}Сумма данным средством оплаты","dateSubtotal$ref":{"type":"string"}},"required":["dateOpen","dateClose"]},"ru.servplus.pos.common.models.receipt.sale.KIZType#/definitions/Money"},"qrRequisites":{"description":"Реквизиты QR-оплаты","type":"string"},"authorizationCode":{"description":"tobacco-маркированное табачное изделиеКод авторизации для банк.транзакции","propertiestype":{"string"}},"ru.servplus.pos.common.models.receipt.common.ReceiptTaxcardType":{"description":"налоги по чеку, рассчитанные кассойТип карты (visa, МИР и т.д., если сообщил пин-пад)","propertiestype":{"amount"string"},"inn":{"description":"рассчитанноеИНН значение налогапродавца","$reftype":"#/definitions/Moneystring"},"taxIdamountWithChange":{"format":"int64","description":"ИД налоговой ставкиСумма данная покупателем (для наличных)","type$ref":"integer#/definitions/Money"},"taxGroupIduuid":{"format":"int64","description":"ИД налоговой группыуник.номер транзакции (если сообщил пин-пад)","type":"integerstring"},"namerrn":{"description":"название налогаНомер банк.транзакции (если сообщил пин-пад)","type":"string"},"percentbanknotes":{"formatdescription":"int32Список банкнот","descriptiontype":"ставка налогаarray","type"items":{"$ref":"integer"#/definitions/models.exporter.Banknote"}},"fpCodecardValidTo":{"description":"зарезервировано под дальнейшее развитиеДата действия банк.карты (если сообщил пин-пад)","type":"string"}},"required":["taxId","taxGroupId","name","percent","amount"]},"ru.servplus.pos.common.models.receipt.common.OperationType"balance":{"description":"0 - взаимодействие с системой лояльности выполнялась в чеке Приход (продажа), 1 - в чеке возврата прихода, 2 - взаимодействие было отменено","properties":{}},"models.importer.Tax":{$ref":"#/definitions/Money"},"paymentId":{"format":"int64","description":"ОписаниеИД средства налогаоплаты","propertiestype":{"integer"},"name":{"description":"Название налогасредства (Например, НДС)","оплаты","type":"string"},"pType":{"type":"string","maxLength":40},"id":{"format":"int64","description":"Код налога (произвольный идентификатор - например, 1)","type":"integer"},"priority$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.PaymentType","enum":["Other","Card","PayCard","Cash","Unknown","Certificate","Prepayment"]},"currencyId":{"format":"int32int64","description":"ИД валюты","maximumtype":128,"integer"},"cardNumber":{"description":"ПриоритетНомер расчетакарты, налога (т.к. сейчас существует только НДС, то константа = 10как его сообщил пин-пад (с маскир.разрядами)","type":"integerstring"}},"required":["paymentId","idcurrencyId","name","priority"pType","deviceType","amount","amountWithChange"]},"models.importer.LegalEntityItemPaymentAgentListLegalEntityItemContractor":{"description":"продавец товара. для режима многофискальности","properties":{"elementsitemId":{"typedescription":"arrayкод товара","itemstype":{"$refstring":"#/definitions/models.importer.LegalEntityItemContractor"}}},"required":["elements"]},"models.importer.BarcodePriceList,"maxLength":40},"deleted":{"type":"boolean"},"stores":{"propertiesdescription":{"elements":{привязка к магазинам","type":"array","items":{"$ref":"#/definitions/models.importer.BarcodePrice"}LegalEntityStore"}},"isGlobal":{"description":"действует во всех магазинах. Если false, то только из списка","type":"boolean"}},"required":["elementsitemId","stores","isGlobal","deleted"]},"models.importer.LegalEntityStore"ru.servplus.pos.common.models.receipt.sale.ItemSeller":{"description":"привязка юр. лицапродавец, привязанный к магазинупозиции","properties":{"inncardNum":{"description":"ИНН юр. лицакод карты (если регистрировался по карте)","type":"string"},"name":{"description":"ФИО продавца","maxLengthtype":40"string"},"storeIdid":{"description":"идкод магазинапродавца","type":"string","maxLength":100}},"required":["storeIdid","innname"]},"models.exporterimporter.PaymentItemAttribute":{"description":"Оплата","properties":{"deviceType":{"description":"Тип банковской авторизации для оплат картой","type":"string"},"amount":{"description":"Сумма данным средством оплаты","$ref":"#/definitions/Money"},"qrRequisites":{"description":"Реквизиты QR-оплаты","type":"string"},"authorizationCode":{"description":"Код авторизации для банк.транзакции",аттрибут товара. Используется для ограничений продажи и маркировки. Возможные значения alcohol, tobacco, egais, markedTobacco, markedGoods, advance, noSellerRequired, service","properties":{"id":{"type":"string","maxLength":40}},"required":["id"]},"ru.servplus.pos.common.models.receipt.common.BarcodeProperty":{"properties":{"id":{"type":"string"},"cardTypename":{"description":"Тип карты (visa, МИР и т.д., если сообщил пин-пад)","type":"string"},"innvalues":{"descriptiontype":"ИНН продавцаarray","items":{"type$ref":"string#/definitions/ru.servplus.pos.common.models.receipt.common.BarcodePropertyValue"}},"amountWithChangeshowToCashier":{"descriptiontype":"Сумма данная покупателем (для наличных)","$ref":"#/definitions/Money"},"uuid":{"description":"уник.номер транзакции (если сообщил пин-пад)","type":"string"},"rrnboolean"},"printOnReceipt":{"type":"boolean"}},"required":["id","name","values","showToCashier","printOnReceipt"]},"ru.servplus.pos.common.models.receipt.common.AwardCoupon":{"description":"Номер банк.транзакции (если сообщил пин-пад)Перечень купонов, выданных в чеке в рамках системы лояльности","typeproperties":{"stringexpiryDate"},:{"banknotesformat":{"date-time","description":"Список банкнотдата окончания действия купона","type":"arraystring","itemsexample":{"$ref":"#/definitions/models.exporter.Banknote"}},"cardValidTo"2018-06-22T08:00:19"},"number":{"description":"ДатаНомер действиявыданного банк.картыкупона (если сообщил пин-падон был у купона)","type":"string"},"balanceamount":{"description":"Номинал купона","$ref":"#/definitions/Money"},"paymentIdeffectDate":{"format":"int64date-time","description":"ИДдата начала средствадействия оплатыкупона","type":"integer"},"name":{"description":"Название средства оплатыstring","typeexample":"string2018-06-22T08:00:19"},"pTypecomment":{"type":"string"}},"$refrequired":"#/definitions/["number","comment"]},"ru.servplus.pos.common.models.receipt.common.PaymentTypeReceiptId",:{"enumproperties":[{"OtherposId",:{"Cardformat",:"PayCardint64","Cashtype",:"Unknown","Certificate","Prepayment"]integer"},"currencyIdshiftId":{"format":"int64","description":"ИД валюты","type":"integer"},"cardNumberexternalStoreId":{"description":"Номер карты, как его сообщил пин-пад (с маскир.разрядами)","type":"string"}},"requiredid":[{"paymentIdformat",:"currencyIdint64","nametype","pType","deviceType","amount","amountWithChange"]:"integer"},"models.importer.LegalEntityItemContractorstoreId":{"descriptionformat":"продавец товара. для режима многофискальности","properties":{"itemId":{int64","description":"кодИД товарамагазина","type":"string"}},"maxLengthrequired":40},["deletedstoreId":{,"typeposId":,"booleanid"]},"storesmodels.importer.SellerList":{"descriptionproperties":{"привязка к магазинам",elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.LegalEntityStoreSeller"}}},"required":["elements"]},"isGlobalmodels.importer.ItemList":{"descriptionproperties":"действует во всех магазинах. Если false, то только из списка",{"elements":{"type":"booleanarray"}},"requireditems":[{"itemId$ref","stores","isGlobal","deleted:"#/definitions/models.importer.Item"}}},"required":["elements"]},"ru.servplus.pos.common.models.receiptimporter.sale.ItemSellerItem":{"description":"продавец, привязанный к позиции","properties":{"cardNum":{"description":"код карты (если регистрировался по карте)"Описание товара","typeproperties":{"stringtaxgroupId"},:{"nameformat":{"int64","description":"ФИОКод налоговой продавцагруппы","type":"stringinteger"},"iddescr":{"description":"код продавцаЗарезервировано под дальнейшее развитие","type":"string"}},"required":["id","name"]},"models.importer.ItemAttributeitemGroup":{"description":"аттрибутКод товара.узла Используетсяиерархии, дляк ограниченийкоторому продажипривязан итовар маркировки. Возможные значения alcohol(символ 0, tobacco,если egais,товар markedTobacco,не markedGoods,привязан advance, noSellerRequired, service","properties":{"id":{"type":"string","maxLength":40}},"required":["id"]},"ru.servplus.pos.common.models.receipt.common.BarcodeProperty":{"properties":{"id":{к узлам)","type":"string"},"namemaxLength":{"type":"string"40},"valuesmeasure":{"typedescription":"arrayНазвание единицы измерения (печатается в чеке)","itemstype":{"$refstring":"#/definitions/ru.servplus.pos.common.models.receipt.common.BarcodePropertyValue"}},"showToCashier,"maxLength":40},"name":{"typedescription":"boolean"},"printOnReceipt":{"Название товара (печатается в чеке)","type":"booleanstring"}},"requiredmaxLength":["id"255},"namesubExcise",:{"valuestype",:"showToCashierboolean","printOnReceipt"]},"ru.servplus.pos.common.models.receipt.common.AwardCouponattributes":{"description":"Перечень атрибутов купонов, выданных в чеке в рамках системы лояльноститовара","type":"array","propertiesitems":{"expiryDate$ref":{"format":"date-time","#/definitions/models.importer.ItemAttribute"}},"id":{"description":"датаУникальный окончаниякод действия купонатовара","type":"string","examplemaxLength":"2018-06-22T08:00:19"40},"numberbarcodes":{"description":"НомерСписок выданного купона (если он был у купона)штрихкодов товара","type":"stringarray"},"amountitems":{"description$ref":"Номинал купона","$ref":"#/definitions/Money#/definitions/models.importer.Barcode"}},"delete":{"type":"boolean"},"effectDatemeasprec":{"format":"date-timeint32","description":"дата начала действия купонаТочность ед.измерения. Количество знаков после запятой. (0 - штучный товар, 3 - весовой товар)","type":"stringinteger"}},"examplerequired":"2018-06-22T08:00:19"},"comment":{"type":"string"}},"required":["number","comment["id","name","descr","measure","measprec","itemGroup","barcodes","attributes","delete"]},"ru.servplus.pos.common.models.receiptimporter.common.ReceiptIdGroupItem":{"description":"Товарная иерархия","properties":{"posIdowner":{"formatdescription":"int64Код родительского узла (если отсутствует, то символ 0)","type":"integer"string","maxLength":40},"shiftIdname":{"formatdescription":"int64Название узла иерархии","type":"string","integermaxLength":80},"idattributes":{"formattype":"int64array","type"items":{"$ref":"integer"#/definitions/models.importer.GroupAttribute"}},"storeIdid":{"formatdescription":"int64Код узла иерархии","descriptiontype":"ИД магазинаstring","maxLength":40},"delete":{"type":"stringboolean"}},"required":["storeId"id","owner","name","posIdattributes","iddelete"]},"models.importer.SellerList":{"properties":{"elements":{"type":"array","items":{"$ref":"#/definitions/models.importer.Seller"}}},"required":["elements"]ru.servplus.pos.common.models.receipt.common.PaymentType":{"description":"cash-наличные, card-банк.карта, certificate-подар.сертификат/карта, PayCard-платежная карта (не банковская), other-другие средства оплаты","properties":{}},"models.importerexporter.ItemListExportableReturnReason":{"properties":{"elementscode":{"type":"arraystring"},"itemsname":{"$reftype":"#/definitions/models.importer.Itemstring"}}},"requiredid":["elements"]},"models.importer.Item":{"descriptionformat":"Описание товараint64","propertiestype":{"taxgroupId":{"formatinteger"}},"required":["int64id","description":"Код налоговой группыcode","type":"integer"name"]},"descrmodels.importer.Picklist":{"description":"ЗарезервированоПроизвольный под дальнейшее развитие","type":"string"},"itemGroupперечень товаров","properties":{"stores":{"description":"КодДействует узлатолько иерархии,в куказанных которому привязан товар (символ 0, магазинах если товарон не привязан к узлам)isGlobal","type":"stringarray","items":{"maxLength$ref":40"#/definitions/models.importer.PicklistStore"}},"measurename":{"description":"Название единицы измерения (печатается в чеке)перечня товаров","type":"string","maxLength":40100},"nameisGlobal":{"description":"Название товара (печатаетсяtrue - Перечень действует во всех магазинах, false - только в чеке)","type":"string","maxLength":255},"subExcise":{магазинах, перечисленных в списке ниже","type":"boolean"},"attributesid":{"descriptionexclusiveMaximum":"Перечень атрибутов товара"true,"typeformat":"arrayint64","items":{"$ref":"#/definitions/models.importer.ItemAttribute"}},"id":{"description":"Уникальный идентификатор кодперечня товаратоваров","typemaximum":100000000000,"stringtype",:"maxLengthinteger":40},"barcodesitems":{"description":"Список штрихкодов товараТовары, входящие в Перечень","type":"array","items":{"$reftype":"#/definitions/models.importer.Barcodestring"}},"delete":{"type":"boolean"}},"measprecrequired":{"format":"int32",["id","name","isGlobal","stores","items","delete"]},"ru.servplus.pos.common.models.receipt.sale.AddItemSource":{"description":"Точность ед.измерения. Количество знаков после запятой. (0 - штучный товар, 3 - весовой товар)","type":"integer"}},"required":["id","name","descr","measure","measprec","itemGroup","barcodes","attributes","delete"]},"models.importer.GroupItem":{"description":"Товарная иерархия","properties":{"owner":{"description":"Код родительского узла (если отсутствует, то символ 0)как позиция была добавлена в чек hand-введена вручную, scanner-введена сканером, hotkey-введена по гор.клавише, picklist-выбрана из пиклиста","properties":{}},"models.exporter.Shift":{"description":"Информация о смене","properties":{"posId":{"format":"int64","description":"ИД кассы","type":"integer"},"number":{"format":"int64","description":"Номер смены по ККТ","type":"stringinteger"},"maxLengthdateOpen":40},{"nameformat":{"date-time","description":"НазваниеДата-время узлаоткрытия иерархиисмены","type":"string","example"maxLength":80:"2018-06-22T08:00:19"},"attributesuserIdOpen":{"typeformat":"arrayint64","itemsdescription":{"$ref"ИД кассира, открывшего смену","type":"#/definitions/models.importer.GroupAttributeinteger"}},"iduserIdClose":{"format":"int64","description":"Код узла иерархииИД кассира, закрывшего смену","type":"string","maxLength":40integer"},"deletedateClose":{"typeformat":"booleandate-time"}},"requireddescription":["id"Дата-время закрытия смены","ownertype",:"namestring","attributesexample","delete"]},"ru.servplus.pos.common.models.receipt.common.PaymentType":{:"2018-06-22T08:00:19"},"id":{"format":"int64","description":"cash-наличные, card-банк.карта, certificate-подар.сертификат/карта, PayCard-платежная карта (не банковская), other-другие средства оплаты","properties":{}},"models.exporter.ExportableReturnReason":{"properties":{"code":{Уникальный (в рамках кассы) идентификатор смены","type":"integer"},"storeId":{"description":"ИД магазина","type":"string"},"nameuserNameOpen":{"description":"ФИО кассира, открывшего смену","type":"string"},"iduserNameClose":{"formatdescription":"int64ФИО кассира, закрывшего смену","type":"integerstring"}},"required":["posId","storeId","id","codenumber","userIdOpen","userNameOpen","namedateOpen"]},"models.importer.PicklistLegalEntityItemVendor":{"description":"Произвольный перечень товаровпоставщик товара. для режима комиссионной торговли","properties":{"storesitemId":{"description":"Действует только в указанных магазинах если он не isGlobalкод товара","type":"string","arraymaxLength":40},"itemsdeleted":{"$reftype":"#/definitions/models.importer.PicklistStoreboolean"}},"namestores":{"description":"Названиепривязка перечняк товаровмагазинам","type":"stringarray","maxLength":100items":{"$ref":"#/definitions/models.importer.LegalEntityStore"}},"isGlobal":{"description":"true - Перечень действует во всех магазинах,. Если false, -то только в магазинах, перечисленных в списке нижеиз списка","type":"boolean"}},"idrequired":{["exclusiveMaximumitemId":true,"format":"int64stores","description":"Уникальный идентификатор перечня товаров","maximum":100000000000,"type":"integer"},"items":{"description":"Товары, входящие в Перечень","type":"array","itemsisGlobal","deleted"]},"ru.servplus.pos.common.models.receipt.sale.KIZ":{"properties":{"code":{"type":"string"}},"deletekktKIZ":{"type$ref":"boolean"}#/definitions/ru.servplus.pos.common.models.receipt.sale.KKTKIZ"},"requiredweight":[{"idtype",:"namenumber","isGlobalformat",:"storesdouble"}},"itemsrequired",:["deletecode"]},"ru.servplus.pos.common.models.receipt.salecommon.AddItemSourceAlternativePrice":{"description":"как позиция была добавлена в чек hand-введена вручную, scanner-введена сканером, hotkey-введена по гор.клавише, picklist-выбрана из пиклиста","properties":{}},"models.exporter.Shift":{"description":"Информация о сменецена, выбранная из доп.прайс-листа (цены на табак)","properties":{"posId":{"format":"int64",price":{"description":"ИД кассыЦена из альтернативного прайс-листа","type$ref":"integer#/definitions/Money"},"numberminPrice":{"format":"int64","description":"Номермин.цена сменыиз поальтернативного ККТпрайс-листа","type$ref":"integer#/definitions/Money"},"dateOpendescription":{"formattype":"date-timestring"}},"descriptionrequired":"Дата-время открытия смены["price","typeminPrice":"string","example":"2018-06-22T08:00:19"},"userIdOpen":{"format":"int64","description"]},"ru.servplus.pos.common.models.receipt.common.LegalEntity":{"description":"ИД кассира, открывшего сменуюр. лицо","typeproperties":{"integeragentType"},"userIdClose":{"formatdescription":"int64тип агента","description$ref":"ИД кассира, закрывшего смену","#/definitions/ru.servplus.pos.common.models.receipt.common.AgentType"},"phoneNumber":{"type":"integerstring"},"dateCloseaddress":{"formattype":"date-timestring"},"descriptionpaymentAgentPhoneNumber":"Дата-время закрытия смены","{"type":"string"},"exampleinn":"2018-06-22T08:00:19"},"id":{"format":"int64",{"description":"ИНН","type":"string"},"name":{"description":"Уникальный (в рамках кассы) идентификатор сменыназвание","type":"integerstring"},"storeIdpayVat":{"description":"ИДплательщик магазинаНДС","type":"stringboolean"}},"userNameOpenrequired":{["descriptioninn":"ФИО кассира, открывшего смену,"name","typepayVat":,"stringagentType"]},"userNameClosemodels.importer.UserList":{"description":"ФИОСписок кассира,пользователей закрывшегокассы смену(кассиров)","typeproperties":{"string"}},"requiredelements":{"type":["posIdarray","storeIditems",:{"id$ref","number","userIdOpen","userNameOpen","dateOpen:"#/definitions/models.importer.User"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.importercommon.LegalEntityItemVendorProperty":{"description":"поставщик товара. для режима комиссионной торговлидополнительные свойства в виде \"код-название\". Используется для привязки доп. параметров к чекам, позициям чека и т.д.","properties":{"itemIdshowToCashier":{"description":"код товаразарезервировано под дальнейшее развитие","type":"stringboolean"},"maxLengthname":40},{"deleteddescription":{"название свойства","type":"booleanstring"},"storesprintOnReceipt":{"description":"привязказарезервировано под кдальнейшее магазинамразвитие","type":"arrayboolean"},"itemsid":{"$refdescription":"ID свойства","type":"#/definitions/models.importer.LegalEntityStorestring"}},"isGlobalvalue":{"description":"действует во всех магазинах. Если false, то только из списказначение свойства","type$ref":"boolean#/definitions/ru.servplus.pos.common.models.receipt.common.PropertyValue"}},"required":["itemIdid","storesname","isGlobalshowToCashier","deletedprintOnReceipt"]},"ru.servplus.pos.common.models.receipt.sale.KIZCheckResult":{"properties":{"code":{"type":"stringinteger"},"kktKIZformat":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.KKTKIZ"int32"},"weightstatus":{"type":"numberinteger","format":"doubleint32"}},"required":["code","status"]},"ru.servplus.pos.common.models.receiptimporter.common.AlternativePriceTaxList":{"description":"цена, выбранная из доп.прайс-листа (цены на табак)","properties":{"priceelements":{"descriptiontype":"Цена из альтернативного прайс-листаarray","$refitems":"#/definitions/Money"},"minPrice":{"description":"мин.цена из альтернативного прайс-листа","$ref":"#/definitions/Moneymodels.importer.Tax"},"description":{"type":"string"}},"required":["price","minPrice","description"elements"]},"ru.servplus.pos.common.models.receiptdocuments.commonmoneyoperation.LegalEntityMoneyOperationType":{"description":"юр. лицоdeposition - внесение в ден.ящик, withdrawal - изъятие из ден.ящика","properties":{"agentType}},"models.exporter.Receipt.ReceiptAdditionalParams":{"descriptionproperties":{"тип агента",client":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.commonsale.AgentTypeClient"},"phoneNumberdiscountCards":{"type":"stringarray"},"addressitems":{"type":"string"}},"paymentAgentPhoneNumbercouponsCodes":{"type":"stringarray"},"innitems":{"description":"ИНН","type":"string"}},"nameegaisReceiptData":{"description$ref":"название","type":"string"#/definitions/ru.servplus.pos.common.models.receipt.sale.EGAISReceiptData"},"payVatmarketingResults":{"descriptiontype":"плательщик НДСarray","typeitems":"boolean"}},"required{"$ref":["inn","name","payVat","agentType"]},"models.importer.UserList":{"description":"Список пользователей кассы (кассиров)","properties":{"elements"#/definitions/models.exporter.misc.MarketingResult"}},"customerContactInfo":{"type":"arraystring"},"itemssupervisor":{"$ref":"#/definitions/models.importerru.servplus.pos.common.models.User"}}},"requiredproperties":{"type":["elementsarray"]},","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.Property"}},"originalReceiptNumbers":{"description$ref":"дополнительные свойства в виде \"код-название\". Используется для привязки доп. параметров к чекам, позициям чека и т.д.","properties#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptNumber"},"originalReceiptId":{"showToCashier$ref":{"description":"зарезервировано под дальнейшее развитие","type":"boolean"},"name"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptId"},"returnReason":{"description$ref":"название свойства","type":"string"},"printOnReceipt#/definitions/models.exporter.ExportableReturnReason"}},"required":["marketingResults"]},"models.importer.Seller":{"description":"зарезервированоПродавец под дальнейшее развитие(личные продажи)","typeproperties":{"booleancards"},"id":{"description":"IDПеречень карт свойствапродавца","type":"stringarray"},"valueitems":{"description":"значение свойства","$ref":"#/definitions/ru.servplus.pos.common.models.receiptimporter.common.PropertyValueSellerCard"}},"requiredname":{"description":["id"Имя (ФИО) продавца","nametype",:"showToCashierstring","printOnReceiptmaxLength"]:50},"ru.servplus.pos.common.models.receipt.sale.CheckResultdismissed":{"propertiesformat":{"code":{"type":"integer",""date-time","description":"Дата увольнения","type":"string","example":"2018-06-22T08:00:19"},"hired":{"format":"int32date-time"},"statusdescription":{"Дата начала работы","type":"integerstring","formatexample":"int322018-06-22T08:00:19"}},"requiredid":[{"codedescription","status"]},"models.importer.TaxList":{"properties":{"elements:"Код (идентификатор) продавца","type":"string","maxLength":50},"delete":{"type":"arrayboolean"}},"itemsrequired":{["$refid":"#/definitions/models.importer.Tax"}}},"required":["elements,"name","cards","delete"]},"rumodels.servplus.common.documents.moneyoperation.MoneyOperationTypeimporter.UserCard":{"description":"deposition - внесение в ден.ящик, withdrawal - изъятие из ден.ящикаКарта кассира","properties":{}},"models.exporter.Receipt.ReceiptAdditionalParams"number":{"propertiesdescription":{"client"Код, записанный на карте","type":{"$refstring":"#/definitions/ru.servplus.pos.common.models.receipt.sale.Client","maxLength":40},"discountCardsdateTill":{"typeformat":"arraydate-time","itemsdescription":{"Дата окончания действия карты","type":"string"}},"couponsCodesexample":{"type":"array","items"2018-06-22T08:00:19"},"active":{"typedescription":"string"}}Признак активности карты","egaisReceiptDatatype":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.EGAISReceiptData"boolean"},"marketingResultsdateFrom":{"typeformat":"arraydate-time","itemsdescription":{"$ref"Дата начала действия карты","type":"#/definitions/models.exporter.misc.MarketingResult"}}string","customerContactInfoexample":{"type":"string""2018-06-22T08:00:19"}},"supervisorrequired":{["$refnumber":"#/definitions/ru.servplus.pos.common.models.User","active"]},"propertiesmodels.exporter.Banknote":{"typedescription":"array"Данные банкноты","itemsproperties":{"$refnumber":"#/definitions/ru.servplus.pos.common.models.receipt.common.Property"}},"originalReceiptNumbers":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptNumber{"description":"Номер банкноты","type":"string"},"originalReceiptIdnominal":{"$refformat":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptId"},"returnReason":{"$ref":"#/definitions/models.exporter.ExportableReturnReasonint32","description":"Номинал банкноты","type":"integer"}},"required":["marketingResultsnominal","number"]},"models.importer.SellerAlternativeItemPriceList":{"description":"Продавец (личные продажи)","properties":{"cardselements":{"description":"Перечень карт продавца","type":"array","items":{"$ref":"#/definitions/models.importer.SellerCardAlternativeItemPrice"}}},"namerequired":["elements"]},"ru.servplus.pos.common.models.receipt.common.ItemPropertyValue":{"descriptionproperties":"Имя (ФИО) продавца",{"name":{"type":"string","maxLength":50},"dismissedid":{"formattype":"date-timestring"}},"descriptionrequired":["Дата увольненияid","type":"string","example":"2018-06-22T08:00:19"},"hiredname"]},"models.importer.TaxGroupList":{"properties":{"elements":{"formattype":"date-timearray","descriptionitems":"Дата начала работы","type{"$ref":"string"#/definitions/models.importer.TaxGroup"}}},"examplerequired":"2018-06-22T08:00:19"["elements"]},"idmodels.exporter.Receipt":{"description":"Код (идентификатор) продавцачек","typeproperties":"string","maxLength":50},"delete{"posNumber":{"typeformat":"booleanint64"}},"requireddescription":["idномер кассы","nametype","cards","delete"]:"integer"},"models.importer.UserCardshiftId":{"format":"int64","description":"Карта кассираИД смены (сквозной номер смены в базе кассы)","propertiestype":{"number"integer"},"posName":{"description":"Код, записанный на картеназвание кассы","type":"string","maxLength":40},"dateTillreceiptType":{"formattype":"date-timestring","description$ref":"Дата окончания действия карты#/definitions/ru.servplus.common.documents.rawreceipt.RawReceiptType","typeenum":["stringSale","exampleRefundOnReceipt":"2018-06-22T08:00:19","RefundWOReceipt"]},"activesaleReceiptNum":{"descriptiontype":"Признак активности картыinteger","typeformat":"booleanint64"},"dateFromshiftNumber":{"format":"date-timeint64","description":"Датаномер началасмены действияв картыККТ","type":"string","example":"2018-06-22T08:00:19"}},"required":["number","active"]},"models.exporter.Banknoteinteger"},"additional":{"description$ref":"Данные банкноты","properties":{"number"#/definitions/models.exporter.Receipt.ReceiptAdditionalParams"},"removedItems":{"description":"Номермассив удаленных банкнотыпозиций","type":"stringarray"},"nominalitems":{"format$ref":"int32",#/definitions/models.exporter.ReceiptItem"}},"payments":{"description":"Номиналоплаты по банкнотычеку","type":"integerarray"}},"requireditems":[{"nominal$ref","number"]:"#/definitions/models.exporter.Payment"}},"models.importer.AlternativeItemPriceListcashOutSum":{"propertiestype":{"elementsnumber":{,"typeformat":"arraydouble"},"itemsdates":{"$ref":"#/definitions/models.exporter.importerReceipt.AlternativeItemPriceReceiptDates"}}},"required":["elements"]},","storeId":{"description":"ИД магазина","type":"string"},"result":{"type":"string","$ref":"#/definitions/ru.servplus.pos.common.modelsdocuments.receipt.common.ItemPropertyValue":{"properties":{"name":{"type":"string"},"idrawreceipt.RawReceiptResult","enum":["Completed","Canceled"]},"posId":{"typeformat":"stringint64"}},"requireddescription":["idИД кассы","nametype":"integer"]},"models.importer.TaxGroupListnumber":{"propertiesformat":{"elements":{"int64","description":"номер чека","type":"arrayinteger"},"itemsfnNumber":{"$refdescription":"#/definitions/models.importer.TaxGroup"}}},"required":["elements"]},"models.exporter.Receipt":{Номер ФН","type":"string"},"fiscalDocumentNumber":{"format":"int64","description":"чекФискальный номер документа","propertiestype":{"posNumber"integer"},"cashierId":{"format":"int64","description":"номерИД кассыкассира","type":"integer"},"shiftIdglobalDocNumber":{"format":"int64","description":"ИД смены (сквозной номер сменыдокумента в базе кассы)","type":"integer"},"posNameid":{"format":"int64","description":"названиевнутренний ИД кассычека","type":"string"":"integer"},"calculated":{"$ref":"#/definitions/models.exporter.Receipt.ReceiptCalculatedParams"},"receiptTypeitems":{"type":"stringarray","items":{"$ref":"#/definitions/rumodels.servplus.common.documents.rawreceipt.RawReceiptType","enum":["Sale","RefundOnReceipt","RefundWOReceipt"]},"saleReceiptNum":{"type":"integer","format":"int64"},"shiftNumber":{"format":"int64","description":"номер смены в ККТ","type":"integer"},"additional":{"$ref":"#/definitions/models.exporter.Receipt.ReceiptAdditionalParams"},"removedItems":{"description":"массив удаленных позиций","type":"array","items":{"$ref":"#/definitions/models.exporter.ReceiptItem"}},"paymentsexporter.ReceiptItem"}},"cashierName":{"description":"ФИО кассира","type":"string"}},"required":["id","posId","storeId","shiftId","shiftNumber","number","receiptType","result","cashierId","cashierName","posName","posNumber","dates","additional","calculated","items","removedItems","payments","globalDocNumber"]},"Money":{"description":"Денежные значения","properties":{"amount":{"description":"оплаты по чекуСумма данная покупателем (для наличных)","type":"arraynumber","itemsformat":{"$ref":"#/definitions/models.exporter.Payment"}double"},"cashOutSumcode":{"typedescription":"numberКод валюты","formattype":"string","doublemaxLength":10}},"datesrequired":{"$ref":"#/definitions/["amount","code"]},"models.exporter.Receipt.ReceiptDates"},"storeIdShiftWithReceiptsList":{"properties":{"descriptionelements":{"ИД магазина","type":"stringarray"},"resultitems":{"type":"string","$ref":"#/definitions/rumodels.servplus.common.documents.rawreceipt.RawReceiptResult","enumexporter.ShiftWithReceipts"}}},"required":["Completedelements","Canceled"]},"posIdmodels.exporter.MoneyOperation":{"format":"int64","description":"ИД кассыОперации с денежным ящиком","typeproperties":{"integerreasonName"},"number":{"format":"int64","description":"номер чека","type":"integerstring"},"cashierIdshiftId":{"format":"int64","description":"ИД кассирасмены","type":"integer"},"globalDocNumberamount":{"format":"int64double","description":"сквозной номер документа в базе кассысумма операции","type":"integernumber"},"idshiftNumber":{"format":"int64","description":"внутренний ИД чеканомер смены (по ККТ)","type":"integer"},"calculatedopType":{"type":"string","$ref":"#/definitions/models.exporter.Receipt.ReceiptCalculatedParams"},"items":{"type":"array","items":{"$ref":"#/definitions/models.exporter.ReceiptItem"}},"cashierNameru.servplus.common.documents.moneyoperation.MoneyOperationType","enum":["Deposition","Withdrawal","UnknownMoneyOperationType"]},"storeId":{"description":"ФИОИД кассирамагазина","type":"string"}},"requireduserName":[{"iddescription",:"posIdФИО кассира","storeIdtype",:"shiftIdstring"},"shiftNumberuserId",:{"numberformat",:"receiptTypeint64","resultdescription","cashierId","cashierName","posName","posNumber","dates","additional","calculated","items","removedItems","payments","globalDocNumber"]},"Money":{:"ИД кассира, выполявшего операцию","type":"integer"},"localNumber":{"format":"int64","description":"номер документа в смене","type":"integer"},"posId":{"format":"int64","description":"ДенежныеИД значениякассы","propertiestype":{"amount"integer"},"reasonId":{"descriptionformat":"Сумма данная покупателем (для наличных)int64","type":"numberinteger"},"amountBefore":{"format":"double"},"code":{"description":"Код валютысумма в денежном ящике до выполнения этой операции","type":"stringnumber"},"maxLengthid":10}},"required{"format":["amountint64","code"]},"models.exporter.ShiftWithReceiptsList":{"properties":{"elements"description":"ИД операции","type":"integer"},"opDate":{"typeformat":"arraydate-time","itemsdescription":{"$ref":"#/definitions/models.exporter.ShiftWithReceipts"}}},"required":["elements"]},"models.exporter.MoneyOperation":{"description":"Операции с денежным ящиком","properties":{"reasonName":{""дата-время операции","type":"string","example":"2018-06-22T08:00:19"},"reasonCode":{"type":"string"},"shiftIdglobalNumber":{"format":"int64","description":"ИД сменысквозной номер документа по кассе","type":"integer"},"amountcurrencyId":{"format":"doubleint32","description":"суммаИД операциивалюты","type":"numberinteger"}},"shiftNumberrequired":{["formatid":,"int64posId","descriptionstoreId":"номер смены (по ККТ),"globalNumber","typelocalNumber":,"integeruserId"},"opTypeuserName":{,"typeshiftId":,"stringshiftNumber","$refopDate":"#/definitions/ru.servplus.common.documents.moneyoperation.MoneyOperationType,"opType","enum":["Depositionamount","WithdrawalamountBefore","UnknownMoneyOperationTypecurrencyId"]},"storeIdmodels.importer.PicklistList":{"descriptionproperties":{"ИД магазина",elements":{"type":"stringarray"},"userNameitems":{"description$ref":"ФИО кассира","type":"string"},"userId#/definitions/models.importer.Picklist"}}},"required":["elements"]},"models.exporter.ShiftPayment":{"formatdescription":"int64","description":"ИД кассира, выполявшего операцию","type":"integer"},"localNumber"Суммы продаж и возвратов за смену в разрезе средств оплаты по данным кассы и ККТ","properties":{"posId":{"format":"int64","description":"номер документа в сменеИД кассы","type":"integer"},"posIdshiftId":{"format":"int64","description":"ИДУникальный (в рамках кассы) идентификатор смены","type":"integer"},"reasonIdexpensePOS":{"formattype":"int64number","typeformat":"integerdouble"},"amountBeforesaleKKM":{"format":"double","description":"сумма в денежном ящике до выполнения этой операцииСумма продаж за смену по данным ККТ  данным средством оплаты","type":"number"},"idpaymentId":{"format":"int64","description":"ИДИдентификатор средства операцииоплаты","type":"integer"},"opDatereturnPOS":{"format":"date-timedouble","description":"дата-время операции","type":"string","example":"2018-06-22T08:00:19"},"reasonCode":{"type":"string"},"globalNumber":{"format":"int64","description":"сквозной номер документа по кассеСумма возвратов за смену по данным кассы  данным средством оплаты","type":"integernumber"},"currencyIdisMoney":{"formatdescription":"int32","description":"ИД валютыtrue - наличные, для остальных - false","type":"integerboolean"}},"requiredexpenseKKM":[{"idtype",:"posIdnumber","storeIdformat",:"globalNumberdouble"},"localNumberstoreId",:{"userIddescription",:"userNameИД магазина","shiftIdtype",:"shiftNumberstring"},"opDatepaymentName",:{"opTypedescription","amount:"Название средства оплаты","amountBeforetype",:"currencyIdstring"]},"models.importer.PicklistListsalePOS":{"propertiesformat":{"elementsdouble":{,"typedescription":"arrayСумма продаж за смену по данным кассы данным средством оплаты","itemstype":{"$ref":"#/definitions/models.importer.Picklist"}}},"required":["elements"]},"models.exporter.ShiftPayment":{number"},"returnKKM":{"format":"double","description":"Суммы продаж иСумма возвратов за смену впо разрезеданным средствККТ оплаты по данным кассысредством и ККТоплаты","propertiestype":{"posId":{"formatnumber"}},"required":["int64posId","descriptionstoreId":,"ИД кассыshiftId","typepaymentId":,"integerpaymentName"},"shiftIdisMoney":{,"formatsalePOS":,"int64returnPOS"]},"models.importer.ItemPropertyValue":{"description":"Уникальныйзначение дополнительного рамках кассы) идентификатор сменысвойства товаров","typeproperties":{"integer"},"expensePOS"name":{"typedescription":"numberназвание значения","formattype":"doublestring"},"saleKKMid":{"formatdescription":"doubleидентификатор значения","descriptiontype":"Сумма продаж за смену по данным ККТ  данным средством оплаты","type":"number"},"paymentIdstring"}},"required":["id","name"]},"models.exporter.ShiftWOReceiptsList":{"properties":{"elements":{"formattype":"int64array","descriptionitems":{"$ref":"Идентификатор средства оплаты","type":"integer"},"returnPOS#/definitions/models.exporter.ShiftWOReceipts"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.common.ProductInfo":{"formatdescription":"doubleОписание товара","descriptionproperties":"Сумма возвратов за смену по данным кассы  данным средством оплаты","type":"number{"contractor":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.LegalEntity"},"isMoneyitemGroup":{"description":"trueкод ближайшего -узла наличныеиерархии, дляв остальныхкоторый -входит falseтовар","type":"booleanstring"},"expenseKKMscu":{"typedescription":"numberкод товара","formattype":"doublestring"},"storeIdbarcodeProperties":{"description":"ИД магазина","type":"stringarray"},"paymentNameitems":{"description$ref":"Название средства оплаты","type":"string"},"salePOS#/definitions/ru.servplus.pos.common.models.receipt.common.BarcodeProperty"}},"description":{"format":"double","description":"Суммазарезервировано продажпод за смену по данным кассы данным средством оплатыдальнейшее развитие","type":"numberstring"},"returnKKMalternativePrices":{"formatdescription":"double","description":"Сумма возвратов за смену по данным ККТ  данным средством оплатыперечень альтернативных цен, которые были назначены товару в момент его добавления в чек","type":"numberarray"}},"requireditems":[{"posId$ref","storeId","shiftId","paymentId","paymentName","isMoney","salePOS","returnPOS"]},"models.importer.ItemPropertyValue:"#/definitions/ru.servplus.pos.common.models.receipt.common.AlternativePrice"}},"paymentAgent":{"description$ref":"значение дополнительного свойства товаров","properties":{"name#/definitions/ru.servplus.pos.common.models.receipt.common.LegalEntity"},"additionalItemPrices":{"description":"названиеДополнительные значенияпрайс-листы","type":"stringarray"},"iditems":{"description$ref":"идентификатор значения","type":"string#/definitions/ru.servplus.pos.common.models.receipt.common.AdditionalItemPrice"}},"requiredmeasure":[{"iddescription","name"]},"models.exporter.ShiftWOReceiptsList":{"properties":{"elements:"название единицы измерения","type":"string"},"coupons":{"type":"array","items":{"$ref":"#/definitions/models.exporter.ShiftWOReceipts"}}},"required":["elements"]},"ru.servplus.pos.common.models.receipt.commonsale.ProductInfo":{"description":"Описание товара","properties":{"contractorCoupon"}},"vendor":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.LegalEntity"},"itemGroup":{"description":"код ближайшего узла иерархии, в который входит товар","type":"string"},"scuname":{"description":"кодназвание товара","type":"string"},"barcodePropertiesattributes":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.BarcodeProperty"}},"description":{ProductAttribute"}},"barcodeQuantity":{"description":"количество товара, указанное в штрихкоде","$ref":"#/definitions/ru.servplus.pos.common.models.Quantity"},"measurePrec":{"format":"int32","description":"0-штучный товар, 3-весовой","type":"integer"},"taxGroup":{"format":"int64","description":"зарезервированоИД налоговой подгруппы дальнейшееназначенной развитиетовару","type":"stringinteger"},"alternativePricesbarcode":{"description":"перечень альтернативных цен, которые были назначены товару в момент его добавленияштрихкод товара, если он был введен по штрихкоду (пусто, если товар был введен в чек другим способом)","type":"arraystring"},"itemsproperties":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.AlternativePrice"}},"paymentAgenttype":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.LegalEntityItemProperty"}}},"measurerequired":{["scu","name","description":"название единицы измерения,"measurePrec","typemeasure":,"stringitemGroup"},"vendorattributes":{,"$refalternativePrices":"#/definitions/ru.servplus.pos.common.models.receipt.common.LegalEntity"},"name"]},"models.exporter.Receipt.ReceiptCalculatedParams":{"description":"название товараСумма чека, налоги и скидки","typeproperties":"string"},"attributes{"amount":{"typedescription":"arrayСумма чека ДО применения скидок","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ProductAttribute"}Money"},"barcodeQuantitydiscounts":{"description":"количество товараСкидки, указанноепримененные в штрихкоде этом чеке","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.Quantityreceipt.common.DiscountInfo"}},"measurePrec":{"formattotalDiscountAmount":"int32",{"description":"0-штучный товар, 3-весовой","type":"integerОбщая сумма рассчитанных в чеке скидок (таким образом, для вычисления суммы чека с учетом скидок, необходимо из amount вычесть  totalDiscountAmount)","$ref":"#/definitions/Money"},"taxGroupreceiptCurrencyCode":{"format":"int64","description":"ИДНазвание налоговой группы назначенной товарувалюты (Рубль)","type":"integerstring"},"barcodetaxes":{"description":"штрихкод товараНалоги, если он был введен по штрихкоду (пусто, если товар был введен в чек другим способом)","type":"string"},"properties":{рассчитанные кассой (могут отличаться от налогов в ККТ)","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ItemPropertyReceiptTax"}},"itemsCount":{"format":"int32","description":"Количество позиций в чеке","type":"integer"}}},"required":["scureceiptCurrencyCode","nameamount","descriptionitemsCount","measurePrecdiscounts","measure","itemGroup","attributes","alternativePrices"taxes"]},"models.exporterimporter.Receipt.ReceiptCalculatedParamsBarcodePrice":{"description":"Сумма чека, налоги и скидкиЦены для штрихкодов (цена для единицы товара, а не для всего количества, указанного в штрихкоде)","properties":{"amountisPromoPrice":{"description":"Сумма чека ДО применения скидокПризнак, что данная цена акционная (промо)","$reftype":"#/definitions/Moneyboolean"},"discountsminprice":{"format":"double","description":"Скидки, примененные в этом чекеМинимальная цена","type":"arraynumber"},"itemsprice":{"$refformat":"#/definitions/ru.servplus.pos.common.models.receipt.common.DiscountInfo"}},"totalDiscountAmount":{double","description":"ОбщаяЦена суммаза рассчитанных в чеке скидок (таким образом, для вычисления суммы чека с учетом скидок, необходимо из amount вычесть  totalDiscountAmountединицу (за 1 шт. или за 1 кг)","$reftype":"#/definitions/Moneynumber"},"receiptCurrencyCodedateTo":{"format":"date-time","description":"НазваниеДата окончания валютыдействия (Рубль)цены","type":"string","example":"2018-06-22T08:00:19"},"taxesstoreId":{"description":"Налоги, рассчитанные кассой (могут отличаться от налогов в ККТ)Код магазина (во внешней системе). Поле не используется","type":"string","maxLength":20},"dateFrom":{"format":"date-time","description":"Дата начала действия цены","type":"array","items"string","example":"2018-06-22T08:00:19"},"delete":{"$reftype":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptTax"}boolean"},"itemsCountbarcodeId":{"formatdescription":"int32Штрихкод","descriptiontype":"Количество позиций в чекеstring","typemaxLength":"integer"40}},"required":["storeId","receiptCurrencyCodebarcodeId","amountprice","itemsCountminprice","discountsisPromoPrice","taxesdelete"]},"models.importer.BarcodePriceLegalEntityItemPaymentAgent":{"description":"ЦеныПривязка дляплатежного штрихкодовагента (цена для единицы товара, а не для всего количества, указанного в штрихкоде)к товару-услуге","properties":{"isPromoPriceitemId":{"description":"Признак, что данная цена акционная (промо)","type":"boolean"},"minprice":{"format":"double","description":"Минимальная цена","type":"number"},"price":{"format":"double","description":"Цена за единицу (за 1 шт. или за 1 кг)код товара","type":"string"number,"maxLength":40},"dateTodeleted":{"formattype":"date-timeboolean"},"stores":{"description":"Датапривязка окончанияк действия ценымагазинам","type":"stringarray","exampleitems":"2018-06-22T08:00:19"},"storeId{"$ref":"#/definitions/models.importer.LegalEntityStore"}},"isGlobal":{"description":"Коддействует магазина (во внешнейвсех системе)магазинах. Поле не используетсяЕсли false, то только из списка","type":"stringboolean"}},"maxLengthrequired":20}["itemId","dateFromstores":{,"formatisGlobal":,"date-timedeleted"]},"ru.servplus.pos.common.models.receipt.common.PropertyValue":{"description":"ДатаЗначение началадополнительного действия ценысвойства","typeproperties":{"stringname",:{"exampledescription":"2018-06-22T08:00:19"},"delete":{"название значения","type":"booleanstring"},"barcodeIdid":{"description":"ШтрихкодID значения","type":"string","maxLength":40}},"required":["storeIdid","barcodeId","price","minprice","isPromoPrice","delete"name"]},"models.importerexporter.LegalEntityItemPaymentAgentShiftKKMInfo":{"description":"Привязка платежного агента к товару-услугеИнформация о параметрах ККТ и количестве чеков за смену по данным ККТ","properties":{"itemIdreceiptsExpense":{"descriptiontype":"код товараinteger","typeformat":"stringint32"},"maxLengthshiftId":{"format":40}"int64","deleteddescription":{"Уникальный (в рамках кассы) идентификатор смены","type":"booleaninteger"},"storesserialNumber":{"description":"привязкаЗаводской кномер магазинамФН","type":"arraystring"},"itemsshiftNumber":{"$refformat":"#/definitions/models.importer.LegalEntityStore"}},"isGlobal":{"int64","description":"действуетНомер восмены всехпо магазинах. Если false, то только из списка","type":"boolean"}},"required":["itemId","stores","isGlobal","deleted"]},"ru.servplus.pos.common.models.receipt.common.PropertyValueККТ (ФН)","type":"integer"},"withdrawal":{"format":"int32","description":"Количество изъятий из ден.ящика по данным ККТ","type":"integer"},"storeId":{"description":"ЗначениеИД дополнительного свойствамагазина","propertiestype":{"name"string"},"posId":{"descriptionformat":"название значенияint64","type":"stringinteger"},"idmodelName":{"description":"IDНазвание модели значенияККТ","type":"string"}},"requiredreceiptsReturn":[{"idformat",:"nameint32"]},"models.exporter.ShiftKKMInfo":{"description":"Информация о параметрах ККТ и количестве Количество чеков завозвратов смену по данным ККТ","propertiestype":{"receiptsExpense"integer"},"ownerNumber":{"typedescription":"integerИНН владельца ККТ","formattype":"int32string"},"shiftIdreceiptsCancel":{"format":"int64int32","description":"УникальныйКоличество чеков рамкахотмены кассы)по идентификаторданным сменыККТ","type":"integer"},"serialNumberregistrationNumber":{"description":"ЗаводскойРегистрационный номер ФНККТ","type":"string"},"shiftNumbercumulativeSale":{"format":"int64double","description":"Номер смены по ККТ (ФННакопительный итог суммы продаж (по данным ККТ)","type":"integernumber"},"withdrawalinsertion":{"format":"int32","description":"Количество изъятийвнесений изв ден.ящикаящик по данным ККТ","type":"integer"},"storeIdfirmwareVersion":{"description":"ИДВерсия магазинапрошивки","type":"string"},"posIdreceiptsSale":{"format":"int64int32","description":"Количество чеков продаж по данным ККТ","type":"integer"}},"required":["posId","storeId","shiftId","serialNumber","registrationNumber","ownerNumber","modelName"]},"models.importer.AdditionalItemPrice":{"properties":{"itemId":{"description":"НазваниеID модели ККТтовара","type":"string"},"receiptsReturnmaxLength":{40},"formatdeleted":{"int32","description":"Количество чеков возвратов по данным ККТПризнак удаления","type":"integerboolean"},"ownerNumberprice":{"format":"double","description":"ИННЦена товара владельцапо ККТпрайс-листу","type":"stringnumber"},"receiptsCanceldateTo":{"format":"int32date-time","description":"Количество чеков отмены по данным ККТДата окончания действия цены","type":"string","example":"integer2038-01-01T00:00:00"},"registrationNumberid":{"description":"РегистрационныйID номердополнительного ККТпрайс-листа","type":"string","maxLength":40},"cumulativeSaledateFrom":{"format":"doubledate-time","description":"НакопительныйДата итогначала суммы продаж (по данным ККТ)действия цены","type":"numberstring"},"insertionexample":{"format":"int32","description":"Количество внесений в ден.ящик по данным ККТ","type":"integer"},"firmwareVersion":{"description":"Версия прошивки","type":"string"},"receiptsSale":{"format":"int32","description":"Количество чеков продаж по данным ККТ","type":"integer"}},"required":["posId","storeId","shiftId","serialNumber","registrationNumber","ownerNumber","modelName"1970-01-01T00:00:00"}},"required":["id","itemId","price","dateFrom","dateTo","deleted"]},"ru.servplus.pos.common.models.receipt.common.AdditionalItemPrice":{"description":"Цена товара по прайс-листу","properties":{"price":{"format":"double","description":"Цена товара по прайс-листу","type":"number","$ref":"#/definitions/ru.servplus.pos.common.models.Money"}},"required":["price"]},"models.exporter.ReceiptItem":{"description":"описание позиции чека","properties":{"seller":{"description":"продавец","$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.ItemSeller"},"quantityByCashier":{"$ref":"#/definitions/ru.servplus.pos.common.models.Quantity"},"taxes":{"description":"вычисленные налоги","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ReceiptTax"}},"discountAmount":{"description":"сумма скидок","$ref":"#/definitions/Money"},"totalWithDiscounts":{"description":"стоимость позиции с учетом скидок","$ref":"#/definitions/Money"},"egaisMark":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.EGAISMark"},"productInfo":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.ProductInfo"},"totalAmount":{"description":"итоговая стоимость позиции без учета скидок","$ref":"#/definitions/Money"},"totalQuantity":{"description":"количество товаров в позиции","$ref":"#/definitions/ru.servplus.pos.common.models.Quantity"},"discounts":{"description":"скидки, примененные в чеке","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.DiscountInfo"}},"coupons":{"type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.Coupon"}},"price":{"description":"цена по прайс-листу (ДО применения скидок)","$ref":"#/definitions/Money"},"enableEditPos":{"description":"возможность изменять у позиции значение в поле \"количество\"","type":"boolean"},"couponsCodes":{"description":"купоны, примененные к данной позиции","type":"array","items":{"type":"string"}},"minPrice":{"description":"мин.цена товара","$ref":"#/definitions/Money"},"itemSource":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.AddItemSource"},"kiz":{"description":"маркировка, если есть","$ref":"#/definitions/ru.servplus.pos.common.models.receipt.sale.KIZ"},"supervisor":{"description":"кассир, отменивший позицию. Заполняется только для отмененных позиций","$ref":"#/definitions/ru.servplus.pos.common.models.User"},"properties":{"description":"доп.свойства, привязанные к позиции","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.Property"}},"originalPosition":{"format":"int64","description":"для чеков возврата по чеку номер позиции в чеке продажи","type":"integer"}},"required":["price","discounts","taxes","discountAmount"]},"ru.servplus.pos.common.models.receipt.sale.Coupon":{"properties":{"code":{"type":"string"},"loyalitySysUID":{"type":"integer","format":"int32"}},"required":["code"]},"ru.servplus.pos.common.models.receipt.common.ProductAttribute":{"description":"аттрибут описания товара. Используется для ограничений продажи и маркировки. Возможные значения alcohol, tobacco, egais, markedTobacco, markedGoods, advance, noSellerRequired, service","properties":{"id":{"type":"string"}},"required":["id"]},"ru.servplus.pos.common.models.receipt.common.MarketingResult":{"description":"объединение всех активностей одной системы лояльности","properties":{"awardCoupons":{"description":"Массив купонов, выданных системой лояльности","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.AwardCoupon"}},"discountAmount":{"description":"Общая сумма скидок, рассчитанных в системе лояльности (не считая списанных бонусов)","$ref":"#/definitions/Money"},"transactionTime":{"format":"date-time","description":"дата-время транзакции в системе лояльности","type":"string","example":"2018-06-22T08:00:19"},"transactionID":{"description":"Идентификатор акции, примененной в чеке (определяется системой лояльности)","type":"string"},"efts":{"format":"int32","description":"Идентификатор типа системы лояльности, предоставившей скидку (100-сервер маркетинга УКМ5, 101-ручные скидки УКМ5, 5-скидка на мелочь УКМ5, 6-скидка коррекция для весовых товаров УКМ5, Siebel - будет определяться настройками в кассовой системе)","type":"integer"},"operationMode":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.OperationMode"},"cardNum":{"description":"Номер карты клиента, зарегистрированной в чеке","type":"string"},"usedBonuses":{"description":"Сумма списанных бонусов","$ref":"#/definitions/Money"},"origTransactionID":{"description":"В чеках на возврат - ИД транзакции созданной в системе лояльности по чеку продажи","type":"string"},"usedCoupons":{"description":"Массив купонов, примененных в системе лояльности","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.UsedCoupon"}},"operationType":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.OperationType"},"awardBonuses":{"description":"Сумма начисленных бонусов","$ref":"#/definitions/Money"},"gifts":{"description":"Массив подарков, выданных в системе лояльности","type":"array","items":{"$ref":"#/definitions/ru.servplus.pos.common.models.receipt.common.Gift"}}},"required":["efts","transactionTime","operationType","operationMode","discountAmount","awardBonuses","usedBonuses","awardCoupons","usedCoupons","gifts"]},"models.importer.PicklistStore":{"description":"Магазин, к которому привязан Перечень товаров","properties":{"id":{"description":"ид магазина","type":"string"}},"required":["id"]},"ru.servplus.pos.common.models.receipt.common.UsedCoupon":{"description":"Перечень купонов, примененных в чеке в рамках системы лояльности","properties":{"number":{"description":"Номер примененного купона (если номер был у купона)","type":"string"}},"required":["number"]}},"swagger":"2.0","info":{"description":"API сервера УКМ5 для обмена данными с внешними системами","title":"Import-Export-API","version":"1.0"},"consumes":["application/json"],"tags":[{"name":"routes"}]}