airbyte-source-kyriba 0.1.0__py3-none-any.whl → 0.1.3__py3-none-any.whl

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.
Files changed (32) hide show
  1. airbyte_source_kyriba-0.1.3.dist-info/METADATA +110 -0
  2. airbyte_source_kyriba-0.1.3.dist-info/RECORD +15 -0
  3. {airbyte_source_kyriba-0.1.0.dist-info → airbyte_source_kyriba-0.1.3.dist-info}/WHEEL +1 -2
  4. airbyte_source_kyriba-0.1.3.dist-info/entry_points.txt +3 -0
  5. source_kyriba/schemas/accounts.json +174 -289
  6. source_kyriba/schemas/bank_balances_eod.json +20 -38
  7. source_kyriba/schemas/bank_balances_intraday.json +21 -32
  8. source_kyriba/schemas/cash_balances_eod.json +36 -58
  9. source_kyriba/schemas/cash_balances_intraday.json +29 -57
  10. source_kyriba/schemas/cash_flows.json +25 -47
  11. source_kyriba/schemas/shared/_definitions.json +146 -333
  12. source_kyriba/source.py +9 -3
  13. source_kyriba/spec.json +9 -5
  14. airbyte_source_kyriba-0.1.0.dist-info/METADATA +0 -99
  15. airbyte_source_kyriba-0.1.0.dist-info/RECORD +0 -31
  16. airbyte_source_kyriba-0.1.0.dist-info/entry_points.txt +0 -2
  17. airbyte_source_kyriba-0.1.0.dist-info/top_level.txt +0 -3
  18. integration_tests/__init__.py +0 -3
  19. integration_tests/abnormal_state.json +0 -1
  20. integration_tests/acceptance.py +0 -16
  21. integration_tests/configured_catalog.json +0 -74
  22. integration_tests/invalid_config.json +0 -7
  23. integration_tests/sample_config.json +0 -7
  24. integration_tests/sample_state.json +0 -1
  25. unit_tests/__init__.py +0 -3
  26. unit_tests/test_account_sub_stream.py +0 -37
  27. unit_tests/test_bank_balances_stream.py +0 -77
  28. unit_tests/test_cash_balances_stream.py +0 -77
  29. unit_tests/test_cash_flows.py +0 -100
  30. unit_tests/test_incremental_streams.py +0 -72
  31. unit_tests/test_source.py +0 -35
  32. unit_tests/test_streams.py +0 -121
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "definitions": {
3
3
  "AggregatedGroupDto": {
4
- "type": "object",
5
- "required": ["aggregation"],
4
+ "type": ["object", "null"],
6
5
  "properties": {
7
6
  "entity": {
8
7
  "description": "Entity",
9
8
  "$ref": "#/definitions/ReferenceModel"
10
9
  },
11
10
  "date": {
12
- "type": "string",
11
+ "type": ["string", "null"],
13
12
  "format": "date",
14
13
  "description": "Date"
15
14
  },
@@ -25,16 +24,15 @@
25
24
  "title": "AggregatedGroupDto"
26
25
  },
27
26
  "AggregationDto": {
28
- "type": "object",
29
- "required": ["amount"],
27
+ "type": ["object", "null"],
30
28
  "properties": {
31
29
  "amount": {
32
- "type": "number",
30
+ "type": ["number", "null"],
33
31
  "example": 10580.123,
34
32
  "description": "Calculated aggregation amount of the cash flows expressed in conversion currency"
35
33
  },
36
34
  "count": {
37
- "type": "integer",
35
+ "type": ["integer", "null"],
38
36
  "format": "int32",
39
37
  "description": "Count of the aggregated cash flows."
40
38
  }
@@ -42,39 +40,21 @@
42
40
  "title": "AggregationDto"
43
41
  },
44
42
  "AggregationLevelDto": {
45
- "type": "object",
46
- "required": ["groupingCriterion", "groups", "level"],
43
+ "type": ["object", "null"],
47
44
  "properties": {
48
45
  "level": {
49
- "type": "integer",
46
+ "type": ["integer", "null"],
50
47
  "format": "int32",
51
48
  "example": 1,
52
- "description": "The level of the aggregation",
53
- "enum": [1, 2, 3]
49
+ "description": "The level of the aggregation"
54
50
  },
55
51
  "groupingCriterion": {
56
- "type": "string",
52
+ "type": ["string", "null"],
57
53
  "example": "BANK",
58
- "description": "The grouping criterion for this level",
59
- "enum": [
60
- "ACCOUNT",
61
- "ACCOUNT_GROUP",
62
- "BANK",
63
- "BANK_GROUP",
64
- "COMPANY",
65
- "COMPANY_GROUP",
66
- "CURRENCY",
67
- "COUNTRY",
68
- "COUNTRY_GROUP",
69
- "FLOW_CODE",
70
- "BUDGET_CODE",
71
- "TRANSACTION_DATE",
72
- "VALUE_DATE",
73
- "ACCOUNTING_DATE"
74
- ]
54
+ "description": "The grouping criterion for this level"
75
55
  },
76
56
  "groups": {
77
- "type": "array",
57
+ "type": ["array", "null"],
78
58
  "description": "List of aggregated groups",
79
59
  "items": {
80
60
  "$ref": "#/definitions/AggregatedGroupDto"
@@ -84,7 +64,7 @@
84
64
  "title": "AggregationLevelDto"
85
65
  },
86
66
  "AmountModel": {
87
- "type": "object",
67
+ "type": ["object", "null"],
88
68
  "properties": {
89
69
  "currency": {
90
70
  "example": "USD",
@@ -92,19 +72,22 @@
92
72
  "$ref": "#/definitions/ReferenceModel"
93
73
  },
94
74
  "amount": {
95
- "type": "number",
75
+ "type": ["number", "null"],
96
76
  "format": "double",
97
77
  "example": 10580.123,
98
78
  "description": "Amount value"
79
+ },
80
+ "signedAmount": {
81
+ "type": ["number", "null"]
99
82
  }
100
83
  },
101
84
  "title": "AmountModel"
102
85
  },
103
86
  "AmountResponseDTO": {
104
- "type": "object",
87
+ "type": ["object", "null"],
105
88
  "properties": {
106
89
  "amount": {
107
- "type": "number",
90
+ "type": ["number", "null"],
108
91
  "format": "double",
109
92
  "example": 10580.123,
110
93
  "description": "Amount"
@@ -118,28 +101,28 @@
118
101
  "title": "AmountResponseDTO"
119
102
  },
120
103
  "CashAmountModel": {
121
- "type": "object",
104
+ "type": ["object", "null"],
122
105
  "properties": {
123
106
  "accountAmount": {
124
- "type": "number",
107
+ "type": ["number", "null"],
125
108
  "format": "double",
126
109
  "example": 10580.123,
127
110
  "description": "Account amount"
128
111
  },
129
112
  "feeAmount": {
130
- "type": "number",
113
+ "type": ["number", "null"],
131
114
  "format": "double",
132
115
  "example": 10580.123,
133
116
  "description": "Fee amount"
134
117
  },
135
118
  "interestAmount": {
136
- "type": "number",
119
+ "type": ["number", "null"],
137
120
  "format": "double",
138
121
  "example": 10580.123,
139
122
  "description": "Interest amount"
140
123
  },
141
124
  "commissionAmount": {
142
- "type": "number",
125
+ "type": ["number", "null"],
143
126
  "format": "double",
144
127
  "example": 10580.123,
145
128
  "description": "Commission amount"
@@ -148,16 +131,7 @@
148
131
  "title": "CashAmountModel"
149
132
  },
150
133
  "CashAmountResponseDTO": {
151
- "type": "object",
152
- "required": [
153
- "account",
154
- "accountAmount",
155
- "date",
156
- "flowAmount",
157
- "flowCode",
158
- "number",
159
- "status"
160
- ],
134
+ "type": ["object", "null"],
161
135
  "properties": {
162
136
  "account": {
163
137
  "description": "Bank account",
@@ -176,10 +150,8 @@
176
150
  "$ref": "#/definitions/CashFlowDateModel"
177
151
  },
178
152
  "description": {
179
- "type": "string",
180
- "description": "Cash flow's description",
181
- "minLength": 0,
182
- "maxLength": 2500
153
+ "type": ["string", "null"],
154
+ "description": "Cash flow's description"
183
155
  },
184
156
  "flowAmount": {
185
157
  "description": "Flow amount",
@@ -190,41 +162,33 @@
190
162
  "$ref": "#/definitions/AmountResponseDTO"
191
163
  },
192
164
  "status": {
193
- "type": "string",
165
+ "type": ["string", "null"],
194
166
  "example": "CONFIRMED",
195
- "description": "Cash flow status",
196
- "minLength": 0,
197
- "maxLength": 2500
167
+ "description": "Cash flow status"
198
168
  },
199
169
  "reference": {
200
- "type": "string",
201
- "description": "Cash flow's reference",
202
- "minLength": 0,
203
- "maxLength": 250
170
+ "type": ["string", "null"],
171
+ "description": "Cash flow's reference"
204
172
  },
205
173
  "origin": {
206
- "type": "string",
207
- "description": "Cash flow's origin",
208
- "minLength": 0,
209
- "maxLength": 250
174
+ "type": ["string", "null"],
175
+ "description": "Cash flow's origin"
210
176
  },
211
177
  "number": {
212
- "type": "integer",
178
+ "type": ["integer", "null"],
213
179
  "format": "int32",
214
180
  "description": "Cash flow's number"
215
181
  },
216
182
  "glStatus": {
217
- "type": "string",
218
- "description": "Cash flow's GL status",
219
- "minLength": 0,
220
- "maxLength": 250
183
+ "type": ["string", "null"],
184
+ "description": "Cash flow's GL status"
221
185
  },
222
186
  "userZones": {
223
187
  "description": "User zones of the cash flow",
224
188
  "$ref": "#/definitions/UserZonesModel"
225
189
  },
226
190
  "actualMode": {
227
- "type": "string",
191
+ "type": ["string", "null"],
228
192
  "example": "Manual",
229
193
  "description": "Cash flow actual mode"
230
194
  }
@@ -232,20 +196,18 @@
232
196
  "title": "CashAmountResponseDTO"
233
197
  },
234
198
  "CashFlowAggregationFilteringDto": {
235
- "type": "object",
236
- "required": ["entityFilters"],
199
+ "type": ["object", "null"],
237
200
  "properties": {
238
201
  "entityFilters": {
239
- "type": "array",
202
+ "type": ["array", "null"],
240
203
  "description": "The list of the filters by entities",
241
204
  "items": {
242
205
  "$ref": "#/definitions/EntityFilterDto"
243
206
  }
244
207
  },
245
208
  "accountType": {
246
- "type": "string",
247
- "description": "The account type selected to filter cash flows",
248
- "enum": ["ALL", "BANK", "INTERCO"]
209
+ "type": ["string", "null"],
210
+ "description": "The account type selected to filter cash flows"
249
211
  },
250
212
  "period": {
251
213
  "description": "The period used to filter cash flows",
@@ -260,132 +222,53 @@
260
222
  "$ref": "#/definitions/ReferenceModel"
261
223
  },
262
224
  "origin": {
263
- "type": "string",
264
- "description": "Origin of a cash flow",
265
- "enum": [
266
- "BANK",
267
- "BANK_FLOAT",
268
- "BANK_INTRADAY",
269
- "BANK_SHARE",
270
- "CASH_FLOW",
271
- "CASH_INTEGRATION",
272
- "CASH_LAW",
273
- "CASH_COPY",
274
- "CASH_FEE",
275
- "CASH_INTEREST",
276
- "CASH_BALANCE",
277
- "CASH_SCENARIO",
278
- "CASH_SERIES",
279
- "BALANCING",
280
- "BORROWING",
281
- "FX",
282
- "PAYMENT",
283
- "PAYMENT_CAMT054",
284
- "PAYMENT_ERP",
285
- "PAYABLE_DRAFTS",
286
- "RECEIVABLE_DRAFTS"
287
- ]
225
+ "type": ["string", "null"],
226
+ "description": "Origin of a cash flow"
288
227
  },
289
228
  "description": {
290
- "type": "string",
291
- "description": "Description of the cash flow",
292
- "minLength": 0,
293
- "maxLength": 100
229
+ "type": ["string", "null"],
230
+ "description": "Description of the cash flow"
294
231
  },
295
232
  "reference": {
296
- "type": "string",
233
+ "type": ["string", "null"],
297
234
  "example": "123-ABC",
298
- "description": "Reference of the cash flow",
299
- "minLength": 0,
300
- "maxLength": 50
235
+ "description": "Reference of the cash flow"
301
236
  },
302
237
  "status": {
303
- "type": "string",
304
- "description": "Status of a cash flow",
305
- "enum": ["ESTIMATED", "CONFIRMED", "ACTUAL", "INTRADAY"]
238
+ "type": ["string", "null"],
239
+ "description": "Status of a cash flow"
306
240
  },
307
241
  "actualMode": {
308
- "type": "string",
309
- "description": "Select the actual mode to filter the cash flows",
310
- "enum": ["ALL", "CASHREC", "MANUAL"]
242
+ "type": ["string", "null"],
243
+ "description": "Select the actual mode to filter the cash flows"
311
244
  },
312
245
  "glStatus": {
313
- "type": "string",
314
- "description": "GL status",
315
- "enum": ["EMPTY", "NOT_BALANCED", "NOT_SENT_TO_GL", "SENT_TO_GL"]
246
+ "type": ["string", "null"],
247
+ "description": "GL status"
316
248
  }
317
249
  },
318
250
  "title": "CashFlowAggregationFilteringDto"
319
251
  },
320
252
  "CashFlowAggregationLevelsDto": {
321
- "type": "object",
253
+ "type": ["object", "null"],
322
254
  "properties": {
323
255
  "level1": {
324
- "type": "string",
325
- "description": "The first level of aggregation by the grouping criterion",
326
- "enum": [
327
- "ACCOUNT",
328
- "ACCOUNT_GROUP",
329
- "BANK",
330
- "BANK_GROUP",
331
- "COMPANY",
332
- "COMPANY_GROUP",
333
- "CURRENCY",
334
- "COUNTRY",
335
- "COUNTRY_GROUP",
336
- "FLOW_CODE",
337
- "BUDGET_CODE",
338
- "TRANSACTION_DATE",
339
- "VALUE_DATE",
340
- "ACCOUNTING_DATE"
341
- ]
256
+ "type": ["string", "null"],
257
+ "description": "The first level of aggregation by the grouping criterion"
342
258
  },
343
259
  "level2": {
344
- "type": "string",
345
- "description": "The second level of aggregation by the grouping criterion",
346
- "enum": [
347
- "ACCOUNT",
348
- "ACCOUNT_GROUP",
349
- "BANK",
350
- "BANK_GROUP",
351
- "COMPANY",
352
- "COMPANY_GROUP",
353
- "CURRENCY",
354
- "COUNTRY",
355
- "COUNTRY_GROUP",
356
- "FLOW_CODE",
357
- "BUDGET_CODE",
358
- "TRANSACTION_DATE",
359
- "VALUE_DATE",
360
- "ACCOUNTING_DATE"
361
- ]
260
+ "type": ["string", "null"],
261
+ "description": "The second level of aggregation by the grouping criterion"
362
262
  },
363
263
  "level3": {
364
- "type": "string",
365
- "description": "The third level of aggregation by the grouping criterion",
366
- "enum": [
367
- "ACCOUNT",
368
- "ACCOUNT_GROUP",
369
- "BANK",
370
- "BANK_GROUP",
371
- "COMPANY",
372
- "COMPANY_GROUP",
373
- "CURRENCY",
374
- "COUNTRY",
375
- "COUNTRY_GROUP",
376
- "FLOW_CODE",
377
- "BUDGET_CODE",
378
- "TRANSACTION_DATE",
379
- "VALUE_DATE",
380
- "ACCOUNTING_DATE"
381
- ]
264
+ "type": ["string", "null"],
265
+ "description": "The third level of aggregation by the grouping criterion"
382
266
  }
383
267
  },
384
268
  "title": "CashFlowAggregationLevelsDto"
385
269
  },
386
270
  "CashFlowAggregationRequestDto": {
387
- "type": "object",
388
- "required": ["currencyConversion", "filtering"],
271
+ "type": ["object", "null"],
389
272
  "properties": {
390
273
  "filtering": {
391
274
  "description": "Filtering",
@@ -403,8 +286,7 @@
403
286
  "title": "CashFlowAggregationRequestDto"
404
287
  },
405
288
  "CashFlowAggregationResponseDto": {
406
- "type": "object",
407
- "required": ["accountAmountAggregationTotal", "currency"],
289
+ "type": ["object", "null"],
408
290
  "properties": {
409
291
  "accountAmountAggregationTotal": {
410
292
  "description": "Calculated aggregation total of the cash flows",
@@ -422,28 +304,28 @@
422
304
  "title": "CashFlowAggregationResponseDto"
423
305
  },
424
306
  "CashFlowDateModel": {
425
- "type": "object",
307
+ "type": ["object", "null"],
426
308
  "properties": {
427
309
  "transactionDate": {
428
- "type": "string",
310
+ "type": ["string", "null"],
429
311
  "format": "date",
430
312
  "example": "2021-04-01",
431
313
  "description": "Transaction date"
432
314
  },
433
315
  "valueDate": {
434
- "type": "string",
316
+ "type": ["string", "null"],
435
317
  "format": "date",
436
318
  "example": "2021-04-02",
437
319
  "description": "Value date"
438
320
  },
439
321
  "accountingDate": {
440
- "type": "string",
322
+ "type": ["string", "null"],
441
323
  "format": "date",
442
324
  "example": "2021-04-03",
443
325
  "description": "Accounting date"
444
326
  },
445
327
  "updateDateTime": {
446
- "type": "string",
328
+ "type": ["string", "null"],
447
329
  "format": "date-time",
448
330
  "example": "2020-01-02T13:04:35Z",
449
331
  "description": "Update date time"
@@ -452,8 +334,7 @@
452
334
  "title": "CashFlowDateModel"
453
335
  },
454
336
  "CashFlowModel": {
455
- "type": "object",
456
- "required": ["account", "date", "flowAmount", "flowCode", "status"],
337
+ "type": ["object", "null"],
457
338
  "properties": {
458
339
  "account": {
459
340
  "description": "Bank account",
@@ -468,7 +349,7 @@
468
349
  "$ref": "#/definitions/ReferenceModel"
469
350
  },
470
351
  "status": {
471
- "type": "string",
352
+ "type": ["string", "null"],
472
353
  "example": "CONFIRMED",
473
354
  "description": "Cash flow status"
474
355
  },
@@ -485,16 +366,12 @@
485
366
  "$ref": "#/definitions/CashAmountModel"
486
367
  },
487
368
  "description": {
488
- "type": "string",
489
- "description": "Cash flow's description",
490
- "minLength": 0,
491
- "maxLength": 2500
369
+ "type": ["string", "null"],
370
+ "description": "Cash flow's description"
492
371
  },
493
372
  "reference": {
494
- "type": "string",
495
- "description": "Cash flow's reference",
496
- "minLength": 0,
497
- "maxLength": 250
373
+ "type": ["string", "null"],
374
+ "description": "Cash flow's reference"
498
375
  },
499
376
  "userZones": {
500
377
  "description": "User zones of the cash flow",
@@ -504,17 +381,7 @@
504
381
  "title": "CashFlowModel"
505
382
  },
506
383
  "CashFlowResponseDetailed": {
507
- "type": "object",
508
- "required": [
509
- "account",
510
- "bank",
511
- "branch",
512
- "company",
513
- "companyGlAmount",
514
- "counterpartyFlow",
515
- "flowCode",
516
- "forecastGlCountervalue"
517
- ],
384
+ "type": ["object", "null"],
518
385
  "properties": {
519
386
  "currency": {
520
387
  "example": "USD",
@@ -522,40 +389,36 @@
522
389
  "$ref": "#/definitions/ReferenceModel"
523
390
  },
524
391
  "feeAmount": {
525
- "type": "number",
392
+ "type": ["number", "null"],
526
393
  "format": "double",
527
394
  "example": 10580.123,
528
395
  "description": "Fee amount"
529
396
  },
530
397
  "interestAmount": {
531
- "type": "number",
398
+ "type": ["number", "null"],
532
399
  "format": "double",
533
400
  "example": 10580.123,
534
401
  "description": "Interest amount"
535
402
  },
536
403
  "commissionAmount": {
537
- "type": "number",
404
+ "type": ["number", "null"],
538
405
  "format": "double",
539
406
  "example": 10580.123,
540
407
  "description": "Commission amount"
541
408
  },
542
409
  "updateDateTime": {
543
- "type": "string",
410
+ "type": ["string", "null"],
544
411
  "format": "date-time",
545
412
  "example": "2021-04-02T12:12:12Z",
546
413
  "description": "Last update date of the cash flow."
547
414
  },
548
415
  "flowID": {
549
- "type": "string",
550
- "description": "Flow ID",
551
- "minLength": 0,
552
- "maxLength": 250
416
+ "type": ["string", "null"],
417
+ "description": "Flow ID"
553
418
  },
554
419
  "companyConsolidationCode": {
555
- "type": "string",
556
- "description": "Company consolidation code",
557
- "minLength": 0,
558
- "maxLength": 250
420
+ "type": ["string", "null"],
421
+ "description": "Company consolidation code"
559
422
  },
560
423
  "company": {
561
424
  "description": "Company",
@@ -578,10 +441,8 @@
578
441
  "$ref": "#/definitions/AmountResponseDTO"
579
442
  },
580
443
  "debitCreditType": {
581
- "type": "string",
582
- "description": "Type of GL",
583
- "minLength": 0,
584
- "maxLength": 250
444
+ "type": ["string", "null"],
445
+ "description": "Type of GL"
585
446
  },
586
447
  "counterpartyFlow": {
587
448
  "description": "Counterparty flow",
@@ -599,8 +460,7 @@
599
460
  "title": "CashFlowResponseDetailed"
600
461
  },
601
462
  "CashFlowSearchModel": {
602
- "type": "object",
603
- "required": ["account", "date", "flowAmount", "flowCode", "status"],
463
+ "type": ["object", "null"],
604
464
  "properties": {
605
465
  "account": {
606
466
  "description": "Bank account",
@@ -619,7 +479,7 @@
619
479
  "$ref": "#/definitions/CashFlowDateModel"
620
480
  },
621
481
  "status": {
622
- "type": "string",
482
+ "type": ["string", "null"],
623
483
  "example": "CONFIRMED",
624
484
  "description": "Cash flow status"
625
485
  },
@@ -632,32 +492,24 @@
632
492
  "$ref": "#/definitions/AmountModel"
633
493
  },
634
494
  "description": {
635
- "type": "string",
636
- "description": "Cash flow's description",
637
- "minLength": 0,
638
- "maxLength": 2500
495
+ "type": ["string", "null"],
496
+ "description": "Cash flow's description"
639
497
  },
640
498
  "reference": {
641
- "type": "string",
642
- "description": "Cash flow's reference",
643
- "minLength": 0,
644
- "maxLength": 250
499
+ "type": ["string", "null"],
500
+ "description": "Cash flow's reference"
645
501
  },
646
502
  "origin": {
647
- "type": "string",
648
- "description": "Cash flow's origin",
649
- "minLength": 0,
650
- "maxLength": 250
503
+ "type": ["string", "null"],
504
+ "description": "Cash flow's origin"
651
505
  },
652
506
  "number": {
653
- "type": "integer",
507
+ "type": ["integer", "null"],
654
508
  "format": "int32",
655
- "description": "Cash flow's number",
656
- "minimum": 0,
657
- "maximum": 250
509
+ "description": "Cash flow's number"
658
510
  },
659
511
  "glStatus": {
660
- "type": "string",
512
+ "type": ["string", "null"],
661
513
  "example": "BALANCED",
662
514
  "description": "Cash flow GL status"
663
515
  },
@@ -666,7 +518,7 @@
666
518
  "$ref": "#/definitions/UserZonesModel"
667
519
  },
668
520
  "actualMode": {
669
- "type": "string",
521
+ "type": ["string", "null"],
670
522
  "example": "Manual",
671
523
  "description": "Cash flow actual mode"
672
524
  }
@@ -674,8 +526,7 @@
674
526
  "title": "CashFlowSearchModel"
675
527
  },
676
528
  "CashFlowUpdateModel": {
677
- "type": "object",
678
- "required": ["account", "date", "flowAmount", "flowCode", "status"],
529
+ "type": ["object", "null"],
679
530
  "properties": {
680
531
  "account": {
681
532
  "description": "Bank account",
@@ -690,7 +541,7 @@
690
541
  "$ref": "#/definitions/ReferenceModel"
691
542
  },
692
543
  "status": {
693
- "type": "string",
544
+ "type": ["string", "null"],
694
545
  "example": "CONFIRMED",
695
546
  "description": "Cash flow status"
696
547
  },
@@ -707,16 +558,12 @@
707
558
  "$ref": "#/definitions/CashAmountModel"
708
559
  },
709
560
  "description": {
710
- "type": "string",
711
- "description": "Cash flow's description",
712
- "minLength": 0,
713
- "maxLength": 2500
561
+ "type": ["string", "null"],
562
+ "description": "Cash flow's description"
714
563
  },
715
564
  "reference": {
716
- "type": "string",
717
- "description": "Cash flow's reference",
718
- "minLength": 0,
719
- "maxLength": 250
565
+ "type": ["string", "null"],
566
+ "description": "Cash flow's reference"
720
567
  },
721
568
  "userZones": {
722
569
  "description": "User zones of the cash flow",
@@ -726,23 +573,21 @@
726
573
  "title": "CashFlowUpdateModel"
727
574
  },
728
575
  "CounterpartyFlowModel": {
729
- "type": "object",
730
- "required": ["company", "consolidationCode"],
576
+ "type": ["object", "null"],
731
577
  "properties": {
732
578
  "company": {
733
579
  "description": "Company",
734
580
  "$ref": "#/definitions/ReferenceModel"
735
581
  },
736
582
  "consolidationCode": {
737
- "type": "string",
583
+ "type": ["string", "null"],
738
584
  "description": "Consolidation code"
739
585
  }
740
586
  },
741
587
  "title": "CounterpartyFlowModel"
742
588
  },
743
589
  "CurrencyConversionDto": {
744
- "type": "object",
745
- "required": ["currency", "currencyRate"],
590
+ "type": ["object", "null"],
746
591
  "properties": {
747
592
  "currency": {
748
593
  "description": "Currency used for conversion",
@@ -756,24 +601,21 @@
756
601
  "title": "CurrencyConversionDto"
757
602
  },
758
603
  "CurrencyConversionRateDto": {
759
- "type": "object",
760
- "required": ["mode"],
604
+ "type": ["object", "null"],
761
605
  "properties": {
762
606
  "mode": {
763
- "type": "string",
764
- "description": "Currency rate mode to use for currency conversion",
765
- "enum": ["FIXING", "HISTORICAL"]
607
+ "type": ["string", "null"],
608
+ "description": "Currency rate mode to use for currency conversion"
766
609
  },
767
610
  "fixingDate": {
768
- "type": "string",
611
+ "type": ["string", "null"],
769
612
  "format": "date",
770
613
  "example": "2020-02-01",
771
614
  "description": "The date of the currency rate to be used if selected mode is FIXING."
772
615
  },
773
616
  "historicalDateType": {
774
- "type": "string",
775
- "description": "The dates of that type of the cash flows will be used as the currency rate datesif selected mode is HISTORICAL.",
776
- "enum": ["TRANSACTION", "VALUE", "ACCOUNTING"]
617
+ "type": ["string", "null"],
618
+ "description": "The dates of that type of the cash flows will be used as the currency rate datesif selected mode is HISTORICAL."
777
619
  },
778
620
  "type": {
779
621
  "description": "Currency rate type",
@@ -783,26 +625,14 @@
783
625
  "title": "CurrencyConversionRateDto"
784
626
  },
785
627
  "EntityFilterDto": {
786
- "type": "object",
787
- "required": ["entities", "entityType"],
628
+ "type": ["object", "null"],
788
629
  "properties": {
789
630
  "entityType": {
790
- "type": "string",
791
- "description": "The entity type to filter cash flows",
792
- "enum": [
793
- "ACCOUNT",
794
- "ACCOUNT_GROUP",
795
- "BANK",
796
- "BANK_GROUP",
797
- "COMPANY",
798
- "COMPANY_GROUP",
799
- "CURRENCY",
800
- "COUNTRY",
801
- "COUNTRY_GROUP"
802
- ]
631
+ "type": ["string", "null"],
632
+ "description": "The entity type to filter cash flows"
803
633
  },
804
634
  "entities": {
805
- "type": "array",
635
+ "type": ["array", "null"],
806
636
  "description": "The entities to filter cash flows of the specified type",
807
637
  "items": {
808
638
  "$ref": "#/definitions/ReferenceModel"
@@ -812,22 +642,21 @@
812
642
  "title": "EntityFilterDto"
813
643
  },
814
644
  "FilteringPeriodDto": {
815
- "type": "object",
645
+ "type": ["object", "null"],
816
646
  "properties": {
817
647
  "dateType": {
818
- "type": "string",
648
+ "type": ["string", "null"],
819
649
  "example": "TRANSACTION",
820
- "description": "The date type based on which the period is defined",
821
- "enum": ["TRANSACTION", "VALUE", "ACCOUNTING", "UPDATE", "CREATION"]
650
+ "description": "The date type based on which the period is defined"
822
651
  },
823
652
  "startDate": {
824
- "type": "string",
653
+ "type": ["string", "null"],
825
654
  "format": "date",
826
655
  "example": "2021-04-02",
827
656
  "description": "The start date of the filtering period"
828
657
  },
829
658
  "endDate": {
830
- "type": "string",
659
+ "type": ["string", "null"],
831
660
  "format": "date",
832
661
  "example": "2021-04-03",
833
662
  "description": "The end date of the filtering period"
@@ -836,10 +665,10 @@
836
665
  "title": "FilteringPeriodDto"
837
666
  },
838
667
  "InnerError": {
839
- "type": "object",
668
+ "type": ["object", "null"],
840
669
  "properties": {
841
670
  "code": {
842
- "type": "string",
671
+ "type": ["string", "null"],
843
672
  "example": "Invalid",
844
673
  "description": "One of a server-defined set of error codes."
845
674
  },
@@ -852,7 +681,7 @@
852
681
  "description": "An object containing more specific information than the current object about the error."
853
682
  },
854
683
  "ReferenceModel": {
855
- "type": "object",
684
+ "type": ["object", "null"],
856
685
  "properties": {
857
686
  "code": {
858
687
  "type": ["null", "string"],
@@ -870,11 +699,10 @@
870
699
  "description": "Represents possible identifiers for resource. Should be provided at least one identifier (code or uuid). In the case of providing uuid and code, uuid will be used for resolving the reference."
871
700
  },
872
701
  "ResponseUUIDModel": {
873
- "type": "object",
874
- "required": ["uuid"],
702
+ "type": ["object", "null"],
875
703
  "properties": {
876
704
  "uuid": {
877
- "type": "string",
705
+ "type": ["string", "null"],
878
706
  "format": "uuid",
879
707
  "example": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
880
708
  "description": "UUID of the created resource."
@@ -883,16 +711,15 @@
883
711
  "title": "ResponseUUIDModel"
884
712
  },
885
713
  "RestApiError": {
886
- "type": "object",
887
- "required": ["code", "message"],
714
+ "type": ["object", "null"],
888
715
  "properties": {
889
716
  "code": {
890
- "type": "string",
717
+ "type": ["string", "null"],
891
718
  "example": "Invalid",
892
719
  "description": "One of a server-defined set of error codes."
893
720
  },
894
721
  "details": {
895
- "type": "array",
722
+ "type": ["array", "null"],
896
723
  "example": [
897
724
  {
898
725
  "code": "Invalid",
@@ -910,12 +737,12 @@
910
737
  "$ref": "#/definitions/InnerError"
911
738
  },
912
739
  "message": {
913
- "type": "string",
740
+ "type": ["string", "null"],
914
741
  "example": "The request failed because it contained invalid values",
915
742
  "description": "A human-readable representation of the error."
916
743
  },
917
744
  "target": {
918
- "type": "string",
745
+ "type": ["string", "null"],
919
746
  "example": "target",
920
747
  "description": "The target of the error."
921
748
  }
@@ -924,7 +751,7 @@
924
751
  "description": "REST API Error."
925
752
  },
926
753
  "RestApiErrorResponse": {
927
- "type": "object",
754
+ "type": ["object", "null"],
928
755
  "properties": {
929
756
  "error": {
930
757
  "description": "The error object.",
@@ -939,52 +766,42 @@
939
766
  "properties": {
940
767
  "userZone1": {
941
768
  "type": ["null", "string"],
942
- "description": "Free field whose type (Alphanumeric, Numeric, Date, List) is defined in the application setup. The imported value must be consistent with the field type. And the total length across all user zone values must be of 250 characters max",
943
- "minLength": 0,
944
- "maxLength": 100
769
+ "description": "Free field whose type (Alphanumeric, Numeric, Date, List) is defined in the application setup. The imported value must be consistent with the field type. And the total length across all user zone values must be of 250 characters max"
945
770
  },
946
771
  "userZone2": {
947
772
  "type": ["null", "string"],
948
- "description": "Free field. Same behavior as field User zone 1",
949
- "minLength": 0,
950
- "maxLength": 100
773
+ "description": "Free field. Same behavior as field User zone 1"
951
774
  },
952
775
  "userZone3": {
953
776
  "type": ["null", "string"],
954
- "description": "Free field. Same behavior as field User zone 1",
955
- "minLength": 0,
956
- "maxLength": 100
777
+ "description": "Free field. Same behavior as field User zone 1"
957
778
  },
958
779
  "userZone4": {
959
780
  "type": ["null", "string"],
960
- "description": "Free field. Same behavior as field User zone 1",
961
- "minLength": 0,
962
- "maxLength": 100
781
+ "description": "Free field. Same behavior as field User zone 1"
963
782
  },
964
783
  "userZone5": {
965
784
  "type": ["null", "string"],
966
- "description": "Free field. Same behavior as field User zone 1",
967
- "minLength": 0,
968
- "maxLength": 100
785
+ "description": "Free field. Same behavior as field User zone 1"
969
786
  }
970
787
  },
971
788
  "title": "UserZonesModel"
972
789
  },
973
790
  "_links": {
974
- "type": "object",
791
+ "type": ["object", "null"],
975
792
  "properties": {
976
793
  "current": {
977
- "type": "string",
794
+ "type": ["string", "null"],
978
795
  "example": "https://host/gateway/api/resources?page.limit=10&page.offset=10",
979
796
  "description": "Current page."
980
797
  },
981
798
  "next": {
982
- "type": "string",
799
+ "type": ["string", "null"],
983
800
  "example": "https://host/gateway/api/resources?page.limit=10&page.offset=20",
984
801
  "description": "Next page."
985
802
  },
986
803
  "prev": {
987
- "type": "string",
804
+ "type": ["string", "null"],
988
805
  "example": "https://host/gateway/api/resources?page.limit=10&page.offset=0",
989
806
  "description": "Previous page."
990
807
  }
@@ -992,55 +809,51 @@
992
809
  "title": "_links"
993
810
  },
994
811
  "_metadata": {
995
- "type": "object",
812
+ "type": ["object", "null"],
996
813
  "properties": {
997
814
  "links": {
998
815
  "description": "Links for pages.",
999
816
  "$ref": "#/definitions/_links"
1000
817
  },
1001
818
  "numberOfTotalResults": {
1002
- "type": "integer",
819
+ "type": ["integer", "null"],
1003
820
  "format": "int64",
1004
821
  "example": 100,
1005
822
  "description": "The number of total records.",
1006
- "minimum": 0.0,
1007
823
  "exclusiveMinimum": false
1008
824
  },
1009
825
  "pageLimit": {
1010
- "type": "integer",
826
+ "type": ["integer", "null"],
1011
827
  "format": "int32",
1012
828
  "example": 100,
1013
829
  "description": "Limit the number of records per page. By default 100.",
1014
- "minimum": 1.0,
1015
830
  "exclusiveMinimum": false
1016
831
  },
1017
832
  "pageOffset": {
1018
- "type": "integer",
833
+ "type": ["integer", "null"],
1019
834
  "format": "int32",
1020
835
  "example": 0,
1021
836
  "description": "Page Offset means the number of records you want to skip before starting reading. By default 0.",
1022
- "minimum": 0.0,
1023
837
  "exclusiveMinimum": false
1024
838
  },
1025
839
  "pageResults": {
1026
- "type": "integer",
840
+ "type": ["integer", "null"],
1027
841
  "format": "int64",
1028
842
  "example": 10,
1029
843
  "description": "The number of records in current page.",
1030
- "minimum": 0.0,
1031
844
  "exclusiveMinimum": false
1032
845
  }
1033
846
  },
1034
847
  "title": "_metadata"
1035
848
  },
1036
849
  "_pageOfCashFlowSearchModel": {
1037
- "type": "object",
850
+ "type": ["object", "null"],
1038
851
  "properties": {
1039
852
  "metadata": {
1040
853
  "$ref": "#/definitions/_metadata"
1041
854
  },
1042
855
  "results": {
1043
- "type": "array",
856
+ "type": ["array", "null"],
1044
857
  "items": {
1045
858
  "$ref": "#/definitions/CashFlowSearchModel"
1046
859
  }