@codat/lending 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/README.md +36 -1
  2. package/dist/sdk/companies.d.ts +22 -7
  3. package/dist/sdk/companies.js +22 -7
  4. package/dist/sdk/models/operations/getcreateoperation.d.ts +1 -1
  5. package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +2 -2
  6. package/dist/sdk/models/shared/accountingbillcreditnote.js +3 -3
  7. package/dist/sdk/models/shared/accountingcreateaccountresponse.d.ts +171 -34
  8. package/dist/sdk/models/shared/accountingcreateaccountresponse.js +194 -4
  9. package/dist/sdk/models/shared/accountingcreatebankaccountresponse.d.ts +116 -22
  10. package/dist/sdk/models/shared/accountingcreatebankaccountresponse.js +118 -4
  11. package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.d.ts +12 -2
  12. package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.js +26 -4
  13. package/dist/sdk/models/shared/accountingcreatedirectcostresponse.d.ts +165 -18
  14. package/dist/sdk/models/shared/accountingcreatedirectcostresponse.js +150 -4
  15. package/dist/sdk/models/shared/accountingcreatepaymentresponse.d.ts +797 -675
  16. package/dist/sdk/models/shared/accountingcreatepaymentresponse.js +782 -4
  17. package/dist/sdk/models/shared/accountingcreatesupplierresponse.d.ts +69 -11
  18. package/dist/sdk/models/shared/accountingcreatesupplierresponse.js +99 -4
  19. package/dist/sdk/models/shared/accountingcreatetransferresponse.d.ts +81 -9
  20. package/dist/sdk/models/shared/accountingcreatetransferresponse.js +93 -4
  21. package/dist/sdk/models/shared/accountingcreditnote.d.ts +2 -2
  22. package/dist/sdk/models/shared/accountingcreditnote.js +3 -3
  23. package/dist/sdk/models/shared/accountingdirectcost.d.ts +11 -5
  24. package/dist/sdk/models/shared/accountingdirectcost.js +18 -11
  25. package/dist/sdk/models/shared/accountinginvoice.d.ts +10 -5
  26. package/dist/sdk/models/shared/accountinginvoice.js +11 -5
  27. package/dist/sdk/models/shared/accountingjournalentry.d.ts +3 -7
  28. package/dist/sdk/models/shared/accountingjournalentry.js +3 -3
  29. package/dist/sdk/models/shared/accounttransactionline.d.ts +3 -7
  30. package/dist/sdk/models/shared/accounttransactionline.js +3 -3
  31. package/dist/sdk/models/shared/accounttransactionlinerecordref.d.ts +30 -0
  32. package/dist/sdk/models/shared/accounttransactionlinerecordref.js +70 -0
  33. package/dist/sdk/models/shared/bankingtransactioncategory.d.ts +5 -1
  34. package/dist/sdk/models/shared/bankingtransactioncategory.js +5 -1
  35. package/dist/sdk/models/shared/company.d.ts +10 -0
  36. package/dist/sdk/models/shared/company.js +20 -1
  37. package/dist/sdk/models/shared/companyrequestbody.d.ts +5 -0
  38. package/dist/sdk/models/shared/companyrequestbody.js +7 -0
  39. package/dist/sdk/models/shared/connection.d.ts +2 -0
  40. package/dist/sdk/models/shared/connection.js +2 -0
  41. package/dist/sdk/models/shared/contactref.d.ts +9 -3
  42. package/dist/sdk/models/shared/contactref.js +9 -2
  43. package/dist/sdk/models/shared/directcostprototype.d.ts +11 -5
  44. package/dist/sdk/models/shared/directcostprototype.js +18 -11
  45. package/dist/sdk/models/shared/errormessage.d.ts +5 -0
  46. package/dist/sdk/models/shared/errormessage.js +7 -0
  47. package/dist/sdk/models/shared/errorvalidation.d.ts +9 -0
  48. package/dist/sdk/models/shared/errorvalidation.js +56 -0
  49. package/dist/sdk/models/shared/errorvalidationitem.d.ts +15 -0
  50. package/dist/sdk/models/shared/errorvalidationitem.js +55 -0
  51. package/dist/sdk/models/shared/index.d.ts +6 -0
  52. package/dist/sdk/models/shared/index.js +6 -0
  53. package/dist/sdk/models/shared/invoicelineitem.d.ts +0 -2
  54. package/dist/sdk/models/shared/items.d.ts +2 -6
  55. package/dist/sdk/models/shared/items.js +2 -7
  56. package/dist/sdk/models/shared/journalentryrecordref.d.ts +30 -0
  57. package/dist/sdk/models/shared/journalentryrecordref.js +70 -0
  58. package/dist/sdk/models/shared/journalline.d.ts +2 -2
  59. package/dist/sdk/models/shared/journalline.js +3 -3
  60. package/dist/sdk/models/shared/tracking.d.ts +2 -1
  61. package/dist/sdk/models/shared/tracking.js +3 -2
  62. package/dist/sdk/models/shared/trackingrecordref.d.ts +22 -0
  63. package/dist/sdk/models/shared/trackingrecordref.js +62 -0
  64. package/dist/sdk/models/shared/withholdingtaxitems.d.ts +11 -0
  65. package/dist/sdk/models/shared/withholdingtaxitems.js +50 -0
  66. package/dist/sdk/sdk.js +3 -3
  67. package/docs/sdk/models/operations/createcompanyresponse.md +7 -7
  68. package/docs/sdk/models/operations/createconnectionresponse.md +7 -7
  69. package/docs/sdk/models/operations/createsupplierrequest.md +7 -7
  70. package/docs/sdk/models/operations/getaccountingagedcreditorsreportresponse.md +7 -7
  71. package/docs/sdk/models/operations/getaccountingageddebtorsreportresponse.md +7 -7
  72. package/docs/sdk/models/operations/getaccountingbillcreditnoteresponse.md +7 -7
  73. package/docs/sdk/models/operations/getaccountingbillpaymentresponse.md +7 -7
  74. package/docs/sdk/models/operations/getaccountingcreditnoteresponse.md +7 -7
  75. package/docs/sdk/models/operations/getaccountingprofileresponse.md +7 -7
  76. package/docs/sdk/models/operations/getaccountingsupplierresponse.md +7 -7
  77. package/docs/sdk/models/operations/getbankingaccountresponse.md +7 -7
  78. package/docs/sdk/models/operations/getbankingtransactioncategoryresponse.md +7 -7
  79. package/docs/sdk/models/operations/getbankingtransactionresponse.md +7 -7
  80. package/docs/sdk/models/operations/getcategorizedbalancesheetstatementresponse.md +7 -7
  81. package/docs/sdk/models/operations/getcategorizedprofitandlossstatementresponse.md +7 -7
  82. package/docs/sdk/models/operations/getcommercecustomerresponse.md +7 -7
  83. package/docs/sdk/models/operations/getcommercedisputeresponse.md +7 -7
  84. package/docs/sdk/models/operations/getcommercelocationresponse.md +7 -7
  85. package/docs/sdk/models/operations/getcommerceorderresponse.md +7 -7
  86. package/docs/sdk/models/operations/getcommerceproductcategoryresponse.md +7 -7
  87. package/docs/sdk/models/operations/getcompanyresponse.md +7 -7
  88. package/docs/sdk/models/operations/getconnectionresponse.md +7 -7
  89. package/docs/sdk/models/operations/getcreateoperationrequest.md +4 -4
  90. package/docs/sdk/models/operations/getloansummaryresponse.md +7 -7
  91. package/docs/sdk/models/operations/getpulloperationresponse.md +7 -7
  92. package/docs/sdk/models/operations/listaccountingaccountsresponse.md +7 -7
  93. package/docs/sdk/models/operations/listaccountingaccounttransactionsresponse.md +7 -7
  94. package/docs/sdk/models/operations/listaccountingbankaccountsresponse.md +7 -7
  95. package/docs/sdk/models/operations/listaccountingbankaccounttransactionsresponse.md +7 -7
  96. package/docs/sdk/models/operations/listaccountingbillcreditnotesresponse.md +7 -7
  97. package/docs/sdk/models/operations/listaccountingbillpaymentsresponse.md +7 -7
  98. package/docs/sdk/models/operations/listaccountingbillsresponse.md +7 -7
  99. package/docs/sdk/models/operations/listaccountingcreditnotesresponse.md +7 -7
  100. package/docs/sdk/models/operations/listaccountingcustomersresponse.md +7 -7
  101. package/docs/sdk/models/operations/listaccountingdirectcostsresponse.md +7 -7
  102. package/docs/sdk/models/operations/listaccountingdirectincomesresponse.md +7 -7
  103. package/docs/sdk/models/operations/listaccountinginvoicesresponse.md +7 -7
  104. package/docs/sdk/models/operations/listaccountingjournalentriesresponse.md +7 -7
  105. package/docs/sdk/models/operations/listaccountingjournalsresponse.md +7 -7
  106. package/docs/sdk/models/operations/listaccountingpaymentsresponse.md +7 -7
  107. package/docs/sdk/models/operations/listaccountingsuppliersresponse.md +7 -7
  108. package/docs/sdk/models/operations/listaccountingtransfersresponse.md +7 -7
  109. package/docs/sdk/models/operations/listbankingaccountbalancesresponse.md +7 -7
  110. package/docs/sdk/models/operations/listbankingaccountsresponse.md +7 -7
  111. package/docs/sdk/models/operations/listbankingtransactioncategoriesresponse.md +7 -7
  112. package/docs/sdk/models/operations/listbankingtransactionsresponse.md +7 -7
  113. package/docs/sdk/models/operations/listcommercecustomersresponse.md +7 -7
  114. package/docs/sdk/models/operations/listcommercedisputesresponse.md +7 -7
  115. package/docs/sdk/models/operations/listcommercelocationsresponse.md +7 -7
  116. package/docs/sdk/models/operations/listcommerceordersresponse.md +7 -7
  117. package/docs/sdk/models/operations/listcommercepaymentmethodsresponse.md +7 -7
  118. package/docs/sdk/models/operations/listcommercepaymentsresponse.md +7 -7
  119. package/docs/sdk/models/operations/listcommerceproductcategoriesresponse.md +7 -7
  120. package/docs/sdk/models/operations/listcommerceproductsresponse.md +7 -7
  121. package/docs/sdk/models/operations/listcommercetransactionsresponse.md +7 -7
  122. package/docs/sdk/models/operations/listcompaniesresponse.md +7 -7
  123. package/docs/sdk/models/operations/listconnectionsresponse.md +7 -7
  124. package/docs/sdk/models/operations/listcreateoperationsresponse.md +7 -7
  125. package/docs/sdk/models/operations/listdataintegritydetailsresponse.md +7 -7
  126. package/docs/sdk/models/operations/listloantransactionsresponse.md +7 -7
  127. package/docs/sdk/models/operations/listpulloperationsresponse.md +7 -7
  128. package/docs/sdk/models/operations/refreshdatatyperesponse.md +7 -7
  129. package/docs/sdk/models/operations/unlinkconnectionresponse.md +7 -7
  130. package/docs/sdk/models/operations/updatecompanyresponse.md +7 -7
  131. package/docs/sdk/models/shared/accountingaccounts.md +7 -7
  132. package/docs/sdk/models/shared/accountingaccounttransactions.md +7 -7
  133. package/docs/sdk/models/shared/accountingbankaccounts.md +7 -7
  134. package/docs/sdk/models/shared/accountingbanktransactions.md +7 -7
  135. package/docs/sdk/models/shared/accountingbillcreditnote.md +1 -1
  136. package/docs/sdk/models/shared/accountingbillcreditnotes.md +7 -7
  137. package/docs/sdk/models/shared/accountingbillpayment.md +1 -1
  138. package/docs/sdk/models/shared/accountingbillpayments.md +7 -7
  139. package/docs/sdk/models/shared/accountingbills.md +7 -7
  140. package/docs/sdk/models/shared/accountingcreateaccountresponse.md +16 -16
  141. package/docs/sdk/models/shared/accountingcreateaccountresponseaccountingaccount.md +54 -0
  142. package/docs/sdk/models/shared/accountingcreateaccountresponsevaliddatatypelinks.md +50 -0
  143. package/docs/sdk/models/shared/accountingcreatebankaccountresponse.md +16 -16
  144. package/docs/sdk/models/shared/accountingcreatebankaccountresponseaccountingbankaccount.md +42 -0
  145. package/docs/sdk/models/shared/accountingcreatebankaccounttransactions.md +11 -0
  146. package/docs/sdk/models/shared/accountingcreatebanktransactionsresponse.md +1 -1
  147. package/docs/sdk/models/shared/accountingcreatedirectcostresponse.md +16 -16
  148. package/docs/sdk/models/shared/accountingcreatedirectcostresponseaccountingdirectcost.md +41 -0
  149. package/docs/sdk/models/shared/accountingcreatedirectcostresponsecontactreference.md +11 -0
  150. package/docs/sdk/models/shared/accountingcreatedirectcostresponsedatatype.md +11 -0
  151. package/docs/sdk/models/shared/accountingcreatepaymentresponse.md +16 -16
  152. package/docs/sdk/models/shared/accountingcreatepaymentresponseaccountingpayment.md +703 -0
  153. package/docs/sdk/models/shared/accountingcreatesupplierresponse.md +1 -1
  154. package/docs/sdk/models/shared/accountingcreatesupplierresponseaccountingsupplier.md +29 -0
  155. package/docs/sdk/models/shared/accountingcreatetransferresponse.md +1 -1
  156. package/docs/sdk/models/shared/accountingcreatetransferresponseaccountingtransfer.md +25 -0
  157. package/docs/sdk/models/shared/accountingcreditnote.md +1 -1
  158. package/docs/sdk/models/shared/accountingcreditnotes.md +7 -7
  159. package/docs/sdk/models/shared/accountingcustomers.md +7 -7
  160. package/docs/sdk/models/shared/accountingdirectcost.md +1 -1
  161. package/docs/sdk/models/shared/accountingdirectcostcontactreference.md +11 -0
  162. package/docs/sdk/models/shared/accountingdirectcostdatatype.md +11 -0
  163. package/docs/sdk/models/shared/accountingdirectcosts.md +7 -7
  164. package/docs/sdk/models/shared/accountingdirectincomes.md +7 -7
  165. package/docs/sdk/models/shared/accountinginvoice.md +1 -1
  166. package/docs/sdk/models/shared/accountinginvoicedatatype.md +10 -0
  167. package/docs/sdk/models/shared/accountinginvoices.md +7 -7
  168. package/docs/sdk/models/shared/accountingjournalentries.md +7 -7
  169. package/docs/sdk/models/shared/accountingjournalentry.md +1 -1
  170. package/docs/sdk/models/shared/accountingjournals.md +7 -7
  171. package/docs/sdk/models/shared/accountingpayment.md +1 -1
  172. package/docs/sdk/models/shared/accountingpayments.md +7 -7
  173. package/docs/sdk/models/shared/accountingsuppliers.md +7 -7
  174. package/docs/sdk/models/shared/accountingtransfers.md +7 -7
  175. package/docs/sdk/models/shared/accounts.md +1 -1
  176. package/docs/sdk/models/shared/accounttransactionline.md +5 -5
  177. package/docs/sdk/models/shared/accounttransactionlinerecordref.md +11 -0
  178. package/docs/sdk/models/shared/accounttransactionlinerecordrefdatatype.md +20 -0
  179. package/docs/sdk/models/shared/bankingaccountbalances.md +7 -7
  180. package/docs/sdk/models/shared/bankingaccounts.md +7 -7
  181. package/docs/sdk/models/shared/bankingtransactioncategories.md +7 -7
  182. package/docs/sdk/models/shared/bankingtransactioncategory.md +3 -1
  183. package/docs/sdk/models/shared/bankingtransactions.md +7 -7
  184. package/docs/sdk/models/shared/commercecustomers.md +7 -7
  185. package/docs/sdk/models/shared/commercedisputes.md +7 -7
  186. package/docs/sdk/models/shared/commercelocations.md +7 -7
  187. package/docs/sdk/models/shared/commerceorders.md +7 -7
  188. package/docs/sdk/models/shared/commercepayment.md +1 -1
  189. package/docs/sdk/models/shared/commercepaymentmethods.md +7 -7
  190. package/docs/sdk/models/shared/commercepayments.md +7 -7
  191. package/docs/sdk/models/shared/commerceproductcategories.md +7 -7
  192. package/docs/sdk/models/shared/commerceproducts.md +7 -7
  193. package/docs/sdk/models/shared/commercetransactions.md +7 -7
  194. package/docs/sdk/models/shared/companies.md +7 -7
  195. package/docs/sdk/models/shared/company.md +1 -0
  196. package/docs/sdk/models/shared/companyrequestbody.md +1 -0
  197. package/docs/sdk/models/shared/connections.md +7 -7
  198. package/docs/sdk/models/shared/contactref.md +4 -4
  199. package/docs/sdk/models/shared/contactrefdatatype.md +11 -0
  200. package/docs/sdk/models/shared/contactreference.md +11 -0
  201. package/docs/sdk/models/shared/dataintegritydetails.md +7 -7
  202. package/docs/sdk/models/shared/directcostprototype.md +1 -1
  203. package/docs/sdk/models/shared/directcostprototypedatatype.md +11 -0
  204. package/docs/sdk/models/shared/enhancedcashflowtransaction.md +2 -2
  205. package/docs/sdk/models/shared/enhancedcashflowtransactions.md +5 -5
  206. package/docs/sdk/models/shared/enhancedinvoicesreport.md +4 -4
  207. package/docs/sdk/models/shared/errormessage.md +9 -8
  208. package/docs/sdk/models/shared/errorvalidation.md +11 -0
  209. package/docs/sdk/models/shared/errorvalidationitem.md +10 -0
  210. package/docs/sdk/models/shared/groupreference.md +8 -0
  211. package/docs/sdk/models/shared/invoicelineitem.md +1 -1
  212. package/docs/sdk/models/shared/items.md +3 -4
  213. package/docs/sdk/models/shared/journalentryrecordref.md +11 -0
  214. package/docs/sdk/models/shared/journalentryrecordrefdatatype.md +20 -0
  215. package/docs/sdk/models/shared/journallinetracking.md +3 -3
  216. package/docs/sdk/models/shared/pulloperations.md +7 -7
  217. package/docs/sdk/models/shared/pushoperations.md +7 -7
  218. package/docs/sdk/models/shared/salesorderreference.md +4 -4
  219. package/docs/sdk/models/shared/sourcetype.md +2 -0
  220. package/docs/sdk/models/shared/tracking.md +1 -1
  221. package/docs/sdk/models/shared/trackingrecordref.md +11 -0
  222. package/docs/sdk/models/shared/trackingrecordrefdatatype.md +12 -0
  223. package/docs/sdk/models/shared/withholdingtaxitems.md +9 -0
  224. package/docs/sdks/accountbalances/README.md +1 -1
  225. package/docs/sdks/accounts/README.md +2 -2
  226. package/docs/sdks/accounttransactions/README.md +2 -2
  227. package/docs/sdks/balancesheet/README.md +2 -2
  228. package/docs/sdks/bankaccounts/README.md +2 -2
  229. package/docs/sdks/banktransactions/README.md +2 -2
  230. package/docs/sdks/billcreditnotes/README.md +2 -2
  231. package/docs/sdks/billpayments/README.md +2 -2
  232. package/docs/sdks/bills/README.md +5 -5
  233. package/docs/sdks/cashflow/README.md +1 -1
  234. package/docs/sdks/categorizedstatement/README.md +1 -1
  235. package/docs/sdks/codatlendingaccountingbankdata/README.md +1 -1
  236. package/docs/sdks/codatlendingaccounts/README.md +2 -2
  237. package/docs/sdks/codatlendingbankingtransactions/README.md +2 -2
  238. package/docs/sdks/codatlendingcustomers/README.md +2 -2
  239. package/docs/sdks/codatlendingdirectcosts/README.md +5 -5
  240. package/docs/sdks/codatlendingfinancialstatementsaccounts/README.md +2 -2
  241. package/docs/sdks/codatlendingloanwritebackaccounts/README.md +2 -2
  242. package/docs/sdks/codatlendingpayments/README.md +4 -3
  243. package/docs/sdks/codatlendingreports/README.md +2 -2
  244. package/docs/sdks/codatlendingsalespayments/README.md +2 -2
  245. package/docs/sdks/codatlendingsuppliers/README.md +26 -7
  246. package/docs/sdks/codatlendingtransactions/README.md +2 -2
  247. package/docs/sdks/codatlendingtransfers/README.md +2 -2
  248. package/docs/sdks/companies/README.md +38 -13
  249. package/docs/sdks/companyinfo/README.md +2 -2
  250. package/docs/sdks/connections/README.md +5 -5
  251. package/docs/sdks/createoperations/README.md +2 -2
  252. package/docs/sdks/creditnotes/README.md +2 -2
  253. package/docs/sdks/customers/README.md +5 -5
  254. package/docs/sdks/dataintegrity/README.md +3 -3
  255. package/docs/sdks/directcosts/README.md +10 -11
  256. package/docs/sdks/directincomes/README.md +5 -5
  257. package/docs/sdks/disputes/README.md +2 -2
  258. package/docs/sdks/excelreports/README.md +3 -3
  259. package/docs/sdks/fileupload/README.md +3 -3
  260. package/docs/sdks/invoices/README.md +7 -7
  261. package/docs/sdks/journalentries/README.md +2 -2
  262. package/docs/sdks/journals/README.md +2 -2
  263. package/docs/sdks/liabilities/README.md +4 -4
  264. package/docs/sdks/locations/README.md +2 -2
  265. package/docs/sdks/managedata/README.md +1 -1
  266. package/docs/sdks/metrics/README.md +3 -3
  267. package/docs/sdks/orders/README.md +2 -2
  268. package/docs/sdks/paymentmethods/README.md +2 -2
  269. package/docs/sdks/payments/README.md +2 -2
  270. package/docs/sdks/productcategories/README.md +2 -2
  271. package/docs/sdks/products/README.md +2 -2
  272. package/docs/sdks/profitandloss/README.md +2 -2
  273. package/docs/sdks/pulloperations/README.md +2 -2
  274. package/docs/sdks/refresh/README.md +2 -2
  275. package/docs/sdks/reports/README.md +4 -4
  276. package/docs/sdks/suppliers/README.md +5 -5
  277. package/docs/sdks/transactioncategories/README.md +2 -2
  278. package/docs/sdks/transfers/README.md +3 -4
  279. package/package.json +1 -1
  280. package/docs/sdk/models/shared/accountingdirectcostcontactref.md +0 -11
  281. package/docs/sdk/models/shared/directcostprototypecontactref.md +0 -11
@@ -1,9 +1,76 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
- import { AccountingSupplier } from "./accountingsupplier";
2
+ import { AccountingAddress } from "./accountingaddress";
3
3
  import { DataType } from "./datatype";
4
+ import { Metadata } from "./metadata";
4
5
  import { PushOperationChange } from "./pushoperationchange";
5
6
  import { PushOperationStatus } from "./pushoperationstatus";
7
+ import { SupplementalData } from "./supplementaldata";
8
+ import { SupplierStatus } from "./supplierstatus";
6
9
  import { Validation } from "./validation";
10
+ /**
11
+ * > View the coverage for suppliers in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers" target="_blank">Data coverage explorer</a>.
12
+ *
13
+ * @remarks
14
+ *
15
+ * ## Overview
16
+ *
17
+ * From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/lending-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/lending-api#/schemas/Bill).
18
+ *
19
+ * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
20
+ */
21
+ export declare class AccountingCreateSupplierResponseAccountingSupplier extends SpeakeasyBase {
22
+ /**
23
+ * An array of Addresses.
24
+ */
25
+ addresses?: AccountingAddress[];
26
+ /**
27
+ * Name of the main contact for the supplier.
28
+ */
29
+ contactName?: string;
30
+ /**
31
+ * Default currency the supplier's transactional data is recorded in.
32
+ */
33
+ defaultCurrency?: string;
34
+ /**
35
+ * Email address that the supplier may be contacted on.
36
+ */
37
+ emailAddress?: string;
38
+ /**
39
+ * Identifier for the supplier, unique to the company in the accounting platform.
40
+ */
41
+ id?: string;
42
+ metadata?: Metadata;
43
+ modifiedDate?: string;
44
+ /**
45
+ * Phone number that the supplier may be contacted on.
46
+ */
47
+ phone?: string;
48
+ /**
49
+ * Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House.
50
+ */
51
+ registrationNumber?: string;
52
+ sourceModifiedDate?: string;
53
+ /**
54
+ * Status of the supplier.
55
+ */
56
+ status: SupplierStatus;
57
+ /**
58
+ * Supplemental data is additional data you can include in our standard data types.
59
+ *
60
+ * @remarks
61
+ *
62
+ * It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data.
63
+ */
64
+ supplementalData?: SupplementalData;
65
+ /**
66
+ * Name of the supplier as recorded in the accounting system, typically the company name.
67
+ */
68
+ supplierName?: string;
69
+ /**
70
+ * Supplier's company tax number.
71
+ */
72
+ taxNumber?: string;
73
+ }
7
74
  export declare class AccountingCreateSupplierResponse extends SpeakeasyBase {
8
75
  /**
9
76
  * Contains a single entry that communicates which record has changed and the manner in which it changed.
@@ -37,16 +104,7 @@ export declare class AccountingCreateSupplierResponse extends SpeakeasyBase {
37
104
  * > 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
105
  */
39
106
  completedOnUtc?: string;
40
- /**
41
- * > View the coverage for suppliers in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers" target="_blank">Data coverage explorer</a>.
42
- *
43
- * @remarks
44
- *
45
- * ## Overview
46
- *
47
- * From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/lending-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/lending-api#/schemas/Bill).
48
- */
49
- data?: AccountingSupplier;
107
+ data?: AccountingCreateSupplierResponseAccountingSupplier;
50
108
  /**
51
109
  * Unique identifier for a company's data connection.
52
110
  */
@@ -27,14 +27,109 @@ 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.AccountingCreateSupplierResponse = void 0;
30
+ exports.AccountingCreateSupplierResponse = exports.AccountingCreateSupplierResponseAccountingSupplier = void 0;
31
31
  var utils_1 = require("../../../internal/utils");
32
- var accountingsupplier_1 = require("./accountingsupplier");
32
+ var accountingaddress_1 = require("./accountingaddress");
33
33
  var datatype_1 = require("./datatype");
34
+ var metadata_1 = require("./metadata");
34
35
  var pushoperationchange_1 = require("./pushoperationchange");
35
36
  var pushoperationstatus_1 = require("./pushoperationstatus");
37
+ var supplementaldata_1 = require("./supplementaldata");
38
+ var supplierstatus_1 = require("./supplierstatus");
36
39
  var validation_1 = require("./validation");
37
40
  var class_transformer_1 = require("class-transformer");
41
+ /**
42
+ * > View the coverage for suppliers in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers" target="_blank">Data coverage explorer</a>.
43
+ *
44
+ * @remarks
45
+ *
46
+ * ## Overview
47
+ *
48
+ * From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/lending-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/lending-api#/schemas/Bill).
49
+ *
50
+ * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
51
+ */
52
+ var AccountingCreateSupplierResponseAccountingSupplier = /** @class */ (function (_super) {
53
+ __extends(AccountingCreateSupplierResponseAccountingSupplier, _super);
54
+ function AccountingCreateSupplierResponseAccountingSupplier() {
55
+ return _super !== null && _super.apply(this, arguments) || this;
56
+ }
57
+ __decorate([
58
+ (0, utils_1.SpeakeasyMetadata)({ elemType: accountingaddress_1.AccountingAddress }),
59
+ (0, class_transformer_1.Expose)({ name: "addresses" }),
60
+ (0, class_transformer_1.Type)(function () { return accountingaddress_1.AccountingAddress; }),
61
+ __metadata("design:type", Array)
62
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "addresses", void 0);
63
+ __decorate([
64
+ (0, utils_1.SpeakeasyMetadata)(),
65
+ (0, class_transformer_1.Expose)({ name: "contactName" }),
66
+ __metadata("design:type", String)
67
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "contactName", void 0);
68
+ __decorate([
69
+ (0, utils_1.SpeakeasyMetadata)(),
70
+ (0, class_transformer_1.Expose)({ name: "defaultCurrency" }),
71
+ __metadata("design:type", String)
72
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "defaultCurrency", void 0);
73
+ __decorate([
74
+ (0, utils_1.SpeakeasyMetadata)(),
75
+ (0, class_transformer_1.Expose)({ name: "emailAddress" }),
76
+ __metadata("design:type", String)
77
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "emailAddress", void 0);
78
+ __decorate([
79
+ (0, utils_1.SpeakeasyMetadata)(),
80
+ (0, class_transformer_1.Expose)({ name: "id" }),
81
+ __metadata("design:type", String)
82
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "id", void 0);
83
+ __decorate([
84
+ (0, utils_1.SpeakeasyMetadata)(),
85
+ (0, class_transformer_1.Expose)({ name: "metadata" }),
86
+ (0, class_transformer_1.Type)(function () { return metadata_1.Metadata; }),
87
+ __metadata("design:type", metadata_1.Metadata)
88
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "metadata", void 0);
89
+ __decorate([
90
+ (0, utils_1.SpeakeasyMetadata)(),
91
+ (0, class_transformer_1.Expose)({ name: "modifiedDate" }),
92
+ __metadata("design:type", String)
93
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "modifiedDate", void 0);
94
+ __decorate([
95
+ (0, utils_1.SpeakeasyMetadata)(),
96
+ (0, class_transformer_1.Expose)({ name: "phone" }),
97
+ __metadata("design:type", String)
98
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "phone", void 0);
99
+ __decorate([
100
+ (0, utils_1.SpeakeasyMetadata)(),
101
+ (0, class_transformer_1.Expose)({ name: "registrationNumber" }),
102
+ __metadata("design:type", String)
103
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "registrationNumber", void 0);
104
+ __decorate([
105
+ (0, utils_1.SpeakeasyMetadata)(),
106
+ (0, class_transformer_1.Expose)({ name: "sourceModifiedDate" }),
107
+ __metadata("design:type", String)
108
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "sourceModifiedDate", void 0);
109
+ __decorate([
110
+ (0, utils_1.SpeakeasyMetadata)(),
111
+ (0, class_transformer_1.Expose)({ name: "status" }),
112
+ __metadata("design:type", String)
113
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "status", void 0);
114
+ __decorate([
115
+ (0, utils_1.SpeakeasyMetadata)(),
116
+ (0, class_transformer_1.Expose)({ name: "supplementalData" }),
117
+ (0, class_transformer_1.Type)(function () { return supplementaldata_1.SupplementalData; }),
118
+ __metadata("design:type", supplementaldata_1.SupplementalData)
119
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "supplementalData", void 0);
120
+ __decorate([
121
+ (0, utils_1.SpeakeasyMetadata)(),
122
+ (0, class_transformer_1.Expose)({ name: "supplierName" }),
123
+ __metadata("design:type", String)
124
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "supplierName", void 0);
125
+ __decorate([
126
+ (0, utils_1.SpeakeasyMetadata)(),
127
+ (0, class_transformer_1.Expose)({ name: "taxNumber" }),
128
+ __metadata("design:type", String)
129
+ ], AccountingCreateSupplierResponseAccountingSupplier.prototype, "taxNumber", void 0);
130
+ return AccountingCreateSupplierResponseAccountingSupplier;
131
+ }(utils_1.SpeakeasyBase));
132
+ exports.AccountingCreateSupplierResponseAccountingSupplier = AccountingCreateSupplierResponseAccountingSupplier;
38
133
  var AccountingCreateSupplierResponse = /** @class */ (function (_super) {
39
134
  __extends(AccountingCreateSupplierResponse, _super);
40
135
  function AccountingCreateSupplierResponse() {
@@ -59,8 +154,8 @@ var AccountingCreateSupplierResponse = /** @class */ (function (_super) {
59
154
  __decorate([
60
155
  (0, utils_1.SpeakeasyMetadata)(),
61
156
  (0, class_transformer_1.Expose)({ name: "data" }),
62
- (0, class_transformer_1.Type)(function () { return accountingsupplier_1.AccountingSupplier; }),
63
- __metadata("design:type", accountingsupplier_1.AccountingSupplier)
157
+ (0, class_transformer_1.Type)(function () { return AccountingCreateSupplierResponseAccountingSupplier; }),
158
+ __metadata("design:type", AccountingCreateSupplierResponseAccountingSupplier)
64
159
  ], AccountingCreateSupplierResponse.prototype, "data", void 0);
65
160
  __decorate([
66
161
  (0, utils_1.SpeakeasyMetadata)(),
@@ -1,9 +1,88 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
- import { AccountingTransfer } from "./accountingtransfer";
2
+ import { ContactRef } from "./contactref";
3
3
  import { DataType } from "./datatype";
4
+ import { Metadata } from "./metadata";
4
5
  import { PushOperationChange } from "./pushoperationchange";
5
6
  import { PushOperationStatus } from "./pushoperationstatus";
7
+ import { RecordRef } from "./recordref";
8
+ import { SupplementalData } from "./supplementaldata";
9
+ import { TrackingCategoryRef } from "./trackingcategoryref";
10
+ import { TransferAccount } from "./transferaccount";
6
11
  import { Validation } from "./validation";
12
+ /**
13
+ * > View the coverage for transfers in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=transfers" target="_blank">Data coverage explorer</a>.
14
+ *
15
+ * @remarks
16
+ *
17
+ * A transfer records the movement of money between two bank accounts, or between a bank account and a nominal account. It is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction).
18
+ *
19
+ * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
20
+ */
21
+ export declare class AccountingCreateTransferResponseAccountingTransfer extends SpeakeasyBase {
22
+ /**
23
+ * A customer or supplier associated with the direct cost.
24
+ */
25
+ contactRef?: ContactRef;
26
+ /**
27
+ * 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:
28
+ *
29
+ * @remarks
30
+ *
31
+ * ```
32
+ * 2020-10-08T22:40:50Z
33
+ * 2021-01-01T00:00:00
34
+ * ```
35
+ *
36
+ *
37
+ *
38
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
39
+ *
40
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
41
+ * - Unqualified local time: `2021-11-15T01:00:00`
42
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
43
+ *
44
+ * > Time zones
45
+ * >
46
+ * > Not all dates from Codat will contain information about time zones.
47
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
48
+ */
49
+ date?: string;
50
+ /**
51
+ * List of selected transactions to associate with the transfer. Use this field to include transactions which are posted to the _undeposited funds_ (or other holding) account within the transfer.
52
+ */
53
+ depositedRecordRefs?: RecordRef[];
54
+ /**
55
+ * Description of the transfer.
56
+ */
57
+ description?: string;
58
+ /**
59
+ * Account details of the account sending or receiving the transfer.
60
+ */
61
+ from?: TransferAccount;
62
+ /**
63
+ * Unique identifier for the transfer.
64
+ */
65
+ id?: string;
66
+ metadata?: Metadata;
67
+ modifiedDate?: string;
68
+ sourceModifiedDate?: string;
69
+ /**
70
+ * Supplemental data is additional data you can include in our standard data types.
71
+ *
72
+ * @remarks
73
+ *
74
+ * It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data.
75
+ */
76
+ supplementalData?: SupplementalData;
77
+ /**
78
+ * Account details of the account sending or receiving the transfer.
79
+ */
80
+ to?: TransferAccount;
81
+ /**
82
+ * Reference to the tracking categories this transfer is being tracked against.
83
+ */
84
+ trackingCategoryRefs?: TrackingCategoryRef[];
85
+ }
7
86
  export declare class AccountingCreateTransferResponse extends SpeakeasyBase {
8
87
  /**
9
88
  * Contains a single entry that communicates which record has changed and the manner in which it changed.
@@ -37,14 +116,7 @@ export declare class AccountingCreateTransferResponse extends SpeakeasyBase {
37
116
  * > 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
117
  */
39
118
  completedOnUtc?: string;
40
- /**
41
- * > View the coverage for transfers in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=transfers" target="_blank">Data coverage explorer</a>.
42
- *
43
- * @remarks
44
- *
45
- * A transfer records the movement of money between two bank accounts, or between a bank account and a nominal account. It is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction).
46
- */
47
- data?: AccountingTransfer;
119
+ data?: AccountingCreateTransferResponseAccountingTransfer;
48
120
  /**
49
121
  * Unique identifier for a company's data connection.
50
122
  */
@@ -27,14 +27,103 @@ 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.AccountingCreateTransferResponse = void 0;
30
+ exports.AccountingCreateTransferResponse = exports.AccountingCreateTransferResponseAccountingTransfer = void 0;
31
31
  var utils_1 = require("../../../internal/utils");
32
- var accountingtransfer_1 = require("./accountingtransfer");
32
+ var contactref_1 = require("./contactref");
33
33
  var datatype_1 = require("./datatype");
34
+ var metadata_1 = require("./metadata");
34
35
  var pushoperationchange_1 = require("./pushoperationchange");
35
36
  var pushoperationstatus_1 = require("./pushoperationstatus");
37
+ var recordref_1 = require("./recordref");
38
+ var supplementaldata_1 = require("./supplementaldata");
39
+ var trackingcategoryref_1 = require("./trackingcategoryref");
40
+ var transferaccount_1 = require("./transferaccount");
36
41
  var validation_1 = require("./validation");
37
42
  var class_transformer_1 = require("class-transformer");
43
+ /**
44
+ * > View the coverage for transfers in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=transfers" target="_blank">Data coverage explorer</a>.
45
+ *
46
+ * @remarks
47
+ *
48
+ * A transfer records the movement of money between two bank accounts, or between a bank account and a nominal account. It is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction).
49
+ *
50
+ * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
51
+ */
52
+ var AccountingCreateTransferResponseAccountingTransfer = /** @class */ (function (_super) {
53
+ __extends(AccountingCreateTransferResponseAccountingTransfer, _super);
54
+ function AccountingCreateTransferResponseAccountingTransfer() {
55
+ return _super !== null && _super.apply(this, arguments) || this;
56
+ }
57
+ __decorate([
58
+ (0, utils_1.SpeakeasyMetadata)(),
59
+ (0, class_transformer_1.Expose)({ name: "contactRef" }),
60
+ (0, class_transformer_1.Type)(function () { return contactref_1.ContactRef; }),
61
+ __metadata("design:type", contactref_1.ContactRef)
62
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "contactRef", void 0);
63
+ __decorate([
64
+ (0, utils_1.SpeakeasyMetadata)(),
65
+ (0, class_transformer_1.Expose)({ name: "date" }),
66
+ __metadata("design:type", String)
67
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "date", void 0);
68
+ __decorate([
69
+ (0, utils_1.SpeakeasyMetadata)({ elemType: recordref_1.RecordRef }),
70
+ (0, class_transformer_1.Expose)({ name: "depositedRecordRefs" }),
71
+ (0, class_transformer_1.Type)(function () { return recordref_1.RecordRef; }),
72
+ __metadata("design:type", Array)
73
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "depositedRecordRefs", void 0);
74
+ __decorate([
75
+ (0, utils_1.SpeakeasyMetadata)(),
76
+ (0, class_transformer_1.Expose)({ name: "description" }),
77
+ __metadata("design:type", String)
78
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "description", void 0);
79
+ __decorate([
80
+ (0, utils_1.SpeakeasyMetadata)(),
81
+ (0, class_transformer_1.Expose)({ name: "from" }),
82
+ (0, class_transformer_1.Type)(function () { return transferaccount_1.TransferAccount; }),
83
+ __metadata("design:type", transferaccount_1.TransferAccount)
84
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "from", void 0);
85
+ __decorate([
86
+ (0, utils_1.SpeakeasyMetadata)(),
87
+ (0, class_transformer_1.Expose)({ name: "id" }),
88
+ __metadata("design:type", String)
89
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "id", void 0);
90
+ __decorate([
91
+ (0, utils_1.SpeakeasyMetadata)(),
92
+ (0, class_transformer_1.Expose)({ name: "metadata" }),
93
+ (0, class_transformer_1.Type)(function () { return metadata_1.Metadata; }),
94
+ __metadata("design:type", metadata_1.Metadata)
95
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "metadata", void 0);
96
+ __decorate([
97
+ (0, utils_1.SpeakeasyMetadata)(),
98
+ (0, class_transformer_1.Expose)({ name: "modifiedDate" }),
99
+ __metadata("design:type", String)
100
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "modifiedDate", void 0);
101
+ __decorate([
102
+ (0, utils_1.SpeakeasyMetadata)(),
103
+ (0, class_transformer_1.Expose)({ name: "sourceModifiedDate" }),
104
+ __metadata("design:type", String)
105
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "sourceModifiedDate", void 0);
106
+ __decorate([
107
+ (0, utils_1.SpeakeasyMetadata)(),
108
+ (0, class_transformer_1.Expose)({ name: "supplementalData" }),
109
+ (0, class_transformer_1.Type)(function () { return supplementaldata_1.SupplementalData; }),
110
+ __metadata("design:type", supplementaldata_1.SupplementalData)
111
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "supplementalData", void 0);
112
+ __decorate([
113
+ (0, utils_1.SpeakeasyMetadata)(),
114
+ (0, class_transformer_1.Expose)({ name: "to" }),
115
+ (0, class_transformer_1.Type)(function () { return transferaccount_1.TransferAccount; }),
116
+ __metadata("design:type", transferaccount_1.TransferAccount)
117
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "to", void 0);
118
+ __decorate([
119
+ (0, utils_1.SpeakeasyMetadata)({ elemType: trackingcategoryref_1.TrackingCategoryRef }),
120
+ (0, class_transformer_1.Expose)({ name: "trackingCategoryRefs" }),
121
+ (0, class_transformer_1.Type)(function () { return trackingcategoryref_1.TrackingCategoryRef; }),
122
+ __metadata("design:type", Array)
123
+ ], AccountingCreateTransferResponseAccountingTransfer.prototype, "trackingCategoryRefs", void 0);
124
+ return AccountingCreateTransferResponseAccountingTransfer;
125
+ }(utils_1.SpeakeasyBase));
126
+ exports.AccountingCreateTransferResponseAccountingTransfer = AccountingCreateTransferResponseAccountingTransfer;
38
127
  var AccountingCreateTransferResponse = /** @class */ (function (_super) {
39
128
  __extends(AccountingCreateTransferResponse, _super);
40
129
  function AccountingCreateTransferResponse() {
@@ -59,8 +148,8 @@ var AccountingCreateTransferResponse = /** @class */ (function (_super) {
59
148
  __decorate([
60
149
  (0, utils_1.SpeakeasyMetadata)(),
61
150
  (0, class_transformer_1.Expose)({ name: "data" }),
62
- (0, class_transformer_1.Type)(function () { return accountingtransfer_1.AccountingTransfer; }),
63
- __metadata("design:type", accountingtransfer_1.AccountingTransfer)
151
+ (0, class_transformer_1.Type)(function () { return AccountingCreateTransferResponseAccountingTransfer; }),
152
+ __metadata("design:type", AccountingCreateTransferResponseAccountingTransfer)
64
153
  ], AccountingCreateTransferResponse.prototype, "data", void 0);
65
154
  __decorate([
66
155
  (0, utils_1.SpeakeasyMetadata)(),
@@ -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";
7
6
  import { Metadata } from "./metadata";
8
7
  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
  *
@@ -185,5 +185,5 @@ export declare class AccountingCreditNote extends SpeakeasyBase {
185
185
  * Any tax applied to the credit note amount.
186
186
  */
187
187
  totalTaxAmount: number;
188
- withholdingTax?: Items[];
188
+ withholdingTax?: WithholdingTaxItems[];
189
189
  }
@@ -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");
37
36
  var metadata_1 = require("./metadata");
38
37
  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: items_1.Items }),
182
+ (0, utils_1.SpeakeasyMetadata)({ elemType: withholdingtaxitems_1.WithholdingTaxItems }),
183
183
  (0, class_transformer_1.Expose)({ name: "withholdingTax" }),
184
- (0, class_transformer_1.Type)(function () { return items_1.Items; }),
184
+ (0, class_transformer_1.Type)(function () { return withholdingtaxitems_1.WithholdingTaxItems; }),
185
185
  __metadata("design:type", Array)
186
186
  ], AccountingCreditNote.prototype, "withholdingTax", void 0);
187
187
  return AccountingCreditNote;
@@ -1,17 +1,23 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
2
  import { AccountingPaymentAllocation } from "./accountingpaymentallocation";
3
- import { DataType } from "./datatype";
4
3
  import { DirectCostLineItem } from "./directcostlineitem";
5
4
  import { Metadata } from "./metadata";
6
5
  import { SupplementalData } from "./supplementaldata";
6
+ /**
7
+ * Allowed name of the 'dataType'.
8
+ */
9
+ export declare enum AccountingDirectCostDataType {
10
+ Customers = "customers",
11
+ Suppliers = "suppliers"
12
+ }
7
13
  /**
8
14
  * A customer or supplier associated with the direct cost.
9
15
  */
10
- export declare class AccountingDirectCostContactRef extends SpeakeasyBase {
16
+ export declare class AccountingDirectCostContactReference extends SpeakeasyBase {
11
17
  /**
12
- * Available Data types
18
+ * Allowed name of the 'dataType'.
13
19
  */
14
- dataType?: DataType;
20
+ dataType?: AccountingDirectCostDataType;
15
21
  /**
16
22
  * Unique identifier for a customer or supplier.
17
23
  */
@@ -40,7 +46,7 @@ export declare class AccountingDirectCost extends SpeakeasyBase {
40
46
  /**
41
47
  * A customer or supplier associated with the direct cost.
42
48
  */
43
- contactRef?: AccountingDirectCostContactRef;
49
+ contactRef?: AccountingDirectCostContactReference;
44
50
  /**
45
51
  * The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
46
52
  *
@@ -27,35 +27,42 @@ 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.AccountingDirectCost = exports.AccountingDirectCostContactRef = void 0;
30
+ exports.AccountingDirectCost = exports.AccountingDirectCostContactReference = exports.AccountingDirectCostDataType = void 0;
31
31
  var utils_1 = require("../../../internal/utils");
32
32
  var accountingpaymentallocation_1 = require("./accountingpaymentallocation");
33
- var datatype_1 = require("./datatype");
34
33
  var directcostlineitem_1 = require("./directcostlineitem");
35
34
  var metadata_1 = require("./metadata");
36
35
  var supplementaldata_1 = require("./supplementaldata");
37
36
  var class_transformer_1 = require("class-transformer");
37
+ /**
38
+ * Allowed name of the 'dataType'.
39
+ */
40
+ var AccountingDirectCostDataType;
41
+ (function (AccountingDirectCostDataType) {
42
+ AccountingDirectCostDataType["Customers"] = "customers";
43
+ AccountingDirectCostDataType["Suppliers"] = "suppliers";
44
+ })(AccountingDirectCostDataType = exports.AccountingDirectCostDataType || (exports.AccountingDirectCostDataType = {}));
38
45
  /**
39
46
  * A customer or supplier associated with the direct cost.
40
47
  */
41
- var AccountingDirectCostContactRef = /** @class */ (function (_super) {
42
- __extends(AccountingDirectCostContactRef, _super);
43
- function AccountingDirectCostContactRef() {
48
+ var AccountingDirectCostContactReference = /** @class */ (function (_super) {
49
+ __extends(AccountingDirectCostContactReference, _super);
50
+ function AccountingDirectCostContactReference() {
44
51
  return _super !== null && _super.apply(this, arguments) || this;
45
52
  }
46
53
  __decorate([
47
54
  (0, utils_1.SpeakeasyMetadata)(),
48
55
  (0, class_transformer_1.Expose)({ name: "dataType" }),
49
56
  __metadata("design:type", String)
50
- ], AccountingDirectCostContactRef.prototype, "dataType", void 0);
57
+ ], AccountingDirectCostContactReference.prototype, "dataType", void 0);
51
58
  __decorate([
52
59
  (0, utils_1.SpeakeasyMetadata)(),
53
60
  (0, class_transformer_1.Expose)({ name: "id" }),
54
61
  __metadata("design:type", String)
55
- ], AccountingDirectCostContactRef.prototype, "id", void 0);
56
- return AccountingDirectCostContactRef;
62
+ ], AccountingDirectCostContactReference.prototype, "id", void 0);
63
+ return AccountingDirectCostContactReference;
57
64
  }(utils_1.SpeakeasyBase));
58
- exports.AccountingDirectCostContactRef = AccountingDirectCostContactRef;
65
+ exports.AccountingDirectCostContactReference = AccountingDirectCostContactReference;
59
66
  /**
60
67
  * > **Language tip:** Direct costs may also be referred to as **Spend transactions**, **Spend money transactions**, or **Payments** in various accounting platforms.
61
68
  *
@@ -83,8 +90,8 @@ var AccountingDirectCost = /** @class */ (function (_super) {
83
90
  __decorate([
84
91
  (0, utils_1.SpeakeasyMetadata)(),
85
92
  (0, class_transformer_1.Expose)({ name: "contactRef" }),
86
- (0, class_transformer_1.Type)(function () { return AccountingDirectCostContactRef; }),
87
- __metadata("design:type", AccountingDirectCostContactRef)
93
+ (0, class_transformer_1.Type)(function () { return AccountingDirectCostContactReference; }),
94
+ __metadata("design:type", AccountingDirectCostContactReference)
88
95
  ], AccountingDirectCost.prototype, "contactRef", void 0);
89
96
  __decorate([
90
97
  (0, utils_1.SpeakeasyMetadata)(),
@@ -1,17 +1,22 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
2
  import { AccountingCustomerRef } from "./accountingcustomerref";
3
3
  import { AccountingPaymentAllocation } from "./accountingpaymentallocation";
4
- import { DataType } from "./datatype";
5
4
  import { InvoiceLineItem } from "./invoicelineitem";
6
5
  import { InvoiceStatus } from "./invoicestatus";
7
- import { Items } from "./items";
8
6
  import { Metadata } from "./metadata";
9
7
  import { SupplementalData } from "./supplementaldata";
8
+ import { WithholdingTaxItems } from "./withholdingtaxitems";
9
+ /**
10
+ * The underlying data type associated to the reference `id`.
11
+ */
12
+ export declare enum AccountingInvoiceDataType {
13
+ SalesOrders = "salesOrders"
14
+ }
10
15
  export declare class SalesOrderReference extends SpeakeasyBase {
11
16
  /**
12
- * Available Data types
17
+ * The underlying data type associated to the reference `id`.
13
18
  */
14
- dataType?: DataType;
19
+ dataType?: AccountingInvoiceDataType;
15
20
  /**
16
21
  * Unique identifier to a record in `dataType`.
17
22
  */
@@ -252,5 +257,5 @@ export declare class AccountingInvoice extends SpeakeasyBase {
252
257
  * Amount of tax on the invoice.
253
258
  */
254
259
  totalTaxAmount: number;
255
- withholdingTax?: Items[];
260
+ withholdingTax?: WithholdingTaxItems[];
256
261
  }