@codat/lending 2.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -34
- package/dist/sdk/companies.js +2 -2
- package/dist/sdk/connections.js +2 -2
- package/dist/sdk/fileupload.js +1 -1
- package/dist/sdk/loanwriteback.d.ts +19 -0
- package/dist/sdk/loanwriteback.js +27 -0
- package/dist/sdk/loanwritebackaccounts.d.ts +40 -0
- package/dist/sdk/loanwritebackaccounts.js +294 -0
- package/dist/sdk/loanwritebackbankaccounts.d.ts +39 -0
- package/dist/sdk/loanwritebackbankaccounts.js +293 -0
- package/dist/sdk/loanwritebackbanktransactions.d.ts +40 -0
- package/dist/sdk/loanwritebackbanktransactions.js +294 -0
- package/dist/sdk/loanwritebackcreateoperations.d.ts +22 -0
- package/dist/sdk/loanwritebackcreateoperations.js +250 -0
- package/dist/sdk/loanwritebackdirectcosts.d.ts +40 -0
- package/dist/sdk/loanwritebackdirectcosts.js +294 -0
- package/dist/sdk/loanwritebacksuppliers.d.ts +40 -0
- package/dist/sdk/loanwritebacksuppliers.js +294 -0
- package/dist/sdk/loanwritebacktransfers.d.ts +40 -0
- package/dist/sdk/loanwritebacktransfers.js +294 -0
- package/dist/sdk/models/operations/createaccount.d.ts +27 -0
- package/dist/sdk/models/operations/createaccount.js +115 -0
- package/dist/sdk/models/operations/createbankaccount.d.ts +27 -0
- package/dist/sdk/models/operations/createbankaccount.js +115 -0
- package/dist/sdk/models/operations/createbanktransactions.d.ts +31 -0
- package/dist/sdk/models/operations/createbanktransactions.js +119 -0
- package/dist/sdk/models/operations/createdirectcost.d.ts +27 -0
- package/dist/sdk/models/operations/createdirectcost.js +115 -0
- package/dist/sdk/models/operations/createsupplier.d.ts +27 -0
- package/dist/sdk/models/operations/createsupplier.js +115 -0
- package/dist/sdk/models/operations/createtransfer.d.ts +27 -0
- package/dist/sdk/models/operations/createtransfer.js +115 -0
- package/dist/sdk/models/operations/getcreatebanktransactionsmodel.d.ts +24 -0
- package/dist/sdk/models/operations/getcreatebanktransactionsmodel.js +103 -0
- package/dist/sdk/models/operations/getcreatechartofaccountsmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreatechartofaccountsmodel.js +99 -0
- package/dist/sdk/models/operations/getcreatedirectcostsmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreatedirectcostsmodel.js +99 -0
- package/dist/sdk/models/operations/getcreateoperation.d.ts +23 -0
- package/dist/sdk/models/operations/getcreateoperation.js +99 -0
- package/dist/sdk/models/operations/getcreatetransfersmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreatetransfersmodel.js +99 -0
- package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.js +99 -0
- package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.js +99 -0
- package/dist/sdk/models/operations/index.d.ts +14 -0
- package/dist/sdk/models/operations/index.js +14 -0
- package/dist/sdk/models/operations/listcreateoperations.d.ts +35 -0
- package/dist/sdk/models/operations/listcreateoperations.js +111 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.d.ts +40 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.js +90 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.d.ts +7 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.js +45 -0
- package/dist/sdk/models/shared/{addressesitems.d.ts → accountingaddress.d.ts} +1 -1
- package/dist/sdk/models/shared/{addressesitems.js → accountingaddress.js} +13 -13
- package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +2 -2
- package/dist/sdk/models/shared/accountingbillcreditnote.js +3 -3
- package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +6 -66
- package/dist/sdk/models/shared/accountingcompanyinfo.js +10 -100
- package/dist/sdk/models/shared/accountingcreateaccountresponse.d.ts +124 -0
- package/dist/sdk/models/shared/accountingcreateaccountresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatebankaccountresponse.d.ts +112 -0
- package/dist/sdk/models/shared/accountingcreatebankaccountresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactions.d.ts +6 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactions.js +52 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.d.ts +92 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatedirectcostresponse.d.ts +111 -0
- package/dist/sdk/models/shared/accountingcreatedirectcostresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatesupplierresponse.d.ts +101 -0
- package/dist/sdk/models/shared/accountingcreatesupplierresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatetransferresponse.d.ts +99 -0
- package/dist/sdk/models/shared/accountingcreatetransferresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreditnote.d.ts +2 -2
- package/dist/sdk/models/shared/accountingcreditnote.js +3 -3
- package/dist/sdk/models/shared/accountingcustomer.d.ts +2 -2
- package/dist/sdk/models/shared/accountingcustomer.js +3 -3
- package/dist/sdk/models/shared/accountinginvoice.d.ts +2 -2
- package/dist/sdk/models/shared/accountinginvoice.js +3 -3
- package/dist/sdk/models/shared/accountingsupplier.d.ts +2 -2
- package/dist/sdk/models/shared/accountingsupplier.js +3 -3
- package/dist/sdk/models/shared/clientratelimitreachedwebhook.d.ts +32 -0
- package/dist/sdk/models/shared/clientratelimitreachedwebhook.js +80 -0
- package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.d.ts +31 -0
- package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.js +50 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhook.d.ts +32 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhook.js +80 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhookdata.d.ts +39 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhookdata.js +60 -0
- package/dist/sdk/models/shared/commercecompanyinfo.d.ts +4 -4
- package/dist/sdk/models/shared/commercecompanyinfo.js +6 -6
- package/dist/sdk/models/shared/contact.d.ts +4 -4
- package/dist/sdk/models/shared/contact.js +6 -6
- package/dist/sdk/models/shared/createbankaccounttransaction.d.ts +31 -0
- package/dist/sdk/models/shared/createbankaccounttransaction.js +65 -0
- package/dist/sdk/models/shared/index.d.ts +31 -3
- package/dist/sdk/models/shared/index.js +31 -3
- package/dist/sdk/models/shared/items.d.ts +2 -9
- package/dist/sdk/models/shared/items.js +5 -6
- package/dist/sdk/models/shared/phonenumber.d.ts +12 -0
- package/dist/sdk/models/shared/{withholdingtaxitems.js → phonenumber.js} +12 -11
- package/dist/sdk/models/shared/pushchangetype.d.ts +7 -0
- package/dist/sdk/models/shared/pushchangetype.js +14 -0
- package/dist/sdk/models/shared/pushfieldvalidation.d.ts +6 -0
- package/dist/sdk/models/shared/pushfieldvalidation.js +55 -0
- package/dist/sdk/models/shared/pushoperation.d.ts +90 -0
- package/dist/sdk/models/shared/pushoperation.js +111 -0
- package/dist/sdk/models/shared/pushoperationchange.d.ts +8 -0
- package/dist/sdk/models/shared/pushoperationchange.js +58 -0
- package/dist/sdk/models/shared/pushoperationref.d.ts +9 -0
- package/dist/sdk/models/shared/pushoperationref.js +51 -0
- package/dist/sdk/models/shared/pushoperations.d.ts +10 -0
- package/dist/sdk/models/shared/pushoperations.js +69 -0
- package/dist/sdk/models/shared/pushoperationstatus.d.ts +9 -0
- package/dist/sdk/models/shared/pushoperationstatus.js +16 -0
- package/dist/sdk/models/shared/pushoption.d.ts +14 -0
- package/dist/sdk/models/shared/pushoption.js +89 -0
- package/dist/sdk/models/shared/pushoptionchoice.d.ts +12 -0
- package/dist/sdk/models/shared/pushoptionchoice.js +66 -0
- package/dist/sdk/models/shared/pushoptionproperty.d.ts +13 -0
- package/dist/sdk/models/shared/pushoptionproperty.js +88 -0
- package/dist/sdk/models/shared/pushoptiontype.d.ts +10 -0
- package/dist/sdk/models/shared/pushoptiontype.js +17 -0
- package/dist/sdk/models/shared/pushvalidationinfo.d.ts +6 -0
- package/dist/sdk/models/shared/pushvalidationinfo.js +53 -0
- package/dist/sdk/models/shared/validation.d.ts +9 -0
- package/dist/sdk/models/shared/validation.js +56 -0
- package/dist/sdk/models/shared/validationitem.d.ts +6 -0
- package/dist/sdk/models/shared/validationitem.js +55 -0
- package/dist/sdk/models/shared/{weblinksitems.d.ts → weblink.d.ts} +3 -3
- package/dist/sdk/models/shared/{weblinksitems.js → weblink.js} +14 -14
- package/dist/sdk/models/webhooks/accountcategoriesupdated.d.ts +7 -0
- package/dist/sdk/models/webhooks/accountcategoriesupdated.js +51 -0
- package/dist/sdk/models/webhooks/clientratelimitreached.d.ts +7 -0
- package/dist/sdk/models/webhooks/clientratelimitreached.js +51 -0
- package/dist/sdk/models/webhooks/clientratelimitreset.d.ts +7 -0
- package/dist/sdk/models/webhooks/clientratelimitreset.js +51 -0
- package/dist/sdk/models/webhooks/index.d.ts +3 -0
- package/dist/sdk/models/webhooks/index.js +22 -0
- package/dist/sdk/sdk.d.ts +2 -0
- package/dist/sdk/sdk.js +4 -2
- package/docs/models/operations/createaccountrequest.md +13 -0
- package/docs/models/operations/createaccountresponse.md +12 -0
- package/docs/models/operations/createbankaccountrequest.md +13 -0
- package/docs/models/operations/createbankaccountresponse.md +12 -0
- package/docs/models/operations/createbanktransactionsrequest.md +14 -0
- package/docs/models/operations/createbanktransactionsresponse.md +12 -0
- package/docs/models/operations/createdirectcostrequest.md +13 -0
- package/docs/models/operations/createdirectcostresponse.md +12 -0
- package/docs/models/operations/createsupplierrequest.md +13 -0
- package/docs/models/operations/createsupplierresponse.md +12 -0
- package/docs/models/operations/createtransferrequest.md +13 -0
- package/docs/models/operations/createtransferresponse.md +12 -0
- package/docs/models/operations/getcreatebanktransactionsmodelrequest.md +10 -0
- package/docs/models/operations/getcreatebanktransactionsmodelresponse.md +12 -0
- package/docs/models/operations/getcreatechartofaccountsmodelrequest.md +9 -0
- package/docs/models/operations/getcreatechartofaccountsmodelresponse.md +12 -0
- package/docs/models/operations/getcreatedirectcostsmodelrequest.md +9 -0
- package/docs/models/operations/getcreatedirectcostsmodelresponse.md +12 -0
- package/docs/models/operations/getcreateoperationrequest.md +9 -0
- package/docs/models/operations/getcreateoperationresponse.md +12 -0
- package/docs/models/operations/getcreatetransfersmodelrequest.md +9 -0
- package/docs/models/operations/getcreatetransfersmodelresponse.md +12 -0
- package/docs/models/operations/getcreateupdatebankaccountsmodelrequest.md +9 -0
- package/docs/models/operations/getcreateupdatebankaccountsmodelresponse.md +12 -0
- package/docs/models/operations/getcreateupdatesuppliersmodelrequest.md +9 -0
- package/docs/models/operations/getcreateupdatesuppliersmodelresponse.md +12 -0
- package/docs/models/operations/listcreateoperationsrequest.md +12 -0
- package/docs/models/operations/listcreateoperationsresponse.md +12 -0
- package/docs/models/shared/accountcategoriesupdatedwebhook.md +18 -0
- package/docs/models/shared/accountcategoriesupdatedwebhookdata.md +8 -0
- package/docs/models/shared/{addressesitems.md → accountingaddress.md} +1 -1
- package/docs/models/shared/accountingbillcreditnote.md +1 -1
- package/docs/models/shared/accountingcompanyinfo.md +3 -3
- package/docs/models/shared/accountingcreateaccountresponse.md +21 -0
- package/docs/models/shared/accountingcreatebankaccountresponse.md +21 -0
- package/docs/models/shared/accountingcreatebanktransactions.md +9 -0
- package/docs/models/shared/accountingcreatebanktransactionsresponse.md +21 -0
- package/docs/models/shared/accountingcreatedirectcostresponse.md +21 -0
- package/docs/models/shared/accountingcreatesupplierresponse.md +21 -0
- package/docs/models/shared/accountingcreatetransferresponse.md +21 -0
- package/docs/models/shared/accountingcreditnote.md +1 -1
- package/docs/models/shared/accountingcustomer.md +1 -1
- package/docs/models/shared/accountinginvoice.md +1 -1
- package/docs/models/shared/accountingsupplier.md +1 -1
- package/docs/models/shared/clientratelimitreachedwebhook.md +16 -0
- package/docs/models/shared/clientratelimitreachedwebhookdata.md +9 -0
- package/docs/models/shared/clientratelimitresetwebhook.md +16 -0
- package/docs/models/shared/clientratelimitresetwebhookdata.md +11 -0
- package/docs/models/shared/commercecompanyinfo.md +2 -2
- package/docs/models/shared/contact.md +2 -2
- package/docs/models/shared/createbankaccounttransaction.md +12 -0
- package/docs/models/shared/items.md +4 -4
- package/docs/models/shared/{accountingcompanyinfophone.md → phonenumber.md} +1 -1
- package/docs/models/shared/pushchangetype.md +12 -0
- package/docs/models/shared/pushfieldvalidation.md +10 -0
- package/docs/models/shared/pushoperation.md +20 -0
- package/docs/models/shared/pushoperationchange.md +10 -0
- package/docs/models/shared/pushoperationref.md +9 -0
- package/docs/models/shared/pushoperations.md +12 -0
- package/docs/models/shared/pushoperationstatus.md +13 -0
- package/docs/models/shared/pushoption.md +14 -0
- package/docs/models/shared/pushoptionchoice.md +12 -0
- package/docs/models/shared/pushoptionproperty.md +14 -0
- package/docs/models/shared/pushoptiontype.md +15 -0
- package/docs/models/shared/pushvalidationinfo.md +9 -0
- package/docs/models/shared/validation.md +11 -0
- package/docs/models/shared/validationitem.md +10 -0
- package/docs/models/shared/weblink.md +11 -0
- package/docs/models/shared/{itemstype.md → weblinktype.md} +1 -1
- package/docs/models/webhooks/accountcategoriesupdatedresponse.md +10 -0
- package/docs/models/webhooks/clientratelimitreachedresponse.md +10 -0
- package/docs/models/webhooks/clientratelimitresetresponse.md +10 -0
- package/docs/sdks/accountingbankdata/README.md +1 -1
- package/docs/sdks/accountingbankdataaccounts/README.md +3 -3
- package/docs/sdks/accountspayable/README.md +1 -1
- package/docs/sdks/accountspayablebillcreditnotes/README.md +3 -3
- package/docs/sdks/accountspayablebillpayments/README.md +3 -3
- package/docs/sdks/accountspayablebills/README.md +6 -6
- package/docs/sdks/accountspayablesuppliers/README.md +6 -6
- package/docs/sdks/accountsreceivable/README.md +1 -1
- package/docs/sdks/accountsreceivablecreditnotes/README.md +3 -3
- package/docs/sdks/accountsreceivablecustomers/README.md +6 -6
- package/docs/sdks/accountsreceivabledirectincomes/README.md +6 -6
- package/docs/sdks/accountsreceivableinvoices/README.md +8 -8
- package/docs/sdks/accountsreceivablepayments/README.md +3 -3
- package/docs/sdks/accountsreceivablereports/README.md +5 -5
- package/docs/sdks/banking/README.md +1 -1
- package/docs/sdks/bankingaccountbalances/README.md +2 -2
- package/docs/sdks/bankingcategorizedstatement/README.md +2 -2
- package/docs/sdks/bankingtransactioncategories/README.md +3 -3
- package/docs/sdks/companies/README.md +1 -1
- package/docs/sdks/companyinfo/README.md +1 -1
- package/docs/sdks/connections/README.md +1 -1
- package/docs/sdks/dataintegrity/README.md +1 -1
- package/docs/sdks/excelreports/README.md +1 -1
- package/docs/sdks/fileupload/README.md +1 -1
- package/docs/sdks/financialstatements/README.md +1 -1
- package/docs/sdks/financialstatementsaccounts/README.md +3 -3
- package/docs/sdks/financialstatementsbalancesheet/README.md +3 -3
- package/docs/sdks/financialstatementscashflow/README.md +2 -2
- package/docs/sdks/financialstatementsprofitandloss/README.md +3 -3
- package/docs/sdks/liabilities/README.md +1 -1
- package/docs/sdks/loanwriteback/README.md +4 -0
- package/docs/sdks/loanwritebackaccounts/README.md +134 -0
- package/docs/sdks/loanwritebackbankaccounts/README.md +126 -0
- package/docs/sdks/loanwritebackbanktransactions/README.md +121 -0
- package/docs/sdks/loanwritebackcreateoperations/README.md +89 -0
- package/docs/sdks/loanwritebackdirectcosts/README.md +200 -0
- package/docs/sdks/loanwritebacksuppliers/README.md +142 -0
- package/docs/sdks/loanwritebacktransfers/README.md +156 -0
- package/docs/sdks/managedata/README.md +1 -1
- package/docs/sdks/managedatapulloperations/README.md +4 -4
- package/docs/sdks/managedatarefresh/README.md +4 -4
- package/docs/sdks/sales/README.md +1 -1
- package/docs/sdks/salescustomers/README.md +2 -2
- package/docs/sdks/salesdisputes/README.md +2 -2
- package/docs/sdks/saleslocations/README.md +1 -1
- package/docs/sdks/salesmetrics/README.md +9 -9
- package/docs/sdks/salesorders/README.md +2 -2
- package/docs/sdks/salespaymentmethods/README.md +5 -5
- package/docs/sdks/salespayments/README.md +2 -2
- package/docs/sdks/salesproductcategories/README.md +5 -5
- package/docs/sdks/salesproducts/README.md +2 -2
- package/docs/sdks/salesreports/README.md +5 -5
- package/docs/sdks/salestransactions/README.md +2 -2
- package/docs/sdks/transactions/README.md +1 -1
- package/docs/sdks/transactionsaccounttransactions/README.md +5 -5
- package/docs/sdks/transactionsdirectcosts/README.md +11 -11
- package/docs/sdks/transactionsjournalentries/README.md +5 -5
- package/docs/sdks/transactionsjournals/README.md +2 -2
- package/docs/sdks/transactionstransfers/README.md +2 -2
- package/package.json +1 -1
- package/dist/sdk/models/shared/withholdingtaxitems.d.ts +0 -5
- package/docs/models/shared/accountingcompanyinfoaccountingaddress.md +0 -14
- package/docs/models/shared/accountingcompanyinfoweblink.md +0 -11
- package/docs/models/shared/accountingcompanyinfoweblinktype.md +0 -12
- package/docs/models/shared/weblinksitems.md +0 -11
- package/docs/models/shared/withholdingtaxitems.md +0 -9
|
@@ -27,50 +27,50 @@ 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.
|
|
30
|
+
exports.AccountingAddress = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var accountingaddresstype_1 = require("./accountingaddresstype");
|
|
33
33
|
var class_transformer_1 = require("class-transformer");
|
|
34
|
-
var
|
|
35
|
-
__extends(
|
|
36
|
-
function
|
|
34
|
+
var AccountingAddress = /** @class */ (function (_super) {
|
|
35
|
+
__extends(AccountingAddress, _super);
|
|
36
|
+
function AccountingAddress() {
|
|
37
37
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
38
|
}
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
41
41
|
(0, class_transformer_1.Expose)({ name: "city" }),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
|
-
],
|
|
43
|
+
], AccountingAddress.prototype, "city", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
46
46
|
(0, class_transformer_1.Expose)({ name: "country" }),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
|
-
],
|
|
48
|
+
], AccountingAddress.prototype, "country", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
51
51
|
(0, class_transformer_1.Expose)({ name: "line1" }),
|
|
52
52
|
__metadata("design:type", String)
|
|
53
|
-
],
|
|
53
|
+
], AccountingAddress.prototype, "line1", void 0);
|
|
54
54
|
__decorate([
|
|
55
55
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
56
56
|
(0, class_transformer_1.Expose)({ name: "line2" }),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
|
-
],
|
|
58
|
+
], AccountingAddress.prototype, "line2", void 0);
|
|
59
59
|
__decorate([
|
|
60
60
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
61
61
|
(0, class_transformer_1.Expose)({ name: "postalCode" }),
|
|
62
62
|
__metadata("design:type", String)
|
|
63
|
-
],
|
|
63
|
+
], AccountingAddress.prototype, "postalCode", void 0);
|
|
64
64
|
__decorate([
|
|
65
65
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
66
66
|
(0, class_transformer_1.Expose)({ name: "region" }),
|
|
67
67
|
__metadata("design:type", String)
|
|
68
|
-
],
|
|
68
|
+
], AccountingAddress.prototype, "region", void 0);
|
|
69
69
|
__decorate([
|
|
70
70
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
71
71
|
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
72
72
|
__metadata("design:type", String)
|
|
73
|
-
],
|
|
74
|
-
return
|
|
73
|
+
], AccountingAddress.prototype, "type", void 0);
|
|
74
|
+
return AccountingAddress;
|
|
75
75
|
}(utils_1.SpeakeasyBase));
|
|
76
|
-
exports.
|
|
76
|
+
exports.AccountingAddress = AccountingAddress;
|
|
@@ -2,10 +2,10 @@ import { SpeakeasyBase } from "../../../internal/utils";
|
|
|
2
2
|
import { AccountingPaymentAllocation } from "./accountingpaymentallocation";
|
|
3
3
|
import { BillCreditNoteLineItem } from "./billcreditnotelineitem";
|
|
4
4
|
import { BillCreditNoteStatus } from "./billcreditnotestatus";
|
|
5
|
+
import { Items } from "./items";
|
|
5
6
|
import { Metadata } from "./metadata";
|
|
6
7
|
import { SupplementalData } from "./supplementaldata";
|
|
7
8
|
import { SupplierRef } from "./supplierref";
|
|
8
|
-
import { WithholdingTaxitems } from "./withholdingtaxitems";
|
|
9
9
|
/**
|
|
10
10
|
* > **Bill credit notes or credit notes?**
|
|
11
11
|
*
|
|
@@ -180,5 +180,5 @@ export declare class AccountingBillCreditNote extends SpeakeasyBase {
|
|
|
180
180
|
* Amount of tax included in the bill credit note.
|
|
181
181
|
*/
|
|
182
182
|
totalTaxAmount: number;
|
|
183
|
-
withholdingTax?:
|
|
183
|
+
withholdingTax?: Items[];
|
|
184
184
|
}
|
|
@@ -32,10 +32,10 @@ var utils_1 = require("../../../internal/utils");
|
|
|
32
32
|
var accountingpaymentallocation_1 = require("./accountingpaymentallocation");
|
|
33
33
|
var billcreditnotelineitem_1 = require("./billcreditnotelineitem");
|
|
34
34
|
var billcreditnotestatus_1 = require("./billcreditnotestatus");
|
|
35
|
+
var items_1 = require("./items");
|
|
35
36
|
var metadata_1 = require("./metadata");
|
|
36
37
|
var supplementaldata_1 = require("./supplementaldata");
|
|
37
38
|
var supplierref_1 = require("./supplierref");
|
|
38
|
-
var withholdingtaxitems_1 = require("./withholdingtaxitems");
|
|
39
39
|
var class_transformer_1 = require("class-transformer");
|
|
40
40
|
/**
|
|
41
41
|
* > **Bill credit notes or credit notes?**
|
|
@@ -173,9 +173,9 @@ var AccountingBillCreditNote = /** @class */ (function (_super) {
|
|
|
173
173
|
__metadata("design:type", Number)
|
|
174
174
|
], AccountingBillCreditNote.prototype, "totalTaxAmount", void 0);
|
|
175
175
|
__decorate([
|
|
176
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
176
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: items_1.Items }),
|
|
177
177
|
(0, class_transformer_1.Expose)({ name: "withholdingTax" }),
|
|
178
|
-
(0, class_transformer_1.Type)(function () { return
|
|
178
|
+
(0, class_transformer_1.Type)(function () { return items_1.Items; }),
|
|
179
179
|
__metadata("design:type", Array)
|
|
180
180
|
], AccountingBillCreditNote.prototype, "withholdingTax", void 0);
|
|
181
181
|
return AccountingBillCreditNote;
|
|
@@ -1,67 +1,7 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* City of the customer address.
|
|
7
|
-
*/
|
|
8
|
-
city?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Country of the customer address.
|
|
11
|
-
*/
|
|
12
|
-
country?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Line 1 of the customer address.
|
|
15
|
-
*/
|
|
16
|
-
line1?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Line 2 of the customer address.
|
|
19
|
-
*/
|
|
20
|
-
line2?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Postal code or zip code.
|
|
23
|
-
*/
|
|
24
|
-
postalCode?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Region of the customer address.
|
|
27
|
-
*/
|
|
28
|
-
region?: string;
|
|
29
|
-
/**
|
|
30
|
-
* The type of the address
|
|
31
|
-
*/
|
|
32
|
-
type: AccountingAddressType;
|
|
33
|
-
}
|
|
34
|
-
export declare class AccountingCompanyInfoPhone extends SpeakeasyBase {
|
|
35
|
-
/**
|
|
36
|
-
* A phone number.
|
|
37
|
-
*/
|
|
38
|
-
number: string;
|
|
39
|
-
/**
|
|
40
|
-
* The type of phone number
|
|
41
|
-
*/
|
|
42
|
-
type: PhoneNumberType;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* The type of the weblink.
|
|
46
|
-
*/
|
|
47
|
-
export declare enum AccountingCompanyInfoWeblinkType {
|
|
48
|
-
Website = "Website",
|
|
49
|
-
Social = "Social",
|
|
50
|
-
Unknown = "Unknown"
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Weblink associated with the company.
|
|
54
|
-
*/
|
|
55
|
-
export declare class AccountingCompanyInfoWeblink extends SpeakeasyBase {
|
|
56
|
-
/**
|
|
57
|
-
* The type of the weblink.
|
|
58
|
-
*/
|
|
59
|
-
type?: AccountingCompanyInfoWeblinkType;
|
|
60
|
-
/**
|
|
61
|
-
* The full URL for the weblink.
|
|
62
|
-
*/
|
|
63
|
-
url?: string;
|
|
64
|
-
}
|
|
2
|
+
import { AccountingAddress } from "./accountingaddress";
|
|
3
|
+
import { PhoneNumber } from "./phonenumber";
|
|
4
|
+
import { WebLink } from "./weblink";
|
|
65
5
|
/**
|
|
66
6
|
* > View the coverage for company info in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=cashFlowStatement" target="_blank">Data coverage explorer</a>.
|
|
67
7
|
*
|
|
@@ -81,7 +21,7 @@ export declare class AccountingCompanyInfo extends SpeakeasyBase {
|
|
|
81
21
|
/**
|
|
82
22
|
* An array of Addresses.
|
|
83
23
|
*/
|
|
84
|
-
addresses?:
|
|
24
|
+
addresses?: AccountingAddress[];
|
|
85
25
|
/**
|
|
86
26
|
* Currency set in the accounting platform of the linked company. Used by the currency rate.
|
|
87
27
|
*/
|
|
@@ -169,7 +109,7 @@ export declare class AccountingCompanyInfo extends SpeakeasyBase {
|
|
|
169
109
|
/**
|
|
170
110
|
* An array of phone numbers.
|
|
171
111
|
*/
|
|
172
|
-
phoneNumbers?:
|
|
112
|
+
phoneNumbers?: PhoneNumber[];
|
|
173
113
|
/**
|
|
174
114
|
* Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House.
|
|
175
115
|
*/
|
|
@@ -189,5 +129,5 @@ export declare class AccountingCompanyInfo extends SpeakeasyBase {
|
|
|
189
129
|
/**
|
|
190
130
|
* An array of weblinks.
|
|
191
131
|
*/
|
|
192
|
-
webLinks?:
|
|
132
|
+
webLinks?: WebLink[];
|
|
193
133
|
}
|
|
@@ -27,102 +27,12 @@ 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.AccountingCompanyInfo =
|
|
30
|
+
exports.AccountingCompanyInfo = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
-
var
|
|
33
|
-
var
|
|
32
|
+
var accountingaddress_1 = require("./accountingaddress");
|
|
33
|
+
var phonenumber_1 = require("./phonenumber");
|
|
34
|
+
var weblink_1 = require("./weblink");
|
|
34
35
|
var class_transformer_1 = require("class-transformer");
|
|
35
|
-
var AccountingCompanyInfoAccountingAddress = /** @class */ (function (_super) {
|
|
36
|
-
__extends(AccountingCompanyInfoAccountingAddress, _super);
|
|
37
|
-
function AccountingCompanyInfoAccountingAddress() {
|
|
38
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
39
|
-
}
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
42
|
-
(0, class_transformer_1.Expose)({ name: "city" }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], AccountingCompanyInfoAccountingAddress.prototype, "city", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
47
|
-
(0, class_transformer_1.Expose)({ name: "country" }),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], AccountingCompanyInfoAccountingAddress.prototype, "country", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
52
|
-
(0, class_transformer_1.Expose)({ name: "line1" }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], AccountingCompanyInfoAccountingAddress.prototype, "line1", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
57
|
-
(0, class_transformer_1.Expose)({ name: "line2" }),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], AccountingCompanyInfoAccountingAddress.prototype, "line2", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
62
|
-
(0, class_transformer_1.Expose)({ name: "postalCode" }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], AccountingCompanyInfoAccountingAddress.prototype, "postalCode", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
67
|
-
(0, class_transformer_1.Expose)({ name: "region" }),
|
|
68
|
-
__metadata("design:type", String)
|
|
69
|
-
], AccountingCompanyInfoAccountingAddress.prototype, "region", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
72
|
-
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], AccountingCompanyInfoAccountingAddress.prototype, "type", void 0);
|
|
75
|
-
return AccountingCompanyInfoAccountingAddress;
|
|
76
|
-
}(utils_1.SpeakeasyBase));
|
|
77
|
-
exports.AccountingCompanyInfoAccountingAddress = AccountingCompanyInfoAccountingAddress;
|
|
78
|
-
var AccountingCompanyInfoPhone = /** @class */ (function (_super) {
|
|
79
|
-
__extends(AccountingCompanyInfoPhone, _super);
|
|
80
|
-
function AccountingCompanyInfoPhone() {
|
|
81
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
82
|
-
}
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
85
|
-
(0, class_transformer_1.Expose)({ name: "number" }),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], AccountingCompanyInfoPhone.prototype, "number", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
90
|
-
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
91
|
-
__metadata("design:type", String)
|
|
92
|
-
], AccountingCompanyInfoPhone.prototype, "type", void 0);
|
|
93
|
-
return AccountingCompanyInfoPhone;
|
|
94
|
-
}(utils_1.SpeakeasyBase));
|
|
95
|
-
exports.AccountingCompanyInfoPhone = AccountingCompanyInfoPhone;
|
|
96
|
-
/**
|
|
97
|
-
* The type of the weblink.
|
|
98
|
-
*/
|
|
99
|
-
var AccountingCompanyInfoWeblinkType;
|
|
100
|
-
(function (AccountingCompanyInfoWeblinkType) {
|
|
101
|
-
AccountingCompanyInfoWeblinkType["Website"] = "Website";
|
|
102
|
-
AccountingCompanyInfoWeblinkType["Social"] = "Social";
|
|
103
|
-
AccountingCompanyInfoWeblinkType["Unknown"] = "Unknown";
|
|
104
|
-
})(AccountingCompanyInfoWeblinkType = exports.AccountingCompanyInfoWeblinkType || (exports.AccountingCompanyInfoWeblinkType = {}));
|
|
105
|
-
/**
|
|
106
|
-
* Weblink associated with the company.
|
|
107
|
-
*/
|
|
108
|
-
var AccountingCompanyInfoWeblink = /** @class */ (function (_super) {
|
|
109
|
-
__extends(AccountingCompanyInfoWeblink, _super);
|
|
110
|
-
function AccountingCompanyInfoWeblink() {
|
|
111
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
112
|
-
}
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
115
|
-
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
116
|
-
__metadata("design:type", String)
|
|
117
|
-
], AccountingCompanyInfoWeblink.prototype, "type", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
120
|
-
(0, class_transformer_1.Expose)({ name: "url" }),
|
|
121
|
-
__metadata("design:type", String)
|
|
122
|
-
], AccountingCompanyInfoWeblink.prototype, "url", void 0);
|
|
123
|
-
return AccountingCompanyInfoWeblink;
|
|
124
|
-
}(utils_1.SpeakeasyBase));
|
|
125
|
-
exports.AccountingCompanyInfoWeblink = AccountingCompanyInfoWeblink;
|
|
126
36
|
/**
|
|
127
37
|
* > View the coverage for company info in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=cashFlowStatement" target="_blank">Data coverage explorer</a>.
|
|
128
38
|
*
|
|
@@ -145,9 +55,9 @@ var AccountingCompanyInfo = /** @class */ (function (_super) {
|
|
|
145
55
|
__metadata("design:type", String)
|
|
146
56
|
], AccountingCompanyInfo.prototype, "accountingPlatformRef", void 0);
|
|
147
57
|
__decorate([
|
|
148
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
58
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: accountingaddress_1.AccountingAddress }),
|
|
149
59
|
(0, class_transformer_1.Expose)({ name: "addresses" }),
|
|
150
|
-
(0, class_transformer_1.Type)(function () { return
|
|
60
|
+
(0, class_transformer_1.Type)(function () { return accountingaddress_1.AccountingAddress; }),
|
|
151
61
|
__metadata("design:type", Array)
|
|
152
62
|
], AccountingCompanyInfo.prototype, "addresses", void 0);
|
|
153
63
|
__decorate([
|
|
@@ -181,9 +91,9 @@ var AccountingCompanyInfo = /** @class */ (function (_super) {
|
|
|
181
91
|
__metadata("design:type", String)
|
|
182
92
|
], AccountingCompanyInfo.prototype, "ledgerLockDate", void 0);
|
|
183
93
|
__decorate([
|
|
184
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
94
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: phonenumber_1.PhoneNumber }),
|
|
185
95
|
(0, class_transformer_1.Expose)({ name: "phoneNumbers" }),
|
|
186
|
-
(0, class_transformer_1.Type)(function () { return
|
|
96
|
+
(0, class_transformer_1.Type)(function () { return phonenumber_1.PhoneNumber; }),
|
|
187
97
|
__metadata("design:type", Array)
|
|
188
98
|
], AccountingCompanyInfo.prototype, "phoneNumbers", void 0);
|
|
189
99
|
__decorate([
|
|
@@ -202,9 +112,9 @@ var AccountingCompanyInfo = /** @class */ (function (_super) {
|
|
|
202
112
|
__metadata("design:type", String)
|
|
203
113
|
], AccountingCompanyInfo.prototype, "taxNumber", void 0);
|
|
204
114
|
__decorate([
|
|
205
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
115
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: weblink_1.WebLink }),
|
|
206
116
|
(0, class_transformer_1.Expose)({ name: "webLinks" }),
|
|
207
|
-
(0, class_transformer_1.Type)(function () { return
|
|
117
|
+
(0, class_transformer_1.Type)(function () { return weblink_1.WebLink; }),
|
|
208
118
|
__metadata("design:type", Array)
|
|
209
119
|
], AccountingCompanyInfo.prototype, "webLinks", void 0);
|
|
210
120
|
return AccountingCompanyInfo;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { AccountingAccount } from "./accountingaccount";
|
|
3
|
+
import { DataType } from "./datatype";
|
|
4
|
+
import { PushOperationChange } from "./pushoperationchange";
|
|
5
|
+
import { PushOperationStatus } from "./pushoperationstatus";
|
|
6
|
+
import { Validation } from "./validation";
|
|
7
|
+
export declare class AccountingCreateAccountResponse extends SpeakeasyBase {
|
|
8
|
+
/**
|
|
9
|
+
* Contains a single entry that communicates which record has changed and the manner in which it changed.
|
|
10
|
+
*/
|
|
11
|
+
changes?: PushOperationChange[];
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier for your SMB in Codat.
|
|
14
|
+
*/
|
|
15
|
+
companyId: string;
|
|
16
|
+
/**
|
|
17
|
+
* In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
*
|
|
21
|
+
* ```
|
|
22
|
+
* 2020-10-08T22:40:50Z
|
|
23
|
+
* 2021-01-01T00:00:00
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
*
|
|
28
|
+
* When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
|
|
29
|
+
*
|
|
30
|
+
* - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
|
|
31
|
+
* - Unqualified local time: `2021-11-15T01:00:00`
|
|
32
|
+
* - UTC time offsets: `2021-11-15T01:00:00-05:00`
|
|
33
|
+
*
|
|
34
|
+
* > Time zones
|
|
35
|
+
* >
|
|
36
|
+
* > Not all dates from Codat will contain information about time zones.
|
|
37
|
+
* > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
|
|
38
|
+
*/
|
|
39
|
+
completedOnUtc?: string;
|
|
40
|
+
/**
|
|
41
|
+
* > **Language tip:** Accounts are also referred to as **chart of accounts**, **nominal accounts**, and **general ledger**.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
*
|
|
45
|
+
* View the coverage for accounts in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=chartOfAccounts" target="_blank">Data coverage explorer</a>.
|
|
46
|
+
*
|
|
47
|
+
* ## Overview
|
|
48
|
+
*
|
|
49
|
+
* Accounts are the categories a business uses to record accounting transactions. From the Accounts endpoints, you can retrieve a list of all accounts for a specified company.
|
|
50
|
+
*
|
|
51
|
+
* The categories for an account include:
|
|
52
|
+
* * Asset
|
|
53
|
+
* * Expense
|
|
54
|
+
* * Income
|
|
55
|
+
* * Liability
|
|
56
|
+
* * Equity.
|
|
57
|
+
*
|
|
58
|
+
* The same account may have a different category based on the integration it is used in. For example, a current account (known as checking in the US) should be categorized as `Asset.Current` for Xero, and `Asset.Bank.Checking` for QuickBooks Online.
|
|
59
|
+
*
|
|
60
|
+
* At the same time, each integration may have its own requirements to the categories. For example, a Paypal account in Xero is of the `Asset.Bank` category and therefore requires additional properties to be provided.
|
|
61
|
+
*
|
|
62
|
+
* To determine the list of allowed categories for a specific integration, you can:
|
|
63
|
+
* - Follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide and use the [Get create account model](https://docs.codat.io/accounting-api#/operations/get-create-chartOfAccounts-model).
|
|
64
|
+
* - Refer to the integration's own documentation.
|
|
65
|
+
*
|
|
66
|
+
* > **Accounts with no category**
|
|
67
|
+
* >
|
|
68
|
+
* > If an account is pulled from the chart of accounts and its nominal code does not lie within the category layout for the company's accounts, then the **type** is `Unknown`. The **fullyQualifiedCategory** and **fullyQualifiedName** fields return `null`.
|
|
69
|
+
* >
|
|
70
|
+
* > This approach gives a true representation of the company's accounts whilst preventing distorting financials such as a company's profit and loss and balance sheet reports.
|
|
71
|
+
*/
|
|
72
|
+
data?: AccountingAccount;
|
|
73
|
+
/**
|
|
74
|
+
* Unique identifier for a company's data connection.
|
|
75
|
+
*/
|
|
76
|
+
dataConnectionKey: string;
|
|
77
|
+
/**
|
|
78
|
+
* Available Data types
|
|
79
|
+
*/
|
|
80
|
+
dataType?: DataType;
|
|
81
|
+
errorMessage?: string;
|
|
82
|
+
/**
|
|
83
|
+
* A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted.
|
|
84
|
+
*/
|
|
85
|
+
pushOperationKey: string;
|
|
86
|
+
/**
|
|
87
|
+
* In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
*
|
|
91
|
+
* ```
|
|
92
|
+
* 2020-10-08T22:40:50Z
|
|
93
|
+
* 2021-01-01T00:00:00
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
* When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
|
|
99
|
+
*
|
|
100
|
+
* - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
|
|
101
|
+
* - Unqualified local time: `2021-11-15T01:00:00`
|
|
102
|
+
* - UTC time offsets: `2021-11-15T01:00:00-05:00`
|
|
103
|
+
*
|
|
104
|
+
* > Time zones
|
|
105
|
+
* >
|
|
106
|
+
* > Not all dates from Codat will contain information about time zones.
|
|
107
|
+
* > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
|
|
108
|
+
*/
|
|
109
|
+
requestedOnUtc: string;
|
|
110
|
+
/**
|
|
111
|
+
* The current status of the push operation.
|
|
112
|
+
*/
|
|
113
|
+
status: PushOperationStatus;
|
|
114
|
+
statusCode: number;
|
|
115
|
+
timeoutInMinutes?: number;
|
|
116
|
+
/**
|
|
117
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
118
|
+
*/
|
|
119
|
+
timeoutInSeconds?: number;
|
|
120
|
+
/**
|
|
121
|
+
* A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here.
|
|
122
|
+
*/
|
|
123
|
+
validation?: Validation;
|
|
124
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.AccountingCreateAccountResponse = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var accountingaccount_1 = require("./accountingaccount");
|
|
33
|
+
var datatype_1 = require("./datatype");
|
|
34
|
+
var pushoperationchange_1 = require("./pushoperationchange");
|
|
35
|
+
var pushoperationstatus_1 = require("./pushoperationstatus");
|
|
36
|
+
var validation_1 = require("./validation");
|
|
37
|
+
var class_transformer_1 = require("class-transformer");
|
|
38
|
+
var AccountingCreateAccountResponse = /** @class */ (function (_super) {
|
|
39
|
+
__extends(AccountingCreateAccountResponse, _super);
|
|
40
|
+
function AccountingCreateAccountResponse() {
|
|
41
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
42
|
+
}
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: pushoperationchange_1.PushOperationChange }),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "changes" }),
|
|
46
|
+
(0, class_transformer_1.Type)(function () { return pushoperationchange_1.PushOperationChange; }),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], AccountingCreateAccountResponse.prototype, "changes", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
51
|
+
(0, class_transformer_1.Expose)({ name: "companyId" }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], AccountingCreateAccountResponse.prototype, "companyId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
56
|
+
(0, class_transformer_1.Expose)({ name: "completedOnUtc" }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], AccountingCreateAccountResponse.prototype, "completedOnUtc", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
61
|
+
(0, class_transformer_1.Expose)({ name: "data" }),
|
|
62
|
+
(0, class_transformer_1.Type)(function () { return accountingaccount_1.AccountingAccount; }),
|
|
63
|
+
__metadata("design:type", accountingaccount_1.AccountingAccount)
|
|
64
|
+
], AccountingCreateAccountResponse.prototype, "data", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
67
|
+
(0, class_transformer_1.Expose)({ name: "dataConnectionKey" }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], AccountingCreateAccountResponse.prototype, "dataConnectionKey", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
72
|
+
(0, class_transformer_1.Expose)({ name: "dataType" }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], AccountingCreateAccountResponse.prototype, "dataType", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
77
|
+
(0, class_transformer_1.Expose)({ name: "errorMessage" }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], AccountingCreateAccountResponse.prototype, "errorMessage", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
82
|
+
(0, class_transformer_1.Expose)({ name: "pushOperationKey" }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], AccountingCreateAccountResponse.prototype, "pushOperationKey", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
87
|
+
(0, class_transformer_1.Expose)({ name: "requestedOnUtc" }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], AccountingCreateAccountResponse.prototype, "requestedOnUtc", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
92
|
+
(0, class_transformer_1.Expose)({ name: "status" }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], AccountingCreateAccountResponse.prototype, "status", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
97
|
+
(0, class_transformer_1.Expose)({ name: "statusCode" }),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], AccountingCreateAccountResponse.prototype, "statusCode", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
102
|
+
(0, class_transformer_1.Expose)({ name: "timeoutInMinutes" }),
|
|
103
|
+
__metadata("design:type", Number)
|
|
104
|
+
], AccountingCreateAccountResponse.prototype, "timeoutInMinutes", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
107
|
+
(0, class_transformer_1.Expose)({ name: "timeoutInSeconds" }),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], AccountingCreateAccountResponse.prototype, "timeoutInSeconds", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
112
|
+
(0, class_transformer_1.Expose)({ name: "validation" }),
|
|
113
|
+
(0, class_transformer_1.Type)(function () { return validation_1.Validation; }),
|
|
114
|
+
__metadata("design:type", validation_1.Validation)
|
|
115
|
+
], AccountingCreateAccountResponse.prototype, "validation", void 0);
|
|
116
|
+
return AccountingCreateAccountResponse;
|
|
117
|
+
}(utils_1.SpeakeasyBase));
|
|
118
|
+
exports.AccountingCreateAccountResponse = AccountingCreateAccountResponse;
|