@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,17 +27,23 @@ 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.AccountingInvoice = exports.SalesOrderReference = void 0;
|
|
30
|
+
exports.AccountingInvoice = exports.SalesOrderReference = exports.AccountingInvoiceDataType = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var accountingcustomerref_1 = require("./accountingcustomerref");
|
|
33
33
|
var accountingpaymentallocation_1 = require("./accountingpaymentallocation");
|
|
34
|
-
var datatype_1 = require("./datatype");
|
|
35
34
|
var invoicelineitem_1 = require("./invoicelineitem");
|
|
36
35
|
var invoicestatus_1 = require("./invoicestatus");
|
|
37
|
-
var items_1 = require("./items");
|
|
38
36
|
var metadata_1 = require("./metadata");
|
|
39
37
|
var supplementaldata_1 = require("./supplementaldata");
|
|
38
|
+
var withholdingtaxitems_1 = require("./withholdingtaxitems");
|
|
40
39
|
var class_transformer_1 = require("class-transformer");
|
|
40
|
+
/**
|
|
41
|
+
* The underlying data type associated to the reference `id`.
|
|
42
|
+
*/
|
|
43
|
+
var AccountingInvoiceDataType;
|
|
44
|
+
(function (AccountingInvoiceDataType) {
|
|
45
|
+
AccountingInvoiceDataType["SalesOrders"] = "salesOrders";
|
|
46
|
+
})(AccountingInvoiceDataType = exports.AccountingInvoiceDataType || (exports.AccountingInvoiceDataType = {}));
|
|
41
47
|
var SalesOrderReference = /** @class */ (function (_super) {
|
|
42
48
|
__extends(SalesOrderReference, _super);
|
|
43
49
|
function SalesOrderReference() {
|
|
@@ -226,9 +232,9 @@ var AccountingInvoice = /** @class */ (function (_super) {
|
|
|
226
232
|
__metadata("design:type", Number)
|
|
227
233
|
], AccountingInvoice.prototype, "totalTaxAmount", void 0);
|
|
228
234
|
__decorate([
|
|
229
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
235
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: withholdingtaxitems_1.WithholdingTaxItems }),
|
|
230
236
|
(0, class_transformer_1.Expose)({ name: "withholdingTax" }),
|
|
231
|
-
(0, class_transformer_1.Type)(function () { return
|
|
237
|
+
(0, class_transformer_1.Type)(function () { return withholdingtaxitems_1.WithholdingTaxItems; }),
|
|
232
238
|
__metadata("design:type", Array)
|
|
233
239
|
], AccountingInvoice.prototype, "withholdingTax", void 0);
|
|
234
240
|
return AccountingInvoice;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { JournalEntryRecordRef } from "./journalentryrecordref";
|
|
2
3
|
import { JournalLine } from "./journalline";
|
|
3
4
|
import { JournalRef } from "./journalref";
|
|
4
5
|
import { Metadata } from "./metadata";
|
|
5
|
-
import { RecordRef } from "./recordref";
|
|
6
6
|
import { SupplementalData } from "./supplementaldata";
|
|
7
7
|
/**
|
|
8
8
|
* > **Language tip:** For the top-level record of a company's financial transactions, refer to the [Journals](https://docs.codat.io/lending-api#/schemas/Journal) data type
|
|
@@ -98,13 +98,9 @@ export declare class AccountingJournalEntry extends SpeakeasyBase {
|
|
|
98
98
|
*/
|
|
99
99
|
postedOn?: string;
|
|
100
100
|
/**
|
|
101
|
-
* Links
|
|
102
|
-
*
|
|
103
|
-
* @remarks
|
|
104
|
-
*
|
|
105
|
-
* For example, if a journal entry is generated based on an invoice, this property allows you to connect the journal entry to the underlying invoice in our data model.
|
|
101
|
+
* Links a journal entry to the underlying record that created it.
|
|
106
102
|
*/
|
|
107
|
-
recordRef?:
|
|
103
|
+
recordRef?: JournalEntryRecordRef;
|
|
108
104
|
sourceModifiedDate?: string;
|
|
109
105
|
/**
|
|
110
106
|
* Supplemental data is additional data you can include in our standard data types.
|
|
@@ -29,10 +29,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.AccountingJournalEntry = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var journalentryrecordref_1 = require("./journalentryrecordref");
|
|
32
33
|
var journalline_1 = require("./journalline");
|
|
33
34
|
var journalref_1 = require("./journalref");
|
|
34
35
|
var metadata_1 = require("./metadata");
|
|
35
|
-
var recordref_1 = require("./recordref");
|
|
36
36
|
var supplementaldata_1 = require("./supplementaldata");
|
|
37
37
|
var class_transformer_1 = require("class-transformer");
|
|
38
38
|
/**
|
|
@@ -112,8 +112,8 @@ var AccountingJournalEntry = /** @class */ (function (_super) {
|
|
|
112
112
|
__decorate([
|
|
113
113
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
114
114
|
(0, class_transformer_1.Expose)({ name: "recordRef" }),
|
|
115
|
-
(0, class_transformer_1.Type)(function () { return
|
|
116
|
-
__metadata("design:type",
|
|
115
|
+
(0, class_transformer_1.Type)(function () { return journalentryrecordref_1.JournalEntryRecordRef; }),
|
|
116
|
+
__metadata("design:type", journalentryrecordref_1.JournalEntryRecordRef)
|
|
117
117
|
], AccountingJournalEntry.prototype, "recordRef", void 0);
|
|
118
118
|
__decorate([
|
|
119
119
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
import {
|
|
2
|
+
import { AccountTransactionLineRecordRef } from "./accounttransactionlinerecordref";
|
|
3
3
|
export declare class AccountTransactionLine extends SpeakeasyBase {
|
|
4
4
|
/**
|
|
5
5
|
* Amount in the bill payment currency.
|
|
@@ -10,11 +10,7 @@ export declare class AccountTransactionLine extends SpeakeasyBase {
|
|
|
10
10
|
*/
|
|
11
11
|
description?: string;
|
|
12
12
|
/**
|
|
13
|
-
* Links
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
*
|
|
17
|
-
* For example, if a journal entry is generated based on an invoice, this property allows you to connect the journal entry to the underlying invoice in our data model.
|
|
13
|
+
* Links an account transaction line to the underlying record that created it.
|
|
18
14
|
*/
|
|
19
|
-
recordRef?:
|
|
15
|
+
recordRef?: AccountTransactionLineRecordRef;
|
|
20
16
|
}
|
|
@@ -29,7 +29,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.AccountTransactionLine = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
-
var
|
|
32
|
+
var accounttransactionlinerecordref_1 = require("./accounttransactionlinerecordref");
|
|
33
33
|
var class_transformer_1 = require("class-transformer");
|
|
34
34
|
var AccountTransactionLine = /** @class */ (function (_super) {
|
|
35
35
|
__extends(AccountTransactionLine, _super);
|
|
@@ -49,8 +49,8 @@ var AccountTransactionLine = /** @class */ (function (_super) {
|
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
51
51
|
(0, class_transformer_1.Expose)({ name: "recordRef" }),
|
|
52
|
-
(0, class_transformer_1.Type)(function () { return
|
|
53
|
-
__metadata("design:type",
|
|
52
|
+
(0, class_transformer_1.Type)(function () { return accounttransactionlinerecordref_1.AccountTransactionLineRecordRef; }),
|
|
53
|
+
__metadata("design:type", accounttransactionlinerecordref_1.AccountTransactionLineRecordRef)
|
|
54
54
|
], AccountTransactionLine.prototype, "recordRef", void 0);
|
|
55
55
|
return AccountTransactionLine;
|
|
56
56
|
}(utils_1.SpeakeasyBase));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
/**
|
|
3
|
+
* Name of underlying data type.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AccountTransactionLineRecordRefDataType {
|
|
6
|
+
BankTransactions = "bankTransactions",
|
|
7
|
+
BillCreditNotes = "billCreditNotes",
|
|
8
|
+
BillPayments = "billPayments",
|
|
9
|
+
Bills = "bills",
|
|
10
|
+
CreditNotes = "creditNotes",
|
|
11
|
+
DirectCosts = "directCosts",
|
|
12
|
+
DirectIncomes = "directIncomes",
|
|
13
|
+
Invoices = "invoices",
|
|
14
|
+
JournalEntries = "journalEntries",
|
|
15
|
+
Payments = "payments",
|
|
16
|
+
Transfers = "transfers"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Links an account transaction line to the underlying record that created it.
|
|
20
|
+
*/
|
|
21
|
+
export declare class AccountTransactionLineRecordRef extends SpeakeasyBase {
|
|
22
|
+
/**
|
|
23
|
+
* Name of underlying data type.
|
|
24
|
+
*/
|
|
25
|
+
dataType?: AccountTransactionLineRecordRefDataType;
|
|
26
|
+
/**
|
|
27
|
+
* 'id' of the underlying record or data type.
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.AccountTransactionLineRecordRef = exports.AccountTransactionLineRecordRefDataType = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
/**
|
|
34
|
+
* Name of underlying data type.
|
|
35
|
+
*/
|
|
36
|
+
var AccountTransactionLineRecordRefDataType;
|
|
37
|
+
(function (AccountTransactionLineRecordRefDataType) {
|
|
38
|
+
AccountTransactionLineRecordRefDataType["BankTransactions"] = "bankTransactions";
|
|
39
|
+
AccountTransactionLineRecordRefDataType["BillCreditNotes"] = "billCreditNotes";
|
|
40
|
+
AccountTransactionLineRecordRefDataType["BillPayments"] = "billPayments";
|
|
41
|
+
AccountTransactionLineRecordRefDataType["Bills"] = "bills";
|
|
42
|
+
AccountTransactionLineRecordRefDataType["CreditNotes"] = "creditNotes";
|
|
43
|
+
AccountTransactionLineRecordRefDataType["DirectCosts"] = "directCosts";
|
|
44
|
+
AccountTransactionLineRecordRefDataType["DirectIncomes"] = "directIncomes";
|
|
45
|
+
AccountTransactionLineRecordRefDataType["Invoices"] = "invoices";
|
|
46
|
+
AccountTransactionLineRecordRefDataType["JournalEntries"] = "journalEntries";
|
|
47
|
+
AccountTransactionLineRecordRefDataType["Payments"] = "payments";
|
|
48
|
+
AccountTransactionLineRecordRefDataType["Transfers"] = "transfers";
|
|
49
|
+
})(AccountTransactionLineRecordRefDataType = exports.AccountTransactionLineRecordRefDataType || (exports.AccountTransactionLineRecordRefDataType = {}));
|
|
50
|
+
/**
|
|
51
|
+
* Links an account transaction line to the underlying record that created it.
|
|
52
|
+
*/
|
|
53
|
+
var AccountTransactionLineRecordRef = /** @class */ (function (_super) {
|
|
54
|
+
__extends(AccountTransactionLineRecordRef, _super);
|
|
55
|
+
function AccountTransactionLineRecordRef() {
|
|
56
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
+
}
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
60
|
+
(0, class_transformer_1.Expose)({ name: "dataType" }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], AccountTransactionLineRecordRef.prototype, "dataType", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], AccountTransactionLineRecordRef.prototype, "id", void 0);
|
|
68
|
+
return AccountTransactionLineRecordRef;
|
|
69
|
+
}(utils_1.SpeakeasyBase));
|
|
70
|
+
exports.AccountTransactionLineRecordRef = AccountTransactionLineRecordRef;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
2
|
import { TransactionCategoryStatus } from "./transactioncategorystatus";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* The Banking Transaction Categories data type provides a list of hierarchical categories associated with a transaction for greater contextual meaning to transaction activity.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
*
|
|
8
|
+
* Responses are paged, so you should provide `page` and `pageSize` query parameters in your request.
|
|
5
9
|
*/
|
|
6
10
|
export declare class BankingTransactionCategory extends SpeakeasyBase {
|
|
7
11
|
/**
|
|
@@ -32,7 +32,11 @@ var utils_1 = require("../../../internal/utils");
|
|
|
32
32
|
var transactioncategorystatus_1 = require("./transactioncategorystatus");
|
|
33
33
|
var class_transformer_1 = require("class-transformer");
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* The Banking Transaction Categories data type provides a list of hierarchical categories associated with a transaction for greater contextual meaning to transaction activity.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
*
|
|
39
|
+
* Responses are paged, so you should provide `page` and `pageSize` query parameters in your request.
|
|
36
40
|
*/
|
|
37
41
|
var BankingTransactionCategory = /** @class */ (function (_super) {
|
|
38
42
|
__extends(BankingTransactionCategory, _super);
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
2
|
import { Connection } from "./connection";
|
|
3
|
+
export declare class GroupReference extends SpeakeasyBase {
|
|
4
|
+
/**
|
|
5
|
+
* Unique identifier for the group.
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
}
|
|
3
9
|
/**
|
|
4
10
|
* In Codat, a company represents a business sharing access to their data. Each company can have multiple [connections](https://docs.codat.io/lending-api#/schemas/Connection) to different data sources such as one connection to [Xero](https://docs.codat.io/integrations/accounting/xero/accounting-xero) for accounting data, two connections to [Plaid](https://docs.codat.io/integrations/banking/plaid/banking-plaid) for two bank accounts and a connection to [Zettle](https://docs.codat.io/integrations/commerce/zettle/commerce-zettle) for POS data.
|
|
5
11
|
*
|
|
@@ -43,6 +49,10 @@ export declare class Company extends SpeakeasyBase {
|
|
|
43
49
|
* Additional information about the company. This can be used to store foreign IDs, references, etc.
|
|
44
50
|
*/
|
|
45
51
|
description?: string;
|
|
52
|
+
/**
|
|
53
|
+
* An array of groups the company has been assigned to.
|
|
54
|
+
*/
|
|
55
|
+
groups?: GroupReference[];
|
|
46
56
|
/**
|
|
47
57
|
* Unique identifier for your SMB in Codat.
|
|
48
58
|
*/
|
|
@@ -27,10 +27,23 @@ 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.Company = void 0;
|
|
30
|
+
exports.Company = exports.GroupReference = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var connection_1 = require("./connection");
|
|
33
33
|
var class_transformer_1 = require("class-transformer");
|
|
34
|
+
var GroupReference = /** @class */ (function (_super) {
|
|
35
|
+
__extends(GroupReference, _super);
|
|
36
|
+
function GroupReference() {
|
|
37
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
41
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], GroupReference.prototype, "id", void 0);
|
|
44
|
+
return GroupReference;
|
|
45
|
+
}(utils_1.SpeakeasyBase));
|
|
46
|
+
exports.GroupReference = GroupReference;
|
|
34
47
|
/**
|
|
35
48
|
* In Codat, a company represents a business sharing access to their data. Each company can have multiple [connections](https://docs.codat.io/lending-api#/schemas/Connection) to different data sources such as one connection to [Xero](https://docs.codat.io/integrations/accounting/xero/accounting-xero) for accounting data, two connections to [Plaid](https://docs.codat.io/integrations/banking/plaid/banking-plaid) for two bank accounts and a connection to [Zettle](https://docs.codat.io/integrations/commerce/zettle/commerce-zettle) for POS data.
|
|
36
49
|
*
|
|
@@ -66,6 +79,12 @@ var Company = /** @class */ (function (_super) {
|
|
|
66
79
|
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
67
80
|
__metadata("design:type", String)
|
|
68
81
|
], Company.prototype, "description", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: GroupReference }),
|
|
84
|
+
(0, class_transformer_1.Expose)({ name: "groups" }),
|
|
85
|
+
(0, class_transformer_1.Type)(function () { return GroupReference; }),
|
|
86
|
+
__metadata("design:type", Array)
|
|
87
|
+
], Company.prototype, "groups", void 0);
|
|
69
88
|
__decorate([
|
|
70
89
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
71
90
|
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { Items } from "./items";
|
|
2
3
|
export declare class CompanyRequestBody extends SpeakeasyBase {
|
|
3
4
|
/**
|
|
4
5
|
* Additional information about the company. This can be used to store foreign IDs, references, etc.
|
|
5
6
|
*/
|
|
6
7
|
description?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Reference to the groups that the company is assigned to.
|
|
10
|
+
*/
|
|
11
|
+
groups?: Items[];
|
|
7
12
|
/**
|
|
8
13
|
* Name of company being connected.
|
|
9
14
|
*/
|
|
@@ -29,6 +29,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.CompanyRequestBody = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var items_1 = require("./items");
|
|
32
33
|
var class_transformer_1 = require("class-transformer");
|
|
33
34
|
var CompanyRequestBody = /** @class */ (function (_super) {
|
|
34
35
|
__extends(CompanyRequestBody, _super);
|
|
@@ -40,6 +41,12 @@ var CompanyRequestBody = /** @class */ (function (_super) {
|
|
|
40
41
|
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
41
42
|
__metadata("design:type", String)
|
|
42
43
|
], CompanyRequestBody.prototype, "description", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: items_1.Items }),
|
|
46
|
+
(0, class_transformer_1.Expose)({ name: "groups" }),
|
|
47
|
+
(0, class_transformer_1.Type)(function () { return items_1.Items; }),
|
|
48
|
+
__metadata("design:type", Array)
|
|
49
|
+
], CompanyRequestBody.prototype, "groups", void 0);
|
|
43
50
|
__decorate([
|
|
44
51
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
52
|
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
@@ -7,7 +7,9 @@ import { DataConnectionStatus } from "./dataconnectionstatus";
|
|
|
7
7
|
export declare enum SourceType {
|
|
8
8
|
Accounting = "Accounting",
|
|
9
9
|
Banking = "Banking",
|
|
10
|
+
BankFeed = "BankFeed",
|
|
10
11
|
Commerce = "Commerce",
|
|
12
|
+
Expense = "Expense",
|
|
11
13
|
Other = "Other",
|
|
12
14
|
Unknown = "Unknown"
|
|
13
15
|
}
|
|
@@ -39,7 +39,9 @@ var SourceType;
|
|
|
39
39
|
(function (SourceType) {
|
|
40
40
|
SourceType["Accounting"] = "Accounting";
|
|
41
41
|
SourceType["Banking"] = "Banking";
|
|
42
|
+
SourceType["BankFeed"] = "BankFeed";
|
|
42
43
|
SourceType["Commerce"] = "Commerce";
|
|
44
|
+
SourceType["Expense"] = "Expense";
|
|
43
45
|
SourceType["Other"] = "Other";
|
|
44
46
|
SourceType["Unknown"] = "Unknown";
|
|
45
47
|
})(SourceType = exports.SourceType || (exports.SourceType = {}));
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Allowed name of the 'dataType'.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum ContactRefDataType {
|
|
6
|
+
Customers = "customers",
|
|
7
|
+
Suppliers = "suppliers"
|
|
8
|
+
}
|
|
3
9
|
/**
|
|
4
10
|
* A customer or supplier associated with the direct cost.
|
|
5
11
|
*/
|
|
6
12
|
export declare class ContactRef extends SpeakeasyBase {
|
|
7
13
|
/**
|
|
8
|
-
*
|
|
14
|
+
* Allowed name of the 'dataType'.
|
|
9
15
|
*/
|
|
10
|
-
dataType?:
|
|
16
|
+
dataType?: ContactRefDataType;
|
|
11
17
|
/**
|
|
12
18
|
* Unique identifier for a customer or supplier.
|
|
13
19
|
*/
|
|
@@ -27,10 +27,17 @@ 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.ContactRef = void 0;
|
|
30
|
+
exports.ContactRef = exports.ContactRefDataType = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
-
var datatype_1 = require("./datatype");
|
|
33
32
|
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
/**
|
|
34
|
+
* Allowed name of the 'dataType'.
|
|
35
|
+
*/
|
|
36
|
+
var ContactRefDataType;
|
|
37
|
+
(function (ContactRefDataType) {
|
|
38
|
+
ContactRefDataType["Customers"] = "customers";
|
|
39
|
+
ContactRefDataType["Suppliers"] = "suppliers";
|
|
40
|
+
})(ContactRefDataType = exports.ContactRefDataType || (exports.ContactRefDataType = {}));
|
|
34
41
|
/**
|
|
35
42
|
* A customer or supplier associated with the direct cost.
|
|
36
43
|
*/
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
2
|
import { AccountingPaymentAllocation } from "./accountingpaymentallocation";
|
|
3
|
-
import { DataType } from "./datatype";
|
|
4
3
|
import { DirectCostLineItem } from "./directcostlineitem";
|
|
5
4
|
import { SupplementalData } from "./supplementaldata";
|
|
5
|
+
/**
|
|
6
|
+
* Allowed name of the 'dataType'.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum DirectCostPrototypeDataType {
|
|
9
|
+
Customers = "customers",
|
|
10
|
+
Suppliers = "suppliers"
|
|
11
|
+
}
|
|
6
12
|
/**
|
|
7
13
|
* A customer or supplier associated with the direct cost.
|
|
8
14
|
*/
|
|
9
|
-
export declare class
|
|
15
|
+
export declare class ContactReference extends SpeakeasyBase {
|
|
10
16
|
/**
|
|
11
|
-
*
|
|
17
|
+
* Allowed name of the 'dataType'.
|
|
12
18
|
*/
|
|
13
|
-
dataType?:
|
|
19
|
+
dataType?: DirectCostPrototypeDataType;
|
|
14
20
|
/**
|
|
15
21
|
* Unique identifier for a customer or supplier.
|
|
16
22
|
*/
|
|
@@ -20,7 +26,7 @@ export declare class DirectCostPrototype extends SpeakeasyBase {
|
|
|
20
26
|
/**
|
|
21
27
|
* A customer or supplier associated with the direct cost.
|
|
22
28
|
*/
|
|
23
|
-
contactRef?:
|
|
29
|
+
contactRef?: ContactReference;
|
|
24
30
|
/**
|
|
25
31
|
* The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
|
|
26
32
|
*
|
|
@@ -27,34 +27,41 @@ 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.DirectCostPrototype = exports.
|
|
30
|
+
exports.DirectCostPrototype = exports.ContactReference = exports.DirectCostPrototypeDataType = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var accountingpaymentallocation_1 = require("./accountingpaymentallocation");
|
|
33
|
-
var datatype_1 = require("./datatype");
|
|
34
33
|
var directcostlineitem_1 = require("./directcostlineitem");
|
|
35
34
|
var supplementaldata_1 = require("./supplementaldata");
|
|
36
35
|
var class_transformer_1 = require("class-transformer");
|
|
36
|
+
/**
|
|
37
|
+
* Allowed name of the 'dataType'.
|
|
38
|
+
*/
|
|
39
|
+
var DirectCostPrototypeDataType;
|
|
40
|
+
(function (DirectCostPrototypeDataType) {
|
|
41
|
+
DirectCostPrototypeDataType["Customers"] = "customers";
|
|
42
|
+
DirectCostPrototypeDataType["Suppliers"] = "suppliers";
|
|
43
|
+
})(DirectCostPrototypeDataType = exports.DirectCostPrototypeDataType || (exports.DirectCostPrototypeDataType = {}));
|
|
37
44
|
/**
|
|
38
45
|
* A customer or supplier associated with the direct cost.
|
|
39
46
|
*/
|
|
40
|
-
var
|
|
41
|
-
__extends(
|
|
42
|
-
function
|
|
47
|
+
var ContactReference = /** @class */ (function (_super) {
|
|
48
|
+
__extends(ContactReference, _super);
|
|
49
|
+
function ContactReference() {
|
|
43
50
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
44
51
|
}
|
|
45
52
|
__decorate([
|
|
46
53
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
47
54
|
(0, class_transformer_1.Expose)({ name: "dataType" }),
|
|
48
55
|
__metadata("design:type", String)
|
|
49
|
-
],
|
|
56
|
+
], ContactReference.prototype, "dataType", void 0);
|
|
50
57
|
__decorate([
|
|
51
58
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
52
59
|
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
53
60
|
__metadata("design:type", String)
|
|
54
|
-
],
|
|
55
|
-
return
|
|
61
|
+
], ContactReference.prototype, "id", void 0);
|
|
62
|
+
return ContactReference;
|
|
56
63
|
}(utils_1.SpeakeasyBase));
|
|
57
|
-
exports.
|
|
64
|
+
exports.ContactReference = ContactReference;
|
|
58
65
|
var DirectCostPrototype = /** @class */ (function (_super) {
|
|
59
66
|
__extends(DirectCostPrototype, _super);
|
|
60
67
|
function DirectCostPrototype() {
|
|
@@ -63,8 +70,8 @@ var DirectCostPrototype = /** @class */ (function (_super) {
|
|
|
63
70
|
__decorate([
|
|
64
71
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
72
|
(0, class_transformer_1.Expose)({ name: "contactRef" }),
|
|
66
|
-
(0, class_transformer_1.Type)(function () { return
|
|
67
|
-
__metadata("design:type",
|
|
73
|
+
(0, class_transformer_1.Type)(function () { return ContactReference; }),
|
|
74
|
+
__metadata("design:type", ContactReference)
|
|
68
75
|
], DirectCostPrototype.prototype, "contactRef", void 0);
|
|
69
76
|
__decorate([
|
|
70
77
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { ErrorValidation } from "./errorvalidation";
|
|
2
3
|
export declare class ErrorMessage extends SpeakeasyBase {
|
|
3
4
|
/**
|
|
4
5
|
* `True` if the error occurred transiently and can be retried.
|
|
@@ -24,4 +25,8 @@ export declare class ErrorMessage extends SpeakeasyBase {
|
|
|
24
25
|
* The HTTP status code returned by the error.
|
|
25
26
|
*/
|
|
26
27
|
statusCode?: number;
|
|
28
|
+
/**
|
|
29
|
+
* A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here.
|
|
30
|
+
*/
|
|
31
|
+
validation?: ErrorValidation;
|
|
27
32
|
}
|
|
@@ -29,6 +29,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.ErrorMessage = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var errorvalidation_1 = require("./errorvalidation");
|
|
32
33
|
var class_transformer_1 = require("class-transformer");
|
|
33
34
|
var ErrorMessage = /** @class */ (function (_super) {
|
|
34
35
|
__extends(ErrorMessage, _super);
|
|
@@ -65,6 +66,12 @@ var ErrorMessage = /** @class */ (function (_super) {
|
|
|
65
66
|
(0, class_transformer_1.Expose)({ name: "statusCode" }),
|
|
66
67
|
__metadata("design:type", Number)
|
|
67
68
|
], ErrorMessage.prototype, "statusCode", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
71
|
+
(0, class_transformer_1.Expose)({ name: "validation" }),
|
|
72
|
+
(0, class_transformer_1.Type)(function () { return errorvalidation_1.ErrorValidation; }),
|
|
73
|
+
__metadata("design:type", errorvalidation_1.ErrorValidation)
|
|
74
|
+
], ErrorMessage.prototype, "validation", void 0);
|
|
68
75
|
return ErrorMessage;
|
|
69
76
|
}(utils_1.SpeakeasyBase));
|
|
70
77
|
exports.ErrorMessage = ErrorMessage;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { ErrorValidationItem } from "./errorvalidationitem";
|
|
3
|
+
/**
|
|
4
|
+
* A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ErrorValidation extends SpeakeasyBase {
|
|
7
|
+
errors?: ErrorValidationItem[];
|
|
8
|
+
warnings?: ErrorValidationItem[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.ErrorValidation = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var errorvalidationitem_1 = require("./errorvalidationitem");
|
|
33
|
+
var class_transformer_1 = require("class-transformer");
|
|
34
|
+
/**
|
|
35
|
+
* A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here.
|
|
36
|
+
*/
|
|
37
|
+
var ErrorValidation = /** @class */ (function (_super) {
|
|
38
|
+
__extends(ErrorValidation, _super);
|
|
39
|
+
function ErrorValidation() {
|
|
40
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
41
|
+
}
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: errorvalidationitem_1.ErrorValidationItem }),
|
|
44
|
+
(0, class_transformer_1.Expose)({ name: "errors" }),
|
|
45
|
+
(0, class_transformer_1.Type)(function () { return errorvalidationitem_1.ErrorValidationItem; }),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], ErrorValidation.prototype, "errors", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: errorvalidationitem_1.ErrorValidationItem }),
|
|
50
|
+
(0, class_transformer_1.Expose)({ name: "warnings" }),
|
|
51
|
+
(0, class_transformer_1.Type)(function () { return errorvalidationitem_1.ErrorValidationItem; }),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], ErrorValidation.prototype, "warnings", void 0);
|
|
54
|
+
return ErrorValidation;
|
|
55
|
+
}(utils_1.SpeakeasyBase));
|
|
56
|
+
exports.ErrorValidation = ErrorValidation;
|