@chift/chift-nodejs 1.0.25 → 1.0.26

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.
@@ -57,19 +57,17 @@ declare const accountingFactory: {
57
57
  getBalanceOfAccounts(filter: components['schemas']['AccountBalanceFilter'], params?: GetBalanceOfAccountsParams): RequestData<components['schemas']['AccountBalance'][]>;
58
58
  getEmployees(params?: GetEmployeesParams, options?: RawDataOption): RequestData<components['schemas']['EmployeeItem'][]>;
59
59
  getOutstandings(params: GetOutstandingsParams, options?: RawDataOption): RequestData<components['schemas']['OutstandingItem'][]>;
60
- /**
61
- * @deprecated replaced by createFinancialEntry
62
- */
63
- createFinancialEntryOld(financial_entry: components['schemas']['FinancialEntryItemInOld'], params?: operations['accounting_create_financial_entry']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['FinancialEntryItemOutOld']>;
64
60
  createFinancialEntry(financial_entry: components['schemas']['FinancialEntryItemIn'], params?: operations['accounting_create_financial_entries']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['FinancialEntryItemOut']>;
65
- createJournalEntryOld(journal_entry: components['schemas']['JournalEntryIn'], options?: ClientRequestOption): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
66
61
  createJournalEntry(journal_entry: components['schemas']['GenericJournalEntry'], params?: operations['accounting_create_generic_journal_entry']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
67
62
  matchEntries(body: components['schemas']['MatchingIn'], params?: operations['accounting_match_entries']['parameters']['query']): RequestData<components['schemas']['MatchingOut']>;
68
63
  matchEntriesMultiple(body: components['schemas']['MultipleMatchingIn'], params?: operations['accounting_match_entries_multiple']['parameters']['query']): RequestData<components['schemas']['MultipleMatchingOut'][]>;
64
+ createExpense(expense: components['schemas']['ExpenseItemIn'], params?: operations['accounting_create_expense']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['ExpenseItemOut']>;
69
65
  getFolders(options?: RawDataOption): RequestData<components['schemas']['FolderItem'][]>;
70
66
  getBookyears(params?: GetBookyearsParams, options?: RawDataOption): RequestData<components['schemas']['BookYear'][]>;
71
67
  createLedgerAccount(account: components['schemas']['LedgerAccountItemIn'], params?: operations['accounting_create_ledger_account']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['AccountItem']>;
72
68
  createBankAccount(bankAccount: components['schemas']['BankAccountItemIn'], params?: operations['accounting_create_bank_account']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['BankAccountItemOut']>;
73
69
  getJournalEntry(journalEntryId: string, params?: operations['accounting_get_journal_entry']['parameters']['query'], options?: RawDataOption): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
70
+ getPaymentMethods(params?: operations['accounting_get_payment_methods']['parameters']['query'], options?: RawDataOption): RequestData<components['schemas']['ChiftPage_AccountingPaymentMethod_']>;
71
+ createInvoicePayment(body: components['schemas']['AccountingInvoicePaymentIn'], params?: operations['accounting_create_invoice_payment']['parameters']['query']): RequestData<operations['accounting_create_invoice_payment']['responses'][204]>;
74
72
  };
75
73
  export { accountingFactory };
@@ -231,7 +231,7 @@ const accountingFactory = {
231
231
  return {
232
232
  params,
233
233
  method: 'post',
234
- url: '/consumers/{consumer_id}/accounting/journals',
234
+ url: '/consumers/{consumer_id}/accounting/journal',
235
235
  body: journal,
236
236
  clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
237
237
  };
@@ -317,18 +317,6 @@ const accountingFactory = {
317
317
  rawData: options === null || options === void 0 ? void 0 : options.rawData,
318
318
  };
319
319
  },
320
- /**
321
- * @deprecated replaced by createFinancialEntry
322
- */
323
- createFinancialEntryOld(financial_entry, params, options) {
324
- return {
325
- params,
326
- method: 'post',
327
- url: '/consumers/{consumer_id}/accounting/financial-entry',
328
- body: financial_entry,
329
- clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
330
- };
331
- },
332
320
  createFinancialEntry(financial_entry, params, options) {
333
321
  return {
334
322
  params,
@@ -338,14 +326,6 @@ const accountingFactory = {
338
326
  clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
339
327
  };
340
328
  },
341
- createJournalEntryOld(journal_entry, options) {
342
- return {
343
- method: 'post',
344
- url: '/consumers/{consumer_id}/accounting/journal/entries',
345
- body: journal_entry,
346
- clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
347
- };
348
- },
349
329
  createJournalEntry(journal_entry, params, options) {
350
330
  return {
351
331
  params,
@@ -371,6 +351,15 @@ const accountingFactory = {
371
351
  body,
372
352
  };
373
353
  },
354
+ createExpense(expense, params, options) {
355
+ return {
356
+ params,
357
+ method: 'post',
358
+ url: '/consumers/{consumer_id}/accounting/expenses',
359
+ body: expense,
360
+ clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
361
+ };
362
+ },
374
363
  getFolders(options) {
375
364
  return {
376
365
  method: 'get',
@@ -412,5 +401,21 @@ const accountingFactory = {
412
401
  rawData: options === null || options === void 0 ? void 0 : options.rawData,
413
402
  };
414
403
  },
404
+ getPaymentMethods(params, options) {
405
+ return {
406
+ params,
407
+ method: 'get',
408
+ url: `/consumers/{consumer_id}/accounting/payment-methods`,
409
+ rawData: options === null || options === void 0 ? void 0 : options.rawData,
410
+ };
411
+ },
412
+ createInvoicePayment(body, params) {
413
+ return {
414
+ params,
415
+ method: 'post',
416
+ url: `/consumers/{consumer_id}/accounting/invoices/payments`,
417
+ body,
418
+ };
419
+ },
415
420
  };
416
421
  exports.accountingFactory = accountingFactory;