@codat/lending 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/README.md +36 -0
  2. package/dist/sdk/companies.js +2 -2
  3. package/dist/sdk/connections.js +2 -2
  4. package/dist/sdk/fileupload.js +1 -1
  5. package/dist/sdk/loanwriteback.d.ts +19 -0
  6. package/dist/sdk/loanwriteback.js +27 -0
  7. package/dist/sdk/loanwritebackaccounts.d.ts +40 -0
  8. package/dist/sdk/loanwritebackaccounts.js +294 -0
  9. package/dist/sdk/loanwritebackbankaccounts.d.ts +39 -0
  10. package/dist/sdk/loanwritebackbankaccounts.js +293 -0
  11. package/dist/sdk/loanwritebackbanktransactions.d.ts +40 -0
  12. package/dist/sdk/loanwritebackbanktransactions.js +294 -0
  13. package/dist/sdk/loanwritebackcreateoperations.d.ts +22 -0
  14. package/dist/sdk/loanwritebackcreateoperations.js +250 -0
  15. package/dist/sdk/loanwritebackdirectcosts.d.ts +40 -0
  16. package/dist/sdk/loanwritebackdirectcosts.js +294 -0
  17. package/dist/sdk/loanwritebacksuppliers.d.ts +40 -0
  18. package/dist/sdk/loanwritebacksuppliers.js +294 -0
  19. package/dist/sdk/loanwritebacktransfers.d.ts +40 -0
  20. package/dist/sdk/loanwritebacktransfers.js +294 -0
  21. package/dist/sdk/models/operations/createaccount.d.ts +27 -0
  22. package/dist/sdk/models/operations/createaccount.js +115 -0
  23. package/dist/sdk/models/operations/createbankaccount.d.ts +27 -0
  24. package/dist/sdk/models/operations/createbankaccount.js +115 -0
  25. package/dist/sdk/models/operations/createbanktransactions.d.ts +31 -0
  26. package/dist/sdk/models/operations/createbanktransactions.js +119 -0
  27. package/dist/sdk/models/operations/createdirectcost.d.ts +27 -0
  28. package/dist/sdk/models/operations/createdirectcost.js +115 -0
  29. package/dist/sdk/models/operations/createsupplier.d.ts +27 -0
  30. package/dist/sdk/models/operations/createsupplier.js +115 -0
  31. package/dist/sdk/models/operations/createtransfer.d.ts +27 -0
  32. package/dist/sdk/models/operations/createtransfer.js +115 -0
  33. package/dist/sdk/models/operations/getcreatebanktransactionsmodel.d.ts +24 -0
  34. package/dist/sdk/models/operations/getcreatebanktransactionsmodel.js +103 -0
  35. package/dist/sdk/models/operations/getcreatechartofaccountsmodel.d.ts +20 -0
  36. package/dist/sdk/models/operations/getcreatechartofaccountsmodel.js +99 -0
  37. package/dist/sdk/models/operations/getcreatedirectcostsmodel.d.ts +20 -0
  38. package/dist/sdk/models/operations/getcreatedirectcostsmodel.js +99 -0
  39. package/dist/sdk/models/operations/getcreateoperation.d.ts +23 -0
  40. package/dist/sdk/models/operations/getcreateoperation.js +99 -0
  41. package/dist/sdk/models/operations/getcreatetransfersmodel.d.ts +20 -0
  42. package/dist/sdk/models/operations/getcreatetransfersmodel.js +99 -0
  43. package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.d.ts +20 -0
  44. package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.js +99 -0
  45. package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.d.ts +20 -0
  46. package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.js +99 -0
  47. package/dist/sdk/models/operations/index.d.ts +14 -0
  48. package/dist/sdk/models/operations/index.js +14 -0
  49. package/dist/sdk/models/operations/listcreateoperations.d.ts +35 -0
  50. package/dist/sdk/models/operations/listcreateoperations.js +111 -0
  51. package/dist/sdk/models/shared/accountingcreateaccountresponse.d.ts +124 -0
  52. package/dist/sdk/models/shared/accountingcreateaccountresponse.js +118 -0
  53. package/dist/sdk/models/shared/accountingcreatebankaccountresponse.d.ts +112 -0
  54. package/dist/sdk/models/shared/accountingcreatebankaccountresponse.js +118 -0
  55. package/dist/sdk/models/shared/accountingcreatebanktransactions.d.ts +6 -0
  56. package/dist/sdk/models/shared/accountingcreatebanktransactions.js +52 -0
  57. package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.d.ts +92 -0
  58. package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.js +118 -0
  59. package/dist/sdk/models/shared/accountingcreatedirectcostresponse.d.ts +111 -0
  60. package/dist/sdk/models/shared/accountingcreatedirectcostresponse.js +118 -0
  61. package/dist/sdk/models/shared/accountingcreatesupplierresponse.d.ts +101 -0
  62. package/dist/sdk/models/shared/accountingcreatesupplierresponse.js +118 -0
  63. package/dist/sdk/models/shared/accountingcreatetransferresponse.d.ts +99 -0
  64. package/dist/sdk/models/shared/accountingcreatetransferresponse.js +118 -0
  65. package/dist/sdk/models/shared/createbankaccounttransaction.d.ts +31 -0
  66. package/dist/sdk/models/shared/createbankaccounttransaction.js +65 -0
  67. package/dist/sdk/models/shared/index.d.ts +22 -0
  68. package/dist/sdk/models/shared/index.js +22 -0
  69. package/dist/sdk/models/shared/pushchangetype.d.ts +7 -0
  70. package/dist/sdk/models/shared/pushchangetype.js +14 -0
  71. package/dist/sdk/models/shared/pushfieldvalidation.d.ts +6 -0
  72. package/dist/sdk/models/shared/pushfieldvalidation.js +55 -0
  73. package/dist/sdk/models/shared/pushoperation.d.ts +90 -0
  74. package/dist/sdk/models/shared/pushoperation.js +111 -0
  75. package/dist/sdk/models/shared/pushoperationchange.d.ts +8 -0
  76. package/dist/sdk/models/shared/pushoperationchange.js +58 -0
  77. package/dist/sdk/models/shared/pushoperationref.d.ts +9 -0
  78. package/dist/sdk/models/shared/pushoperationref.js +51 -0
  79. package/dist/sdk/models/shared/pushoperations.d.ts +10 -0
  80. package/dist/sdk/models/shared/pushoperations.js +69 -0
  81. package/dist/sdk/models/shared/pushoperationstatus.d.ts +9 -0
  82. package/dist/sdk/models/shared/pushoperationstatus.js +16 -0
  83. package/dist/sdk/models/shared/pushoption.d.ts +14 -0
  84. package/dist/sdk/models/shared/pushoption.js +89 -0
  85. package/dist/sdk/models/shared/pushoptionchoice.d.ts +12 -0
  86. package/dist/sdk/models/shared/pushoptionchoice.js +66 -0
  87. package/dist/sdk/models/shared/pushoptionproperty.d.ts +13 -0
  88. package/dist/sdk/models/shared/pushoptionproperty.js +88 -0
  89. package/dist/sdk/models/shared/pushoptiontype.d.ts +10 -0
  90. package/dist/sdk/models/shared/pushoptiontype.js +17 -0
  91. package/dist/sdk/models/shared/pushvalidationinfo.d.ts +6 -0
  92. package/dist/sdk/models/shared/pushvalidationinfo.js +53 -0
  93. package/dist/sdk/models/shared/validation.d.ts +9 -0
  94. package/dist/sdk/models/shared/validation.js +56 -0
  95. package/dist/sdk/models/shared/validationitem.d.ts +6 -0
  96. package/dist/sdk/models/shared/validationitem.js +55 -0
  97. package/dist/sdk/sdk.d.ts +2 -0
  98. package/dist/sdk/sdk.js +4 -2
  99. package/docs/models/operations/createaccountrequest.md +13 -0
  100. package/docs/models/operations/createaccountresponse.md +12 -0
  101. package/docs/models/operations/createbankaccountrequest.md +13 -0
  102. package/docs/models/operations/createbankaccountresponse.md +12 -0
  103. package/docs/models/operations/createbanktransactionsrequest.md +14 -0
  104. package/docs/models/operations/createbanktransactionsresponse.md +12 -0
  105. package/docs/models/operations/createdirectcostrequest.md +13 -0
  106. package/docs/models/operations/createdirectcostresponse.md +12 -0
  107. package/docs/models/operations/createsupplierrequest.md +13 -0
  108. package/docs/models/operations/createsupplierresponse.md +12 -0
  109. package/docs/models/operations/createtransferrequest.md +13 -0
  110. package/docs/models/operations/createtransferresponse.md +12 -0
  111. package/docs/models/operations/getcreatebanktransactionsmodelrequest.md +10 -0
  112. package/docs/models/operations/getcreatebanktransactionsmodelresponse.md +12 -0
  113. package/docs/models/operations/getcreatechartofaccountsmodelrequest.md +9 -0
  114. package/docs/models/operations/getcreatechartofaccountsmodelresponse.md +12 -0
  115. package/docs/models/operations/getcreatedirectcostsmodelrequest.md +9 -0
  116. package/docs/models/operations/getcreatedirectcostsmodelresponse.md +12 -0
  117. package/docs/models/operations/getcreateoperationrequest.md +9 -0
  118. package/docs/models/operations/getcreateoperationresponse.md +12 -0
  119. package/docs/models/operations/getcreatetransfersmodelrequest.md +9 -0
  120. package/docs/models/operations/getcreatetransfersmodelresponse.md +12 -0
  121. package/docs/models/operations/getcreateupdatebankaccountsmodelrequest.md +9 -0
  122. package/docs/models/operations/getcreateupdatebankaccountsmodelresponse.md +12 -0
  123. package/docs/models/operations/getcreateupdatesuppliersmodelrequest.md +9 -0
  124. package/docs/models/operations/getcreateupdatesuppliersmodelresponse.md +12 -0
  125. package/docs/models/operations/listcreateoperationsrequest.md +12 -0
  126. package/docs/models/operations/listcreateoperationsresponse.md +12 -0
  127. package/docs/models/shared/accountingcreateaccountresponse.md +21 -0
  128. package/docs/models/shared/accountingcreatebankaccountresponse.md +21 -0
  129. package/docs/models/shared/accountingcreatebanktransactions.md +9 -0
  130. package/docs/models/shared/accountingcreatebanktransactionsresponse.md +21 -0
  131. package/docs/models/shared/accountingcreatedirectcostresponse.md +21 -0
  132. package/docs/models/shared/accountingcreatesupplierresponse.md +21 -0
  133. package/docs/models/shared/accountingcreatetransferresponse.md +21 -0
  134. package/docs/models/shared/createbankaccounttransaction.md +12 -0
  135. package/docs/models/shared/pushchangetype.md +12 -0
  136. package/docs/models/shared/pushfieldvalidation.md +10 -0
  137. package/docs/models/shared/pushoperation.md +20 -0
  138. package/docs/models/shared/pushoperationchange.md +10 -0
  139. package/docs/models/shared/pushoperationref.md +9 -0
  140. package/docs/models/shared/pushoperations.md +12 -0
  141. package/docs/models/shared/pushoperationstatus.md +13 -0
  142. package/docs/models/shared/pushoption.md +14 -0
  143. package/docs/models/shared/pushoptionchoice.md +12 -0
  144. package/docs/models/shared/pushoptionproperty.md +14 -0
  145. package/docs/models/shared/pushoptiontype.md +15 -0
  146. package/docs/models/shared/pushvalidationinfo.md +9 -0
  147. package/docs/models/shared/validation.md +11 -0
  148. package/docs/models/shared/validationitem.md +10 -0
  149. package/docs/sdks/loanwriteback/README.md +4 -0
  150. package/docs/sdks/loanwritebackaccounts/README.md +134 -0
  151. package/docs/sdks/loanwritebackbankaccounts/README.md +126 -0
  152. package/docs/sdks/loanwritebackbanktransactions/README.md +121 -0
  153. package/docs/sdks/loanwritebackcreateoperations/README.md +89 -0
  154. package/docs/sdks/loanwritebackdirectcosts/README.md +200 -0
  155. package/docs/sdks/loanwritebacksuppliers/README.md +142 -0
  156. package/docs/sdks/loanwritebacktransfers/README.md +156 -0
  157. package/docs/sdks/managedatapulloperations/README.md +1 -1
  158. package/docs/sdks/managedatarefresh/README.md +1 -1
  159. package/docs/sdks/salescustomers/README.md +2 -2
  160. package/docs/sdks/salesdisputes/README.md +2 -2
  161. package/docs/sdks/saleslocations/README.md +1 -1
  162. package/docs/sdks/salesmetrics/README.md +9 -9
  163. package/docs/sdks/salesorders/README.md +2 -2
  164. package/docs/sdks/salespaymentmethods/README.md +2 -2
  165. package/docs/sdks/salespayments/README.md +2 -2
  166. package/docs/sdks/salesproductcategories/README.md +2 -2
  167. package/docs/sdks/salesproducts/README.md +2 -2
  168. package/docs/sdks/salesreports/README.md +5 -5
  169. package/docs/sdks/salestransactions/README.md +2 -2
  170. package/docs/sdks/transactionsaccounttransactions/README.md +2 -2
  171. package/docs/sdks/transactionsdirectcosts/README.md +5 -5
  172. package/docs/sdks/transactionsjournalentries/README.md +2 -2
  173. package/docs/sdks/transactionsjournals/README.md +2 -2
  174. package/docs/sdks/transactionstransfers/README.md +2 -2
  175. package/package.json +1 -1
@@ -0,0 +1,111 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
33
+ }) : function(o, v) {
34
+ o["default"] = v;
35
+ });
36
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
37
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
39
+ 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;
40
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
41
+ };
42
+ var __importStar = (this && this.__importStar) || function (mod) {
43
+ if (mod && mod.__esModule) return mod;
44
+ var result = {};
45
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
46
+ __setModuleDefault(result, mod);
47
+ return result;
48
+ };
49
+ var __metadata = (this && this.__metadata) || function (k, v) {
50
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
51
+ };
52
+ Object.defineProperty(exports, "__esModule", { value: true });
53
+ exports.ListCreateOperationsResponse = exports.ListCreateOperationsRequest = void 0;
54
+ var utils_1 = require("../../../internal/utils");
55
+ var shared = __importStar(require("../shared"));
56
+ var ListCreateOperationsRequest = /** @class */ (function (_super) {
57
+ __extends(ListCreateOperationsRequest, _super);
58
+ function ListCreateOperationsRequest() {
59
+ return _super !== null && _super.apply(this, arguments) || this;
60
+ }
61
+ __decorate([
62
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=companyId" }),
63
+ __metadata("design:type", String)
64
+ ], ListCreateOperationsRequest.prototype, "companyId", void 0);
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=orderBy" }),
67
+ __metadata("design:type", String)
68
+ ], ListCreateOperationsRequest.prototype, "orderBy", void 0);
69
+ __decorate([
70
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=page" }),
71
+ __metadata("design:type", Number)
72
+ ], ListCreateOperationsRequest.prototype, "page", void 0);
73
+ __decorate([
74
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=pageSize" }),
75
+ __metadata("design:type", Number)
76
+ ], ListCreateOperationsRequest.prototype, "pageSize", void 0);
77
+ __decorate([
78
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=query" }),
79
+ __metadata("design:type", String)
80
+ ], ListCreateOperationsRequest.prototype, "query", void 0);
81
+ return ListCreateOperationsRequest;
82
+ }(utils_1.SpeakeasyBase));
83
+ exports.ListCreateOperationsRequest = ListCreateOperationsRequest;
84
+ var ListCreateOperationsResponse = /** @class */ (function (_super) {
85
+ __extends(ListCreateOperationsResponse, _super);
86
+ function ListCreateOperationsResponse() {
87
+ return _super !== null && _super.apply(this, arguments) || this;
88
+ }
89
+ __decorate([
90
+ (0, utils_1.SpeakeasyMetadata)(),
91
+ __metadata("design:type", String)
92
+ ], ListCreateOperationsResponse.prototype, "contentType", void 0);
93
+ __decorate([
94
+ (0, utils_1.SpeakeasyMetadata)(),
95
+ __metadata("design:type", shared.ErrorMessage)
96
+ ], ListCreateOperationsResponse.prototype, "errorMessage", void 0);
97
+ __decorate([
98
+ (0, utils_1.SpeakeasyMetadata)(),
99
+ __metadata("design:type", shared.PushOperations)
100
+ ], ListCreateOperationsResponse.prototype, "pushOperations", void 0);
101
+ __decorate([
102
+ (0, utils_1.SpeakeasyMetadata)(),
103
+ __metadata("design:type", Number)
104
+ ], ListCreateOperationsResponse.prototype, "statusCode", void 0);
105
+ __decorate([
106
+ (0, utils_1.SpeakeasyMetadata)(),
107
+ __metadata("design:type", Object)
108
+ ], ListCreateOperationsResponse.prototype, "rawResponse", void 0);
109
+ return ListCreateOperationsResponse;
110
+ }(utils_1.SpeakeasyBase));
111
+ exports.ListCreateOperationsResponse = ListCreateOperationsResponse;
@@ -0,0 +1,124 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import { AccountingAccount } from "./accountingaccount";
3
+ import { DataType } from "./datatype";
4
+ import { PushOperationChange } from "./pushoperationchange";
5
+ import { PushOperationStatus } from "./pushoperationstatus";
6
+ import { Validation } from "./validation";
7
+ export declare class AccountingCreateAccountResponse extends SpeakeasyBase {
8
+ /**
9
+ * Contains a single entry that communicates which record has changed and the manner in which it changed.
10
+ */
11
+ changes?: PushOperationChange[];
12
+ /**
13
+ * Unique identifier for your SMB in Codat.
14
+ */
15
+ companyId: string;
16
+ /**
17
+ * 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:
18
+ *
19
+ * @remarks
20
+ *
21
+ * ```
22
+ * 2020-10-08T22:40:50Z
23
+ * 2021-01-01T00:00:00
24
+ * ```
25
+ *
26
+ *
27
+ *
28
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
29
+ *
30
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
31
+ * - Unqualified local time: `2021-11-15T01:00:00`
32
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
33
+ *
34
+ * > Time zones
35
+ * >
36
+ * > Not all dates from Codat will contain information about time zones.
37
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
38
+ */
39
+ completedOnUtc?: string;
40
+ /**
41
+ * > **Language tip:** Accounts are also referred to as **chart of accounts**, **nominal accounts**, and **general ledger**.
42
+ *
43
+ * @remarks
44
+ *
45
+ * 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>.
46
+ *
47
+ * ## Overview
48
+ *
49
+ * Accounts are the categories a business uses to record accounting transactions. From the Accounts endpoints, you can retrieve a list of all accounts for a specified company.
50
+ *
51
+ * The categories for an account include:
52
+ * * Asset
53
+ * * Expense
54
+ * * Income
55
+ * * Liability
56
+ * * Equity.
57
+ *
58
+ * The same account may have a different category based on the integration it is used in. For example, a current account (known as checking in the US) should be categorized as `Asset.Current` for Xero, and `Asset.Bank.Checking` for QuickBooks Online.
59
+ *
60
+ * At the same time, each integration may have its own requirements to the categories. For example, a Paypal account in Xero is of the `Asset.Bank` category and therefore requires additional properties to be provided.
61
+ *
62
+ * To determine the list of allowed categories for a specific integration, you can:
63
+ * - Follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide and use the [Get create account model](https://docs.codat.io/accounting-api#/operations/get-create-chartOfAccounts-model).
64
+ * - Refer to the integration's own documentation.
65
+ *
66
+ * > **Accounts with no category**
67
+ * >
68
+ * > If an account is pulled from the chart of accounts and its nominal code does not lie within the category layout for the company's accounts, then the **type** is `Unknown`. The **fullyQualifiedCategory** and **fullyQualifiedName** fields return `null`.
69
+ * >
70
+ * > This approach gives a true representation of the company's accounts whilst preventing distorting financials such as a company's profit and loss and balance sheet reports.
71
+ */
72
+ data?: AccountingAccount;
73
+ /**
74
+ * Unique identifier for a company's data connection.
75
+ */
76
+ dataConnectionKey: string;
77
+ /**
78
+ * Available Data types
79
+ */
80
+ dataType?: DataType;
81
+ errorMessage?: string;
82
+ /**
83
+ * 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.
84
+ */
85
+ pushOperationKey: string;
86
+ /**
87
+ * 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:
88
+ *
89
+ * @remarks
90
+ *
91
+ * ```
92
+ * 2020-10-08T22:40:50Z
93
+ * 2021-01-01T00:00:00
94
+ * ```
95
+ *
96
+ *
97
+ *
98
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
99
+ *
100
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
101
+ * - Unqualified local time: `2021-11-15T01:00:00`
102
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
103
+ *
104
+ * > Time zones
105
+ * >
106
+ * > Not all dates from Codat will contain information about time zones.
107
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
108
+ */
109
+ requestedOnUtc: string;
110
+ /**
111
+ * The current status of the push operation.
112
+ */
113
+ status: PushOperationStatus;
114
+ statusCode: number;
115
+ timeoutInMinutes?: number;
116
+ /**
117
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
118
+ */
119
+ timeoutInSeconds?: number;
120
+ /**
121
+ * A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here.
122
+ */
123
+ validation?: Validation;
124
+ }
@@ -0,0 +1,118 @@
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.AccountingCreateAccountResponse = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var accountingaccount_1 = require("./accountingaccount");
33
+ var datatype_1 = require("./datatype");
34
+ var pushoperationchange_1 = require("./pushoperationchange");
35
+ var pushoperationstatus_1 = require("./pushoperationstatus");
36
+ var validation_1 = require("./validation");
37
+ var class_transformer_1 = require("class-transformer");
38
+ var AccountingCreateAccountResponse = /** @class */ (function (_super) {
39
+ __extends(AccountingCreateAccountResponse, _super);
40
+ function AccountingCreateAccountResponse() {
41
+ return _super !== null && _super.apply(this, arguments) || this;
42
+ }
43
+ __decorate([
44
+ (0, utils_1.SpeakeasyMetadata)({ elemType: pushoperationchange_1.PushOperationChange }),
45
+ (0, class_transformer_1.Expose)({ name: "changes" }),
46
+ (0, class_transformer_1.Type)(function () { return pushoperationchange_1.PushOperationChange; }),
47
+ __metadata("design:type", Array)
48
+ ], AccountingCreateAccountResponse.prototype, "changes", void 0);
49
+ __decorate([
50
+ (0, utils_1.SpeakeasyMetadata)(),
51
+ (0, class_transformer_1.Expose)({ name: "companyId" }),
52
+ __metadata("design:type", String)
53
+ ], AccountingCreateAccountResponse.prototype, "companyId", void 0);
54
+ __decorate([
55
+ (0, utils_1.SpeakeasyMetadata)(),
56
+ (0, class_transformer_1.Expose)({ name: "completedOnUtc" }),
57
+ __metadata("design:type", String)
58
+ ], AccountingCreateAccountResponse.prototype, "completedOnUtc", void 0);
59
+ __decorate([
60
+ (0, utils_1.SpeakeasyMetadata)(),
61
+ (0, class_transformer_1.Expose)({ name: "data" }),
62
+ (0, class_transformer_1.Type)(function () { return accountingaccount_1.AccountingAccount; }),
63
+ __metadata("design:type", accountingaccount_1.AccountingAccount)
64
+ ], AccountingCreateAccountResponse.prototype, "data", void 0);
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)(),
67
+ (0, class_transformer_1.Expose)({ name: "dataConnectionKey" }),
68
+ __metadata("design:type", String)
69
+ ], AccountingCreateAccountResponse.prototype, "dataConnectionKey", void 0);
70
+ __decorate([
71
+ (0, utils_1.SpeakeasyMetadata)(),
72
+ (0, class_transformer_1.Expose)({ name: "dataType" }),
73
+ __metadata("design:type", String)
74
+ ], AccountingCreateAccountResponse.prototype, "dataType", void 0);
75
+ __decorate([
76
+ (0, utils_1.SpeakeasyMetadata)(),
77
+ (0, class_transformer_1.Expose)({ name: "errorMessage" }),
78
+ __metadata("design:type", String)
79
+ ], AccountingCreateAccountResponse.prototype, "errorMessage", void 0);
80
+ __decorate([
81
+ (0, utils_1.SpeakeasyMetadata)(),
82
+ (0, class_transformer_1.Expose)({ name: "pushOperationKey" }),
83
+ __metadata("design:type", String)
84
+ ], AccountingCreateAccountResponse.prototype, "pushOperationKey", void 0);
85
+ __decorate([
86
+ (0, utils_1.SpeakeasyMetadata)(),
87
+ (0, class_transformer_1.Expose)({ name: "requestedOnUtc" }),
88
+ __metadata("design:type", String)
89
+ ], AccountingCreateAccountResponse.prototype, "requestedOnUtc", void 0);
90
+ __decorate([
91
+ (0, utils_1.SpeakeasyMetadata)(),
92
+ (0, class_transformer_1.Expose)({ name: "status" }),
93
+ __metadata("design:type", String)
94
+ ], AccountingCreateAccountResponse.prototype, "status", void 0);
95
+ __decorate([
96
+ (0, utils_1.SpeakeasyMetadata)(),
97
+ (0, class_transformer_1.Expose)({ name: "statusCode" }),
98
+ __metadata("design:type", Number)
99
+ ], AccountingCreateAccountResponse.prototype, "statusCode", void 0);
100
+ __decorate([
101
+ (0, utils_1.SpeakeasyMetadata)(),
102
+ (0, class_transformer_1.Expose)({ name: "timeoutInMinutes" }),
103
+ __metadata("design:type", Number)
104
+ ], AccountingCreateAccountResponse.prototype, "timeoutInMinutes", void 0);
105
+ __decorate([
106
+ (0, utils_1.SpeakeasyMetadata)(),
107
+ (0, class_transformer_1.Expose)({ name: "timeoutInSeconds" }),
108
+ __metadata("design:type", Number)
109
+ ], AccountingCreateAccountResponse.prototype, "timeoutInSeconds", void 0);
110
+ __decorate([
111
+ (0, utils_1.SpeakeasyMetadata)(),
112
+ (0, class_transformer_1.Expose)({ name: "validation" }),
113
+ (0, class_transformer_1.Type)(function () { return validation_1.Validation; }),
114
+ __metadata("design:type", validation_1.Validation)
115
+ ], AccountingCreateAccountResponse.prototype, "validation", void 0);
116
+ return AccountingCreateAccountResponse;
117
+ }(utils_1.SpeakeasyBase));
118
+ exports.AccountingCreateAccountResponse = AccountingCreateAccountResponse;
@@ -0,0 +1,112 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import { AccountingBankAccount } from "./accountingbankaccount";
3
+ import { DataType } from "./datatype";
4
+ import { PushOperationChange } from "./pushoperationchange";
5
+ import { PushOperationStatus } from "./pushoperationstatus";
6
+ import { Validation } from "./validation";
7
+ export declare class AccountingCreateBankAccountResponse extends SpeakeasyBase {
8
+ /**
9
+ * Contains a single entry that communicates which record has changed and the manner in which it changed.
10
+ */
11
+ changes?: PushOperationChange[];
12
+ /**
13
+ * Unique identifier for your SMB in Codat.
14
+ */
15
+ companyId: string;
16
+ /**
17
+ * 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:
18
+ *
19
+ * @remarks
20
+ *
21
+ * ```
22
+ * 2020-10-08T22:40:50Z
23
+ * 2021-01-01T00:00:00
24
+ * ```
25
+ *
26
+ *
27
+ *
28
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
29
+ *
30
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
31
+ * - Unqualified local time: `2021-11-15T01:00:00`
32
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
33
+ *
34
+ * > Time zones
35
+ * >
36
+ * > Not all dates from Codat will contain information about time zones.
37
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
38
+ */
39
+ completedOnUtc?: string;
40
+ /**
41
+ * > **Accessing Bank Accounts through Banking API**
42
+ *
43
+ * @remarks
44
+ * >
45
+ * > This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators.
46
+ * >
47
+ * > To view bank account data through the Banking API, please refer to the new datatype [here](https://docs.codat.io/banking-api#/schemas/Account)
48
+ *
49
+ * > View the coverage for bank accounts in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bankAccounts" target="_blank">Data coverage explorer</a>.
50
+ *
51
+ * ## Overview
52
+ *
53
+ * A list of bank accounts associated with a company and a specific data connection.
54
+ *
55
+ * Bank accounts data includes:
56
+ * * The name and ID of the account in the accounting platform.
57
+ * * The currency and balance of the account.
58
+ * * The sort code and account number.
59
+ */
60
+ data?: AccountingBankAccount;
61
+ /**
62
+ * Unique identifier for a company's data connection.
63
+ */
64
+ dataConnectionKey: string;
65
+ /**
66
+ * Available Data types
67
+ */
68
+ dataType?: DataType;
69
+ errorMessage?: string;
70
+ /**
71
+ * 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.
72
+ */
73
+ pushOperationKey: string;
74
+ /**
75
+ * 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:
76
+ *
77
+ * @remarks
78
+ *
79
+ * ```
80
+ * 2020-10-08T22:40:50Z
81
+ * 2021-01-01T00:00:00
82
+ * ```
83
+ *
84
+ *
85
+ *
86
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
87
+ *
88
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
89
+ * - Unqualified local time: `2021-11-15T01:00:00`
90
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
91
+ *
92
+ * > Time zones
93
+ * >
94
+ * > Not all dates from Codat will contain information about time zones.
95
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
96
+ */
97
+ requestedOnUtc: string;
98
+ /**
99
+ * The current status of the push operation.
100
+ */
101
+ status: PushOperationStatus;
102
+ statusCode: number;
103
+ timeoutInMinutes?: number;
104
+ /**
105
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
106
+ */
107
+ timeoutInSeconds?: number;
108
+ /**
109
+ * A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here.
110
+ */
111
+ validation?: Validation;
112
+ }
@@ -0,0 +1,118 @@
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.AccountingCreateBankAccountResponse = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var accountingbankaccount_1 = require("./accountingbankaccount");
33
+ var datatype_1 = require("./datatype");
34
+ var pushoperationchange_1 = require("./pushoperationchange");
35
+ var pushoperationstatus_1 = require("./pushoperationstatus");
36
+ var validation_1 = require("./validation");
37
+ var class_transformer_1 = require("class-transformer");
38
+ var AccountingCreateBankAccountResponse = /** @class */ (function (_super) {
39
+ __extends(AccountingCreateBankAccountResponse, _super);
40
+ function AccountingCreateBankAccountResponse() {
41
+ return _super !== null && _super.apply(this, arguments) || this;
42
+ }
43
+ __decorate([
44
+ (0, utils_1.SpeakeasyMetadata)({ elemType: pushoperationchange_1.PushOperationChange }),
45
+ (0, class_transformer_1.Expose)({ name: "changes" }),
46
+ (0, class_transformer_1.Type)(function () { return pushoperationchange_1.PushOperationChange; }),
47
+ __metadata("design:type", Array)
48
+ ], AccountingCreateBankAccountResponse.prototype, "changes", void 0);
49
+ __decorate([
50
+ (0, utils_1.SpeakeasyMetadata)(),
51
+ (0, class_transformer_1.Expose)({ name: "companyId" }),
52
+ __metadata("design:type", String)
53
+ ], AccountingCreateBankAccountResponse.prototype, "companyId", void 0);
54
+ __decorate([
55
+ (0, utils_1.SpeakeasyMetadata)(),
56
+ (0, class_transformer_1.Expose)({ name: "completedOnUtc" }),
57
+ __metadata("design:type", String)
58
+ ], AccountingCreateBankAccountResponse.prototype, "completedOnUtc", void 0);
59
+ __decorate([
60
+ (0, utils_1.SpeakeasyMetadata)(),
61
+ (0, class_transformer_1.Expose)({ name: "data" }),
62
+ (0, class_transformer_1.Type)(function () { return accountingbankaccount_1.AccountingBankAccount; }),
63
+ __metadata("design:type", accountingbankaccount_1.AccountingBankAccount)
64
+ ], AccountingCreateBankAccountResponse.prototype, "data", void 0);
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)(),
67
+ (0, class_transformer_1.Expose)({ name: "dataConnectionKey" }),
68
+ __metadata("design:type", String)
69
+ ], AccountingCreateBankAccountResponse.prototype, "dataConnectionKey", void 0);
70
+ __decorate([
71
+ (0, utils_1.SpeakeasyMetadata)(),
72
+ (0, class_transformer_1.Expose)({ name: "dataType" }),
73
+ __metadata("design:type", String)
74
+ ], AccountingCreateBankAccountResponse.prototype, "dataType", void 0);
75
+ __decorate([
76
+ (0, utils_1.SpeakeasyMetadata)(),
77
+ (0, class_transformer_1.Expose)({ name: "errorMessage" }),
78
+ __metadata("design:type", String)
79
+ ], AccountingCreateBankAccountResponse.prototype, "errorMessage", void 0);
80
+ __decorate([
81
+ (0, utils_1.SpeakeasyMetadata)(),
82
+ (0, class_transformer_1.Expose)({ name: "pushOperationKey" }),
83
+ __metadata("design:type", String)
84
+ ], AccountingCreateBankAccountResponse.prototype, "pushOperationKey", void 0);
85
+ __decorate([
86
+ (0, utils_1.SpeakeasyMetadata)(),
87
+ (0, class_transformer_1.Expose)({ name: "requestedOnUtc" }),
88
+ __metadata("design:type", String)
89
+ ], AccountingCreateBankAccountResponse.prototype, "requestedOnUtc", void 0);
90
+ __decorate([
91
+ (0, utils_1.SpeakeasyMetadata)(),
92
+ (0, class_transformer_1.Expose)({ name: "status" }),
93
+ __metadata("design:type", String)
94
+ ], AccountingCreateBankAccountResponse.prototype, "status", void 0);
95
+ __decorate([
96
+ (0, utils_1.SpeakeasyMetadata)(),
97
+ (0, class_transformer_1.Expose)({ name: "statusCode" }),
98
+ __metadata("design:type", Number)
99
+ ], AccountingCreateBankAccountResponse.prototype, "statusCode", void 0);
100
+ __decorate([
101
+ (0, utils_1.SpeakeasyMetadata)(),
102
+ (0, class_transformer_1.Expose)({ name: "timeoutInMinutes" }),
103
+ __metadata("design:type", Number)
104
+ ], AccountingCreateBankAccountResponse.prototype, "timeoutInMinutes", void 0);
105
+ __decorate([
106
+ (0, utils_1.SpeakeasyMetadata)(),
107
+ (0, class_transformer_1.Expose)({ name: "timeoutInSeconds" }),
108
+ __metadata("design:type", Number)
109
+ ], AccountingCreateBankAccountResponse.prototype, "timeoutInSeconds", void 0);
110
+ __decorate([
111
+ (0, utils_1.SpeakeasyMetadata)(),
112
+ (0, class_transformer_1.Expose)({ name: "validation" }),
113
+ (0, class_transformer_1.Type)(function () { return validation_1.Validation; }),
114
+ __metadata("design:type", validation_1.Validation)
115
+ ], AccountingCreateBankAccountResponse.prototype, "validation", void 0);
116
+ return AccountingCreateBankAccountResponse;
117
+ }(utils_1.SpeakeasyBase));
118
+ exports.AccountingCreateBankAccountResponse = AccountingCreateBankAccountResponse;
@@ -0,0 +1,6 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import { CreateBankAccountTransaction } from "./createbankaccounttransaction";
3
+ export declare class AccountingCreateBankTransactions extends SpeakeasyBase {
4
+ accountId?: string;
5
+ transactions?: CreateBankAccountTransaction[];
6
+ }
@@ -0,0 +1,52 @@
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.AccountingCreateBankTransactions = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var createbankaccounttransaction_1 = require("./createbankaccounttransaction");
33
+ var class_transformer_1 = require("class-transformer");
34
+ var AccountingCreateBankTransactions = /** @class */ (function (_super) {
35
+ __extends(AccountingCreateBankTransactions, _super);
36
+ function AccountingCreateBankTransactions() {
37
+ return _super !== null && _super.apply(this, arguments) || this;
38
+ }
39
+ __decorate([
40
+ (0, utils_1.SpeakeasyMetadata)(),
41
+ (0, class_transformer_1.Expose)({ name: "accountId" }),
42
+ __metadata("design:type", String)
43
+ ], AccountingCreateBankTransactions.prototype, "accountId", void 0);
44
+ __decorate([
45
+ (0, utils_1.SpeakeasyMetadata)({ elemType: createbankaccounttransaction_1.CreateBankAccountTransaction }),
46
+ (0, class_transformer_1.Expose)({ name: "transactions" }),
47
+ (0, class_transformer_1.Type)(function () { return createbankaccounttransaction_1.CreateBankAccountTransaction; }),
48
+ __metadata("design:type", Array)
49
+ ], AccountingCreateBankTransactions.prototype, "transactions", void 0);
50
+ return AccountingCreateBankTransactions;
51
+ }(utils_1.SpeakeasyBase));
52
+ exports.AccountingCreateBankTransactions = AccountingCreateBankTransactions;