@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
package/README.md CHANGED
@@ -616,5 +616,14 @@ run();
616
616
 
617
617
  <!-- Placeholder for Future Speakeasy SDK Sections -->
618
618
 
619
+ <!-- Start Codat Support Notes -->
620
+ ### Support
619
621
 
620
- ### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
622
+ If you encounter any challenges while utilizing our SDKs, please don't hesitate to reach out for assistance.
623
+ You can raise any issues by contacting your dedicated Codat representative or reaching out to our [support team](mailto:support@codat.io).
624
+ We're here to help ensure a smooth experience for you.
625
+ <!-- End Codat Support Notes -->
626
+
627
+ <!-- Start Codat Generated By -->
628
+ ### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
629
+ <!-- End Codat Generated By -->
@@ -303,7 +303,7 @@ var FileUpload = /** @class */ (function () {
303
303
  operationUrl = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}/files", req);
304
304
  _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
305
305
  try {
306
- _d = __read(utils.serializeRequestBody(req, "requestBody", "multipart"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
306
+ _d = __read(utils.serializeRequestBody(req, "fileUpload", "multipart"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
307
307
  }
308
308
  catch (e) {
309
309
  if (e instanceof Error) {
@@ -1,12 +1,8 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
2
  import * as shared from "../../../sdk/models/shared";
3
3
  import { AxiosResponse } from "axios";
4
- export declare class UploadFilesRequestBody extends SpeakeasyBase {
5
- content: Uint8Array;
6
- fileName: string;
7
- }
8
4
  export declare class UploadFilesRequest extends SpeakeasyBase {
9
- requestBody?: UploadFilesRequestBody;
5
+ fileUpload?: shared.FileUpload;
10
6
  /**
11
7
  * Unique identifier for a company.
12
8
  */
@@ -50,36 +50,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
50
50
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
- exports.UploadFilesResponse = exports.UploadFilesRequest = exports.UploadFilesRequestBody = void 0;
53
+ exports.UploadFilesResponse = exports.UploadFilesRequest = void 0;
54
54
  var utils_1 = require("../../../internal/utils");
55
55
  var shared = __importStar(require("../../../sdk/models/shared"));
56
- var UploadFilesRequestBody = /** @class */ (function (_super) {
57
- __extends(UploadFilesRequestBody, _super);
58
- function UploadFilesRequestBody() {
59
- return _super !== null && _super.apply(this, arguments) || this;
60
- }
61
- __decorate([
62
- (0, utils_1.SpeakeasyMetadata)({ data: "multipart_form, content=true" }),
63
- __metadata("design:type", Uint8Array)
64
- ], UploadFilesRequestBody.prototype, "content", void 0);
65
- __decorate([
66
- (0, utils_1.SpeakeasyMetadata)({ data: "multipart_form, name=fileName" }),
67
- __metadata("design:type", String)
68
- ], UploadFilesRequestBody.prototype, "fileName", void 0);
69
- return UploadFilesRequestBody;
70
- }(utils_1.SpeakeasyBase));
71
- exports.UploadFilesRequestBody = UploadFilesRequestBody;
72
56
  var UploadFilesRequest = /** @class */ (function (_super) {
73
57
  __extends(UploadFilesRequest, _super);
74
58
  function UploadFilesRequest() {
75
59
  return _super !== null && _super.apply(this, arguments) || this;
76
60
  }
77
61
  __decorate([
78
- (0, utils_1.SpeakeasyMetadata)({
79
- data: "multipart_form, file=true, request, media_type=multipart/form-data",
80
- }),
81
- __metadata("design:type", UploadFilesRequestBody)
82
- ], UploadFilesRequest.prototype, "requestBody", void 0);
62
+ (0, utils_1.SpeakeasyMetadata)({ data: "request, media_type=multipart/form-data" }),
63
+ __metadata("design:type", shared.FileUpload)
64
+ ], UploadFilesRequest.prototype, "fileUpload", void 0);
83
65
  __decorate([
84
66
  (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=companyId" }),
85
67
  __metadata("design:type", String)
@@ -77,6 +77,13 @@ export declare class AccountingAccountTransaction extends SpeakeasyBase {
77
77
  * | **GBP** | £20 | 1.277 | $25.54 |
78
78
  * | **EUR** | €20 | 1.134 | $22.68 |
79
79
  * | **RUB** | ₽20 | 0.015 | $0.30 |
80
+ *
81
+ *
82
+ * ### Integration-specific details
83
+ *
84
+ * | Integration | Scenario | System behavior |
85
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
86
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
80
87
  */
81
88
  currencyRate?: number;
82
89
  /**
@@ -17,8 +17,9 @@ import { SpeakeasyBase } from "../../../internal/utils";
17
17
  * | Xero | 4 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP |
18
18
  * | QuickBooks Online | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML |
19
19
  * | NetSuite | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |
20
+ * | Dynamics 365 Business Central | 350 MB | Dynamics do not explicitly outline which file types are supported but they do state <a className="external" href="https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice" target="_blank">here</a> that "You can attach any type of file, such as text, image, or video files". |
20
21
  *
21
- * View the coverage for accounts in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=chartOfAccounts" target="_blank">Data coverage explorer</a>.
22
+ * View the coverage for each integration in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting" target="_blank">Data coverage explorer</a>.
22
23
  *
23
24
  */
24
25
  export declare class AccountingAttachment extends SpeakeasyBase {
@@ -48,8 +48,9 @@ var class_transformer_1 = require("class-transformer");
48
48
  * | Xero | 4 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP |
49
49
  * | QuickBooks Online | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML |
50
50
  * | NetSuite | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |
51
+ * | Dynamics 365 Business Central | 350 MB | Dynamics do not explicitly outline which file types are supported but they do state <a className="external" href="https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice" target="_blank">here</a> that "You can attach any type of file, such as text, image, or video files". |
51
52
  *
52
- * View the coverage for accounts in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=chartOfAccounts" target="_blank">Data coverage explorer</a>.
53
+ * View the coverage for each integration in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting" target="_blank">Data coverage explorer</a>.
53
54
  *
54
55
  */
55
56
  var AccountingAttachment = /** @class */ (function (_super) {
@@ -93,6 +93,13 @@ export declare class AccountingBill extends SpeakeasyBase {
93
93
  * | **GBP** | £20 | 1.277 | $25.54 |
94
94
  * | **EUR** | €20 | 1.134 | $22.68 |
95
95
  * | **RUB** | ₽20 | 0.015 | $0.30 |
96
+ *
97
+ *
98
+ * ### Integration-specific details
99
+ *
100
+ * | Integration | Scenario | System behavior |
101
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
102
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
96
103
  */
97
104
  currencyRate?: number;
98
105
  dueDate?: string;
@@ -95,6 +95,13 @@ export declare class AccountingBillCreditNote extends SpeakeasyBase {
95
95
  * | **GBP** | £20 | 1.277 | $25.54 |
96
96
  * | **EUR** | €20 | 1.134 | $22.68 |
97
97
  * | **RUB** | ₽20 | 0.015 | $0.30 |
98
+ *
99
+ *
100
+ * ### Integration-specific details
101
+ *
102
+ * | Integration | Scenario | System behavior |
103
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
104
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
98
105
  */
99
106
  currencyRate?: number;
100
107
  /**
@@ -194,6 +194,13 @@ export declare class AccountingBillPayment extends SpeakeasyBase {
194
194
  * | **GBP** | £20 | 1.277 | $25.54 |
195
195
  * | **EUR** | €20 | 1.134 | $22.68 |
196
196
  * | **RUB** | ₽20 | 0.015 | $0.30 |
197
+ *
198
+ *
199
+ * ### Integration-specific details
200
+ *
201
+ * | Integration | Scenario | System behavior |
202
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
203
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
197
204
  */
198
205
  currencyRate?: number;
199
206
  date: string;
@@ -99,6 +99,13 @@ export declare class AccountingCreditNote extends SpeakeasyBase {
99
99
  * | **GBP** | £20 | 1.277 | $25.54 |
100
100
  * | **EUR** | €20 | 1.134 | $22.68 |
101
101
  * | **RUB** | ₽20 | 0.015 | $0.30 |
102
+ *
103
+ *
104
+ * ### Integration-specific details
105
+ *
106
+ * | Integration | Scenario | System behavior |
107
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
108
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
102
109
  */
103
110
  currencyRate?: number;
104
111
  customerRef?: AccountingCustomerRef;
@@ -81,6 +81,13 @@ export declare class AccountingDirectCost extends SpeakeasyBase {
81
81
  * | **GBP** | £20 | 1.277 | $25.54 |
82
82
  * | **EUR** | €20 | 1.134 | $22.68 |
83
83
  * | **RUB** | ₽20 | 0.015 | $0.30 |
84
+ *
85
+ *
86
+ * ### Integration-specific details
87
+ *
88
+ * | Integration | Scenario | System behavior |
89
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
90
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
84
91
  */
85
92
  currencyRate?: number;
86
93
  /**
@@ -69,6 +69,13 @@ export declare class AccountingDirectIncome extends SpeakeasyBase {
69
69
  * | **GBP** | £20 | 1.277 | $25.54 |
70
70
  * | **EUR** | €20 | 1.134 | $22.68 |
71
71
  * | **RUB** | ₽20 | 0.015 | $0.30 |
72
+ *
73
+ *
74
+ * ### Integration-specific details
75
+ *
76
+ * | Integration | Scenario | System behavior |
77
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
78
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
72
79
  */
73
80
  currencyRate?: number;
74
81
  /**
@@ -103,6 +103,13 @@ export declare class AccountingInvoice extends SpeakeasyBase {
103
103
  * | **GBP** | £20 | 1.277 | $25.54 |
104
104
  * | **EUR** | €20 | 1.134 | $22.68 |
105
105
  * | **RUB** | ₽20 | 0.015 | $0.30 |
106
+ *
107
+ *
108
+ * ### Integration-specific details
109
+ *
110
+ * | Integration | Scenario | System behavior |
111
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
112
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
106
113
  */
107
114
  currencyRate?: number;
108
115
  customerRef?: AccountingCustomerRef;
@@ -732,6 +732,13 @@ export declare class AccountingPayment extends SpeakeasyBase {
732
732
  * | **GBP** | £20 | 1.277 | $25.54 |
733
733
  * | **EUR** | €20 | 1.134 | $22.68 |
734
734
  * | **RUB** | ₽20 | 0.015 | $0.30 |
735
+ *
736
+ *
737
+ * ### Integration-specific details
738
+ *
739
+ * | Integration | Scenario | System behavior |
740
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
741
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
735
742
  */
736
743
  currencyRate?: number;
737
744
  customerRef?: AccountingCustomerRef;
@@ -65,6 +65,13 @@ export declare class Allocation extends SpeakeasyBase {
65
65
  * | **GBP** | £20 | 1.277 | $25.54 |
66
66
  * | **EUR** | €20 | 1.134 | $22.68 |
67
67
  * | **RUB** | ₽20 | 0.015 | $0.30 |
68
+ *
69
+ *
70
+ * ### Integration-specific details
71
+ *
72
+ * | Integration | Scenario | System behavior |
73
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
74
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
68
75
  */
69
76
  currencyRate?: number;
70
77
  /**
@@ -38,6 +38,13 @@ export declare class BillPaymentLineLink extends SpeakeasyBase {
38
38
  * | **GBP** | £20 | 1.277 | $25.54 |
39
39
  * | **EUR** | €20 | 1.134 | $22.68 |
40
40
  * | **RUB** | ₽20 | 0.015 | $0.30 |
41
+ *
42
+ *
43
+ * ### Integration-specific details
44
+ *
45
+ * | Integration | Scenario | System behavior |
46
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
47
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
41
48
  */
42
49
  currencyRate?: number;
43
50
  /**
@@ -0,0 +1,5 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ export declare class CodatFile extends SpeakeasyBase {
3
+ content: Uint8Array;
4
+ fileName: string;
5
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
21
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
26
+ var __metadata = (this && this.__metadata) || function (k, v) {
27
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.CodatFile = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var CodatFile = /** @class */ (function (_super) {
33
+ __extends(CodatFile, _super);
34
+ function CodatFile() {
35
+ return _super !== null && _super.apply(this, arguments) || this;
36
+ }
37
+ __decorate([
38
+ (0, utils_1.SpeakeasyMetadata)({ data: "multipart_form, content=true" }),
39
+ __metadata("design:type", Uint8Array)
40
+ ], CodatFile.prototype, "content", void 0);
41
+ __decorate([
42
+ (0, utils_1.SpeakeasyMetadata)({ data: "multipart_form, name=fileName" }),
43
+ __metadata("design:type", String)
44
+ ], CodatFile.prototype, "fileName", void 0);
45
+ return CodatFile;
46
+ }(utils_1.SpeakeasyBase));
47
+ exports.CodatFile = CodatFile;
@@ -61,6 +61,13 @@ export declare class DirectCostPrototype extends SpeakeasyBase {
61
61
  * | **GBP** | £20 | 1.277 | $25.54 |
62
62
  * | **EUR** | €20 | 1.134 | $22.68 |
63
63
  * | **RUB** | ₽20 | 0.015 | $0.30 |
64
+ *
65
+ *
66
+ * ### Integration-specific details
67
+ *
68
+ * | Integration | Scenario | System behavior |
69
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
70
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
64
71
  */
65
72
  currencyRate?: number;
66
73
  /**
@@ -0,0 +1,8 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import { CodatFile } from "./codatfile";
3
+ export declare class FileUpload extends SpeakeasyBase {
4
+ /**
5
+ * The file to be uploaded as an attachment.
6
+ */
7
+ file: CodatFile;
8
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
21
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
26
+ var __metadata = (this && this.__metadata) || function (k, v) {
27
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.FileUpload = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var codatfile_1 = require("./codatfile");
33
+ var FileUpload = /** @class */ (function (_super) {
34
+ __extends(FileUpload, _super);
35
+ function FileUpload() {
36
+ return _super !== null && _super.apply(this, arguments) || this;
37
+ }
38
+ __decorate([
39
+ (0, utils_1.SpeakeasyMetadata)({ data: "multipart_form, file=true" }),
40
+ __metadata("design:type", codatfile_1.CodatFile)
41
+ ], FileUpload.prototype, "file", void 0);
42
+ return FileUpload;
43
+ }(utils_1.SpeakeasyBase));
44
+ exports.FileUpload = FileUpload;
@@ -100,6 +100,7 @@ export * from "./clientratelimitreachedwebhook";
100
100
  export * from "./clientratelimitreachedwebhookdata";
101
101
  export * from "./clientratelimitresetwebhook";
102
102
  export * from "./clientratelimitresetwebhookdata";
103
+ export * from "./codatfile";
103
104
  export * from "./commerceaddress";
104
105
  export * from "./commerceaddresstype";
105
106
  export * from "./commercecompanyinfo";
@@ -174,6 +175,7 @@ export * from "./errormessage";
174
175
  export * from "./excelreporttypes";
175
176
  export * from "./excelstatus";
176
177
  export * from "./file";
178
+ export * from "./fileupload";
177
179
  export * from "./halref";
178
180
  export * from "./integritystatus";
179
181
  export * from "./invoicelineitem";
@@ -119,6 +119,7 @@ __exportStar(require("./clientratelimitreachedwebhook"), exports);
119
119
  __exportStar(require("./clientratelimitreachedwebhookdata"), exports);
120
120
  __exportStar(require("./clientratelimitresetwebhook"), exports);
121
121
  __exportStar(require("./clientratelimitresetwebhookdata"), exports);
122
+ __exportStar(require("./codatfile"), exports);
122
123
  __exportStar(require("./commerceaddress"), exports);
123
124
  __exportStar(require("./commerceaddresstype"), exports);
124
125
  __exportStar(require("./commercecompanyinfo"), exports);
@@ -193,6 +194,7 @@ __exportStar(require("./errormessage"), exports);
193
194
  __exportStar(require("./excelreporttypes"), exports);
194
195
  __exportStar(require("./excelstatus"), exports);
195
196
  __exportStar(require("./file"), exports);
197
+ __exportStar(require("./fileupload"), exports);
196
198
  __exportStar(require("./halref"), exports);
197
199
  __exportStar(require("./integritystatus"), exports);
198
200
  __exportStar(require("./invoicelineitem"), exports);
@@ -46,6 +46,13 @@ export declare class Payment extends SpeakeasyBase {
46
46
  * | **GBP** | £20 | 1.277 | $25.54 |
47
47
  * | **EUR** | €20 | 1.134 | $22.68 |
48
48
  * | **RUB** | ₽20 | 0.015 | $0.30 |
49
+ *
50
+ *
51
+ * ### Integration-specific details
52
+ *
53
+ * | Integration | Scenario | System behavior |
54
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
55
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
49
56
  */
50
57
  currencyRate?: number;
51
58
  /**
@@ -45,6 +45,13 @@ export declare class PaymentAllocationPayment extends SpeakeasyBase {
45
45
  * | **GBP** | £20 | 1.277 | $25.54 |
46
46
  * | **EUR** | €20 | 1.134 | $22.68 |
47
47
  * | **RUB** | ₽20 | 0.015 | $0.30 |
48
+ *
49
+ *
50
+ * ### Integration-specific details
51
+ *
52
+ * | Integration | Scenario | System behavior |
53
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
54
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
48
55
  */
49
56
  currencyRate?: number;
50
57
  /**
@@ -37,6 +37,13 @@ export declare class PaymentLineLink extends SpeakeasyBase {
37
37
  * | **GBP** | £20 | 1.277 | $25.54 |
38
38
  * | **EUR** | €20 | 1.134 | $22.68 |
39
39
  * | **RUB** | ₽20 | 0.015 | $0.30 |
40
+ *
41
+ *
42
+ * ### Integration-specific details
43
+ *
44
+ * | Integration | Scenario | System behavior |
45
+ * |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
46
+ * | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. |
40
47
  */
41
48
  currencyRate?: number;
42
49
  /**
package/dist/sdk/sdk.js CHANGED
@@ -37,9 +37,9 @@ var SDKConfiguration = /** @class */ (function () {
37
37
  function SDKConfiguration(init) {
38
38
  this.language = "typescript";
39
39
  this.openapiDocVersion = "3.0.0";
40
- this.sdkVersion = "4.0.0";
41
- this.genVersion = "2.210.3";
42
- this.userAgent = "speakeasy-sdk/typescript 4.0.0 2.210.3 3.0.0 @codat/lending";
40
+ this.sdkVersion = "4.2.0";
41
+ this.genVersion = "2.214.3";
42
+ this.userAgent = "speakeasy-sdk/typescript 4.2.0 2.214.3 3.0.0 @codat/lending";
43
43
  Object.assign(this, init);
44
44
  }
45
45
  return SDKConfiguration;
@@ -6,4 +6,4 @@
6
6
  | Field | Type | Required | Description | Example |
7
7
  | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
8
8
  | `companyId` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9
- | `date` | *string* | :heavy_minus_sign: | Only download files uploaded on this date. | 2022-10-23T00:00:00.000Z |
9
+ | `date` | *string* | :heavy_minus_sign: | Only download files uploaded on this date. | 2022-10-23 00:00:00 +0000 UTC |
@@ -8,4 +8,4 @@
8
8
  | `companyId` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9
9
  | `numberOfPeriods` | *number* | :heavy_minus_sign: | Number of periods to include in the report. | 12 |
10
10
  | `periodLengthDays` | *number* | :heavy_minus_sign: | The length of period in days. | 30 |
11
- | `reportDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Date the report is generated up to. | 2022-12-31 |
11
+ | `reportDate` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | Date the report is generated up to. | 2022-12-31 |
@@ -8,4 +8,4 @@
8
8
  | `companyId` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9
9
  | `numberOfPeriods` | *number* | :heavy_minus_sign: | Number of periods to include in the report. | 12 |
10
10
  | `periodLengthDays` | *number* | :heavy_minus_sign: | The length of period in days. | 30 |
11
- | `reportDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Date the report is generated up to. | 2022-12-31 |
11
+ | `reportDate` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | Date the report is generated up to. | 2022-12-31 |
@@ -8,4 +8,4 @@
8
8
  | `companyId` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9
9
  | `periodLength` | *number* | :heavy_check_mark: | Number of months defining the period of interest. | 4 |
10
10
  | `periodsToCompare` | *number* | :heavy_check_mark: | Number of periods with `periodLength` to compare. | 20 |
11
- | `startMonth` | *string* | :heavy_minus_sign: | The month the report starts from. | 2022-10-23T00:00:00.000Z |
11
+ | `startMonth` | *string* | :heavy_minus_sign: | The month the report starts from. | 2022-10-23 00:00:00 +0000 UTC |
@@ -8,4 +8,4 @@
8
8
  | `companyId` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9
9
  | `periodLength` | *number* | :heavy_check_mark: | Number of months defining the period of interest. | 4 |
10
10
  | `periodsToCompare` | *number* | :heavy_check_mark: | Number of periods with `periodLength` to compare. | 20 |
11
- | `startMonth` | *string* | :heavy_minus_sign: | The month the report starts from. | 2022-10-23T00:00:00.000Z |
11
+ | `startMonth` | *string* | :heavy_minus_sign: | The month the report starts from. | 2022-10-23 00:00:00 +0000 UTC |
@@ -8,4 +8,4 @@
8
8
  | `companyId` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9
9
  | `periodLength` | *number* | :heavy_check_mark: | Number of months defining the period of interest. | 4 |
10
10
  | `periodsToCompare` | *number* | :heavy_check_mark: | Number of periods with `periodLength` to compare. | 20 |
11
- | `startMonth` | *string* | :heavy_minus_sign: | The month the report starts from. | 2022-10-23T00:00:00.000Z |
11
+ | `startMonth` | *string* | :heavy_minus_sign: | The month the report starts from. | 2022-10-23 00:00:00 +0000 UTC |
@@ -3,8 +3,8 @@
3
3
 
4
4
  ## Fields
5
5
 
6
- | Field | Type | Required | Description | Example |
7
- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
8
- | `requestBody` | [operations.UploadFilesRequestBody](../../../sdk/models/operations/uploadfilesrequestbody.md) | :heavy_minus_sign: | N/A | |
9
- | `companyId` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10
- | `connectionId` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
6
+ | Field | Type | Required | Description | Example |
7
+ | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
8
+ | `fileUpload` | [shared.FileUpload](../../../sdk/models/shared/fileupload.md) | :heavy_minus_sign: | N/A | |
9
+ | `companyId` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10
+ | `connectionId` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |