@codat/lending 4.2.0 → 4.3.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.
- package/README.md +36 -1
- package/dist/sdk/companies.d.ts +22 -7
- package/dist/sdk/companies.js +22 -7
- package/dist/sdk/models/operations/getcreateoperation.d.ts +1 -1
- package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +2 -2
- package/dist/sdk/models/shared/accountingbillcreditnote.js +3 -3
- package/dist/sdk/models/shared/accountingcreateaccountresponse.d.ts +171 -34
- package/dist/sdk/models/shared/accountingcreateaccountresponse.js +194 -4
- package/dist/sdk/models/shared/accountingcreatebankaccountresponse.d.ts +116 -22
- package/dist/sdk/models/shared/accountingcreatebankaccountresponse.js +118 -4
- package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.d.ts +12 -2
- package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.js +26 -4
- package/dist/sdk/models/shared/accountingcreatedirectcostresponse.d.ts +165 -18
- package/dist/sdk/models/shared/accountingcreatedirectcostresponse.js +150 -4
- package/dist/sdk/models/shared/accountingcreatepaymentresponse.d.ts +797 -675
- package/dist/sdk/models/shared/accountingcreatepaymentresponse.js +782 -4
- package/dist/sdk/models/shared/accountingcreatesupplierresponse.d.ts +69 -11
- package/dist/sdk/models/shared/accountingcreatesupplierresponse.js +99 -4
- package/dist/sdk/models/shared/accountingcreatetransferresponse.d.ts +81 -9
- package/dist/sdk/models/shared/accountingcreatetransferresponse.js +93 -4
- package/dist/sdk/models/shared/accountingcreditnote.d.ts +2 -2
- package/dist/sdk/models/shared/accountingcreditnote.js +3 -3
- package/dist/sdk/models/shared/accountingdirectcost.d.ts +11 -5
- package/dist/sdk/models/shared/accountingdirectcost.js +18 -11
- package/dist/sdk/models/shared/accountinginvoice.d.ts +10 -5
- package/dist/sdk/models/shared/accountinginvoice.js +11 -5
- package/dist/sdk/models/shared/accountingjournalentry.d.ts +3 -7
- package/dist/sdk/models/shared/accountingjournalentry.js +3 -3
- package/dist/sdk/models/shared/accounttransactionline.d.ts +3 -7
- package/dist/sdk/models/shared/accounttransactionline.js +3 -3
- package/dist/sdk/models/shared/accounttransactionlinerecordref.d.ts +30 -0
- package/dist/sdk/models/shared/accounttransactionlinerecordref.js +70 -0
- package/dist/sdk/models/shared/bankingtransactioncategory.d.ts +5 -1
- package/dist/sdk/models/shared/bankingtransactioncategory.js +5 -1
- package/dist/sdk/models/shared/company.d.ts +10 -0
- package/dist/sdk/models/shared/company.js +20 -1
- package/dist/sdk/models/shared/companyrequestbody.d.ts +5 -0
- package/dist/sdk/models/shared/companyrequestbody.js +7 -0
- package/dist/sdk/models/shared/connection.d.ts +2 -0
- package/dist/sdk/models/shared/connection.js +2 -0
- package/dist/sdk/models/shared/contactref.d.ts +9 -3
- package/dist/sdk/models/shared/contactref.js +9 -2
- package/dist/sdk/models/shared/directcostprototype.d.ts +11 -5
- package/dist/sdk/models/shared/directcostprototype.js +18 -11
- package/dist/sdk/models/shared/errormessage.d.ts +5 -0
- package/dist/sdk/models/shared/errormessage.js +7 -0
- package/dist/sdk/models/shared/errorvalidation.d.ts +9 -0
- package/dist/sdk/models/shared/errorvalidation.js +56 -0
- package/dist/sdk/models/shared/errorvalidationitem.d.ts +15 -0
- package/dist/sdk/models/shared/errorvalidationitem.js +55 -0
- package/dist/sdk/models/shared/index.d.ts +6 -0
- package/dist/sdk/models/shared/index.js +6 -0
- package/dist/sdk/models/shared/invoicelineitem.d.ts +0 -2
- package/dist/sdk/models/shared/items.d.ts +2 -6
- package/dist/sdk/models/shared/items.js +2 -7
- package/dist/sdk/models/shared/journalentryrecordref.d.ts +30 -0
- package/dist/sdk/models/shared/journalentryrecordref.js +70 -0
- package/dist/sdk/models/shared/journalline.d.ts +2 -2
- package/dist/sdk/models/shared/journalline.js +3 -3
- package/dist/sdk/models/shared/tracking.d.ts +2 -1
- package/dist/sdk/models/shared/tracking.js +3 -2
- package/dist/sdk/models/shared/trackingrecordref.d.ts +22 -0
- package/dist/sdk/models/shared/trackingrecordref.js +62 -0
- package/dist/sdk/models/shared/withholdingtaxitems.d.ts +11 -0
- package/dist/sdk/models/shared/withholdingtaxitems.js +50 -0
- package/dist/sdk/sdk.js +3 -3
- package/docs/sdk/models/operations/createcompanyresponse.md +7 -7
- package/docs/sdk/models/operations/createconnectionresponse.md +7 -7
- package/docs/sdk/models/operations/createsupplierrequest.md +7 -7
- package/docs/sdk/models/operations/getaccountingagedcreditorsreportresponse.md +7 -7
- package/docs/sdk/models/operations/getaccountingageddebtorsreportresponse.md +7 -7
- package/docs/sdk/models/operations/getaccountingbillcreditnoteresponse.md +7 -7
- package/docs/sdk/models/operations/getaccountingbillpaymentresponse.md +7 -7
- package/docs/sdk/models/operations/getaccountingcreditnoteresponse.md +7 -7
- package/docs/sdk/models/operations/getaccountingprofileresponse.md +7 -7
- package/docs/sdk/models/operations/getaccountingsupplierresponse.md +7 -7
- package/docs/sdk/models/operations/getbankingaccountresponse.md +7 -7
- package/docs/sdk/models/operations/getbankingtransactioncategoryresponse.md +7 -7
- package/docs/sdk/models/operations/getbankingtransactionresponse.md +7 -7
- package/docs/sdk/models/operations/getcategorizedbalancesheetstatementresponse.md +7 -7
- package/docs/sdk/models/operations/getcategorizedprofitandlossstatementresponse.md +7 -7
- package/docs/sdk/models/operations/getcommercecustomerresponse.md +7 -7
- package/docs/sdk/models/operations/getcommercedisputeresponse.md +7 -7
- package/docs/sdk/models/operations/getcommercelocationresponse.md +7 -7
- package/docs/sdk/models/operations/getcommerceorderresponse.md +7 -7
- package/docs/sdk/models/operations/getcommerceproductcategoryresponse.md +7 -7
- package/docs/sdk/models/operations/getcompanyresponse.md +7 -7
- package/docs/sdk/models/operations/getconnectionresponse.md +7 -7
- package/docs/sdk/models/operations/getcreateoperationrequest.md +4 -4
- package/docs/sdk/models/operations/getloansummaryresponse.md +7 -7
- package/docs/sdk/models/operations/getpulloperationresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingaccountsresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingaccounttransactionsresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingbankaccountsresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingbankaccounttransactionsresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingbillcreditnotesresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingbillpaymentsresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingbillsresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingcreditnotesresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingcustomersresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingdirectcostsresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingdirectincomesresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountinginvoicesresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingjournalentriesresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingjournalsresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingpaymentsresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingsuppliersresponse.md +7 -7
- package/docs/sdk/models/operations/listaccountingtransfersresponse.md +7 -7
- package/docs/sdk/models/operations/listbankingaccountbalancesresponse.md +7 -7
- package/docs/sdk/models/operations/listbankingaccountsresponse.md +7 -7
- package/docs/sdk/models/operations/listbankingtransactioncategoriesresponse.md +7 -7
- package/docs/sdk/models/operations/listbankingtransactionsresponse.md +7 -7
- package/docs/sdk/models/operations/listcommercecustomersresponse.md +7 -7
- package/docs/sdk/models/operations/listcommercedisputesresponse.md +7 -7
- package/docs/sdk/models/operations/listcommercelocationsresponse.md +7 -7
- package/docs/sdk/models/operations/listcommerceordersresponse.md +7 -7
- package/docs/sdk/models/operations/listcommercepaymentmethodsresponse.md +7 -7
- package/docs/sdk/models/operations/listcommercepaymentsresponse.md +7 -7
- package/docs/sdk/models/operations/listcommerceproductcategoriesresponse.md +7 -7
- package/docs/sdk/models/operations/listcommerceproductsresponse.md +7 -7
- package/docs/sdk/models/operations/listcommercetransactionsresponse.md +7 -7
- package/docs/sdk/models/operations/listcompaniesresponse.md +7 -7
- package/docs/sdk/models/operations/listconnectionsresponse.md +7 -7
- package/docs/sdk/models/operations/listcreateoperationsresponse.md +7 -7
- package/docs/sdk/models/operations/listdataintegritydetailsresponse.md +7 -7
- package/docs/sdk/models/operations/listloantransactionsresponse.md +7 -7
- package/docs/sdk/models/operations/listpulloperationsresponse.md +7 -7
- package/docs/sdk/models/operations/refreshdatatyperesponse.md +7 -7
- package/docs/sdk/models/operations/unlinkconnectionresponse.md +7 -7
- package/docs/sdk/models/operations/updatecompanyresponse.md +7 -7
- package/docs/sdk/models/shared/accountingaccounts.md +7 -7
- package/docs/sdk/models/shared/accountingaccounttransactions.md +7 -7
- package/docs/sdk/models/shared/accountingbankaccounts.md +7 -7
- package/docs/sdk/models/shared/accountingbanktransactions.md +7 -7
- package/docs/sdk/models/shared/accountingbillcreditnote.md +1 -1
- package/docs/sdk/models/shared/accountingbillcreditnotes.md +7 -7
- package/docs/sdk/models/shared/accountingbillpayment.md +1 -1
- package/docs/sdk/models/shared/accountingbillpayments.md +7 -7
- package/docs/sdk/models/shared/accountingbills.md +7 -7
- package/docs/sdk/models/shared/accountingcreateaccountresponse.md +16 -16
- package/docs/sdk/models/shared/accountingcreateaccountresponseaccountingaccount.md +54 -0
- package/docs/sdk/models/shared/accountingcreateaccountresponsevaliddatatypelinks.md +50 -0
- package/docs/sdk/models/shared/accountingcreatebankaccountresponse.md +16 -16
- package/docs/sdk/models/shared/accountingcreatebankaccountresponseaccountingbankaccount.md +42 -0
- package/docs/sdk/models/shared/accountingcreatebankaccounttransactions.md +11 -0
- package/docs/sdk/models/shared/accountingcreatebanktransactionsresponse.md +1 -1
- package/docs/sdk/models/shared/accountingcreatedirectcostresponse.md +16 -16
- package/docs/sdk/models/shared/accountingcreatedirectcostresponseaccountingdirectcost.md +41 -0
- package/docs/sdk/models/shared/accountingcreatedirectcostresponsecontactreference.md +11 -0
- package/docs/sdk/models/shared/accountingcreatedirectcostresponsedatatype.md +11 -0
- package/docs/sdk/models/shared/accountingcreatepaymentresponse.md +16 -16
- package/docs/sdk/models/shared/accountingcreatepaymentresponseaccountingpayment.md +703 -0
- package/docs/sdk/models/shared/accountingcreatesupplierresponse.md +1 -1
- package/docs/sdk/models/shared/accountingcreatesupplierresponseaccountingsupplier.md +29 -0
- package/docs/sdk/models/shared/accountingcreatetransferresponse.md +1 -1
- package/docs/sdk/models/shared/accountingcreatetransferresponseaccountingtransfer.md +25 -0
- package/docs/sdk/models/shared/accountingcreditnote.md +1 -1
- package/docs/sdk/models/shared/accountingcreditnotes.md +7 -7
- package/docs/sdk/models/shared/accountingcustomers.md +7 -7
- package/docs/sdk/models/shared/accountingdirectcost.md +1 -1
- package/docs/sdk/models/shared/accountingdirectcostcontactreference.md +11 -0
- package/docs/sdk/models/shared/accountingdirectcostdatatype.md +11 -0
- package/docs/sdk/models/shared/accountingdirectcosts.md +7 -7
- package/docs/sdk/models/shared/accountingdirectincomes.md +7 -7
- package/docs/sdk/models/shared/accountinginvoice.md +1 -1
- package/docs/sdk/models/shared/accountinginvoicedatatype.md +10 -0
- package/docs/sdk/models/shared/accountinginvoices.md +7 -7
- package/docs/sdk/models/shared/accountingjournalentries.md +7 -7
- package/docs/sdk/models/shared/accountingjournalentry.md +1 -1
- package/docs/sdk/models/shared/accountingjournals.md +7 -7
- package/docs/sdk/models/shared/accountingpayment.md +1 -1
- package/docs/sdk/models/shared/accountingpayments.md +7 -7
- package/docs/sdk/models/shared/accountingsuppliers.md +7 -7
- package/docs/sdk/models/shared/accountingtransfers.md +7 -7
- package/docs/sdk/models/shared/accounts.md +1 -1
- package/docs/sdk/models/shared/accounttransactionline.md +5 -5
- package/docs/sdk/models/shared/accounttransactionlinerecordref.md +11 -0
- package/docs/sdk/models/shared/accounttransactionlinerecordrefdatatype.md +20 -0
- package/docs/sdk/models/shared/bankingaccountbalances.md +7 -7
- package/docs/sdk/models/shared/bankingaccounts.md +7 -7
- package/docs/sdk/models/shared/bankingtransactioncategories.md +7 -7
- package/docs/sdk/models/shared/bankingtransactioncategory.md +3 -1
- package/docs/sdk/models/shared/bankingtransactions.md +7 -7
- package/docs/sdk/models/shared/commercecustomers.md +7 -7
- package/docs/sdk/models/shared/commercedisputes.md +7 -7
- package/docs/sdk/models/shared/commercelocations.md +7 -7
- package/docs/sdk/models/shared/commerceorders.md +7 -7
- package/docs/sdk/models/shared/commercepayment.md +1 -1
- package/docs/sdk/models/shared/commercepaymentmethods.md +7 -7
- package/docs/sdk/models/shared/commercepayments.md +7 -7
- package/docs/sdk/models/shared/commerceproductcategories.md +7 -7
- package/docs/sdk/models/shared/commerceproducts.md +7 -7
- package/docs/sdk/models/shared/commercetransactions.md +7 -7
- package/docs/sdk/models/shared/companies.md +7 -7
- package/docs/sdk/models/shared/company.md +1 -0
- package/docs/sdk/models/shared/companyrequestbody.md +1 -0
- package/docs/sdk/models/shared/connections.md +7 -7
- package/docs/sdk/models/shared/contactref.md +4 -4
- package/docs/sdk/models/shared/contactrefdatatype.md +11 -0
- package/docs/sdk/models/shared/contactreference.md +11 -0
- package/docs/sdk/models/shared/dataintegritydetails.md +7 -7
- package/docs/sdk/models/shared/directcostprototype.md +1 -1
- package/docs/sdk/models/shared/directcostprototypedatatype.md +11 -0
- package/docs/sdk/models/shared/enhancedcashflowtransaction.md +2 -2
- package/docs/sdk/models/shared/enhancedcashflowtransactions.md +5 -5
- package/docs/sdk/models/shared/enhancedinvoicesreport.md +4 -4
- package/docs/sdk/models/shared/errormessage.md +9 -8
- package/docs/sdk/models/shared/errorvalidation.md +11 -0
- package/docs/sdk/models/shared/errorvalidationitem.md +10 -0
- package/docs/sdk/models/shared/groupreference.md +8 -0
- package/docs/sdk/models/shared/invoicelineitem.md +1 -1
- package/docs/sdk/models/shared/items.md +3 -4
- package/docs/sdk/models/shared/journalentryrecordref.md +11 -0
- package/docs/sdk/models/shared/journalentryrecordrefdatatype.md +20 -0
- package/docs/sdk/models/shared/journallinetracking.md +3 -3
- package/docs/sdk/models/shared/pulloperations.md +7 -7
- package/docs/sdk/models/shared/pushoperations.md +7 -7
- package/docs/sdk/models/shared/salesorderreference.md +4 -4
- package/docs/sdk/models/shared/sourcetype.md +2 -0
- package/docs/sdk/models/shared/tracking.md +1 -1
- package/docs/sdk/models/shared/trackingrecordref.md +11 -0
- package/docs/sdk/models/shared/trackingrecordrefdatatype.md +12 -0
- package/docs/sdk/models/shared/withholdingtaxitems.md +9 -0
- package/docs/sdks/accountbalances/README.md +1 -1
- package/docs/sdks/accounts/README.md +2 -2
- package/docs/sdks/accounttransactions/README.md +2 -2
- package/docs/sdks/balancesheet/README.md +2 -2
- package/docs/sdks/bankaccounts/README.md +2 -2
- package/docs/sdks/banktransactions/README.md +2 -2
- package/docs/sdks/billcreditnotes/README.md +2 -2
- package/docs/sdks/billpayments/README.md +2 -2
- package/docs/sdks/bills/README.md +5 -5
- package/docs/sdks/cashflow/README.md +1 -1
- package/docs/sdks/categorizedstatement/README.md +1 -1
- package/docs/sdks/codatlendingaccountingbankdata/README.md +1 -1
- package/docs/sdks/codatlendingaccounts/README.md +2 -2
- package/docs/sdks/codatlendingbankingtransactions/README.md +2 -2
- package/docs/sdks/codatlendingcustomers/README.md +2 -2
- package/docs/sdks/codatlendingdirectcosts/README.md +5 -5
- package/docs/sdks/codatlendingfinancialstatementsaccounts/README.md +2 -2
- package/docs/sdks/codatlendingloanwritebackaccounts/README.md +2 -2
- package/docs/sdks/codatlendingpayments/README.md +4 -3
- package/docs/sdks/codatlendingreports/README.md +2 -2
- package/docs/sdks/codatlendingsalespayments/README.md +2 -2
- package/docs/sdks/codatlendingsuppliers/README.md +26 -7
- package/docs/sdks/codatlendingtransactions/README.md +2 -2
- package/docs/sdks/codatlendingtransfers/README.md +2 -2
- package/docs/sdks/companies/README.md +38 -13
- package/docs/sdks/companyinfo/README.md +2 -2
- package/docs/sdks/connections/README.md +5 -5
- package/docs/sdks/createoperations/README.md +2 -2
- package/docs/sdks/creditnotes/README.md +2 -2
- package/docs/sdks/customers/README.md +5 -5
- package/docs/sdks/dataintegrity/README.md +3 -3
- package/docs/sdks/directcosts/README.md +10 -11
- package/docs/sdks/directincomes/README.md +5 -5
- package/docs/sdks/disputes/README.md +2 -2
- package/docs/sdks/excelreports/README.md +3 -3
- package/docs/sdks/fileupload/README.md +3 -3
- package/docs/sdks/invoices/README.md +7 -7
- package/docs/sdks/journalentries/README.md +2 -2
- package/docs/sdks/journals/README.md +2 -2
- package/docs/sdks/liabilities/README.md +4 -4
- package/docs/sdks/locations/README.md +2 -2
- package/docs/sdks/managedata/README.md +1 -1
- package/docs/sdks/metrics/README.md +3 -3
- package/docs/sdks/orders/README.md +2 -2
- package/docs/sdks/paymentmethods/README.md +2 -2
- package/docs/sdks/payments/README.md +2 -2
- package/docs/sdks/productcategories/README.md +2 -2
- package/docs/sdks/products/README.md +2 -2
- package/docs/sdks/profitandloss/README.md +2 -2
- package/docs/sdks/pulloperations/README.md +2 -2
- package/docs/sdks/refresh/README.md +2 -2
- package/docs/sdks/reports/README.md +4 -4
- package/docs/sdks/suppliers/README.md +5 -5
- package/docs/sdks/transactioncategories/README.md +2 -2
- package/docs/sdks/transfers/README.md +3 -4
- package/package.json +1 -1
- package/docs/sdk/models/shared/accountingdirectcostcontactref.md +0 -11
- package/docs/sdk/models/shared/directcostprototypecontactref.md +0 -11
|
@@ -27,14 +27,204 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
27
27
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.AccountingCreateAccountResponse = void 0;
|
|
30
|
+
exports.AccountingCreateAccountResponse = exports.AccountingCreateAccountResponseAccountingAccount = exports.AccountingCreateAccountResponseValidDataTypeLinks = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
-
var
|
|
32
|
+
var accountstatus_1 = require("./accountstatus");
|
|
33
|
+
var accounttype_1 = require("./accounttype");
|
|
33
34
|
var datatype_1 = require("./datatype");
|
|
35
|
+
var metadata_1 = require("./metadata");
|
|
34
36
|
var pushoperationchange_1 = require("./pushoperationchange");
|
|
35
37
|
var pushoperationstatus_1 = require("./pushoperationstatus");
|
|
38
|
+
var supplementaldata_1 = require("./supplementaldata");
|
|
36
39
|
var validation_1 = require("./validation");
|
|
37
40
|
var class_transformer_1 = require("class-transformer");
|
|
41
|
+
/**
|
|
42
|
+
* When querying Codat's data model, some data types return `validDatatypeLinks` metadata in the JSON response. This indicates where that object can be used as a reference—a _valid link_—when creating or updating other data.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
*
|
|
46
|
+
* For example, `validDatatypeLinks` might indicate the following references:
|
|
47
|
+
*
|
|
48
|
+
* - Which tax rates are valid to use on the line item of a bill.
|
|
49
|
+
* - Which items can be used when creating an invoice.
|
|
50
|
+
*
|
|
51
|
+
* You can use `validDatatypeLinks` to present your SMB customers with only valid choices when selecting objects from a list, for example.
|
|
52
|
+
*
|
|
53
|
+
* ## `validDatatypeLinks` example
|
|
54
|
+
*
|
|
55
|
+
* The following example uses the `Accounting.Accounts` data type. It shows that, on the linked integration, this account is valid as the account on a payment or bill payment; and as the account referenced on the line item of a direct income or direct cost. Because there is no valid link to Invoices or Bills, using this account on those data types will result in an error.
|
|
56
|
+
*
|
|
57
|
+
* ```json validDatatypeLinks for an account
|
|
58
|
+
* {
|
|
59
|
+
* "id": "bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4",
|
|
60
|
+
* "nominalCode": "090",
|
|
61
|
+
* "name": "Business Bank Account",
|
|
62
|
+
* #...
|
|
63
|
+
* "validDatatypeLinks": [
|
|
64
|
+
* {
|
|
65
|
+
* "property": "Id",
|
|
66
|
+
* "links": [
|
|
67
|
+
* "Payment.AccountRef.Id",
|
|
68
|
+
* "BillPayment.AccountRef.Id",
|
|
69
|
+
* "DirectIncome.LineItems.AccountRef.Id",
|
|
70
|
+
* "DirectCost.LineItems.AccountRef.Id"
|
|
71
|
+
* ]
|
|
72
|
+
* }
|
|
73
|
+
* ]
|
|
74
|
+
* }
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
* ## Support for `validDatatypeLinks`
|
|
80
|
+
*
|
|
81
|
+
* Codat currently supports `validDatatypeLinks` for some data types on our Xero, QuickBooks Online, QuickBooks Desktop, Exact (NL), and Sage Business Cloud integrations.
|
|
82
|
+
*
|
|
83
|
+
* If you'd like us to extend support to more data types or integrations, suggest or vote for this on our <a href="https://portal.productboard.com/codat/5-product-roadmap">Product Roadmap</a>.
|
|
84
|
+
*/
|
|
85
|
+
var AccountingCreateAccountResponseValidDataTypeLinks = /** @class */ (function (_super) {
|
|
86
|
+
__extends(AccountingCreateAccountResponseValidDataTypeLinks, _super);
|
|
87
|
+
function AccountingCreateAccountResponseValidDataTypeLinks() {
|
|
88
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
89
|
+
}
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
92
|
+
(0, class_transformer_1.Expose)({ name: "links" }),
|
|
93
|
+
__metadata("design:type", Array)
|
|
94
|
+
], AccountingCreateAccountResponseValidDataTypeLinks.prototype, "links", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
97
|
+
(0, class_transformer_1.Expose)({ name: "property" }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], AccountingCreateAccountResponseValidDataTypeLinks.prototype, "property", void 0);
|
|
100
|
+
return AccountingCreateAccountResponseValidDataTypeLinks;
|
|
101
|
+
}(utils_1.SpeakeasyBase));
|
|
102
|
+
exports.AccountingCreateAccountResponseValidDataTypeLinks = AccountingCreateAccountResponseValidDataTypeLinks;
|
|
103
|
+
/**
|
|
104
|
+
* > **Language tip:** Accounts are also referred to as **chart of accounts**, **nominal accounts**, and **general ledger**.
|
|
105
|
+
*
|
|
106
|
+
* @remarks
|
|
107
|
+
*
|
|
108
|
+
* 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>.
|
|
109
|
+
*
|
|
110
|
+
* ## Overview
|
|
111
|
+
*
|
|
112
|
+
* 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.
|
|
113
|
+
*
|
|
114
|
+
* The categories for an account include:
|
|
115
|
+
* * Asset
|
|
116
|
+
* * Expense
|
|
117
|
+
* * Income
|
|
118
|
+
* * Liability
|
|
119
|
+
* * Equity.
|
|
120
|
+
*
|
|
121
|
+
* 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.
|
|
122
|
+
*
|
|
123
|
+
* 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.
|
|
124
|
+
*
|
|
125
|
+
* To determine the list of allowed categories for a specific integration, you can:
|
|
126
|
+
* - 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/lending-api#/operations/get-create-chartOfAccounts-model).
|
|
127
|
+
* - Refer to the integration's own documentation.
|
|
128
|
+
*
|
|
129
|
+
* > **Accounts with no category**
|
|
130
|
+
* >
|
|
131
|
+
* > 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`.
|
|
132
|
+
* >
|
|
133
|
+
* > 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.
|
|
134
|
+
*
|
|
135
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
136
|
+
*/
|
|
137
|
+
var AccountingCreateAccountResponseAccountingAccount = /** @class */ (function (_super) {
|
|
138
|
+
__extends(AccountingCreateAccountResponseAccountingAccount, _super);
|
|
139
|
+
function AccountingCreateAccountResponseAccountingAccount() {
|
|
140
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
141
|
+
}
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
144
|
+
(0, class_transformer_1.Expose)({ name: "currency" }),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "currency", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
149
|
+
(0, class_transformer_1.Expose)({ name: "currentBalance" }),
|
|
150
|
+
__metadata("design:type", Number)
|
|
151
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "currentBalance", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
154
|
+
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
155
|
+
__metadata("design:type", String)
|
|
156
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "description", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
159
|
+
(0, class_transformer_1.Expose)({ name: "fullyQualifiedCategory" }),
|
|
160
|
+
__metadata("design:type", String)
|
|
161
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "fullyQualifiedCategory", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
164
|
+
(0, class_transformer_1.Expose)({ name: "fullyQualifiedName" }),
|
|
165
|
+
__metadata("design:type", String)
|
|
166
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "fullyQualifiedName", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
169
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
170
|
+
__metadata("design:type", String)
|
|
171
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "id", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
174
|
+
(0, class_transformer_1.Expose)({ name: "isBankAccount" }),
|
|
175
|
+
__metadata("design:type", Boolean)
|
|
176
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "isBankAccount", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
179
|
+
(0, class_transformer_1.Expose)({ name: "metadata" }),
|
|
180
|
+
(0, class_transformer_1.Type)(function () { return metadata_1.Metadata; }),
|
|
181
|
+
__metadata("design:type", metadata_1.Metadata)
|
|
182
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "metadata", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
185
|
+
(0, class_transformer_1.Expose)({ name: "modifiedDate" }),
|
|
186
|
+
__metadata("design:type", String)
|
|
187
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "modifiedDate", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
190
|
+
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
191
|
+
__metadata("design:type", String)
|
|
192
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "name", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
195
|
+
(0, class_transformer_1.Expose)({ name: "nominalCode" }),
|
|
196
|
+
__metadata("design:type", String)
|
|
197
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "nominalCode", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
200
|
+
(0, class_transformer_1.Expose)({ name: "sourceModifiedDate" }),
|
|
201
|
+
__metadata("design:type", String)
|
|
202
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "sourceModifiedDate", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
205
|
+
(0, class_transformer_1.Expose)({ name: "status" }),
|
|
206
|
+
__metadata("design:type", String)
|
|
207
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "status", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
210
|
+
(0, class_transformer_1.Expose)({ name: "supplementalData" }),
|
|
211
|
+
(0, class_transformer_1.Type)(function () { return supplementaldata_1.SupplementalData; }),
|
|
212
|
+
__metadata("design:type", supplementaldata_1.SupplementalData)
|
|
213
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "supplementalData", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
216
|
+
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
217
|
+
__metadata("design:type", String)
|
|
218
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "type", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: AccountingCreateAccountResponseValidDataTypeLinks }),
|
|
221
|
+
(0, class_transformer_1.Expose)({ name: "validDatatypeLinks" }),
|
|
222
|
+
(0, class_transformer_1.Type)(function () { return AccountingCreateAccountResponseValidDataTypeLinks; }),
|
|
223
|
+
__metadata("design:type", Array)
|
|
224
|
+
], AccountingCreateAccountResponseAccountingAccount.prototype, "validDatatypeLinks", void 0);
|
|
225
|
+
return AccountingCreateAccountResponseAccountingAccount;
|
|
226
|
+
}(utils_1.SpeakeasyBase));
|
|
227
|
+
exports.AccountingCreateAccountResponseAccountingAccount = AccountingCreateAccountResponseAccountingAccount;
|
|
38
228
|
var AccountingCreateAccountResponse = /** @class */ (function (_super) {
|
|
39
229
|
__extends(AccountingCreateAccountResponse, _super);
|
|
40
230
|
function AccountingCreateAccountResponse() {
|
|
@@ -59,8 +249,8 @@ var AccountingCreateAccountResponse = /** @class */ (function (_super) {
|
|
|
59
249
|
__decorate([
|
|
60
250
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
61
251
|
(0, class_transformer_1.Expose)({ name: "data" }),
|
|
62
|
-
(0, class_transformer_1.Type)(function () { return
|
|
63
|
-
__metadata("design:type",
|
|
252
|
+
(0, class_transformer_1.Type)(function () { return AccountingCreateAccountResponseAccountingAccount; }),
|
|
253
|
+
__metadata("design:type", AccountingCreateAccountResponseAccountingAccount)
|
|
64
254
|
], AccountingCreateAccountResponse.prototype, "data", void 0);
|
|
65
255
|
__decorate([
|
|
66
256
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
@@ -1,9 +1,123 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
import {
|
|
2
|
+
import { AccountingBankAccountType } from "./accountingbankaccounttype";
|
|
3
3
|
import { DataType } from "./datatype";
|
|
4
|
+
import { Metadata } from "./metadata";
|
|
4
5
|
import { PushOperationChange } from "./pushoperationchange";
|
|
5
6
|
import { PushOperationStatus } from "./pushoperationstatus";
|
|
7
|
+
import { SupplementalData } from "./supplementaldata";
|
|
6
8
|
import { Validation } from "./validation";
|
|
9
|
+
/**
|
|
10
|
+
* > **Accessing Bank Accounts through Banking API**
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* >
|
|
14
|
+
* > This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators.
|
|
15
|
+
* >
|
|
16
|
+
* > To view bank account data through the Banking API, please refer to the new datatype [here](https://docs.codat.io/lending-api#/schemas/Account)
|
|
17
|
+
*
|
|
18
|
+
* > 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>.
|
|
19
|
+
*
|
|
20
|
+
* ## Overview
|
|
21
|
+
*
|
|
22
|
+
* A list of bank accounts associated with a company and a specific data connection.
|
|
23
|
+
*
|
|
24
|
+
* Bank accounts data includes:
|
|
25
|
+
* * The name and ID of the account in the accounting platform.
|
|
26
|
+
* * The currency and balance of the account.
|
|
27
|
+
* * The sort code and account number.
|
|
28
|
+
*
|
|
29
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
30
|
+
*/
|
|
31
|
+
export declare class AccountingCreateBankAccountResponseAccountingBankAccount extends SpeakeasyBase {
|
|
32
|
+
/**
|
|
33
|
+
* Name of the bank account in the accounting platform.
|
|
34
|
+
*/
|
|
35
|
+
accountName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Account number for the bank account.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
*
|
|
41
|
+
* Xero integrations
|
|
42
|
+
* Only a UK account number shows for bank accounts with GBP currency and a combined total of sort code and account number that equals 14 digits, For non-GBP accounts, the full bank account number is populated.
|
|
43
|
+
*
|
|
44
|
+
* FreeAgent integrations
|
|
45
|
+
* For Credit accounts, only the last four digits are required. For other types, the field is optional.
|
|
46
|
+
*/
|
|
47
|
+
accountNumber?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The type of transactions and balances on the account.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* For Credit accounts, positive balances are liabilities, and positive transactions **reduce** liabilities.
|
|
53
|
+
* For Debit accounts, positive balances are assets, and positive transactions **increase** assets.
|
|
54
|
+
*/
|
|
55
|
+
accountType?: AccountingBankAccountType;
|
|
56
|
+
/**
|
|
57
|
+
* Total available balance of the bank account as reported by the underlying data source. This may take into account overdrafts or pending transactions for example.
|
|
58
|
+
*/
|
|
59
|
+
availableBalance?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Balance of the bank account.
|
|
62
|
+
*/
|
|
63
|
+
balance?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
|
|
66
|
+
*
|
|
67
|
+
* @remarks
|
|
68
|
+
*
|
|
69
|
+
* ## Unknown currencies
|
|
70
|
+
*
|
|
71
|
+
* In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.
|
|
72
|
+
*
|
|
73
|
+
* There are only a very small number of edge cases where this currency code is returned by the Codat system.
|
|
74
|
+
*/
|
|
75
|
+
currency?: string;
|
|
76
|
+
/**
|
|
77
|
+
* International bank account number of the account. Often used when making or receiving international payments.
|
|
78
|
+
*/
|
|
79
|
+
iBan?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Identifier for the account, unique for the company in the accounting platform.
|
|
82
|
+
*/
|
|
83
|
+
id?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The institution of the bank account.
|
|
86
|
+
*/
|
|
87
|
+
institution?: string;
|
|
88
|
+
metadata?: Metadata;
|
|
89
|
+
modifiedDate?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Code used to identify each nominal account for a business.
|
|
92
|
+
*/
|
|
93
|
+
nominalCode?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Pre-arranged overdraft limit of the account.
|
|
96
|
+
*
|
|
97
|
+
* @remarks
|
|
98
|
+
*
|
|
99
|
+
* The value is always positive. For example, an overdraftLimit of `1000` means that the balance of the account can go down to `-1000`.
|
|
100
|
+
*/
|
|
101
|
+
overdraftLimit?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Sort code for the bank account.
|
|
104
|
+
*
|
|
105
|
+
* @remarks
|
|
106
|
+
*
|
|
107
|
+
* Xero integrations
|
|
108
|
+
* The sort code is only displayed when the currency = GBP and the sort code and account number sum to 14 digits. For non-GBP accounts, this field is not populated.
|
|
109
|
+
*/
|
|
110
|
+
sortCode?: string;
|
|
111
|
+
sourceModifiedDate?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Supplemental data is additional data you can include in our standard data types.
|
|
114
|
+
*
|
|
115
|
+
* @remarks
|
|
116
|
+
*
|
|
117
|
+
* It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data.
|
|
118
|
+
*/
|
|
119
|
+
supplementalData?: SupplementalData;
|
|
120
|
+
}
|
|
7
121
|
export declare class AccountingCreateBankAccountResponse extends SpeakeasyBase {
|
|
8
122
|
/**
|
|
9
123
|
* Contains a single entry that communicates which record has changed and the manner in which it changed.
|
|
@@ -37,27 +151,7 @@ export declare class AccountingCreateBankAccountResponse extends SpeakeasyBase {
|
|
|
37
151
|
* > 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
152
|
*/
|
|
39
153
|
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/lending-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;
|
|
154
|
+
data?: AccountingCreateBankAccountResponseAccountingBankAccount;
|
|
61
155
|
/**
|
|
62
156
|
* Unique identifier for a company's data connection.
|
|
63
157
|
*/
|
|
@@ -27,14 +27,128 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
27
27
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.AccountingCreateBankAccountResponse = void 0;
|
|
30
|
+
exports.AccountingCreateBankAccountResponse = exports.AccountingCreateBankAccountResponseAccountingBankAccount = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
-
var
|
|
32
|
+
var accountingbankaccounttype_1 = require("./accountingbankaccounttype");
|
|
33
33
|
var datatype_1 = require("./datatype");
|
|
34
|
+
var metadata_1 = require("./metadata");
|
|
34
35
|
var pushoperationchange_1 = require("./pushoperationchange");
|
|
35
36
|
var pushoperationstatus_1 = require("./pushoperationstatus");
|
|
37
|
+
var supplementaldata_1 = require("./supplementaldata");
|
|
36
38
|
var validation_1 = require("./validation");
|
|
37
39
|
var class_transformer_1 = require("class-transformer");
|
|
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/lending-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
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
61
|
+
*/
|
|
62
|
+
var AccountingCreateBankAccountResponseAccountingBankAccount = /** @class */ (function (_super) {
|
|
63
|
+
__extends(AccountingCreateBankAccountResponseAccountingBankAccount, _super);
|
|
64
|
+
function AccountingCreateBankAccountResponseAccountingBankAccount() {
|
|
65
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
66
|
+
}
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
69
|
+
(0, class_transformer_1.Expose)({ name: "accountName" }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "accountName", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
74
|
+
(0, class_transformer_1.Expose)({ name: "accountNumber" }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "accountNumber", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
79
|
+
(0, class_transformer_1.Expose)({ name: "accountType" }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "accountType", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
84
|
+
(0, class_transformer_1.Expose)({ name: "availableBalance" }),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "availableBalance", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
89
|
+
(0, class_transformer_1.Expose)({ name: "balance" }),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "balance", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
94
|
+
(0, class_transformer_1.Expose)({ name: "currency" }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "currency", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
99
|
+
(0, class_transformer_1.Expose)({ name: "iBan" }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "iBan", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
104
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "id", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
109
|
+
(0, class_transformer_1.Expose)({ name: "institution" }),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "institution", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
114
|
+
(0, class_transformer_1.Expose)({ name: "metadata" }),
|
|
115
|
+
(0, class_transformer_1.Type)(function () { return metadata_1.Metadata; }),
|
|
116
|
+
__metadata("design:type", metadata_1.Metadata)
|
|
117
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "metadata", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
120
|
+
(0, class_transformer_1.Expose)({ name: "modifiedDate" }),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "modifiedDate", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
125
|
+
(0, class_transformer_1.Expose)({ name: "nominalCode" }),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "nominalCode", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
130
|
+
(0, class_transformer_1.Expose)({ name: "overdraftLimit" }),
|
|
131
|
+
__metadata("design:type", Number)
|
|
132
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "overdraftLimit", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
135
|
+
(0, class_transformer_1.Expose)({ name: "sortCode" }),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "sortCode", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
140
|
+
(0, class_transformer_1.Expose)({ name: "sourceModifiedDate" }),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "sourceModifiedDate", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
145
|
+
(0, class_transformer_1.Expose)({ name: "supplementalData" }),
|
|
146
|
+
(0, class_transformer_1.Type)(function () { return supplementaldata_1.SupplementalData; }),
|
|
147
|
+
__metadata("design:type", supplementaldata_1.SupplementalData)
|
|
148
|
+
], AccountingCreateBankAccountResponseAccountingBankAccount.prototype, "supplementalData", void 0);
|
|
149
|
+
return AccountingCreateBankAccountResponseAccountingBankAccount;
|
|
150
|
+
}(utils_1.SpeakeasyBase));
|
|
151
|
+
exports.AccountingCreateBankAccountResponseAccountingBankAccount = AccountingCreateBankAccountResponseAccountingBankAccount;
|
|
38
152
|
var AccountingCreateBankAccountResponse = /** @class */ (function (_super) {
|
|
39
153
|
__extends(AccountingCreateBankAccountResponse, _super);
|
|
40
154
|
function AccountingCreateBankAccountResponse() {
|
|
@@ -59,8 +173,8 @@ var AccountingCreateBankAccountResponse = /** @class */ (function (_super) {
|
|
|
59
173
|
__decorate([
|
|
60
174
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
61
175
|
(0, class_transformer_1.Expose)({ name: "data" }),
|
|
62
|
-
(0, class_transformer_1.Type)(function () { return
|
|
63
|
-
__metadata("design:type",
|
|
176
|
+
(0, class_transformer_1.Type)(function () { return AccountingCreateBankAccountResponseAccountingBankAccount; }),
|
|
177
|
+
__metadata("design:type", AccountingCreateBankAccountResponseAccountingBankAccount)
|
|
64
178
|
], AccountingCreateBankAccountResponse.prototype, "data", void 0);
|
|
65
179
|
__decorate([
|
|
66
180
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
import {
|
|
2
|
+
import { CreateBankAccountTransaction } from "./createbankaccounttransaction";
|
|
3
3
|
import { DataType } from "./datatype";
|
|
4
4
|
import { PushOperationChange } from "./pushoperationchange";
|
|
5
5
|
import { PushOperationStatus } from "./pushoperationstatus";
|
|
6
6
|
import { Validation } from "./validation";
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AccountingCreateBankAccountTransactions extends SpeakeasyBase {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for a bank account.
|
|
13
|
+
*/
|
|
14
|
+
accountId?: string;
|
|
15
|
+
transactions?: CreateBankAccountTransaction[];
|
|
16
|
+
}
|
|
7
17
|
export declare class AccountingCreateBankTransactionsResponse extends SpeakeasyBase {
|
|
8
18
|
/**
|
|
9
19
|
* Contains a single entry that communicates which record has changed and the manner in which it changed.
|
|
@@ -37,7 +47,7 @@ export declare class AccountingCreateBankTransactionsResponse extends SpeakeasyB
|
|
|
37
47
|
* > 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
48
|
*/
|
|
39
49
|
completedOnUtc?: string;
|
|
40
|
-
data?:
|
|
50
|
+
data?: AccountingCreateBankAccountTransactions;
|
|
41
51
|
/**
|
|
42
52
|
* Unique identifier for a company's data connection.
|
|
43
53
|
*/
|
|
@@ -27,14 +27,36 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
27
27
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.AccountingCreateBankTransactionsResponse = void 0;
|
|
30
|
+
exports.AccountingCreateBankTransactionsResponse = exports.AccountingCreateBankAccountTransactions = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
-
var
|
|
32
|
+
var createbankaccounttransaction_1 = require("./createbankaccounttransaction");
|
|
33
33
|
var datatype_1 = require("./datatype");
|
|
34
34
|
var pushoperationchange_1 = require("./pushoperationchange");
|
|
35
35
|
var pushoperationstatus_1 = require("./pushoperationstatus");
|
|
36
36
|
var validation_1 = require("./validation");
|
|
37
37
|
var class_transformer_1 = require("class-transformer");
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
40
|
+
*/
|
|
41
|
+
var AccountingCreateBankAccountTransactions = /** @class */ (function (_super) {
|
|
42
|
+
__extends(AccountingCreateBankAccountTransactions, _super);
|
|
43
|
+
function AccountingCreateBankAccountTransactions() {
|
|
44
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
45
|
+
}
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
48
|
+
(0, class_transformer_1.Expose)({ name: "accountId" }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], AccountingCreateBankAccountTransactions.prototype, "accountId", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: createbankaccounttransaction_1.CreateBankAccountTransaction }),
|
|
53
|
+
(0, class_transformer_1.Expose)({ name: "transactions" }),
|
|
54
|
+
(0, class_transformer_1.Type)(function () { return createbankaccounttransaction_1.CreateBankAccountTransaction; }),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], AccountingCreateBankAccountTransactions.prototype, "transactions", void 0);
|
|
57
|
+
return AccountingCreateBankAccountTransactions;
|
|
58
|
+
}(utils_1.SpeakeasyBase));
|
|
59
|
+
exports.AccountingCreateBankAccountTransactions = AccountingCreateBankAccountTransactions;
|
|
38
60
|
var AccountingCreateBankTransactionsResponse = /** @class */ (function (_super) {
|
|
39
61
|
__extends(AccountingCreateBankTransactionsResponse, _super);
|
|
40
62
|
function AccountingCreateBankTransactionsResponse() {
|
|
@@ -59,8 +81,8 @@ var AccountingCreateBankTransactionsResponse = /** @class */ (function (_super)
|
|
|
59
81
|
__decorate([
|
|
60
82
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
61
83
|
(0, class_transformer_1.Expose)({ name: "data" }),
|
|
62
|
-
(0, class_transformer_1.Type)(function () { return
|
|
63
|
-
__metadata("design:type",
|
|
84
|
+
(0, class_transformer_1.Type)(function () { return AccountingCreateBankAccountTransactions; }),
|
|
85
|
+
__metadata("design:type", AccountingCreateBankAccountTransactions)
|
|
64
86
|
], AccountingCreateBankTransactionsResponse.prototype, "data", void 0);
|
|
65
87
|
__decorate([
|
|
66
88
|
(0, utils_1.SpeakeasyMetadata)(),
|