@orchesty/connector-wflow 1.0.3 → 1.0.5

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 (114) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/coverage/clover.xml +278 -162
  3. package/coverage/coverage-final.json +17 -10
  4. package/coverage/lcov-report/index.html +21 -21
  5. package/coverage/lcov-report/src/Batch/WflowSubscribeWebhookBatch.ts.html +19 -16
  6. package/coverage/lcov-report/src/Batch/WflowUnsubscribeWebhookBatch.ts.html +18 -15
  7. package/coverage/lcov-report/src/Batch/index.html +7 -7
  8. package/coverage/lcov-report/src/Connector/WflowGetDocumentConnector.ts.html +13 -16
  9. package/coverage/lcov-report/src/Connector/WflowGetDocumentMainFileConnector.ts.html +27 -15
  10. package/coverage/lcov-report/src/Connector/WflowGetDocumentTypesConnector.ts.html +9 -9
  11. package/coverage/lcov-report/src/Connector/WflowGetOrganizationsConnector.ts.html +9 -9
  12. package/coverage/lcov-report/src/Connector/WflowPatchAccountingRulesConnector.ts.html +244 -0
  13. package/coverage/lcov-report/src/Connector/WflowPatchChartOfAccountsConnector.ts.html +211 -0
  14. package/coverage/lcov-report/src/Connector/WflowPatchContractsConnector.ts.html +211 -0
  15. package/coverage/lcov-report/src/Connector/WflowPatchCostCentersConnector.ts.html +211 -0
  16. package/coverage/lcov-report/src/Connector/WflowPatchSeriesConnector.ts.html +268 -0
  17. package/coverage/lcov-report/src/Connector/WflowPatchVatControlStatementLinesConnector.ts.html +211 -0
  18. package/coverage/lcov-report/src/Connector/WflowPatchVatReturnLinesConnector.ts.html +214 -0
  19. package/coverage/lcov-report/src/Connector/WflowPutDocumentConnector.ts.html +14 -23
  20. package/coverage/lcov-report/src/Connector/WflowUpdateDocumentStateConnector.ts.html +14 -23
  21. package/coverage/lcov-report/src/Connector/index.html +121 -16
  22. package/coverage/lcov-report/src/WflowApplication.ts.html +36 -36
  23. package/coverage/lcov-report/src/index.html +1 -1
  24. package/coverage/lcov-report/test/dataProvider.ts.html +80 -35
  25. package/coverage/lcov-report/test/index.html +5 -5
  26. package/coverage/lcov.info +384 -188
  27. package/dist/Batch/WflowSubscribeWebhookBatch.js +5 -2
  28. package/dist/Batch/WflowUnsubscribeWebhookBatch.js +5 -2
  29. package/dist/Connector/WflowGetDocumentConnector.js +1 -2
  30. package/dist/Connector/WflowGetDocumentMainFileConnector.d.ts +4 -1
  31. package/dist/Connector/WflowGetDocumentMainFileConnector.js +3 -3
  32. package/dist/Connector/WflowPatchAccountingRulesConnector.d.ts +17 -0
  33. package/dist/Connector/WflowPatchAccountingRulesConnector.js +24 -0
  34. package/dist/Connector/WflowPatchChartOfAccountsConnector.d.ts +15 -0
  35. package/dist/Connector/WflowPatchChartOfAccountsConnector.js +24 -0
  36. package/dist/Connector/WflowPatchContractsConnector.d.ts +15 -0
  37. package/dist/Connector/WflowPatchContractsConnector.js +24 -0
  38. package/dist/Connector/WflowPatchCostCentersConnector.d.ts +15 -0
  39. package/dist/Connector/WflowPatchCostCentersConnector.js +24 -0
  40. package/dist/Connector/WflowPatchSeriesConnector.d.ts +19 -0
  41. package/dist/Connector/WflowPatchSeriesConnector.js +24 -0
  42. package/dist/Connector/WflowPatchVatControlStatementLinesConnector.d.ts +15 -0
  43. package/dist/Connector/WflowPatchVatControlStatementLinesConnector.js +24 -0
  44. package/dist/Connector/WflowPatchVatReturnLinesConnector.d.ts +16 -0
  45. package/dist/Connector/WflowPatchVatReturnLinesConnector.js +24 -0
  46. package/dist/Connector/WflowPutDocumentConnector.js +1 -2
  47. package/dist/Connector/WflowUpdateDocumentStateConnector.js +2 -3
  48. package/dist/package.json +1 -1
  49. package/package.json +1 -1
  50. package/src/Batch/WflowSubscribeWebhookBatch.ts +6 -4
  51. package/src/Batch/WflowUnsubscribeWebhookBatch.ts +6 -4
  52. package/src/Connector/WflowGetDocumentConnector.ts +4 -5
  53. package/src/Connector/WflowGetDocumentMainFileConnector.ts +11 -7
  54. package/src/Connector/WflowPatchAccountingRulesConnector.ts +53 -0
  55. package/src/Connector/WflowPatchChartOfAccountsConnector.ts +42 -0
  56. package/src/Connector/WflowPatchContractsConnector.ts +42 -0
  57. package/src/Connector/WflowPatchCostCentersConnector.ts +42 -0
  58. package/src/Connector/WflowPatchSeriesConnector.ts +61 -0
  59. package/src/Connector/WflowPatchVatControlStatementLinesConnector.ts +42 -0
  60. package/src/Connector/WflowPatchVatReturnLinesConnector.ts +43 -0
  61. package/src/Connector/WflowPutDocumentConnector.ts +4 -7
  62. package/src/Connector/WflowUpdateDocumentStateConnector.ts +5 -8
  63. package/src/Connector/__tests__/Data/WflowGetDocumentMainFileConnector/output.json +3 -1
  64. package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/batch-input.json +19 -0
  65. package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/batch-mock.json +5 -0
  66. package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/batch-output.json +19 -0
  67. package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/input.json +11 -0
  68. package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/mock.json +5 -0
  69. package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/output.json +11 -0
  70. package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/batch-input.json +17 -0
  71. package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/batch-mock.json +5 -0
  72. package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/batch-output.json +17 -0
  73. package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/input.json +10 -0
  74. package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/mock.json +5 -0
  75. package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/output.json +10 -0
  76. package/src/Connector/__tests__/Data/WflowPatchContractsConnector/batch-input.json +17 -0
  77. package/src/Connector/__tests__/Data/WflowPatchContractsConnector/batch-mock.json +5 -0
  78. package/src/Connector/__tests__/Data/WflowPatchContractsConnector/batch-output.json +17 -0
  79. package/src/Connector/__tests__/Data/WflowPatchContractsConnector/input.json +10 -0
  80. package/src/Connector/__tests__/Data/WflowPatchContractsConnector/mock.json +5 -0
  81. package/src/Connector/__tests__/Data/WflowPatchContractsConnector/output.json +10 -0
  82. package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/batch-input.json +17 -0
  83. package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/batch-mock.json +5 -0
  84. package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/batch-output.json +17 -0
  85. package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/input.json +10 -0
  86. package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/mock.json +5 -0
  87. package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/output.json +10 -0
  88. package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/batch-input.json +19 -0
  89. package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/batch-mock.json +5 -0
  90. package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/batch-output.json +19 -0
  91. package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/input.json +11 -0
  92. package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/mock.json +5 -0
  93. package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/output.json +11 -0
  94. package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/batch-input.json +17 -0
  95. package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/batch-mock.json +5 -0
  96. package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/batch-output.json +17 -0
  97. package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/input.json +10 -0
  98. package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/mock.json +5 -0
  99. package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/output.json +10 -0
  100. package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/batch-input.json +19 -0
  101. package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/batch-mock.json +5 -0
  102. package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/batch-output.json +19 -0
  103. package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/input.json +11 -0
  104. package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/mock.json +5 -0
  105. package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/output.json +11 -0
  106. package/src/Connector/__tests__/WflowPatchAccountingRulesConnector.ts +21 -0
  107. package/src/Connector/__tests__/WflowPatchChartOfAccountsConnector.ts +21 -0
  108. package/src/Connector/__tests__/WflowPatchContractsConnector.ts +21 -0
  109. package/src/Connector/__tests__/WflowPatchCostCentersConnector.ts +21 -0
  110. package/src/Connector/__tests__/WflowPatchSeriesConnector.ts +21 -0
  111. package/src/Connector/__tests__/WflowPatchVatControlStatementLinesConnector.ts +21 -0
  112. package/src/Connector/__tests__/WflowPatchVatReturnLinesConnector.ts +21 -0
  113. package/test/dataProvider.ts +15 -0
  114. package/tsconfig.prod.tsbuildinfo +1 -1
@@ -0,0 +1,42 @@
1
+ import AConnector from '@orchesty/nodejs-sdk/dist/lib/Connector/AConnector';
2
+ import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
3
+ import ProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/ProcessDto';
4
+ import WflowApplication, { NAME as WFLOW_APP_NAME } from '../WflowApplication';
5
+
6
+ export const NAME = `${WFLOW_APP_NAME}-patch-contracts-connector`;
7
+
8
+ export default class WflowPatchContractsConnector extends AConnector {
9
+
10
+ public getName(): string {
11
+ return NAME;
12
+ }
13
+
14
+ public async processAction(dto: ProcessDto<IInput | IInput[]>): Promise<ProcessDto<IOutput>> {
15
+ const data = dto.getJsonData();
16
+ const application = this.getApplication<WflowApplication>();
17
+ const applicationInstall = await this.getApplicationInstallFromProcess(dto);
18
+
19
+ const requestDto = application.getRequestDto(
20
+ dto,
21
+ applicationInstall,
22
+ HttpMethods.PATCH,
23
+ `/${application.getOrganization(applicationInstall)}/registers/contracts`,
24
+ Array.isArray(data) ? data : [data],
25
+ );
26
+
27
+ await this.getSender().send(requestDto, [200]);
28
+
29
+ return dto;
30
+ }
31
+
32
+ }
33
+
34
+ export interface IInput {
35
+ id?: string | null;
36
+ externalId?: string | null;
37
+ code?: string | null;
38
+ description?: string | null;
39
+ isValid?: boolean;
40
+ }
41
+
42
+ export type IOutput = IInput | IInput[];
@@ -0,0 +1,42 @@
1
+ import AConnector from '@orchesty/nodejs-sdk/dist/lib/Connector/AConnector';
2
+ import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
3
+ import ProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/ProcessDto';
4
+ import WflowApplication, { NAME as WFLOW_APP_NAME } from '../WflowApplication';
5
+
6
+ export const NAME = `${WFLOW_APP_NAME}-patch-cost-centers-connector`;
7
+
8
+ export default class WflowPatchCostCentersConnector extends AConnector {
9
+
10
+ public getName(): string {
11
+ return NAME;
12
+ }
13
+
14
+ public async processAction(dto: ProcessDto<IInput | IInput[]>): Promise<ProcessDto<IOutput>> {
15
+ const data = dto.getJsonData();
16
+ const application = this.getApplication<WflowApplication>();
17
+ const applicationInstall = await this.getApplicationInstallFromProcess(dto);
18
+
19
+ const requestDto = application.getRequestDto(
20
+ dto,
21
+ applicationInstall,
22
+ HttpMethods.PATCH,
23
+ `/${application.getOrganization(applicationInstall)}/registers/costcenters`,
24
+ Array.isArray(data) ? data : [data],
25
+ );
26
+
27
+ await this.getSender().send(requestDto, [200]);
28
+
29
+ return dto;
30
+ }
31
+
32
+ }
33
+
34
+ export interface IInput {
35
+ id?: string | null;
36
+ externalId?: string | null;
37
+ code?: string | null;
38
+ description?: string | null;
39
+ isValid?: boolean;
40
+ }
41
+
42
+ export type IOutput = IInput | IInput[];
@@ -0,0 +1,61 @@
1
+ import AConnector from '@orchesty/nodejs-sdk/dist/lib/Connector/AConnector';
2
+ import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
3
+ import ProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/ProcessDto';
4
+ import WflowApplication, { NAME as WFLOW_APP_NAME } from '../WflowApplication';
5
+
6
+ export const NAME = `${WFLOW_APP_NAME}-patch-series-connector`;
7
+
8
+ export default class WflowPatchSeriesConnector extends AConnector {
9
+
10
+ public getName(): string {
11
+ return NAME;
12
+ }
13
+
14
+ public async processAction(dto: ProcessDto<IInput | IInput[]>): Promise<ProcessDto<IOutput>> {
15
+ const data = dto.getJsonData();
16
+ const application = this.getApplication<WflowApplication>();
17
+ const applicationInstall = await this.getApplicationInstallFromProcess(dto);
18
+
19
+ const requestDto = application.getRequestDto(
20
+ dto,
21
+ applicationInstall,
22
+ HttpMethods.PATCH,
23
+ `/${application.getOrganization(applicationInstall)}/registers/series`,
24
+ Array.isArray(data) ? data : [data],
25
+ );
26
+
27
+ await this.getSender().send(requestDto, [200]);
28
+
29
+ return dto;
30
+ }
31
+
32
+ }
33
+
34
+ export type DocumentKind =
35
+ | 'IncomingInvoice'
36
+ | 'OutgoingInvoice'
37
+ | 'ExpenditureCashSlip'
38
+ | 'SupplierOrder'
39
+ | 'CustomerOrder'
40
+ | 'Other'
41
+ | 'Contract'
42
+ | 'IncomeCashReceipt';
43
+
44
+ export type InvoiceType =
45
+ | 'TaxInvoice'
46
+ | 'CreditNote'
47
+ | 'DebitNote'
48
+ | 'Proforma'
49
+ | 'TaxInvoicePayment';
50
+
51
+ export interface IInput {
52
+ id?: string | null;
53
+ externalId?: string | null;
54
+ code?: string | null;
55
+ description?: string | null;
56
+ isValid?: boolean;
57
+ kind?: DocumentKind;
58
+ invoiceType?: InvoiceType;
59
+ }
60
+
61
+ export type IOutput = IInput | IInput[];
@@ -0,0 +1,42 @@
1
+ import AConnector from '@orchesty/nodejs-sdk/dist/lib/Connector/AConnector';
2
+ import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
3
+ import ProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/ProcessDto';
4
+ import WflowApplication, { NAME as WFLOW_APP_NAME } from '../WflowApplication';
5
+
6
+ export const NAME = `${WFLOW_APP_NAME}-patch-vat-control-statement-lines-connector`;
7
+
8
+ export default class WflowPatchVatControlStatementLinesConnector extends AConnector {
9
+
10
+ public getName(): string {
11
+ return NAME;
12
+ }
13
+
14
+ public async processAction(dto: ProcessDto<IInput | IInput[]>): Promise<ProcessDto<IOutput>> {
15
+ const data = dto.getJsonData();
16
+ const application = this.getApplication<WflowApplication>();
17
+ const applicationInstall = await this.getApplicationInstallFromProcess(dto);
18
+
19
+ const requestDto = application.getRequestDto(
20
+ dto,
21
+ applicationInstall,
22
+ HttpMethods.PATCH,
23
+ `/${application.getOrganization(applicationInstall)}/registers/vatcontrolstatementlines`,
24
+ Array.isArray(data) ? data : [data],
25
+ );
26
+
27
+ await this.getSender().send(requestDto, [200]);
28
+
29
+ return dto;
30
+ }
31
+
32
+ }
33
+
34
+ export interface IInput {
35
+ id?: string | null;
36
+ externalId?: string | null;
37
+ code?: string | null;
38
+ description?: string | null;
39
+ isValid?: boolean;
40
+ }
41
+
42
+ export type IOutput = IInput | IInput[];
@@ -0,0 +1,43 @@
1
+ import AConnector from '@orchesty/nodejs-sdk/dist/lib/Connector/AConnector';
2
+ import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
3
+ import ProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/ProcessDto';
4
+ import WflowApplication, { NAME as WFLOW_APP_NAME } from '../WflowApplication';
5
+
6
+ export const NAME = `${WFLOW_APP_NAME}-patch-vat-return-lines-connector`;
7
+
8
+ export default class WflowPatchVatReturnLinesConnector extends AConnector {
9
+
10
+ public getName(): string {
11
+ return NAME;
12
+ }
13
+
14
+ public async processAction(dto: ProcessDto<IInput | IInput[]>): Promise<ProcessDto<IOutput>> {
15
+ const data = dto.getJsonData();
16
+ const application = this.getApplication<WflowApplication>();
17
+ const applicationInstall = await this.getApplicationInstallFromProcess(dto);
18
+
19
+ const requestDto = application.getRequestDto(
20
+ dto,
21
+ applicationInstall,
22
+ HttpMethods.PATCH,
23
+ `/${application.getOrganization(applicationInstall)}/registers/vatreturnlines`,
24
+ Array.isArray(data) ? data : [data],
25
+ );
26
+
27
+ await this.getSender().send(requestDto, [200]);
28
+
29
+ return dto;
30
+ }
31
+
32
+ }
33
+
34
+ export interface IInput {
35
+ id?: string | null;
36
+ externalId?: string | null;
37
+ code?: string | null;
38
+ description?: string | null;
39
+ isValid?: boolean;
40
+ reverseCharge?: boolean;
41
+ }
42
+
43
+ export type IOutput = IInput | IInput[];
@@ -1,7 +1,7 @@
1
1
  import AConnector from '@orchesty/nodejs-sdk/dist/lib/Connector/AConnector';
2
2
  import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
3
3
  import ProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/ProcessDto';
4
- import { NAME as WFLOW_APP_NAME, ORGANIZATION, ORGANIZATION_FORM } from '../WflowApplication';
4
+ import WflowApplication, { NAME as WFLOW_APP_NAME } from '../WflowApplication';
5
5
 
6
6
  export const NAME = `${WFLOW_APP_NAME}-put-document-connector`;
7
7
 
@@ -12,7 +12,7 @@ export default class WflowPutDocumentConnector extends AConnector {
12
12
  }
13
13
 
14
14
  public async processAction(dto: ProcessDto<IInput>): Promise<ProcessDto<IOutput>> {
15
- const app = this.getApplication();
15
+ const app = this.getApplication<WflowApplication>();
16
16
  const appInstall = await this.getApplicationInstallFromProcess(dto);
17
17
  const { externalId, ignoreLock, setAsFilled } = dto.getJsonData();
18
18
 
@@ -21,14 +21,11 @@ export default class WflowPutDocumentConnector extends AConnector {
21
21
  if (ignoreLock) query.set('ignoreLock', ignoreLock.toString());
22
22
  if (setAsFilled) query.set('setAsFilled', setAsFilled.toString());
23
23
 
24
- const organization: string | undefined
25
- = appInstall.getSettings()[ORGANIZATION_FORM]?.[ORGANIZATION];
26
-
27
- const request = await app.getRequestDto(
24
+ const request = app.getRequestDto(
28
25
  dto,
29
26
  appInstall,
30
27
  HttpMethods.PUT,
31
- `/${organization}/documents${query.size ? `?${query}` : ''}`,
28
+ `/${app.getOrganization(appInstall)}/documents${query.size ? `?${query}` : ''}`,
32
29
  dto.getJsonData(),
33
30
  );
34
31
 
@@ -1,7 +1,7 @@
1
1
  import AConnector from '@orchesty/nodejs-sdk/dist/lib/Connector/AConnector';
2
2
  import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
3
3
  import ProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/ProcessDto';
4
- import { NAME as WFLOW_APP_NAME, ORGANIZATION, ORGANIZATION_FORM } from '../WflowApplication';
4
+ import WflowApplication, { NAME as WFLOW_APP_NAME } from '../WflowApplication';
5
5
 
6
6
  export const NAME = `${WFLOW_APP_NAME}-update-document-state-connector`;
7
7
 
@@ -12,18 +12,15 @@ export default class WflowUpdateDocumentStateConnector extends AConnector {
12
12
  }
13
13
 
14
14
  public async processAction(dto: ProcessDto<IInput>): Promise<ProcessDto<IOutput>> {
15
- const app = this.getApplication();
16
- const appInstall = await this.getApplicationInstallFromProcess(dto);
17
15
  const { documentId } = dto.getJsonData();
16
+ const app = this.getApplication<WflowApplication>();
17
+ const appInstall = await this.getApplicationInstallFromProcess(dto);
18
18
 
19
- const organization: string | undefined
20
- = appInstall.getSettings()[ORGANIZATION_FORM]?.[ORGANIZATION];
21
-
22
- const request = await app.getRequestDto(
19
+ const request = app.getRequestDto(
23
20
  dto,
24
21
  appInstall,
25
22
  HttpMethods.PUT,
26
- `/${organization}/documents/${documentId}/task/Export/processed`,
23
+ `/${app.getOrganization(appInstall)}/documents/${documentId}/task/Export/processed`,
27
24
  );
28
25
 
29
26
  await this.getSender().send(request, [200]);
@@ -2,5 +2,7 @@
2
2
  "headers": {
3
3
  "user": "TestUser"
4
4
  },
5
- "data": "%PDF-1.1\n1 0 obj\n<< /Type /Catalog /Pages 2 0 R >>\nendobj\n\n2 0 obj\n<< /Type /Pages /Kids [3 0 R] /Count 1 >>\nendobj\n\n3 0 obj\n<< /Type /Page /Parent 2 0 R /Resources << /Font << /F1 4 0 R >> >> /Contents 5 0 R /MediaBox [0 0 595 842] >>\nendobj\n\n4 0 obj\n<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>\nendobj\n\n5 0 obj\n<< /Length 40 >>\nstream\nBT /F1 24 Tf 250 409 Td (Example) Tj ET\nendstream\nendobj\n\nxref\n0 6\n0000000000 65535 f \n0000000009 00000 n \n0000000058 00000 n \n0000000116 00000 n \n0000000246 00000 n \n0000000315 00000 n \ntrailer\n<< /Size 6 /Root 1 0 R >>\nstartxref\n403\n%%EOF"
5
+ "data": {
6
+ "file": "IiVQREYtMS4xXG4xIDAgb2JqXG48PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj5cbmVuZG9ialxuXG4yIDAgb2JqXG48PCAvVHlwZSAvUGFnZXMgL0tpZHMgWzMgMCBSXSAvQ291bnQgMSA+PlxuZW5kb2JqXG5cbjMgMCBvYmpcbjw8IC9UeXBlIC9QYWdlIC9QYXJlbnQgMiAwIFIgL1Jlc291cmNlcyA8PCAvRm9udCA8PCAvRjEgNCAwIFIgPj4gPj4gL0NvbnRlbnRzIDUgMCBSIC9NZWRpYUJveCBbMCAwIDU5NSA4NDJdID4+XG5lbmRvYmpcblxuNCAwIG9ialxuPDwgL1R5cGUgL0ZvbnQgL1N1YnR5cGUgL1R5cGUxIC9CYXNlRm9udCAvSGVsdmV0aWNhID4+XG5lbmRvYmpcblxuNSAwIG9ialxuPDwgL0xlbmd0aCA0MCA+Plxuc3RyZWFtXG5CVCAvRjEgMjQgVGYgMjUwIDQwOSBUZCAoRXhhbXBsZSkgVGogRVRcbmVuZHN0cmVhbVxuZW5kb2JqXG5cbnhyZWZcbjAgNlxuMDAwMDAwMDAwMCA2NTUzNSBmIFxuMDAwMDAwMDAwOSAwMDAwMCBuIFxuMDAwMDAwMDA1OCAwMDAwMCBuIFxuMDAwMDAwMDExNiAwMDAwMCBuIFxuMDAwMDAwMDI0NiAwMDAwMCBuIFxuMDAwMDAwMDMxNSAwMDAwMCBuIFxudHJhaWxlclxuPDwgL1NpemUgNiAvUm9vdCAxIDAgUiA+Plxuc3RhcnR4cmVmXG40MDNcbiUlRU9GIg=="
7
+ }
6
8
  }
@@ -0,0 +1,19 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "code": "AAAA",
8
+ "description": "aaaa",
9
+ "isValid": true,
10
+ "kind": "IncomingInvoice"
11
+ },
12
+ {
13
+ "code": "BBBB",
14
+ "description": "bbbb",
15
+ "isValid": true,
16
+ "kind": "OutgoingInvoice"
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "http": "PATCH https://api.wflow.com/api/test/registers/accountingrules",
3
+ "code": 200,
4
+ "body": ""
5
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "code": "AAAA",
8
+ "description": "aaaa",
9
+ "isValid": true,
10
+ "kind": "IncomingInvoice"
11
+ },
12
+ {
13
+ "code": "BBBB",
14
+ "description": "bbbb",
15
+ "isValid": true,
16
+ "kind": "OutgoingInvoice"
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "code": "AAAA",
7
+ "description": "aaaa",
8
+ "isValid": true,
9
+ "kind": "IncomingInvoice"
10
+ }
11
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "http": "PATCH https://api.wflow.com/api/test/registers/accountingrules",
3
+ "code": 200,
4
+ "body": ""
5
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "code": "AAAA",
7
+ "description": "aaaa",
8
+ "isValid": true,
9
+ "kind": "IncomingInvoice"
10
+ }
11
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "code": "AAA",
8
+ "description": "AAA",
9
+ "isValid": true
10
+ },
11
+ {
12
+ "code": "BBB",
13
+ "description": "BBB",
14
+ "isValid": true
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "http": "PATCH https://api.wflow.com/api/test/registers/chartofaccounts",
3
+ "code": 200,
4
+ "body": ""
5
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "code": "AAA",
8
+ "description": "AAA",
9
+ "isValid": true
10
+ },
11
+ {
12
+ "code": "BBB",
13
+ "description": "BBB",
14
+ "isValid": true
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "code": "AAA",
7
+ "description": "AAA",
8
+ "isValid": true
9
+ }
10
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "http": "PATCH https://api.wflow.com/api/test/registers/chartofaccounts",
3
+ "code": 200,
4
+ "body": ""
5
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "code": "AAA",
7
+ "description": "AAA",
8
+ "isValid": true
9
+ }
10
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "code": "AAAA",
8
+ "description": "aaaa",
9
+ "isValid": true
10
+ },
11
+ {
12
+ "code": "BBBB",
13
+ "description": "bbbb",
14
+ "isValid": true
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "http": "PATCH https://api.wflow.com/api/test/registers/contracts",
3
+ "code": 200,
4
+ "body": ""
5
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "code": "AAAA",
8
+ "description": "aaaa",
9
+ "isValid": true
10
+ },
11
+ {
12
+ "code": "BBBB",
13
+ "description": "bbbb",
14
+ "isValid": true
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "code": "AAAA",
7
+ "description": "aaaa",
8
+ "isValid": true
9
+ }
10
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "http": "PATCH https://api.wflow.com/api/test/registers/contracts",
3
+ "code": 200,
4
+ "body": ""
5
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "code": "AAAA",
7
+ "description": "aaaa",
8
+ "isValid": true
9
+ }
10
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "code": "ADMIN",
8
+ "description": "Admin",
9
+ "isValid": true
10
+ },
11
+ {
12
+ "code": "CENTRAL",
13
+ "description": "Centrala",
14
+ "isValid": true
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "http": "PATCH https://api.wflow.com/api/test/registers/costcenters",
3
+ "code": 200,
4
+ "body": ""
5
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "code": "ADMIN",
8
+ "description": "Admin",
9
+ "isValid": true
10
+ },
11
+ {
12
+ "code": "CENTRAL",
13
+ "description": "Centrala",
14
+ "isValid": true
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "code": "ADMIN",
7
+ "description": "Admin",
8
+ "isValid": true
9
+ }
10
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "http": "PATCH https://api.wflow.com/api/test/registers/costcenters",
3
+ "code": 200,
4
+ "body": ""
5
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "code": "ADMIN",
7
+ "description": "Admin",
8
+ "isValid": true
9
+ }
10
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "code": "DD",
8
+ "description": "Test series",
9
+ "isValid": true,
10
+ "kind": "IncomingInvoice"
11
+ },
12
+ {
13
+ "code": "EE",
14
+ "description": "Second series",
15
+ "isValid": true,
16
+ "kind": "OutgoingInvoice"
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "http": "PATCH https://api.wflow.com/api/test/registers/series",
3
+ "code": 200,
4
+ "body": ""
5
+ }