@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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
export declare class ErrorValidationItem extends SpeakeasyBase {
|
|
3
|
+
/**
|
|
4
|
+
* Unique identifier for a validation item.
|
|
5
|
+
*/
|
|
6
|
+
itemId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* A message outlining validation item's issue.
|
|
9
|
+
*/
|
|
10
|
+
message?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Name of validator.
|
|
13
|
+
*/
|
|
14
|
+
validatorName?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.ErrorValidationItem = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var ErrorValidationItem = /** @class */ (function (_super) {
|
|
34
|
+
__extends(ErrorValidationItem, _super);
|
|
35
|
+
function ErrorValidationItem() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "itemId" }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ErrorValidationItem.prototype, "itemId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "message" }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ErrorValidationItem.prototype, "message", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
|
+
(0, class_transformer_1.Expose)({ name: "validatorName" }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ErrorValidationItem.prototype, "validatorName", void 0);
|
|
53
|
+
return ErrorValidationItem;
|
|
54
|
+
}(utils_1.SpeakeasyBase));
|
|
55
|
+
exports.ErrorValidationItem = ErrorValidationItem;
|
|
@@ -67,6 +67,7 @@ export * from "./accountspayabletracking";
|
|
|
67
67
|
export * from "./accountsreceivabletracking";
|
|
68
68
|
export * from "./accountstatus";
|
|
69
69
|
export * from "./accounttransactionline";
|
|
70
|
+
export * from "./accounttransactionlinerecordref";
|
|
70
71
|
export * from "./accounttype";
|
|
71
72
|
export * from "./agedcreditor";
|
|
72
73
|
export * from "./agedcurrencyoutstanding";
|
|
@@ -172,6 +173,8 @@ export * from "./enhancedinvoicesreport";
|
|
|
172
173
|
export * from "./enhancedreportaccountcategory";
|
|
173
174
|
export * from "./enhancedreportinfo";
|
|
174
175
|
export * from "./errormessage";
|
|
176
|
+
export * from "./errorvalidation";
|
|
177
|
+
export * from "./errorvalidationitem";
|
|
175
178
|
export * from "./excelreporttypes";
|
|
176
179
|
export * from "./excelstatus";
|
|
177
180
|
export * from "./file";
|
|
@@ -182,6 +185,7 @@ export * from "./invoicelineitem";
|
|
|
182
185
|
export * from "./invoicestatus";
|
|
183
186
|
export * from "./itemref";
|
|
184
187
|
export * from "./items";
|
|
188
|
+
export * from "./journalentryrecordref";
|
|
185
189
|
export * from "./journalline";
|
|
186
190
|
export * from "./journalref";
|
|
187
191
|
export * from "./journalstatus";
|
|
@@ -257,6 +261,7 @@ export * from "./taxcomponentref";
|
|
|
257
261
|
export * from "./taxrateref";
|
|
258
262
|
export * from "./tracking";
|
|
259
263
|
export * from "./trackingcategoryref";
|
|
264
|
+
export * from "./trackingrecordref";
|
|
260
265
|
export * from "./transactioncategory";
|
|
261
266
|
export * from "./transactioncategoryref";
|
|
262
267
|
export * from "./transactioncategorystatus";
|
|
@@ -268,3 +273,4 @@ export * from "./transferaccount";
|
|
|
268
273
|
export * from "./validation";
|
|
269
274
|
export * from "./validationitem";
|
|
270
275
|
export * from "./weblink";
|
|
276
|
+
export * from "./withholdingtaxitems";
|
|
@@ -86,6 +86,7 @@ __exportStar(require("./accountspayabletracking"), exports);
|
|
|
86
86
|
__exportStar(require("./accountsreceivabletracking"), exports);
|
|
87
87
|
__exportStar(require("./accountstatus"), exports);
|
|
88
88
|
__exportStar(require("./accounttransactionline"), exports);
|
|
89
|
+
__exportStar(require("./accounttransactionlinerecordref"), exports);
|
|
89
90
|
__exportStar(require("./accounttype"), exports);
|
|
90
91
|
__exportStar(require("./agedcreditor"), exports);
|
|
91
92
|
__exportStar(require("./agedcurrencyoutstanding"), exports);
|
|
@@ -191,6 +192,8 @@ __exportStar(require("./enhancedinvoicesreport"), exports);
|
|
|
191
192
|
__exportStar(require("./enhancedreportaccountcategory"), exports);
|
|
192
193
|
__exportStar(require("./enhancedreportinfo"), exports);
|
|
193
194
|
__exportStar(require("./errormessage"), exports);
|
|
195
|
+
__exportStar(require("./errorvalidation"), exports);
|
|
196
|
+
__exportStar(require("./errorvalidationitem"), exports);
|
|
194
197
|
__exportStar(require("./excelreporttypes"), exports);
|
|
195
198
|
__exportStar(require("./excelstatus"), exports);
|
|
196
199
|
__exportStar(require("./file"), exports);
|
|
@@ -201,6 +204,7 @@ __exportStar(require("./invoicelineitem"), exports);
|
|
|
201
204
|
__exportStar(require("./invoicestatus"), exports);
|
|
202
205
|
__exportStar(require("./itemref"), exports);
|
|
203
206
|
__exportStar(require("./items"), exports);
|
|
207
|
+
__exportStar(require("./journalentryrecordref"), exports);
|
|
204
208
|
__exportStar(require("./journalline"), exports);
|
|
205
209
|
__exportStar(require("./journalref"), exports);
|
|
206
210
|
__exportStar(require("./journalstatus"), exports);
|
|
@@ -276,6 +280,7 @@ __exportStar(require("./taxcomponentref"), exports);
|
|
|
276
280
|
__exportStar(require("./taxrateref"), exports);
|
|
277
281
|
__exportStar(require("./tracking"), exports);
|
|
278
282
|
__exportStar(require("./trackingcategoryref"), exports);
|
|
283
|
+
__exportStar(require("./trackingrecordref"), exports);
|
|
279
284
|
__exportStar(require("./transactioncategory"), exports);
|
|
280
285
|
__exportStar(require("./transactioncategoryref"), exports);
|
|
281
286
|
__exportStar(require("./transactioncategorystatus"), exports);
|
|
@@ -287,3 +292,4 @@ __exportStar(require("./transferaccount"), exports);
|
|
|
287
292
|
__exportStar(require("./validation"), exports);
|
|
288
293
|
__exportStar(require("./validationitem"), exports);
|
|
289
294
|
__exportStar(require("./weblink"), exports);
|
|
295
|
+
__exportStar(require("./withholdingtaxitems"), exports);
|
|
@@ -66,8 +66,6 @@ export declare class InvoiceLineItem extends SpeakeasyBase {
|
|
|
66
66
|
tracking?: AccountsReceivableTracking;
|
|
67
67
|
/**
|
|
68
68
|
* Reference to the tracking categories to which the line item is linked.
|
|
69
|
-
*
|
|
70
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
71
69
|
*/
|
|
72
70
|
trackingCategoryRefs?: TrackingCategoryRef[];
|
|
73
71
|
/**
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
2
|
export declare class Items extends SpeakeasyBase {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Unique identifier for the group.
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Name assigned to withheld tax.
|
|
9
|
-
*/
|
|
10
|
-
name: string;
|
|
6
|
+
id?: string;
|
|
11
7
|
}
|
|
@@ -37,14 +37,9 @@ var Items = /** @class */ (function (_super) {
|
|
|
37
37
|
}
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
-
(0, class_transformer_1.Expose)({ name: "
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], Items.prototype, "amount", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
-
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
46
41
|
__metadata("design:type", String)
|
|
47
|
-
], Items.prototype, "
|
|
42
|
+
], Items.prototype, "id", void 0);
|
|
48
43
|
return Items;
|
|
49
44
|
}(utils_1.SpeakeasyBase));
|
|
50
45
|
exports.Items = Items;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
/**
|
|
3
|
+
* Name of underlying data type.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum JournalEntryRecordRefDataType {
|
|
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 a journal entry to the underlying record that created it.
|
|
20
|
+
*/
|
|
21
|
+
export declare class JournalEntryRecordRef extends SpeakeasyBase {
|
|
22
|
+
/**
|
|
23
|
+
* Name of underlying data type.
|
|
24
|
+
*/
|
|
25
|
+
dataType?: JournalEntryRecordRefDataType;
|
|
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.JournalEntryRecordRef = exports.JournalEntryRecordRefDataType = 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 JournalEntryRecordRefDataType;
|
|
37
|
+
(function (JournalEntryRecordRefDataType) {
|
|
38
|
+
JournalEntryRecordRefDataType["BankTransactions"] = "bankTransactions";
|
|
39
|
+
JournalEntryRecordRefDataType["BillCreditNotes"] = "billCreditNotes";
|
|
40
|
+
JournalEntryRecordRefDataType["BillPayments"] = "billPayments";
|
|
41
|
+
JournalEntryRecordRefDataType["Bills"] = "bills";
|
|
42
|
+
JournalEntryRecordRefDataType["CreditNotes"] = "creditNotes";
|
|
43
|
+
JournalEntryRecordRefDataType["DirectCosts"] = "directCosts";
|
|
44
|
+
JournalEntryRecordRefDataType["DirectIncomes"] = "directIncomes";
|
|
45
|
+
JournalEntryRecordRefDataType["Invoices"] = "invoices";
|
|
46
|
+
JournalEntryRecordRefDataType["JournalEntries"] = "journalEntries";
|
|
47
|
+
JournalEntryRecordRefDataType["Payments"] = "payments";
|
|
48
|
+
JournalEntryRecordRefDataType["Transfers"] = "transfers";
|
|
49
|
+
})(JournalEntryRecordRefDataType = exports.JournalEntryRecordRefDataType || (exports.JournalEntryRecordRefDataType = {}));
|
|
50
|
+
/**
|
|
51
|
+
* Links a journal entry to the underlying record that created it.
|
|
52
|
+
*/
|
|
53
|
+
var JournalEntryRecordRef = /** @class */ (function (_super) {
|
|
54
|
+
__extends(JournalEntryRecordRef, _super);
|
|
55
|
+
function JournalEntryRecordRef() {
|
|
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
|
+
], JournalEntryRecordRef.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
|
+
], JournalEntryRecordRef.prototype, "id", void 0);
|
|
68
|
+
return JournalEntryRecordRef;
|
|
69
|
+
}(utils_1.SpeakeasyBase));
|
|
70
|
+
exports.JournalEntryRecordRef = JournalEntryRecordRef;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
2
|
import { AccountRef } from "./accountref";
|
|
3
|
-
import {
|
|
3
|
+
import { TrackingRecordRef } from "./trackingrecordref";
|
|
4
4
|
/**
|
|
5
5
|
* List of record refs associated with the tracking information for the line (eg to a Tracking Category, or customer etc.)
|
|
6
6
|
*/
|
|
7
7
|
export declare class JournalLineTracking extends SpeakeasyBase {
|
|
8
|
-
recordRefs?:
|
|
8
|
+
recordRefs?: TrackingRecordRef[];
|
|
9
9
|
}
|
|
10
10
|
export declare class JournalLine extends SpeakeasyBase {
|
|
11
11
|
/**
|
|
@@ -30,7 +30,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
30
30
|
exports.JournalLine = exports.JournalLineTracking = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var accountref_1 = require("./accountref");
|
|
33
|
-
var
|
|
33
|
+
var trackingrecordref_1 = require("./trackingrecordref");
|
|
34
34
|
var class_transformer_1 = require("class-transformer");
|
|
35
35
|
/**
|
|
36
36
|
* List of record refs associated with the tracking information for the line (eg to a Tracking Category, or customer etc.)
|
|
@@ -41,9 +41,9 @@ var JournalLineTracking = /** @class */ (function (_super) {
|
|
|
41
41
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
42
42
|
}
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: trackingrecordref_1.TrackingRecordRef }),
|
|
45
45
|
(0, class_transformer_1.Expose)({ name: "recordRefs" }),
|
|
46
|
-
(0, class_transformer_1.Type)(function () { return
|
|
46
|
+
(0, class_transformer_1.Type)(function () { return trackingrecordref_1.TrackingRecordRef; }),
|
|
47
47
|
__metadata("design:type", Array)
|
|
48
48
|
], JournalLineTracking.prototype, "recordRefs", void 0);
|
|
49
49
|
return JournalLineTracking;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
2
|
import { RecordRef } from "./recordref";
|
|
3
|
+
import { TrackingRecordRef } from "./trackingrecordref";
|
|
3
4
|
export declare class Tracking extends SpeakeasyBase {
|
|
4
5
|
/**
|
|
5
6
|
* Links the current record to the underlying record or data type that created it.
|
|
@@ -9,5 +10,5 @@ export declare class Tracking extends SpeakeasyBase {
|
|
|
9
10
|
* 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.
|
|
10
11
|
*/
|
|
11
12
|
invoiceTo?: RecordRef;
|
|
12
|
-
recordRefs:
|
|
13
|
+
recordRefs: TrackingRecordRef[];
|
|
13
14
|
}
|
|
@@ -30,6 +30,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
30
30
|
exports.Tracking = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var recordref_1 = require("./recordref");
|
|
33
|
+
var trackingrecordref_1 = require("./trackingrecordref");
|
|
33
34
|
var class_transformer_1 = require("class-transformer");
|
|
34
35
|
var Tracking = /** @class */ (function (_super) {
|
|
35
36
|
__extends(Tracking, _super);
|
|
@@ -43,9 +44,9 @@ var Tracking = /** @class */ (function (_super) {
|
|
|
43
44
|
__metadata("design:type", recordref_1.RecordRef)
|
|
44
45
|
], Tracking.prototype, "invoiceTo", void 0);
|
|
45
46
|
__decorate([
|
|
46
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
47
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: trackingrecordref_1.TrackingRecordRef }),
|
|
47
48
|
(0, class_transformer_1.Expose)({ name: "recordRefs" }),
|
|
48
|
-
(0, class_transformer_1.Type)(function () { return
|
|
49
|
+
(0, class_transformer_1.Type)(function () { return trackingrecordref_1.TrackingRecordRef; }),
|
|
49
50
|
__metadata("design:type", Array)
|
|
50
51
|
], Tracking.prototype, "recordRefs", void 0);
|
|
51
52
|
return Tracking;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
/**
|
|
3
|
+
* Name of underlying data type.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum TrackingRecordRefDataType {
|
|
6
|
+
Customers = "customers",
|
|
7
|
+
Suppliers = "suppliers",
|
|
8
|
+
TrackingCategories = "trackingCategories"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Links to the customer or tracking category.
|
|
12
|
+
*/
|
|
13
|
+
export declare class TrackingRecordRef extends SpeakeasyBase {
|
|
14
|
+
/**
|
|
15
|
+
* Name of underlying data type.
|
|
16
|
+
*/
|
|
17
|
+
dataType?: TrackingRecordRefDataType;
|
|
18
|
+
/**
|
|
19
|
+
* 'id' of the underlying record or data type.
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.TrackingRecordRef = exports.TrackingRecordRefDataType = 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 TrackingRecordRefDataType;
|
|
37
|
+
(function (TrackingRecordRefDataType) {
|
|
38
|
+
TrackingRecordRefDataType["Customers"] = "customers";
|
|
39
|
+
TrackingRecordRefDataType["Suppliers"] = "suppliers";
|
|
40
|
+
TrackingRecordRefDataType["TrackingCategories"] = "trackingCategories";
|
|
41
|
+
})(TrackingRecordRefDataType = exports.TrackingRecordRefDataType || (exports.TrackingRecordRefDataType = {}));
|
|
42
|
+
/**
|
|
43
|
+
* Links to the customer or tracking category.
|
|
44
|
+
*/
|
|
45
|
+
var TrackingRecordRef = /** @class */ (function (_super) {
|
|
46
|
+
__extends(TrackingRecordRef, _super);
|
|
47
|
+
function TrackingRecordRef() {
|
|
48
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
49
|
+
}
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
52
|
+
(0, class_transformer_1.Expose)({ name: "dataType" }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], TrackingRecordRef.prototype, "dataType", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
57
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], TrackingRecordRef.prototype, "id", void 0);
|
|
60
|
+
return TrackingRecordRef;
|
|
61
|
+
}(utils_1.SpeakeasyBase));
|
|
62
|
+
exports.TrackingRecordRef = TrackingRecordRef;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.WithholdingTaxItems = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var WithholdingTaxItems = /** @class */ (function (_super) {
|
|
34
|
+
__extends(WithholdingTaxItems, _super);
|
|
35
|
+
function WithholdingTaxItems() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "amount" }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], WithholdingTaxItems.prototype, "amount", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], WithholdingTaxItems.prototype, "name", void 0);
|
|
48
|
+
return WithholdingTaxItems;
|
|
49
|
+
}(utils_1.SpeakeasyBase));
|
|
50
|
+
exports.WithholdingTaxItems = WithholdingTaxItems;
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -37,9 +37,9 @@ var SDKConfiguration = /** @class */ (function () {
|
|
|
37
37
|
function SDKConfiguration(init) {
|
|
38
38
|
this.language = "typescript";
|
|
39
39
|
this.openapiDocVersion = "3.0.0";
|
|
40
|
-
this.sdkVersion = "4.
|
|
41
|
-
this.genVersion = "2.
|
|
42
|
-
this.userAgent = "speakeasy-sdk/typescript 4.
|
|
40
|
+
this.sdkVersion = "4.3.0";
|
|
41
|
+
this.genVersion = "2.253.0";
|
|
42
|
+
this.userAgent = "speakeasy-sdk/typescript 4.3.0 2.253.0 3.0.0 @codat/lending";
|
|
43
43
|
Object.assign(this, init);
|
|
44
44
|
}
|
|
45
45
|
return SDKConfiguration;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `company`
|
|
9
|
-
| `contentType`
|
|
10
|
-
| `errorMessage`
|
|
11
|
-
| `statusCode`
|
|
12
|
-
| `rawResponse`
|
|
6
|
+
| Field | Type | Required | Description | Example |
|
|
7
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
8
|
+
| `company` | [shared.Company](../../../sdk/models/shared/company.md) | :heavy_minus_sign: | OK | {"id":"0498e921-9b53-4396-a412-4f2f5983b0a2","name":"string","platform":"string","redirect":"https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739","lastSync":"2022-01-01T12:00:00.000Z","created":"2022-01-01T12:00:00.000Z","createdByUserName":"string","dataConnections":[{"id":"ee2eb431-c0fa-4dc9-93fa-d29781c12bcd","integrationId":"bf083d72-62c7-493e-aec9-81b4dbba7e2c","integrationKey":"dfxm","sourceId":"bdd831ce-eebd-4896-89a7-20e5ee8989ee","platformName":"Basiq","linkUrl":"https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start","status":"Linked","lastSync":"2022-10-27T10:22:43.6464237Z","created":"2022-10-27T09:53:29Z","sourceType":"Banking"}],"groups":[{"id":"d7a6c4b4-dc87-45f6-b803-62f466398680"}]} |
|
|
9
|
+
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | |
|
|
10
|
+
| `errorMessage` | [shared.ErrorMessage](../../../sdk/models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | |
|
|
11
|
+
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | |
|
|
12
|
+
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
|