@chift/chift-nodejs 1.0.8 → 1.0.9
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.
- package/.eslintcache +1 -0
- package/.github/workflows/ci.yml +2 -1
- package/CHANGELOG.md +4 -0
- package/coverage/clover.xml +1645 -0
- package/coverage/coverage-final.json +19 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +146 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/helpers/index.html +131 -0
- package/coverage/lcov-report/src/helpers/openapi.ts.html +151 -0
- package/coverage/lcov-report/src/helpers/settings.ts.html +94 -0
- package/coverage/lcov-report/src/index.html +116 -0
- package/coverage/lcov-report/src/index.ts.html +88 -0
- package/coverage/lcov-report/src/modules/accounting.ts.html +1156 -0
- package/coverage/lcov-report/src/modules/api.ts.html +190 -0
- package/coverage/lcov-report/src/modules/consumer.ts.html +616 -0
- package/coverage/lcov-report/src/modules/consumers.ts.html +331 -0
- package/coverage/lcov-report/src/modules/custom.ts.html +193 -0
- package/coverage/lcov-report/src/modules/datastores.ts.html +142 -0
- package/coverage/lcov-report/src/modules/ecommerce.ts.html +331 -0
- package/coverage/lcov-report/src/modules/flow.ts.html +589 -0
- package/coverage/lcov-report/src/modules/index.html +326 -0
- package/coverage/lcov-report/src/modules/integrations.ts.html +151 -0
- package/coverage/lcov-report/src/modules/internalApi.ts.html +586 -0
- package/coverage/lcov-report/src/modules/invoicing.ts.html +391 -0
- package/coverage/lcov-report/src/modules/pos.ts.html +421 -0
- package/coverage/lcov-report/src/modules/sync.ts.html +316 -0
- package/coverage/lcov-report/src/modules/syncs.ts.html +169 -0
- package/coverage/lcov-report/src/modules/webhooks.ts.html +343 -0
- package/coverage/lcov.info +1976 -0
- package/dist/src/modules/accounting.d.ts +24 -27
- package/dist/src/modules/accounting.js +31 -76
- package/dist/src/modules/api.d.ts +28022 -2110
- package/dist/src/modules/consumer.d.ts +64 -413
- package/dist/src/modules/consumer.js +0 -10
- package/dist/src/modules/consumers.d.ts +332 -2097
- package/dist/src/modules/ecommerce.d.ts +0 -8
- package/dist/src/modules/ecommerce.js +0 -28
- package/dist/src/modules/flow.js +1 -1
- package/dist/src/modules/pos.d.ts +1 -3
- package/dist/src/modules/pos.js +0 -7
- package/dist/src/modules/sync.d.ts +268 -1680
- package/dist/src/modules/syncs.d.ts +27677 -8
- package/dist/src/modules/syncs.js +0 -10
- package/dist/test/modules/accounting.test.js +11 -28
- package/dist/test/modules/ecommerce.test.js +7 -34
- package/dist/test/modules/flow.test.d.ts +1 -0
- package/dist/test/modules/flow.test.js +69 -0
- package/dist/test/modules/pos.test.js +5 -10
- package/package.json +1 -1
- package/src/modules/integrations.ts +4 -2
|
@@ -8,51 +8,48 @@ type getInvoicesByTypeWithMultiplePlansParams = Omit<operations['accounting_get_
|
|
|
8
8
|
type getInvoicesByTypeParams = Omit<operations['accounting_get_invoices_by_type']['parameters']['query'], 'page' | 'size'>;
|
|
9
9
|
type getOutstandingsParams = Omit<operations['accounting_get_outstandings']['parameters']['query'], 'page' | 'size'>;
|
|
10
10
|
declare const accountingFactory: {
|
|
11
|
-
getAnalyticPlans(
|
|
12
|
-
getClients(
|
|
11
|
+
getAnalyticPlans(): RequestData<components['schemas']['AnalyticPlanItem'][]>;
|
|
12
|
+
getClients(): RequestData<components['schemas']['ClientItemOut'][]>;
|
|
13
13
|
createClient(client: components['schemas']['ClientItemIn'], params: operations['accounting_create_client']['parameters']['query']): RequestData<components['schemas']['ClientItemOut']>;
|
|
14
|
-
getClient(clientId: string
|
|
15
|
-
updateClient(clientId: string, client: components['schemas']['ClientItemUpdate']
|
|
16
|
-
getSuppliers(
|
|
14
|
+
getClient(clientId: string): RequestData<components['schemas']['ClientItemOut']>;
|
|
15
|
+
updateClient(clientId: string, client: components['schemas']['ClientItemUpdate']): RequestData<components['schemas']['ClientItemOut']>;
|
|
16
|
+
getSuppliers(): RequestData<components['schemas']['SupplierItemOut'][]>;
|
|
17
17
|
createSupplier(supplier: components['schemas']['SupplierItemIn'], params: operations['accounting_create_supplier']['parameters']['query']): RequestData<components['schemas']['SupplierItemOut']>;
|
|
18
|
-
getSupplier(supplierId: string
|
|
19
|
-
updateSupplier(supplierId: string, supplier: components['schemas']['SupplierItemUpdate']
|
|
18
|
+
getSupplier(supplierId: string): RequestData<components['schemas']['SupplierItemOut']>;
|
|
19
|
+
updateSupplier(supplierId: string, supplier: components['schemas']['SupplierItemUpdate']): RequestData<components['schemas']['SupplierItemOut']>;
|
|
20
20
|
createInvoice(invoice: components['schemas']['InvoiceItemInMonoAnalyticPlan'], params: operations['accounting_create_invoice']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan']>;
|
|
21
21
|
createInvoiceWithMultiplePlans(invoice: components['schemas']['InvoiceItemInMultiAnalyticPlans'], params: operations['accounting_create_invoice_multiple_plans']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans']>;
|
|
22
22
|
getInvoicesByType(invoice_type: components['schemas']['app__routers__accounting__InvoiceType'], params: getInvoicesByTypeParams): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan'][]>;
|
|
23
23
|
getInvoice(invoiceId: string, params: operations['accounting_get_invoice']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan']>;
|
|
24
24
|
getInvoiceWithMultiplePlans(invoiceId: string, params: operations['accounting_get_invoice_multi_analytic_plans']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans']>;
|
|
25
25
|
getInvoicesByTypeWithMultiplePlans(invoice_type: components['schemas']['app__routers__accounting__InvoiceType'], params: getInvoicesByTypeWithMultiplePlansParams): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans'][]>;
|
|
26
|
-
createAnalyticAccount(analyticAccount: components['schemas']['AnalyticAccountItemIn']
|
|
27
|
-
getAnalyticAccounts(
|
|
28
|
-
createAnalyticAccountWithMultiplePlans(analytic_plan: string, analyticAccount: components['schemas']['AnalyticAccountItemIn']
|
|
29
|
-
getAnalyticAccount(analytic_account_id: string
|
|
30
|
-
updateAnalyticAccount(analytic_account_id: string, analyticAccount: components['schemas']['AnalyticAccountItemUpdate']
|
|
31
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
32
|
-
updateAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, analyticAccount: components['schemas']['AnalyticAccountItemUpdate']
|
|
33
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
26
|
+
createAnalyticAccount(analyticAccount: components['schemas']['AnalyticAccountItemIn']): RequestData<components['schemas']['AnalyticAccountItemOut']>;
|
|
27
|
+
getAnalyticAccounts(): RequestData<components['schemas']['AnalyticAccountItemOut'][]>;
|
|
28
|
+
createAnalyticAccountWithMultiplePlans(analytic_plan: string, analyticAccount: components['schemas']['AnalyticAccountItemIn']): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans']>;
|
|
29
|
+
getAnalyticAccount(analytic_account_id: string): RequestData<components['schemas']['AnalyticAccountItemOut']>;
|
|
30
|
+
updateAnalyticAccount(analytic_account_id: string, analyticAccount: components['schemas']['AnalyticAccountItemUpdate']): RequestData<components['schemas']['AnalyticAccountItemOut']>;
|
|
31
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans']>;
|
|
32
|
+
updateAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, analyticAccount: components['schemas']['AnalyticAccountItemUpdate']): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans']>;
|
|
33
|
+
getAnalyticAccountsWithMultiplePlans(): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans'][]>;
|
|
34
|
+
getAnalyticLinesOfAccount(analytic_account_id: string): RequestData<components['schemas']['AnalyticAccountLineItemOut'][]>;
|
|
34
35
|
getJournalEntries(params: getJournalEntriesParams): RequestData<components['schemas']['JournalEntryMonoAnalyticPlan'][]>;
|
|
35
36
|
getJournalEntriesWithMultiplePlans(params: getJournalEntriesWithMultiplePlansParams): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan'][]>;
|
|
36
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
37
|
-
getJournals(
|
|
38
|
-
getVatCodes(
|
|
37
|
+
getPaymentsByInvoiceId(invoice_id: string): RequestData<components['schemas']['Payment'][]>;
|
|
38
|
+
getJournals(): RequestData<components['schemas']['Journal'][]>;
|
|
39
|
+
getVatCodes(): RequestData<components['schemas']['app__routers__accounting__VatCode'][]>;
|
|
39
40
|
getMiscOperations(params: getMiscOperationsParams): RequestData<components['schemas']['MiscellaneousOperationOut'][]>;
|
|
40
|
-
createMiscOperation(operation: components['schemas']['MiscellaneousOperationIn']
|
|
41
|
-
getMiscOperation(operation_id: string
|
|
41
|
+
createMiscOperation(operation: components['schemas']['MiscellaneousOperationIn']): RequestData<components['schemas']['MiscellaneousOperationOut']>;
|
|
42
|
+
getMiscOperation(operation_id: string): RequestData<components['schemas']['MiscellaneousOperationOut']>;
|
|
42
43
|
attachPDF(invoice_id: string, attachment: components['schemas']['AttachmentItem'], params: operations['accounting_add_attachment']['parameters']['query']): RequestData<operations['accounting_add_attachment']['responses'][201]>;
|
|
43
|
-
getAttachments(params: operations['accounting_get_attachments']['parameters']['query']): RequestData<components['schemas']['AttachmentItem'][]>;
|
|
44
44
|
getChartOfAccounts(params: getChartOfAccountsParams): RequestData<components['schemas']['AccountItem'][]>;
|
|
45
|
-
getBalanceOfAccounts(filter: components['schemas']['AccountBalanceFilter']
|
|
46
|
-
getEmployees(
|
|
45
|
+
getBalanceOfAccounts(filter: components['schemas']['AccountBalanceFilter']): RequestData<components['schemas']['AccountBalance'][]>;
|
|
46
|
+
getEmployees(): RequestData<components['schemas']['EmployeeItem'][]>;
|
|
47
47
|
getOutstandings(params: getOutstandingsParams): RequestData<components['schemas']['OutstandingItem'][]>;
|
|
48
48
|
/**
|
|
49
49
|
* @deprecated replaced by createFinancialEntry
|
|
50
50
|
*/
|
|
51
51
|
createFinancialEntryOld(financial_entry: components['schemas']['FinancialEntryItemInOld'], params: operations['accounting_create_financial_entry']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOutOld']>;
|
|
52
52
|
createFinancialEntry(financial_entry: components['schemas']['FinancialEntryItemIn'], params: operations['accounting_create_financial_entries']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOut'][]>;
|
|
53
|
-
|
|
54
|
-
createJournalEntry(journal_entry: components['schemas']['GenericJournalEntry'], params: operations['accounting_create_generic_journal_entry']['parameters']['query']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
55
|
-
matchEntries(body: components['schemas']['MatchingIn'], params: operations['accounting_match_entries']['parameters']['query']): RequestData<components['schemas']['MatchingOut']>;
|
|
56
|
-
getFolders(): RequestData<components['schemas']['FolderItem'][]>;
|
|
53
|
+
createJournalEntry(journal_entry: components['schemas']['JournalEntryIn']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
57
54
|
};
|
|
58
55
|
export { accountingFactory };
|
|
@@ -2,68 +2,61 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.accountingFactory = void 0;
|
|
4
4
|
const accountingFactory = {
|
|
5
|
-
getAnalyticPlans(
|
|
5
|
+
getAnalyticPlans() {
|
|
6
6
|
return {
|
|
7
|
-
params,
|
|
8
7
|
method: 'get',
|
|
9
8
|
url: '/consumers/{consumer_id}/accounting/analytic-plans',
|
|
10
9
|
};
|
|
11
10
|
},
|
|
12
|
-
getClients(
|
|
11
|
+
getClients() {
|
|
13
12
|
return {
|
|
14
|
-
params,
|
|
15
13
|
method: 'get',
|
|
16
14
|
url: '/consumers/{consumer_id}/accounting/clients',
|
|
17
15
|
};
|
|
18
16
|
},
|
|
19
17
|
createClient(client, params) {
|
|
20
18
|
return {
|
|
21
|
-
params,
|
|
22
19
|
method: 'post',
|
|
23
20
|
url: '/consumers/{consumer_id}/accounting/clients',
|
|
24
21
|
body: client,
|
|
22
|
+
params: params,
|
|
25
23
|
};
|
|
26
24
|
},
|
|
27
|
-
getClient(clientId
|
|
25
|
+
getClient(clientId) {
|
|
28
26
|
return {
|
|
29
|
-
params,
|
|
30
27
|
method: 'get',
|
|
31
28
|
url: `/consumers/{consumer_id}/accounting/clients/${clientId}`,
|
|
32
29
|
};
|
|
33
30
|
},
|
|
34
|
-
updateClient(clientId, client
|
|
31
|
+
updateClient(clientId, client) {
|
|
35
32
|
return {
|
|
36
|
-
params,
|
|
37
33
|
method: 'patch',
|
|
38
34
|
url: `/consumers/{consumer_id}/accounting/clients/${clientId}`,
|
|
39
35
|
body: client,
|
|
40
36
|
};
|
|
41
37
|
},
|
|
42
|
-
getSuppliers(
|
|
38
|
+
getSuppliers() {
|
|
43
39
|
return {
|
|
44
|
-
params,
|
|
45
40
|
method: 'get',
|
|
46
41
|
url: '/consumers/{consumer_id}/accounting/suppliers',
|
|
47
42
|
};
|
|
48
43
|
},
|
|
49
44
|
createSupplier(supplier, params) {
|
|
50
45
|
return {
|
|
51
|
-
params,
|
|
52
46
|
method: 'post',
|
|
53
47
|
url: '/consumers/{consumer_id}/accounting/suppliers',
|
|
54
48
|
body: supplier,
|
|
49
|
+
params: params,
|
|
55
50
|
};
|
|
56
51
|
},
|
|
57
|
-
getSupplier(supplierId
|
|
52
|
+
getSupplier(supplierId) {
|
|
58
53
|
return {
|
|
59
|
-
params,
|
|
60
54
|
method: 'get',
|
|
61
55
|
url: `/consumers/{consumer_id}/accounting/suppliers/${supplierId}`,
|
|
62
56
|
};
|
|
63
57
|
},
|
|
64
|
-
updateSupplier(supplierId, supplier
|
|
58
|
+
updateSupplier(supplierId, supplier) {
|
|
65
59
|
return {
|
|
66
|
-
params,
|
|
67
60
|
method: 'patch',
|
|
68
61
|
url: `/consumers/{consumer_id}/accounting/suppliers/${supplierId}`,
|
|
69
62
|
body: supplier,
|
|
@@ -113,66 +106,64 @@ const accountingFactory = {
|
|
|
113
106
|
url: `/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans/type/${invoice_type}`,
|
|
114
107
|
};
|
|
115
108
|
},
|
|
116
|
-
createAnalyticAccount(analyticAccount
|
|
109
|
+
createAnalyticAccount(analyticAccount) {
|
|
117
110
|
return {
|
|
118
|
-
params,
|
|
119
111
|
method: 'post',
|
|
120
112
|
url: '/consumers/{consumer_id}/accounting/analytic-accounts',
|
|
121
113
|
body: analyticAccount,
|
|
122
114
|
};
|
|
123
115
|
},
|
|
124
|
-
getAnalyticAccounts(
|
|
116
|
+
getAnalyticAccounts() {
|
|
125
117
|
return {
|
|
126
|
-
params,
|
|
127
118
|
method: 'get',
|
|
128
119
|
url: '/consumers/{consumer_id}/accounting/analytic-accounts',
|
|
129
120
|
};
|
|
130
121
|
},
|
|
131
|
-
createAnalyticAccountWithMultiplePlans(analytic_plan, analyticAccount
|
|
122
|
+
createAnalyticAccountWithMultiplePlans(analytic_plan, analyticAccount) {
|
|
132
123
|
return {
|
|
133
|
-
params,
|
|
134
124
|
method: 'post',
|
|
135
125
|
url: `/consumers/{consumer_id}/accounting/analytic-accounts/multi-analytic-plans/${analytic_plan}`,
|
|
136
126
|
body: analyticAccount,
|
|
137
127
|
};
|
|
138
128
|
},
|
|
139
|
-
getAnalyticAccount(analytic_account_id
|
|
129
|
+
getAnalyticAccount(analytic_account_id) {
|
|
140
130
|
return {
|
|
141
|
-
params,
|
|
142
131
|
method: 'get',
|
|
143
132
|
url: `/consumers/{consumer_id}/accounting/analytic-accounts/${analytic_account_id}`,
|
|
144
133
|
};
|
|
145
134
|
},
|
|
146
|
-
updateAnalyticAccount(analytic_account_id, analyticAccount
|
|
135
|
+
updateAnalyticAccount(analytic_account_id, analyticAccount) {
|
|
147
136
|
return {
|
|
148
|
-
params,
|
|
149
137
|
method: 'patch',
|
|
150
138
|
url: `/consumers/{consumer_id}/accounting/analytic-accounts/${analytic_account_id}`,
|
|
151
139
|
body: analyticAccount,
|
|
152
140
|
};
|
|
153
141
|
},
|
|
154
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id, analytic_plan
|
|
142
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id, analytic_plan) {
|
|
155
143
|
return {
|
|
156
|
-
params,
|
|
157
144
|
method: 'get',
|
|
158
145
|
url: `/consumers/{consumer_id}/accounting/analytic-accounts/${analytic_account_id}/multi-analytic-plans/${analytic_plan}`,
|
|
159
146
|
};
|
|
160
147
|
},
|
|
161
|
-
updateAnalyticAccountWithMultiplePlans(analytic_account_id, analytic_plan, analyticAccount
|
|
148
|
+
updateAnalyticAccountWithMultiplePlans(analytic_account_id, analytic_plan, analyticAccount) {
|
|
162
149
|
return {
|
|
163
|
-
params,
|
|
164
150
|
method: 'patch',
|
|
165
151
|
url: `/consumers/{consumer_id}/accounting/analytic-accounts/${analytic_account_id}/multi-analytic-plans/${analytic_plan}`,
|
|
166
152
|
body: analyticAccount,
|
|
167
153
|
};
|
|
168
154
|
},
|
|
169
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
155
|
+
getAnalyticAccountsWithMultiplePlans() {
|
|
170
156
|
return {
|
|
171
|
-
params,
|
|
172
157
|
method: 'get',
|
|
173
158
|
url: '/consumers/{consumer_id}/accounting/analytic-accounts/multi-analytic-plans',
|
|
174
159
|
};
|
|
175
160
|
},
|
|
161
|
+
getAnalyticLinesOfAccount(analytic_account_id) {
|
|
162
|
+
return {
|
|
163
|
+
method: 'get',
|
|
164
|
+
url: `/consumers/{consumer_id}/accounting/analytic-account-lines/account/${analytic_account_id}`,
|
|
165
|
+
};
|
|
166
|
+
},
|
|
176
167
|
getJournalEntries(params) {
|
|
177
168
|
return {
|
|
178
169
|
params,
|
|
@@ -187,23 +178,20 @@ const accountingFactory = {
|
|
|
187
178
|
url: `/consumers/{consumer_id}/accounting/journal/entries/multi-analytic-plans`,
|
|
188
179
|
};
|
|
189
180
|
},
|
|
190
|
-
getPaymentsByInvoiceId(invoice_id
|
|
181
|
+
getPaymentsByInvoiceId(invoice_id) {
|
|
191
182
|
return {
|
|
192
|
-
params,
|
|
193
183
|
method: 'get',
|
|
194
184
|
url: `/consumers/{consumer_id}/accounting/invoices/id/${invoice_id}/payments`,
|
|
195
185
|
};
|
|
196
186
|
},
|
|
197
|
-
getJournals(
|
|
187
|
+
getJournals() {
|
|
198
188
|
return {
|
|
199
|
-
params,
|
|
200
189
|
method: 'get',
|
|
201
190
|
url: `/consumers/{consumer_id}/accounting/journals`,
|
|
202
191
|
};
|
|
203
192
|
},
|
|
204
|
-
getVatCodes(
|
|
193
|
+
getVatCodes() {
|
|
205
194
|
return {
|
|
206
|
-
params,
|
|
207
195
|
method: 'get',
|
|
208
196
|
url: `/consumers/{consumer_id}/accounting/vat-codes`,
|
|
209
197
|
};
|
|
@@ -215,17 +203,15 @@ const accountingFactory = {
|
|
|
215
203
|
url: '/consumers/{consumer_id}/accounting/miscellaneous-operation',
|
|
216
204
|
};
|
|
217
205
|
},
|
|
218
|
-
createMiscOperation(operation
|
|
206
|
+
createMiscOperation(operation) {
|
|
219
207
|
return {
|
|
220
|
-
params,
|
|
221
208
|
method: 'post',
|
|
222
209
|
url: '/consumers/{consumer_id}/accounting/miscellaneous-operation',
|
|
223
210
|
body: operation,
|
|
224
211
|
};
|
|
225
212
|
},
|
|
226
|
-
getMiscOperation(operation_id
|
|
213
|
+
getMiscOperation(operation_id) {
|
|
227
214
|
return {
|
|
228
|
-
params,
|
|
229
215
|
method: 'get',
|
|
230
216
|
url: `/consumers/{consumer_id}/accounting/miscellaneous-operation/${operation_id}`,
|
|
231
217
|
};
|
|
@@ -238,13 +224,6 @@ const accountingFactory = {
|
|
|
238
224
|
body: attachment,
|
|
239
225
|
};
|
|
240
226
|
},
|
|
241
|
-
getAttachments(params) {
|
|
242
|
-
return {
|
|
243
|
-
params,
|
|
244
|
-
method: 'get',
|
|
245
|
-
url: `/consumers/{consumer_id}/accounting/attachments`,
|
|
246
|
-
};
|
|
247
|
-
},
|
|
248
227
|
getChartOfAccounts(params) {
|
|
249
228
|
return {
|
|
250
229
|
params,
|
|
@@ -252,17 +231,15 @@ const accountingFactory = {
|
|
|
252
231
|
url: '/consumers/{consumer_id}/accounting/chart-of-accounts',
|
|
253
232
|
};
|
|
254
233
|
},
|
|
255
|
-
getBalanceOfAccounts(filter
|
|
234
|
+
getBalanceOfAccounts(filter) {
|
|
256
235
|
return {
|
|
257
|
-
params,
|
|
258
236
|
method: 'post',
|
|
259
237
|
url: '/consumers/{consumer_id}/accounting/chart-of-accounts/balance',
|
|
260
238
|
body: filter,
|
|
261
239
|
};
|
|
262
240
|
},
|
|
263
|
-
getEmployees(
|
|
241
|
+
getEmployees() {
|
|
264
242
|
return {
|
|
265
|
-
params,
|
|
266
243
|
method: 'get',
|
|
267
244
|
url: '/consumers/{consumer_id}/accounting/employees',
|
|
268
245
|
};
|
|
@@ -293,34 +270,12 @@ const accountingFactory = {
|
|
|
293
270
|
body: financial_entry,
|
|
294
271
|
};
|
|
295
272
|
},
|
|
296
|
-
|
|
273
|
+
createJournalEntry(journal_entry) {
|
|
297
274
|
return {
|
|
298
275
|
method: 'post',
|
|
299
276
|
url: '/consumers/{consumer_id}/accounting/journal/entries',
|
|
300
277
|
body: journal_entry,
|
|
301
278
|
};
|
|
302
279
|
},
|
|
303
|
-
createJournalEntry(journal_entry, params) {
|
|
304
|
-
return {
|
|
305
|
-
params,
|
|
306
|
-
method: 'post',
|
|
307
|
-
url: '/consumers/{consumer_id}/accounting/journal-entries',
|
|
308
|
-
body: journal_entry,
|
|
309
|
-
};
|
|
310
|
-
},
|
|
311
|
-
matchEntries(body, params) {
|
|
312
|
-
return {
|
|
313
|
-
params,
|
|
314
|
-
body,
|
|
315
|
-
method: 'post',
|
|
316
|
-
url: '/consumers/{consumer_id}/accounting/matching',
|
|
317
|
-
};
|
|
318
|
-
},
|
|
319
|
-
getFolders() {
|
|
320
|
-
return {
|
|
321
|
-
method: 'get',
|
|
322
|
-
url: '/consumers/{consumer_id}/accounting/folders',
|
|
323
|
-
};
|
|
324
|
-
},
|
|
325
280
|
};
|
|
326
281
|
exports.accountingFactory = accountingFactory;
|