@codat/lending 2.1.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 (117) hide show
  1. package/README.md +34 -34
  2. package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.d.ts +40 -0
  3. package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.js +90 -0
  4. package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.d.ts +7 -0
  5. package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.js +45 -0
  6. package/dist/sdk/models/shared/{addressesitems.d.ts → accountingaddress.d.ts} +1 -1
  7. package/dist/sdk/models/shared/{addressesitems.js → accountingaddress.js} +13 -13
  8. package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +2 -2
  9. package/dist/sdk/models/shared/accountingbillcreditnote.js +3 -3
  10. package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +6 -66
  11. package/dist/sdk/models/shared/accountingcompanyinfo.js +10 -100
  12. package/dist/sdk/models/shared/accountingcreditnote.d.ts +2 -2
  13. package/dist/sdk/models/shared/accountingcreditnote.js +3 -3
  14. package/dist/sdk/models/shared/accountingcustomer.d.ts +2 -2
  15. package/dist/sdk/models/shared/accountingcustomer.js +3 -3
  16. package/dist/sdk/models/shared/accountinginvoice.d.ts +2 -2
  17. package/dist/sdk/models/shared/accountinginvoice.js +3 -3
  18. package/dist/sdk/models/shared/accountingsupplier.d.ts +2 -2
  19. package/dist/sdk/models/shared/accountingsupplier.js +3 -3
  20. package/dist/sdk/models/shared/clientratelimitreachedwebhook.d.ts +32 -0
  21. package/dist/sdk/models/shared/clientratelimitreachedwebhook.js +80 -0
  22. package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.d.ts +31 -0
  23. package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.js +50 -0
  24. package/dist/sdk/models/shared/clientratelimitresetwebhook.d.ts +32 -0
  25. package/dist/sdk/models/shared/clientratelimitresetwebhook.js +80 -0
  26. package/dist/sdk/models/shared/clientratelimitresetwebhookdata.d.ts +39 -0
  27. package/dist/sdk/models/shared/clientratelimitresetwebhookdata.js +60 -0
  28. package/dist/sdk/models/shared/commercecompanyinfo.d.ts +4 -4
  29. package/dist/sdk/models/shared/commercecompanyinfo.js +6 -6
  30. package/dist/sdk/models/shared/contact.d.ts +4 -4
  31. package/dist/sdk/models/shared/contact.js +6 -6
  32. package/dist/sdk/models/shared/index.d.ts +9 -3
  33. package/dist/sdk/models/shared/index.js +9 -3
  34. package/dist/sdk/models/shared/items.d.ts +2 -9
  35. package/dist/sdk/models/shared/items.js +5 -6
  36. package/dist/sdk/models/shared/phonenumber.d.ts +12 -0
  37. package/dist/sdk/models/shared/{withholdingtaxitems.js → phonenumber.js} +12 -11
  38. package/dist/sdk/models/shared/{weblinksitems.d.ts → weblink.d.ts} +3 -3
  39. package/dist/sdk/models/shared/{weblinksitems.js → weblink.js} +14 -14
  40. package/dist/sdk/models/webhooks/accountcategoriesupdated.d.ts +7 -0
  41. package/dist/sdk/models/webhooks/accountcategoriesupdated.js +51 -0
  42. package/dist/sdk/models/webhooks/clientratelimitreached.d.ts +7 -0
  43. package/dist/sdk/models/webhooks/clientratelimitreached.js +51 -0
  44. package/dist/sdk/models/webhooks/clientratelimitreset.d.ts +7 -0
  45. package/dist/sdk/models/webhooks/clientratelimitreset.js +51 -0
  46. package/dist/sdk/models/webhooks/index.d.ts +3 -0
  47. package/dist/sdk/models/webhooks/index.js +22 -0
  48. package/dist/sdk/sdk.js +2 -2
  49. package/docs/models/shared/accountcategoriesupdatedwebhook.md +18 -0
  50. package/docs/models/shared/accountcategoriesupdatedwebhookdata.md +8 -0
  51. package/docs/models/shared/{addressesitems.md → accountingaddress.md} +1 -1
  52. package/docs/models/shared/accountingbillcreditnote.md +1 -1
  53. package/docs/models/shared/accountingcompanyinfo.md +3 -3
  54. package/docs/models/shared/accountingcreditnote.md +1 -1
  55. package/docs/models/shared/accountingcustomer.md +1 -1
  56. package/docs/models/shared/accountinginvoice.md +1 -1
  57. package/docs/models/shared/accountingsupplier.md +1 -1
  58. package/docs/models/shared/clientratelimitreachedwebhook.md +16 -0
  59. package/docs/models/shared/clientratelimitreachedwebhookdata.md +9 -0
  60. package/docs/models/shared/clientratelimitresetwebhook.md +16 -0
  61. package/docs/models/shared/clientratelimitresetwebhookdata.md +11 -0
  62. package/docs/models/shared/commercecompanyinfo.md +2 -2
  63. package/docs/models/shared/contact.md +2 -2
  64. package/docs/models/shared/items.md +4 -4
  65. package/docs/models/shared/{accountingcompanyinfophone.md → phonenumber.md} +1 -1
  66. package/docs/models/shared/weblink.md +11 -0
  67. package/docs/models/shared/{itemstype.md → weblinktype.md} +1 -1
  68. package/docs/models/webhooks/accountcategoriesupdatedresponse.md +10 -0
  69. package/docs/models/webhooks/clientratelimitreachedresponse.md +10 -0
  70. package/docs/models/webhooks/clientratelimitresetresponse.md +10 -0
  71. package/docs/sdks/accountingbankdata/README.md +1 -1
  72. package/docs/sdks/accountingbankdataaccounts/README.md +3 -3
  73. package/docs/sdks/accountspayable/README.md +1 -1
  74. package/docs/sdks/accountspayablebillcreditnotes/README.md +3 -3
  75. package/docs/sdks/accountspayablebillpayments/README.md +3 -3
  76. package/docs/sdks/accountspayablebills/README.md +6 -6
  77. package/docs/sdks/accountspayablesuppliers/README.md +6 -6
  78. package/docs/sdks/accountsreceivable/README.md +1 -1
  79. package/docs/sdks/accountsreceivablecreditnotes/README.md +3 -3
  80. package/docs/sdks/accountsreceivablecustomers/README.md +6 -6
  81. package/docs/sdks/accountsreceivabledirectincomes/README.md +6 -6
  82. package/docs/sdks/accountsreceivableinvoices/README.md +8 -8
  83. package/docs/sdks/accountsreceivablepayments/README.md +3 -3
  84. package/docs/sdks/accountsreceivablereports/README.md +5 -5
  85. package/docs/sdks/banking/README.md +1 -1
  86. package/docs/sdks/bankingaccountbalances/README.md +2 -2
  87. package/docs/sdks/bankingcategorizedstatement/README.md +2 -2
  88. package/docs/sdks/bankingtransactioncategories/README.md +3 -3
  89. package/docs/sdks/companies/README.md +1 -1
  90. package/docs/sdks/companyinfo/README.md +1 -1
  91. package/docs/sdks/connections/README.md +1 -1
  92. package/docs/sdks/dataintegrity/README.md +1 -1
  93. package/docs/sdks/excelreports/README.md +1 -1
  94. package/docs/sdks/fileupload/README.md +1 -1
  95. package/docs/sdks/financialstatements/README.md +1 -1
  96. package/docs/sdks/financialstatementsaccounts/README.md +3 -3
  97. package/docs/sdks/financialstatementsbalancesheet/README.md +3 -3
  98. package/docs/sdks/financialstatementscashflow/README.md +2 -2
  99. package/docs/sdks/financialstatementsprofitandloss/README.md +3 -3
  100. package/docs/sdks/liabilities/README.md +1 -1
  101. package/docs/sdks/managedata/README.md +1 -1
  102. package/docs/sdks/managedatapulloperations/README.md +3 -3
  103. package/docs/sdks/managedatarefresh/README.md +3 -3
  104. package/docs/sdks/sales/README.md +1 -1
  105. package/docs/sdks/salespaymentmethods/README.md +3 -3
  106. package/docs/sdks/salesproductcategories/README.md +3 -3
  107. package/docs/sdks/transactions/README.md +1 -1
  108. package/docs/sdks/transactionsaccounttransactions/README.md +3 -3
  109. package/docs/sdks/transactionsdirectcosts/README.md +6 -6
  110. package/docs/sdks/transactionsjournalentries/README.md +3 -3
  111. package/package.json +1 -1
  112. package/dist/sdk/models/shared/withholdingtaxitems.d.ts +0 -5
  113. package/docs/models/shared/accountingcompanyinfoaccountingaddress.md +0 -14
  114. package/docs/models/shared/accountingcompanyinfoweblink.md +0 -11
  115. package/docs/models/shared/accountingcompanyinfoweblinktype.md +0 -12
  116. package/docs/models/shared/weblinksitems.md +0 -11
  117. package/docs/models/shared/withholdingtaxitems.md +0 -9
@@ -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": "2.1.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 |