@codat/lending 1.2.0 → 3.1.0

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 (122) hide show
  1. package/README.md +57 -59
  2. package/dist/sdk/accountspayable.d.ts +0 -34
  3. package/dist/sdk/accountspayable.js +1 -260
  4. package/dist/sdk/accountspayablebills.d.ts +28 -0
  5. package/dist/sdk/accountspayablebills.js +183 -1
  6. package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.d.ts +40 -0
  7. package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.js +90 -0
  8. package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.d.ts +7 -0
  9. package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.js +45 -0
  10. package/dist/sdk/models/shared/{addressesitems.d.ts → accountingaddress.d.ts} +1 -1
  11. package/dist/sdk/models/shared/{addressesitems.js → accountingaddress.js} +13 -13
  12. package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +2 -2
  13. package/dist/sdk/models/shared/accountingbillcreditnote.js +3 -3
  14. package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +6 -66
  15. package/dist/sdk/models/shared/accountingcompanyinfo.js +10 -100
  16. package/dist/sdk/models/shared/accountingcreditnote.d.ts +2 -2
  17. package/dist/sdk/models/shared/accountingcreditnote.js +3 -3
  18. package/dist/sdk/models/shared/accountingcustomer.d.ts +2 -2
  19. package/dist/sdk/models/shared/accountingcustomer.js +3 -3
  20. package/dist/sdk/models/shared/accountinginvoice.d.ts +2 -2
  21. package/dist/sdk/models/shared/accountinginvoice.js +3 -3
  22. package/dist/sdk/models/shared/accountingsupplier.d.ts +2 -2
  23. package/dist/sdk/models/shared/accountingsupplier.js +3 -3
  24. package/dist/sdk/models/shared/clientratelimitreachedwebhook.d.ts +32 -0
  25. package/dist/sdk/models/shared/clientratelimitreachedwebhook.js +80 -0
  26. package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.d.ts +31 -0
  27. package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.js +50 -0
  28. package/dist/sdk/models/shared/clientratelimitresetwebhook.d.ts +32 -0
  29. package/dist/sdk/models/shared/clientratelimitresetwebhook.js +80 -0
  30. package/dist/sdk/models/shared/clientratelimitresetwebhookdata.d.ts +39 -0
  31. package/dist/sdk/models/shared/clientratelimitresetwebhookdata.js +60 -0
  32. package/dist/sdk/models/shared/commercecompanyinfo.d.ts +4 -4
  33. package/dist/sdk/models/shared/commercecompanyinfo.js +6 -6
  34. package/dist/sdk/models/shared/contact.d.ts +4 -4
  35. package/dist/sdk/models/shared/contact.js +6 -6
  36. package/dist/sdk/models/shared/index.d.ts +9 -3
  37. package/dist/sdk/models/shared/index.js +9 -3
  38. package/dist/sdk/models/shared/items.d.ts +2 -9
  39. package/dist/sdk/models/shared/items.js +5 -6
  40. package/dist/sdk/models/shared/phonenumber.d.ts +12 -0
  41. package/dist/sdk/models/shared/{withholdingtaxitems.js → phonenumber.js} +12 -11
  42. package/dist/sdk/models/shared/{weblinksitems.d.ts → weblink.d.ts} +3 -3
  43. package/dist/sdk/models/shared/{weblinksitems.js → weblink.js} +14 -14
  44. package/dist/sdk/models/webhooks/accountcategoriesupdated.d.ts +7 -0
  45. package/dist/sdk/models/webhooks/accountcategoriesupdated.js +51 -0
  46. package/dist/sdk/models/webhooks/clientratelimitreached.d.ts +7 -0
  47. package/dist/sdk/models/webhooks/clientratelimitreached.js +51 -0
  48. package/dist/sdk/models/webhooks/clientratelimitreset.d.ts +7 -0
  49. package/dist/sdk/models/webhooks/clientratelimitreset.js +51 -0
  50. package/dist/sdk/models/webhooks/index.d.ts +3 -0
  51. package/dist/sdk/models/webhooks/index.js +22 -0
  52. package/dist/sdk/sdk.d.ts +1 -4
  53. package/dist/sdk/sdk.js +3 -3
  54. package/docs/models/shared/accountcategoriesupdatedwebhook.md +18 -0
  55. package/docs/models/shared/accountcategoriesupdatedwebhookdata.md +8 -0
  56. package/docs/models/shared/{addressesitems.md → accountingaddress.md} +1 -1
  57. package/docs/models/shared/accountingbillcreditnote.md +1 -1
  58. package/docs/models/shared/accountingcompanyinfo.md +3 -3
  59. package/docs/models/shared/accountingcreditnote.md +1 -1
  60. package/docs/models/shared/accountingcustomer.md +1 -1
  61. package/docs/models/shared/accountinginvoice.md +1 -1
  62. package/docs/models/shared/accountingsupplier.md +1 -1
  63. package/docs/models/shared/clientratelimitreachedwebhook.md +16 -0
  64. package/docs/models/shared/clientratelimitreachedwebhookdata.md +9 -0
  65. package/docs/models/shared/clientratelimitresetwebhook.md +16 -0
  66. package/docs/models/shared/clientratelimitresetwebhookdata.md +11 -0
  67. package/docs/models/shared/commercecompanyinfo.md +2 -2
  68. package/docs/models/shared/contact.md +2 -2
  69. package/docs/models/shared/items.md +4 -4
  70. package/docs/models/shared/{accountingcompanyinfophone.md → phonenumber.md} +1 -1
  71. package/docs/models/shared/weblink.md +11 -0
  72. package/docs/models/shared/{itemstype.md → weblinktype.md} +1 -1
  73. package/docs/models/webhooks/accountcategoriesupdatedresponse.md +10 -0
  74. package/docs/models/webhooks/clientratelimitreachedresponse.md +10 -0
  75. package/docs/models/webhooks/clientratelimitresetresponse.md +10 -0
  76. package/docs/sdks/accountingbankdata/README.md +1 -1
  77. package/docs/sdks/accountingbankdataaccounts/README.md +3 -3
  78. package/docs/sdks/accountspayable/README.md +1 -101
  79. package/docs/sdks/accountspayablebillcreditnotes/README.md +5 -5
  80. package/docs/sdks/accountspayablebillpayments/README.md +5 -5
  81. package/docs/sdks/accountspayablebills/README.md +103 -7
  82. package/docs/sdks/accountspayablesuppliers/README.md +11 -11
  83. package/docs/sdks/accountsreceivable/README.md +1 -1
  84. package/docs/sdks/accountsreceivablecreditnotes/README.md +3 -3
  85. package/docs/sdks/accountsreceivablecustomers/README.md +6 -6
  86. package/docs/sdks/accountsreceivabledirectincomes/README.md +6 -6
  87. package/docs/sdks/accountsreceivableinvoices/README.md +8 -8
  88. package/docs/sdks/accountsreceivablepayments/README.md +3 -3
  89. package/docs/sdks/accountsreceivablereports/README.md +5 -5
  90. package/docs/sdks/banking/README.md +1 -1
  91. package/docs/sdks/bankingaccountbalances/README.md +2 -2
  92. package/docs/sdks/bankingcategorizedstatement/README.md +2 -2
  93. package/docs/sdks/bankingtransactioncategories/README.md +3 -3
  94. package/docs/sdks/companies/README.md +2 -2
  95. package/docs/sdks/companyinfo/README.md +1 -1
  96. package/docs/sdks/connections/README.md +4 -4
  97. package/docs/sdks/dataintegrity/README.md +3 -3
  98. package/docs/sdks/excelreports/README.md +4 -4
  99. package/docs/sdks/fileupload/README.md +3 -3
  100. package/docs/sdks/financialstatements/README.md +1 -1
  101. package/docs/sdks/financialstatementsaccounts/README.md +3 -3
  102. package/docs/sdks/financialstatementsbalancesheet/README.md +3 -3
  103. package/docs/sdks/financialstatementscashflow/README.md +2 -2
  104. package/docs/sdks/financialstatementsprofitandloss/README.md +3 -3
  105. package/docs/sdks/liabilities/README.md +2 -2
  106. package/docs/sdks/managedata/README.md +1 -1
  107. package/docs/sdks/managedatapulloperations/README.md +3 -3
  108. package/docs/sdks/managedatarefresh/README.md +3 -3
  109. package/docs/sdks/sales/README.md +1 -1
  110. package/docs/sdks/salespaymentmethods/README.md +3 -3
  111. package/docs/sdks/salesproductcategories/README.md +3 -3
  112. package/docs/sdks/transactions/README.md +1 -1
  113. package/docs/sdks/transactionsaccounttransactions/README.md +3 -3
  114. package/docs/sdks/transactionsdirectcosts/README.md +6 -6
  115. package/docs/sdks/transactionsjournalentries/README.md +3 -3
  116. package/package.json +1 -1
  117. package/dist/sdk/models/shared/withholdingtaxitems.d.ts +0 -5
  118. package/docs/models/shared/accountingcompanyinfoaccountingaddress.md +0 -14
  119. package/docs/models/shared/accountingcompanyinfoweblink.md +0 -11
  120. package/docs/models/shared/accountingcompanyinfoweblinktype.md +0 -12
  121. package/docs/models/shared/weblinksitems.md +0 -11
  122. package/docs/models/shared/withholdingtaxitems.md +0 -9
@@ -1,4 +1,4 @@
1
- # accountsReceivableReports
1
+ # AccountsReceivable.Reports
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -24,7 +24,7 @@ const sdk = new CodatLending({
24
24
  },
25
25
  });
26
26
 
27
- sdk.accountsReceivableReports.getAgedCreditors({
27
+ sdk.accountsReceivable.reports.getAgedCreditors({
28
28
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
29
29
  numberOfPeriods: 12,
30
30
  periodLengthDays: 30,
@@ -67,7 +67,7 @@ const sdk = new CodatLending({
67
67
  },
68
68
  });
69
69
 
70
- sdk.accountsReceivableReports.getAgedDebtors({
70
+ sdk.accountsReceivable.reports.getAgedDebtors({
71
71
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
72
72
  numberOfPeriods: 12,
73
73
  periodLengthDays: 30,
@@ -109,7 +109,7 @@ const sdk = new CodatLending({
109
109
  },
110
110
  });
111
111
 
112
- sdk.accountsReceivableReports.isAgedCreditorsAvailable({
112
+ sdk.accountsReceivable.reports.isAgedCreditorsAvailable({
113
113
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
114
114
  }).then((res: IsAgedCreditorsReportAvailableResponse) => {
115
115
  if (res.statusCode == 200) {
@@ -148,7 +148,7 @@ const sdk = new CodatLending({
148
148
  },
149
149
  });
150
150
 
151
- sdk.accountsReceivableReports.isAgedDebtorsAvailable({
151
+ sdk.accountsReceivable.reports.isAgedDebtorsAvailable({
152
152
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
153
153
  }).then((res: IsAgedDebtorsReportAvailableResponse) => {
154
154
  if (res.statusCode == 200) {
@@ -1,4 +1,4 @@
1
- # banking
1
+ # Banking
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -1,4 +1,4 @@
1
- # bankingAccountBalances
1
+ # Banking.AccountBalances
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -25,7 +25,7 @@ const sdk = new CodatLending({
25
25
  },
26
26
  });
27
27
 
28
- sdk.bankingAccountBalances.list({
28
+ sdk.banking.accountBalances.list({
29
29
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
30
30
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
31
31
  orderBy: "-modifiedDate",
@@ -1,4 +1,4 @@
1
- # bankingCategorizedStatement
1
+ # Banking.CategorizedStatement
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -24,7 +24,7 @@ const sdk = new CodatLending({
24
24
  },
25
25
  });
26
26
 
27
- sdk.bankingCategorizedStatement.get({
27
+ sdk.banking.categorizedStatement.get({
28
28
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
29
29
  page: 1,
30
30
  pageSize: 100,
@@ -1,4 +1,4 @@
1
- # bankingTransactionCategories
1
+ # Banking.TransactionCategories
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
28
28
  },
29
29
  });
30
30
 
31
- sdk.bankingTransactionCategories.get({
31
+ sdk.banking.transactionCategories.get({
32
32
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
33
33
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
34
34
  transactionCategoryId: "molestiae",
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
74
74
  },
75
75
  });
76
76
 
77
- sdk.bankingTransactionCategories.list({
77
+ sdk.banking.transactionCategories.list({
78
78
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
79
79
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
80
80
  orderBy: "-modifiedDate",
@@ -1,4 +1,4 @@
1
- # companies
1
+ # Companies
2
2
 
3
3
  ## Overview
4
4
 
@@ -155,7 +155,7 @@ sdk.companies.list({
155
155
  orderBy: "-modifiedDate",
156
156
  page: 1,
157
157
  pageSize: 100,
158
- query: "minus",
158
+ query: "corrupti",
159
159
  }).then((res: ListCompaniesResponse) => {
160
160
  if (res.statusCode == 200) {
161
161
  // handle response
@@ -1,4 +1,4 @@
1
- # companyInfo
1
+ # CompanyInfo
2
2
 
3
3
  ## Overview
4
4
 
@@ -1,4 +1,4 @@
1
- # connections
1
+ # Connections
2
2
 
3
3
  ## Overview
4
4
 
@@ -32,7 +32,7 @@ const sdk = new CodatLending({
32
32
 
33
33
  sdk.connections.create({
34
34
  requestBody: {
35
- platformKey: "placeat",
35
+ platformKey: "illum",
36
36
  },
37
37
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
38
38
  }).then((res: CreateConnectionResponse) => {
@@ -158,7 +158,7 @@ sdk.connections.list({
158
158
  orderBy: "-modifiedDate",
159
159
  page: 1,
160
160
  pageSize: 100,
161
- query: "voluptatum",
161
+ query: "vel",
162
162
  }).then((res: ListConnectionsResponse) => {
163
163
  if (res.statusCode == 200) {
164
164
  // handle response
@@ -199,7 +199,7 @@ const sdk = new CodatLending({
199
199
 
200
200
  sdk.connections.unlink({
201
201
  requestBody: {
202
- status: DataConnectionStatus.Linked,
202
+ status: DataConnectionStatus.Unlinked,
203
203
  },
204
204
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
205
205
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
@@ -1,4 +1,4 @@
1
- # dataIntegrity
1
+ # DataIntegrity
2
2
 
3
3
  ## Overview
4
4
 
@@ -35,7 +35,7 @@ sdk.dataIntegrity.details({
35
35
  orderBy: "-modifiedDate",
36
36
  page: 1,
37
37
  pageSize: 100,
38
- query: "excepturi",
38
+ query: "deserunt",
39
39
  }).then((res: ListDataIntegrityDetailsResponse) => {
40
40
  if (res.statusCode == 200) {
41
41
  // handle response
@@ -129,7 +129,7 @@ const sdk = new CodatLending({
129
129
  sdk.dataIntegrity.summaries({
130
130
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
131
131
  dataType: DataIntegrityDataType.BankingAccounts,
132
- query: "nisi",
132
+ query: "suscipit",
133
133
  }).then((res: GetDataIntegritySummariesResponse) => {
134
134
  if (res.statusCode == 200) {
135
135
  // handle response
@@ -1,4 +1,4 @@
1
- # excelReports
1
+ # ExcelReports
2
2
 
3
3
  ## Overview
4
4
 
@@ -33,7 +33,7 @@ const sdk = new CodatLending({
33
33
 
34
34
  sdk.excelReports.download({
35
35
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
36
- reportType: ExcelReportTypes.EnhancedCashFlow,
36
+ reportType: ExcelReportTypes.EnhancedFinancials,
37
37
  }).then((res: DownloadExcelReportResponse) => {
38
38
  if (res.statusCode == 200) {
39
39
  // handle response
@@ -90,7 +90,7 @@ const sdk = new CodatLending({
90
90
 
91
91
  sdk.excelReports.generate({
92
92
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
93
- reportType: ExcelReportTypes.EnhancedCashFlow,
93
+ reportType: ExcelReportTypes.EnhancedFinancials,
94
94
  }).then((res: GenerateExcelReportResponse) => {
95
95
  if (res.statusCode == 200) {
96
96
  // handle response
@@ -135,7 +135,7 @@ const sdk = new CodatLending({
135
135
 
136
136
  sdk.excelReports.getStatus({
137
137
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
138
- reportType: ExcelReportTypes.Audit,
138
+ reportType: ExcelReportTypes.EnhancedCashFlow,
139
139
  }).then((res: GetExcelReportGenerationStatusResponse) => {
140
140
  if (res.statusCode == 200) {
141
141
  // handle response
@@ -1,4 +1,4 @@
1
- # fileUpload
1
+ # FileUpload
2
2
 
3
3
  ## Overview
4
4
 
@@ -113,8 +113,8 @@ const sdk = new CodatLending({
113
113
 
114
114
  sdk.fileUpload.upload({
115
115
  requestBody: {
116
- content: "veritatis".encode(),
117
- requestBody: "deserunt",
116
+ content: "delectus".encode(),
117
+ requestBody: "tempora",
118
118
  },
119
119
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
120
120
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
@@ -1,4 +1,4 @@
1
- # financialStatements
1
+ # FinancialStatements
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -1,4 +1,4 @@
1
- # financialStatementsAccounts
1
+ # FinancialStatements.Accounts
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
28
28
  },
29
29
  });
30
30
 
31
- sdk.financialStatementsAccounts.get({
31
+ sdk.financialStatements.accounts.get({
32
32
  accountId: "cum",
33
33
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
34
34
  }).then((res: GetAccountingAccountResponse) => {
@@ -72,7 +72,7 @@ const sdk = new CodatLending({
72
72
  },
73
73
  });
74
74
 
75
- sdk.financialStatementsAccounts.list({
75
+ sdk.financialStatements.accounts.list({
76
76
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
77
77
  orderBy: "-modifiedDate",
78
78
  page: 1,
@@ -1,4 +1,4 @@
1
- # financialStatementsBalanceSheet
1
+ # FinancialStatements.BalanceSheet
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -21,7 +21,7 @@ const sdk = new CodatLending({
21
21
  },
22
22
  });
23
23
 
24
- sdk.financialStatementsBalanceSheet.get({
24
+ sdk.financialStatements.balanceSheet.get({
25
25
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
26
26
  periodLength: 4,
27
27
  periodsToCompare: 20,
@@ -65,7 +65,7 @@ const sdk = new CodatLending({
65
65
  },
66
66
  });
67
67
 
68
- sdk.financialStatementsBalanceSheet.getCategorizedAccounts({
68
+ sdk.financialStatements.balanceSheet.getCategorizedAccounts({
69
69
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
70
70
  numberOfPeriods: 568434,
71
71
  reportDate: "29-09-2020",
@@ -1,4 +1,4 @@
1
- # financialStatementsCashFlow
1
+ # FinancialStatements.CashFlow
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -20,7 +20,7 @@ const sdk = new CodatLending({
20
20
  },
21
21
  });
22
22
 
23
- sdk.financialStatementsCashFlow.get({
23
+ sdk.financialStatements.cashFlow.get({
24
24
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
25
25
  periodLength: 4,
26
26
  periodsToCompare: 20,
@@ -1,4 +1,4 @@
1
- # financialStatementsProfitAndLoss
1
+ # FinancialStatements.ProfitAndLoss
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -21,7 +21,7 @@ const sdk = new CodatLending({
21
21
  },
22
22
  });
23
23
 
24
- sdk.financialStatementsProfitAndLoss.get({
24
+ sdk.financialStatements.profitAndLoss.get({
25
25
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
26
26
  periodLength: 4,
27
27
  periodsToCompare: 20,
@@ -65,7 +65,7 @@ const sdk = new CodatLending({
65
65
  },
66
66
  });
67
67
 
68
- sdk.financialStatementsProfitAndLoss.getCategorizedAccounts({
68
+ sdk.financialStatements.profitAndLoss.getCategorizedAccounts({
69
69
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
70
70
  numberOfPeriods: 324141,
71
71
  reportDate: "29-09-2020",
@@ -1,4 +1,4 @@
1
- # liabilities
1
+ # Liabilities
2
2
 
3
3
  ## Overview
4
4
 
@@ -76,7 +76,7 @@ const sdk = new CodatLending({
76
76
 
77
77
  sdk.liabilities.listLoanTransactions({
78
78
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
79
- sourceType: ListLoanTransactionsSourceType.Banking,
79
+ sourceType: ListLoanTransactionsSourceType.Commerce,
80
80
  }).then((res: ListLoanTransactionsResponse) => {
81
81
  if (res.statusCode == 200) {
82
82
  // handle response
@@ -1,4 +1,4 @@
1
- # manageData
1
+ # ManageData
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -1,4 +1,4 @@
1
- # manageDataPullOperations
1
+ # ManageData.PullOperations
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -21,7 +21,7 @@ const sdk = new CodatLending({
21
21
  },
22
22
  });
23
23
 
24
- sdk.manageDataPullOperations.get({
24
+ sdk.manageData.pullOperations.get({
25
25
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
26
26
  datasetId: "eaed9f0f-e77b-4bc9-a58f-ab8b4b99ab18",
27
27
  }).then((res: GetPullOperationResponse) => {
@@ -61,7 +61,7 @@ const sdk = new CodatLending({
61
61
  },
62
62
  });
63
63
 
64
- sdk.manageDataPullOperations.list({
64
+ sdk.manageData.pullOperations.list({
65
65
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
66
66
  orderBy: "-modifiedDate",
67
67
  page: 1,
@@ -1,4 +1,4 @@
1
- # manageDataRefresh
1
+ # ManageData.Refresh
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -25,7 +25,7 @@ const sdk = new CodatLending({
25
25
  },
26
26
  });
27
27
 
28
- sdk.manageDataRefresh.allDataTypes({
28
+ sdk.manageData.refresh.allDataTypes({
29
29
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
30
30
  }).then((res: RefreshAllDataTypesResponse) => {
31
31
  if (res.statusCode == 200) {
@@ -67,7 +67,7 @@ const sdk = new CodatLending({
67
67
  },
68
68
  });
69
69
 
70
- sdk.manageDataRefresh.dataType({
70
+ sdk.manageData.refresh.dataType({
71
71
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
72
72
  connectionId: "29396fea-7596-4eb1-8faa-a2352c595590",
73
73
  dataType: DataType.Invoices,
@@ -1,4 +1,4 @@
1
- # sales
1
+ # Sales
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -1,4 +1,4 @@
1
- # salesPaymentMethods
1
+ # Sales.PaymentMethods
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
28
28
  },
29
29
  });
30
30
 
31
- sdk.salesPaymentMethods.get({
31
+ sdk.sales.paymentMethods.get({
32
32
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
33
33
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
34
34
  paymentMethodId: "velit",
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
74
74
  },
75
75
  });
76
76
 
77
- sdk.salesPaymentMethods.list({
77
+ sdk.sales.paymentMethods.list({
78
78
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
79
79
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
80
80
  orderBy: "-modifiedDate",
@@ -1,4 +1,4 @@
1
- # salesProductCategories
1
+ # Sales.ProductCategories
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
28
28
  },
29
29
  });
30
30
 
31
- sdk.salesProductCategories.get({
31
+ sdk.sales.productCategories.get({
32
32
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
33
33
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
34
34
  productId: "vitae",
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
74
74
  },
75
75
  });
76
76
 
77
- sdk.salesProductCategories.list({
77
+ sdk.sales.productCategories.list({
78
78
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
79
79
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
80
80
  orderBy: "-modifiedDate",
@@ -1,4 +1,4 @@
1
- # transactions
1
+ # Transactions
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -1,4 +1,4 @@
1
- # transactionsAccountTransactions
1
+ # Transactions.AccountTransactions
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
28
28
  },
29
29
  });
30
30
 
31
- sdk.transactionsAccountTransactions.get({
31
+ sdk.transactions.accountTransactions.get({
32
32
  accountTransactionId: "quasi",
33
33
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
34
34
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
74
74
  },
75
75
  });
76
76
 
77
- sdk.transactionsAccountTransactions.list({
77
+ sdk.transactions.accountTransactions.list({
78
78
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
79
79
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
80
80
  orderBy: "-modifiedDate",
@@ -1,4 +1,4 @@
1
- # transactionsDirectCosts
1
+ # Transactions.DirectCosts
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -29,7 +29,7 @@ const sdk = new CodatLending({
29
29
  },
30
30
  });
31
31
 
32
- sdk.transactionsDirectCosts.downloadAttachment({
32
+ sdk.transactions.directCosts.downloadAttachment({
33
33
  attachmentId: "8a210b68-6988-11ed-a1eb-0242ac120002",
34
34
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
35
35
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
@@ -78,7 +78,7 @@ const sdk = new CodatLending({
78
78
  },
79
79
  });
80
80
 
81
- sdk.transactionsDirectCosts.get({
81
+ sdk.transactions.directCosts.get({
82
82
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
83
83
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
84
84
  directCostId: "laborum",
@@ -124,7 +124,7 @@ const sdk = new CodatLending({
124
124
  },
125
125
  });
126
126
 
127
- sdk.transactionsDirectCosts.getAttachment({
127
+ sdk.transactions.directCosts.getAttachment({
128
128
  attachmentId: "8a210b68-6988-11ed-a1eb-0242ac120002",
129
129
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
130
130
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
@@ -171,7 +171,7 @@ const sdk = new CodatLending({
171
171
  },
172
172
  });
173
173
 
174
- sdk.transactionsDirectCosts.list({
174
+ sdk.transactions.directCosts.list({
175
175
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
176
176
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
177
177
  orderBy: "-modifiedDate",
@@ -220,7 +220,7 @@ const sdk = new CodatLending({
220
220
  },
221
221
  });
222
222
 
223
- sdk.transactionsDirectCosts.listAttachments({
223
+ sdk.transactions.directCosts.listAttachments({
224
224
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
225
225
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
226
226
  directCostId: "voluptatibus",
@@ -1,4 +1,4 @@
1
- # transactionsJournalEntries
1
+ # Transactions.JournalEntries
2
2
 
3
3
  ### Available Operations
4
4
 
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
28
28
  },
29
29
  });
30
30
 
31
- sdk.transactionsJournalEntries.get({
31
+ sdk.transactions.journalEntries.get({
32
32
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
33
33
  journalEntryId: "vero",
34
34
  }).then((res: GetAccountingJournalEntryResponse) => {
@@ -73,7 +73,7 @@ const sdk = new CodatLending({
73
73
  },
74
74
  });
75
75
 
76
- sdk.transactionsJournalEntries.list({
76
+ sdk.transactions.journalEntries.list({
77
77
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
78
78
  orderBy: "-modifiedDate",
79
79
  page: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codat/lending",
3
- "version": "1.2.0",
3
+ "version": "3.1.0",
4
4
  "author": "Codat",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build"
@@ -1,5 +0,0 @@
1
- import { SpeakeasyBase } from "../../../internal/utils";
2
- export declare class WithholdingTaxitems extends SpeakeasyBase {
3
- amount: number;
4
- name: string;
5
- }
@@ -1,14 +0,0 @@
1
- # AccountingCompanyInfoAccountingAddress
2
-
3
-
4
- ## Fields
5
-
6
- | Field | Type | Required | Description |
7
- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
8
- | `city` | *string* | :heavy_minus_sign: | City of the customer address. |
9
- | `country` | *string* | :heavy_minus_sign: | Country of the customer address. |
10
- | `line1` | *string* | :heavy_minus_sign: | Line 1 of the customer address. |
11
- | `line2` | *string* | :heavy_minus_sign: | Line 2 of the customer address. |
12
- | `postalCode` | *string* | :heavy_minus_sign: | Postal code or zip code. |
13
- | `region` | *string* | :heavy_minus_sign: | Region of the customer address. |
14
- | `type` | [AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address |
@@ -1,11 +0,0 @@
1
- # AccountingCompanyInfoWeblink
2
-
3
- Weblink associated with the company.
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
10
- | `type` | [AccountingCompanyInfoWeblinkType](../../models/shared/accountingcompanyinfoweblinktype.md) | :heavy_minus_sign: | The type of the weblink. |
11
- | `url` | *string* | :heavy_minus_sign: | The full URL for the weblink. |
@@ -1,12 +0,0 @@
1
- # AccountingCompanyInfoWeblinkType
2
-
3
- The type of the weblink.
4
-
5
-
6
- ## Values
7
-
8
- | Name | Value |
9
- | --------- | --------- |
10
- | `Website` | Website |
11
- | `Social` | Social |
12
- | `Unknown` | Unknown |
@@ -1,11 +0,0 @@
1
- # WebLinksitems
2
-
3
- Weblink associated with the company.
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
10
- | `type` | [ItemsType](../../models/shared/itemstype.md) | :heavy_minus_sign: | The type of the weblink. |
11
- | `url` | *string* | :heavy_minus_sign: | The full URL for the weblink. |
@@ -1,9 +0,0 @@
1
- # WithholdingTaxitems
2
-
3
-
4
- ## Fields
5
-
6
- | Field | Type | Required | Description |
7
- | ------------------ | ------------------ | ------------------ | ------------------ |
8
- | `amount` | *number* | :heavy_check_mark: | N/A |
9
- | `name` | *string* | :heavy_check_mark: | N/A |