@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
|
@@ -33,9 +33,9 @@ var accountingcustomerref_1 = require("./accountingcustomerref");
|
|
|
33
33
|
var accountingpaymentallocation_1 = require("./accountingpaymentallocation");
|
|
34
34
|
var invoicelineitem_1 = require("./invoicelineitem");
|
|
35
35
|
var invoicestatus_1 = require("./invoicestatus");
|
|
36
|
+
var items_1 = require("./items");
|
|
36
37
|
var metadata_1 = require("./metadata");
|
|
37
38
|
var supplementaldata_1 = require("./supplementaldata");
|
|
38
|
-
var withholdingtaxitems_1 = require("./withholdingtaxitems");
|
|
39
39
|
var class_transformer_1 = require("class-transformer");
|
|
40
40
|
var AccountingInvoiceSalesOrderReference = /** @class */ (function (_super) {
|
|
41
41
|
__extends(AccountingInvoiceSalesOrderReference, _super);
|
|
@@ -225,9 +225,9 @@ var AccountingInvoice = /** @class */ (function (_super) {
|
|
|
225
225
|
__metadata("design:type", Number)
|
|
226
226
|
], AccountingInvoice.prototype, "totalTaxAmount", void 0);
|
|
227
227
|
__decorate([
|
|
228
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
228
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: items_1.Items }),
|
|
229
229
|
(0, class_transformer_1.Expose)({ name: "withholdingTax" }),
|
|
230
|
-
(0, class_transformer_1.Type)(function () { return
|
|
230
|
+
(0, class_transformer_1.Type)(function () { return items_1.Items; }),
|
|
231
231
|
__metadata("design:type", Array)
|
|
232
232
|
], AccountingInvoice.prototype, "withholdingTax", void 0);
|
|
233
233
|
return AccountingInvoice;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
import {
|
|
2
|
+
import { AccountingAddress } from "./accountingaddress";
|
|
3
3
|
import { Metadata } from "./metadata";
|
|
4
4
|
import { SupplementalData } from "./supplementaldata";
|
|
5
5
|
import { SupplierStatus } from "./supplierstatus";
|
|
@@ -16,7 +16,7 @@ export declare class AccountingSupplier extends SpeakeasyBase {
|
|
|
16
16
|
/**
|
|
17
17
|
* An array of Addresses.
|
|
18
18
|
*/
|
|
19
|
-
addresses?:
|
|
19
|
+
addresses?: AccountingAddress[];
|
|
20
20
|
/**
|
|
21
21
|
* Name of the main contact for the supplier.
|
|
22
22
|
*/
|
|
@@ -29,7 +29,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.AccountingSupplier = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
-
var
|
|
32
|
+
var accountingaddress_1 = require("./accountingaddress");
|
|
33
33
|
var metadata_1 = require("./metadata");
|
|
34
34
|
var supplementaldata_1 = require("./supplementaldata");
|
|
35
35
|
var supplierstatus_1 = require("./supplierstatus");
|
|
@@ -49,9 +49,9 @@ var AccountingSupplier = /** @class */ (function (_super) {
|
|
|
49
49
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
50
50
|
}
|
|
51
51
|
__decorate([
|
|
52
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
52
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: accountingaddress_1.AccountingAddress }),
|
|
53
53
|
(0, class_transformer_1.Expose)({ name: "addresses" }),
|
|
54
|
-
(0, class_transformer_1.Type)(function () { return
|
|
54
|
+
(0, class_transformer_1.Type)(function () { return accountingaddress_1.AccountingAddress; }),
|
|
55
55
|
__metadata("design:type", Array)
|
|
56
56
|
], AccountingSupplier.prototype, "addresses", void 0);
|
|
57
57
|
__decorate([
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { ClientRateLimitReachedWebhookData } from "./clientratelimitreachedwebhookdata";
|
|
3
|
+
/**
|
|
4
|
+
* Webhook request body for a client that has reached their rate limit.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ClientRateLimitReachedWebhook extends SpeakeasyBase {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier of the webhook event.
|
|
9
|
+
*/
|
|
10
|
+
alertId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for your client in Codat.
|
|
13
|
+
*/
|
|
14
|
+
clientId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of your client in Codat.
|
|
17
|
+
*/
|
|
18
|
+
clientName?: string;
|
|
19
|
+
data?: ClientRateLimitReachedWebhookData;
|
|
20
|
+
/**
|
|
21
|
+
* A human readable message about the webhook.
|
|
22
|
+
*/
|
|
23
|
+
message?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the rule.
|
|
26
|
+
*/
|
|
27
|
+
ruleId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The type of rule.
|
|
30
|
+
*/
|
|
31
|
+
ruleType?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.ClientRateLimitReachedWebhook = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var clientratelimitreachedwebhookdata_1 = require("./clientratelimitreachedwebhookdata");
|
|
33
|
+
var class_transformer_1 = require("class-transformer");
|
|
34
|
+
/**
|
|
35
|
+
* Webhook request body for a client that has reached their rate limit.
|
|
36
|
+
*/
|
|
37
|
+
var ClientRateLimitReachedWebhook = /** @class */ (function (_super) {
|
|
38
|
+
__extends(ClientRateLimitReachedWebhook, _super);
|
|
39
|
+
function ClientRateLimitReachedWebhook() {
|
|
40
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
41
|
+
}
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
44
|
+
(0, class_transformer_1.Expose)({ name: "AlertId" }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ClientRateLimitReachedWebhook.prototype, "alertId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
49
|
+
(0, class_transformer_1.Expose)({ name: "ClientId" }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ClientRateLimitReachedWebhook.prototype, "clientId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
54
|
+
(0, class_transformer_1.Expose)({ name: "ClientName" }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], ClientRateLimitReachedWebhook.prototype, "clientName", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
59
|
+
(0, class_transformer_1.Expose)({ name: "Data" }),
|
|
60
|
+
(0, class_transformer_1.Type)(function () { return clientratelimitreachedwebhookdata_1.ClientRateLimitReachedWebhookData; }),
|
|
61
|
+
__metadata("design:type", clientratelimitreachedwebhookdata_1.ClientRateLimitReachedWebhookData)
|
|
62
|
+
], ClientRateLimitReachedWebhook.prototype, "data", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "Message" }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], ClientRateLimitReachedWebhook.prototype, "message", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
70
|
+
(0, class_transformer_1.Expose)({ name: "RuleId" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], ClientRateLimitReachedWebhook.prototype, "ruleId", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
75
|
+
(0, class_transformer_1.Expose)({ name: "RuleType" }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], ClientRateLimitReachedWebhook.prototype, "ruleType", void 0);
|
|
78
|
+
return ClientRateLimitReachedWebhook;
|
|
79
|
+
}(utils_1.SpeakeasyBase));
|
|
80
|
+
exports.ClientRateLimitReachedWebhook = ClientRateLimitReachedWebhook;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
export declare class ClientRateLimitReachedWebhookData extends SpeakeasyBase {
|
|
3
|
+
/**
|
|
4
|
+
* The number of available requests per day.
|
|
5
|
+
*/
|
|
6
|
+
dailyQuota?: number;
|
|
7
|
+
/**
|
|
8
|
+
* 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:
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
*
|
|
12
|
+
* ```
|
|
13
|
+
* 2020-10-08T22:40:50Z
|
|
14
|
+
* 2021-01-01T00:00:00
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
|
|
20
|
+
*
|
|
21
|
+
* - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
|
|
22
|
+
* - Unqualified local time: `2021-11-15T01:00:00`
|
|
23
|
+
* - UTC time offsets: `2021-11-15T01:00:00-05:00`
|
|
24
|
+
*
|
|
25
|
+
* > Time zones
|
|
26
|
+
* >
|
|
27
|
+
* > Not all dates from Codat will contain information about time zones.
|
|
28
|
+
* > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
|
|
29
|
+
*/
|
|
30
|
+
expiresUtc?: string;
|
|
31
|
+
}
|
|
@@ -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.ClientRateLimitReachedWebhookData = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var ClientRateLimitReachedWebhookData = /** @class */ (function (_super) {
|
|
34
|
+
__extends(ClientRateLimitReachedWebhookData, _super);
|
|
35
|
+
function ClientRateLimitReachedWebhookData() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "DailyQuota" }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], ClientRateLimitReachedWebhookData.prototype, "dailyQuota", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "ExpiresUtc" }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ClientRateLimitReachedWebhookData.prototype, "expiresUtc", void 0);
|
|
48
|
+
return ClientRateLimitReachedWebhookData;
|
|
49
|
+
}(utils_1.SpeakeasyBase));
|
|
50
|
+
exports.ClientRateLimitReachedWebhookData = ClientRateLimitReachedWebhookData;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { ClientRateLimitResetWebhookData } from "./clientratelimitresetwebhookdata";
|
|
3
|
+
/**
|
|
4
|
+
* Webhook request body for a client that has had their rate limit reset.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ClientRateLimitResetWebhook extends SpeakeasyBase {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier of the webhook event.
|
|
9
|
+
*/
|
|
10
|
+
alertId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for your client in Codat.
|
|
13
|
+
*/
|
|
14
|
+
clientId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of your client in Codat.
|
|
17
|
+
*/
|
|
18
|
+
clientName?: string;
|
|
19
|
+
data?: ClientRateLimitResetWebhookData;
|
|
20
|
+
/**
|
|
21
|
+
* A human readable message about the webhook.
|
|
22
|
+
*/
|
|
23
|
+
message?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the rule.
|
|
26
|
+
*/
|
|
27
|
+
ruleId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The type of rule.
|
|
30
|
+
*/
|
|
31
|
+
ruleType?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.ClientRateLimitResetWebhook = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var clientratelimitresetwebhookdata_1 = require("./clientratelimitresetwebhookdata");
|
|
33
|
+
var class_transformer_1 = require("class-transformer");
|
|
34
|
+
/**
|
|
35
|
+
* Webhook request body for a client that has had their rate limit reset.
|
|
36
|
+
*/
|
|
37
|
+
var ClientRateLimitResetWebhook = /** @class */ (function (_super) {
|
|
38
|
+
__extends(ClientRateLimitResetWebhook, _super);
|
|
39
|
+
function ClientRateLimitResetWebhook() {
|
|
40
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
41
|
+
}
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
44
|
+
(0, class_transformer_1.Expose)({ name: "AlertId" }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ClientRateLimitResetWebhook.prototype, "alertId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
49
|
+
(0, class_transformer_1.Expose)({ name: "ClientId" }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ClientRateLimitResetWebhook.prototype, "clientId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
54
|
+
(0, class_transformer_1.Expose)({ name: "ClientName" }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], ClientRateLimitResetWebhook.prototype, "clientName", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
59
|
+
(0, class_transformer_1.Expose)({ name: "Data" }),
|
|
60
|
+
(0, class_transformer_1.Type)(function () { return clientratelimitresetwebhookdata_1.ClientRateLimitResetWebhookData; }),
|
|
61
|
+
__metadata("design:type", clientratelimitresetwebhookdata_1.ClientRateLimitResetWebhookData)
|
|
62
|
+
], ClientRateLimitResetWebhook.prototype, "data", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "Message" }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], ClientRateLimitResetWebhook.prototype, "message", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
70
|
+
(0, class_transformer_1.Expose)({ name: "RuleId" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], ClientRateLimitResetWebhook.prototype, "ruleId", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
75
|
+
(0, class_transformer_1.Expose)({ name: "RuleType" }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], ClientRateLimitResetWebhook.prototype, "ruleType", void 0);
|
|
78
|
+
return ClientRateLimitResetWebhook;
|
|
79
|
+
}(utils_1.SpeakeasyBase));
|
|
80
|
+
exports.ClientRateLimitResetWebhook = ClientRateLimitResetWebhook;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
export declare class ClientRateLimitResetWebhookData extends SpeakeasyBase {
|
|
3
|
+
/**
|
|
4
|
+
* The number of available requests per day.
|
|
5
|
+
*/
|
|
6
|
+
dailyQuota?: number;
|
|
7
|
+
/**
|
|
8
|
+
* 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:
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
*
|
|
12
|
+
* ```
|
|
13
|
+
* 2020-10-08T22:40:50Z
|
|
14
|
+
* 2021-01-01T00:00:00
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
|
|
20
|
+
*
|
|
21
|
+
* - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
|
|
22
|
+
* - Unqualified local time: `2021-11-15T01:00:00`
|
|
23
|
+
* - UTC time offsets: `2021-11-15T01:00:00-05:00`
|
|
24
|
+
*
|
|
25
|
+
* > Time zones
|
|
26
|
+
* >
|
|
27
|
+
* > Not all dates from Codat will contain information about time zones.
|
|
28
|
+
* > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
|
|
29
|
+
*/
|
|
30
|
+
expiresUtc?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Total number of request remaining for your client.
|
|
33
|
+
*/
|
|
34
|
+
quotaRemaining?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The reason for your rate limit quota being reset.
|
|
37
|
+
*/
|
|
38
|
+
resetReason?: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.ClientRateLimitResetWebhookData = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var ClientRateLimitResetWebhookData = /** @class */ (function (_super) {
|
|
34
|
+
__extends(ClientRateLimitResetWebhookData, _super);
|
|
35
|
+
function ClientRateLimitResetWebhookData() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "DailyQuota" }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], ClientRateLimitResetWebhookData.prototype, "dailyQuota", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "ExpiresUtc" }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ClientRateLimitResetWebhookData.prototype, "expiresUtc", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
|
+
(0, class_transformer_1.Expose)({ name: "QuotaRemaining" }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ClientRateLimitResetWebhookData.prototype, "quotaRemaining", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
55
|
+
(0, class_transformer_1.Expose)({ name: "ResetReason" }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], ClientRateLimitResetWebhookData.prototype, "resetReason", void 0);
|
|
58
|
+
return ClientRateLimitResetWebhookData;
|
|
59
|
+
}(utils_1.SpeakeasyBase));
|
|
60
|
+
exports.ClientRateLimitResetWebhookData = ClientRateLimitResetWebhookData;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
2
|
import { AccountBalance } from "./accountbalance";
|
|
3
3
|
import { CommerceAddress } from "./commerceaddress";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { PhoneNumber } from "./phonenumber";
|
|
5
|
+
import { WebLink } from "./weblink";
|
|
6
6
|
/**
|
|
7
7
|
* In the Codat system, company information includes standard commercial details about
|
|
8
8
|
*
|
|
@@ -73,7 +73,7 @@ export declare class CommerceCompanyInfo extends SpeakeasyBase {
|
|
|
73
73
|
/**
|
|
74
74
|
* Phone numbers associated with the company
|
|
75
75
|
*/
|
|
76
|
-
phoneNumbers?:
|
|
76
|
+
phoneNumbers?: PhoneNumber[];
|
|
77
77
|
/**
|
|
78
78
|
* The registration number of the company
|
|
79
79
|
*/
|
|
@@ -86,5 +86,5 @@ export declare class CommerceCompanyInfo extends SpeakeasyBase {
|
|
|
86
86
|
/**
|
|
87
87
|
* Weblinks associated with the company
|
|
88
88
|
*/
|
|
89
|
-
webLinks?:
|
|
89
|
+
webLinks?: WebLink[];
|
|
90
90
|
}
|
|
@@ -31,8 +31,8 @@ exports.CommerceCompanyInfo = void 0;
|
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var accountbalance_1 = require("./accountbalance");
|
|
33
33
|
var commerceaddress_1 = require("./commerceaddress");
|
|
34
|
-
var
|
|
35
|
-
var
|
|
34
|
+
var phonenumber_1 = require("./phonenumber");
|
|
35
|
+
var weblink_1 = require("./weblink");
|
|
36
36
|
var class_transformer_1 = require("class-transformer");
|
|
37
37
|
/**
|
|
38
38
|
* In the Codat system, company information includes standard commercial details about
|
|
@@ -91,9 +91,9 @@ var CommerceCompanyInfo = /** @class */ (function (_super) {
|
|
|
91
91
|
__metadata("design:type", String)
|
|
92
92
|
], CommerceCompanyInfo.prototype, "modifiedDate", void 0);
|
|
93
93
|
__decorate([
|
|
94
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
94
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: phonenumber_1.PhoneNumber }),
|
|
95
95
|
(0, class_transformer_1.Expose)({ name: "phoneNumbers" }),
|
|
96
|
-
(0, class_transformer_1.Type)(function () { return
|
|
96
|
+
(0, class_transformer_1.Type)(function () { return phonenumber_1.PhoneNumber; }),
|
|
97
97
|
__metadata("design:type", Array)
|
|
98
98
|
], CommerceCompanyInfo.prototype, "phoneNumbers", void 0);
|
|
99
99
|
__decorate([
|
|
@@ -112,9 +112,9 @@ var CommerceCompanyInfo = /** @class */ (function (_super) {
|
|
|
112
112
|
__metadata("design:type", Object)
|
|
113
113
|
], CommerceCompanyInfo.prototype, "sourceUrls", void 0);
|
|
114
114
|
__decorate([
|
|
115
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
115
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: weblink_1.WebLink }),
|
|
116
116
|
(0, class_transformer_1.Expose)({ name: "webLinks" }),
|
|
117
|
-
(0, class_transformer_1.Type)(function () { return
|
|
117
|
+
(0, class_transformer_1.Type)(function () { return weblink_1.WebLink; }),
|
|
118
118
|
__metadata("design:type", Array)
|
|
119
119
|
], CommerceCompanyInfo.prototype, "webLinks", void 0);
|
|
120
120
|
return CommerceCompanyInfo;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
import {
|
|
2
|
+
import { AccountingAddress } from "./accountingaddress";
|
|
3
3
|
import { CustomerStatus } from "./customerstatus";
|
|
4
|
-
import {
|
|
4
|
+
import { PhoneNumber } from "./phonenumber";
|
|
5
5
|
export declare class Contact extends SpeakeasyBase {
|
|
6
|
-
address?:
|
|
6
|
+
address?: AccountingAddress;
|
|
7
7
|
/**
|
|
8
8
|
* Email of a contact for a customer.
|
|
9
9
|
*/
|
|
@@ -39,7 +39,7 @@ export declare class Contact extends SpeakeasyBase {
|
|
|
39
39
|
/**
|
|
40
40
|
* An array of Phone numbers.
|
|
41
41
|
*/
|
|
42
|
-
phone?:
|
|
42
|
+
phone?: PhoneNumber[];
|
|
43
43
|
/**
|
|
44
44
|
* Status of customer.
|
|
45
45
|
*/
|
|
@@ -29,9 +29,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.Contact = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
-
var
|
|
32
|
+
var accountingaddress_1 = require("./accountingaddress");
|
|
33
33
|
var customerstatus_1 = require("./customerstatus");
|
|
34
|
-
var
|
|
34
|
+
var phonenumber_1 = require("./phonenumber");
|
|
35
35
|
var class_transformer_1 = require("class-transformer");
|
|
36
36
|
var Contact = /** @class */ (function (_super) {
|
|
37
37
|
__extends(Contact, _super);
|
|
@@ -41,8 +41,8 @@ var Contact = /** @class */ (function (_super) {
|
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
43
43
|
(0, class_transformer_1.Expose)({ name: "address" }),
|
|
44
|
-
(0, class_transformer_1.Type)(function () { return
|
|
45
|
-
__metadata("design:type",
|
|
44
|
+
(0, class_transformer_1.Type)(function () { return accountingaddress_1.AccountingAddress; }),
|
|
45
|
+
__metadata("design:type", accountingaddress_1.AccountingAddress)
|
|
46
46
|
], Contact.prototype, "address", void 0);
|
|
47
47
|
__decorate([
|
|
48
48
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
@@ -60,9 +60,9 @@ var Contact = /** @class */ (function (_super) {
|
|
|
60
60
|
__metadata("design:type", String)
|
|
61
61
|
], Contact.prototype, "name", void 0);
|
|
62
62
|
__decorate([
|
|
63
|
-
(0, utils_1.SpeakeasyMetadata)({ elemType:
|
|
63
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: phonenumber_1.PhoneNumber }),
|
|
64
64
|
(0, class_transformer_1.Expose)({ name: "phone" }),
|
|
65
|
-
(0, class_transformer_1.Type)(function () { return
|
|
65
|
+
(0, class_transformer_1.Type)(function () { return phonenumber_1.PhoneNumber; }),
|
|
66
66
|
__metadata("design:type", Array)
|
|
67
67
|
], Contact.prototype, "phone", void 0);
|
|
68
68
|
__decorate([
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
export declare class CreateBankAccountTransaction extends SpeakeasyBase {
|
|
3
|
+
amount?: number;
|
|
4
|
+
balance?: number;
|
|
5
|
+
/**
|
|
6
|
+
* 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:
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
*
|
|
10
|
+
* ```
|
|
11
|
+
* 2020-10-08T22:40:50Z
|
|
12
|
+
* 2021-01-01T00:00:00
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
* When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
|
|
18
|
+
*
|
|
19
|
+
* - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
|
|
20
|
+
* - Unqualified local time: `2021-11-15T01:00:00`
|
|
21
|
+
* - UTC time offsets: `2021-11-15T01:00:00-05:00`
|
|
22
|
+
*
|
|
23
|
+
* > Time zones
|
|
24
|
+
* >
|
|
25
|
+
* > Not all dates from Codat will contain information about time zones.
|
|
26
|
+
* > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
|
|
27
|
+
*/
|
|
28
|
+
date?: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
}
|