@unified-api/typescript-sdk 0.0.0 → 1.0.1

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 (946) hide show
  1. package/README.md +124 -741
  2. package/dist/sdk/account.d.ts +6 -6
  3. package/dist/sdk/account.js +78 -36
  4. package/dist/sdk/accounting.d.ts +32 -72
  5. package/dist/sdk/accounting.js +451 -809
  6. package/dist/sdk/activity.d.ts +6 -6
  7. package/dist/sdk/activity.js +78 -36
  8. package/dist/sdk/apicall.d.ts +2 -2
  9. package/dist/sdk/apicall.js +26 -12
  10. package/dist/sdk/application.d.ts +6 -6
  11. package/dist/sdk/application.js +78 -36
  12. package/dist/sdk/applicationstatus.d.ts +1 -1
  13. package/dist/sdk/applicationstatus.js +13 -6
  14. package/dist/sdk/ats.d.ts +45 -45
  15. package/dist/sdk/ats.js +585 -270
  16. package/dist/sdk/auth.js +29 -6
  17. package/dist/sdk/call.d.ts +1 -1
  18. package/dist/sdk/call.js +13 -6
  19. package/dist/sdk/candidate.d.ts +6 -6
  20. package/dist/sdk/candidate.js +78 -36
  21. package/dist/sdk/collection.d.ts +6 -6
  22. package/dist/sdk/collection.js +78 -36
  23. package/dist/sdk/commerce.d.ts +24 -24
  24. package/dist/sdk/commerce.js +312 -144
  25. package/dist/sdk/company.d.ts +9 -9
  26. package/dist/sdk/company.js +117 -54
  27. package/dist/sdk/connection.d.ts +6 -6
  28. package/dist/sdk/connection.js +78 -36
  29. package/dist/sdk/contact.d.ts +18 -18
  30. package/dist/sdk/contact.js +234 -108
  31. package/dist/sdk/crm.d.ts +36 -36
  32. package/dist/sdk/crm.js +468 -216
  33. package/dist/sdk/customer.d.ts +6 -6
  34. package/dist/sdk/customer.js +78 -36
  35. package/dist/sdk/deal.d.ts +6 -6
  36. package/dist/sdk/deal.js +78 -36
  37. package/dist/sdk/document.d.ts +6 -6
  38. package/dist/sdk/document.js +78 -36
  39. package/dist/sdk/employee.d.ts +6 -6
  40. package/dist/sdk/employee.js +78 -36
  41. package/dist/sdk/enrich.d.ts +2 -2
  42. package/dist/sdk/enrich.js +26 -12
  43. package/dist/sdk/event.d.ts +6 -6
  44. package/dist/sdk/event.js +78 -36
  45. package/dist/sdk/file.d.ts +6 -6
  46. package/dist/sdk/file.js +78 -36
  47. package/dist/sdk/group.d.ts +6 -6
  48. package/dist/sdk/group.js +78 -36
  49. package/dist/sdk/hris.d.ts +12 -12
  50. package/dist/sdk/hris.js +156 -72
  51. package/dist/sdk/integration.d.ts +1 -1
  52. package/dist/sdk/integration.js +41 -12
  53. package/dist/sdk/interview.d.ts +6 -6
  54. package/dist/sdk/interview.js +78 -36
  55. package/dist/sdk/inventory.d.ts +6 -6
  56. package/dist/sdk/inventory.js +78 -36
  57. package/dist/sdk/invoice.d.ts +6 -6
  58. package/dist/sdk/invoice.js +78 -36
  59. package/dist/sdk/issue.d.ts +1 -1
  60. package/dist/sdk/issue.js +13 -6
  61. package/dist/sdk/item.d.ts +6 -6
  62. package/dist/sdk/item.js +78 -36
  63. package/dist/sdk/job.d.ts +6 -6
  64. package/dist/sdk/job.js +78 -36
  65. package/dist/sdk/lead.d.ts +6 -6
  66. package/dist/sdk/lead.js +78 -36
  67. package/dist/sdk/link.d.ts +31 -0
  68. package/dist/sdk/link.js +503 -0
  69. package/dist/sdk/list.d.ts +6 -6
  70. package/dist/sdk/list.js +78 -36
  71. package/dist/sdk/location.d.ts +6 -6
  72. package/dist/sdk/location.js +78 -36
  73. package/dist/sdk/login.js +15 -3
  74. package/dist/sdk/martech.d.ts +12 -12
  75. package/dist/sdk/martech.js +156 -72
  76. package/dist/sdk/member.d.ts +6 -6
  77. package/dist/sdk/member.js +78 -36
  78. package/dist/sdk/models/operations/createaccountingaccount.d.ts +0 -3
  79. package/dist/sdk/models/operations/createaccountingaccount.js +1 -15
  80. package/dist/sdk/models/operations/createaccountingcontact.d.ts +0 -3
  81. package/dist/sdk/models/operations/createaccountingcontact.js +1 -15
  82. package/dist/sdk/models/operations/createaccountinginvoice.d.ts +0 -3
  83. package/dist/sdk/models/operations/createaccountinginvoice.js +1 -15
  84. package/dist/sdk/models/operations/createaccountingtaxrate.d.ts +0 -3
  85. package/dist/sdk/models/operations/createaccountingtaxrate.js +1 -15
  86. package/dist/sdk/models/operations/createaccountingtransaction.d.ts +0 -3
  87. package/dist/sdk/models/operations/createaccountingtransaction.js +1 -15
  88. package/dist/sdk/models/operations/createatsactivity.d.ts +0 -3
  89. package/dist/sdk/models/operations/createatsactivity.js +1 -15
  90. package/dist/sdk/models/operations/createatsapplication.d.ts +0 -3
  91. package/dist/sdk/models/operations/createatsapplication.js +1 -15
  92. package/dist/sdk/models/operations/createatscandidate.d.ts +0 -3
  93. package/dist/sdk/models/operations/createatscandidate.js +1 -15
  94. package/dist/sdk/models/operations/createatsdocument.d.ts +0 -3
  95. package/dist/sdk/models/operations/createatsdocument.js +1 -15
  96. package/dist/sdk/models/operations/createatsinterview.d.ts +0 -3
  97. package/dist/sdk/models/operations/createatsinterview.js +1 -15
  98. package/dist/sdk/models/operations/createatsjob.d.ts +0 -3
  99. package/dist/sdk/models/operations/createatsjob.js +1 -15
  100. package/dist/sdk/models/operations/createatsscorecard.d.ts +0 -3
  101. package/dist/sdk/models/operations/createatsscorecard.js +1 -15
  102. package/dist/sdk/models/operations/createcommercecollection.d.ts +0 -3
  103. package/dist/sdk/models/operations/createcommercecollection.js +1 -15
  104. package/dist/sdk/models/operations/createcommerceinventory.d.ts +0 -3
  105. package/dist/sdk/models/operations/createcommerceinventory.js +1 -15
  106. package/dist/sdk/models/operations/createcommerceitem.d.ts +0 -3
  107. package/dist/sdk/models/operations/createcommerceitem.js +1 -15
  108. package/dist/sdk/models/operations/createcommercelocation.d.ts +0 -3
  109. package/dist/sdk/models/operations/createcommercelocation.js +1 -15
  110. package/dist/sdk/models/operations/createcrmcompany.d.ts +0 -3
  111. package/dist/sdk/models/operations/createcrmcompany.js +1 -15
  112. package/dist/sdk/models/operations/createcrmcontact.d.ts +0 -3
  113. package/dist/sdk/models/operations/createcrmcontact.js +1 -15
  114. package/dist/sdk/models/operations/createcrmdeal.d.ts +0 -3
  115. package/dist/sdk/models/operations/createcrmdeal.js +1 -15
  116. package/dist/sdk/models/operations/createcrmevent.d.ts +0 -3
  117. package/dist/sdk/models/operations/createcrmevent.js +1 -15
  118. package/dist/sdk/models/operations/createcrmlead.d.ts +0 -3
  119. package/dist/sdk/models/operations/createcrmlead.js +1 -15
  120. package/dist/sdk/models/operations/createcrmpipeline.d.ts +0 -3
  121. package/dist/sdk/models/operations/createcrmpipeline.js +1 -15
  122. package/dist/sdk/models/operations/createhrisemployee.d.ts +0 -3
  123. package/dist/sdk/models/operations/createhrisemployee.js +1 -15
  124. package/dist/sdk/models/operations/createhrisgroup.d.ts +0 -3
  125. package/dist/sdk/models/operations/createhrisgroup.js +1 -15
  126. package/dist/sdk/models/operations/createmartechlist.d.ts +0 -3
  127. package/dist/sdk/models/operations/createmartechlist.js +1 -15
  128. package/dist/sdk/models/operations/createmartechmember.d.ts +0 -3
  129. package/dist/sdk/models/operations/createmartechmember.js +1 -15
  130. package/dist/sdk/models/operations/createpassthrough.d.ts +0 -3
  131. package/dist/sdk/models/operations/createpassthrough.js +1 -15
  132. package/dist/sdk/models/operations/{createaccountingpayment.d.ts → createpaymentlink.d.ts} +7 -10
  133. package/dist/sdk/models/operations/createpaymentlink.js +95 -0
  134. package/dist/sdk/models/operations/createpaymentpayment.d.ts +28 -0
  135. package/dist/sdk/models/operations/createpaymentpayment.js +95 -0
  136. package/dist/sdk/models/operations/createstoragefile.d.ts +0 -3
  137. package/dist/sdk/models/operations/createstoragefile.js +1 -15
  138. package/dist/sdk/models/operations/createticketingcustomer.d.ts +0 -3
  139. package/dist/sdk/models/operations/createticketingcustomer.js +1 -15
  140. package/dist/sdk/models/operations/createticketingnote.d.ts +0 -3
  141. package/dist/sdk/models/operations/createticketingnote.js +1 -15
  142. package/dist/sdk/models/operations/createticketingticket.d.ts +0 -3
  143. package/dist/sdk/models/operations/createticketingticket.js +1 -15
  144. package/dist/sdk/models/operations/createuccontact.d.ts +0 -3
  145. package/dist/sdk/models/operations/createuccontact.js +1 -15
  146. package/dist/sdk/models/operations/createunifiedconnection.d.ts +0 -3
  147. package/dist/sdk/models/operations/createunifiedconnection.js +1 -15
  148. package/dist/sdk/models/operations/createunifiedwebhook.d.ts +0 -3
  149. package/dist/sdk/models/operations/createunifiedwebhook.js +1 -15
  150. package/dist/sdk/models/operations/getaccountingaccount.d.ts +0 -3
  151. package/dist/sdk/models/operations/getaccountingaccount.js +1 -15
  152. package/dist/sdk/models/operations/getaccountingcontact.d.ts +0 -3
  153. package/dist/sdk/models/operations/getaccountingcontact.js +1 -15
  154. package/dist/sdk/models/operations/getaccountinginvoice.d.ts +0 -3
  155. package/dist/sdk/models/operations/getaccountinginvoice.js +1 -15
  156. package/dist/sdk/models/operations/getaccountingorganization.d.ts +0 -3
  157. package/dist/sdk/models/operations/getaccountingorganization.js +1 -15
  158. package/dist/sdk/models/operations/getaccountingtaxrate.d.ts +0 -3
  159. package/dist/sdk/models/operations/getaccountingtaxrate.js +1 -15
  160. package/dist/sdk/models/operations/getaccountingtransaction.d.ts +0 -3
  161. package/dist/sdk/models/operations/getaccountingtransaction.js +1 -15
  162. package/dist/sdk/models/operations/getatsactivity.d.ts +0 -3
  163. package/dist/sdk/models/operations/getatsactivity.js +1 -15
  164. package/dist/sdk/models/operations/getatsapplication.d.ts +0 -3
  165. package/dist/sdk/models/operations/getatsapplication.js +1 -15
  166. package/dist/sdk/models/operations/getatscandidate.d.ts +0 -3
  167. package/dist/sdk/models/operations/getatscandidate.js +1 -15
  168. package/dist/sdk/models/operations/getatscompany.d.ts +0 -3
  169. package/dist/sdk/models/operations/getatscompany.js +1 -15
  170. package/dist/sdk/models/operations/getatsdocument.d.ts +0 -3
  171. package/dist/sdk/models/operations/getatsdocument.js +1 -15
  172. package/dist/sdk/models/operations/getatsinterview.d.ts +0 -3
  173. package/dist/sdk/models/operations/getatsinterview.js +1 -15
  174. package/dist/sdk/models/operations/getatsjob.d.ts +0 -3
  175. package/dist/sdk/models/operations/getatsjob.js +1 -15
  176. package/dist/sdk/models/operations/getatsscorecard.d.ts +0 -3
  177. package/dist/sdk/models/operations/getatsscorecard.js +1 -15
  178. package/dist/sdk/models/operations/getcommercecollection.d.ts +0 -3
  179. package/dist/sdk/models/operations/getcommercecollection.js +1 -15
  180. package/dist/sdk/models/operations/getcommerceinventory.d.ts +0 -3
  181. package/dist/sdk/models/operations/getcommerceinventory.js +1 -15
  182. package/dist/sdk/models/operations/getcommerceitem.d.ts +0 -3
  183. package/dist/sdk/models/operations/getcommerceitem.js +1 -15
  184. package/dist/sdk/models/operations/getcommercelocation.d.ts +0 -3
  185. package/dist/sdk/models/operations/getcommercelocation.js +1 -15
  186. package/dist/sdk/models/operations/getcrmcompany.d.ts +0 -3
  187. package/dist/sdk/models/operations/getcrmcompany.js +1 -15
  188. package/dist/sdk/models/operations/getcrmcontact.d.ts +0 -3
  189. package/dist/sdk/models/operations/getcrmcontact.js +1 -15
  190. package/dist/sdk/models/operations/getcrmdeal.d.ts +0 -3
  191. package/dist/sdk/models/operations/getcrmdeal.js +1 -15
  192. package/dist/sdk/models/operations/getcrmevent.d.ts +0 -3
  193. package/dist/sdk/models/operations/getcrmevent.js +1 -15
  194. package/dist/sdk/models/operations/getcrmlead.d.ts +0 -3
  195. package/dist/sdk/models/operations/getcrmlead.js +1 -15
  196. package/dist/sdk/models/operations/getcrmpipeline.d.ts +0 -3
  197. package/dist/sdk/models/operations/getcrmpipeline.js +1 -15
  198. package/dist/sdk/models/operations/gethrisemployee.d.ts +0 -3
  199. package/dist/sdk/models/operations/gethrisemployee.js +1 -15
  200. package/dist/sdk/models/operations/gethrisgroup.d.ts +0 -3
  201. package/dist/sdk/models/operations/gethrisgroup.js +1 -15
  202. package/dist/sdk/models/operations/getmartechlist.d.ts +0 -3
  203. package/dist/sdk/models/operations/getmartechlist.js +1 -15
  204. package/dist/sdk/models/operations/getmartechmember.d.ts +0 -3
  205. package/dist/sdk/models/operations/getmartechmember.js +1 -15
  206. package/dist/sdk/models/operations/getpaymentlink.d.ts +35 -0
  207. package/dist/sdk/models/operations/getpaymentlink.js +99 -0
  208. package/dist/sdk/models/operations/{getaccountingpayment.d.ts → getpaymentpayment.d.ts} +6 -9
  209. package/dist/sdk/models/operations/{getaccountingpayment.js → getpaymentpayment.js} +20 -34
  210. package/dist/sdk/models/operations/{getaccountingpayout.d.ts → getpaymentpayout.d.ts} +6 -9
  211. package/dist/sdk/models/operations/{getaccountingpayout.js → getpaymentpayout.js} +20 -34
  212. package/dist/sdk/models/operations/{getaccountingrefund.d.ts → getpaymentrefund.d.ts} +6 -9
  213. package/dist/sdk/models/operations/{getaccountingrefund.js → getpaymentrefund.js} +20 -34
  214. package/dist/sdk/models/operations/getstoragefile.d.ts +0 -3
  215. package/dist/sdk/models/operations/getstoragefile.js +1 -15
  216. package/dist/sdk/models/operations/getticketingcustomer.d.ts +0 -3
  217. package/dist/sdk/models/operations/getticketingcustomer.js +1 -15
  218. package/dist/sdk/models/operations/getticketingnote.d.ts +0 -3
  219. package/dist/sdk/models/operations/getticketingnote.js +1 -15
  220. package/dist/sdk/models/operations/getticketingticket.d.ts +0 -3
  221. package/dist/sdk/models/operations/getticketingticket.js +1 -15
  222. package/dist/sdk/models/operations/getuccontact.d.ts +0 -3
  223. package/dist/sdk/models/operations/getuccontact.js +1 -15
  224. package/dist/sdk/models/operations/getunifiedapicall.d.ts +0 -3
  225. package/dist/sdk/models/operations/getunifiedapicall.js +1 -15
  226. package/dist/sdk/models/operations/getunifiedconnection.d.ts +0 -3
  227. package/dist/sdk/models/operations/getunifiedconnection.js +1 -15
  228. package/dist/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -4
  229. package/dist/sdk/models/operations/getunifiedintegrationauth.js +6 -4
  230. package/dist/sdk/models/operations/getunifiedwebhook.d.ts +0 -3
  231. package/dist/sdk/models/operations/getunifiedwebhook.js +1 -15
  232. package/dist/sdk/models/operations/index.d.ts +16 -10
  233. package/dist/sdk/models/operations/index.js +16 -10
  234. package/dist/sdk/models/operations/listaccountingaccounts.d.ts +0 -3
  235. package/dist/sdk/models/operations/listaccountingaccounts.js +1 -15
  236. package/dist/sdk/models/operations/listaccountingcontacts.d.ts +0 -3
  237. package/dist/sdk/models/operations/listaccountingcontacts.js +1 -15
  238. package/dist/sdk/models/operations/listaccountinginvoices.d.ts +0 -3
  239. package/dist/sdk/models/operations/listaccountinginvoices.js +1 -15
  240. package/dist/sdk/models/operations/listaccountingorganizations.d.ts +0 -3
  241. package/dist/sdk/models/operations/listaccountingorganizations.js +1 -15
  242. package/dist/sdk/models/operations/listaccountingtaxrates.d.ts +0 -3
  243. package/dist/sdk/models/operations/listaccountingtaxrates.js +1 -15
  244. package/dist/sdk/models/operations/listaccountingtransactions.d.ts +0 -3
  245. package/dist/sdk/models/operations/listaccountingtransactions.js +1 -15
  246. package/dist/sdk/models/operations/listatsactivities.d.ts +0 -3
  247. package/dist/sdk/models/operations/listatsactivities.js +1 -15
  248. package/dist/sdk/models/operations/listatsapplications.d.ts +0 -3
  249. package/dist/sdk/models/operations/listatsapplications.js +1 -15
  250. package/dist/sdk/models/operations/listatsapplicationstatuses.d.ts +0 -3
  251. package/dist/sdk/models/operations/listatsapplicationstatuses.js +1 -15
  252. package/dist/sdk/models/operations/listatscandidates.d.ts +0 -3
  253. package/dist/sdk/models/operations/listatscandidates.js +1 -15
  254. package/dist/sdk/models/operations/listatscompanies.d.ts +0 -3
  255. package/dist/sdk/models/operations/listatscompanies.js +1 -15
  256. package/dist/sdk/models/operations/listatsdocuments.d.ts +0 -3
  257. package/dist/sdk/models/operations/listatsdocuments.js +1 -15
  258. package/dist/sdk/models/operations/listatsinterviews.d.ts +0 -3
  259. package/dist/sdk/models/operations/listatsinterviews.js +1 -15
  260. package/dist/sdk/models/operations/listatsjobs.d.ts +0 -3
  261. package/dist/sdk/models/operations/listatsjobs.js +1 -15
  262. package/dist/sdk/models/operations/listatsscorecards.d.ts +0 -3
  263. package/dist/sdk/models/operations/listatsscorecards.js +1 -15
  264. package/dist/sdk/models/operations/listcommercecollections.d.ts +0 -3
  265. package/dist/sdk/models/operations/listcommercecollections.js +1 -15
  266. package/dist/sdk/models/operations/listcommerceinventories.d.ts +0 -3
  267. package/dist/sdk/models/operations/listcommerceinventories.js +1 -15
  268. package/dist/sdk/models/operations/listcommerceitems.d.ts +0 -3
  269. package/dist/sdk/models/operations/listcommerceitems.js +1 -15
  270. package/dist/sdk/models/operations/listcommercelocations.d.ts +0 -3
  271. package/dist/sdk/models/operations/listcommercelocations.js +1 -15
  272. package/dist/sdk/models/operations/listcrmcompanies.d.ts +0 -3
  273. package/dist/sdk/models/operations/listcrmcompanies.js +1 -15
  274. package/dist/sdk/models/operations/listcrmcontacts.d.ts +0 -3
  275. package/dist/sdk/models/operations/listcrmcontacts.js +1 -15
  276. package/dist/sdk/models/operations/listcrmdeals.d.ts +0 -3
  277. package/dist/sdk/models/operations/listcrmdeals.js +1 -15
  278. package/dist/sdk/models/operations/listcrmevents.d.ts +0 -3
  279. package/dist/sdk/models/operations/listcrmevents.js +1 -15
  280. package/dist/sdk/models/operations/listcrmleads.d.ts +0 -3
  281. package/dist/sdk/models/operations/listcrmleads.js +1 -15
  282. package/dist/sdk/models/operations/listcrmpipelines.d.ts +0 -3
  283. package/dist/sdk/models/operations/listcrmpipelines.js +1 -15
  284. package/dist/sdk/models/operations/listenrichcompanies.d.ts +0 -3
  285. package/dist/sdk/models/operations/listenrichcompanies.js +1 -15
  286. package/dist/sdk/models/operations/listenrichpeople.d.ts +0 -3
  287. package/dist/sdk/models/operations/listenrichpeople.js +1 -15
  288. package/dist/sdk/models/operations/listhrisemployees.d.ts +0 -3
  289. package/dist/sdk/models/operations/listhrisemployees.js +1 -15
  290. package/dist/sdk/models/operations/listhrisgroups.d.ts +0 -3
  291. package/dist/sdk/models/operations/listhrisgroups.js +1 -15
  292. package/dist/sdk/models/operations/listmartechlists.d.ts +0 -3
  293. package/dist/sdk/models/operations/listmartechlists.js +1 -15
  294. package/dist/sdk/models/operations/listmartechmembers.d.ts +0 -3
  295. package/dist/sdk/models/operations/listmartechmembers.js +1 -15
  296. package/dist/sdk/models/operations/listpassthroughs.d.ts +0 -3
  297. package/dist/sdk/models/operations/listpassthroughs.js +1 -15
  298. package/dist/sdk/models/operations/{listaccountingrefunds.d.ts → listpaymentlinks.d.ts} +10 -9
  299. package/dist/sdk/models/operations/{listaccountingrefunds.js → listpaymentlinks.js} +30 -40
  300. package/dist/sdk/models/operations/{listaccountingpayments.d.ts → listpaymentpayments.d.ts} +6 -9
  301. package/dist/sdk/models/operations/{listaccountingpayments.js → listpaymentpayments.js} +28 -42
  302. package/dist/sdk/models/operations/{listaccountingpayouts.d.ts → listpaymentpayouts.d.ts} +6 -9
  303. package/dist/sdk/models/operations/listpaymentpayouts.js +119 -0
  304. package/dist/sdk/models/operations/listpaymentrefunds.d.ts +47 -0
  305. package/dist/sdk/models/operations/{listaccountingpayouts.js → listpaymentrefunds.js} +30 -40
  306. package/dist/sdk/models/operations/liststoragefiles.d.ts +0 -3
  307. package/dist/sdk/models/operations/liststoragefiles.js +1 -15
  308. package/dist/sdk/models/operations/listticketingcustomers.d.ts +0 -3
  309. package/dist/sdk/models/operations/listticketingcustomers.js +1 -15
  310. package/dist/sdk/models/operations/listticketingnotes.d.ts +0 -3
  311. package/dist/sdk/models/operations/listticketingnotes.js +1 -15
  312. package/dist/sdk/models/operations/listticketingtickets.d.ts +0 -3
  313. package/dist/sdk/models/operations/listticketingtickets.js +1 -15
  314. package/dist/sdk/models/operations/listuccalls.d.ts +0 -3
  315. package/dist/sdk/models/operations/listuccalls.js +1 -15
  316. package/dist/sdk/models/operations/listuccontacts.d.ts +0 -3
  317. package/dist/sdk/models/operations/listuccontacts.js +1 -15
  318. package/dist/sdk/models/operations/listunifiedapicalls.d.ts +0 -3
  319. package/dist/sdk/models/operations/listunifiedapicalls.js +1 -15
  320. package/dist/sdk/models/operations/listunifiedconnections.d.ts +2 -4
  321. package/dist/sdk/models/operations/listunifiedconnections.js +2 -15
  322. package/dist/sdk/models/operations/listunifiedintegrations.d.ts +2 -4
  323. package/dist/sdk/models/operations/listunifiedintegrations.js +2 -15
  324. package/dist/sdk/models/operations/listunifiedintegrationworkspaces.d.ts +2 -1
  325. package/dist/sdk/models/operations/listunifiedintegrationworkspaces.js +1 -0
  326. package/dist/sdk/models/operations/listunifiedissues.d.ts +0 -3
  327. package/dist/sdk/models/operations/listunifiedissues.js +1 -15
  328. package/dist/sdk/models/operations/listunifiedwebhooks.d.ts +0 -3
  329. package/dist/sdk/models/operations/listunifiedwebhooks.js +1 -15
  330. package/dist/sdk/models/operations/patchaccountingaccount.d.ts +0 -3
  331. package/dist/sdk/models/operations/patchaccountingaccount.js +1 -15
  332. package/dist/sdk/models/operations/patchaccountingcontact.d.ts +0 -3
  333. package/dist/sdk/models/operations/patchaccountingcontact.js +1 -15
  334. package/dist/sdk/models/operations/patchaccountinginvoice.d.ts +0 -3
  335. package/dist/sdk/models/operations/patchaccountinginvoice.js +1 -15
  336. package/dist/sdk/models/operations/patchaccountingtaxrate.d.ts +0 -3
  337. package/dist/sdk/models/operations/patchaccountingtaxrate.js +1 -15
  338. package/dist/sdk/models/operations/patchaccountingtransaction.d.ts +0 -3
  339. package/dist/sdk/models/operations/patchaccountingtransaction.js +1 -15
  340. package/dist/sdk/models/operations/patchatsactivity.d.ts +0 -3
  341. package/dist/sdk/models/operations/patchatsactivity.js +1 -15
  342. package/dist/sdk/models/operations/patchatsapplication.d.ts +0 -3
  343. package/dist/sdk/models/operations/patchatsapplication.js +1 -15
  344. package/dist/sdk/models/operations/patchatscandidate.d.ts +0 -3
  345. package/dist/sdk/models/operations/patchatscandidate.js +1 -15
  346. package/dist/sdk/models/operations/patchatsdocument.d.ts +0 -3
  347. package/dist/sdk/models/operations/patchatsdocument.js +1 -15
  348. package/dist/sdk/models/operations/patchatsinterview.d.ts +0 -3
  349. package/dist/sdk/models/operations/patchatsinterview.js +1 -15
  350. package/dist/sdk/models/operations/patchatsjob.d.ts +0 -3
  351. package/dist/sdk/models/operations/patchatsjob.js +1 -15
  352. package/dist/sdk/models/operations/patchatsscorecard.d.ts +0 -3
  353. package/dist/sdk/models/operations/patchatsscorecard.js +1 -15
  354. package/dist/sdk/models/operations/patchcommercecollection.d.ts +0 -3
  355. package/dist/sdk/models/operations/patchcommercecollection.js +1 -15
  356. package/dist/sdk/models/operations/patchcommerceinventory.d.ts +0 -3
  357. package/dist/sdk/models/operations/patchcommerceinventory.js +1 -15
  358. package/dist/sdk/models/operations/patchcommerceitem.d.ts +0 -3
  359. package/dist/sdk/models/operations/patchcommerceitem.js +1 -15
  360. package/dist/sdk/models/operations/patchcommercelocation.d.ts +0 -3
  361. package/dist/sdk/models/operations/patchcommercelocation.js +1 -15
  362. package/dist/sdk/models/operations/patchcrmcompany.d.ts +0 -3
  363. package/dist/sdk/models/operations/patchcrmcompany.js +1 -15
  364. package/dist/sdk/models/operations/patchcrmcontact.d.ts +0 -3
  365. package/dist/sdk/models/operations/patchcrmcontact.js +1 -15
  366. package/dist/sdk/models/operations/patchcrmdeal.d.ts +0 -3
  367. package/dist/sdk/models/operations/patchcrmdeal.js +1 -15
  368. package/dist/sdk/models/operations/patchcrmevent.d.ts +0 -3
  369. package/dist/sdk/models/operations/patchcrmevent.js +1 -15
  370. package/dist/sdk/models/operations/patchcrmlead.d.ts +0 -3
  371. package/dist/sdk/models/operations/patchcrmlead.js +1 -15
  372. package/dist/sdk/models/operations/patchcrmpipeline.d.ts +0 -3
  373. package/dist/sdk/models/operations/patchcrmpipeline.js +1 -15
  374. package/dist/sdk/models/operations/patchhrisemployee.d.ts +0 -3
  375. package/dist/sdk/models/operations/patchhrisemployee.js +1 -15
  376. package/dist/sdk/models/operations/patchhrisgroup.d.ts +0 -3
  377. package/dist/sdk/models/operations/patchhrisgroup.js +1 -15
  378. package/dist/sdk/models/operations/patchmartechlist.d.ts +0 -3
  379. package/dist/sdk/models/operations/patchmartechlist.js +1 -15
  380. package/dist/sdk/models/operations/patchmartechmember.d.ts +0 -3
  381. package/dist/sdk/models/operations/patchmartechmember.js +1 -15
  382. package/dist/sdk/models/operations/patchpassthrough.d.ts +0 -3
  383. package/dist/sdk/models/operations/patchpassthrough.js +1 -15
  384. package/dist/sdk/models/operations/patchpaymentlink.d.ts +32 -0
  385. package/dist/sdk/models/operations/{updateaccountingpayment.js → patchpaymentlink.js} +21 -35
  386. package/dist/sdk/models/operations/{patchaccountingpayment.d.ts → patchpaymentpayment.d.ts} +7 -10
  387. package/dist/sdk/models/operations/{patchaccountingpayment.js → patchpaymentpayment.js} +21 -35
  388. package/dist/sdk/models/operations/patchstoragefile.d.ts +0 -3
  389. package/dist/sdk/models/operations/patchstoragefile.js +1 -15
  390. package/dist/sdk/models/operations/patchticketingcustomer.d.ts +0 -3
  391. package/dist/sdk/models/operations/patchticketingcustomer.js +1 -15
  392. package/dist/sdk/models/operations/patchticketingnote.d.ts +0 -3
  393. package/dist/sdk/models/operations/patchticketingnote.js +1 -15
  394. package/dist/sdk/models/operations/patchticketingticket.d.ts +0 -3
  395. package/dist/sdk/models/operations/patchticketingticket.js +1 -15
  396. package/dist/sdk/models/operations/patchuccontact.d.ts +0 -3
  397. package/dist/sdk/models/operations/patchuccontact.js +1 -15
  398. package/dist/sdk/models/operations/patchunifiedconnection.d.ts +0 -3
  399. package/dist/sdk/models/operations/patchunifiedconnection.js +1 -15
  400. package/dist/sdk/models/operations/patchunifiedwebhooktrigger.d.ts +0 -3
  401. package/dist/sdk/models/operations/patchunifiedwebhooktrigger.js +1 -15
  402. package/dist/sdk/models/operations/removeaccountingaccount.d.ts +0 -3
  403. package/dist/sdk/models/operations/removeaccountingaccount.js +1 -15
  404. package/dist/sdk/models/operations/removeaccountingcontact.d.ts +0 -3
  405. package/dist/sdk/models/operations/removeaccountingcontact.js +1 -15
  406. package/dist/sdk/models/operations/removeaccountinginvoice.d.ts +0 -3
  407. package/dist/sdk/models/operations/removeaccountinginvoice.js +1 -15
  408. package/dist/sdk/models/operations/removeaccountingtaxrate.d.ts +0 -3
  409. package/dist/sdk/models/operations/removeaccountingtaxrate.js +1 -15
  410. package/dist/sdk/models/operations/removeaccountingtransaction.d.ts +0 -3
  411. package/dist/sdk/models/operations/removeaccountingtransaction.js +1 -15
  412. package/dist/sdk/models/operations/removeatsactivity.d.ts +0 -3
  413. package/dist/sdk/models/operations/removeatsactivity.js +1 -15
  414. package/dist/sdk/models/operations/removeatsapplication.d.ts +0 -3
  415. package/dist/sdk/models/operations/removeatsapplication.js +1 -15
  416. package/dist/sdk/models/operations/removeatscandidate.d.ts +0 -3
  417. package/dist/sdk/models/operations/removeatscandidate.js +1 -15
  418. package/dist/sdk/models/operations/removeatsdocument.d.ts +0 -3
  419. package/dist/sdk/models/operations/removeatsdocument.js +1 -15
  420. package/dist/sdk/models/operations/removeatsinterview.d.ts +0 -3
  421. package/dist/sdk/models/operations/removeatsinterview.js +1 -15
  422. package/dist/sdk/models/operations/removeatsjob.d.ts +0 -3
  423. package/dist/sdk/models/operations/removeatsjob.js +1 -15
  424. package/dist/sdk/models/operations/removeatsscorecard.d.ts +0 -3
  425. package/dist/sdk/models/operations/removeatsscorecard.js +1 -15
  426. package/dist/sdk/models/operations/removecommercecollection.d.ts +0 -3
  427. package/dist/sdk/models/operations/removecommercecollection.js +1 -15
  428. package/dist/sdk/models/operations/removecommerceinventory.d.ts +0 -3
  429. package/dist/sdk/models/operations/removecommerceinventory.js +1 -15
  430. package/dist/sdk/models/operations/removecommerceitem.d.ts +0 -3
  431. package/dist/sdk/models/operations/removecommerceitem.js +1 -15
  432. package/dist/sdk/models/operations/removecommercelocation.d.ts +0 -3
  433. package/dist/sdk/models/operations/removecommercelocation.js +1 -15
  434. package/dist/sdk/models/operations/removecrmcompany.d.ts +0 -3
  435. package/dist/sdk/models/operations/removecrmcompany.js +1 -15
  436. package/dist/sdk/models/operations/removecrmcontact.d.ts +0 -3
  437. package/dist/sdk/models/operations/removecrmcontact.js +1 -15
  438. package/dist/sdk/models/operations/removecrmdeal.d.ts +0 -3
  439. package/dist/sdk/models/operations/removecrmdeal.js +1 -15
  440. package/dist/sdk/models/operations/removecrmevent.d.ts +0 -3
  441. package/dist/sdk/models/operations/removecrmevent.js +1 -15
  442. package/dist/sdk/models/operations/removecrmlead.d.ts +0 -3
  443. package/dist/sdk/models/operations/removecrmlead.js +1 -15
  444. package/dist/sdk/models/operations/removecrmpipeline.d.ts +0 -3
  445. package/dist/sdk/models/operations/removecrmpipeline.js +1 -15
  446. package/dist/sdk/models/operations/removehrisemployee.d.ts +0 -3
  447. package/dist/sdk/models/operations/removehrisemployee.js +1 -15
  448. package/dist/sdk/models/operations/removehrisgroup.d.ts +0 -3
  449. package/dist/sdk/models/operations/removehrisgroup.js +1 -15
  450. package/dist/sdk/models/operations/removemartechlist.d.ts +0 -3
  451. package/dist/sdk/models/operations/removemartechlist.js +1 -15
  452. package/dist/sdk/models/operations/removemartechmember.d.ts +0 -3
  453. package/dist/sdk/models/operations/removemartechmember.js +1 -15
  454. package/dist/sdk/models/operations/removepassthrough.d.ts +0 -3
  455. package/dist/sdk/models/operations/removepassthrough.js +1 -15
  456. package/dist/sdk/models/operations/removepaymentlink.d.ts +30 -0
  457. package/dist/sdk/models/operations/{removeaccountingpayment.js → removepaymentlink.js} +17 -31
  458. package/dist/sdk/models/operations/{removeaccountingpayment.d.ts → removepaymentpayment.d.ts} +2 -5
  459. package/dist/sdk/models/operations/removepaymentpayment.js +71 -0
  460. package/dist/sdk/models/operations/removestoragefile.d.ts +0 -3
  461. package/dist/sdk/models/operations/removestoragefile.js +1 -15
  462. package/dist/sdk/models/operations/removeticketingcustomer.d.ts +0 -3
  463. package/dist/sdk/models/operations/removeticketingcustomer.js +1 -15
  464. package/dist/sdk/models/operations/removeticketingnote.d.ts +0 -3
  465. package/dist/sdk/models/operations/removeticketingnote.js +1 -15
  466. package/dist/sdk/models/operations/removeticketingticket.d.ts +0 -3
  467. package/dist/sdk/models/operations/removeticketingticket.js +1 -15
  468. package/dist/sdk/models/operations/removeuccontact.d.ts +0 -3
  469. package/dist/sdk/models/operations/removeuccontact.js +1 -15
  470. package/dist/sdk/models/operations/removeunifiedconnection.d.ts +0 -3
  471. package/dist/sdk/models/operations/removeunifiedconnection.js +1 -15
  472. package/dist/sdk/models/operations/removeunifiedwebhook.d.ts +0 -3
  473. package/dist/sdk/models/operations/removeunifiedwebhook.js +1 -15
  474. package/dist/sdk/models/operations/updateaccountingaccount.d.ts +0 -3
  475. package/dist/sdk/models/operations/updateaccountingaccount.js +1 -15
  476. package/dist/sdk/models/operations/updateaccountingcontact.d.ts +0 -3
  477. package/dist/sdk/models/operations/updateaccountingcontact.js +1 -15
  478. package/dist/sdk/models/operations/updateaccountinginvoice.d.ts +0 -3
  479. package/dist/sdk/models/operations/updateaccountinginvoice.js +1 -15
  480. package/dist/sdk/models/operations/updateaccountingtaxrate.d.ts +0 -3
  481. package/dist/sdk/models/operations/updateaccountingtaxrate.js +1 -15
  482. package/dist/sdk/models/operations/updateaccountingtransaction.d.ts +0 -3
  483. package/dist/sdk/models/operations/updateaccountingtransaction.js +1 -15
  484. package/dist/sdk/models/operations/updateatsactivity.d.ts +0 -3
  485. package/dist/sdk/models/operations/updateatsactivity.js +1 -15
  486. package/dist/sdk/models/operations/updateatsapplication.d.ts +0 -3
  487. package/dist/sdk/models/operations/updateatsapplication.js +1 -15
  488. package/dist/sdk/models/operations/updateatscandidate.d.ts +0 -3
  489. package/dist/sdk/models/operations/updateatscandidate.js +1 -15
  490. package/dist/sdk/models/operations/updateatsdocument.d.ts +0 -3
  491. package/dist/sdk/models/operations/updateatsdocument.js +1 -15
  492. package/dist/sdk/models/operations/updateatsinterview.d.ts +0 -3
  493. package/dist/sdk/models/operations/updateatsinterview.js +1 -15
  494. package/dist/sdk/models/operations/updateatsjob.d.ts +0 -3
  495. package/dist/sdk/models/operations/updateatsjob.js +1 -15
  496. package/dist/sdk/models/operations/updateatsscorecard.d.ts +0 -3
  497. package/dist/sdk/models/operations/updateatsscorecard.js +1 -15
  498. package/dist/sdk/models/operations/updatecommercecollection.d.ts +0 -3
  499. package/dist/sdk/models/operations/updatecommercecollection.js +1 -15
  500. package/dist/sdk/models/operations/updatecommerceinventory.d.ts +0 -3
  501. package/dist/sdk/models/operations/updatecommerceinventory.js +1 -15
  502. package/dist/sdk/models/operations/updatecommerceitem.d.ts +0 -3
  503. package/dist/sdk/models/operations/updatecommerceitem.js +1 -15
  504. package/dist/sdk/models/operations/updatecommercelocation.d.ts +0 -3
  505. package/dist/sdk/models/operations/updatecommercelocation.js +1 -15
  506. package/dist/sdk/models/operations/updatecrmcompany.d.ts +0 -3
  507. package/dist/sdk/models/operations/updatecrmcompany.js +1 -15
  508. package/dist/sdk/models/operations/updatecrmcontact.d.ts +0 -3
  509. package/dist/sdk/models/operations/updatecrmcontact.js +1 -15
  510. package/dist/sdk/models/operations/updatecrmdeal.d.ts +0 -3
  511. package/dist/sdk/models/operations/updatecrmdeal.js +1 -15
  512. package/dist/sdk/models/operations/updatecrmevent.d.ts +0 -3
  513. package/dist/sdk/models/operations/updatecrmevent.js +1 -15
  514. package/dist/sdk/models/operations/updatecrmlead.d.ts +0 -3
  515. package/dist/sdk/models/operations/updatecrmlead.js +1 -15
  516. package/dist/sdk/models/operations/updatecrmpipeline.d.ts +0 -3
  517. package/dist/sdk/models/operations/updatecrmpipeline.js +1 -15
  518. package/dist/sdk/models/operations/updatehrisemployee.d.ts +0 -3
  519. package/dist/sdk/models/operations/updatehrisemployee.js +1 -15
  520. package/dist/sdk/models/operations/updatehrisgroup.d.ts +0 -3
  521. package/dist/sdk/models/operations/updatehrisgroup.js +1 -15
  522. package/dist/sdk/models/operations/updatemartechlist.d.ts +0 -3
  523. package/dist/sdk/models/operations/updatemartechlist.js +1 -15
  524. package/dist/sdk/models/operations/updatemartechmember.d.ts +0 -3
  525. package/dist/sdk/models/operations/updatemartechmember.js +1 -15
  526. package/dist/sdk/models/operations/updatepassthrough.d.ts +0 -3
  527. package/dist/sdk/models/operations/updatepassthrough.js +1 -15
  528. package/dist/sdk/models/operations/updatepaymentlink.d.ts +32 -0
  529. package/dist/sdk/models/operations/updatepaymentlink.js +99 -0
  530. package/dist/sdk/models/operations/{updateaccountingpayment.d.ts → updatepaymentpayment.d.ts} +7 -10
  531. package/dist/sdk/models/operations/{createaccountingpayment.js → updatepaymentpayment.js} +24 -34
  532. package/dist/sdk/models/operations/updatestoragefile.d.ts +0 -3
  533. package/dist/sdk/models/operations/updatestoragefile.js +1 -15
  534. package/dist/sdk/models/operations/updateticketingcustomer.d.ts +0 -3
  535. package/dist/sdk/models/operations/updateticketingcustomer.js +1 -15
  536. package/dist/sdk/models/operations/updateticketingnote.d.ts +0 -3
  537. package/dist/sdk/models/operations/updateticketingnote.js +1 -15
  538. package/dist/sdk/models/operations/updateticketingticket.d.ts +0 -3
  539. package/dist/sdk/models/operations/updateticketingticket.js +1 -15
  540. package/dist/sdk/models/operations/updateuccontact.d.ts +0 -3
  541. package/dist/sdk/models/operations/updateuccontact.js +1 -15
  542. package/dist/sdk/models/operations/updateunifiedconnection.d.ts +0 -3
  543. package/dist/sdk/models/operations/updateunifiedconnection.js +1 -15
  544. package/dist/sdk/models/operations/updateunifiedwebhooktrigger.d.ts +0 -3
  545. package/dist/sdk/models/operations/updateunifiedwebhooktrigger.js +1 -15
  546. package/dist/sdk/models/shared/index.d.ts +6 -3
  547. package/dist/sdk/models/shared/index.js +6 -3
  548. package/dist/sdk/models/shared/paymenntlinklineitem.d.ts +20 -0
  549. package/dist/sdk/models/shared/paymenntlinklineitem.js +137 -0
  550. package/dist/sdk/models/shared/paymentlink.d.ts +15 -0
  551. package/dist/sdk/models/shared/paymentlink.js +105 -0
  552. package/dist/sdk/models/shared/{accountingpayment.d.ts → paymentpayment.d.ts} +1 -1
  553. package/dist/sdk/models/shared/{accountingpayment.js → paymentpayment.js} +18 -18
  554. package/dist/sdk/models/shared/{accountingpayout.d.ts → paymentpayout.d.ts} +3 -3
  555. package/dist/sdk/models/shared/{accountingpayout.js → paymentpayout.js} +21 -21
  556. package/dist/sdk/models/shared/{accountingrefund.d.ts → paymentrefund.d.ts} +3 -3
  557. package/dist/sdk/models/shared/{accountingrefund.js → paymentrefund.js} +23 -23
  558. package/dist/sdk/models/shared/propertyconnectioncategories.d.ts +2 -1
  559. package/dist/sdk/models/shared/propertyconnectioncategories.js +1 -0
  560. package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -4
  561. package/dist/sdk/models/shared/propertyconnectionpermissions.js +6 -4
  562. package/dist/sdk/models/shared/propertyintegrationcategories.d.ts +2 -1
  563. package/dist/sdk/models/shared/propertyintegrationcategories.js +1 -0
  564. package/dist/sdk/models/shared/security.d.ts +4 -0
  565. package/dist/sdk/models/shared/security.js +45 -0
  566. package/dist/sdk/models/shared/webhook.d.ts +4 -3
  567. package/dist/sdk/models/shared/webhook.js +4 -3
  568. package/dist/sdk/note.d.ts +6 -6
  569. package/dist/sdk/note.js +78 -36
  570. package/dist/sdk/organization.d.ts +2 -2
  571. package/dist/sdk/organization.js +26 -12
  572. package/dist/sdk/passthrough.d.ts +5 -5
  573. package/dist/sdk/passthrough.js +66 -30
  574. package/dist/sdk/payment.d.ts +46 -6
  575. package/dist/sdk/payment.js +755 -61
  576. package/dist/sdk/payout.d.ts +2 -2
  577. package/dist/sdk/payout.js +35 -21
  578. package/dist/sdk/person.d.ts +1 -1
  579. package/dist/sdk/person.js +13 -6
  580. package/dist/sdk/pipeline.d.ts +6 -6
  581. package/dist/sdk/pipeline.js +78 -36
  582. package/dist/sdk/refund.d.ts +2 -2
  583. package/dist/sdk/refund.js +35 -21
  584. package/dist/sdk/scorecard.d.ts +6 -6
  585. package/dist/sdk/scorecard.js +78 -36
  586. package/dist/sdk/sdk.d.ts +11 -3
  587. package/dist/sdk/sdk.js +9 -6
  588. package/dist/sdk/storage.d.ts +6 -6
  589. package/dist/sdk/storage.js +78 -36
  590. package/dist/sdk/taxrate.d.ts +6 -6
  591. package/dist/sdk/taxrate.js +78 -36
  592. package/dist/sdk/ticket.d.ts +6 -6
  593. package/dist/sdk/ticket.js +78 -36
  594. package/dist/sdk/ticketing.d.ts +18 -18
  595. package/dist/sdk/ticketing.js +234 -108
  596. package/dist/sdk/transaction.d.ts +6 -6
  597. package/dist/sdk/transaction.js +78 -36
  598. package/dist/sdk/uc.d.ts +7 -7
  599. package/dist/sdk/uc.js +91 -42
  600. package/dist/sdk/unified.d.ts +16 -16
  601. package/dist/sdk/unified.js +236 -102
  602. package/dist/sdk/webhook.d.ts +6 -6
  603. package/dist/sdk/webhook.js +78 -36
  604. package/docs/sdk/models/operations/categories.md +2 -1
  605. package/docs/sdk/models/operations/createpaymentlinkrequest.md +9 -0
  606. package/docs/sdk/models/operations/createpaymentlinkresponse.md +11 -0
  607. package/docs/sdk/models/operations/createpaymentpaymentrequest.md +9 -0
  608. package/docs/sdk/models/operations/createpaymentpaymentresponse.md +11 -0
  609. package/docs/sdk/models/operations/getpaymentlinkrequest.md +10 -0
  610. package/docs/sdk/models/operations/getpaymentlinkresponse.md +11 -0
  611. package/docs/sdk/models/operations/{getaccountingpaymentrequest.md → getpaymentpaymentrequest.md} +1 -1
  612. package/docs/sdk/models/operations/getpaymentpaymentresponse.md +11 -0
  613. package/docs/sdk/models/operations/{getaccountingpayoutrequest.md → getpaymentpayoutrequest.md} +1 -1
  614. package/docs/sdk/models/operations/getpaymentpayoutresponse.md +11 -0
  615. package/docs/sdk/models/operations/{getaccountingrefundrequest.md → getpaymentrefundrequest.md} +1 -1
  616. package/docs/sdk/models/operations/getpaymentrefundresponse.md +11 -0
  617. package/docs/sdk/models/operations/listpaymentlinksrequest.md +17 -0
  618. package/docs/sdk/models/operations/listpaymentlinksresponse.md +11 -0
  619. package/docs/sdk/models/operations/{listaccountingpaymentsrequest.md → listpaymentpaymentsrequest.md} +1 -1
  620. package/docs/sdk/models/operations/listpaymentpaymentsresponse.md +11 -0
  621. package/docs/sdk/models/operations/{listaccountingpayoutsrequest.md → listpaymentpayoutsrequest.md} +1 -1
  622. package/docs/sdk/models/operations/listpaymentpayoutsresponse.md +11 -0
  623. package/docs/sdk/models/operations/{listaccountingrefundsrequest.md → listpaymentrefundsrequest.md} +1 -1
  624. package/docs/sdk/models/operations/listpaymentrefundsresponse.md +11 -0
  625. package/docs/sdk/models/operations/listunifiedintegrationsqueryparamcategories.md +2 -1
  626. package/docs/sdk/models/operations/patchpaymentlinkrequest.md +10 -0
  627. package/docs/sdk/models/operations/patchpaymentlinkresponse.md +11 -0
  628. package/docs/sdk/models/operations/patchpaymentpaymentrequest.md +10 -0
  629. package/docs/sdk/models/operations/patchpaymentpaymentresponse.md +11 -0
  630. package/docs/sdk/models/operations/queryparamcategories.md +2 -1
  631. package/docs/sdk/models/operations/{removeaccountingpaymentrequest.md → removepaymentlinkrequest.md} +2 -2
  632. package/docs/sdk/models/operations/{removeaccountingpaymentresponse.md → removepaymentlinkresponse.md} +1 -1
  633. package/docs/sdk/models/operations/removepaymentpaymentrequest.md +9 -0
  634. package/docs/sdk/models/operations/removepaymentpaymentresponse.md +11 -0
  635. package/docs/sdk/models/operations/scopes.md +6 -4
  636. package/docs/sdk/models/operations/updatepaymentlinkrequest.md +10 -0
  637. package/docs/sdk/models/operations/updatepaymentlinkresponse.md +11 -0
  638. package/docs/sdk/models/operations/updatepaymentpaymentrequest.md +10 -0
  639. package/docs/sdk/models/operations/updatepaymentpaymentresponse.md +11 -0
  640. package/docs/sdk/models/shared/objecttype.md +4 -3
  641. package/docs/sdk/models/shared/paymenntlinklineitem.md +24 -0
  642. package/docs/sdk/models/shared/paymentlink.md +18 -0
  643. package/docs/sdk/models/shared/{accountingpayment.md → paymentpayment.md} +1 -1
  644. package/docs/sdk/models/shared/paymentpayout.md +15 -0
  645. package/docs/sdk/models/shared/{accountingrefundstatus.md → paymentpayoutstatus.md} +1 -1
  646. package/docs/sdk/models/shared/paymentrefund.md +17 -0
  647. package/docs/sdk/models/shared/{accountingpayoutstatus.md → paymentrefundstatus.md} +1 -1
  648. package/docs/sdk/models/shared/propertyconnectioncategories.md +2 -1
  649. package/docs/sdk/models/shared/propertyconnectionpermissions.md +6 -4
  650. package/docs/sdk/models/shared/propertyintegrationcategories.md +2 -1
  651. package/docs/sdk/models/{operations/getatsjobsecurity.md → shared/security.md} +2 -2
  652. package/package.json +1 -1
  653. package/docs/sdk/models/operations/createaccountingaccountsecurity.md +0 -8
  654. package/docs/sdk/models/operations/createaccountingcontactsecurity.md +0 -8
  655. package/docs/sdk/models/operations/createaccountinginvoicesecurity.md +0 -8
  656. package/docs/sdk/models/operations/createaccountingpaymentrequest.md +0 -9
  657. package/docs/sdk/models/operations/createaccountingpaymentresponse.md +0 -11
  658. package/docs/sdk/models/operations/createaccountingpaymentsecurity.md +0 -8
  659. package/docs/sdk/models/operations/createaccountingtaxratesecurity.md +0 -8
  660. package/docs/sdk/models/operations/createaccountingtransactionsecurity.md +0 -8
  661. package/docs/sdk/models/operations/createatsactivitysecurity.md +0 -8
  662. package/docs/sdk/models/operations/createatsapplicationsecurity.md +0 -8
  663. package/docs/sdk/models/operations/createatscandidatesecurity.md +0 -8
  664. package/docs/sdk/models/operations/createatsdocumentsecurity.md +0 -8
  665. package/docs/sdk/models/operations/createatsinterviewsecurity.md +0 -8
  666. package/docs/sdk/models/operations/createatsjobsecurity.md +0 -8
  667. package/docs/sdk/models/operations/createatsscorecardsecurity.md +0 -8
  668. package/docs/sdk/models/operations/createcommercecollectionsecurity.md +0 -8
  669. package/docs/sdk/models/operations/createcommerceinventorysecurity.md +0 -8
  670. package/docs/sdk/models/operations/createcommerceitemsecurity.md +0 -8
  671. package/docs/sdk/models/operations/createcommercelocationsecurity.md +0 -8
  672. package/docs/sdk/models/operations/createcrmcompanysecurity.md +0 -8
  673. package/docs/sdk/models/operations/createcrmcontactsecurity.md +0 -8
  674. package/docs/sdk/models/operations/createcrmdealsecurity.md +0 -8
  675. package/docs/sdk/models/operations/createcrmeventsecurity.md +0 -8
  676. package/docs/sdk/models/operations/createcrmleadsecurity.md +0 -8
  677. package/docs/sdk/models/operations/createcrmpipelinesecurity.md +0 -8
  678. package/docs/sdk/models/operations/createhrisemployeesecurity.md +0 -8
  679. package/docs/sdk/models/operations/createhrisgroupsecurity.md +0 -8
  680. package/docs/sdk/models/operations/createmartechlistsecurity.md +0 -8
  681. package/docs/sdk/models/operations/createmartechmembersecurity.md +0 -8
  682. package/docs/sdk/models/operations/createpassthroughsecurity.md +0 -8
  683. package/docs/sdk/models/operations/createstoragefilesecurity.md +0 -8
  684. package/docs/sdk/models/operations/createticketingcustomersecurity.md +0 -8
  685. package/docs/sdk/models/operations/createticketingnotesecurity.md +0 -8
  686. package/docs/sdk/models/operations/createticketingticketsecurity.md +0 -8
  687. package/docs/sdk/models/operations/createuccontactsecurity.md +0 -8
  688. package/docs/sdk/models/operations/createunifiedconnectionsecurity.md +0 -8
  689. package/docs/sdk/models/operations/createunifiedwebhooksecurity.md +0 -8
  690. package/docs/sdk/models/operations/getaccountingaccountsecurity.md +0 -8
  691. package/docs/sdk/models/operations/getaccountingcontactsecurity.md +0 -8
  692. package/docs/sdk/models/operations/getaccountinginvoicesecurity.md +0 -8
  693. package/docs/sdk/models/operations/getaccountingorganizationsecurity.md +0 -8
  694. package/docs/sdk/models/operations/getaccountingpaymentresponse.md +0 -11
  695. package/docs/sdk/models/operations/getaccountingpaymentsecurity.md +0 -8
  696. package/docs/sdk/models/operations/getaccountingpayoutresponse.md +0 -11
  697. package/docs/sdk/models/operations/getaccountingpayoutsecurity.md +0 -8
  698. package/docs/sdk/models/operations/getaccountingrefundresponse.md +0 -11
  699. package/docs/sdk/models/operations/getaccountingrefundsecurity.md +0 -8
  700. package/docs/sdk/models/operations/getaccountingtaxratesecurity.md +0 -8
  701. package/docs/sdk/models/operations/getaccountingtransactionsecurity.md +0 -8
  702. package/docs/sdk/models/operations/getatsactivitysecurity.md +0 -8
  703. package/docs/sdk/models/operations/getatsapplicationsecurity.md +0 -8
  704. package/docs/sdk/models/operations/getatscandidatesecurity.md +0 -8
  705. package/docs/sdk/models/operations/getatscompanysecurity.md +0 -8
  706. package/docs/sdk/models/operations/getatsdocumentsecurity.md +0 -8
  707. package/docs/sdk/models/operations/getatsinterviewsecurity.md +0 -8
  708. package/docs/sdk/models/operations/getatsscorecardsecurity.md +0 -8
  709. package/docs/sdk/models/operations/getcommercecollectionsecurity.md +0 -8
  710. package/docs/sdk/models/operations/getcommerceinventorysecurity.md +0 -8
  711. package/docs/sdk/models/operations/getcommerceitemsecurity.md +0 -8
  712. package/docs/sdk/models/operations/getcommercelocationsecurity.md +0 -8
  713. package/docs/sdk/models/operations/getcrmcompanysecurity.md +0 -8
  714. package/docs/sdk/models/operations/getcrmcontactsecurity.md +0 -8
  715. package/docs/sdk/models/operations/getcrmdealsecurity.md +0 -8
  716. package/docs/sdk/models/operations/getcrmeventsecurity.md +0 -8
  717. package/docs/sdk/models/operations/getcrmleadsecurity.md +0 -8
  718. package/docs/sdk/models/operations/getcrmpipelinesecurity.md +0 -8
  719. package/docs/sdk/models/operations/gethrisemployeesecurity.md +0 -8
  720. package/docs/sdk/models/operations/gethrisgroupsecurity.md +0 -8
  721. package/docs/sdk/models/operations/getmartechlistsecurity.md +0 -8
  722. package/docs/sdk/models/operations/getmartechmembersecurity.md +0 -8
  723. package/docs/sdk/models/operations/getstoragefilesecurity.md +0 -8
  724. package/docs/sdk/models/operations/getticketingcustomersecurity.md +0 -8
  725. package/docs/sdk/models/operations/getticketingnotesecurity.md +0 -8
  726. package/docs/sdk/models/operations/getticketingticketsecurity.md +0 -8
  727. package/docs/sdk/models/operations/getuccontactsecurity.md +0 -8
  728. package/docs/sdk/models/operations/getunifiedapicallsecurity.md +0 -8
  729. package/docs/sdk/models/operations/getunifiedconnectionsecurity.md +0 -8
  730. package/docs/sdk/models/operations/getunifiedwebhooksecurity.md +0 -8
  731. package/docs/sdk/models/operations/listaccountingaccountssecurity.md +0 -8
  732. package/docs/sdk/models/operations/listaccountingcontactssecurity.md +0 -8
  733. package/docs/sdk/models/operations/listaccountinginvoicessecurity.md +0 -8
  734. package/docs/sdk/models/operations/listaccountingorganizationssecurity.md +0 -8
  735. package/docs/sdk/models/operations/listaccountingpaymentsresponse.md +0 -11
  736. package/docs/sdk/models/operations/listaccountingpaymentssecurity.md +0 -8
  737. package/docs/sdk/models/operations/listaccountingpayoutsresponse.md +0 -11
  738. package/docs/sdk/models/operations/listaccountingpayoutssecurity.md +0 -8
  739. package/docs/sdk/models/operations/listaccountingrefundsresponse.md +0 -11
  740. package/docs/sdk/models/operations/listaccountingrefundssecurity.md +0 -8
  741. package/docs/sdk/models/operations/listaccountingtaxratessecurity.md +0 -8
  742. package/docs/sdk/models/operations/listaccountingtransactionssecurity.md +0 -8
  743. package/docs/sdk/models/operations/listatsactivitiessecurity.md +0 -8
  744. package/docs/sdk/models/operations/listatsapplicationssecurity.md +0 -8
  745. package/docs/sdk/models/operations/listatsapplicationstatusessecurity.md +0 -8
  746. package/docs/sdk/models/operations/listatscandidatessecurity.md +0 -8
  747. package/docs/sdk/models/operations/listatscompaniessecurity.md +0 -8
  748. package/docs/sdk/models/operations/listatsdocumentssecurity.md +0 -8
  749. package/docs/sdk/models/operations/listatsinterviewssecurity.md +0 -8
  750. package/docs/sdk/models/operations/listatsjobssecurity.md +0 -8
  751. package/docs/sdk/models/operations/listatsscorecardssecurity.md +0 -8
  752. package/docs/sdk/models/operations/listcommercecollectionssecurity.md +0 -8
  753. package/docs/sdk/models/operations/listcommerceinventoriessecurity.md +0 -8
  754. package/docs/sdk/models/operations/listcommerceitemssecurity.md +0 -8
  755. package/docs/sdk/models/operations/listcommercelocationssecurity.md +0 -8
  756. package/docs/sdk/models/operations/listcrmcompaniessecurity.md +0 -8
  757. package/docs/sdk/models/operations/listcrmcontactssecurity.md +0 -8
  758. package/docs/sdk/models/operations/listcrmdealssecurity.md +0 -8
  759. package/docs/sdk/models/operations/listcrmeventssecurity.md +0 -8
  760. package/docs/sdk/models/operations/listcrmleadssecurity.md +0 -8
  761. package/docs/sdk/models/operations/listcrmpipelinessecurity.md +0 -8
  762. package/docs/sdk/models/operations/listenrichcompaniessecurity.md +0 -8
  763. package/docs/sdk/models/operations/listenrichpeoplesecurity.md +0 -8
  764. package/docs/sdk/models/operations/listhrisemployeessecurity.md +0 -8
  765. package/docs/sdk/models/operations/listhrisgroupssecurity.md +0 -8
  766. package/docs/sdk/models/operations/listmartechlistssecurity.md +0 -8
  767. package/docs/sdk/models/operations/listmartechmemberssecurity.md +0 -8
  768. package/docs/sdk/models/operations/listpassthroughssecurity.md +0 -8
  769. package/docs/sdk/models/operations/liststoragefilessecurity.md +0 -8
  770. package/docs/sdk/models/operations/listticketingcustomerssecurity.md +0 -8
  771. package/docs/sdk/models/operations/listticketingnotessecurity.md +0 -8
  772. package/docs/sdk/models/operations/listticketingticketssecurity.md +0 -8
  773. package/docs/sdk/models/operations/listuccallssecurity.md +0 -8
  774. package/docs/sdk/models/operations/listuccontactssecurity.md +0 -8
  775. package/docs/sdk/models/operations/listunifiedapicallssecurity.md +0 -8
  776. package/docs/sdk/models/operations/listunifiedconnectionssecurity.md +0 -8
  777. package/docs/sdk/models/operations/listunifiedintegrationssecurity.md +0 -8
  778. package/docs/sdk/models/operations/listunifiedissuessecurity.md +0 -8
  779. package/docs/sdk/models/operations/listunifiedwebhookssecurity.md +0 -8
  780. package/docs/sdk/models/operations/patchaccountingaccountsecurity.md +0 -8
  781. package/docs/sdk/models/operations/patchaccountingcontactsecurity.md +0 -8
  782. package/docs/sdk/models/operations/patchaccountinginvoicesecurity.md +0 -8
  783. package/docs/sdk/models/operations/patchaccountingpaymentrequest.md +0 -10
  784. package/docs/sdk/models/operations/patchaccountingpaymentresponse.md +0 -11
  785. package/docs/sdk/models/operations/patchaccountingpaymentsecurity.md +0 -8
  786. package/docs/sdk/models/operations/patchaccountingtaxratesecurity.md +0 -8
  787. package/docs/sdk/models/operations/patchaccountingtransactionsecurity.md +0 -8
  788. package/docs/sdk/models/operations/patchatsactivitysecurity.md +0 -8
  789. package/docs/sdk/models/operations/patchatsapplicationsecurity.md +0 -8
  790. package/docs/sdk/models/operations/patchatscandidatesecurity.md +0 -8
  791. package/docs/sdk/models/operations/patchatsdocumentsecurity.md +0 -8
  792. package/docs/sdk/models/operations/patchatsinterviewsecurity.md +0 -8
  793. package/docs/sdk/models/operations/patchatsjobsecurity.md +0 -8
  794. package/docs/sdk/models/operations/patchatsscorecardsecurity.md +0 -8
  795. package/docs/sdk/models/operations/patchcommercecollectionsecurity.md +0 -8
  796. package/docs/sdk/models/operations/patchcommerceinventorysecurity.md +0 -8
  797. package/docs/sdk/models/operations/patchcommerceitemsecurity.md +0 -8
  798. package/docs/sdk/models/operations/patchcommercelocationsecurity.md +0 -8
  799. package/docs/sdk/models/operations/patchcrmcompanysecurity.md +0 -8
  800. package/docs/sdk/models/operations/patchcrmcontactsecurity.md +0 -8
  801. package/docs/sdk/models/operations/patchcrmdealsecurity.md +0 -8
  802. package/docs/sdk/models/operations/patchcrmeventsecurity.md +0 -8
  803. package/docs/sdk/models/operations/patchcrmleadsecurity.md +0 -8
  804. package/docs/sdk/models/operations/patchcrmpipelinesecurity.md +0 -8
  805. package/docs/sdk/models/operations/patchhrisemployeesecurity.md +0 -8
  806. package/docs/sdk/models/operations/patchhrisgroupsecurity.md +0 -8
  807. package/docs/sdk/models/operations/patchmartechlistsecurity.md +0 -8
  808. package/docs/sdk/models/operations/patchmartechmembersecurity.md +0 -8
  809. package/docs/sdk/models/operations/patchpassthroughsecurity.md +0 -8
  810. package/docs/sdk/models/operations/patchstoragefilesecurity.md +0 -8
  811. package/docs/sdk/models/operations/patchticketingcustomersecurity.md +0 -8
  812. package/docs/sdk/models/operations/patchticketingnotesecurity.md +0 -8
  813. package/docs/sdk/models/operations/patchticketingticketsecurity.md +0 -8
  814. package/docs/sdk/models/operations/patchuccontactsecurity.md +0 -8
  815. package/docs/sdk/models/operations/patchunifiedconnectionsecurity.md +0 -8
  816. package/docs/sdk/models/operations/patchunifiedwebhooktriggersecurity.md +0 -8
  817. package/docs/sdk/models/operations/removeaccountingaccountsecurity.md +0 -8
  818. package/docs/sdk/models/operations/removeaccountingcontactsecurity.md +0 -8
  819. package/docs/sdk/models/operations/removeaccountinginvoicesecurity.md +0 -8
  820. package/docs/sdk/models/operations/removeaccountingpaymentsecurity.md +0 -8
  821. package/docs/sdk/models/operations/removeaccountingtaxratesecurity.md +0 -8
  822. package/docs/sdk/models/operations/removeaccountingtransactionsecurity.md +0 -8
  823. package/docs/sdk/models/operations/removeatsactivitysecurity.md +0 -8
  824. package/docs/sdk/models/operations/removeatsapplicationsecurity.md +0 -8
  825. package/docs/sdk/models/operations/removeatscandidatesecurity.md +0 -8
  826. package/docs/sdk/models/operations/removeatsdocumentsecurity.md +0 -8
  827. package/docs/sdk/models/operations/removeatsinterviewsecurity.md +0 -8
  828. package/docs/sdk/models/operations/removeatsjobsecurity.md +0 -8
  829. package/docs/sdk/models/operations/removeatsscorecardsecurity.md +0 -8
  830. package/docs/sdk/models/operations/removecommercecollectionsecurity.md +0 -8
  831. package/docs/sdk/models/operations/removecommerceinventorysecurity.md +0 -8
  832. package/docs/sdk/models/operations/removecommerceitemsecurity.md +0 -8
  833. package/docs/sdk/models/operations/removecommercelocationsecurity.md +0 -8
  834. package/docs/sdk/models/operations/removecrmcompanysecurity.md +0 -8
  835. package/docs/sdk/models/operations/removecrmcontactsecurity.md +0 -8
  836. package/docs/sdk/models/operations/removecrmdealsecurity.md +0 -8
  837. package/docs/sdk/models/operations/removecrmeventsecurity.md +0 -8
  838. package/docs/sdk/models/operations/removecrmleadsecurity.md +0 -8
  839. package/docs/sdk/models/operations/removecrmpipelinesecurity.md +0 -8
  840. package/docs/sdk/models/operations/removehrisemployeesecurity.md +0 -8
  841. package/docs/sdk/models/operations/removehrisgroupsecurity.md +0 -8
  842. package/docs/sdk/models/operations/removemartechlistsecurity.md +0 -8
  843. package/docs/sdk/models/operations/removemartechmembersecurity.md +0 -8
  844. package/docs/sdk/models/operations/removepassthroughsecurity.md +0 -8
  845. package/docs/sdk/models/operations/removestoragefilesecurity.md +0 -8
  846. package/docs/sdk/models/operations/removeticketingcustomersecurity.md +0 -8
  847. package/docs/sdk/models/operations/removeticketingnotesecurity.md +0 -8
  848. package/docs/sdk/models/operations/removeticketingticketsecurity.md +0 -8
  849. package/docs/sdk/models/operations/removeuccontactsecurity.md +0 -8
  850. package/docs/sdk/models/operations/removeunifiedconnectionsecurity.md +0 -8
  851. package/docs/sdk/models/operations/removeunifiedwebhooksecurity.md +0 -8
  852. package/docs/sdk/models/operations/updateaccountingaccountsecurity.md +0 -8
  853. package/docs/sdk/models/operations/updateaccountingcontactsecurity.md +0 -8
  854. package/docs/sdk/models/operations/updateaccountinginvoicesecurity.md +0 -8
  855. package/docs/sdk/models/operations/updateaccountingpaymentrequest.md +0 -10
  856. package/docs/sdk/models/operations/updateaccountingpaymentresponse.md +0 -11
  857. package/docs/sdk/models/operations/updateaccountingpaymentsecurity.md +0 -8
  858. package/docs/sdk/models/operations/updateaccountingtaxratesecurity.md +0 -8
  859. package/docs/sdk/models/operations/updateaccountingtransactionsecurity.md +0 -8
  860. package/docs/sdk/models/operations/updateatsactivitysecurity.md +0 -8
  861. package/docs/sdk/models/operations/updateatsapplicationsecurity.md +0 -8
  862. package/docs/sdk/models/operations/updateatscandidatesecurity.md +0 -8
  863. package/docs/sdk/models/operations/updateatsdocumentsecurity.md +0 -8
  864. package/docs/sdk/models/operations/updateatsinterviewsecurity.md +0 -8
  865. package/docs/sdk/models/operations/updateatsjobsecurity.md +0 -8
  866. package/docs/sdk/models/operations/updateatsscorecardsecurity.md +0 -8
  867. package/docs/sdk/models/operations/updatecommercecollectionsecurity.md +0 -8
  868. package/docs/sdk/models/operations/updatecommerceinventorysecurity.md +0 -8
  869. package/docs/sdk/models/operations/updatecommerceitemsecurity.md +0 -8
  870. package/docs/sdk/models/operations/updatecommercelocationsecurity.md +0 -8
  871. package/docs/sdk/models/operations/updatecrmcompanysecurity.md +0 -8
  872. package/docs/sdk/models/operations/updatecrmcontactsecurity.md +0 -8
  873. package/docs/sdk/models/operations/updatecrmdealsecurity.md +0 -8
  874. package/docs/sdk/models/operations/updatecrmeventsecurity.md +0 -8
  875. package/docs/sdk/models/operations/updatecrmleadsecurity.md +0 -8
  876. package/docs/sdk/models/operations/updatecrmpipelinesecurity.md +0 -8
  877. package/docs/sdk/models/operations/updatehrisemployeesecurity.md +0 -8
  878. package/docs/sdk/models/operations/updatehrisgroupsecurity.md +0 -8
  879. package/docs/sdk/models/operations/updatemartechlistsecurity.md +0 -8
  880. package/docs/sdk/models/operations/updatemartechmembersecurity.md +0 -8
  881. package/docs/sdk/models/operations/updatepassthroughsecurity.md +0 -8
  882. package/docs/sdk/models/operations/updatestoragefilesecurity.md +0 -8
  883. package/docs/sdk/models/operations/updateticketingcustomersecurity.md +0 -8
  884. package/docs/sdk/models/operations/updateticketingnotesecurity.md +0 -8
  885. package/docs/sdk/models/operations/updateticketingticketsecurity.md +0 -8
  886. package/docs/sdk/models/operations/updateuccontactsecurity.md +0 -8
  887. package/docs/sdk/models/operations/updateunifiedconnectionsecurity.md +0 -8
  888. package/docs/sdk/models/operations/updateunifiedwebhooktriggersecurity.md +0 -8
  889. package/docs/sdk/models/shared/accountingpayout.md +0 -15
  890. package/docs/sdk/models/shared/accountingrefund.md +0 -17
  891. package/docs/sdks/account/README.md +0 -318
  892. package/docs/sdks/accounting/README.md +0 -2240
  893. package/docs/sdks/activity/README.md +0 -327
  894. package/docs/sdks/apicall/README.md +0 -97
  895. package/docs/sdks/application/README.md +0 -339
  896. package/docs/sdks/applicationstatus/README.md +0 -55
  897. package/docs/sdks/ats/README.md +0 -2533
  898. package/docs/sdks/auth/README.md +0 -95
  899. package/docs/sdks/call/README.md +0 -55
  900. package/docs/sdks/candidate/README.md +0 -375
  901. package/docs/sdks/collection/README.md +0 -354
  902. package/docs/sdks/commerce/README.md +0 -1395
  903. package/docs/sdks/company/README.md +0 -526
  904. package/docs/sdks/connection/README.md +0 -364
  905. package/docs/sdks/contact/README.md +0 -1046
  906. package/docs/sdks/crm/README.md +0 -2084
  907. package/docs/sdks/customer/README.md +0 -354
  908. package/docs/sdks/deal/README.md +0 -321
  909. package/docs/sdks/document/README.md +0 -315
  910. package/docs/sdks/employee/README.md +0 -369
  911. package/docs/sdks/enrich/README.md +0 -99
  912. package/docs/sdks/event/README.md +0 -396
  913. package/docs/sdks/file/README.md +0 -336
  914. package/docs/sdks/group/README.md +0 -333
  915. package/docs/sdks/hris/README.md +0 -697
  916. package/docs/sdks/integration/README.md +0 -147
  917. package/docs/sdks/interview/README.md +0 -324
  918. package/docs/sdks/inventory/README.md +0 -315
  919. package/docs/sdks/invoice/README.md +0 -330
  920. package/docs/sdks/issue/README.md +0 -50
  921. package/docs/sdks/item/README.md +0 -423
  922. package/docs/sdks/job/README.md +0 -402
  923. package/docs/sdks/lead/README.md +0 -342
  924. package/docs/sdks/list/README.md +0 -312
  925. package/docs/sdks/location/README.md +0 -318
  926. package/docs/sdks/login/README.md +0 -48
  927. package/docs/sdks/martech/README.md +0 -655
  928. package/docs/sdks/member/README.md +0 -348
  929. package/docs/sdks/note/README.md +0 -312
  930. package/docs/sdks/organization/README.md +0 -106
  931. package/docs/sdks/passthrough/README.md +0 -254
  932. package/docs/sdks/payment/README.md +0 -312
  933. package/docs/sdks/payout/README.md +0 -106
  934. package/docs/sdks/person/README.md +0 -52
  935. package/docs/sdks/pipeline/README.md +0 -312
  936. package/docs/sdks/refund/README.md +0 -106
  937. package/docs/sdks/scorecard/README.md +0 -330
  938. package/docs/sdks/storage/README.md +0 -336
  939. package/docs/sdks/taxrate/README.md +0 -318
  940. package/docs/sdks/ticket/README.md +0 -324
  941. package/docs/sdks/ticketing/README.md +0 -980
  942. package/docs/sdks/transaction/README.md +0 -333
  943. package/docs/sdks/uc/README.md +0 -395
  944. package/docs/sdks/unified/README.md +0 -935
  945. package/docs/sdks/unifiedto/README.md +0 -9
  946. package/docs/sdks/webhook/README.md +0 -297
@@ -99,24 +99,24 @@ var Payment = /** @class */ (function () {
99
99
  this.sdkConfiguration = sdkConfig;
100
100
  }
101
101
  /**
102
- * Create a payment
102
+ * Create a payment link
103
103
  */
104
- Payment.prototype.createAccountingPayment = function (req, security, config) {
104
+ Payment.prototype.createPaymentLink = function (req, config) {
105
105
  var _a, _b;
106
106
  return __awaiter(this, void 0, void 0, function () {
107
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
107
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
108
108
  var _d;
109
109
  return __generator(this, function (_e) {
110
110
  switch (_e.label) {
111
111
  case 0:
112
112
  if (!(req instanceof utils.SpeakeasyBase)) {
113
- req = new operations.CreateAccountingPaymentRequest(req);
113
+ req = new operations.CreatePaymentLinkRequest(req);
114
114
  }
115
115
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
116
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment", req);
116
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link", req);
117
117
  _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
118
118
  try {
119
- _d = __read(utils.serializeRequestBody(req, "accountingPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
119
+ _d = __read(utils.serializeRequestBody(req, "paymentLink", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
120
120
  }
121
121
  catch (e) {
122
122
  if (e instanceof Error) {
@@ -124,21 +124,161 @@ var Payment = /** @class */ (function () {
124
124
  }
125
125
  }
126
126
  client = this.sdkConfiguration.defaultClient;
127
- if (!(security instanceof utils.SpeakeasyBase)) {
128
- security = new operations.CreateAccountingPaymentSecurity(security);
127
+ globalSecurity = this.sdkConfiguration.security;
128
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
129
+ return [4 /*yield*/, globalSecurity()];
130
+ case 1:
131
+ globalSecurity = _e.sent();
132
+ _e.label = 2;
133
+ case 2:
134
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
135
+ globalSecurity = new shared.Security(globalSecurity);
129
136
  }
130
- properties = utils.parseSecurityProperties(security);
137
+ properties = utils.parseSecurityProperties(globalSecurity);
131
138
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
132
139
  headers["Accept"] = "application/json";
133
140
  headers["user-agent"] = this.sdkConfiguration.userAgent;
134
141
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
142
+ case 3:
143
+ httpRes = _e.sent();
144
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
145
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
146
+ throw new Error("status code not found in response: ".concat(httpRes));
147
+ }
148
+ res = new operations.CreatePaymentLinkResponse({
149
+ statusCode: httpRes.status,
150
+ contentType: responseContentType,
151
+ rawResponse: httpRes,
152
+ });
153
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
154
+ switch (true) {
155
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
156
+ if (utils.matchContentType(responseContentType, "application/json")) {
157
+ res.paymentLink = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentLink);
158
+ }
159
+ else {
160
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
161
+ }
162
+ break;
163
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
164
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
165
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
166
+ }
167
+ return [2 /*return*/, res];
168
+ }
169
+ });
170
+ });
171
+ };
172
+ /**
173
+ * Create a payment
174
+ */
175
+ Payment.prototype.createPaymentPayment = function (req, config) {
176
+ var _a, _b;
177
+ return __awaiter(this, void 0, void 0, function () {
178
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
179
+ var _d;
180
+ return __generator(this, function (_e) {
181
+ switch (_e.label) {
182
+ case 0:
183
+ if (!(req instanceof utils.SpeakeasyBase)) {
184
+ req = new operations.CreatePaymentPaymentRequest(req);
185
+ }
186
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
187
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment", req);
188
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
189
+ try {
190
+ _d = __read(utils.serializeRequestBody(req, "paymentPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
191
+ }
192
+ catch (e) {
193
+ if (e instanceof Error) {
194
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
195
+ }
196
+ }
197
+ client = this.sdkConfiguration.defaultClient;
198
+ globalSecurity = this.sdkConfiguration.security;
199
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
200
+ return [4 /*yield*/, globalSecurity()];
135
201
  case 1:
202
+ globalSecurity = _e.sent();
203
+ _e.label = 2;
204
+ case 2:
205
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
206
+ globalSecurity = new shared.Security(globalSecurity);
207
+ }
208
+ properties = utils.parseSecurityProperties(globalSecurity);
209
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
210
+ headers["Accept"] = "application/json";
211
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
212
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
213
+ case 3:
136
214
  httpRes = _e.sent();
137
215
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
138
216
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
139
217
  throw new Error("status code not found in response: ".concat(httpRes));
140
218
  }
141
- res = new operations.CreateAccountingPaymentResponse({
219
+ res = new operations.CreatePaymentPaymentResponse({
220
+ statusCode: httpRes.status,
221
+ contentType: responseContentType,
222
+ rawResponse: httpRes,
223
+ });
224
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
225
+ switch (true) {
226
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
227
+ if (utils.matchContentType(responseContentType, "application/json")) {
228
+ res.paymentPayment = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayment);
229
+ }
230
+ else {
231
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
232
+ }
233
+ break;
234
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
235
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
236
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
237
+ }
238
+ return [2 /*return*/, res];
239
+ }
240
+ });
241
+ });
242
+ };
243
+ /**
244
+ * Retrieve a payment link
245
+ */
246
+ Payment.prototype.getPaymentLink = function (req, config) {
247
+ var _a, _b;
248
+ return __awaiter(this, void 0, void 0, function () {
249
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
250
+ return __generator(this, function (_c) {
251
+ switch (_c.label) {
252
+ case 0:
253
+ if (!(req instanceof utils.SpeakeasyBase)) {
254
+ req = new operations.GetPaymentLinkRequest(req);
255
+ }
256
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
257
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link/{id}", req);
258
+ client = this.sdkConfiguration.defaultClient;
259
+ globalSecurity = this.sdkConfiguration.security;
260
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
261
+ return [4 /*yield*/, globalSecurity()];
262
+ case 1:
263
+ globalSecurity = _c.sent();
264
+ _c.label = 2;
265
+ case 2:
266
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
267
+ globalSecurity = new shared.Security(globalSecurity);
268
+ }
269
+ properties = utils.parseSecurityProperties(globalSecurity);
270
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
271
+ queryParams = utils.serializeQueryParams(req);
272
+ headers["Accept"] = "application/json";
273
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
274
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
275
+ case 3:
276
+ httpRes = _c.sent();
277
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
278
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
279
+ throw new Error("status code not found in response: ".concat(httpRes));
280
+ }
281
+ res = new operations.GetPaymentLinkResponse({
142
282
  statusCode: httpRes.status,
143
283
  contentType: responseContentType,
144
284
  rawResponse: httpRes,
@@ -147,7 +287,7 @@ var Payment = /** @class */ (function () {
147
287
  switch (true) {
148
288
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
149
289
  if (utils.matchContentType(responseContentType, "application/json")) {
150
- res.accountingPayment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayment);
290
+ res.paymentLink = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentLink);
151
291
  }
152
292
  else {
153
293
  throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
@@ -165,35 +305,104 @@ var Payment = /** @class */ (function () {
165
305
  /**
166
306
  * Retrieve a payment
167
307
  */
168
- Payment.prototype.getAccountingPayment = function (req, security, config) {
308
+ Payment.prototype.getPaymentPayment = function (req, config) {
169
309
  var _a, _b;
170
310
  return __awaiter(this, void 0, void 0, function () {
171
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
311
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
172
312
  return __generator(this, function (_c) {
173
313
  switch (_c.label) {
174
314
  case 0:
175
315
  if (!(req instanceof utils.SpeakeasyBase)) {
176
- req = new operations.GetAccountingPaymentRequest(req);
316
+ req = new operations.GetPaymentPaymentRequest(req);
177
317
  }
178
318
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
179
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment/{id}", req);
319
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment/{id}", req);
180
320
  client = this.sdkConfiguration.defaultClient;
181
- if (!(security instanceof utils.SpeakeasyBase)) {
182
- security = new operations.GetAccountingPaymentSecurity(security);
321
+ globalSecurity = this.sdkConfiguration.security;
322
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
323
+ return [4 /*yield*/, globalSecurity()];
324
+ case 1:
325
+ globalSecurity = _c.sent();
326
+ _c.label = 2;
327
+ case 2:
328
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
329
+ globalSecurity = new shared.Security(globalSecurity);
183
330
  }
184
- properties = utils.parseSecurityProperties(security);
331
+ properties = utils.parseSecurityProperties(globalSecurity);
185
332
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
186
333
  queryParams = utils.serializeQueryParams(req);
187
334
  headers["Accept"] = "application/json";
188
335
  headers["user-agent"] = this.sdkConfiguration.userAgent;
189
336
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
337
+ case 3:
338
+ httpRes = _c.sent();
339
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
340
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
341
+ throw new Error("status code not found in response: ".concat(httpRes));
342
+ }
343
+ res = new operations.GetPaymentPaymentResponse({
344
+ statusCode: httpRes.status,
345
+ contentType: responseContentType,
346
+ rawResponse: httpRes,
347
+ });
348
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
349
+ switch (true) {
350
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
351
+ if (utils.matchContentType(responseContentType, "application/json")) {
352
+ res.paymentPayment = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayment);
353
+ }
354
+ else {
355
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
356
+ }
357
+ break;
358
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
359
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
360
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
361
+ }
362
+ return [2 /*return*/, res];
363
+ }
364
+ });
365
+ });
366
+ };
367
+ /**
368
+ * Retrieve a payout
369
+ */
370
+ Payment.prototype.getPaymentPayout = function (req, config) {
371
+ var _a, _b;
372
+ return __awaiter(this, void 0, void 0, function () {
373
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
374
+ return __generator(this, function (_c) {
375
+ switch (_c.label) {
376
+ case 0:
377
+ if (!(req instanceof utils.SpeakeasyBase)) {
378
+ req = new operations.GetPaymentPayoutRequest(req);
379
+ }
380
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
381
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payout/{id}", req);
382
+ client = this.sdkConfiguration.defaultClient;
383
+ globalSecurity = this.sdkConfiguration.security;
384
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
385
+ return [4 /*yield*/, globalSecurity()];
190
386
  case 1:
387
+ globalSecurity = _c.sent();
388
+ _c.label = 2;
389
+ case 2:
390
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
391
+ globalSecurity = new shared.Security(globalSecurity);
392
+ }
393
+ properties = utils.parseSecurityProperties(globalSecurity);
394
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
395
+ queryParams = utils.serializeQueryParams(req);
396
+ headers["Accept"] = "application/json";
397
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
398
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
399
+ case 3:
191
400
  httpRes = _c.sent();
192
401
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
193
402
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
194
403
  throw new Error("status code not found in response: ".concat(httpRes));
195
404
  }
196
- res = new operations.GetAccountingPaymentResponse({
405
+ res = new operations.GetPaymentPayoutResponse({
197
406
  statusCode: httpRes.status,
198
407
  contentType: responseContentType,
199
408
  rawResponse: httpRes,
@@ -202,7 +411,133 @@ var Payment = /** @class */ (function () {
202
411
  switch (true) {
203
412
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
204
413
  if (utils.matchContentType(responseContentType, "application/json")) {
205
- res.accountingPayment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayment);
414
+ res.paymentPayout = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayout);
415
+ }
416
+ else {
417
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
418
+ }
419
+ break;
420
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
421
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
422
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
423
+ }
424
+ return [2 /*return*/, res];
425
+ }
426
+ });
427
+ });
428
+ };
429
+ /**
430
+ * Retrieve a refund
431
+ */
432
+ Payment.prototype.getPaymentRefund = function (req, config) {
433
+ var _a, _b;
434
+ return __awaiter(this, void 0, void 0, function () {
435
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
436
+ return __generator(this, function (_c) {
437
+ switch (_c.label) {
438
+ case 0:
439
+ if (!(req instanceof utils.SpeakeasyBase)) {
440
+ req = new operations.GetPaymentRefundRequest(req);
441
+ }
442
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
443
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/refund/{id}", req);
444
+ client = this.sdkConfiguration.defaultClient;
445
+ globalSecurity = this.sdkConfiguration.security;
446
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
447
+ return [4 /*yield*/, globalSecurity()];
448
+ case 1:
449
+ globalSecurity = _c.sent();
450
+ _c.label = 2;
451
+ case 2:
452
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
453
+ globalSecurity = new shared.Security(globalSecurity);
454
+ }
455
+ properties = utils.parseSecurityProperties(globalSecurity);
456
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
457
+ queryParams = utils.serializeQueryParams(req);
458
+ headers["Accept"] = "application/json";
459
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
460
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
461
+ case 3:
462
+ httpRes = _c.sent();
463
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
464
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
465
+ throw new Error("status code not found in response: ".concat(httpRes));
466
+ }
467
+ res = new operations.GetPaymentRefundResponse({
468
+ statusCode: httpRes.status,
469
+ contentType: responseContentType,
470
+ rawResponse: httpRes,
471
+ });
472
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
473
+ switch (true) {
474
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
475
+ if (utils.matchContentType(responseContentType, "application/json")) {
476
+ res.paymentRefund = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentRefund);
477
+ }
478
+ else {
479
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
480
+ }
481
+ break;
482
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
483
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
484
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
485
+ }
486
+ return [2 /*return*/, res];
487
+ }
488
+ });
489
+ });
490
+ };
491
+ /**
492
+ * List all payment links
493
+ */
494
+ Payment.prototype.listPaymentLinks = function (req, config) {
495
+ var _a, _b;
496
+ return __awaiter(this, void 0, void 0, function () {
497
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
498
+ return __generator(this, function (_c) {
499
+ switch (_c.label) {
500
+ case 0:
501
+ if (!(req instanceof utils.SpeakeasyBase)) {
502
+ req = new operations.ListPaymentLinksRequest(req);
503
+ }
504
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
505
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link", req);
506
+ client = this.sdkConfiguration.defaultClient;
507
+ globalSecurity = this.sdkConfiguration.security;
508
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
509
+ return [4 /*yield*/, globalSecurity()];
510
+ case 1:
511
+ globalSecurity = _c.sent();
512
+ _c.label = 2;
513
+ case 2:
514
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
515
+ globalSecurity = new shared.Security(globalSecurity);
516
+ }
517
+ properties = utils.parseSecurityProperties(globalSecurity);
518
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
519
+ queryParams = utils.serializeQueryParams(req);
520
+ headers["Accept"] = "application/json";
521
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
522
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
523
+ case 3:
524
+ httpRes = _c.sent();
525
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
526
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
527
+ throw new Error("status code not found in response: ".concat(httpRes));
528
+ }
529
+ res = new operations.ListPaymentLinksResponse({
530
+ statusCode: httpRes.status,
531
+ contentType: responseContentType,
532
+ rawResponse: httpRes,
533
+ });
534
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
535
+ switch (true) {
536
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
537
+ if (utils.matchContentType(responseContentType, "application/json")) {
538
+ res.paymentLinks = [];
539
+ resFieldDepth = utils.getResFieldDepth(res);
540
+ res.paymentLinks = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentLink, resFieldDepth);
206
541
  }
207
542
  else {
208
543
  throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
@@ -220,35 +555,106 @@ var Payment = /** @class */ (function () {
220
555
  /**
221
556
  * List all payments
222
557
  */
223
- Payment.prototype.listAccountingPayments = function (req, security, config) {
558
+ Payment.prototype.listPaymentPayments = function (req, config) {
224
559
  var _a, _b;
225
560
  return __awaiter(this, void 0, void 0, function () {
226
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
561
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
227
562
  return __generator(this, function (_c) {
228
563
  switch (_c.label) {
229
564
  case 0:
230
565
  if (!(req instanceof utils.SpeakeasyBase)) {
231
- req = new operations.ListAccountingPaymentsRequest(req);
566
+ req = new operations.ListPaymentPaymentsRequest(req);
232
567
  }
233
568
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
234
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment", req);
569
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment", req);
235
570
  client = this.sdkConfiguration.defaultClient;
236
- if (!(security instanceof utils.SpeakeasyBase)) {
237
- security = new operations.ListAccountingPaymentsSecurity(security);
571
+ globalSecurity = this.sdkConfiguration.security;
572
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
573
+ return [4 /*yield*/, globalSecurity()];
574
+ case 1:
575
+ globalSecurity = _c.sent();
576
+ _c.label = 2;
577
+ case 2:
578
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
579
+ globalSecurity = new shared.Security(globalSecurity);
238
580
  }
239
- properties = utils.parseSecurityProperties(security);
581
+ properties = utils.parseSecurityProperties(globalSecurity);
240
582
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
241
583
  queryParams = utils.serializeQueryParams(req);
242
584
  headers["Accept"] = "application/json";
243
585
  headers["user-agent"] = this.sdkConfiguration.userAgent;
244
586
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
587
+ case 3:
588
+ httpRes = _c.sent();
589
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
590
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
591
+ throw new Error("status code not found in response: ".concat(httpRes));
592
+ }
593
+ res = new operations.ListPaymentPaymentsResponse({
594
+ statusCode: httpRes.status,
595
+ contentType: responseContentType,
596
+ rawResponse: httpRes,
597
+ });
598
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
599
+ switch (true) {
600
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
601
+ if (utils.matchContentType(responseContentType, "application/json")) {
602
+ res.paymentPayments = [];
603
+ resFieldDepth = utils.getResFieldDepth(res);
604
+ res.paymentPayments = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayment, resFieldDepth);
605
+ }
606
+ else {
607
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
608
+ }
609
+ break;
610
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
611
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
612
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
613
+ }
614
+ return [2 /*return*/, res];
615
+ }
616
+ });
617
+ });
618
+ };
619
+ /**
620
+ * List all payouts
621
+ */
622
+ Payment.prototype.listPaymentPayouts = function (req, config) {
623
+ var _a, _b;
624
+ return __awaiter(this, void 0, void 0, function () {
625
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
626
+ return __generator(this, function (_c) {
627
+ switch (_c.label) {
628
+ case 0:
629
+ if (!(req instanceof utils.SpeakeasyBase)) {
630
+ req = new operations.ListPaymentPayoutsRequest(req);
631
+ }
632
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
633
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payout", req);
634
+ client = this.sdkConfiguration.defaultClient;
635
+ globalSecurity = this.sdkConfiguration.security;
636
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
637
+ return [4 /*yield*/, globalSecurity()];
245
638
  case 1:
639
+ globalSecurity = _c.sent();
640
+ _c.label = 2;
641
+ case 2:
642
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
643
+ globalSecurity = new shared.Security(globalSecurity);
644
+ }
645
+ properties = utils.parseSecurityProperties(globalSecurity);
646
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
647
+ queryParams = utils.serializeQueryParams(req);
648
+ headers["Accept"] = "application/json";
649
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
650
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
651
+ case 3:
246
652
  httpRes = _c.sent();
247
653
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
248
654
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
249
655
  throw new Error("status code not found in response: ".concat(httpRes));
250
656
  }
251
- res = new operations.ListAccountingPaymentsResponse({
657
+ res = new operations.ListPaymentPayoutsResponse({
252
658
  statusCode: httpRes.status,
253
659
  contentType: responseContentType,
254
660
  rawResponse: httpRes,
@@ -257,9 +663,9 @@ var Payment = /** @class */ (function () {
257
663
  switch (true) {
258
664
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
259
665
  if (utils.matchContentType(responseContentType, "application/json")) {
260
- res.accountingPayments = [];
666
+ res.paymentPayouts = [];
261
667
  resFieldDepth = utils.getResFieldDepth(res);
262
- res.accountingPayments = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayment, resFieldDepth);
668
+ res.paymentPayouts = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayout, resFieldDepth);
263
669
  }
264
670
  else {
265
671
  throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
@@ -275,24 +681,88 @@ var Payment = /** @class */ (function () {
275
681
  });
276
682
  };
277
683
  /**
278
- * Update a payment
684
+ * List all refunds
279
685
  */
280
- Payment.prototype.patchAccountingPayment = function (req, security, config) {
686
+ Payment.prototype.listPaymentRefunds = function (req, config) {
281
687
  var _a, _b;
282
688
  return __awaiter(this, void 0, void 0, function () {
283
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
689
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
690
+ return __generator(this, function (_c) {
691
+ switch (_c.label) {
692
+ case 0:
693
+ if (!(req instanceof utils.SpeakeasyBase)) {
694
+ req = new operations.ListPaymentRefundsRequest(req);
695
+ }
696
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
697
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/refund", req);
698
+ client = this.sdkConfiguration.defaultClient;
699
+ globalSecurity = this.sdkConfiguration.security;
700
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
701
+ return [4 /*yield*/, globalSecurity()];
702
+ case 1:
703
+ globalSecurity = _c.sent();
704
+ _c.label = 2;
705
+ case 2:
706
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
707
+ globalSecurity = new shared.Security(globalSecurity);
708
+ }
709
+ properties = utils.parseSecurityProperties(globalSecurity);
710
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
711
+ queryParams = utils.serializeQueryParams(req);
712
+ headers["Accept"] = "application/json";
713
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
714
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
715
+ case 3:
716
+ httpRes = _c.sent();
717
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
718
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
719
+ throw new Error("status code not found in response: ".concat(httpRes));
720
+ }
721
+ res = new operations.ListPaymentRefundsResponse({
722
+ statusCode: httpRes.status,
723
+ contentType: responseContentType,
724
+ rawResponse: httpRes,
725
+ });
726
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
727
+ switch (true) {
728
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
729
+ if (utils.matchContentType(responseContentType, "application/json")) {
730
+ res.paymentRefunds = [];
731
+ resFieldDepth = utils.getResFieldDepth(res);
732
+ res.paymentRefunds = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentRefund, resFieldDepth);
733
+ }
734
+ else {
735
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
736
+ }
737
+ break;
738
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
739
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
740
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
741
+ }
742
+ return [2 /*return*/, res];
743
+ }
744
+ });
745
+ });
746
+ };
747
+ /**
748
+ * Update a payment link
749
+ */
750
+ Payment.prototype.patchPaymentLink = function (req, config) {
751
+ var _a, _b;
752
+ return __awaiter(this, void 0, void 0, function () {
753
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
284
754
  var _d;
285
755
  return __generator(this, function (_e) {
286
756
  switch (_e.label) {
287
757
  case 0:
288
758
  if (!(req instanceof utils.SpeakeasyBase)) {
289
- req = new operations.PatchAccountingPaymentRequest(req);
759
+ req = new operations.PatchPaymentLinkRequest(req);
290
760
  }
291
761
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
292
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment/{id}", req);
762
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link/{id}", req);
293
763
  _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
294
764
  try {
295
- _d = __read(utils.serializeRequestBody(req, "accountingPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
765
+ _d = __read(utils.serializeRequestBody(req, "paymentLink", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
296
766
  }
297
767
  catch (e) {
298
768
  if (e instanceof Error) {
@@ -300,21 +770,99 @@ var Payment = /** @class */ (function () {
300
770
  }
301
771
  }
302
772
  client = this.sdkConfiguration.defaultClient;
303
- if (!(security instanceof utils.SpeakeasyBase)) {
304
- security = new operations.PatchAccountingPaymentSecurity(security);
773
+ globalSecurity = this.sdkConfiguration.security;
774
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
775
+ return [4 /*yield*/, globalSecurity()];
776
+ case 1:
777
+ globalSecurity = _e.sent();
778
+ _e.label = 2;
779
+ case 2:
780
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
781
+ globalSecurity = new shared.Security(globalSecurity);
305
782
  }
306
- properties = utils.parseSecurityProperties(security);
783
+ properties = utils.parseSecurityProperties(globalSecurity);
307
784
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
308
785
  headers["Accept"] = "application/json";
309
786
  headers["user-agent"] = this.sdkConfiguration.userAgent;
310
787
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
788
+ case 3:
789
+ httpRes = _e.sent();
790
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
791
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
792
+ throw new Error("status code not found in response: ".concat(httpRes));
793
+ }
794
+ res = new operations.PatchPaymentLinkResponse({
795
+ statusCode: httpRes.status,
796
+ contentType: responseContentType,
797
+ rawResponse: httpRes,
798
+ });
799
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
800
+ switch (true) {
801
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
802
+ if (utils.matchContentType(responseContentType, "application/json")) {
803
+ res.paymentLink = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentLink);
804
+ }
805
+ else {
806
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
807
+ }
808
+ break;
809
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
810
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
811
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
812
+ }
813
+ return [2 /*return*/, res];
814
+ }
815
+ });
816
+ });
817
+ };
818
+ /**
819
+ * Update a payment
820
+ */
821
+ Payment.prototype.patchPaymentPayment = function (req, config) {
822
+ var _a, _b;
823
+ return __awaiter(this, void 0, void 0, function () {
824
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
825
+ var _d;
826
+ return __generator(this, function (_e) {
827
+ switch (_e.label) {
828
+ case 0:
829
+ if (!(req instanceof utils.SpeakeasyBase)) {
830
+ req = new operations.PatchPaymentPaymentRequest(req);
831
+ }
832
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
833
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment/{id}", req);
834
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
835
+ try {
836
+ _d = __read(utils.serializeRequestBody(req, "paymentPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
837
+ }
838
+ catch (e) {
839
+ if (e instanceof Error) {
840
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
841
+ }
842
+ }
843
+ client = this.sdkConfiguration.defaultClient;
844
+ globalSecurity = this.sdkConfiguration.security;
845
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
846
+ return [4 /*yield*/, globalSecurity()];
311
847
  case 1:
848
+ globalSecurity = _e.sent();
849
+ _e.label = 2;
850
+ case 2:
851
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
852
+ globalSecurity = new shared.Security(globalSecurity);
853
+ }
854
+ properties = utils.parseSecurityProperties(globalSecurity);
855
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
856
+ headers["Accept"] = "application/json";
857
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
858
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
859
+ case 3:
312
860
  httpRes = _e.sent();
313
861
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
314
862
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
315
863
  throw new Error("status code not found in response: ".concat(httpRes));
316
864
  }
317
- res = new operations.PatchAccountingPaymentResponse({
865
+ res = new operations.PatchPaymentPaymentResponse({
318
866
  statusCode: httpRes.status,
319
867
  contentType: responseContentType,
320
868
  rawResponse: httpRes,
@@ -323,7 +871,7 @@ var Payment = /** @class */ (function () {
323
871
  switch (true) {
324
872
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
325
873
  if (utils.matchContentType(responseContentType, "application/json")) {
326
- res.accountingPayment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayment);
874
+ res.paymentPayment = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayment);
327
875
  }
328
876
  else {
329
877
  throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
@@ -339,36 +887,104 @@ var Payment = /** @class */ (function () {
339
887
  });
340
888
  };
341
889
  /**
342
- * Remove a payment
890
+ * Remove a payment link
343
891
  */
344
- Payment.prototype.removeAccountingPayment = function (req, security, config) {
892
+ Payment.prototype.removePaymentLink = function (req, config) {
345
893
  var _a, _b;
346
894
  return __awaiter(this, void 0, void 0, function () {
347
- var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
895
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
348
896
  return __generator(this, function (_c) {
349
897
  switch (_c.label) {
350
898
  case 0:
351
899
  if (!(req instanceof utils.SpeakeasyBase)) {
352
- req = new operations.RemoveAccountingPaymentRequest(req);
900
+ req = new operations.RemovePaymentLinkRequest(req);
353
901
  }
354
902
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
355
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment/{id}", req);
903
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link/{id}", req);
356
904
  client = this.sdkConfiguration.defaultClient;
357
- if (!(security instanceof utils.SpeakeasyBase)) {
358
- security = new operations.RemoveAccountingPaymentSecurity(security);
905
+ globalSecurity = this.sdkConfiguration.security;
906
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
907
+ return [4 /*yield*/, globalSecurity()];
908
+ case 1:
909
+ globalSecurity = _c.sent();
910
+ _c.label = 2;
911
+ case 2:
912
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
913
+ globalSecurity = new shared.Security(globalSecurity);
359
914
  }
360
- properties = utils.parseSecurityProperties(security);
915
+ properties = utils.parseSecurityProperties(globalSecurity);
361
916
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
362
917
  headers["Accept"] = "application/json";
363
918
  headers["user-agent"] = this.sdkConfiguration.userAgent;
364
919
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
920
+ case 3:
921
+ httpRes = _c.sent();
922
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
923
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
924
+ throw new Error("status code not found in response: ".concat(httpRes));
925
+ }
926
+ res = new operations.RemovePaymentLinkResponse({
927
+ statusCode: httpRes.status,
928
+ contentType: responseContentType,
929
+ rawResponse: httpRes,
930
+ });
931
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
932
+ switch (true) {
933
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
934
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
935
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
936
+ default:
937
+ if (utils.matchContentType(responseContentType, "application/json")) {
938
+ res.res = decodedRes;
939
+ }
940
+ else {
941
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
942
+ }
943
+ break;
944
+ }
945
+ return [2 /*return*/, res];
946
+ }
947
+ });
948
+ });
949
+ };
950
+ /**
951
+ * Remove a payment
952
+ */
953
+ Payment.prototype.removePaymentPayment = function (req, config) {
954
+ var _a, _b;
955
+ return __awaiter(this, void 0, void 0, function () {
956
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
957
+ return __generator(this, function (_c) {
958
+ switch (_c.label) {
959
+ case 0:
960
+ if (!(req instanceof utils.SpeakeasyBase)) {
961
+ req = new operations.RemovePaymentPaymentRequest(req);
962
+ }
963
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
964
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment/{id}", req);
965
+ client = this.sdkConfiguration.defaultClient;
966
+ globalSecurity = this.sdkConfiguration.security;
967
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
968
+ return [4 /*yield*/, globalSecurity()];
365
969
  case 1:
970
+ globalSecurity = _c.sent();
971
+ _c.label = 2;
972
+ case 2:
973
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
974
+ globalSecurity = new shared.Security(globalSecurity);
975
+ }
976
+ properties = utils.parseSecurityProperties(globalSecurity);
977
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
978
+ headers["Accept"] = "application/json";
979
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
980
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
981
+ case 3:
366
982
  httpRes = _c.sent();
367
983
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
368
984
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
369
985
  throw new Error("status code not found in response: ".concat(httpRes));
370
986
  }
371
- res = new operations.RemoveAccountingPaymentResponse({
987
+ res = new operations.RemovePaymentPaymentResponse({
372
988
  statusCode: httpRes.status,
373
989
  contentType: responseContentType,
374
990
  rawResponse: httpRes,
@@ -393,24 +1009,24 @@ var Payment = /** @class */ (function () {
393
1009
  });
394
1010
  };
395
1011
  /**
396
- * Update a payment
1012
+ * Update a payment link
397
1013
  */
398
- Payment.prototype.updateAccountingPayment = function (req, security, config) {
1014
+ Payment.prototype.updatePaymentLink = function (req, config) {
399
1015
  var _a, _b;
400
1016
  return __awaiter(this, void 0, void 0, function () {
401
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1017
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
402
1018
  var _d;
403
1019
  return __generator(this, function (_e) {
404
1020
  switch (_e.label) {
405
1021
  case 0:
406
1022
  if (!(req instanceof utils.SpeakeasyBase)) {
407
- req = new operations.UpdateAccountingPaymentRequest(req);
1023
+ req = new operations.UpdatePaymentLinkRequest(req);
408
1024
  }
409
1025
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
410
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment/{id}", req);
1026
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link/{id}", req);
411
1027
  _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
412
1028
  try {
413
- _d = __read(utils.serializeRequestBody(req, "accountingPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
1029
+ _d = __read(utils.serializeRequestBody(req, "paymentLink", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
414
1030
  }
415
1031
  catch (e) {
416
1032
  if (e instanceof Error) {
@@ -418,21 +1034,99 @@ var Payment = /** @class */ (function () {
418
1034
  }
419
1035
  }
420
1036
  client = this.sdkConfiguration.defaultClient;
421
- if (!(security instanceof utils.SpeakeasyBase)) {
422
- security = new operations.UpdateAccountingPaymentSecurity(security);
1037
+ globalSecurity = this.sdkConfiguration.security;
1038
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1039
+ return [4 /*yield*/, globalSecurity()];
1040
+ case 1:
1041
+ globalSecurity = _e.sent();
1042
+ _e.label = 2;
1043
+ case 2:
1044
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1045
+ globalSecurity = new shared.Security(globalSecurity);
423
1046
  }
424
- properties = utils.parseSecurityProperties(security);
1047
+ properties = utils.parseSecurityProperties(globalSecurity);
425
1048
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
426
1049
  headers["Accept"] = "application/json";
427
1050
  headers["user-agent"] = this.sdkConfiguration.userAgent;
428
1051
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1052
+ case 3:
1053
+ httpRes = _e.sent();
1054
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1055
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1056
+ throw new Error("status code not found in response: ".concat(httpRes));
1057
+ }
1058
+ res = new operations.UpdatePaymentLinkResponse({
1059
+ statusCode: httpRes.status,
1060
+ contentType: responseContentType,
1061
+ rawResponse: httpRes,
1062
+ });
1063
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1064
+ switch (true) {
1065
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1066
+ if (utils.matchContentType(responseContentType, "application/json")) {
1067
+ res.paymentLink = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentLink);
1068
+ }
1069
+ else {
1070
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1071
+ }
1072
+ break;
1073
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1074
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1075
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1076
+ }
1077
+ return [2 /*return*/, res];
1078
+ }
1079
+ });
1080
+ });
1081
+ };
1082
+ /**
1083
+ * Update a payment
1084
+ */
1085
+ Payment.prototype.updatePaymentPayment = function (req, config) {
1086
+ var _a, _b;
1087
+ return __awaiter(this, void 0, void 0, function () {
1088
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
1089
+ var _d;
1090
+ return __generator(this, function (_e) {
1091
+ switch (_e.label) {
1092
+ case 0:
1093
+ if (!(req instanceof utils.SpeakeasyBase)) {
1094
+ req = new operations.UpdatePaymentPaymentRequest(req);
1095
+ }
1096
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1097
+ operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment/{id}", req);
1098
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
1099
+ try {
1100
+ _d = __read(utils.serializeRequestBody(req, "paymentPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
1101
+ }
1102
+ catch (e) {
1103
+ if (e instanceof Error) {
1104
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
1105
+ }
1106
+ }
1107
+ client = this.sdkConfiguration.defaultClient;
1108
+ globalSecurity = this.sdkConfiguration.security;
1109
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1110
+ return [4 /*yield*/, globalSecurity()];
429
1111
  case 1:
1112
+ globalSecurity = _e.sent();
1113
+ _e.label = 2;
1114
+ case 2:
1115
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1116
+ globalSecurity = new shared.Security(globalSecurity);
1117
+ }
1118
+ properties = utils.parseSecurityProperties(globalSecurity);
1119
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1120
+ headers["Accept"] = "application/json";
1121
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1122
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1123
+ case 3:
430
1124
  httpRes = _e.sent();
431
1125
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
432
1126
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
433
1127
  throw new Error("status code not found in response: ".concat(httpRes));
434
1128
  }
435
- res = new operations.UpdateAccountingPaymentResponse({
1129
+ res = new operations.UpdatePaymentPaymentResponse({
436
1130
  statusCode: httpRes.status,
437
1131
  contentType: responseContentType,
438
1132
  rawResponse: httpRes,
@@ -441,7 +1135,7 @@ var Payment = /** @class */ (function () {
441
1135
  switch (true) {
442
1136
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
443
1137
  if (utils.matchContentType(responseContentType, "application/json")) {
444
- res.accountingPayment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayment);
1138
+ res.paymentPayment = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayment);
445
1139
  }
446
1140
  else {
447
1141
  throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);