@paygentic/sdk 0.9.14 → 0.9.16

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 (699) hide show
  1. package/README.md +38 -6
  2. package/dist/commonjs/funcs/costsGetCostReport.js +1 -0
  3. package/dist/commonjs/funcs/costsGetCostReport.js.map +1 -1
  4. package/dist/commonjs/funcs/invoicesV2ListProjectedInvoices.d.ts +18 -0
  5. package/dist/commonjs/funcs/invoicesV2ListProjectedInvoices.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/invoicesV2ListProjectedInvoices.js +125 -0
  7. package/dist/commonjs/funcs/invoicesV2ListProjectedInvoices.js.map +1 -0
  8. package/dist/commonjs/funcs/invoicesV2RecordInvoicePayment.d.ts +27 -0
  9. package/dist/commonjs/funcs/invoicesV2RecordInvoicePayment.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/invoicesV2RecordInvoicePayment.js +133 -0
  11. package/dist/commonjs/funcs/invoicesV2RecordInvoicePayment.js.map +1 -0
  12. package/dist/commonjs/funcs/invoicesV2RetryInvoicePayment.d.ts +40 -0
  13. package/dist/commonjs/funcs/invoicesV2RetryInvoicePayment.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/invoicesV2RetryInvoicePayment.js +157 -0
  15. package/dist/commonjs/funcs/invoicesV2RetryInvoicePayment.js.map +1 -0
  16. package/dist/commonjs/funcs/merchantsReset.d.ts +22 -0
  17. package/dist/commonjs/funcs/merchantsReset.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/merchantsReset.js +129 -0
  19. package/dist/commonjs/funcs/merchantsReset.js.map +1 -0
  20. package/dist/commonjs/funcs/profitabilityGetProfitability.d.ts +1 -1
  21. package/dist/commonjs/funcs/profitabilityGetProfitability.js +3 -2
  22. package/dist/commonjs/funcs/profitabilityGetProfitability.js.map +1 -1
  23. package/dist/commonjs/funcs/revenueGet.d.ts +1 -1
  24. package/dist/commonjs/funcs/revenueGet.js +1 -1
  25. package/dist/commonjs/funcs/subscriptionsListIntervalChanges.d.ts +19 -0
  26. package/dist/commonjs/funcs/subscriptionsListIntervalChanges.d.ts.map +1 -0
  27. package/dist/commonjs/funcs/subscriptionsListIntervalChanges.js +126 -0
  28. package/dist/commonjs/funcs/subscriptionsListIntervalChanges.js.map +1 -0
  29. package/dist/commonjs/funcs/subscriptionsListSubscriptionIntervalChanges.d.ts +19 -0
  30. package/dist/commonjs/funcs/subscriptionsListSubscriptionIntervalChanges.d.ts.map +1 -0
  31. package/dist/commonjs/funcs/subscriptionsListSubscriptionIntervalChanges.js +129 -0
  32. package/dist/commonjs/funcs/subscriptionsListSubscriptionIntervalChanges.js.map +1 -0
  33. package/dist/commonjs/funcs/subscriptionsMigrateSubscriptionVersion.d.ts +19 -0
  34. package/dist/commonjs/funcs/subscriptionsMigrateSubscriptionVersion.d.ts.map +1 -0
  35. package/dist/commonjs/funcs/subscriptionsMigrateSubscriptionVersion.js +127 -0
  36. package/dist/commonjs/funcs/subscriptionsMigrateSubscriptionVersion.js.map +1 -0
  37. package/dist/commonjs/funcs/webhooksDisable.d.ts +18 -0
  38. package/dist/commonjs/funcs/webhooksDisable.d.ts.map +1 -0
  39. package/dist/commonjs/funcs/webhooksDisable.js +122 -0
  40. package/dist/commonjs/funcs/webhooksDisable.js.map +1 -0
  41. package/dist/commonjs/funcs/webhooksEnable.d.ts +19 -0
  42. package/dist/commonjs/funcs/webhooksEnable.d.ts.map +1 -0
  43. package/dist/commonjs/funcs/webhooksEnable.js +122 -0
  44. package/dist/commonjs/funcs/webhooksEnable.js.map +1 -0
  45. package/dist/commonjs/funcs/webhooksGet.d.ts +19 -0
  46. package/dist/commonjs/funcs/webhooksGet.d.ts.map +1 -0
  47. package/dist/commonjs/funcs/webhooksGet.js +122 -0
  48. package/dist/commonjs/funcs/webhooksGet.js.map +1 -0
  49. package/dist/commonjs/funcs/webhooksGetPortal.d.ts +19 -0
  50. package/dist/commonjs/funcs/webhooksGetPortal.d.ts.map +1 -0
  51. package/dist/commonjs/funcs/webhooksGetPortal.js +122 -0
  52. package/dist/commonjs/funcs/webhooksGetPortal.js.map +1 -0
  53. package/dist/commonjs/funcs/webhooksUpdate.d.ts +19 -0
  54. package/dist/commonjs/funcs/webhooksUpdate.d.ts.map +1 -0
  55. package/dist/commonjs/funcs/webhooksUpdate.js +123 -0
  56. package/dist/commonjs/funcs/webhooksUpdate.js.map +1 -0
  57. package/dist/commonjs/lib/config.d.ts +2 -2
  58. package/dist/commonjs/lib/config.js +2 -2
  59. package/dist/commonjs/models/changereason.d.ts +20 -0
  60. package/dist/commonjs/models/changereason.d.ts.map +1 -0
  61. package/dist/commonjs/models/changereason.js +54 -0
  62. package/dist/commonjs/models/changereason.js.map +1 -0
  63. package/dist/commonjs/models/costreportresponse.d.ts +8 -0
  64. package/dist/commonjs/models/costreportresponse.d.ts.map +1 -1
  65. package/dist/commonjs/models/costreportresponse.js +2 -0
  66. package/dist/commonjs/models/costreportresponse.js.map +1 -1
  67. package/dist/commonjs/models/currencybreakdownentry.d.ts +1 -1
  68. package/dist/commonjs/models/editsubscriptionintervalsrequestunion.d.ts +142 -0
  69. package/dist/commonjs/models/editsubscriptionintervalsrequestunion.d.ts.map +1 -0
  70. package/dist/commonjs/models/editsubscriptionintervalsrequestunion.js +95 -0
  71. package/dist/commonjs/models/editsubscriptionintervalsrequestunion.js.map +1 -0
  72. package/dist/commonjs/models/editsubscriptionintervalsresponse.d.ts +5 -0
  73. package/dist/commonjs/models/editsubscriptionintervalsresponse.d.ts.map +1 -1
  74. package/dist/commonjs/models/editsubscriptionintervalsresponse.js +2 -0
  75. package/dist/commonjs/models/editsubscriptionintervalsresponse.js.map +1 -1
  76. package/dist/commonjs/models/elapsedperiodbilling.d.ts +16 -0
  77. package/dist/commonjs/models/elapsedperiodbilling.d.ts.map +1 -0
  78. package/dist/commonjs/models/elapsedperiodbilling.js +50 -0
  79. package/dist/commonjs/models/elapsedperiodbilling.js.map +1 -0
  80. package/dist/commonjs/models/errors/index.d.ts +2 -0
  81. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  82. package/dist/commonjs/models/errors/index.js +2 -0
  83. package/dist/commonjs/models/errors/index.js.map +1 -1
  84. package/dist/commonjs/models/errors/recordinvoicepayment.d.ts +55 -0
  85. package/dist/commonjs/models/errors/recordinvoicepayment.d.ts.map +1 -0
  86. package/dist/commonjs/models/errors/recordinvoicepayment.js +76 -0
  87. package/dist/commonjs/models/errors/recordinvoicepayment.js.map +1 -0
  88. package/dist/commonjs/models/errors/retrypaymentresponseerror.d.ts +63 -0
  89. package/dist/commonjs/models/errors/retrypaymentresponseerror.d.ts.map +1 -0
  90. package/dist/commonjs/models/errors/retrypaymentresponseerror.js +81 -0
  91. package/dist/commonjs/models/errors/retrypaymentresponseerror.js.map +1 -0
  92. package/dist/commonjs/models/grouptrendentry.d.ts +5 -1
  93. package/dist/commonjs/models/grouptrendentry.d.ts.map +1 -1
  94. package/dist/commonjs/models/grouptrendentry.js +1 -0
  95. package/dist/commonjs/models/grouptrendentry.js.map +1 -1
  96. package/dist/commonjs/models/hostedlinkpaymentresult.d.ts +28 -0
  97. package/dist/commonjs/models/hostedlinkpaymentresult.d.ts.map +1 -0
  98. package/dist/commonjs/models/{editsubscriptionintervalsrequest.js → hostedlinkpaymentresult.js} +14 -12
  99. package/dist/commonjs/models/hostedlinkpaymentresult.js.map +1 -0
  100. package/dist/commonjs/models/index.d.ts +21 -2
  101. package/dist/commonjs/models/index.d.ts.map +1 -1
  102. package/dist/commonjs/models/index.js +21 -2
  103. package/dist/commonjs/models/index.js.map +1 -1
  104. package/dist/commonjs/models/intervalchangemetadata.d.ts +13 -0
  105. package/dist/commonjs/models/intervalchangemetadata.d.ts.map +1 -0
  106. package/dist/commonjs/models/intervalchangemetadata.js +54 -0
  107. package/dist/commonjs/models/intervalchangemetadata.js.map +1 -0
  108. package/dist/commonjs/models/invoice.d.ts +8 -3
  109. package/dist/commonjs/models/invoice.d.ts.map +1 -1
  110. package/dist/commonjs/models/invoice.js +3 -1
  111. package/dist/commonjs/models/invoice.js.map +1 -1
  112. package/dist/commonjs/models/invoicepaymentlinkerrorcode.d.ts +17 -0
  113. package/dist/commonjs/models/invoicepaymentlinkerrorcode.d.ts.map +1 -0
  114. package/dist/commonjs/models/invoicepaymentlinkerrorcode.js +51 -0
  115. package/dist/commonjs/models/invoicepaymentlinkerrorcode.js.map +1 -0
  116. package/dist/commonjs/models/invoicepaymentmethod.d.ts +16 -0
  117. package/dist/commonjs/models/invoicepaymentmethod.d.ts.map +1 -0
  118. package/dist/commonjs/models/invoicepaymentmethod.js +50 -0
  119. package/dist/commonjs/models/invoicepaymentmethod.js.map +1 -0
  120. package/dist/commonjs/models/invoicepaymentprovider.d.ts +16 -0
  121. package/dist/commonjs/models/invoicepaymentprovider.d.ts.map +1 -0
  122. package/dist/commonjs/models/invoicepaymentprovider.js +50 -0
  123. package/dist/commonjs/models/invoicepaymentprovider.js.map +1 -0
  124. package/dist/commonjs/models/merchantreset.d.ts +41 -0
  125. package/dist/commonjs/models/merchantreset.d.ts.map +1 -0
  126. package/dist/commonjs/models/merchantreset.js +68 -0
  127. package/dist/commonjs/models/merchantreset.js.map +1 -0
  128. package/dist/commonjs/models/migratesubscriptionversionrequest.d.ts +37 -0
  129. package/dist/commonjs/models/migratesubscriptionversionrequest.d.ts.map +1 -0
  130. package/dist/commonjs/models/migratesubscriptionversionrequest.js +60 -0
  131. package/dist/commonjs/models/migratesubscriptionversionrequest.js.map +1 -0
  132. package/dist/commonjs/models/migratesubscriptionversionresponse.d.ts +47 -0
  133. package/dist/commonjs/models/migratesubscriptionversionresponse.d.ts.map +1 -0
  134. package/dist/commonjs/models/migratesubscriptionversionresponse.js +73 -0
  135. package/dist/commonjs/models/migratesubscriptionversionresponse.js.map +1 -0
  136. package/dist/commonjs/models/operations/createplan.d.ts +5 -0
  137. package/dist/commonjs/models/operations/createplan.d.ts.map +1 -1
  138. package/dist/commonjs/models/operations/createplan.js +1 -0
  139. package/dist/commonjs/models/operations/createplan.js.map +1 -1
  140. package/dist/commonjs/models/operations/createsubscription.d.ts +24 -0
  141. package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
  142. package/dist/commonjs/models/operations/createsubscription.js +5 -0
  143. package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
  144. package/dist/commonjs/models/operations/createwebhooks.d.ts +15 -0
  145. package/dist/commonjs/models/operations/createwebhooks.d.ts.map +1 -0
  146. package/dist/commonjs/models/operations/createwebhooks.js +49 -0
  147. package/dist/commonjs/models/operations/createwebhooks.js.map +1 -0
  148. package/dist/commonjs/models/operations/deletewebhooks.d.ts +15 -0
  149. package/dist/commonjs/models/operations/deletewebhooks.d.ts.map +1 -0
  150. package/dist/commonjs/models/operations/deletewebhooks.js +49 -0
  151. package/dist/commonjs/models/operations/deletewebhooks.js.map +1 -0
  152. package/dist/commonjs/models/operations/editsubscriptionintervals.d.ts +2 -2
  153. package/dist/commonjs/models/operations/editsubscriptionintervals.d.ts.map +1 -1
  154. package/dist/commonjs/models/operations/editsubscriptionintervals.js +1 -1
  155. package/dist/commonjs/models/operations/editsubscriptionintervals.js.map +1 -1
  156. package/dist/commonjs/models/operations/getcostreport.d.ts +5 -0
  157. package/dist/commonjs/models/operations/getcostreport.d.ts.map +1 -1
  158. package/dist/commonjs/models/operations/getcostreport.js +1 -0
  159. package/dist/commonjs/models/operations/getcostreport.js.map +1 -1
  160. package/dist/commonjs/models/operations/getprofitability.d.ts +8 -18
  161. package/dist/commonjs/models/operations/getprofitability.d.ts.map +1 -1
  162. package/dist/commonjs/models/operations/getprofitability.js +3 -12
  163. package/dist/commonjs/models/operations/getprofitability.js.map +1 -1
  164. package/dist/commonjs/models/operations/getwebhookportal.d.ts +15 -0
  165. package/dist/commonjs/models/operations/getwebhookportal.d.ts.map +1 -0
  166. package/dist/commonjs/models/operations/getwebhookportal.js +49 -0
  167. package/dist/commonjs/models/operations/getwebhookportal.js.map +1 -0
  168. package/dist/commonjs/models/operations/getwebhooks.d.ts +15 -0
  169. package/dist/commonjs/models/operations/getwebhooks.d.ts.map +1 -0
  170. package/dist/commonjs/models/operations/getwebhooks.js +49 -0
  171. package/dist/commonjs/models/operations/getwebhooks.js.map +1 -0
  172. package/dist/commonjs/models/operations/index.d.ts +12 -0
  173. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  174. package/dist/commonjs/models/operations/index.js +12 -0
  175. package/dist/commonjs/models/operations/index.js.map +1 -1
  176. package/dist/commonjs/models/operations/listintervalchanges.d.ts +36 -0
  177. package/dist/commonjs/models/operations/listintervalchanges.d.ts.map +1 -0
  178. package/dist/commonjs/models/operations/listintervalchanges.js +54 -0
  179. package/dist/commonjs/models/operations/listintervalchanges.js.map +1 -0
  180. package/dist/commonjs/models/operations/listprojectedinvoices.d.ts +59 -0
  181. package/dist/commonjs/models/operations/listprojectedinvoices.d.ts.map +1 -0
  182. package/dist/commonjs/models/operations/listprojectedinvoices.js +70 -0
  183. package/dist/commonjs/models/operations/listprojectedinvoices.js.map +1 -0
  184. package/dist/commonjs/models/operations/listsubscriptionintervalchanges.d.ts +25 -0
  185. package/dist/commonjs/models/operations/listsubscriptionintervalchanges.d.ts.map +1 -0
  186. package/dist/commonjs/models/operations/listsubscriptionintervalchanges.js +51 -0
  187. package/dist/commonjs/models/operations/listsubscriptionintervalchanges.js.map +1 -0
  188. package/dist/commonjs/models/operations/migratesubscriptionversion.d.ts +18 -0
  189. package/dist/commonjs/models/operations/migratesubscriptionversion.d.ts.map +1 -0
  190. package/dist/commonjs/models/operations/migratesubscriptionversion.js +56 -0
  191. package/dist/commonjs/models/operations/migratesubscriptionversion.js.map +1 -0
  192. package/dist/commonjs/models/operations/recordinvoicepayment.d.ts +45 -0
  193. package/dist/commonjs/models/operations/recordinvoicepayment.d.ts.map +1 -0
  194. package/dist/commonjs/models/operations/recordinvoicepayment.js +75 -0
  195. package/dist/commonjs/models/operations/recordinvoicepayment.js.map +1 -0
  196. package/dist/commonjs/models/operations/resetmerchant.d.ts +15 -0
  197. package/dist/commonjs/models/operations/resetmerchant.d.ts.map +1 -0
  198. package/dist/commonjs/models/operations/resetmerchant.js +56 -0
  199. package/dist/commonjs/models/operations/resetmerchant.js.map +1 -0
  200. package/dist/commonjs/models/operations/retryinvoicepayment.d.ts +30 -0
  201. package/dist/commonjs/models/operations/retryinvoicepayment.d.ts.map +1 -0
  202. package/dist/commonjs/models/operations/retryinvoicepayment.js +64 -0
  203. package/dist/commonjs/models/operations/retryinvoicepayment.js.map +1 -0
  204. package/dist/commonjs/models/operations/terminatesubscription.d.ts +6 -0
  205. package/dist/commonjs/models/operations/terminatesubscription.d.ts.map +1 -1
  206. package/dist/commonjs/models/operations/terminatesubscription.js +2 -0
  207. package/dist/commonjs/models/operations/terminatesubscription.js.map +1 -1
  208. package/dist/commonjs/models/operations/updateplan.d.ts +5 -0
  209. package/dist/commonjs/models/operations/updateplan.d.ts.map +1 -1
  210. package/dist/commonjs/models/operations/updateplan.js +1 -0
  211. package/dist/commonjs/models/operations/updateplan.js.map +1 -1
  212. package/dist/commonjs/models/operations/updatewebhooks.d.ts +30 -0
  213. package/dist/commonjs/models/operations/updatewebhooks.d.ts.map +1 -0
  214. package/dist/commonjs/models/operations/updatewebhooks.js +63 -0
  215. package/dist/commonjs/models/operations/updatewebhooks.js.map +1 -0
  216. package/dist/commonjs/models/outofbandpaymentresult.d.ts +15 -0
  217. package/dist/commonjs/models/outofbandpaymentresult.d.ts.map +1 -0
  218. package/dist/commonjs/models/outofbandpaymentresult.js +52 -0
  219. package/dist/commonjs/models/outofbandpaymentresult.js.map +1 -0
  220. package/dist/commonjs/models/plan.d.ts +5 -0
  221. package/dist/commonjs/models/plan.d.ts.map +1 -1
  222. package/dist/commonjs/models/plan.js +2 -0
  223. package/dist/commonjs/models/plan.js.map +1 -1
  224. package/dist/commonjs/models/profitabilityrow.d.ts +21 -7
  225. package/dist/commonjs/models/profitabilityrow.d.ts.map +1 -1
  226. package/dist/commonjs/models/profitabilityrow.js +13 -3
  227. package/dist/commonjs/models/profitabilityrow.js.map +1 -1
  228. package/dist/commonjs/models/profitabilitysummaryresponse.d.ts +17 -1
  229. package/dist/commonjs/models/profitabilitysummaryresponse.d.ts.map +1 -1
  230. package/dist/commonjs/models/profitabilitysummaryresponse.js +4 -0
  231. package/dist/commonjs/models/profitabilitysummaryresponse.js.map +1 -1
  232. package/dist/commonjs/models/retrypaymenterror.d.ts +28 -0
  233. package/dist/commonjs/models/retrypaymenterror.d.ts.map +1 -0
  234. package/dist/commonjs/models/{profitabilitytrend.js → retrypaymenterror.js} +10 -8
  235. package/dist/commonjs/models/retrypaymenterror.js.map +1 -0
  236. package/dist/commonjs/models/retrypaymentresponse.d.ts +46 -0
  237. package/dist/commonjs/models/retrypaymentresponse.d.ts.map +1 -0
  238. package/dist/commonjs/models/retrypaymentresponse.js +63 -0
  239. package/dist/commonjs/models/retrypaymentresponse.js.map +1 -0
  240. package/dist/commonjs/models/revenuesummaryresponse.d.ts +1 -1
  241. package/dist/commonjs/models/revenuetrendbucket.d.ts +6 -2
  242. package/dist/commonjs/models/revenuetrendbucket.d.ts.map +1 -1
  243. package/dist/commonjs/models/revenuetrendbucket.js +1 -0
  244. package/dist/commonjs/models/revenuetrendbucket.js.map +1 -1
  245. package/dist/commonjs/models/subscription.d.ts +49 -1
  246. package/dist/commonjs/models/subscription.d.ts.map +1 -1
  247. package/dist/commonjs/models/subscription.js +28 -1
  248. package/dist/commonjs/models/subscription.js.map +1 -1
  249. package/dist/commonjs/models/subscriptionintervaladdop.d.ts +1 -1
  250. package/dist/commonjs/models/subscriptionintervalchange.d.ts +34 -0
  251. package/dist/commonjs/models/subscriptionintervalchange.d.ts.map +1 -0
  252. package/dist/commonjs/models/subscriptionintervalchange.js +60 -0
  253. package/dist/commonjs/models/subscriptionintervalchange.js.map +1 -0
  254. package/dist/commonjs/models/subscriptionintervalchangecopy.d.ts +54 -0
  255. package/dist/commonjs/models/subscriptionintervalchangecopy.d.ts.map +1 -0
  256. package/dist/commonjs/models/subscriptionintervalchangecopy.js +77 -0
  257. package/dist/commonjs/models/subscriptionintervalchangecopy.js.map +1 -0
  258. package/dist/commonjs/models/subscriptionintervalchangeentry.d.ts +22 -0
  259. package/dist/commonjs/models/subscriptionintervalchangeentry.d.ts.map +1 -0
  260. package/dist/commonjs/models/subscriptionintervalchangeentry.js +53 -0
  261. package/dist/commonjs/models/subscriptionintervalchangeentry.js.map +1 -0
  262. package/dist/commonjs/models/subscriptionintervalchangesresponse.d.ts +16 -0
  263. package/dist/commonjs/models/subscriptionintervalchangesresponse.d.ts.map +1 -0
  264. package/dist/commonjs/models/subscriptionintervalchangesresponse.js +53 -0
  265. package/dist/commonjs/models/subscriptionintervalchangesresponse.js.map +1 -0
  266. package/dist/commonjs/models/versiontransition.d.ts +58 -0
  267. package/dist/commonjs/models/versiontransition.d.ts.map +1 -0
  268. package/dist/commonjs/models/versiontransition.js +82 -0
  269. package/dist/commonjs/models/versiontransition.js.map +1 -0
  270. package/dist/commonjs/models/webhookportal.d.ts +34 -0
  271. package/dist/commonjs/models/webhookportal.d.ts.map +1 -0
  272. package/dist/commonjs/models/webhookportal.js +60 -0
  273. package/dist/commonjs/models/webhookportal.js.map +1 -0
  274. package/dist/commonjs/models/webhooks.d.ts +46 -0
  275. package/dist/commonjs/models/webhooks.d.ts.map +1 -0
  276. package/dist/commonjs/models/webhooks.js +63 -0
  277. package/dist/commonjs/models/webhooks.js.map +1 -0
  278. package/dist/commonjs/sdk/invoicesv2.d.ts +51 -0
  279. package/dist/commonjs/sdk/invoicesv2.d.ts.map +1 -1
  280. package/dist/commonjs/sdk/invoicesv2.js +60 -0
  281. package/dist/commonjs/sdk/invoicesv2.js.map +1 -1
  282. package/dist/commonjs/sdk/merchants.d.ts +16 -0
  283. package/dist/commonjs/sdk/merchants.d.ts.map +1 -0
  284. package/dist/commonjs/sdk/merchants.js +26 -0
  285. package/dist/commonjs/sdk/merchants.js.map +1 -0
  286. package/dist/commonjs/sdk/profitability.d.ts +1 -1
  287. package/dist/commonjs/sdk/profitability.js +1 -1
  288. package/dist/commonjs/sdk/revenue.d.ts +1 -1
  289. package/dist/commonjs/sdk/revenue.js +1 -1
  290. package/dist/commonjs/sdk/sdk.d.ts +6 -0
  291. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  292. package/dist/commonjs/sdk/sdk.js +8 -0
  293. package/dist/commonjs/sdk/sdk.js.map +1 -1
  294. package/dist/commonjs/sdk/subscriptions.d.ts +21 -0
  295. package/dist/commonjs/sdk/subscriptions.d.ts.map +1 -1
  296. package/dist/commonjs/sdk/subscriptions.js +30 -0
  297. package/dist/commonjs/sdk/subscriptions.js.map +1 -1
  298. package/dist/commonjs/sdk/webhooks.d.ts +41 -0
  299. package/dist/commonjs/sdk/webhooks.d.ts.map +1 -0
  300. package/dist/commonjs/sdk/webhooks.js +62 -0
  301. package/dist/commonjs/sdk/webhooks.js.map +1 -0
  302. package/dist/esm/funcs/costsGetCostReport.js +1 -0
  303. package/dist/esm/funcs/costsGetCostReport.js.map +1 -1
  304. package/dist/esm/funcs/invoicesV2ListProjectedInvoices.d.ts +18 -0
  305. package/dist/esm/funcs/invoicesV2ListProjectedInvoices.d.ts.map +1 -0
  306. package/dist/esm/funcs/invoicesV2ListProjectedInvoices.js +89 -0
  307. package/dist/esm/funcs/invoicesV2ListProjectedInvoices.js.map +1 -0
  308. package/dist/esm/funcs/invoicesV2RecordInvoicePayment.d.ts +27 -0
  309. package/dist/esm/funcs/invoicesV2RecordInvoicePayment.d.ts.map +1 -0
  310. package/dist/esm/funcs/invoicesV2RecordInvoicePayment.js +97 -0
  311. package/dist/esm/funcs/invoicesV2RecordInvoicePayment.js.map +1 -0
  312. package/dist/esm/funcs/invoicesV2RetryInvoicePayment.d.ts +40 -0
  313. package/dist/esm/funcs/invoicesV2RetryInvoicePayment.d.ts.map +1 -0
  314. package/dist/esm/funcs/invoicesV2RetryInvoicePayment.js +121 -0
  315. package/dist/esm/funcs/invoicesV2RetryInvoicePayment.js.map +1 -0
  316. package/dist/esm/funcs/merchantsReset.d.ts +22 -0
  317. package/dist/esm/funcs/merchantsReset.d.ts.map +1 -0
  318. package/dist/esm/funcs/merchantsReset.js +93 -0
  319. package/dist/esm/funcs/merchantsReset.js.map +1 -0
  320. package/dist/esm/funcs/profitabilityGetProfitability.d.ts +1 -1
  321. package/dist/esm/funcs/profitabilityGetProfitability.js +3 -2
  322. package/dist/esm/funcs/profitabilityGetProfitability.js.map +1 -1
  323. package/dist/esm/funcs/revenueGet.d.ts +1 -1
  324. package/dist/esm/funcs/revenueGet.js +1 -1
  325. package/dist/esm/funcs/subscriptionsListIntervalChanges.d.ts +19 -0
  326. package/dist/esm/funcs/subscriptionsListIntervalChanges.d.ts.map +1 -0
  327. package/dist/esm/funcs/subscriptionsListIntervalChanges.js +90 -0
  328. package/dist/esm/funcs/subscriptionsListIntervalChanges.js.map +1 -0
  329. package/dist/esm/funcs/subscriptionsListSubscriptionIntervalChanges.d.ts +19 -0
  330. package/dist/esm/funcs/subscriptionsListSubscriptionIntervalChanges.d.ts.map +1 -0
  331. package/dist/esm/funcs/subscriptionsListSubscriptionIntervalChanges.js +93 -0
  332. package/dist/esm/funcs/subscriptionsListSubscriptionIntervalChanges.js.map +1 -0
  333. package/dist/esm/funcs/subscriptionsMigrateSubscriptionVersion.d.ts +19 -0
  334. package/dist/esm/funcs/subscriptionsMigrateSubscriptionVersion.d.ts.map +1 -0
  335. package/dist/esm/funcs/subscriptionsMigrateSubscriptionVersion.js +91 -0
  336. package/dist/esm/funcs/subscriptionsMigrateSubscriptionVersion.js.map +1 -0
  337. package/dist/esm/funcs/webhooksDisable.d.ts +18 -0
  338. package/dist/esm/funcs/webhooksDisable.d.ts.map +1 -0
  339. package/dist/esm/funcs/webhooksDisable.js +86 -0
  340. package/dist/esm/funcs/webhooksDisable.js.map +1 -0
  341. package/dist/esm/funcs/webhooksEnable.d.ts +19 -0
  342. package/dist/esm/funcs/webhooksEnable.d.ts.map +1 -0
  343. package/dist/esm/funcs/webhooksEnable.js +86 -0
  344. package/dist/esm/funcs/webhooksEnable.js.map +1 -0
  345. package/dist/esm/funcs/webhooksGet.d.ts +19 -0
  346. package/dist/esm/funcs/webhooksGet.d.ts.map +1 -0
  347. package/dist/esm/funcs/webhooksGet.js +86 -0
  348. package/dist/esm/funcs/webhooksGet.js.map +1 -0
  349. package/dist/esm/funcs/webhooksGetPortal.d.ts +19 -0
  350. package/dist/esm/funcs/webhooksGetPortal.d.ts.map +1 -0
  351. package/dist/esm/funcs/webhooksGetPortal.js +86 -0
  352. package/dist/esm/funcs/webhooksGetPortal.js.map +1 -0
  353. package/dist/esm/funcs/webhooksUpdate.d.ts +19 -0
  354. package/dist/esm/funcs/webhooksUpdate.d.ts.map +1 -0
  355. package/dist/esm/funcs/webhooksUpdate.js +87 -0
  356. package/dist/esm/funcs/webhooksUpdate.js.map +1 -0
  357. package/dist/esm/lib/config.d.ts +2 -2
  358. package/dist/esm/lib/config.js +2 -2
  359. package/dist/esm/models/changereason.d.ts +20 -0
  360. package/dist/esm/models/changereason.d.ts.map +1 -0
  361. package/dist/esm/models/changereason.js +18 -0
  362. package/dist/esm/models/changereason.js.map +1 -0
  363. package/dist/esm/models/costreportresponse.d.ts +8 -0
  364. package/dist/esm/models/costreportresponse.d.ts.map +1 -1
  365. package/dist/esm/models/costreportresponse.js +2 -0
  366. package/dist/esm/models/costreportresponse.js.map +1 -1
  367. package/dist/esm/models/currencybreakdownentry.d.ts +1 -1
  368. package/dist/esm/models/editsubscriptionintervalsrequestunion.d.ts +142 -0
  369. package/dist/esm/models/editsubscriptionintervalsrequestunion.d.ts.map +1 -0
  370. package/dist/esm/models/editsubscriptionintervalsrequestunion.js +55 -0
  371. package/dist/esm/models/editsubscriptionintervalsrequestunion.js.map +1 -0
  372. package/dist/esm/models/editsubscriptionintervalsresponse.d.ts +5 -0
  373. package/dist/esm/models/editsubscriptionintervalsresponse.d.ts.map +1 -1
  374. package/dist/esm/models/editsubscriptionintervalsresponse.js +2 -0
  375. package/dist/esm/models/editsubscriptionintervalsresponse.js.map +1 -1
  376. package/dist/esm/models/elapsedperiodbilling.d.ts +16 -0
  377. package/dist/esm/models/elapsedperiodbilling.d.ts.map +1 -0
  378. package/dist/esm/models/elapsedperiodbilling.js +14 -0
  379. package/dist/esm/models/elapsedperiodbilling.js.map +1 -0
  380. package/dist/esm/models/errors/index.d.ts +2 -0
  381. package/dist/esm/models/errors/index.d.ts.map +1 -1
  382. package/dist/esm/models/errors/index.js +2 -0
  383. package/dist/esm/models/errors/index.js.map +1 -1
  384. package/dist/esm/models/errors/recordinvoicepayment.d.ts +55 -0
  385. package/dist/esm/models/errors/recordinvoicepayment.d.ts.map +1 -0
  386. package/dist/esm/models/errors/recordinvoicepayment.js +39 -0
  387. package/dist/esm/models/errors/recordinvoicepayment.js.map +1 -0
  388. package/dist/esm/models/errors/retrypaymentresponseerror.d.ts +63 -0
  389. package/dist/esm/models/errors/retrypaymentresponseerror.d.ts.map +1 -0
  390. package/dist/esm/models/errors/retrypaymentresponseerror.js +44 -0
  391. package/dist/esm/models/errors/retrypaymentresponseerror.js.map +1 -0
  392. package/dist/esm/models/grouptrendentry.d.ts +5 -1
  393. package/dist/esm/models/grouptrendentry.d.ts.map +1 -1
  394. package/dist/esm/models/grouptrendentry.js +1 -0
  395. package/dist/esm/models/grouptrendentry.js.map +1 -1
  396. package/dist/esm/models/hostedlinkpaymentresult.d.ts +28 -0
  397. package/dist/esm/models/hostedlinkpaymentresult.d.ts.map +1 -0
  398. package/dist/esm/models/hostedlinkpaymentresult.js +19 -0
  399. package/dist/esm/models/hostedlinkpaymentresult.js.map +1 -0
  400. package/dist/esm/models/index.d.ts +21 -2
  401. package/dist/esm/models/index.d.ts.map +1 -1
  402. package/dist/esm/models/index.js +21 -2
  403. package/dist/esm/models/index.js.map +1 -1
  404. package/dist/esm/models/intervalchangemetadata.d.ts +13 -0
  405. package/dist/esm/models/intervalchangemetadata.d.ts.map +1 -0
  406. package/dist/esm/models/intervalchangemetadata.js +16 -0
  407. package/dist/esm/models/intervalchangemetadata.js.map +1 -0
  408. package/dist/esm/models/invoice.d.ts +8 -3
  409. package/dist/esm/models/invoice.d.ts.map +1 -1
  410. package/dist/esm/models/invoice.js +3 -1
  411. package/dist/esm/models/invoice.js.map +1 -1
  412. package/dist/esm/models/invoicepaymentlinkerrorcode.d.ts +17 -0
  413. package/dist/esm/models/invoicepaymentlinkerrorcode.d.ts.map +1 -0
  414. package/dist/esm/models/invoicepaymentlinkerrorcode.js +15 -0
  415. package/dist/esm/models/invoicepaymentlinkerrorcode.js.map +1 -0
  416. package/dist/esm/models/invoicepaymentmethod.d.ts +16 -0
  417. package/dist/esm/models/invoicepaymentmethod.d.ts.map +1 -0
  418. package/dist/esm/models/invoicepaymentmethod.js +14 -0
  419. package/dist/esm/models/invoicepaymentmethod.js.map +1 -0
  420. package/dist/esm/models/invoicepaymentprovider.d.ts +16 -0
  421. package/dist/esm/models/invoicepaymentprovider.d.ts.map +1 -0
  422. package/dist/esm/models/invoicepaymentprovider.js +14 -0
  423. package/dist/esm/models/invoicepaymentprovider.js.map +1 -0
  424. package/dist/esm/models/merchantreset.d.ts +41 -0
  425. package/dist/esm/models/merchantreset.d.ts.map +1 -0
  426. package/dist/esm/models/merchantreset.js +29 -0
  427. package/dist/esm/models/merchantreset.js.map +1 -0
  428. package/dist/esm/models/migratesubscriptionversionrequest.d.ts +37 -0
  429. package/dist/esm/models/migratesubscriptionversionrequest.d.ts.map +1 -0
  430. package/dist/esm/models/migratesubscriptionversionrequest.js +23 -0
  431. package/dist/esm/models/migratesubscriptionversionrequest.js.map +1 -0
  432. package/dist/esm/models/migratesubscriptionversionresponse.d.ts +47 -0
  433. package/dist/esm/models/migratesubscriptionversionresponse.d.ts.map +1 -0
  434. package/dist/esm/models/migratesubscriptionversionresponse.js +34 -0
  435. package/dist/esm/models/migratesubscriptionversionresponse.js.map +1 -0
  436. package/dist/esm/models/operations/createplan.d.ts +5 -0
  437. package/dist/esm/models/operations/createplan.d.ts.map +1 -1
  438. package/dist/esm/models/operations/createplan.js +1 -0
  439. package/dist/esm/models/operations/createplan.js.map +1 -1
  440. package/dist/esm/models/operations/createsubscription.d.ts +24 -0
  441. package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
  442. package/dist/esm/models/operations/createsubscription.js +5 -0
  443. package/dist/esm/models/operations/createsubscription.js.map +1 -1
  444. package/dist/esm/models/operations/createwebhooks.d.ts +15 -0
  445. package/dist/esm/models/operations/createwebhooks.d.ts.map +1 -0
  446. package/dist/esm/models/operations/createwebhooks.js +12 -0
  447. package/dist/esm/models/operations/createwebhooks.js.map +1 -0
  448. package/dist/esm/models/operations/deletewebhooks.d.ts +15 -0
  449. package/dist/esm/models/operations/deletewebhooks.d.ts.map +1 -0
  450. package/dist/esm/models/operations/deletewebhooks.js +12 -0
  451. package/dist/esm/models/operations/deletewebhooks.js.map +1 -0
  452. package/dist/esm/models/operations/editsubscriptionintervals.d.ts +2 -2
  453. package/dist/esm/models/operations/editsubscriptionintervals.d.ts.map +1 -1
  454. package/dist/esm/models/operations/editsubscriptionintervals.js +1 -1
  455. package/dist/esm/models/operations/editsubscriptionintervals.js.map +1 -1
  456. package/dist/esm/models/operations/getcostreport.d.ts +5 -0
  457. package/dist/esm/models/operations/getcostreport.d.ts.map +1 -1
  458. package/dist/esm/models/operations/getcostreport.js +1 -0
  459. package/dist/esm/models/operations/getcostreport.js.map +1 -1
  460. package/dist/esm/models/operations/getprofitability.d.ts +8 -18
  461. package/dist/esm/models/operations/getprofitability.d.ts.map +1 -1
  462. package/dist/esm/models/operations/getprofitability.js +2 -11
  463. package/dist/esm/models/operations/getprofitability.js.map +1 -1
  464. package/dist/esm/models/operations/getwebhookportal.d.ts +15 -0
  465. package/dist/esm/models/operations/getwebhookportal.d.ts.map +1 -0
  466. package/dist/esm/models/operations/getwebhookportal.js +12 -0
  467. package/dist/esm/models/operations/getwebhookportal.js.map +1 -0
  468. package/dist/esm/models/operations/getwebhooks.d.ts +15 -0
  469. package/dist/esm/models/operations/getwebhooks.d.ts.map +1 -0
  470. package/dist/esm/models/operations/getwebhooks.js +12 -0
  471. package/dist/esm/models/operations/getwebhooks.js.map +1 -0
  472. package/dist/esm/models/operations/index.d.ts +12 -0
  473. package/dist/esm/models/operations/index.d.ts.map +1 -1
  474. package/dist/esm/models/operations/index.js +12 -0
  475. package/dist/esm/models/operations/index.js.map +1 -1
  476. package/dist/esm/models/operations/listintervalchanges.d.ts +36 -0
  477. package/dist/esm/models/operations/listintervalchanges.d.ts.map +1 -0
  478. package/dist/esm/models/operations/listintervalchanges.js +17 -0
  479. package/dist/esm/models/operations/listintervalchanges.js.map +1 -0
  480. package/dist/esm/models/operations/listprojectedinvoices.d.ts +59 -0
  481. package/dist/esm/models/operations/listprojectedinvoices.d.ts.map +1 -0
  482. package/dist/esm/models/operations/listprojectedinvoices.js +32 -0
  483. package/dist/esm/models/operations/listprojectedinvoices.js.map +1 -0
  484. package/dist/esm/models/operations/listsubscriptionintervalchanges.d.ts +25 -0
  485. package/dist/esm/models/operations/listsubscriptionintervalchanges.d.ts.map +1 -0
  486. package/dist/esm/models/operations/listsubscriptionintervalchanges.js +14 -0
  487. package/dist/esm/models/operations/listsubscriptionintervalchanges.js.map +1 -0
  488. package/dist/esm/models/operations/migratesubscriptionversion.d.ts +18 -0
  489. package/dist/esm/models/operations/migratesubscriptionversion.d.ts.map +1 -0
  490. package/dist/esm/models/operations/migratesubscriptionversion.js +19 -0
  491. package/dist/esm/models/operations/migratesubscriptionversion.js.map +1 -0
  492. package/dist/esm/models/operations/recordinvoicepayment.d.ts +45 -0
  493. package/dist/esm/models/operations/recordinvoicepayment.d.ts.map +1 -0
  494. package/dist/esm/models/operations/recordinvoicepayment.js +36 -0
  495. package/dist/esm/models/operations/recordinvoicepayment.js.map +1 -0
  496. package/dist/esm/models/operations/resetmerchant.d.ts +15 -0
  497. package/dist/esm/models/operations/resetmerchant.d.ts.map +1 -0
  498. package/dist/esm/models/operations/resetmerchant.js +19 -0
  499. package/dist/esm/models/operations/resetmerchant.js.map +1 -0
  500. package/dist/esm/models/operations/retryinvoicepayment.d.ts +30 -0
  501. package/dist/esm/models/operations/retryinvoicepayment.d.ts.map +1 -0
  502. package/dist/esm/models/operations/retryinvoicepayment.js +26 -0
  503. package/dist/esm/models/operations/retryinvoicepayment.js.map +1 -0
  504. package/dist/esm/models/operations/terminatesubscription.d.ts +6 -0
  505. package/dist/esm/models/operations/terminatesubscription.d.ts.map +1 -1
  506. package/dist/esm/models/operations/terminatesubscription.js +2 -0
  507. package/dist/esm/models/operations/terminatesubscription.js.map +1 -1
  508. package/dist/esm/models/operations/updateplan.d.ts +5 -0
  509. package/dist/esm/models/operations/updateplan.d.ts.map +1 -1
  510. package/dist/esm/models/operations/updateplan.js +1 -0
  511. package/dist/esm/models/operations/updateplan.js.map +1 -1
  512. package/dist/esm/models/operations/updatewebhooks.d.ts +30 -0
  513. package/dist/esm/models/operations/updatewebhooks.d.ts.map +1 -0
  514. package/dist/esm/models/operations/updatewebhooks.js +25 -0
  515. package/dist/esm/models/operations/updatewebhooks.js.map +1 -0
  516. package/dist/esm/models/outofbandpaymentresult.d.ts +15 -0
  517. package/dist/esm/models/outofbandpaymentresult.d.ts.map +1 -0
  518. package/dist/esm/models/outofbandpaymentresult.js +15 -0
  519. package/dist/esm/models/outofbandpaymentresult.js.map +1 -0
  520. package/dist/esm/models/plan.d.ts +5 -0
  521. package/dist/esm/models/plan.d.ts.map +1 -1
  522. package/dist/esm/models/plan.js +2 -0
  523. package/dist/esm/models/plan.js.map +1 -1
  524. package/dist/esm/models/profitabilityrow.d.ts +21 -7
  525. package/dist/esm/models/profitabilityrow.d.ts.map +1 -1
  526. package/dist/esm/models/profitabilityrow.js +12 -2
  527. package/dist/esm/models/profitabilityrow.js.map +1 -1
  528. package/dist/esm/models/profitabilitysummaryresponse.d.ts +17 -1
  529. package/dist/esm/models/profitabilitysummaryresponse.d.ts.map +1 -1
  530. package/dist/esm/models/profitabilitysummaryresponse.js +4 -0
  531. package/dist/esm/models/profitabilitysummaryresponse.js.map +1 -1
  532. package/dist/esm/models/retrypaymenterror.d.ts +28 -0
  533. package/dist/esm/models/retrypaymenterror.d.ts.map +1 -0
  534. package/dist/esm/models/retrypaymenterror.js +16 -0
  535. package/dist/esm/models/retrypaymenterror.js.map +1 -0
  536. package/dist/esm/models/retrypaymentresponse.d.ts +46 -0
  537. package/dist/esm/models/retrypaymentresponse.d.ts.map +1 -0
  538. package/dist/esm/models/retrypaymentresponse.js +26 -0
  539. package/dist/esm/models/retrypaymentresponse.js.map +1 -0
  540. package/dist/esm/models/revenuesummaryresponse.d.ts +1 -1
  541. package/dist/esm/models/revenuetrendbucket.d.ts +6 -2
  542. package/dist/esm/models/revenuetrendbucket.d.ts.map +1 -1
  543. package/dist/esm/models/revenuetrendbucket.js +1 -0
  544. package/dist/esm/models/revenuetrendbucket.js.map +1 -1
  545. package/dist/esm/models/subscription.d.ts +49 -1
  546. package/dist/esm/models/subscription.d.ts.map +1 -1
  547. package/dist/esm/models/subscription.js +27 -0
  548. package/dist/esm/models/subscription.js.map +1 -1
  549. package/dist/esm/models/subscriptionintervaladdop.d.ts +1 -1
  550. package/dist/esm/models/subscriptionintervalchange.d.ts +34 -0
  551. package/dist/esm/models/subscriptionintervalchange.d.ts.map +1 -0
  552. package/dist/esm/models/subscriptionintervalchange.js +23 -0
  553. package/dist/esm/models/subscriptionintervalchange.js.map +1 -0
  554. package/dist/esm/models/subscriptionintervalchangecopy.d.ts +54 -0
  555. package/dist/esm/models/subscriptionintervalchangecopy.d.ts.map +1 -0
  556. package/dist/esm/models/subscriptionintervalchangecopy.js +39 -0
  557. package/dist/esm/models/subscriptionintervalchangecopy.js.map +1 -0
  558. package/dist/esm/models/subscriptionintervalchangeentry.d.ts +22 -0
  559. package/dist/esm/models/subscriptionintervalchangeentry.d.ts.map +1 -0
  560. package/dist/esm/models/subscriptionintervalchangeentry.js +16 -0
  561. package/dist/esm/models/subscriptionintervalchangeentry.js.map +1 -0
  562. package/dist/esm/models/subscriptionintervalchangesresponse.d.ts +16 -0
  563. package/dist/esm/models/subscriptionintervalchangesresponse.d.ts.map +1 -0
  564. package/dist/esm/models/subscriptionintervalchangesresponse.js +16 -0
  565. package/dist/esm/models/subscriptionintervalchangesresponse.js.map +1 -0
  566. package/dist/esm/models/versiontransition.d.ts +58 -0
  567. package/dist/esm/models/versiontransition.d.ts.map +1 -0
  568. package/dist/esm/models/versiontransition.js +44 -0
  569. package/dist/esm/models/versiontransition.js.map +1 -0
  570. package/dist/esm/models/webhookportal.d.ts +34 -0
  571. package/dist/esm/models/webhookportal.d.ts.map +1 -0
  572. package/dist/esm/models/webhookportal.js +23 -0
  573. package/dist/esm/models/webhookportal.js.map +1 -0
  574. package/dist/esm/models/webhooks.d.ts +46 -0
  575. package/dist/esm/models/webhooks.d.ts.map +1 -0
  576. package/dist/esm/models/webhooks.js +26 -0
  577. package/dist/esm/models/webhooks.js.map +1 -0
  578. package/dist/esm/sdk/invoicesv2.d.ts +51 -0
  579. package/dist/esm/sdk/invoicesv2.d.ts.map +1 -1
  580. package/dist/esm/sdk/invoicesv2.js +60 -0
  581. package/dist/esm/sdk/invoicesv2.js.map +1 -1
  582. package/dist/esm/sdk/merchants.d.ts +16 -0
  583. package/dist/esm/sdk/merchants.d.ts.map +1 -0
  584. package/dist/esm/sdk/merchants.js +22 -0
  585. package/dist/esm/sdk/merchants.js.map +1 -0
  586. package/dist/esm/sdk/profitability.d.ts +1 -1
  587. package/dist/esm/sdk/profitability.js +1 -1
  588. package/dist/esm/sdk/revenue.d.ts +1 -1
  589. package/dist/esm/sdk/revenue.js +1 -1
  590. package/dist/esm/sdk/sdk.d.ts +6 -0
  591. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  592. package/dist/esm/sdk/sdk.js +8 -0
  593. package/dist/esm/sdk/sdk.js.map +1 -1
  594. package/dist/esm/sdk/subscriptions.d.ts +21 -0
  595. package/dist/esm/sdk/subscriptions.d.ts.map +1 -1
  596. package/dist/esm/sdk/subscriptions.js +30 -0
  597. package/dist/esm/sdk/subscriptions.js.map +1 -1
  598. package/dist/esm/sdk/webhooks.d.ts +41 -0
  599. package/dist/esm/sdk/webhooks.d.ts.map +1 -0
  600. package/dist/esm/sdk/webhooks.js +58 -0
  601. package/dist/esm/sdk/webhooks.js.map +1 -0
  602. package/jsr.json +1 -1
  603. package/package.json +1 -1
  604. package/src/funcs/costsGetCostReport.ts +1 -0
  605. package/src/funcs/invoicesV2ListProjectedInvoices.ts +183 -0
  606. package/src/funcs/invoicesV2RecordInvoicePayment.ts +194 -0
  607. package/src/funcs/invoicesV2RetryInvoicePayment.ts +219 -0
  608. package/src/funcs/merchantsReset.ts +185 -0
  609. package/src/funcs/profitabilityGetProfitability.ts +3 -2
  610. package/src/funcs/revenueGet.ts +1 -1
  611. package/src/funcs/subscriptionsListIntervalChanges.ts +186 -0
  612. package/src/funcs/subscriptionsListSubscriptionIntervalChanges.ts +185 -0
  613. package/src/funcs/subscriptionsMigrateSubscriptionVersion.ts +186 -0
  614. package/src/funcs/webhooksDisable.ts +175 -0
  615. package/src/funcs/webhooksEnable.ts +179 -0
  616. package/src/funcs/webhooksGet.ts +175 -0
  617. package/src/funcs/webhooksGetPortal.ts +175 -0
  618. package/src/funcs/webhooksUpdate.ts +179 -0
  619. package/src/lib/config.ts +2 -2
  620. package/src/models/changereason.ts +34 -0
  621. package/src/models/costreportresponse.ts +10 -0
  622. package/src/models/currencybreakdownentry.ts +1 -1
  623. package/src/models/editsubscriptionintervalsrequestunion.ts +244 -0
  624. package/src/models/editsubscriptionintervalsresponse.ts +9 -0
  625. package/src/models/elapsedperiodbilling.ts +23 -0
  626. package/src/models/errors/index.ts +2 -0
  627. package/src/models/errors/recordinvoicepayment.ts +86 -0
  628. package/src/models/errors/retrypaymentresponseerror.ts +102 -0
  629. package/src/models/grouptrendentry.ts +6 -1
  630. package/src/models/hostedlinkpaymentresult.ts +56 -0
  631. package/src/models/index.ts +21 -2
  632. package/src/models/intervalchangemetadata.ts +43 -0
  633. package/src/models/invoice.ts +11 -3
  634. package/src/models/invoicepaymentlinkerrorcode.ts +26 -0
  635. package/src/models/invoicepaymentmethod.ts +23 -0
  636. package/src/models/invoicepaymentprovider.ts +23 -0
  637. package/src/models/merchantreset.ts +85 -0
  638. package/src/models/migratesubscriptionversionrequest.ts +62 -0
  639. package/src/models/migratesubscriptionversionresponse.ts +122 -0
  640. package/src/models/operations/createplan.ts +6 -0
  641. package/src/models/operations/createsubscription.ts +29 -0
  642. package/src/models/operations/createwebhooks.ts +34 -0
  643. package/src/models/operations/deletewebhooks.ts +34 -0
  644. package/src/models/operations/editsubscriptionintervals.ts +4 -3
  645. package/src/models/operations/getcostreport.ts +6 -0
  646. package/src/models/operations/getprofitability.ts +10 -25
  647. package/src/models/operations/getwebhookportal.ts +34 -0
  648. package/src/models/operations/getwebhooks.ts +34 -0
  649. package/src/models/operations/index.ts +12 -0
  650. package/src/models/operations/listintervalchanges.ts +59 -0
  651. package/src/models/operations/listprojectedinvoices.ts +110 -0
  652. package/src/models/operations/listsubscriptionintervalchanges.ts +49 -0
  653. package/src/models/operations/migratesubscriptionversion.ts +47 -0
  654. package/src/models/operations/recordinvoicepayment.ts +112 -0
  655. package/src/models/operations/resetmerchant.ts +40 -0
  656. package/src/models/operations/retryinvoicepayment.ts +74 -0
  657. package/src/models/operations/terminatesubscription.ts +7 -0
  658. package/src/models/operations/updateplan.ts +6 -0
  659. package/src/models/operations/updatewebhooks.ts +71 -0
  660. package/src/models/outofbandpaymentresult.ts +37 -0
  661. package/src/models/plan.ts +9 -0
  662. package/src/models/profitabilityrow.ts +25 -11
  663. package/src/models/profitabilitysummaryresponse.ts +21 -1
  664. package/src/models/retrypaymenterror.ts +52 -0
  665. package/src/models/retrypaymentresponse.ts +80 -0
  666. package/src/models/revenuesummaryresponse.ts +1 -1
  667. package/src/models/revenuetrendbucket.ts +7 -2
  668. package/src/models/subscription.ts +74 -1
  669. package/src/models/subscriptionintervaladdop.ts +1 -1
  670. package/src/models/subscriptionintervalchange.ts +66 -0
  671. package/src/models/subscriptionintervalchangecopy.ts +130 -0
  672. package/src/models/subscriptionintervalchangeentry.ts +48 -0
  673. package/src/models/subscriptionintervalchangesresponse.ts +45 -0
  674. package/src/models/versiontransition.ts +104 -0
  675. package/src/models/webhookportal.ts +61 -0
  676. package/src/models/webhooks.ts +76 -0
  677. package/src/sdk/invoicesv2.ts +84 -0
  678. package/src/sdk/merchants.ts +31 -0
  679. package/src/sdk/profitability.ts +1 -1
  680. package/src/sdk/revenue.ts +1 -1
  681. package/src/sdk/sdk.ts +12 -0
  682. package/src/sdk/subscriptions.ts +54 -0
  683. package/src/sdk/webhooks.ts +100 -0
  684. package/dist/commonjs/models/editsubscriptionintervalsrequest.d.ts +0 -31
  685. package/dist/commonjs/models/editsubscriptionintervalsrequest.d.ts.map +0 -1
  686. package/dist/commonjs/models/editsubscriptionintervalsrequest.js.map +0 -1
  687. package/dist/commonjs/models/profitabilitytrend.d.ts +0 -17
  688. package/dist/commonjs/models/profitabilitytrend.d.ts.map +0 -1
  689. package/dist/commonjs/models/profitabilitytrend.js.map +0 -1
  690. package/dist/esm/models/editsubscriptionintervalsrequest.d.ts +0 -31
  691. package/dist/esm/models/editsubscriptionintervalsrequest.d.ts.map +0 -1
  692. package/dist/esm/models/editsubscriptionintervalsrequest.js +0 -17
  693. package/dist/esm/models/editsubscriptionintervalsrequest.js.map +0 -1
  694. package/dist/esm/models/profitabilitytrend.d.ts +0 -17
  695. package/dist/esm/models/profitabilitytrend.d.ts.map +0 -1
  696. package/dist/esm/models/profitabilitytrend.js +0 -14
  697. package/dist/esm/models/profitabilitytrend.js.map +0 -1
  698. package/src/models/editsubscriptionintervalsrequest.ts +0 -66
  699. package/src/models/profitabilitytrend.ts +0 -39
@@ -10,6 +10,9 @@ import { invoicesV2GetLineItems } from "../funcs/invoicesV2GetLineItems.js";
10
10
  import { invoicesV2List } from "../funcs/invoicesV2List.js";
11
11
  import { invoicesV2ListInvoiceRefunds } from "../funcs/invoicesV2ListInvoiceRefunds.js";
12
12
  import { invoicesV2ListLineItems } from "../funcs/invoicesV2ListLineItems.js";
13
+ import { invoicesV2ListProjectedInvoices } from "../funcs/invoicesV2ListProjectedInvoices.js";
14
+ import { invoicesV2RecordInvoicePayment } from "../funcs/invoicesV2RecordInvoicePayment.js";
15
+ import { invoicesV2RetryInvoicePayment } from "../funcs/invoicesV2RetryInvoicePayment.js";
13
16
  import { invoicesV2VoidInvoiceRefund } from "../funcs/invoicesV2VoidInvoiceRefund.js";
14
17
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
15
18
  import * as models from "../models/index.js";
@@ -68,6 +71,23 @@ export class InvoicesV2 extends ClientSDK {
68
71
  ));
69
72
  }
70
73
 
74
+ /**
75
+ * List projected
76
+ *
77
+ * @remarks
78
+ * List the invoices a subscription will issue in a range of invoice moments, one projected invoice for each distinct invoice moment. Projected invoices are derived on each read and never stored. Each has status PROJECTED, and its id is stable between reads, but GET /v2/invoices/{id} returns 404 for it. Totals EXCLUDE usage: metered charges are not projected, and an invoice moment that has only metered charges is omitted. Tax and sequenceNumber are estimates. The range filters on the invoice moment (invoiceAt) in [from, to). A from before now is treated as now. to must be after from and at most one year after now; now is the subscription's test-clock time when it has a test clock. A terminated subscription returns an empty list. Each invoice carries its lines in lineItems. Authorization is the same as listing invoices.
79
+ */
80
+ async listProjectedInvoices(
81
+ request: operations.ListProjectedInvoicesRequest,
82
+ options?: RequestOptions,
83
+ ): Promise<operations.ListProjectedInvoicesResponse> {
84
+ return unwrapAsync(invoicesV2ListProjectedInvoices(
85
+ this,
86
+ request,
87
+ options,
88
+ ));
89
+ }
90
+
71
91
  /**
72
92
  * Get
73
93
  *
@@ -119,6 +139,32 @@ export class InvoicesV2 extends ClientSDK {
119
139
  ));
120
140
  }
121
141
 
142
+ /**
143
+ * Settle Invoice Payment
144
+ *
145
+ * @remarks
146
+ * Settle an unpaid invoice in status `ISSUED` or `PAYMENT_FAILED`. The `method` field selects how.
147
+ *
148
+ * - `hosted_link`: create a new hosted payment link and email it to the customer. The invoice stays unpaid until the customer pays on the link. Each call replaces the previous link. A payment link expires after 30 days; to collect an invoice whose link has expired, call this method again.
149
+ * - `out_of_band`: record a payment that you collected outside Paygentic. The invoice changes to `PAID` immediately. A second call returns 409.
150
+ *
151
+ * For `hosted_link`, an invoice that does not exist returns 403, the same as an invoice of another merchant.
152
+ *
153
+ * Paygentic selects the payment provider from your connected payment account. The response reports the provider.
154
+ *
155
+ * **Warning:** each `hosted_link` call creates a new link and sends the customer a new email. Do not retry a `hosted_link` call after a timeout: first read the invoice to see if a new link exists.
156
+ */
157
+ async recordInvoicePayment(
158
+ request: operations.RecordInvoicePaymentRequest,
159
+ options?: RequestOptions,
160
+ ): Promise<operations.RecordInvoicePaymentResponse> {
161
+ return unwrapAsync(invoicesV2RecordInvoicePayment(
162
+ this,
163
+ request,
164
+ options,
165
+ ));
166
+ }
167
+
122
168
  /**
123
169
  * Refund Invoice
124
170
  *
@@ -169,4 +215,42 @@ export class InvoicesV2 extends ClientSDK {
169
215
  options,
170
216
  ));
171
217
  }
218
+
219
+ /**
220
+ * Retry Payment
221
+ *
222
+ * @remarks
223
+ * Charge the customer's saved payment method again for an unpaid invoice.
224
+ *
225
+ * The invoice must be in status `ISSUED` or `PAYMENT_FAILED`, auto-charge must be on for its subscription, and the invoice must have a payment session. If not, the response is 400.
226
+ *
227
+ * The response status tells you the result. Only 200 means that the charge succeeded. Every other response from this operation that has a `retry_payment_result` body has `success: false`, and `error.code` gives the reason:
228
+ *
229
+ * | Status | `error.code` | Meaning |
230
+ * | --- | --- | --- |
231
+ * | 200 | — | The charge succeeded, the provider had already collected it, or no amount is unpaid. |
232
+ * | 202 | `processing` | The provider accepted the charge. It settles later (for example, a bank debit). |
233
+ * | 402 | a decline code, for example `card_declined`, `insufficient_funds`, `do_not_honor`, `authentication_required` | The provider declined the payment method. |
234
+ * | 409 | `concurrent_attempt` | Another payment attempt for this invoice is in progress. |
235
+ * | 409 | `PAYMENT_SESSION_EXPIRED` | The payment link expired (after 30 days). Create a new link with `POST /v2/invoices/{id}/payment` and `method: hosted_link`, then retry. If the customer also has no usable saved payment method, the response is 422 instead. |
236
+ * | 409 | another value, or no `code` | The payment session cannot be charged in its current state (for example `session_unusable`, `non_confirmable`, `PAYMENT_PROCESSING`, `PAYMENT_ALREADY_COMPLETED`). Read `error.message` for the cause. |
237
+ * | 422 | `no_payment_method` | The customer has no usable saved payment method. Send a payment link instead. |
238
+ * | 502 | `provider_unavailable` or none | The payment provider did not answer, or the provider failed the charge for a reason that is not known. Retry later. |
239
+ *
240
+ * A 500 response has the standard error body, not `retry_payment_result`. It is an internal error, and a retry does not fix it.
241
+ *
242
+ * An invoice that does not exist returns 403, the same as an invoice of another merchant.
243
+ *
244
+ * This operation is rate limited to one call each minute for each invoice.
245
+ */
246
+ async retryInvoicePayment(
247
+ request: operations.RetryInvoicePaymentRequest,
248
+ options?: RequestOptions,
249
+ ): Promise<models.RetryPaymentResponse> {
250
+ return unwrapAsync(invoicesV2RetryInvoicePayment(
251
+ this,
252
+ request,
253
+ options,
254
+ ));
255
+ }
172
256
  }
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { merchantsReset } from "../funcs/merchantsReset.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class Merchants extends ClientSDK {
11
+ /**
12
+ * Reset a merchant's data
13
+ *
14
+ * @remarks
15
+ * With `scope: merchant`, deletes the merchant's customers and everything attached to them: subscriptions, invoices, line items, payments, entitlements, grants, orders, test clocks, usage events, invoice documents and, when tax is enabled, the documents in the merchant's Quaderno sandbox account. `keepCatalog: true` keeps the catalog (products, plans, prices, fees, features, billable metrics), and `keepCatalog: false` deletes it too; the merchant's configuration is always kept. With `scope: customer`, deletes one customer and what is attached to it; test clocks and the Quaderno account's documents are kept, since they belong to no single customer.
16
+ *
17
+ * A `204` means every delete is done or scheduled: usage events and Quaderno documents finish in the background, and usage events still being ingested while it runs can survive it. A `502` means a store outside Postgres failed; the customers are already out of the API, and calling again with the same body finishes the reset. Calling again is always safe. While a customer waits for that, its external id is free for a new customer to take; a retry then deletes usage events by customer id only.
18
+ *
19
+ * Not available in production.
20
+ */
21
+ async reset(
22
+ request: operations.ResetMerchantRequest,
23
+ options?: RequestOptions,
24
+ ): Promise<void> {
25
+ return unwrapAsync(merchantsReset(
26
+ this,
27
+ request,
28
+ options,
29
+ ));
30
+ }
31
+ }
@@ -13,7 +13,7 @@ export class Profitability extends ClientSDK {
13
13
  * Get profitability summary
14
14
  *
15
15
  * @remarks
16
- * Returns a per-customer profitability summary for a merchant over a date range. Each row aggregates revenue (from issued + paid invoices), cost (from metered cost discovery), profit, and margin. Customers are ranked by profit descending and capped at topN; the remainder is rolled into a single self-consistent 'Other' row whose revenue, cost, and profit reflect the same set of customers. Rows are inner-joined against the merchant's customer list, so orphaned meter subjects from deleted or unknown customers are dropped.
16
+ * Returns a per-customer profitability summary for a merchant over a date range. Each row aggregates revenue (invoices issued in the period, whatever their status since, less refunds, both excluding tax; the same figure /v0/revenue reports), cost (from metered cost discovery), profit, and margin. Customers are ranked by profit descending and capped at topN; the remainder is rolled into a single self-consistent 'Other' row whose revenue, cost, and profit reflect the same set of customers. Rows are joined against the merchant's customer list, so meter subjects that match no customer are dropped. Soft-deleted customers with revenue or cost in the period are folded into a single 'deleted' row, which always comes last, after 'Other', and takes no top-N slot.
17
17
  */
18
18
  async getProfitability(
19
19
  request: operations.GetProfitabilityRequest,
@@ -13,7 +13,7 @@ export class Revenue extends ClientSDK {
13
13
  * Get revenue summary
14
14
  *
15
15
  * @remarks
16
- * Returns revenue summary with invoice and payment breakdowns (outstanding/paid/writtenOff), plus a time-series trend. Revenue is sourced from all issued invoices (v0 + v1) and completed payments.
16
+ * Returns revenue summary with invoice and payment breakdowns (outstanding/paid/writtenOff), plus a time-series trend. Revenue is what was billed in the period (by default, invoices issued in it; see periodBasis), whatever their status since, less refunds, both excluding tax; completed payments are reported under payments, never in revenue.
17
17
  */
18
18
  async get(
19
19
  request: operations.GetRevenueRequest,
package/src/sdk/sdk.ts CHANGED
@@ -16,6 +16,7 @@ import { Fees } from "./fees.js";
16
16
  import { InvoicesV2 } from "./invoicesv2.js";
17
17
  import { Items } from "./items.js";
18
18
  import { MerchantIntegrations } from "./merchantintegrations.js";
19
+ import { Merchants } from "./merchants.js";
19
20
  import { Orders } from "./orders.js";
20
21
  import { Payments } from "./payments.js";
21
22
  import { PaymentSessions } from "./paymentsessions.js";
@@ -29,6 +30,7 @@ import { Sources } from "./sources.js";
29
30
  import { Subscriptions } from "./subscriptions.js";
30
31
  import { TestClocks } from "./testclocks.js";
31
32
  import { Users } from "./users.js";
33
+ import { Webhooks } from "./webhooks.js";
32
34
 
33
35
  export class Paygentic extends ClientSDK {
34
36
  private _billableMetrics?: BillableMetrics;
@@ -126,6 +128,11 @@ export class Paygentic extends ClientSDK {
126
128
  return (this._testClocks ??= new TestClocks(this._options));
127
129
  }
128
130
 
131
+ private _merchants?: Merchants;
132
+ get merchants(): Merchants {
133
+ return (this._merchants ??= new Merchants(this._options));
134
+ }
135
+
129
136
  private _externalReferences?: ExternalReferences;
130
137
  get externalReferences(): ExternalReferences {
131
138
  return (this._externalReferences ??= new ExternalReferences(this._options));
@@ -162,4 +169,9 @@ export class Paygentic extends ClientSDK {
162
169
  get approvals(): Approvals {
163
170
  return (this._approvals ??= new Approvals(this._options));
164
171
  }
172
+
173
+ private _webhooks?: Webhooks;
174
+ get webhooks(): Webhooks {
175
+ return (this._webhooks ??= new Webhooks(this._options));
176
+ }
165
177
  }
@@ -10,7 +10,10 @@ import { subscriptionsGeneratePortalLink } from "../funcs/subscriptionsGenerateP
10
10
  import { subscriptionsGet } from "../funcs/subscriptionsGet.js";
11
11
  import { subscriptionsGetSubscriptionIntervals } from "../funcs/subscriptionsGetSubscriptionIntervals.js";
12
12
  import { subscriptionsList } from "../funcs/subscriptionsList.js";
13
+ import { subscriptionsListIntervalChanges } from "../funcs/subscriptionsListIntervalChanges.js";
13
14
  import { subscriptionsListSubscriptionAdjustments } from "../funcs/subscriptionsListSubscriptionAdjustments.js";
15
+ import { subscriptionsListSubscriptionIntervalChanges } from "../funcs/subscriptionsListSubscriptionIntervalChanges.js";
16
+ import { subscriptionsMigrateSubscriptionVersion } from "../funcs/subscriptionsMigrateSubscriptionVersion.js";
14
17
  import { subscriptionsReconcileSubscriptionFeatures } from "../funcs/subscriptionsReconcileSubscriptionFeatures.js";
15
18
  import { subscriptionsTerminate } from "../funcs/subscriptionsTerminate.js";
16
19
  import { subscriptionsUpdateSubscription } from "../funcs/subscriptionsUpdateSubscription.js";
@@ -113,6 +116,57 @@ export class Subscriptions extends ClientSDK {
113
116
  ));
114
117
  }
115
118
 
119
+ /**
120
+ * Migrate To A Plan Version
121
+ *
122
+ * @remarks
123
+ * Moves the subscription to a named version of its plan. By default the move follows the plan's versionTransition. With timing next_period, the move takes effect at the end of the current billing period: the current period bills as before, and each period that starts at or after that boundary bills from the target version. With timing immediate, entitlements change at once, in-arrears prices bill the whole current period at the target version, and in-advance prices change at the end of the current period, with no proration. The target can be an older or a newer published version. A migration always sets versionPolicy to pinned, so a later change of the plan's default version does not move the subscription. To follow the plan default again, call PATCH /v0/subscriptions/{id} with versionPolicy: 'floating'. A second migration before the boundary replaces the first. Migrating to the version the subscription is already on changes nothing except that it pins a floating subscription, so it is safe to repeat. A version number that does not exist on the plan and an archived version both return 404. The request is refused with 409 and a code when: the subscription is not live; the subscription ends at or before the boundary; a kept override has a rate that would mean something else on the new price; a feature's reset period, metric or pricing unit changes; or the new version sells a price that a continuing interval already covers.
124
+ */
125
+ async migrateSubscriptionVersion(
126
+ request: operations.MigrateSubscriptionVersionRequest,
127
+ options?: RequestOptions,
128
+ ): Promise<models.MigrateSubscriptionVersionResponse> {
129
+ return unwrapAsync(subscriptionsMigrateSubscriptionVersion(
130
+ this,
131
+ request,
132
+ options,
133
+ ));
134
+ }
135
+
136
+ /**
137
+ * List Interval Changes
138
+ *
139
+ * @remarks
140
+ * Lists the subscription's interval changes, oldest first. Each shows why it was made and each interval before and after.
141
+ */
142
+ async listSubscriptionIntervalChanges(
143
+ request: operations.ListSubscriptionIntervalChangesRequest,
144
+ options?: RequestOptions,
145
+ ): Promise<models.SubscriptionIntervalChangesResponse> {
146
+ return unwrapAsync(subscriptionsListSubscriptionIntervalChanges(
147
+ this,
148
+ request,
149
+ options,
150
+ ));
151
+ }
152
+
153
+ /**
154
+ * List Merchant Interval Changes
155
+ *
156
+ * @remarks
157
+ * Lists the interval changes of all your subscriptions, oldest first. `from` is included and `to` is excluded.
158
+ */
159
+ async listIntervalChanges(
160
+ request?: operations.ListIntervalChangesRequest | undefined,
161
+ options?: RequestOptions,
162
+ ): Promise<models.SubscriptionIntervalChangesResponse> {
163
+ return unwrapAsync(subscriptionsListIntervalChanges(
164
+ this,
165
+ request,
166
+ options,
167
+ ));
168
+ }
169
+
116
170
  /**
117
171
  * Generate Portal Link
118
172
  *
@@ -0,0 +1,100 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { webhooksDisable } from "../funcs/webhooksDisable.js";
6
+ import { webhooksEnable } from "../funcs/webhooksEnable.js";
7
+ import { webhooksGet } from "../funcs/webhooksGet.js";
8
+ import { webhooksGetPortal } from "../funcs/webhooksGetPortal.js";
9
+ import { webhooksUpdate } from "../funcs/webhooksUpdate.js";
10
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
+ import * as models from "../models/index.js";
12
+ import * as operations from "../models/operations/index.js";
13
+ import { unwrapAsync } from "../types/fp.js";
14
+
15
+ export class Webhooks extends ClientSDK {
16
+ /**
17
+ * Get
18
+ *
19
+ * @remarks
20
+ * Returns the webhook configuration for your account. Returns 404 if webhooks have never been enabled.
21
+ */
22
+ async get(
23
+ request?: operations.GetWebhooksRequest | undefined,
24
+ options?: RequestOptions,
25
+ ): Promise<models.Webhooks> {
26
+ return unwrapAsync(webhooksGet(
27
+ this,
28
+ request,
29
+ options,
30
+ ));
31
+ }
32
+
33
+ /**
34
+ * Enable
35
+ *
36
+ * @remarks
37
+ * Turns on webhook delivery for your account. Call it once: when a configuration already exists, enabled or disabled, the response is 400 with code `DUPLICATE_RESOURCE`. Use the update operation to turn delivery on or off after that. Endpoint URLs, event subscriptions and the signing secret are managed in the webhook portal.
38
+ */
39
+ async enable(
40
+ request?: operations.CreateWebhooksRequest | undefined,
41
+ options?: RequestOptions,
42
+ ): Promise<models.Webhooks> {
43
+ return unwrapAsync(webhooksEnable(
44
+ this,
45
+ request,
46
+ options,
47
+ ));
48
+ }
49
+
50
+ /**
51
+ * Update
52
+ *
53
+ * @remarks
54
+ * Turns webhook delivery on or off. Set `enabled` to `false` to pause delivery and to `true` to resume it. Endpoints and their event subscriptions are kept. Returns 404 if webhooks have never been enabled.
55
+ */
56
+ async update(
57
+ request: operations.UpdateWebhooksRequest,
58
+ options?: RequestOptions,
59
+ ): Promise<models.Webhooks> {
60
+ return unwrapAsync(webhooksUpdate(
61
+ this,
62
+ request,
63
+ options,
64
+ ));
65
+ }
66
+
67
+ /**
68
+ * Disable
69
+ *
70
+ * @remarks
71
+ * Pauses webhook delivery. This has the same effect as the update operation with `enabled: false`: it does not delete the configuration, the endpoints or their event subscriptions. Use the update operation with `enabled: true` to resume delivery. Returns 404 if webhooks have never been enabled.
72
+ */
73
+ async disable(
74
+ request?: operations.DeleteWebhooksRequest | undefined,
75
+ options?: RequestOptions,
76
+ ): Promise<void> {
77
+ return unwrapAsync(webhooksDisable(
78
+ this,
79
+ request,
80
+ options,
81
+ ));
82
+ }
83
+
84
+ /**
85
+ * Get Portal Access
86
+ *
87
+ * @remarks
88
+ * Returns a link to the webhook portal, where you add endpoints, choose event types, read the signing secret and inspect deliveries. The link opens without a login and expires one hour after it is issued, at `expiresAt`. Treat it as a secret. Returns 404 unless webhooks are enabled.
89
+ */
90
+ async getPortal(
91
+ request?: operations.GetWebhookPortalRequest | undefined,
92
+ options?: RequestOptions,
93
+ ): Promise<models.WebhookPortal> {
94
+ return unwrapAsync(webhooksGetPortal(
95
+ this,
96
+ request,
97
+ options,
98
+ ));
99
+ }
100
+ }
@@ -1,31 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { SubscriptionIntervalAddOp, SubscriptionIntervalAddOp$Outbound } from "./subscriptionintervaladdop.js";
3
- import { SubscriptionIntervalEditOp, SubscriptionIntervalEditOp$Outbound } from "./subscriptionintervaleditop.js";
4
- import { SubscriptionIntervalRemoveOp, SubscriptionIntervalRemoveOp$Outbound } from "./subscriptionintervalremoveop.js";
5
- /**
6
- * An add/edit/remove op set to apply to the subscription's price timeline. At least one operation is required.
7
- */
8
- export type EditSubscriptionIntervalsRequest = {
9
- /**
10
- * New override segments to add.
11
- */
12
- add?: Array<SubscriptionIntervalAddOp> | undefined;
13
- /**
14
- * Changes to existing intervals.
15
- */
16
- edit?: Array<SubscriptionIntervalEditOp> | undefined;
17
- /**
18
- * Intervals to remove outright.
19
- */
20
- remove?: Array<SubscriptionIntervalRemoveOp> | undefined;
21
- };
22
- /** @internal */
23
- export type EditSubscriptionIntervalsRequest$Outbound = {
24
- add?: Array<SubscriptionIntervalAddOp$Outbound> | undefined;
25
- edit?: Array<SubscriptionIntervalEditOp$Outbound> | undefined;
26
- remove?: Array<SubscriptionIntervalRemoveOp$Outbound> | undefined;
27
- };
28
- /** @internal */
29
- export declare const EditSubscriptionIntervalsRequest$outboundSchema: z.ZodType<EditSubscriptionIntervalsRequest$Outbound, z.ZodTypeDef, EditSubscriptionIntervalsRequest>;
30
- export declare function editSubscriptionIntervalsRequestToJSON(editSubscriptionIntervalsRequest: EditSubscriptionIntervalsRequest): string;
31
- //# sourceMappingURL=editsubscriptionintervalsrequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editsubscriptionintervalsrequest.d.ts","sourceRoot":"","sources":["../../../src/models/editsubscriptionintervalsrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,yBAAyB,EACzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,0BAA0B,EAC1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC;IACnD;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC;CAC1D,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,yCAAyC,GAAG;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,kCAAkC,CAAC,GAAG,SAAS,CAAC;IAC5D,IAAI,CAAC,EAAE,KAAK,CAAC,mCAAmC,CAAC,GAAG,SAAS,CAAC;IAC9D,MAAM,CAAC,EAAE,KAAK,CAAC,qCAAqC,CAAC,GAAG,SAAS,CAAC;CACnE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,gCAAgC,CAKhC,CAAC;AAEH,wBAAgB,sCAAsC,CACpD,gCAAgC,EAAE,gCAAgC,GACjE,MAAM,CAMR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"editsubscriptionintervalsrequest.js","sourceRoot":"","sources":["../../../src/models/editsubscriptionintervalsrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDH,wFAQC;AA7DD,0CAA4B;AAC5B,iFAIwC;AACxC,mFAIyC;AACzC,uFAI2C;AA2B3C,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,uEAAwC,CAAC,CAAC,QAAQ,EAAE;IACjE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,yEAAyC,CAAC,CAAC,QAAQ,EAAE;IACnE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,6EAA2C,CAAC,CAAC,QAAQ,EAAE;CACxE,CAAC,CAAC;AAEH,SAAgB,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,uDAA+C,CAAC,KAAK,CACnD,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC"}
@@ -1,17 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../types/fp.js";
3
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
- export type ProfitabilityTrend = {
5
- /**
6
- * Revenue values per time bucket, oldest first, in unit currency with two decimals.
7
- */
8
- values: Array<string>;
9
- /**
10
- * Period-over-period % change (current half vs prior half). Null when prior is zero.
11
- */
12
- periodChange: number | null;
13
- };
14
- /** @internal */
15
- export declare const ProfitabilityTrend$inboundSchema: z.ZodType<ProfitabilityTrend, z.ZodTypeDef, unknown>;
16
- export declare function profitabilityTrendFromJSON(jsonString: string): SafeParseResult<ProfitabilityTrend, SDKValidationError>;
17
- //# sourceMappingURL=profitabilitytrend.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profitabilitytrend.d.ts","sourceRoot":"","sources":["../../../src/models/profitabilitytrend.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"profitabilitytrend.js","sourceRoot":"","sources":["../../../src/models/profitabilitytrend.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,gEAQC;AAlCD,0CAA4B;AAC5B,kDAA8C;AAe9C,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACrC,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -1,31 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { SubscriptionIntervalAddOp, SubscriptionIntervalAddOp$Outbound } from "./subscriptionintervaladdop.js";
3
- import { SubscriptionIntervalEditOp, SubscriptionIntervalEditOp$Outbound } from "./subscriptionintervaleditop.js";
4
- import { SubscriptionIntervalRemoveOp, SubscriptionIntervalRemoveOp$Outbound } from "./subscriptionintervalremoveop.js";
5
- /**
6
- * An add/edit/remove op set to apply to the subscription's price timeline. At least one operation is required.
7
- */
8
- export type EditSubscriptionIntervalsRequest = {
9
- /**
10
- * New override segments to add.
11
- */
12
- add?: Array<SubscriptionIntervalAddOp> | undefined;
13
- /**
14
- * Changes to existing intervals.
15
- */
16
- edit?: Array<SubscriptionIntervalEditOp> | undefined;
17
- /**
18
- * Intervals to remove outright.
19
- */
20
- remove?: Array<SubscriptionIntervalRemoveOp> | undefined;
21
- };
22
- /** @internal */
23
- export type EditSubscriptionIntervalsRequest$Outbound = {
24
- add?: Array<SubscriptionIntervalAddOp$Outbound> | undefined;
25
- edit?: Array<SubscriptionIntervalEditOp$Outbound> | undefined;
26
- remove?: Array<SubscriptionIntervalRemoveOp$Outbound> | undefined;
27
- };
28
- /** @internal */
29
- export declare const EditSubscriptionIntervalsRequest$outboundSchema: z.ZodType<EditSubscriptionIntervalsRequest$Outbound, z.ZodTypeDef, EditSubscriptionIntervalsRequest>;
30
- export declare function editSubscriptionIntervalsRequestToJSON(editSubscriptionIntervalsRequest: EditSubscriptionIntervalsRequest): string;
31
- //# sourceMappingURL=editsubscriptionintervalsrequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editsubscriptionintervalsrequest.d.ts","sourceRoot":"","sources":["../../../src/models/editsubscriptionintervalsrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,yBAAyB,EACzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,0BAA0B,EAC1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC;IACnD;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC;CAC1D,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,yCAAyC,GAAG;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,kCAAkC,CAAC,GAAG,SAAS,CAAC;IAC5D,IAAI,CAAC,EAAE,KAAK,CAAC,mCAAmC,CAAC,GAAG,SAAS,CAAC;IAC9D,MAAM,CAAC,EAAE,KAAK,CAAC,qCAAqC,CAAC,GAAG,SAAS,CAAC;CACnE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,gCAAgC,CAKhC,CAAC;AAEH,wBAAgB,sCAAsC,CACpD,gCAAgC,EAAE,gCAAgC,GACjE,MAAM,CAMR"}
@@ -1,17 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { SubscriptionIntervalAddOp$outboundSchema, } from "./subscriptionintervaladdop.js";
6
- import { SubscriptionIntervalEditOp$outboundSchema, } from "./subscriptionintervaleditop.js";
7
- import { SubscriptionIntervalRemoveOp$outboundSchema, } from "./subscriptionintervalremoveop.js";
8
- /** @internal */
9
- export const EditSubscriptionIntervalsRequest$outboundSchema = z.object({
10
- add: z.array(SubscriptionIntervalAddOp$outboundSchema).optional(),
11
- edit: z.array(SubscriptionIntervalEditOp$outboundSchema).optional(),
12
- remove: z.array(SubscriptionIntervalRemoveOp$outboundSchema).optional(),
13
- });
14
- export function editSubscriptionIntervalsRequestToJSON(editSubscriptionIntervalsRequest) {
15
- return JSON.stringify(EditSubscriptionIntervalsRequest$outboundSchema.parse(editSubscriptionIntervalsRequest));
16
- }
17
- //# sourceMappingURL=editsubscriptionintervalsrequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editsubscriptionintervalsrequest.js","sourceRoot":"","sources":["../../../src/models/editsubscriptionintervalsrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAGL,wCAAwC,GACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAGL,yCAAyC,GAC1C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAGL,2CAA2C,GAC5C,MAAM,mCAAmC,CAAC;AA2B3C,gBAAgB;AAChB,MAAM,CAAC,MAAM,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC,QAAQ,EAAE;IACjE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC,QAAQ,EAAE;IACnE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC,QAAQ,EAAE;CACxE,CAAC,CAAC;AAEH,MAAM,UAAU,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,+CAA+C,CAAC,KAAK,CACnD,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC"}
@@ -1,17 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../types/fp.js";
3
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
- export type ProfitabilityTrend = {
5
- /**
6
- * Revenue values per time bucket, oldest first, in unit currency with two decimals.
7
- */
8
- values: Array<string>;
9
- /**
10
- * Period-over-period % change (current half vs prior half). Null when prior is zero.
11
- */
12
- periodChange: number | null;
13
- };
14
- /** @internal */
15
- export declare const ProfitabilityTrend$inboundSchema: z.ZodType<ProfitabilityTrend, z.ZodTypeDef, unknown>;
16
- export declare function profitabilityTrendFromJSON(jsonString: string): SafeParseResult<ProfitabilityTrend, SDKValidationError>;
17
- //# sourceMappingURL=profitabilitytrend.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profitabilitytrend.d.ts","sourceRoot":"","sources":["../../../src/models/profitabilitytrend.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -1,14 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { safeParse } from "../lib/schemas.js";
6
- /** @internal */
7
- export const ProfitabilityTrend$inboundSchema = z.object({
8
- values: z.array(z.string()),
9
- periodChange: z.nullable(z.number()),
10
- });
11
- export function profitabilityTrendFromJSON(jsonString) {
12
- return safeParse(jsonString, (x) => ProfitabilityTrend$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProfitabilityTrend' from JSON`);
13
- }
14
- //# sourceMappingURL=profitabilitytrend.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profitabilitytrend.js","sourceRoot":"","sources":["../../../src/models/profitabilitytrend.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAe9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACrC,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -1,66 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import {
7
- SubscriptionIntervalAddOp,
8
- SubscriptionIntervalAddOp$Outbound,
9
- SubscriptionIntervalAddOp$outboundSchema,
10
- } from "./subscriptionintervaladdop.js";
11
- import {
12
- SubscriptionIntervalEditOp,
13
- SubscriptionIntervalEditOp$Outbound,
14
- SubscriptionIntervalEditOp$outboundSchema,
15
- } from "./subscriptionintervaleditop.js";
16
- import {
17
- SubscriptionIntervalRemoveOp,
18
- SubscriptionIntervalRemoveOp$Outbound,
19
- SubscriptionIntervalRemoveOp$outboundSchema,
20
- } from "./subscriptionintervalremoveop.js";
21
-
22
- /**
23
- * An add/edit/remove op set to apply to the subscription's price timeline. At least one operation is required.
24
- */
25
- export type EditSubscriptionIntervalsRequest = {
26
- /**
27
- * New override segments to add.
28
- */
29
- add?: Array<SubscriptionIntervalAddOp> | undefined;
30
- /**
31
- * Changes to existing intervals.
32
- */
33
- edit?: Array<SubscriptionIntervalEditOp> | undefined;
34
- /**
35
- * Intervals to remove outright.
36
- */
37
- remove?: Array<SubscriptionIntervalRemoveOp> | undefined;
38
- };
39
-
40
- /** @internal */
41
- export type EditSubscriptionIntervalsRequest$Outbound = {
42
- add?: Array<SubscriptionIntervalAddOp$Outbound> | undefined;
43
- edit?: Array<SubscriptionIntervalEditOp$Outbound> | undefined;
44
- remove?: Array<SubscriptionIntervalRemoveOp$Outbound> | undefined;
45
- };
46
-
47
- /** @internal */
48
- export const EditSubscriptionIntervalsRequest$outboundSchema: z.ZodType<
49
- EditSubscriptionIntervalsRequest$Outbound,
50
- z.ZodTypeDef,
51
- EditSubscriptionIntervalsRequest
52
- > = z.object({
53
- add: z.array(SubscriptionIntervalAddOp$outboundSchema).optional(),
54
- edit: z.array(SubscriptionIntervalEditOp$outboundSchema).optional(),
55
- remove: z.array(SubscriptionIntervalRemoveOp$outboundSchema).optional(),
56
- });
57
-
58
- export function editSubscriptionIntervalsRequestToJSON(
59
- editSubscriptionIntervalsRequest: EditSubscriptionIntervalsRequest,
60
- ): string {
61
- return JSON.stringify(
62
- EditSubscriptionIntervalsRequest$outboundSchema.parse(
63
- editSubscriptionIntervalsRequest,
64
- ),
65
- );
66
- }
@@ -1,39 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../types/fp.js";
8
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
-
10
- export type ProfitabilityTrend = {
11
- /**
12
- * Revenue values per time bucket, oldest first, in unit currency with two decimals.
13
- */
14
- values: Array<string>;
15
- /**
16
- * Period-over-period % change (current half vs prior half). Null when prior is zero.
17
- */
18
- periodChange: number | null;
19
- };
20
-
21
- /** @internal */
22
- export const ProfitabilityTrend$inboundSchema: z.ZodType<
23
- ProfitabilityTrend,
24
- z.ZodTypeDef,
25
- unknown
26
- > = z.object({
27
- values: z.array(z.string()),
28
- periodChange: z.nullable(z.number()),
29
- });
30
-
31
- export function profitabilityTrendFromJSON(
32
- jsonString: string,
33
- ): SafeParseResult<ProfitabilityTrend, SDKValidationError> {
34
- return safeParse(
35
- jsonString,
36
- (x) => ProfitabilityTrend$inboundSchema.parse(JSON.parse(x)),
37
- `Failed to parse 'ProfitabilityTrend' from JSON`,
38
- );
39
- }