orangedata 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +12 -1
- data/README.md +39 -42
- data/lib/orange_data/credentials.rb +57 -30
- data/lib/orange_data/receipt.rb +294 -48
- data/lib/orange_data/schema_definitions.yml +776 -0
- data/lib/orange_data/transport.rb +20 -12
- data/lib/orange_data/version.rb +1 -1
- data/lib/orange_data.rb +1 -9
- data/orangedata.gemspec +2 -0
- metadata +31 -2
@@ -0,0 +1,776 @@
|
|
1
|
+
---
|
2
|
+
info:
|
3
|
+
version: '2.0'
|
4
|
+
title: Nebula API v2
|
5
|
+
description: OpenApi-like definition for receipt schema with extensions and additions
|
6
|
+
|
7
|
+
anyOf:
|
8
|
+
- "$ref": "#definitions/CheckDocumentCreate[CheckContent]"
|
9
|
+
- "$ref": "#definitions/CheckDocumentCreate[CorrectionContent]"
|
10
|
+
|
11
|
+
definitions:
|
12
|
+
CheckDocumentCreate[CheckContent]:
|
13
|
+
type: object
|
14
|
+
properties:
|
15
|
+
id:
|
16
|
+
description: Идентификатор документа, должен быть уникален в пределах организации.
|
17
|
+
type: string
|
18
|
+
minLength: 1
|
19
|
+
maxLength: 64
|
20
|
+
inn:
|
21
|
+
description: ИНН организации, для которой пробивается чек
|
22
|
+
type: string
|
23
|
+
minLength: 10
|
24
|
+
maxLength: 12
|
25
|
+
group:
|
26
|
+
description: Группа устройств, с помощью которых будет пробит чек
|
27
|
+
type: string
|
28
|
+
minLength: 1
|
29
|
+
maxLength: 32
|
30
|
+
nullable: true
|
31
|
+
key:
|
32
|
+
description: Название ключа который должен быть использован для проверки подписи
|
33
|
+
x-comment: Для клиентов используется их ИНН, для партнеров и платежных агентов код с маской 301****
|
34
|
+
type: string
|
35
|
+
minLength: 1
|
36
|
+
maxLength: 32
|
37
|
+
content:
|
38
|
+
description: Содержимое документа
|
39
|
+
"$ref": "#/definitions/CheckContent"
|
40
|
+
|
41
|
+
|
42
|
+
CheckContent:
|
43
|
+
type: object
|
44
|
+
properties:
|
45
|
+
type:
|
46
|
+
x-tag-id: 1054
|
47
|
+
description: Признак расчета
|
48
|
+
type: integer
|
49
|
+
x-enum:
|
50
|
+
income:
|
51
|
+
val: 1
|
52
|
+
description: Приход
|
53
|
+
income_return:
|
54
|
+
val: 2
|
55
|
+
description: Возврат прихода
|
56
|
+
expense:
|
57
|
+
val: 3
|
58
|
+
description: Расход
|
59
|
+
expense_return:
|
60
|
+
val: 4
|
61
|
+
description: Возврат расхода
|
62
|
+
positions:
|
63
|
+
description: Список предметов расчета
|
64
|
+
x-tag-id: 1059
|
65
|
+
type: array
|
66
|
+
items:
|
67
|
+
"$ref": "#/definitions/CheckPosition"
|
68
|
+
checkClose:
|
69
|
+
"$ref": "#/definitions/CheckClose"
|
70
|
+
description: Параметры закрытия чека
|
71
|
+
customerContact:
|
72
|
+
description: Телефон или электронный адрес покупателя
|
73
|
+
x-tag-id: 1008
|
74
|
+
type: string
|
75
|
+
agentType:
|
76
|
+
format: byte
|
77
|
+
x-tag-id: 1057
|
78
|
+
x-todo: DRY value 1222?
|
79
|
+
description: Признак агента
|
80
|
+
Битовое поле, где номер бита обозначает,
|
81
|
+
что оказывающий услугу покупателю (клиенту) пользователь является
|
82
|
+
x-comment: |-
|
83
|
+
Кассовый чек(БСО) может содержать реквизиты «признак агента» (тег 1057),
|
84
|
+
только если отчет о регистрации и(или) текущий отчет о перерегистрации
|
85
|
+
содержит реквизит «признак агента» (тег 1057), имеющий значение, идентичное
|
86
|
+
значению реквизита «признак агента» (тег 1057) кассового чека.
|
87
|
+
type: integer
|
88
|
+
x-bitfield:
|
89
|
+
bank_agent:
|
90
|
+
bit: 0
|
91
|
+
description: банковский платежный агент
|
92
|
+
bank_subagent:
|
93
|
+
bit: 1
|
94
|
+
description: банковский платежный субагент
|
95
|
+
payment_agent:
|
96
|
+
bit: 2
|
97
|
+
description: платежный агент
|
98
|
+
payment_subagent:
|
99
|
+
bit: 3
|
100
|
+
description: платежный субагент
|
101
|
+
attorney:
|
102
|
+
bit: 4
|
103
|
+
description: поверенный
|
104
|
+
comissioner:
|
105
|
+
bit: 5
|
106
|
+
description: комиссионер
|
107
|
+
other:
|
108
|
+
bit: 6
|
109
|
+
description: иной агент
|
110
|
+
paymentTransferOperatorPhoneNumbers:
|
111
|
+
description: Телефон оператора перевода
|
112
|
+
x-tag-id: 1075
|
113
|
+
type: array
|
114
|
+
items:
|
115
|
+
type: string
|
116
|
+
paymentAgentOperation:
|
117
|
+
description: Операция платежного агента
|
118
|
+
x-tag-id: 1044
|
119
|
+
type: string
|
120
|
+
paymentAgentPhoneNumbers:
|
121
|
+
description: Телефон платежного агента
|
122
|
+
x-tag-id: 1073
|
123
|
+
type: array
|
124
|
+
items:
|
125
|
+
type: string
|
126
|
+
paymentOperatorPhoneNumbers:
|
127
|
+
description: Телефон оператора по приему платежей
|
128
|
+
x-tag-id: 1074
|
129
|
+
type: array
|
130
|
+
items:
|
131
|
+
type: string
|
132
|
+
paymentOperatorName:
|
133
|
+
description: Наименование оператора перевода
|
134
|
+
x-tag-id: 1026
|
135
|
+
type: string
|
136
|
+
paymentOperatorAddress:
|
137
|
+
description: Адрес оператора перевода
|
138
|
+
x-tag-id: 1005
|
139
|
+
type: string
|
140
|
+
paymentOperatorINN:
|
141
|
+
description: ИНН оператора перевода
|
142
|
+
x-tag-id: 1016
|
143
|
+
type: string
|
144
|
+
supplierPhoneNumbers:
|
145
|
+
description: Телефон поставщика
|
146
|
+
x-tag-id: 1171
|
147
|
+
type: array
|
148
|
+
items:
|
149
|
+
type: string
|
150
|
+
additionalUserAttribute:
|
151
|
+
"$ref": "#/definitions/AdditionalUserAttribute"
|
152
|
+
description: Дополнительный реквизит пользователя
|
153
|
+
x-tag-id: 1084
|
154
|
+
automatNumber:
|
155
|
+
description: Номер автомата
|
156
|
+
x-tag-id: 1036
|
157
|
+
type: string
|
158
|
+
settlementAddress:
|
159
|
+
description: Адрес расчетов
|
160
|
+
x-tag-id: 1009
|
161
|
+
type: string
|
162
|
+
settlementPlace:
|
163
|
+
description: Место расчетов
|
164
|
+
x-tag-id: 1187
|
165
|
+
type: string
|
166
|
+
additionalAttribute:
|
167
|
+
description: Дополнительный реквизит чека (БСО)
|
168
|
+
x-tag-id: 1192
|
169
|
+
type: string
|
170
|
+
customer:
|
171
|
+
description: Покупатель (клиент)
|
172
|
+
x-tag-id: 1227
|
173
|
+
type: string
|
174
|
+
customerINN:
|
175
|
+
description: ИНН покупателя (клиента)
|
176
|
+
x-tag-id: 1228
|
177
|
+
type: string
|
178
|
+
|
179
|
+
|
180
|
+
CheckPosition:
|
181
|
+
description: Предмет расчета
|
182
|
+
x-tag-id: 1059
|
183
|
+
type: object
|
184
|
+
properties:
|
185
|
+
quantity:
|
186
|
+
format: double
|
187
|
+
description: Количество предмета расчета
|
188
|
+
x-tag-id: 1023
|
189
|
+
type: number
|
190
|
+
x-comment: до 6 знаков после точки
|
191
|
+
price:
|
192
|
+
format: double
|
193
|
+
description: Цена за единицу предмета расчета с учетом скидок и наценок
|
194
|
+
x-tag-id: 1079
|
195
|
+
type: number
|
196
|
+
x-comment: до 2 знаков после точки
|
197
|
+
totalSum:
|
198
|
+
format: double
|
199
|
+
x-tag-id: 1043
|
200
|
+
x-unknown: в документации нет, считается автоматом?
|
201
|
+
description: Стоимость предмета расчета с учетом скидок и наценок
|
202
|
+
x-comment: |-
|
203
|
+
Значение реквизита «стоимость предмета расчета с учетом скидок и наценок» (тег 1043)
|
204
|
+
должно быть равно произведению значения реквизита
|
205
|
+
«цена за единицу предмета расчета с учетом скидок и наценок» (тег 1079),
|
206
|
+
умноженному на значение реквизита «количество предмета расчета» (тег 1023).
|
207
|
+
|
208
|
+
В случае если вычисление значения реквизита «стоимость предмета расчета
|
209
|
+
с учетом скидок и наценок» (тег 1043) осуществляется с использованием внешнего
|
210
|
+
калькулирующего устройства и включается в состав кассового чека (БСО) на основании
|
211
|
+
результатов, вычисленных этими калькулирующим устройством,
|
212
|
+
значение реквизита «стоимость предмета расчета с учетом скидок и наценок» (тег 1043),
|
213
|
+
вычисленного внешним калькулирующим устройством, не должно отличаться от значения реквизита
|
214
|
+
«стоимость предмета расчета с учетом скидок и наценок» (тег 1043),
|
215
|
+
вычисленного путем умножения значения реквизита
|
216
|
+
«цена за единицу предмета расчета с учетом скидок и наценок» (тег 1079)
|
217
|
+
на значение реквизита «количество предмета расчета» (тег 1023),
|
218
|
+
больше, чем на 1 копейку.
|
219
|
+
type: number
|
220
|
+
tax:
|
221
|
+
description: Ставка НДС
|
222
|
+
x-tag-id: 1199
|
223
|
+
type: integer
|
224
|
+
x-enum:
|
225
|
+
vat_18:
|
226
|
+
val: 1
|
227
|
+
description: ставка НДС 18%
|
228
|
+
vat_10:
|
229
|
+
val: 2
|
230
|
+
description: ставка НДС 10%
|
231
|
+
vat_18_118:
|
232
|
+
val: 3
|
233
|
+
description: ставка НДС расч. 18/118
|
234
|
+
vat_10_110:
|
235
|
+
val: 4
|
236
|
+
description: ставка НДС расч. 10/110
|
237
|
+
vat_0:
|
238
|
+
val: 5
|
239
|
+
description: ставка НДС 0%
|
240
|
+
vat_not_charged:
|
241
|
+
val: 6
|
242
|
+
description: НДС не облагается
|
243
|
+
text:
|
244
|
+
description: Наименование предмета расчета
|
245
|
+
x-tag-id: 1030
|
246
|
+
type: string
|
247
|
+
maxLength: 128
|
248
|
+
paymentMethodType:
|
249
|
+
x-tag-id: 1214
|
250
|
+
description: Признак способа расчета
|
251
|
+
type: integer
|
252
|
+
x-enum:
|
253
|
+
prepay_full:
|
254
|
+
val: 1
|
255
|
+
description: Предоплата 100%
|
256
|
+
prepay_partial:
|
257
|
+
val: 2
|
258
|
+
description: Частичная предоплата
|
259
|
+
advance:
|
260
|
+
val: 3
|
261
|
+
description: Аванс
|
262
|
+
full:
|
263
|
+
val: 4
|
264
|
+
description: Полный расчет
|
265
|
+
partial_credit:
|
266
|
+
val: 5
|
267
|
+
description: Частичный расчет и кредит
|
268
|
+
credit:
|
269
|
+
val: 6
|
270
|
+
description: Передача в кредит
|
271
|
+
credit_payment:
|
272
|
+
val: 7
|
273
|
+
description: Оплата кредита
|
274
|
+
|
275
|
+
paymentSubjectType:
|
276
|
+
x-tag-id: 1212
|
277
|
+
description: Признак предмета расчета
|
278
|
+
type: integer
|
279
|
+
nullable: true
|
280
|
+
x-comment: если null, то считается что "товар"
|
281
|
+
x-enum:
|
282
|
+
goods:
|
283
|
+
val: 1
|
284
|
+
description: Товар
|
285
|
+
excised_goods:
|
286
|
+
val: 2
|
287
|
+
description: Подакцизный товар
|
288
|
+
work:
|
289
|
+
val: 3
|
290
|
+
description: Работа
|
291
|
+
service:
|
292
|
+
val: 4
|
293
|
+
description: Услуга
|
294
|
+
gambling_bet:
|
295
|
+
val: 5
|
296
|
+
description: Ставка азартной игры
|
297
|
+
gambling_win:
|
298
|
+
val: 6
|
299
|
+
description: Выигрыш азартной игры
|
300
|
+
lottery_ticket:
|
301
|
+
val: 7
|
302
|
+
description: Лотерейный билет
|
303
|
+
lottery_win:
|
304
|
+
val: 8
|
305
|
+
description: Выигрыш лотереи
|
306
|
+
intellectual:
|
307
|
+
val: 9
|
308
|
+
description: Предоставление РИД
|
309
|
+
x-comment: РИД = результат интеллектуальной деятельности
|
310
|
+
payment:
|
311
|
+
val: 10
|
312
|
+
description: Платеж
|
313
|
+
comission:
|
314
|
+
val: 11
|
315
|
+
description: Агентское вознаграждение
|
316
|
+
composite:
|
317
|
+
val: 12
|
318
|
+
description: Составной предмет расчета
|
319
|
+
other:
|
320
|
+
val: 13
|
321
|
+
description: Иной предмет расчета
|
322
|
+
|
323
|
+
nomenclatureCode:
|
324
|
+
description: Код товарной номенклатуры
|
325
|
+
x-comment: base64 массив, что внутри - пока не ясно
|
326
|
+
x-tag-id: 1162
|
327
|
+
type: string
|
328
|
+
nullable: true
|
329
|
+
format: byte
|
330
|
+
minLength: 1
|
331
|
+
maxLength: 32
|
332
|
+
supplierInfo:
|
333
|
+
"$ref": "#/definitions/SupplierInfo"
|
334
|
+
description: Данные поставщика
|
335
|
+
nullable: true
|
336
|
+
x-tag-id: 1224
|
337
|
+
supplierINN:
|
338
|
+
description: ИНН поставщика
|
339
|
+
x-tag-id: 1226
|
340
|
+
type: string
|
341
|
+
agentType:
|
342
|
+
x-tag-id: 1222
|
343
|
+
x-todo: DRY 1057?
|
344
|
+
description: Признак агента по предмету расчета
|
345
|
+
Битовое поле, где номер бита обозначает, что оказывающий услугу покупателю (клиенту)
|
346
|
+
пользователь является
|
347
|
+
type: integer
|
348
|
+
x-bitfield:
|
349
|
+
bank_agent:
|
350
|
+
bit: 0
|
351
|
+
description: банковский платежный агент
|
352
|
+
bank_subagent:
|
353
|
+
bit: 1
|
354
|
+
description: банковский платежный субагент
|
355
|
+
payment_agent:
|
356
|
+
bit: 2
|
357
|
+
description: платежный агент
|
358
|
+
payment_subagent:
|
359
|
+
bit: 3
|
360
|
+
description: платежный субагент
|
361
|
+
attorney:
|
362
|
+
bit: 4
|
363
|
+
description: поверенный
|
364
|
+
comissioner:
|
365
|
+
bit: 5
|
366
|
+
description: комиссионер
|
367
|
+
other:
|
368
|
+
bit: 6
|
369
|
+
description: иной агент
|
370
|
+
agentInfo:
|
371
|
+
"$ref": "#/definitions/AgentInfo"
|
372
|
+
description: Данные агента
|
373
|
+
x-tag-id: 1223
|
374
|
+
unitOfMeasurement:
|
375
|
+
description: Единица измерения предмета расчета
|
376
|
+
x-tag-id: 1197
|
377
|
+
type: string
|
378
|
+
additionalAttribute:
|
379
|
+
description: Дополнительный реквизит предмета расчета
|
380
|
+
x-tag-id: 1191
|
381
|
+
type: string
|
382
|
+
manufacturerCountryCode:
|
383
|
+
description: Код страны происхождения товара
|
384
|
+
x-tag-id: 1230
|
385
|
+
type: string
|
386
|
+
customsDeclarationNumber:
|
387
|
+
description: Номер таможенной декларации
|
388
|
+
x-tag-id: 1231
|
389
|
+
type: string
|
390
|
+
excise:
|
391
|
+
format: double
|
392
|
+
description: Акциз
|
393
|
+
x-tag-id: 1229
|
394
|
+
type: number
|
395
|
+
CheckClose:
|
396
|
+
type: object
|
397
|
+
properties:
|
398
|
+
payments:
|
399
|
+
description: Оплаты
|
400
|
+
type: array
|
401
|
+
items:
|
402
|
+
"$ref": "#/definitions/CheckPayment"
|
403
|
+
taxationSystem:
|
404
|
+
x-tag-id: 1055
|
405
|
+
description: Система налогообложения
|
406
|
+
type: integer
|
407
|
+
x-enum:
|
408
|
+
common:
|
409
|
+
val: 0
|
410
|
+
description: Общая, ОСН
|
411
|
+
simplified:
|
412
|
+
val: 1
|
413
|
+
description: Упрощенная доход, УСН доход
|
414
|
+
simplified_difference:
|
415
|
+
val: 2
|
416
|
+
description: Упрощенная доход минус расход, УСН доход - расход
|
417
|
+
envd:
|
418
|
+
val: 3
|
419
|
+
description: Единый налог на вмененный доход, ЕНВД
|
420
|
+
esn:
|
421
|
+
val: 4
|
422
|
+
description: Единый сельскохозяйственный налог, ЕСН
|
423
|
+
patent:
|
424
|
+
val: 5
|
425
|
+
description: Патентная система налогообложения, Патент
|
426
|
+
|
427
|
+
AdditionalUserAttribute:
|
428
|
+
description: Дополнительный реквизит пользователя
|
429
|
+
x-tag-id: 1084
|
430
|
+
type: object
|
431
|
+
properties:
|
432
|
+
name:
|
433
|
+
description: Наименование дополнительного реквизита пользователя
|
434
|
+
x-tag-id: 1085
|
435
|
+
type: string
|
436
|
+
value:
|
437
|
+
description: Значение дополнительного реквизита пользователя
|
438
|
+
x-tag-id: 1086
|
439
|
+
type: string
|
440
|
+
|
441
|
+
SupplierInfo:
|
442
|
+
description: Данные поставщика
|
443
|
+
x-tag-id: 1224
|
444
|
+
type: object
|
445
|
+
properties:
|
446
|
+
phoneNumbers:
|
447
|
+
description: Телефон поставщика
|
448
|
+
x-tag-id: 1171
|
449
|
+
type: array
|
450
|
+
items:
|
451
|
+
type: string
|
452
|
+
name:
|
453
|
+
description: Наименование поставщика
|
454
|
+
x-tag-id: 1225
|
455
|
+
type: string
|
456
|
+
|
457
|
+
AgentInfo:
|
458
|
+
description: Данные агента
|
459
|
+
x-tag-id: 1223
|
460
|
+
type: object
|
461
|
+
properties:
|
462
|
+
paymentTransferOperatorPhoneNumbers:
|
463
|
+
description: Телефон оператора перевода
|
464
|
+
x-tag-id: 1075
|
465
|
+
type: array
|
466
|
+
items:
|
467
|
+
type: string
|
468
|
+
paymentAgentOperation:
|
469
|
+
description: Операция платежного агента
|
470
|
+
x-tag-id: 1044
|
471
|
+
type: string
|
472
|
+
paymentAgentPhoneNumbers:
|
473
|
+
description: Телефон платежного агента
|
474
|
+
x-tag-id: 1073
|
475
|
+
type: array
|
476
|
+
items:
|
477
|
+
type: string
|
478
|
+
paymentOperatorPhoneNumbers:
|
479
|
+
description: Телефон оператора по приему платежей
|
480
|
+
x-tag-id: 1074
|
481
|
+
type: array
|
482
|
+
items:
|
483
|
+
type: string
|
484
|
+
paymentOperatorName:
|
485
|
+
description: Наименование оператора перевода
|
486
|
+
x-tag-id: 1026
|
487
|
+
type: string
|
488
|
+
paymentOperatorAddress:
|
489
|
+
description: Адрес оператора перевода
|
490
|
+
x-tag-id: 1005
|
491
|
+
type: string
|
492
|
+
paymentOperatorINN:
|
493
|
+
description: ИНН оператора перевода
|
494
|
+
x-tag-id: 1016
|
495
|
+
type: string
|
496
|
+
CheckPayment:
|
497
|
+
type: object
|
498
|
+
properties:
|
499
|
+
type:
|
500
|
+
type: integer
|
501
|
+
description: Тип оплаты
|
502
|
+
x-enum:
|
503
|
+
cash:
|
504
|
+
val: 1
|
505
|
+
description: сумма по чеку наличными
|
506
|
+
x-tag-id: 1031
|
507
|
+
card:
|
508
|
+
val: 2
|
509
|
+
description: сумма по чеку электронными
|
510
|
+
x-tag-id: 1081
|
511
|
+
prepaid:
|
512
|
+
val: 14
|
513
|
+
description: сумма по чеку предоплатой(зачетом аванса и (или) предыдущих платежей)
|
514
|
+
x-tag-id: 1215
|
515
|
+
credit:
|
516
|
+
val: 15
|
517
|
+
description: сумма по чеку постоплатой(в кредит)
|
518
|
+
x-tag-id: 1216
|
519
|
+
counterclaim:
|
520
|
+
val: 16
|
521
|
+
description: сумма по чеку(БСО) встречным предоставлением
|
522
|
+
x-tag-id: 1217
|
523
|
+
amount:
|
524
|
+
format: double
|
525
|
+
x-comment: точность до 2 знаков после запятой, попадает в тег поля по значению type (1031,1081,1215,1216,1217)
|
526
|
+
description: Сумма оплаты
|
527
|
+
type: number
|
528
|
+
|
529
|
+
|
530
|
+
ValidationErrors:
|
531
|
+
type: object
|
532
|
+
properties:
|
533
|
+
errors:
|
534
|
+
type: array
|
535
|
+
items:
|
536
|
+
type: string
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
CheckDocumentCreate[CorrectionContent]:
|
541
|
+
type: object
|
542
|
+
x-todo: DRY CheckDocumentCreate[CheckContent] is exactly the same, but has different content field
|
543
|
+
properties:
|
544
|
+
id:
|
545
|
+
type: string
|
546
|
+
inn:
|
547
|
+
type: string
|
548
|
+
group:
|
549
|
+
type: string
|
550
|
+
key:
|
551
|
+
type: string
|
552
|
+
content:
|
553
|
+
"$ref": "#/definitions/CorrectionContent"
|
554
|
+
|
555
|
+
CorrectionContent:
|
556
|
+
type: object
|
557
|
+
properties:
|
558
|
+
correctionType:
|
559
|
+
description: Тип коррекции
|
560
|
+
x-tag-id: 1173
|
561
|
+
type: integer
|
562
|
+
x-enum:
|
563
|
+
manual:
|
564
|
+
val: 0
|
565
|
+
description: Самостоятельно
|
566
|
+
prescribed:
|
567
|
+
val: 1
|
568
|
+
description: По предписанию
|
569
|
+
type:
|
570
|
+
description: Признак расчета
|
571
|
+
x-tag-id: 1054
|
572
|
+
type: integer
|
573
|
+
x-enum:
|
574
|
+
income:
|
575
|
+
val: 1
|
576
|
+
description: Приход
|
577
|
+
expense:
|
578
|
+
val: 3
|
579
|
+
description: Расход
|
580
|
+
|
581
|
+
description:
|
582
|
+
description: Описание коррекции
|
583
|
+
x-tag-id: 1177
|
584
|
+
type: string
|
585
|
+
causeDocumentDate:
|
586
|
+
format: date-time
|
587
|
+
description: Дата документа основания для коррекции
|
588
|
+
x-tag-id: 1178
|
589
|
+
x-comment: В данном реквизите время всегда указывать, как 00:00:00
|
590
|
+
type: string
|
591
|
+
causeDocumentNumber:
|
592
|
+
description: Номер документа основания для коррекции
|
593
|
+
x-tag-id: 1179
|
594
|
+
type: string
|
595
|
+
totalSum:
|
596
|
+
format: double
|
597
|
+
description: Сумма расчета, указанного в чеке (БСО)
|
598
|
+
x-tag-id: 1020
|
599
|
+
type: number
|
600
|
+
automatNumber:
|
601
|
+
description: Номер автомата
|
602
|
+
x-tag-id: 1036
|
603
|
+
type: string
|
604
|
+
settlementAddress:
|
605
|
+
description: Адрес расчетов
|
606
|
+
x-tag-id: 1009
|
607
|
+
type: string
|
608
|
+
settlementPlace:
|
609
|
+
description: Место расчетов
|
610
|
+
x-tag-id: 1187
|
611
|
+
type: string
|
612
|
+
cashSum:
|
613
|
+
format: double
|
614
|
+
description: Сумма по чеку (БСО) наличными
|
615
|
+
x-tag-id: 1031
|
616
|
+
type: number
|
617
|
+
eCashSum:
|
618
|
+
format: double
|
619
|
+
description: Сумма по чеку (БСО) электронными
|
620
|
+
x-tag-id: 1081
|
621
|
+
type: number
|
622
|
+
prepaymentSum:
|
623
|
+
format: double
|
624
|
+
description: Сумма по чеку (БСО) предоплатой (зачетом аванса и (или) предыдущих платежей)
|
625
|
+
x-tag-id: 1215
|
626
|
+
type: number
|
627
|
+
postpaymentSum:
|
628
|
+
format: double
|
629
|
+
description: Сумма по чеку (БСО) постоплатой (в кредит)
|
630
|
+
x-tag-id: 1216
|
631
|
+
type: number
|
632
|
+
otherPaymentTypeSum:
|
633
|
+
format: double
|
634
|
+
description: Сумма по чеку (БСО) встречным предоставлением
|
635
|
+
x-tag-id: 1217
|
636
|
+
type: number
|
637
|
+
tax1Sum:
|
638
|
+
format: double
|
639
|
+
description: Сумма НДС чека по ставке 18%
|
640
|
+
x-tag-id: 1102
|
641
|
+
type: number
|
642
|
+
tax2Sum:
|
643
|
+
format: double
|
644
|
+
description: Сумма НДС чека по ставке 10%
|
645
|
+
x-tag-id: 1103
|
646
|
+
type: number
|
647
|
+
tax3Sum:
|
648
|
+
format: double
|
649
|
+
description: Сумма расчета по чеку с НДС по ставке 0%
|
650
|
+
x-tag-id: 1104
|
651
|
+
type: number
|
652
|
+
tax4Sum:
|
653
|
+
format: double
|
654
|
+
description: Сумма расчета по чеку без НДС
|
655
|
+
x-tag-id: 1105
|
656
|
+
type: number
|
657
|
+
tax5Sum:
|
658
|
+
format: double
|
659
|
+
description: Сумма НДС чека по расч. ставке 18/118
|
660
|
+
x-tag-id: 1106
|
661
|
+
type: number
|
662
|
+
tax6Sum:
|
663
|
+
format: double
|
664
|
+
description: Сумма НДС чека по расч. ставке 10/110
|
665
|
+
x-tag-id: 1107
|
666
|
+
type: number
|
667
|
+
taxationSystem:
|
668
|
+
type: integer
|
669
|
+
x-todo: DRY
|
670
|
+
description: Применяемая система налогообложения
|
671
|
+
x-tag-id: 1055
|
672
|
+
x-enum:
|
673
|
+
common:
|
674
|
+
val: 0
|
675
|
+
description: Общая, ОСН
|
676
|
+
simplified:
|
677
|
+
val: 1
|
678
|
+
description: Упрощенная доход, УСН доход
|
679
|
+
simplified_difference:
|
680
|
+
val: 2
|
681
|
+
description: Упрощенная доход минус расход, УСН доход - расход
|
682
|
+
envd:
|
683
|
+
val: 3
|
684
|
+
description: Единый налог на вмененный доход, ЕНВД
|
685
|
+
esn:
|
686
|
+
val: 4
|
687
|
+
description: Единый сельскохозяйственный налог, ЕСН
|
688
|
+
patent:
|
689
|
+
val: 5
|
690
|
+
description: Патентная система налогообложения, Патент
|
691
|
+
|
692
|
+
CheckStatusViewModel[CheckContent]:
|
693
|
+
type: object
|
694
|
+
properties:
|
695
|
+
id:
|
696
|
+
type: string
|
697
|
+
deviceSN:
|
698
|
+
type: string
|
699
|
+
deviceRN:
|
700
|
+
type: string
|
701
|
+
fsNumber:
|
702
|
+
type: string
|
703
|
+
ofdName:
|
704
|
+
type: string
|
705
|
+
ofdWebsite:
|
706
|
+
type: string
|
707
|
+
ofdinn:
|
708
|
+
type: string
|
709
|
+
fnsWebsite:
|
710
|
+
type: string
|
711
|
+
companyINN:
|
712
|
+
type: string
|
713
|
+
companyName:
|
714
|
+
type: string
|
715
|
+
documentNumber:
|
716
|
+
format: int64
|
717
|
+
type: integer
|
718
|
+
shiftNumber:
|
719
|
+
format: int32
|
720
|
+
type: integer
|
721
|
+
documentIndex:
|
722
|
+
format: int32
|
723
|
+
type: integer
|
724
|
+
processedAt:
|
725
|
+
format: date-time
|
726
|
+
type: string
|
727
|
+
content:
|
728
|
+
"$ref": "#/definitions/CheckContent"
|
729
|
+
change:
|
730
|
+
format: double
|
731
|
+
type: number
|
732
|
+
fp:
|
733
|
+
type: string
|
734
|
+
|
735
|
+
CheckStatusViewModel[CorrectionContent]:
|
736
|
+
type: object
|
737
|
+
properties:
|
738
|
+
id:
|
739
|
+
type: string
|
740
|
+
deviceSN:
|
741
|
+
type: string
|
742
|
+
deviceRN:
|
743
|
+
type: string
|
744
|
+
fsNumber:
|
745
|
+
type: string
|
746
|
+
ofdName:
|
747
|
+
type: string
|
748
|
+
ofdWebsite:
|
749
|
+
type: string
|
750
|
+
ofdinn:
|
751
|
+
type: string
|
752
|
+
fnsWebsite:
|
753
|
+
type: string
|
754
|
+
companyINN:
|
755
|
+
type: string
|
756
|
+
companyName:
|
757
|
+
type: string
|
758
|
+
documentNumber:
|
759
|
+
format: int64
|
760
|
+
type: integer
|
761
|
+
shiftNumber:
|
762
|
+
format: int32
|
763
|
+
type: integer
|
764
|
+
documentIndex:
|
765
|
+
format: int32
|
766
|
+
type: integer
|
767
|
+
processedAt:
|
768
|
+
format: date-time
|
769
|
+
type: string
|
770
|
+
content:
|
771
|
+
"$ref": "#/definitions/CorrectionContent"
|
772
|
+
change:
|
773
|
+
format: double
|
774
|
+
type: number
|
775
|
+
fp:
|
776
|
+
type: string
|