@codat/lending 2.1.0 → 3.1.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.
Files changed (117) hide show
  1. package/README.md +34 -34
  2. package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.d.ts +40 -0
  3. package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.js +90 -0
  4. package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.d.ts +7 -0
  5. package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.js +45 -0
  6. package/dist/sdk/models/shared/{addressesitems.d.ts → accountingaddress.d.ts} +1 -1
  7. package/dist/sdk/models/shared/{addressesitems.js → accountingaddress.js} +13 -13
  8. package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +2 -2
  9. package/dist/sdk/models/shared/accountingbillcreditnote.js +3 -3
  10. package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +6 -66
  11. package/dist/sdk/models/shared/accountingcompanyinfo.js +10 -100
  12. package/dist/sdk/models/shared/accountingcreditnote.d.ts +2 -2
  13. package/dist/sdk/models/shared/accountingcreditnote.js +3 -3
  14. package/dist/sdk/models/shared/accountingcustomer.d.ts +2 -2
  15. package/dist/sdk/models/shared/accountingcustomer.js +3 -3
  16. package/dist/sdk/models/shared/accountinginvoice.d.ts +2 -2
  17. package/dist/sdk/models/shared/accountinginvoice.js +3 -3
  18. package/dist/sdk/models/shared/accountingsupplier.d.ts +2 -2
  19. package/dist/sdk/models/shared/accountingsupplier.js +3 -3
  20. package/dist/sdk/models/shared/clientratelimitreachedwebhook.d.ts +32 -0
  21. package/dist/sdk/models/shared/clientratelimitreachedwebhook.js +80 -0
  22. package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.d.ts +31 -0
  23. package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.js +50 -0
  24. package/dist/sdk/models/shared/clientratelimitresetwebhook.d.ts +32 -0
  25. package/dist/sdk/models/shared/clientratelimitresetwebhook.js +80 -0
  26. package/dist/sdk/models/shared/clientratelimitresetwebhookdata.d.ts +39 -0
  27. package/dist/sdk/models/shared/clientratelimitresetwebhookdata.js +60 -0
  28. package/dist/sdk/models/shared/commercecompanyinfo.d.ts +4 -4
  29. package/dist/sdk/models/shared/commercecompanyinfo.js +6 -6
  30. package/dist/sdk/models/shared/contact.d.ts +4 -4
  31. package/dist/sdk/models/shared/contact.js +6 -6
  32. package/dist/sdk/models/shared/index.d.ts +9 -3
  33. package/dist/sdk/models/shared/index.js +9 -3
  34. package/dist/sdk/models/shared/items.d.ts +2 -9
  35. package/dist/sdk/models/shared/items.js +5 -6
  36. package/dist/sdk/models/shared/phonenumber.d.ts +12 -0
  37. package/dist/sdk/models/shared/{withholdingtaxitems.js → phonenumber.js} +12 -11
  38. package/dist/sdk/models/shared/{weblinksitems.d.ts → weblink.d.ts} +3 -3
  39. package/dist/sdk/models/shared/{weblinksitems.js → weblink.js} +14 -14
  40. package/dist/sdk/models/webhooks/accountcategoriesupdated.d.ts +7 -0
  41. package/dist/sdk/models/webhooks/accountcategoriesupdated.js +51 -0
  42. package/dist/sdk/models/webhooks/clientratelimitreached.d.ts +7 -0
  43. package/dist/sdk/models/webhooks/clientratelimitreached.js +51 -0
  44. package/dist/sdk/models/webhooks/clientratelimitreset.d.ts +7 -0
  45. package/dist/sdk/models/webhooks/clientratelimitreset.js +51 -0
  46. package/dist/sdk/models/webhooks/index.d.ts +3 -0
  47. package/dist/sdk/models/webhooks/index.js +22 -0
  48. package/dist/sdk/sdk.js +2 -2
  49. package/docs/models/shared/accountcategoriesupdatedwebhook.md +18 -0
  50. package/docs/models/shared/accountcategoriesupdatedwebhookdata.md +8 -0
  51. package/docs/models/shared/{addressesitems.md → accountingaddress.md} +1 -1
  52. package/docs/models/shared/accountingbillcreditnote.md +1 -1
  53. package/docs/models/shared/accountingcompanyinfo.md +3 -3
  54. package/docs/models/shared/accountingcreditnote.md +1 -1
  55. package/docs/models/shared/accountingcustomer.md +1 -1
  56. package/docs/models/shared/accountinginvoice.md +1 -1
  57. package/docs/models/shared/accountingsupplier.md +1 -1
  58. package/docs/models/shared/clientratelimitreachedwebhook.md +16 -0
  59. package/docs/models/shared/clientratelimitreachedwebhookdata.md +9 -0
  60. package/docs/models/shared/clientratelimitresetwebhook.md +16 -0
  61. package/docs/models/shared/clientratelimitresetwebhookdata.md +11 -0
  62. package/docs/models/shared/commercecompanyinfo.md +2 -2
  63. package/docs/models/shared/contact.md +2 -2
  64. package/docs/models/shared/items.md +4 -4
  65. package/docs/models/shared/{accountingcompanyinfophone.md → phonenumber.md} +1 -1
  66. package/docs/models/shared/weblink.md +11 -0
  67. package/docs/models/shared/{itemstype.md → weblinktype.md} +1 -1
  68. package/docs/models/webhooks/accountcategoriesupdatedresponse.md +10 -0
  69. package/docs/models/webhooks/clientratelimitreachedresponse.md +10 -0
  70. package/docs/models/webhooks/clientratelimitresetresponse.md +10 -0
  71. package/docs/sdks/accountingbankdata/README.md +1 -1
  72. package/docs/sdks/accountingbankdataaccounts/README.md +3 -3
  73. package/docs/sdks/accountspayable/README.md +1 -1
  74. package/docs/sdks/accountspayablebillcreditnotes/README.md +3 -3
  75. package/docs/sdks/accountspayablebillpayments/README.md +3 -3
  76. package/docs/sdks/accountspayablebills/README.md +6 -6
  77. package/docs/sdks/accountspayablesuppliers/README.md +6 -6
  78. package/docs/sdks/accountsreceivable/README.md +1 -1
  79. package/docs/sdks/accountsreceivablecreditnotes/README.md +3 -3
  80. package/docs/sdks/accountsreceivablecustomers/README.md +6 -6
  81. package/docs/sdks/accountsreceivabledirectincomes/README.md +6 -6
  82. package/docs/sdks/accountsreceivableinvoices/README.md +8 -8
  83. package/docs/sdks/accountsreceivablepayments/README.md +3 -3
  84. package/docs/sdks/accountsreceivablereports/README.md +5 -5
  85. package/docs/sdks/banking/README.md +1 -1
  86. package/docs/sdks/bankingaccountbalances/README.md +2 -2
  87. package/docs/sdks/bankingcategorizedstatement/README.md +2 -2
  88. package/docs/sdks/bankingtransactioncategories/README.md +3 -3
  89. package/docs/sdks/companies/README.md +1 -1
  90. package/docs/sdks/companyinfo/README.md +1 -1
  91. package/docs/sdks/connections/README.md +1 -1
  92. package/docs/sdks/dataintegrity/README.md +1 -1
  93. package/docs/sdks/excelreports/README.md +1 -1
  94. package/docs/sdks/fileupload/README.md +1 -1
  95. package/docs/sdks/financialstatements/README.md +1 -1
  96. package/docs/sdks/financialstatementsaccounts/README.md +3 -3
  97. package/docs/sdks/financialstatementsbalancesheet/README.md +3 -3
  98. package/docs/sdks/financialstatementscashflow/README.md +2 -2
  99. package/docs/sdks/financialstatementsprofitandloss/README.md +3 -3
  100. package/docs/sdks/liabilities/README.md +1 -1
  101. package/docs/sdks/managedata/README.md +1 -1
  102. package/docs/sdks/managedatapulloperations/README.md +3 -3
  103. package/docs/sdks/managedatarefresh/README.md +3 -3
  104. package/docs/sdks/sales/README.md +1 -1
  105. package/docs/sdks/salespaymentmethods/README.md +3 -3
  106. package/docs/sdks/salesproductcategories/README.md +3 -3
  107. package/docs/sdks/transactions/README.md +1 -1
  108. package/docs/sdks/transactionsaccounttransactions/README.md +3 -3
  109. package/docs/sdks/transactionsdirectcosts/README.md +6 -6
  110. package/docs/sdks/transactionsjournalentries/README.md +3 -3
  111. package/package.json +1 -1
  112. package/dist/sdk/models/shared/withholdingtaxitems.d.ts +0 -5
  113. package/docs/models/shared/accountingcompanyinfoaccountingaddress.md +0 -14
  114. package/docs/models/shared/accountingcompanyinfoweblink.md +0 -11
  115. package/docs/models/shared/accountingcompanyinfoweblinktype.md +0 -12
  116. package/docs/models/shared/weblinksitems.md +0 -11
  117. package/docs/models/shared/withholdingtaxitems.md +0 -9
@@ -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 = exports.AccountingCompanyInfoWeblink = exports.AccountingCompanyInfoWeblinkType = exports.AccountingCompanyInfoPhone = exports.AccountingCompanyInfoAccountingAddress = void 0;
30
+ exports.AccountingCompanyInfo = void 0;
31
31
  var utils_1 = require("../../../internal/utils");
32
- var accountingaddresstype_1 = require("./accountingaddresstype");
33
- var phonenumbertype_1 = require("./phonenumbertype");
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: AccountingCompanyInfoAccountingAddress }),
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 AccountingCompanyInfoAccountingAddress; }),
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: AccountingCompanyInfoPhone }),
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 AccountingCompanyInfoPhone; }),
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: AccountingCompanyInfoWeblink }),
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 AccountingCompanyInfoWeblink; }),
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;
@@ -3,9 +3,9 @@ import { AccountingCustomerRef } from "./accountingcustomerref";
3
3
  import { AccountingPaymentAllocation } from "./accountingpaymentallocation";
4
4
  import { CreditNoteLineItem } from "./creditnotelineitem";
5
5
  import { CreditNoteStatus } from "./creditnotestatus";
6
+ import { Items } from "./items";
6
7
  import { Metadata } from "./metadata";
7
8
  import { SupplementalData } from "./supplementaldata";
8
- import { WithholdingTaxitems } from "./withholdingtaxitems";
9
9
  /**
10
10
  * > View the coverage for credit notes in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=creditNotes" target="_blank">Data coverage explorer</a>.
11
11
  *
@@ -169,5 +169,5 @@ export declare class AccountingCreditNote extends SpeakeasyBase {
169
169
  * Any tax applied to the credit note amount.
170
170
  */
171
171
  totalTaxAmount: number;
172
- withholdingTax?: WithholdingTaxitems[];
172
+ withholdingTax?: Items[];
173
173
  }
@@ -33,9 +33,9 @@ var accountingcustomerref_1 = require("./accountingcustomerref");
33
33
  var accountingpaymentallocation_1 = require("./accountingpaymentallocation");
34
34
  var creditnotelineitem_1 = require("./creditnotelineitem");
35
35
  var creditnotestatus_1 = require("./creditnotestatus");
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
  /**
41
41
  * > View the coverage for credit notes in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=creditNotes" target="_blank">Data coverage explorer</a>.
@@ -179,9 +179,9 @@ var AccountingCreditNote = /** @class */ (function (_super) {
179
179
  __metadata("design:type", Number)
180
180
  ], AccountingCreditNote.prototype, "totalTaxAmount", void 0);
181
181
  __decorate([
182
- (0, utils_1.SpeakeasyMetadata)({ elemType: withholdingtaxitems_1.WithholdingTaxitems }),
182
+ (0, utils_1.SpeakeasyMetadata)({ elemType: items_1.Items }),
183
183
  (0, class_transformer_1.Expose)({ name: "withholdingTax" }),
184
- (0, class_transformer_1.Type)(function () { return withholdingtaxitems_1.WithholdingTaxitems; }),
184
+ (0, class_transformer_1.Type)(function () { return items_1.Items; }),
185
185
  __metadata("design:type", Array)
186
186
  ], AccountingCreditNote.prototype, "withholdingTax", void 0);
187
187
  return AccountingCreditNote;
@@ -1,5 +1,5 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
- import { Addressesitems } from "./addressesitems";
2
+ import { AccountingAddress } from "./accountingaddress";
3
3
  import { Contact } from "./contact";
4
4
  import { CustomerStatus } from "./customerstatus";
5
5
  import { Metadata } from "./metadata";
@@ -20,7 +20,7 @@ export declare class AccountingCustomer extends SpeakeasyBase {
20
20
  /**
21
21
  * An array of Addresses.
22
22
  */
23
- addresses?: Addressesitems[];
23
+ addresses?: AccountingAddress[];
24
24
  /**
25
25
  * Name of the main contact for the identified customer.
26
26
  */
@@ -29,7 +29,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  exports.AccountingCustomer = void 0;
31
31
  var utils_1 = require("../../../internal/utils");
32
- var addressesitems_1 = require("./addressesitems");
32
+ var accountingaddress_1 = require("./accountingaddress");
33
33
  var contact_1 = require("./contact");
34
34
  var customerstatus_1 = require("./customerstatus");
35
35
  var metadata_1 = require("./metadata");
@@ -53,9 +53,9 @@ var AccountingCustomer = /** @class */ (function (_super) {
53
53
  return _super !== null && _super.apply(this, arguments) || this;
54
54
  }
55
55
  __decorate([
56
- (0, utils_1.SpeakeasyMetadata)({ elemType: addressesitems_1.Addressesitems }),
56
+ (0, utils_1.SpeakeasyMetadata)({ elemType: accountingaddress_1.AccountingAddress }),
57
57
  (0, class_transformer_1.Expose)({ name: "addresses" }),
58
- (0, class_transformer_1.Type)(function () { return addressesitems_1.Addressesitems; }),
58
+ (0, class_transformer_1.Type)(function () { return accountingaddress_1.AccountingAddress; }),
59
59
  __metadata("design:type", Array)
60
60
  ], AccountingCustomer.prototype, "addresses", void 0);
61
61
  __decorate([
@@ -3,9 +3,9 @@ import { AccountingCustomerRef } from "./accountingcustomerref";
3
3
  import { AccountingPaymentAllocation } from "./accountingpaymentallocation";
4
4
  import { InvoiceLineItem } from "./invoicelineitem";
5
5
  import { InvoiceStatus } from "./invoicestatus";
6
+ import { Items } from "./items";
6
7
  import { Metadata } from "./metadata";
7
8
  import { SupplementalData } from "./supplementaldata";
8
- import { WithholdingTaxitems } from "./withholdingtaxitems";
9
9
  export declare class AccountingInvoiceSalesOrderReference extends SpeakeasyBase {
10
10
  dataType?: string;
11
11
  id?: string;
@@ -232,5 +232,5 @@ export declare class AccountingInvoice extends SpeakeasyBase {
232
232
  * Amount of tax on the invoice.
233
233
  */
234
234
  totalTaxAmount: number;
235
- withholdingTax?: WithholdingTaxitems[];
235
+ withholdingTax?: Items[];
236
236
  }
@@ -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: withholdingtaxitems_1.WithholdingTaxitems }),
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 withholdingtaxitems_1.WithholdingTaxitems; }),
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 { Addressesitems } from "./addressesitems";
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?: Addressesitems[];
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 addressesitems_1 = require("./addressesitems");
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: addressesitems_1.Addressesitems }),
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 addressesitems_1.Addressesitems; }),
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
+ }