@codat/lending 3.1.0 → 3.2.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 (175) hide show
  1. package/README.md +36 -0
  2. package/dist/sdk/companies.js +2 -2
  3. package/dist/sdk/connections.js +2 -2
  4. package/dist/sdk/fileupload.js +1 -1
  5. package/dist/sdk/loanwriteback.d.ts +19 -0
  6. package/dist/sdk/loanwriteback.js +27 -0
  7. package/dist/sdk/loanwritebackaccounts.d.ts +40 -0
  8. package/dist/sdk/loanwritebackaccounts.js +294 -0
  9. package/dist/sdk/loanwritebackbankaccounts.d.ts +39 -0
  10. package/dist/sdk/loanwritebackbankaccounts.js +293 -0
  11. package/dist/sdk/loanwritebackbanktransactions.d.ts +40 -0
  12. package/dist/sdk/loanwritebackbanktransactions.js +294 -0
  13. package/dist/sdk/loanwritebackcreateoperations.d.ts +22 -0
  14. package/dist/sdk/loanwritebackcreateoperations.js +250 -0
  15. package/dist/sdk/loanwritebackdirectcosts.d.ts +40 -0
  16. package/dist/sdk/loanwritebackdirectcosts.js +294 -0
  17. package/dist/sdk/loanwritebacksuppliers.d.ts +40 -0
  18. package/dist/sdk/loanwritebacksuppliers.js +294 -0
  19. package/dist/sdk/loanwritebacktransfers.d.ts +40 -0
  20. package/dist/sdk/loanwritebacktransfers.js +294 -0
  21. package/dist/sdk/models/operations/createaccount.d.ts +27 -0
  22. package/dist/sdk/models/operations/createaccount.js +115 -0
  23. package/dist/sdk/models/operations/createbankaccount.d.ts +27 -0
  24. package/dist/sdk/models/operations/createbankaccount.js +115 -0
  25. package/dist/sdk/models/operations/createbanktransactions.d.ts +31 -0
  26. package/dist/sdk/models/operations/createbanktransactions.js +119 -0
  27. package/dist/sdk/models/operations/createdirectcost.d.ts +27 -0
  28. package/dist/sdk/models/operations/createdirectcost.js +115 -0
  29. package/dist/sdk/models/operations/createsupplier.d.ts +27 -0
  30. package/dist/sdk/models/operations/createsupplier.js +115 -0
  31. package/dist/sdk/models/operations/createtransfer.d.ts +27 -0
  32. package/dist/sdk/models/operations/createtransfer.js +115 -0
  33. package/dist/sdk/models/operations/getcreatebanktransactionsmodel.d.ts +24 -0
  34. package/dist/sdk/models/operations/getcreatebanktransactionsmodel.js +103 -0
  35. package/dist/sdk/models/operations/getcreatechartofaccountsmodel.d.ts +20 -0
  36. package/dist/sdk/models/operations/getcreatechartofaccountsmodel.js +99 -0
  37. package/dist/sdk/models/operations/getcreatedirectcostsmodel.d.ts +20 -0
  38. package/dist/sdk/models/operations/getcreatedirectcostsmodel.js +99 -0
  39. package/dist/sdk/models/operations/getcreateoperation.d.ts +23 -0
  40. package/dist/sdk/models/operations/getcreateoperation.js +99 -0
  41. package/dist/sdk/models/operations/getcreatetransfersmodel.d.ts +20 -0
  42. package/dist/sdk/models/operations/getcreatetransfersmodel.js +99 -0
  43. package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.d.ts +20 -0
  44. package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.js +99 -0
  45. package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.d.ts +20 -0
  46. package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.js +99 -0
  47. package/dist/sdk/models/operations/index.d.ts +14 -0
  48. package/dist/sdk/models/operations/index.js +14 -0
  49. package/dist/sdk/models/operations/listcreateoperations.d.ts +35 -0
  50. package/dist/sdk/models/operations/listcreateoperations.js +111 -0
  51. package/dist/sdk/models/shared/accountingcreateaccountresponse.d.ts +124 -0
  52. package/dist/sdk/models/shared/accountingcreateaccountresponse.js +118 -0
  53. package/dist/sdk/models/shared/accountingcreatebankaccountresponse.d.ts +112 -0
  54. package/dist/sdk/models/shared/accountingcreatebankaccountresponse.js +118 -0
  55. package/dist/sdk/models/shared/accountingcreatebanktransactions.d.ts +6 -0
  56. package/dist/sdk/models/shared/accountingcreatebanktransactions.js +52 -0
  57. package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.d.ts +92 -0
  58. package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.js +118 -0
  59. package/dist/sdk/models/shared/accountingcreatedirectcostresponse.d.ts +111 -0
  60. package/dist/sdk/models/shared/accountingcreatedirectcostresponse.js +118 -0
  61. package/dist/sdk/models/shared/accountingcreatesupplierresponse.d.ts +101 -0
  62. package/dist/sdk/models/shared/accountingcreatesupplierresponse.js +118 -0
  63. package/dist/sdk/models/shared/accountingcreatetransferresponse.d.ts +99 -0
  64. package/dist/sdk/models/shared/accountingcreatetransferresponse.js +118 -0
  65. package/dist/sdk/models/shared/createbankaccounttransaction.d.ts +31 -0
  66. package/dist/sdk/models/shared/createbankaccounttransaction.js +65 -0
  67. package/dist/sdk/models/shared/index.d.ts +22 -0
  68. package/dist/sdk/models/shared/index.js +22 -0
  69. package/dist/sdk/models/shared/pushchangetype.d.ts +7 -0
  70. package/dist/sdk/models/shared/pushchangetype.js +14 -0
  71. package/dist/sdk/models/shared/pushfieldvalidation.d.ts +6 -0
  72. package/dist/sdk/models/shared/pushfieldvalidation.js +55 -0
  73. package/dist/sdk/models/shared/pushoperation.d.ts +90 -0
  74. package/dist/sdk/models/shared/pushoperation.js +111 -0
  75. package/dist/sdk/models/shared/pushoperationchange.d.ts +8 -0
  76. package/dist/sdk/models/shared/pushoperationchange.js +58 -0
  77. package/dist/sdk/models/shared/pushoperationref.d.ts +9 -0
  78. package/dist/sdk/models/shared/pushoperationref.js +51 -0
  79. package/dist/sdk/models/shared/pushoperations.d.ts +10 -0
  80. package/dist/sdk/models/shared/pushoperations.js +69 -0
  81. package/dist/sdk/models/shared/pushoperationstatus.d.ts +9 -0
  82. package/dist/sdk/models/shared/pushoperationstatus.js +16 -0
  83. package/dist/sdk/models/shared/pushoption.d.ts +14 -0
  84. package/dist/sdk/models/shared/pushoption.js +89 -0
  85. package/dist/sdk/models/shared/pushoptionchoice.d.ts +12 -0
  86. package/dist/sdk/models/shared/pushoptionchoice.js +66 -0
  87. package/dist/sdk/models/shared/pushoptionproperty.d.ts +13 -0
  88. package/dist/sdk/models/shared/pushoptionproperty.js +88 -0
  89. package/dist/sdk/models/shared/pushoptiontype.d.ts +10 -0
  90. package/dist/sdk/models/shared/pushoptiontype.js +17 -0
  91. package/dist/sdk/models/shared/pushvalidationinfo.d.ts +6 -0
  92. package/dist/sdk/models/shared/pushvalidationinfo.js +53 -0
  93. package/dist/sdk/models/shared/validation.d.ts +9 -0
  94. package/dist/sdk/models/shared/validation.js +56 -0
  95. package/dist/sdk/models/shared/validationitem.d.ts +6 -0
  96. package/dist/sdk/models/shared/validationitem.js +55 -0
  97. package/dist/sdk/sdk.d.ts +2 -0
  98. package/dist/sdk/sdk.js +4 -2
  99. package/docs/models/operations/createaccountrequest.md +13 -0
  100. package/docs/models/operations/createaccountresponse.md +12 -0
  101. package/docs/models/operations/createbankaccountrequest.md +13 -0
  102. package/docs/models/operations/createbankaccountresponse.md +12 -0
  103. package/docs/models/operations/createbanktransactionsrequest.md +14 -0
  104. package/docs/models/operations/createbanktransactionsresponse.md +12 -0
  105. package/docs/models/operations/createdirectcostrequest.md +13 -0
  106. package/docs/models/operations/createdirectcostresponse.md +12 -0
  107. package/docs/models/operations/createsupplierrequest.md +13 -0
  108. package/docs/models/operations/createsupplierresponse.md +12 -0
  109. package/docs/models/operations/createtransferrequest.md +13 -0
  110. package/docs/models/operations/createtransferresponse.md +12 -0
  111. package/docs/models/operations/getcreatebanktransactionsmodelrequest.md +10 -0
  112. package/docs/models/operations/getcreatebanktransactionsmodelresponse.md +12 -0
  113. package/docs/models/operations/getcreatechartofaccountsmodelrequest.md +9 -0
  114. package/docs/models/operations/getcreatechartofaccountsmodelresponse.md +12 -0
  115. package/docs/models/operations/getcreatedirectcostsmodelrequest.md +9 -0
  116. package/docs/models/operations/getcreatedirectcostsmodelresponse.md +12 -0
  117. package/docs/models/operations/getcreateoperationrequest.md +9 -0
  118. package/docs/models/operations/getcreateoperationresponse.md +12 -0
  119. package/docs/models/operations/getcreatetransfersmodelrequest.md +9 -0
  120. package/docs/models/operations/getcreatetransfersmodelresponse.md +12 -0
  121. package/docs/models/operations/getcreateupdatebankaccountsmodelrequest.md +9 -0
  122. package/docs/models/operations/getcreateupdatebankaccountsmodelresponse.md +12 -0
  123. package/docs/models/operations/getcreateupdatesuppliersmodelrequest.md +9 -0
  124. package/docs/models/operations/getcreateupdatesuppliersmodelresponse.md +12 -0
  125. package/docs/models/operations/listcreateoperationsrequest.md +12 -0
  126. package/docs/models/operations/listcreateoperationsresponse.md +12 -0
  127. package/docs/models/shared/accountingcreateaccountresponse.md +21 -0
  128. package/docs/models/shared/accountingcreatebankaccountresponse.md +21 -0
  129. package/docs/models/shared/accountingcreatebanktransactions.md +9 -0
  130. package/docs/models/shared/accountingcreatebanktransactionsresponse.md +21 -0
  131. package/docs/models/shared/accountingcreatedirectcostresponse.md +21 -0
  132. package/docs/models/shared/accountingcreatesupplierresponse.md +21 -0
  133. package/docs/models/shared/accountingcreatetransferresponse.md +21 -0
  134. package/docs/models/shared/createbankaccounttransaction.md +12 -0
  135. package/docs/models/shared/pushchangetype.md +12 -0
  136. package/docs/models/shared/pushfieldvalidation.md +10 -0
  137. package/docs/models/shared/pushoperation.md +20 -0
  138. package/docs/models/shared/pushoperationchange.md +10 -0
  139. package/docs/models/shared/pushoperationref.md +9 -0
  140. package/docs/models/shared/pushoperations.md +12 -0
  141. package/docs/models/shared/pushoperationstatus.md +13 -0
  142. package/docs/models/shared/pushoption.md +14 -0
  143. package/docs/models/shared/pushoptionchoice.md +12 -0
  144. package/docs/models/shared/pushoptionproperty.md +14 -0
  145. package/docs/models/shared/pushoptiontype.md +15 -0
  146. package/docs/models/shared/pushvalidationinfo.md +9 -0
  147. package/docs/models/shared/validation.md +11 -0
  148. package/docs/models/shared/validationitem.md +10 -0
  149. package/docs/sdks/loanwriteback/README.md +4 -0
  150. package/docs/sdks/loanwritebackaccounts/README.md +134 -0
  151. package/docs/sdks/loanwritebackbankaccounts/README.md +126 -0
  152. package/docs/sdks/loanwritebackbanktransactions/README.md +121 -0
  153. package/docs/sdks/loanwritebackcreateoperations/README.md +89 -0
  154. package/docs/sdks/loanwritebackdirectcosts/README.md +200 -0
  155. package/docs/sdks/loanwritebacksuppliers/README.md +142 -0
  156. package/docs/sdks/loanwritebacktransfers/README.md +156 -0
  157. package/docs/sdks/managedatapulloperations/README.md +1 -1
  158. package/docs/sdks/managedatarefresh/README.md +1 -1
  159. package/docs/sdks/salescustomers/README.md +2 -2
  160. package/docs/sdks/salesdisputes/README.md +2 -2
  161. package/docs/sdks/saleslocations/README.md +1 -1
  162. package/docs/sdks/salesmetrics/README.md +9 -9
  163. package/docs/sdks/salesorders/README.md +2 -2
  164. package/docs/sdks/salespaymentmethods/README.md +2 -2
  165. package/docs/sdks/salespayments/README.md +2 -2
  166. package/docs/sdks/salesproductcategories/README.md +2 -2
  167. package/docs/sdks/salesproducts/README.md +2 -2
  168. package/docs/sdks/salesreports/README.md +5 -5
  169. package/docs/sdks/salestransactions/README.md +2 -2
  170. package/docs/sdks/transactionsaccounttransactions/README.md +2 -2
  171. package/docs/sdks/transactionsdirectcosts/README.md +5 -5
  172. package/docs/sdks/transactionsjournalentries/README.md +2 -2
  173. package/docs/sdks/transactionsjournals/README.md +2 -2
  174. package/docs/sdks/transactionstransfers/README.md +2 -2
  175. package/package.json +1 -1
@@ -31,7 +31,7 @@ const sdk = new CodatLending({
31
31
  sdk.sales.productCategories.get({
32
32
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
33
33
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
34
- productId: "vitae",
34
+ productId: "saepe",
35
35
  }).then((res: GetCommerceProductCategoryResponse) => {
36
36
  if (res.statusCode == 200) {
37
37
  // handle response
@@ -80,7 +80,7 @@ sdk.sales.productCategories.list({
80
80
  orderBy: "-modifiedDate",
81
81
  page: 1,
82
82
  pageSize: 100,
83
- query: "laborum",
83
+ query: "necessitatibus",
84
84
  }).then((res: ListCommerceProductCategoriesResponse) => {
85
85
  if (res.statusCode == 200) {
86
86
  // handle response
@@ -31,7 +31,7 @@ const sdk = new CodatLending({
31
31
  sdk.sales.products.get({
32
32
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
33
33
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
34
- productId: "animi",
34
+ productId: "dolore",
35
35
  }).then((res: GetCommerceProductResponse) => {
36
36
  if (res.statusCode == 200) {
37
37
  // handle response
@@ -80,7 +80,7 @@ sdk.sales.products.list({
80
80
  orderBy: "-modifiedDate",
81
81
  page: 1,
82
82
  pageSize: 100,
83
- query: "enim",
83
+ query: "sunt",
84
84
  }).then((res: ListCommerceProductsResponse) => {
85
85
  if (res.statusCode == 200) {
86
86
  // handle response
@@ -49,8 +49,8 @@ sdk.sales.reports.getOrders({
49
49
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
50
50
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
51
51
  includeDisplayNames: false,
52
- numberOfPeriods: 138183,
53
- periodLength: 778346,
52
+ numberOfPeriods: 992012,
53
+ periodLength: 241545,
54
54
  periodUnit: PeriodUnit.Day,
55
55
  reportDate: "29-09-2020",
56
56
  }).then((res: GetCommerceOrdersReportResponse) => {
@@ -119,9 +119,9 @@ sdk.sales.reports.getRefunds({
119
119
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
120
120
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
121
121
  includeDisplayNames: false,
122
- numberOfPeriods: 949572,
123
- periodLength: 368725,
124
- periodUnit: PeriodUnit.Month,
122
+ numberOfPeriods: 228263,
123
+ periodLength: 105906,
124
+ periodUnit: PeriodUnit.Week,
125
125
  reportDate: "29-09-2020",
126
126
  }).then((res: GetCommerceRefundsReportResponse) => {
127
127
  if (res.statusCode == 200) {
@@ -31,7 +31,7 @@ const sdk = new CodatLending({
31
31
  sdk.sales.transactions.get({
32
32
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
33
33
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
34
- transactionId: "possimus",
34
+ transactionId: "a",
35
35
  }).then((res: GetCommerceTransactionResponse) => {
36
36
  if (res.statusCode == 200) {
37
37
  // handle response
@@ -80,7 +80,7 @@ sdk.sales.transactions.list({
80
80
  orderBy: "-modifiedDate",
81
81
  page: 1,
82
82
  pageSize: 100,
83
- query: "aut",
83
+ query: "debitis",
84
84
  }).then((res: ListCommerceTransactionsResponse) => {
85
85
  if (res.statusCode == 200) {
86
86
  // handle response
@@ -29,7 +29,7 @@ const sdk = new CodatLending({
29
29
  });
30
30
 
31
31
  sdk.transactions.accountTransactions.get({
32
- accountTransactionId: "quasi",
32
+ accountTransactionId: "consectetur",
33
33
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
34
34
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
35
35
  }).then((res: GetAccountingAccountTransactionResponse) => {
@@ -80,7 +80,7 @@ sdk.transactions.accountTransactions.list({
80
80
  orderBy: "-modifiedDate",
81
81
  page: 1,
82
82
  pageSize: 100,
83
- query: "error",
83
+ query: "corporis",
84
84
  }).then((res: ListAccountingAccountTransactionsResponse) => {
85
85
  if (res.statusCode == 200) {
86
86
  // handle response
@@ -33,7 +33,7 @@ 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",
36
- directCostId: "temporibus",
36
+ directCostId: "harum",
37
37
  }).then((res: DownloadAccountingDirectCostAttachmentResponse) => {
38
38
  if (res.statusCode == 200) {
39
39
  // handle response
@@ -81,7 +81,7 @@ const sdk = new CodatLending({
81
81
  sdk.transactions.directCosts.get({
82
82
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
83
83
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
84
- directCostId: "laborum",
84
+ directCostId: "laboriosam",
85
85
  }).then((res: GetAccountingDirectCostResponse) => {
86
86
  if (res.statusCode == 200) {
87
87
  // handle response
@@ -128,7 +128,7 @@ 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",
131
- directCostId: "quasi",
131
+ directCostId: "ipsa",
132
132
  }).then((res: GetAccountingDirectCostAttachmentResponse) => {
133
133
  if (res.statusCode == 200) {
134
134
  // handle response
@@ -177,7 +177,7 @@ sdk.transactions.directCosts.list({
177
177
  orderBy: "-modifiedDate",
178
178
  page: 1,
179
179
  pageSize: 100,
180
- query: "reiciendis",
180
+ query: "voluptates",
181
181
  }).then((res: ListAccountingDirectCostsResponse) => {
182
182
  if (res.statusCode == 200) {
183
183
  // handle response
@@ -223,7 +223,7 @@ const sdk = new CodatLending({
223
223
  sdk.transactions.directCosts.listAttachments({
224
224
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
225
225
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
226
- directCostId: "voluptatibus",
226
+ directCostId: "libero",
227
227
  }).then((res: ListAccountingDirectCostAttachmentsResponse) => {
228
228
  if (res.statusCode == 200) {
229
229
  // handle response
@@ -30,7 +30,7 @@ const sdk = new CodatLending({
30
30
 
31
31
  sdk.transactions.journalEntries.get({
32
32
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
33
- journalEntryId: "vero",
33
+ journalEntryId: "vitae",
34
34
  }).then((res: GetAccountingJournalEntryResponse) => {
35
35
  if (res.statusCode == 200) {
36
36
  // handle response
@@ -78,7 +78,7 @@ sdk.transactions.journalEntries.list({
78
78
  orderBy: "-modifiedDate",
79
79
  page: 1,
80
80
  pageSize: 100,
81
- query: "nihil",
81
+ query: "accusamus",
82
82
  }).then((res: ListAccountingJournalEntriesResponse) => {
83
83
  if (res.statusCode == 200) {
84
84
  // handle response
@@ -30,7 +30,7 @@ const sdk = new CodatLending({
30
30
 
31
31
  sdk.transactions.journals.get({
32
32
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
33
- journalId: "praesentium",
33
+ journalId: "similique",
34
34
  }).then((res: GetAccountingJournalResponse) => {
35
35
  if (res.statusCode == 200) {
36
36
  // handle response
@@ -78,7 +78,7 @@ sdk.transactions.journals.list({
78
78
  orderBy: "-modifiedDate",
79
79
  page: 1,
80
80
  pageSize: 100,
81
- query: "voluptatibus",
81
+ query: "tempora",
82
82
  }).then((res: ListAccountingJournalsResponse) => {
83
83
  if (res.statusCode == 200) {
84
84
  // handle response
@@ -31,7 +31,7 @@ const sdk = new CodatLending({
31
31
  sdk.transactions.transfers.get({
32
32
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
33
33
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
34
- transferId: "ipsa",
34
+ transferId: "aspernatur",
35
35
  }).then((res: GetAccountingTransferResponse) => {
36
36
  if (res.statusCode == 200) {
37
37
  // handle response
@@ -80,7 +80,7 @@ sdk.transactions.transfers.list({
80
80
  orderBy: "-modifiedDate",
81
81
  page: 1,
82
82
  pageSize: 100,
83
- query: "omnis",
83
+ query: "voluptas",
84
84
  }).then((res: ListAccountingTransfersResponse) => {
85
85
  if (res.statusCode == 200) {
86
86
  // handle response
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codat/lending",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "author": "Codat",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build"