@chift/chift-nodejs 1.0.3 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -18,3 +18,8 @@
18
18
  ## 1.0.3 - 2023-10-09
19
19
 
20
20
  - fix missing accounting model definitions
21
+
22
+ ## 1.0.4 - 2023-10-18
23
+
24
+ - Update createFinancialEntry endpoint
25
+ - Deprecate previous createFinancialEntry endpoint (changed to createFinancialEntryOld)
@@ -45,7 +45,11 @@ declare const accountingFactory: {
45
45
  getBalanceOfAccounts(filter: components['schemas']['AccountBalanceFilter']): RequestData<components['schemas']['AccountBalance'][]>;
46
46
  getEmployees(): RequestData<components['schemas']['EmployeeItem'][]>;
47
47
  getOutstandings(params: getOutstandingsParams): RequestData<components['schemas']['OutstandingItem'][]>;
48
- createFinancialEntry(financial_entry: components['schemas']['FinancialEntryItemIn'], params: operations['accounting_create_financial_entry']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOut']>;
48
+ /**
49
+ * @deprecated replaced by createFinancialEntry
50
+ */
51
+ createFinancialEntryOld(financial_entry: components['schemas']['FinancialEntryItemInOld'], params: operations['accounting_create_financial_entry']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOutOld']>;
52
+ createFinancialEntry(financial_entry: components['schemas']['FinancialEntryItemIn'], params: operations['accounting_create_financial_entries']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOut'][]>;
49
53
  createJournalEntry(journal_entry: components['schemas']['JournalEntryIn']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
50
54
  };
51
55
  export { accountingFactory };
@@ -251,7 +251,10 @@ const accountingFactory = {
251
251
  url: '/consumers/{consumer_id}/accounting/outstandings',
252
252
  };
253
253
  },
254
- createFinancialEntry(financial_entry, params) {
254
+ /**
255
+ * @deprecated replaced by createFinancialEntry
256
+ */
257
+ createFinancialEntryOld(financial_entry, params) {
255
258
  return {
256
259
  params,
257
260
  method: 'post',
@@ -259,6 +262,14 @@ const accountingFactory = {
259
262
  body: financial_entry,
260
263
  };
261
264
  },
265
+ createFinancialEntry(financial_entry, params) {
266
+ return {
267
+ params,
268
+ method: 'post',
269
+ url: '/consumers/{consumer_id}/accounting/financial-entries',
270
+ body: financial_entry,
271
+ };
272
+ },
262
273
  createJournalEntry(journal_entry) {
263
274
  return {
264
275
  method: 'post',