@codat/lending 4.0.0 → 4.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 (130) hide show
  1. package/README.md +10 -1
  2. package/dist/sdk/fileupload.js +1 -1
  3. package/dist/sdk/models/operations/uploadfiles.d.ts +1 -5
  4. package/dist/sdk/models/operations/uploadfiles.js +4 -22
  5. package/dist/sdk/models/shared/accountingaccounttransaction.d.ts +7 -0
  6. package/dist/sdk/models/shared/accountingattachment.d.ts +2 -1
  7. package/dist/sdk/models/shared/accountingattachment.js +2 -1
  8. package/dist/sdk/models/shared/accountingbill.d.ts +7 -0
  9. package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +7 -0
  10. package/dist/sdk/models/shared/accountingbillpayment.d.ts +7 -0
  11. package/dist/sdk/models/shared/accountingcreditnote.d.ts +7 -0
  12. package/dist/sdk/models/shared/accountingdirectcost.d.ts +7 -0
  13. package/dist/sdk/models/shared/accountingdirectincome.d.ts +7 -0
  14. package/dist/sdk/models/shared/accountinginvoice.d.ts +7 -0
  15. package/dist/sdk/models/shared/accountingpayment.d.ts +7 -0
  16. package/dist/sdk/models/shared/accountingpaymentallocation.d.ts +7 -0
  17. package/dist/sdk/models/shared/billpaymentlinelink.d.ts +7 -0
  18. package/dist/sdk/models/shared/codatfile.d.ts +5 -0
  19. package/dist/sdk/models/shared/codatfile.js +47 -0
  20. package/dist/sdk/models/shared/directcostprototype.d.ts +7 -0
  21. package/dist/sdk/models/shared/fileupload.d.ts +8 -0
  22. package/dist/sdk/models/shared/fileupload.js +44 -0
  23. package/dist/sdk/models/shared/index.d.ts +2 -0
  24. package/dist/sdk/models/shared/index.js +2 -0
  25. package/dist/sdk/models/shared/payment.d.ts +7 -0
  26. package/dist/sdk/models/shared/paymentallocationpayment.d.ts +7 -0
  27. package/dist/sdk/models/shared/paymentlinelink.d.ts +7 -0
  28. package/dist/sdk/sdk.js +3 -3
  29. package/docs/sdk/models/operations/downloadfilesrequest.md +1 -1
  30. package/docs/sdk/models/operations/getaccountingagedcreditorsreportrequest.md +1 -1
  31. package/docs/sdk/models/operations/getaccountingageddebtorsreportrequest.md +1 -1
  32. package/docs/sdk/models/operations/getaccountingbalancesheetrequest.md +1 -1
  33. package/docs/sdk/models/operations/getaccountingcashflowstatementrequest.md +1 -1
  34. package/docs/sdk/models/operations/getaccountingprofitandlossrequest.md +1 -1
  35. package/docs/sdk/models/operations/uploadfilesrequest.md +5 -5
  36. package/docs/sdk/models/shared/accountingaccount.md +2 -2
  37. package/docs/sdk/models/shared/accountingaccounttransaction.md +15 -15
  38. package/docs/sdk/models/shared/accountingagedcreditorreport.md +2 -2
  39. package/docs/sdk/models/shared/accountingageddebtorreport.md +2 -2
  40. package/docs/sdk/models/shared/accountingattachment.md +5 -4
  41. package/docs/sdk/models/shared/accountingbalancesheet.md +2 -2
  42. package/docs/sdk/models/shared/accountingbankaccount.md +2 -2
  43. package/docs/sdk/models/shared/accountingbanktransaction.md +3 -3
  44. package/docs/sdk/models/shared/accountingbill.md +23 -23
  45. package/docs/sdk/models/shared/accountingbillcreditnote.md +24 -24
  46. package/docs/sdk/models/shared/accountingbillpayment.md +17 -17
  47. package/docs/sdk/models/shared/accountingcashflowstatement.md +2 -2
  48. package/docs/sdk/models/shared/accountingcompanyinfo.md +3 -3
  49. package/docs/sdk/models/shared/accountingcreateaccountresponse.md +2 -2
  50. package/docs/sdk/models/shared/accountingcreatebankaccountresponse.md +2 -2
  51. package/docs/sdk/models/shared/accountingcreatebanktransactionsresponse.md +2 -2
  52. package/docs/sdk/models/shared/accountingcreatedirectcostresponse.md +2 -2
  53. package/docs/sdk/models/shared/accountingcreatepaymentresponse.md +2 -2
  54. package/docs/sdk/models/shared/accountingcreatesupplierresponse.md +2 -2
  55. package/docs/sdk/models/shared/accountingcreatetransferresponse.md +2 -2
  56. package/docs/sdk/models/shared/accountingcreditnote.md +26 -26
  57. package/docs/sdk/models/shared/accountingcustomer.md +2 -2
  58. package/docs/sdk/models/shared/accountingdirectcost.md +18 -18
  59. package/docs/sdk/models/shared/accountingdirectincome.md +18 -18
  60. package/docs/sdk/models/shared/accountinginvoice.md +28 -28
  61. package/docs/sdk/models/shared/accountingjournal.md +3 -3
  62. package/docs/sdk/models/shared/accountingjournalentry.md +5 -5
  63. package/docs/sdk/models/shared/accountingpayment.md +17 -17
  64. package/docs/sdk/models/shared/accountingprofitandlossreport.md +2 -2
  65. package/docs/sdk/models/shared/accountingsupplier.md +2 -2
  66. package/docs/sdk/models/shared/accountingtransfer.md +3 -3
  67. package/docs/sdk/models/shared/agedoutstandingamount.md +2 -2
  68. package/docs/sdk/models/shared/allocation.md +6 -6
  69. package/docs/sdk/models/shared/balancesheet.md +1 -1
  70. package/docs/sdk/models/shared/bankingaccount.md +2 -2
  71. package/docs/sdk/models/shared/bankingaccountbalance.md +3 -3
  72. package/docs/sdk/models/shared/bankingtransaction.md +4 -4
  73. package/docs/sdk/models/shared/bankingtransactioncategory.md +2 -2
  74. package/docs/sdk/models/shared/bankingtransactionref.md +1 -1
  75. package/docs/sdk/models/shared/billpaymentline.md +1 -1
  76. package/docs/sdk/models/shared/billpaymentlinelink.md +6 -6
  77. package/docs/sdk/models/shared/cashflowstatement.md +2 -2
  78. package/docs/sdk/models/shared/clientratelimitreachedwebhookdata.md +1 -1
  79. package/docs/sdk/models/shared/clientratelimitresetwebhookdata.md +1 -1
  80. package/docs/sdk/models/{operations/uploadfilesrequestbody.md → shared/codatfile.md} +1 -1
  81. package/docs/sdk/models/shared/commercecompanyinfo.md +3 -3
  82. package/docs/sdk/models/shared/commercecustomer.md +3 -3
  83. package/docs/sdk/models/shared/commercedispute.md +4 -4
  84. package/docs/sdk/models/shared/commercelocation.md +2 -2
  85. package/docs/sdk/models/shared/commerceorder.md +4 -4
  86. package/docs/sdk/models/shared/commercepayment.md +4 -4
  87. package/docs/sdk/models/shared/commercepaymentmethod.md +2 -2
  88. package/docs/sdk/models/shared/commerceproductcategory.md +2 -2
  89. package/docs/sdk/models/shared/commercetransaction.md +4 -4
  90. package/docs/sdk/models/shared/company.md +2 -2
  91. package/docs/sdk/models/shared/connection.md +2 -2
  92. package/docs/sdk/models/shared/contact.md +1 -1
  93. package/docs/sdk/models/shared/createbankaccounttransaction.md +1 -1
  94. package/docs/sdk/models/shared/dataconnectionerror.md +1 -1
  95. package/docs/sdk/models/shared/dataintegritydates.md +4 -4
  96. package/docs/sdk/models/shared/dataintegritydetail.md +1 -1
  97. package/docs/sdk/models/shared/dataintegritystatusinfo.md +1 -1
  98. package/docs/sdk/models/shared/datastatus.md +1 -1
  99. package/docs/sdk/models/shared/directcostprototype.md +14 -14
  100. package/docs/sdk/models/shared/enhancedcashflowtransaction.md +1 -1
  101. package/docs/sdk/models/shared/enhancedinvoicereportitem.md +5 -5
  102. package/docs/sdk/models/shared/enhancedreportinfo.md +1 -1
  103. package/docs/sdk/models/shared/excelstatus.md +1 -1
  104. package/docs/sdk/models/shared/file.md +1 -1
  105. package/docs/sdk/models/shared/fileupload.md +8 -0
  106. package/docs/sdk/models/shared/loansummaryreportinfo.md +1 -1
  107. package/docs/sdk/models/shared/loansummaryreportitem.md +1 -1
  108. package/docs/sdk/models/shared/loantransactionsreportinfo.md +1 -1
  109. package/docs/sdk/models/shared/payment.md +9 -9
  110. package/docs/sdk/models/shared/paymentallocationpayment.md +10 -10
  111. package/docs/sdk/models/shared/paymentline.md +1 -1
  112. package/docs/sdk/models/shared/paymentlinelink.md +6 -6
  113. package/docs/sdk/models/shared/paymentref.md +4 -4
  114. package/docs/sdk/models/shared/productvariant.md +3 -3
  115. package/docs/sdk/models/shared/profitandlossreport.md +2 -2
  116. package/docs/sdk/models/shared/pulloperation.md +2 -2
  117. package/docs/sdk/models/shared/pushoperation.md +2 -2
  118. package/docs/sdk/models/shared/reportitem.md +1 -1
  119. package/docs/sdk/models/shared/reportitems.md +1 -1
  120. package/docs/sdks/balancesheet/README.md +1 -1
  121. package/docs/sdks/bankaccounts/README.md +2 -2
  122. package/docs/sdks/banktransactions/README.md +1 -1
  123. package/docs/sdks/cashflow/README.md +1 -1
  124. package/docs/sdks/codatlendingpayments/README.md +4 -4
  125. package/docs/sdks/codatlendingsuppliers/README.md +2 -2
  126. package/docs/sdks/directcosts/README.md +3 -3
  127. package/docs/sdks/fileupload/README.md +6 -4
  128. package/docs/sdks/profitandloss/README.md +1 -1
  129. package/docs/sdks/transfers/README.md +3 -3
  130. package/package.json +1 -1
@@ -7,12 +7,12 @@
7
7
  | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8
8
  | `changes` | [shared.PushOperationChange](../../../sdk/models/shared/pushoperationchange.md)[] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
9
9
  | `companyId` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10
- | `completedOnUtc` | *string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:<br/><br/>```<br/>2020-10-08T22:40:50Z<br/>2021-01-01T00:00:00<br/>```<br/><br/><br/><br/>When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:<br/><br/>- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`<br/>- Unqualified local time: `2021-11-15T01:00:00`<br/>- UTC time offsets: `2021-11-15T01:00:00-05:00`<br/><br/>> Time zones<br/>> <br/>> Not all dates from Codat will contain information about time zones. <br/>> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z |
10
+ | `completedOnUtc` | *string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:<br/><br/>```<br/>2020-10-08T22:40:50Z<br/>2021-01-01T00:00:00<br/>```<br/><br/><br/><br/>When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:<br/><br/>- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`<br/>- Unqualified local time: `2021-11-15T01:00:00`<br/>- UTC time offsets: `2021-11-15T01:00:00-05:00`<br/><br/>> Time zones<br/>> <br/>> Not all dates from Codat will contain information about time zones. <br/>> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
11
11
  | `dataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
12
12
  | `dataType` | [shared.DataType](../../../sdk/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
13
13
  | `errorMessage` | *string* | :heavy_minus_sign: | A message about the error. | |
14
14
  | `pushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | |
15
- | `requestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:<br/><br/>```<br/>2020-10-08T22:40:50Z<br/>2021-01-01T00:00:00<br/>```<br/><br/><br/><br/>When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:<br/><br/>- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`<br/>- Unqualified local time: `2021-11-15T01:00:00`<br/>- UTC time offsets: `2021-11-15T01:00:00-05:00`<br/><br/>> Time zones<br/>> <br/>> Not all dates from Codat will contain information about time zones. <br/>> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z |
15
+ | `requestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:<br/><br/>```<br/>2020-10-08T22:40:50Z<br/>2021-01-01T00:00:00<br/>```<br/><br/><br/><br/>When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:<br/><br/>- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`<br/>- Unqualified local time: `2021-11-15T01:00:00`<br/>- UTC time offsets: `2021-11-15T01:00:00-05:00`<br/><br/>> Time zones<br/>> <br/>> Not all dates from Codat will contain information about time zones. <br/>> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
16
16
  | `status` | [shared.PushOperationStatus](../../../sdk/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | |
17
17
  | `statusCode` | *number* | :heavy_check_mark: | Push status code. | |
18
18
  | `timeoutInMinutes` | *number* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | |
@@ -9,4 +9,4 @@
9
9
  | `accountId` | *string* | :heavy_minus_sign: | The unique account ID. | |
10
10
  | `accountName` | *string* | :heavy_minus_sign: | Name of the account. | |
11
11
  | `balance` | *number* | :heavy_minus_sign: | Balance of the account as reported on the profit and loss or Balance sheet. | |
12
- | `date` | *string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:<br/><br/>```<br/>2020-10-08T22:40:50Z<br/>2021-01-01T00:00:00<br/>```<br/><br/><br/><br/>When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:<br/><br/>- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`<br/>- Unqualified local time: `2021-11-15T01:00:00`<br/>- UTC time offsets: `2021-11-15T01:00:00-05:00`<br/><br/>> Time zones<br/>> <br/>> Not all dates from Codat will contain information about time zones. <br/>> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z |
12
+ | `date` | *string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:<br/><br/>```<br/>2020-10-08T22:40:50Z<br/>2021-01-01T00:00:00<br/>```<br/><br/><br/><br/>When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:<br/><br/>- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`<br/>- Unqualified local time: `2021-11-15T01:00:00`<br/>- UTC time offsets: `2021-11-15T01:00:00-05:00`<br/><br/>> Time zones<br/>> <br/>> Not all dates from Codat will contain information about time zones. <br/>> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
@@ -6,7 +6,7 @@
6
6
  | Field | Type | Required | Description | Example |
7
7
  | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8
8
  | `amount` | *number* | :heavy_minus_sign: | The loan transaction amount. | |
9
- | `date` | *string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:<br/><br/>```<br/>2020-10-08T22:40:50Z<br/>2021-01-01T00:00:00<br/>```<br/><br/><br/><br/>When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:<br/><br/>- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`<br/>- Unqualified local time: `2021-11-15T01:00:00`<br/>- UTC time offsets: `2021-11-15T01:00:00-05:00`<br/><br/>> Time zones<br/>> <br/>> Not all dates from Codat will contain information about time zones. <br/>> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z |
9
+ | `date` | *string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:<br/><br/>```<br/>2020-10-08T22:40:50Z<br/>2021-01-01T00:00:00<br/>```<br/><br/><br/><br/>When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:<br/><br/>- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`<br/>- Unqualified local time: `2021-11-15T01:00:00`<br/>- UTC time offsets: `2021-11-15T01:00:00-05:00`<br/><br/>> Time zones<br/>> <br/>> Not all dates from Codat will contain information about time zones. <br/>> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
10
10
  | `itemRef` | [shared.ItemRef](../../../sdk/models/shared/itemref.md) | :heavy_minus_sign: | N/A | |
11
11
  | `lenderName` | *string* | :heavy_minus_sign: | The name of lender providing the loan. | |
12
12
  | `loanRef` | [shared.LoanRef](../../../sdk/models/shared/loanref.md) | :heavy_minus_sign: | N/A | |
@@ -26,7 +26,7 @@ async function run() {
26
26
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
27
27
  periodLength: 4,
28
28
  periodsToCompare: 20,
29
- startMonth: "2022-10-23T00:00:00.000Z",
29
+ startMonth: "2022-10-23T00:00:00Z",
30
30
  });
31
31
 
32
32
  if (res.statusCode == 200) {
@@ -35,8 +35,8 @@ async function run() {
35
35
  accountingBankAccount: {
36
36
  currency: "USD",
37
37
  metadata: {},
38
- modifiedDate: "2022-10-23T00:00:00.000Z",
39
- sourceModifiedDate: "2022-10-23T00:00:00.000Z",
38
+ modifiedDate: "2022-10-23T00:00:00Z",
39
+ sourceModifiedDate: "2022-10-23T00:00:00Z",
40
40
  supplementalData: {
41
41
  content: {
42
42
  "key": {
@@ -36,7 +36,7 @@ async function run() {
36
36
  accountId: "7110701885",
37
37
  transactions: [
38
38
  {
39
- date: "2022-10-23T00:00:00.000Z",
39
+ date: "2022-10-23T00:00:00Z",
40
40
  },
41
41
  ],
42
42
  },
@@ -25,7 +25,7 @@ async function run() {
25
25
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
26
26
  periodLength: 4,
27
27
  periodsToCompare: 20,
28
- startMonth: "2022-10-23T00:00:00.000Z",
28
+ startMonth: "2022-10-23T00:00:00Z",
29
29
  });
30
30
 
31
31
  if (res.statusCode == 200) {
@@ -39,10 +39,10 @@ async function run() {
39
39
  customerRef: {
40
40
  id: "<ID>",
41
41
  },
42
- date: "2022-10-23T00:00:00.000Z",
42
+ date: "2022-10-23T00:00:00Z",
43
43
  lines: [
44
44
  {
45
- allocatedOnDate: "2022-10-23T00:00:00.000Z",
45
+ allocatedOnDate: "2022-10-23T00:00:00Z",
46
46
  amount: 8592.13,
47
47
  links: [
48
48
  {
@@ -52,11 +52,11 @@ async function run() {
52
52
  },
53
53
  ],
54
54
  metadata: {},
55
- modifiedDate: "2022-10-23T00:00:00.000Z",
55
+ modifiedDate: "2022-10-23T00:00:00Z",
56
56
  paymentMethodRef: {
57
57
  id: "<ID>",
58
58
  },
59
- sourceModifiedDate: "2022-10-23T00:00:00.000Z",
59
+ sourceModifiedDate: "2022-10-23T00:00:00Z",
60
60
  supplementalData: {
61
61
  content: {
62
62
  "key": {
@@ -40,9 +40,9 @@ async function run() {
40
40
  },
41
41
  ],
42
42
  metadata: {},
43
- modifiedDate: "2022-10-23T00:00:00.000Z",
43
+ modifiedDate: "2022-10-23T00:00:00Z",
44
44
  phone: "(877) 492-8687",
45
- sourceModifiedDate: "2022-10-23T00:00:00.000Z",
45
+ sourceModifiedDate: "2022-10-23T00:00:00Z",
46
46
  status: SupplierStatus.Active,
47
47
  supplementalData: {
48
48
  content: {
@@ -41,7 +41,7 @@ async function run() {
41
41
  id: "<ID>",
42
42
  },
43
43
  currency: "USD",
44
- issueDate: "2022-10-23T00:00:00.000Z",
44
+ issueDate: "2022-10-23T00:00:00Z",
45
45
  lineItems: [
46
46
  {
47
47
  accountRef: {},
@@ -71,13 +71,13 @@ async function run() {
71
71
  paymentAllocations: [
72
72
  {
73
73
  allocation: {
74
- allocatedOnDate: "2022-10-23T00:00:00.000Z",
74
+ allocatedOnDate: "2022-10-23T00:00:00Z",
75
75
  currency: "EUR",
76
76
  },
77
77
  payment: {
78
78
  accountRef: {},
79
79
  currency: "GBP",
80
- paidOnDate: "2022-10-23T00:00:00.000Z",
80
+ paidOnDate: "2022-10-23T00:00:00Z",
81
81
  },
82
82
  },
83
83
  ],
@@ -29,7 +29,7 @@ async function run() {
29
29
 
30
30
  const res = await sdk.fileUpload.download({
31
31
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
32
- date: "2022-10-23T00:00:00.000Z",
32
+ date: "2022-10-23T00:00:00Z",
33
33
  });
34
34
 
35
35
  if (res.statusCode == 200) {
@@ -127,9 +127,11 @@ async function run() {
127
127
  });
128
128
 
129
129
  const res = await sdk.fileUpload.upload({
130
- requestBody: {
131
- content: new TextEncoder().encode("0x87cbca97eC"),
132
- fileName: "ullam.wav",
130
+ fileUpload: {
131
+ file: {
132
+ content: new TextEncoder().encode("0x87cbca97eC"),
133
+ fileName: "ullam.wav",
134
+ },
133
135
  },
134
136
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
135
137
  connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
@@ -26,7 +26,7 @@ async function run() {
26
26
  companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
27
27
  periodLength: 4,
28
28
  periodsToCompare: 20,
29
- startMonth: "2022-10-23T00:00:00.000Z",
29
+ startMonth: "2022-10-23T00:00:00Z",
30
30
  });
31
31
 
32
32
  if (res.statusCode == 200) {
@@ -38,7 +38,7 @@ async function run() {
38
38
  dataType: DataType.Invoices,
39
39
  id: "<ID>",
40
40
  },
41
- date: "2022-10-23T00:00:00.000Z",
41
+ date: "2022-10-23T00:00:00Z",
42
42
  depositedRecordRefs: [
43
43
  {
44
44
  dataType: "invoice",
@@ -49,8 +49,8 @@ async function run() {
49
49
  currency: "USD",
50
50
  },
51
51
  metadata: {},
52
- modifiedDate: "2022-10-23T00:00:00.000Z",
53
- sourceModifiedDate: "2022-10-23T00:00:00.000Z",
52
+ modifiedDate: "2022-10-23T00:00:00Z",
53
+ sourceModifiedDate: "2022-10-23T00:00:00Z",
54
54
  supplementalData: {
55
55
  content: {
56
56
  "key": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codat/lending",
3
- "version": "4.0.0",
3
+ "version": "4.2.0",
4
4
  "author": "Codat",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build",