@pollination-solutions/pollination-sdk 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (887) hide show
  1. package/.apigentools-info +3 -3
  2. package/.openapi-generator/FILES +10 -37
  3. package/README.md +1 -1
  4. package/api/accounts-api.ts +1 -1
  5. package/api/apitokens-api.ts +1 -1
  6. package/api/artifacts-api.ts +1 -1
  7. package/api/jobs-api.ts +1 -1
  8. package/api/licenses-api.ts +1 -1
  9. package/api/orgs-api.ts +1 -1
  10. package/api/plugins-api.ts +1 -1
  11. package/api/projects-api.ts +1 -1
  12. package/api/recipes-api.ts +1 -1
  13. package/api/registries-api.ts +1 -1
  14. package/api/runs-api.ts +1 -1
  15. package/api/subscription-plans-api.ts +151 -0
  16. package/api/subscriptions-api.ts +514 -48
  17. package/api/teams-api.ts +1 -1
  18. package/api/user-api.ts +1 -1
  19. package/api/users-api.ts +1 -1
  20. package/api.ts +2 -2
  21. package/base.ts +1 -1
  22. package/configuration.ts +1 -1
  23. package/dist/api/accounts-api.d.ts +5 -5
  24. package/dist/api/accounts-api.js +1 -1
  25. package/dist/api/apitokens-api.d.ts +5 -5
  26. package/dist/api/apitokens-api.js +1 -1
  27. package/dist/api/artifacts-api.d.ts +5 -5
  28. package/dist/api/artifacts-api.js +1 -1
  29. package/dist/api/jobs-api.d.ts +8 -8
  30. package/dist/api/jobs-api.js +1 -1
  31. package/dist/api/licenses-api.d.ts +9 -9
  32. package/dist/api/licenses-api.js +1 -1
  33. package/dist/api/orgs-api.d.ts +9 -9
  34. package/dist/api/orgs-api.js +1 -1
  35. package/dist/api/plugins-api.d.ts +12 -12
  36. package/dist/api/plugins-api.js +1 -1
  37. package/dist/api/projects-api.d.ts +13 -13
  38. package/dist/api/projects-api.js +1 -1
  39. package/dist/api/recipes-api.d.ts +12 -12
  40. package/dist/api/recipes-api.js +1 -1
  41. package/dist/api/registries-api.d.ts +6 -6
  42. package/dist/api/registries-api.js +1 -1
  43. package/dist/api/runs-api.d.ts +10 -10
  44. package/dist/api/runs-api.js +1 -1
  45. package/dist/api/subscription-plans-api.d.ts +88 -0
  46. package/dist/api/subscription-plans-api.js +138 -0
  47. package/dist/api/subscriptions-api.d.ts +230 -32
  48. package/dist/api/subscriptions-api.js +407 -37
  49. package/dist/api/teams-api.d.ts +9 -9
  50. package/dist/api/teams-api.js +1 -1
  51. package/dist/api/user-api.d.ts +5 -5
  52. package/dist/api/user-api.js +1 -1
  53. package/dist/api/users-api.d.ts +4 -4
  54. package/dist/api/users-api.js +1 -1
  55. package/dist/api.d.ts +2 -2
  56. package/dist/api.js +2 -2
  57. package/dist/base.d.ts +1 -1
  58. package/dist/base.js +1 -1
  59. package/dist/configuration.d.ts +1 -1
  60. package/dist/configuration.js +1 -1
  61. package/dist/index.d.ts +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/models/accessor.d.ts +1 -1
  64. package/dist/models/accessor.js +1 -1
  65. package/dist/models/account-public.d.ts +1 -1
  66. package/dist/models/account-public.js +1 -1
  67. package/dist/models/account-type.d.ts +1 -1
  68. package/dist/models/account-type.js +1 -1
  69. package/dist/models/activation-list.d.ts +1 -1
  70. package/dist/models/activation-list.js +1 -1
  71. package/dist/models/activation.d.ts +1 -1
  72. package/dist/models/activation.js +1 -1
  73. package/dist/models/apitoken-create.d.ts +1 -1
  74. package/dist/models/apitoken-create.js +1 -1
  75. package/dist/models/apitoken-list.d.ts +1 -1
  76. package/dist/models/apitoken-list.js +1 -1
  77. package/dist/models/apitoken-private.d.ts +1 -1
  78. package/dist/models/apitoken-private.js +1 -1
  79. package/dist/models/apitoken.d.ts +1 -1
  80. package/dist/models/apitoken.js +1 -1
  81. package/dist/models/baked-recipe.d.ts +1 -1
  82. package/dist/models/baked-recipe.js +1 -1
  83. package/dist/models/billing-info.d.ts +81 -0
  84. package/dist/models/{card-public.js → billing-info.js} +1 -1
  85. package/dist/models/billing-option.d.ts +50 -0
  86. package/dist/models/{card.js → billing-option.js} +1 -1
  87. package/dist/models/body-post-plugin-owner-plugins-post.d.ts +1 -1
  88. package/dist/models/body-post-plugin-owner-plugins-post.js +1 -1
  89. package/dist/models/body-post-recipe-owner-recipes-post.d.ts +1 -1
  90. package/dist/models/body-post-recipe-owner-recipes-post.js +1 -1
  91. package/dist/models/{invoice-status.d.ts → card-type.d.ts} +10 -7
  92. package/dist/models/card-type.js +32 -0
  93. package/dist/models/cloud-job-list.d.ts +1 -1
  94. package/dist/models/cloud-job-list.js +1 -1
  95. package/dist/models/cloud-job.d.ts +1 -1
  96. package/dist/models/cloud-job.js +1 -1
  97. package/dist/models/created-content.d.ts +1 -1
  98. package/dist/models/created-content.js +1 -1
  99. package/dist/models/dag.d.ts +1 -1
  100. package/dist/models/dag.js +1 -1
  101. package/dist/models/dagarray-input-alias.d.ts +1 -1
  102. package/dist/models/dagarray-input-alias.js +1 -1
  103. package/dist/models/dagarray-input.d.ts +1 -1
  104. package/dist/models/dagarray-input.js +1 -1
  105. package/dist/models/dagarray-output-alias.d.ts +1 -1
  106. package/dist/models/dagarray-output-alias.js +1 -1
  107. package/dist/models/dagarray-output.d.ts +1 -1
  108. package/dist/models/dagarray-output.js +1 -1
  109. package/dist/models/dagboolean-input-alias.d.ts +1 -1
  110. package/dist/models/dagboolean-input-alias.js +1 -1
  111. package/dist/models/dagboolean-input.d.ts +1 -1
  112. package/dist/models/dagboolean-input.js +1 -1
  113. package/dist/models/dagboolean-output-alias.d.ts +1 -1
  114. package/dist/models/dagboolean-output-alias.js +1 -1
  115. package/dist/models/dagboolean-output.d.ts +1 -1
  116. package/dist/models/dagboolean-output.js +1 -1
  117. package/dist/models/dagfile-input-alias.d.ts +1 -1
  118. package/dist/models/dagfile-input-alias.js +1 -1
  119. package/dist/models/dagfile-input.d.ts +1 -1
  120. package/dist/models/dagfile-input.js +1 -1
  121. package/dist/models/dagfile-output-alias.d.ts +1 -1
  122. package/dist/models/dagfile-output-alias.js +1 -1
  123. package/dist/models/dagfile-output.d.ts +1 -1
  124. package/dist/models/dagfile-output.js +1 -1
  125. package/dist/models/dagfolder-input-alias.d.ts +1 -1
  126. package/dist/models/dagfolder-input-alias.js +1 -1
  127. package/dist/models/dagfolder-input.d.ts +1 -1
  128. package/dist/models/dagfolder-input.js +1 -1
  129. package/dist/models/dagfolder-output-alias.d.ts +1 -1
  130. package/dist/models/dagfolder-output-alias.js +1 -1
  131. package/dist/models/dagfolder-output.d.ts +1 -1
  132. package/dist/models/dagfolder-output.js +1 -1
  133. package/dist/models/daggeneric-input-alias.d.ts +1 -1
  134. package/dist/models/daggeneric-input-alias.js +1 -1
  135. package/dist/models/daggeneric-input.d.ts +1 -1
  136. package/dist/models/daggeneric-input.js +1 -1
  137. package/dist/models/daggeneric-output-alias.d.ts +1 -1
  138. package/dist/models/daggeneric-output-alias.js +1 -1
  139. package/dist/models/daggeneric-output.d.ts +1 -1
  140. package/dist/models/daggeneric-output.js +1 -1
  141. package/dist/models/daginteger-input-alias.d.ts +1 -1
  142. package/dist/models/daginteger-input-alias.js +1 -1
  143. package/dist/models/daginteger-input.d.ts +1 -1
  144. package/dist/models/daginteger-input.js +1 -1
  145. package/dist/models/daginteger-output-alias.d.ts +1 -1
  146. package/dist/models/daginteger-output-alias.js +1 -1
  147. package/dist/models/daginteger-output.d.ts +1 -1
  148. package/dist/models/daginteger-output.js +1 -1
  149. package/dist/models/dagjsonobject-input-alias.d.ts +1 -1
  150. package/dist/models/dagjsonobject-input-alias.js +1 -1
  151. package/dist/models/dagjsonobject-input.d.ts +1 -1
  152. package/dist/models/dagjsonobject-input.js +1 -1
  153. package/dist/models/dagjsonobject-output-alias.d.ts +1 -1
  154. package/dist/models/dagjsonobject-output-alias.js +1 -1
  155. package/dist/models/dagjsonobject-output.d.ts +1 -1
  156. package/dist/models/dagjsonobject-output.js +1 -1
  157. package/dist/models/daglinked-input-alias.d.ts +1 -1
  158. package/dist/models/daglinked-input-alias.js +1 -1
  159. package/dist/models/daglinked-output-alias.d.ts +1 -1
  160. package/dist/models/daglinked-output-alias.js +1 -1
  161. package/dist/models/dagnumber-input-alias.d.ts +1 -1
  162. package/dist/models/dagnumber-input-alias.js +1 -1
  163. package/dist/models/dagnumber-input.d.ts +1 -1
  164. package/dist/models/dagnumber-input.js +1 -1
  165. package/dist/models/dagnumber-output-alias.d.ts +1 -1
  166. package/dist/models/dagnumber-output-alias.js +1 -1
  167. package/dist/models/dagnumber-output.d.ts +1 -1
  168. package/dist/models/dagnumber-output.js +1 -1
  169. package/dist/models/dagpath-input-alias.d.ts +1 -1
  170. package/dist/models/dagpath-input-alias.js +1 -1
  171. package/dist/models/dagpath-input.d.ts +1 -1
  172. package/dist/models/dagpath-input.js +1 -1
  173. package/dist/models/dagpath-output-alias.d.ts +1 -1
  174. package/dist/models/dagpath-output-alias.js +1 -1
  175. package/dist/models/dagpath-output.d.ts +1 -1
  176. package/dist/models/dagpath-output.js +1 -1
  177. package/dist/models/dagstring-input-alias.d.ts +1 -1
  178. package/dist/models/dagstring-input-alias.js +1 -1
  179. package/dist/models/dagstring-input.d.ts +1 -1
  180. package/dist/models/dagstring-input.js +1 -1
  181. package/dist/models/dagstring-output-alias.d.ts +1 -1
  182. package/dist/models/dagstring-output-alias.js +1 -1
  183. package/dist/models/dagstring-output.d.ts +1 -1
  184. package/dist/models/dagstring-output.js +1 -1
  185. package/dist/models/dagtask-loop.d.ts +1 -1
  186. package/dist/models/dagtask-loop.js +1 -1
  187. package/dist/models/dagtask.d.ts +1 -1
  188. package/dist/models/dagtask.js +1 -1
  189. package/dist/models/daily-usage.d.ts +1 -1
  190. package/dist/models/daily-usage.js +1 -1
  191. package/dist/models/dependency-kind.d.ts +1 -1
  192. package/dist/models/dependency-kind.js +1 -1
  193. package/dist/models/dependency.d.ts +1 -1
  194. package/dist/models/dependency.js +1 -1
  195. package/dist/models/docker-config.d.ts +1 -1
  196. package/dist/models/docker-config.js +1 -1
  197. package/dist/models/file-meta.d.ts +1 -1
  198. package/dist/models/file-meta.js +1 -1
  199. package/dist/models/file-reference.d.ts +1 -1
  200. package/dist/models/file-reference.js +1 -1
  201. package/dist/models/folder-reference.d.ts +1 -1
  202. package/dist/models/folder-reference.js +1 -1
  203. package/dist/models/function-array-input.d.ts +1 -1
  204. package/dist/models/function-array-input.js +1 -1
  205. package/dist/models/function-array-output.d.ts +1 -1
  206. package/dist/models/function-array-output.js +1 -1
  207. package/dist/models/function-boolean-input.d.ts +1 -1
  208. package/dist/models/function-boolean-input.js +1 -1
  209. package/dist/models/function-boolean-output.d.ts +1 -1
  210. package/dist/models/function-boolean-output.js +1 -1
  211. package/dist/models/function-file-input.d.ts +1 -1
  212. package/dist/models/function-file-input.js +1 -1
  213. package/dist/models/function-file-output.d.ts +1 -1
  214. package/dist/models/function-file-output.js +1 -1
  215. package/dist/models/function-folder-input.d.ts +1 -1
  216. package/dist/models/function-folder-input.js +1 -1
  217. package/dist/models/function-folder-output.d.ts +1 -1
  218. package/dist/models/function-folder-output.js +1 -1
  219. package/dist/models/function-integer-input.d.ts +1 -1
  220. package/dist/models/function-integer-input.js +1 -1
  221. package/dist/models/function-integer-output.d.ts +1 -1
  222. package/dist/models/function-integer-output.js +1 -1
  223. package/dist/models/function-jsonobject-input.d.ts +1 -1
  224. package/dist/models/function-jsonobject-input.js +1 -1
  225. package/dist/models/function-jsonobject-output.d.ts +1 -1
  226. package/dist/models/function-jsonobject-output.js +1 -1
  227. package/dist/models/function-number-input.d.ts +1 -1
  228. package/dist/models/function-number-input.js +1 -1
  229. package/dist/models/function-number-output.d.ts +1 -1
  230. package/dist/models/function-number-output.js +1 -1
  231. package/dist/models/function-path-input.d.ts +1 -1
  232. package/dist/models/function-path-input.js +1 -1
  233. package/dist/models/function-path-output.d.ts +1 -1
  234. package/dist/models/function-path-output.js +1 -1
  235. package/dist/models/function-string-input.d.ts +1 -1
  236. package/dist/models/function-string-input.js +1 -1
  237. package/dist/models/function-string-output.d.ts +1 -1
  238. package/dist/models/function-string-output.js +1 -1
  239. package/dist/models/function.d.ts +1 -1
  240. package/dist/models/function.js +1 -1
  241. package/dist/models/http.d.ts +1 -1
  242. package/dist/models/http.js +1 -1
  243. package/dist/models/httpvalidation-error.d.ts +1 -1
  244. package/dist/models/httpvalidation-error.js +1 -1
  245. package/dist/models/index.d.ts +9 -36
  246. package/dist/models/index.js +9 -36
  247. package/dist/models/input-file-reference.d.ts +1 -1
  248. package/dist/models/input-file-reference.js +1 -1
  249. package/dist/models/input-folder-reference.d.ts +1 -1
  250. package/dist/models/input-folder-reference.js +1 -1
  251. package/dist/models/input-path-reference.d.ts +1 -1
  252. package/dist/models/input-path-reference.js +1 -1
  253. package/dist/models/input-reference.d.ts +1 -1
  254. package/dist/models/input-reference.js +1 -1
  255. package/dist/models/ioalias-handler.d.ts +1 -1
  256. package/dist/models/ioalias-handler.js +1 -1
  257. package/dist/models/item-reference.d.ts +1 -1
  258. package/dist/models/item-reference.js +1 -1
  259. package/dist/models/item-type.d.ts +1 -1
  260. package/dist/models/item-type.js +1 -1
  261. package/dist/models/job-argument.d.ts +1 -1
  262. package/dist/models/job-argument.js +1 -1
  263. package/dist/models/job-path-argument.d.ts +1 -1
  264. package/dist/models/job-path-argument.js +1 -1
  265. package/dist/models/job-status-enum.d.ts +1 -1
  266. package/dist/models/job-status-enum.js +1 -1
  267. package/dist/models/job-status.d.ts +1 -1
  268. package/dist/models/job-status.js +1 -1
  269. package/dist/models/job.d.ts +1 -1
  270. package/dist/models/job.js +1 -1
  271. package/dist/models/key-request.d.ts +1 -1
  272. package/dist/models/key-request.js +1 -1
  273. package/dist/models/license-pool-access-policy-list.d.ts +1 -1
  274. package/dist/models/license-pool-access-policy-list.js +1 -1
  275. package/dist/models/license-pool-access-policy.d.ts +1 -1
  276. package/dist/models/license-pool-access-policy.js +1 -1
  277. package/dist/models/license-pool-list.d.ts +1 -1
  278. package/dist/models/license-pool-list.js +1 -1
  279. package/dist/models/license-pool-policy-subject-list.d.ts +1 -1
  280. package/dist/models/license-pool-policy-subject-list.js +1 -1
  281. package/dist/models/license-pool-policy-subject.d.ts +1 -1
  282. package/dist/models/license-pool-policy-subject.js +1 -1
  283. package/dist/models/license-pool-public.d.ts +1 -1
  284. package/dist/models/license-pool-public.js +1 -1
  285. package/dist/models/license-pool-update.d.ts +1 -1
  286. package/dist/models/license-pool-update.js +1 -1
  287. package/dist/models/license-public.d.ts +1 -1
  288. package/dist/models/license-public.js +1 -1
  289. package/dist/models/license-type.d.ts +1 -1
  290. package/dist/models/license-type.js +1 -1
  291. package/dist/models/license.d.ts +1 -1
  292. package/dist/models/license.js +1 -1
  293. package/dist/models/local-config.d.ts +1 -1
  294. package/dist/models/local-config.js +1 -1
  295. package/dist/models/location.d.ts +1 -1
  296. package/dist/models/location.js +1 -1
  297. package/dist/models/maintainer.d.ts +1 -1
  298. package/dist/models/maintainer.js +1 -1
  299. package/dist/models/meta-data.d.ts +1 -1
  300. package/dist/models/meta-data.js +1 -1
  301. package/dist/models/metadata.d.ts +1 -1
  302. package/dist/models/metadata.js +1 -1
  303. package/dist/models/new-plugin-package.d.ts +1 -1
  304. package/dist/models/new-plugin-package.js +1 -1
  305. package/dist/models/new-recipe-package.d.ts +1 -1
  306. package/dist/models/new-recipe-package.js +1 -1
  307. package/dist/models/organization-create.d.ts +1 -1
  308. package/dist/models/organization-create.js +1 -1
  309. package/dist/models/organization-list.d.ts +1 -1
  310. package/dist/models/organization-list.js +1 -1
  311. package/dist/models/organization-member-list.d.ts +1 -1
  312. package/dist/models/organization-member-list.js +1 -1
  313. package/dist/models/organization-member.d.ts +1 -1
  314. package/dist/models/organization-member.js +1 -1
  315. package/dist/models/organization-role-enum.d.ts +1 -1
  316. package/dist/models/organization-role-enum.js +1 -1
  317. package/dist/models/organization-update.d.ts +1 -1
  318. package/dist/models/organization-update.js +1 -1
  319. package/dist/models/organization.d.ts +1 -1
  320. package/dist/models/organization.js +1 -1
  321. package/dist/models/package-sort-key.d.ts +1 -1
  322. package/dist/models/package-sort-key.js +1 -1
  323. package/dist/models/package-version.d.ts +1 -1
  324. package/dist/models/package-version.js +1 -1
  325. package/dist/models/{coupon-duration.d.ts → paused-reason.d.ts} +4 -5
  326. package/dist/models/{coupon-duration.js → paused-reason.js} +7 -8
  327. package/dist/models/{payment-create.d.ts → pay-link.d.ts} +6 -6
  328. package/dist/models/{delete-subscription-item.js → pay-link.js} +1 -1
  329. package/dist/models/{price-type.d.ts → payment-method-enum.d.ts} +3 -4
  330. package/dist/models/{price-type.js → payment-method-enum.js} +6 -7
  331. package/dist/models/payment-method.d.ts +10 -22
  332. package/dist/models/payment-method.js +1 -1
  333. package/dist/models/{coupon.d.ts → payment.d.ts} +24 -25
  334. package/dist/models/{coupon.js → payment.js} +1 -1
  335. package/dist/models/permission.d.ts +1 -1
  336. package/dist/models/permission.js +1 -1
  337. package/dist/models/plan-type.d.ts +21 -0
  338. package/dist/models/{payment-method-type.js → plan-type.js} +9 -7
  339. package/dist/models/plugin-config.d.ts +1 -1
  340. package/dist/models/plugin-config.js +1 -1
  341. package/dist/models/plugin-package-list.d.ts +1 -1
  342. package/dist/models/plugin-package-list.js +1 -1
  343. package/dist/models/plugin-package.d.ts +1 -1
  344. package/dist/models/plugin-package.js +1 -1
  345. package/dist/models/plugin.d.ts +1 -1
  346. package/dist/models/plugin.js +1 -1
  347. package/dist/models/policy-subject.d.ts +1 -1
  348. package/dist/models/policy-subject.js +1 -1
  349. package/dist/models/project-access-policy-list.d.ts +1 -1
  350. package/dist/models/project-access-policy-list.js +1 -1
  351. package/dist/models/project-access-policy.d.ts +1 -1
  352. package/dist/models/project-access-policy.js +1 -1
  353. package/dist/models/project-create.d.ts +1 -1
  354. package/dist/models/project-create.js +1 -1
  355. package/dist/models/project-folder.d.ts +1 -1
  356. package/dist/models/project-folder.js +1 -1
  357. package/dist/models/project-list.d.ts +1 -1
  358. package/dist/models/project-list.js +1 -1
  359. package/dist/models/project-policy-subject.d.ts +1 -1
  360. package/dist/models/project-policy-subject.js +1 -1
  361. package/dist/models/project-recipe-filter-list.d.ts +1 -1
  362. package/dist/models/project-recipe-filter-list.js +1 -1
  363. package/dist/models/project-recipe-filter.d.ts +1 -1
  364. package/dist/models/project-recipe-filter.js +1 -1
  365. package/dist/models/project-sort-key.d.ts +1 -1
  366. package/dist/models/project-sort-key.js +1 -1
  367. package/dist/models/project-update.d.ts +1 -1
  368. package/dist/models/project-update.js +1 -1
  369. package/dist/models/project.d.ts +1 -1
  370. package/dist/models/project.js +1 -1
  371. package/dist/models/public-account-list.d.ts +1 -1
  372. package/dist/models/public-account-list.js +1 -1
  373. package/dist/models/quota-list.d.ts +1 -1
  374. package/dist/models/quota-list.js +1 -1
  375. package/dist/models/quota-plan.d.ts +11 -4
  376. package/dist/models/quota-plan.js +1 -1
  377. package/dist/models/quota-type.d.ts +1 -1
  378. package/dist/models/quota-type.js +1 -1
  379. package/dist/models/quota.d.ts +1 -1
  380. package/dist/models/quota.js +1 -1
  381. package/dist/models/recipe-interface-list.d.ts +1 -1
  382. package/dist/models/recipe-interface-list.js +1 -1
  383. package/dist/models/recipe-interface.d.ts +1 -1
  384. package/dist/models/recipe-interface.js +1 -1
  385. package/dist/models/recipe-package-list.d.ts +1 -1
  386. package/dist/models/recipe-package-list.js +1 -1
  387. package/dist/models/recipe-package.d.ts +1 -1
  388. package/dist/models/recipe-package.js +1 -1
  389. package/dist/models/recipe.d.ts +1 -1
  390. package/dist/models/recipe.js +1 -1
  391. package/dist/models/repository-access-policy-list.d.ts +1 -1
  392. package/dist/models/repository-access-policy-list.js +1 -1
  393. package/dist/models/repository-access-policy.d.ts +1 -1
  394. package/dist/models/repository-access-policy.js +1 -1
  395. package/dist/models/repository-create.d.ts +1 -1
  396. package/dist/models/repository-create.js +1 -1
  397. package/dist/models/repository-index.d.ts +1 -1
  398. package/dist/models/repository-index.js +1 -1
  399. package/dist/models/repository-list.d.ts +1 -1
  400. package/dist/models/repository-list.js +1 -1
  401. package/dist/models/repository-metadata.d.ts +1 -1
  402. package/dist/models/repository-metadata.js +1 -1
  403. package/dist/models/repository-policy-subject.d.ts +1 -1
  404. package/dist/models/repository-policy-subject.js +1 -1
  405. package/dist/models/repository-sort-key.d.ts +1 -1
  406. package/dist/models/repository-sort-key.js +1 -1
  407. package/dist/models/repository-update.d.ts +1 -1
  408. package/dist/models/repository-update.js +1 -1
  409. package/dist/models/repository-user-permissions.d.ts +1 -1
  410. package/dist/models/repository-user-permissions.js +1 -1
  411. package/dist/models/repository.d.ts +1 -1
  412. package/dist/models/repository.js +1 -1
  413. package/dist/models/resources-duration.d.ts +1 -1
  414. package/dist/models/resources-duration.js +1 -1
  415. package/dist/models/role-enum.d.ts +1 -1
  416. package/dist/models/role-enum.js +1 -1
  417. package/dist/models/run-list.d.ts +1 -1
  418. package/dist/models/run-list.js +1 -1
  419. package/dist/models/run-meta.d.ts +1 -1
  420. package/dist/models/run-meta.js +1 -1
  421. package/dist/models/run-progress.d.ts +1 -1
  422. package/dist/models/run-progress.js +1 -1
  423. package/dist/models/run-result-list.d.ts +1 -1
  424. package/dist/models/run-result-list.js +1 -1
  425. package/dist/models/run-status-enum.d.ts +1 -1
  426. package/dist/models/run-status-enum.js +1 -1
  427. package/dist/models/run-status.d.ts +1 -1
  428. package/dist/models/run-status.js +1 -1
  429. package/dist/models/run.d.ts +1 -1
  430. package/dist/models/run.js +1 -1
  431. package/dist/models/s3-upload-request.d.ts +1 -1
  432. package/dist/models/s3-upload-request.js +1 -1
  433. package/dist/models/s3.d.ts +1 -1
  434. package/dist/models/s3.js +1 -1
  435. package/dist/models/sort-enum.d.ts +1 -1
  436. package/dist/models/sort-enum.js +1 -1
  437. package/dist/models/status-type.d.ts +1 -1
  438. package/dist/models/status-type.js +1 -1
  439. package/dist/models/step-array-input.d.ts +1 -1
  440. package/dist/models/step-array-input.js +1 -1
  441. package/dist/models/step-array-output.d.ts +1 -1
  442. package/dist/models/step-array-output.js +1 -1
  443. package/dist/models/step-boolean-input.d.ts +1 -1
  444. package/dist/models/step-boolean-input.js +1 -1
  445. package/dist/models/step-boolean-output.d.ts +1 -1
  446. package/dist/models/step-boolean-output.js +1 -1
  447. package/dist/models/step-file-input.d.ts +1 -1
  448. package/dist/models/step-file-input.js +1 -1
  449. package/dist/models/step-file-output.d.ts +1 -1
  450. package/dist/models/step-file-output.js +1 -1
  451. package/dist/models/step-folder-input.d.ts +1 -1
  452. package/dist/models/step-folder-input.js +1 -1
  453. package/dist/models/step-folder-output.d.ts +1 -1
  454. package/dist/models/step-folder-output.js +1 -1
  455. package/dist/models/step-integer-input.d.ts +1 -1
  456. package/dist/models/step-integer-input.js +1 -1
  457. package/dist/models/step-integer-output.d.ts +1 -1
  458. package/dist/models/step-integer-output.js +1 -1
  459. package/dist/models/step-jsonobject-input.d.ts +1 -1
  460. package/dist/models/step-jsonobject-input.js +1 -1
  461. package/dist/models/step-jsonobject-output.d.ts +1 -1
  462. package/dist/models/step-jsonobject-output.js +1 -1
  463. package/dist/models/step-list.d.ts +1 -1
  464. package/dist/models/step-list.js +1 -1
  465. package/dist/models/step-number-input.d.ts +1 -1
  466. package/dist/models/step-number-input.js +1 -1
  467. package/dist/models/step-number-output.d.ts +1 -1
  468. package/dist/models/step-number-output.js +1 -1
  469. package/dist/models/step-path-input.d.ts +1 -1
  470. package/dist/models/step-path-input.js +1 -1
  471. package/dist/models/step-path-output.d.ts +1 -1
  472. package/dist/models/step-path-output.js +1 -1
  473. package/dist/models/step-status-enum.d.ts +1 -1
  474. package/dist/models/step-status-enum.js +1 -1
  475. package/dist/models/step-status.d.ts +1 -1
  476. package/dist/models/step-status.js +1 -1
  477. package/dist/models/step-string-input.d.ts +1 -1
  478. package/dist/models/step-string-input.js +1 -1
  479. package/dist/models/step-string-output.d.ts +1 -1
  480. package/dist/models/step-string-output.js +1 -1
  481. package/dist/models/subject-type.d.ts +1 -1
  482. package/dist/models/subject-type.js +1 -1
  483. package/dist/models/subscription-create.d.ts +16 -5
  484. package/dist/models/subscription-create.js +1 -1
  485. package/dist/models/{price-recurrence.d.ts → subscription-payment.d.ts} +11 -11
  486. package/dist/models/subscription-payment.js +15 -0
  487. package/dist/models/subscription-plan.d.ts +16 -2
  488. package/dist/models/subscription-plan.js +1 -1
  489. package/dist/models/subscription-update.d.ts +4 -31
  490. package/dist/models/subscription-update.js +1 -1
  491. package/dist/models/subscription.d.ts +26 -37
  492. package/dist/models/subscription.js +1 -1
  493. package/dist/models/task-argument.d.ts +1 -1
  494. package/dist/models/task-argument.js +1 -1
  495. package/dist/models/task-file-reference.d.ts +1 -1
  496. package/dist/models/task-file-reference.js +1 -1
  497. package/dist/models/task-folder-reference.d.ts +1 -1
  498. package/dist/models/task-folder-reference.js +1 -1
  499. package/dist/models/task-path-argument.d.ts +1 -1
  500. package/dist/models/task-path-argument.js +1 -1
  501. package/dist/models/task-path-reference.d.ts +1 -1
  502. package/dist/models/task-path-reference.js +1 -1
  503. package/dist/models/task-path-return.d.ts +1 -1
  504. package/dist/models/task-path-return.js +1 -1
  505. package/dist/models/task-reference.d.ts +1 -1
  506. package/dist/models/task-reference.js +1 -1
  507. package/dist/models/task-return.d.ts +1 -1
  508. package/dist/models/task-return.js +1 -1
  509. package/dist/models/team-create.d.ts +1 -1
  510. package/dist/models/team-create.js +1 -1
  511. package/dist/models/team-list.d.ts +1 -1
  512. package/dist/models/team-list.js +1 -1
  513. package/dist/models/team-member-list.d.ts +1 -1
  514. package/dist/models/team-member-list.js +1 -1
  515. package/dist/models/team-member.d.ts +1 -1
  516. package/dist/models/team-member.js +1 -1
  517. package/dist/models/team-role-enum.d.ts +1 -1
  518. package/dist/models/team-role-enum.js +1 -1
  519. package/dist/models/team-update.d.ts +1 -1
  520. package/dist/models/team-update.js +1 -1
  521. package/dist/models/team.d.ts +1 -1
  522. package/dist/models/team.js +1 -1
  523. package/dist/models/template-function.d.ts +1 -1
  524. package/dist/models/template-function.js +1 -1
  525. package/dist/models/update-accepted.d.ts +1 -1
  526. package/dist/models/update-accepted.js +1 -1
  527. package/dist/models/usage.d.ts +1 -1
  528. package/dist/models/usage.js +1 -1
  529. package/dist/models/user-create.d.ts +1 -1
  530. package/dist/models/user-create.js +1 -1
  531. package/dist/models/user-permission.d.ts +1 -1
  532. package/dist/models/user-permission.js +1 -1
  533. package/dist/models/user-private.d.ts +1 -1
  534. package/dist/models/user-private.js +1 -1
  535. package/dist/models/user-public-list.d.ts +1 -1
  536. package/dist/models/user-public-list.js +1 -1
  537. package/dist/models/user-public.d.ts +1 -1
  538. package/dist/models/user-public.js +1 -1
  539. package/dist/models/user-update.d.ts +1 -1
  540. package/dist/models/user-update.js +1 -1
  541. package/dist/models/validation-error.d.ts +1 -1
  542. package/dist/models/validation-error.js +1 -1
  543. package/dist/models/value-file-reference.d.ts +1 -1
  544. package/dist/models/value-file-reference.js +1 -1
  545. package/dist/models/value-folder-reference.d.ts +1 -1
  546. package/dist/models/value-folder-reference.js +1 -1
  547. package/dist/models/value-list-reference.d.ts +1 -1
  548. package/dist/models/value-list-reference.js +1 -1
  549. package/dist/models/value-reference.d.ts +1 -1
  550. package/dist/models/value-reference.js +1 -1
  551. package/index.ts +1 -1
  552. package/models/accessor.ts +1 -1
  553. package/models/account-public.ts +1 -1
  554. package/models/account-type.ts +1 -1
  555. package/models/activation-list.ts +1 -1
  556. package/models/activation.ts +1 -1
  557. package/models/apitoken-create.ts +1 -1
  558. package/models/apitoken-list.ts +1 -1
  559. package/models/apitoken-private.ts +1 -1
  560. package/models/apitoken.ts +1 -1
  561. package/models/baked-recipe.ts +1 -1
  562. package/models/billing-info.ts +88 -0
  563. package/models/billing-option.ts +55 -0
  564. package/models/body-post-plugin-owner-plugins-post.ts +1 -1
  565. package/models/body-post-recipe-owner-recipes-post.ts +1 -1
  566. package/models/{invoice-status.ts → card-type.ts} +10 -7
  567. package/models/cloud-job-list.ts +1 -1
  568. package/models/cloud-job.ts +1 -1
  569. package/models/created-content.ts +1 -1
  570. package/models/dag.ts +1 -1
  571. package/models/dagarray-input-alias.ts +1 -1
  572. package/models/dagarray-input.ts +1 -1
  573. package/models/dagarray-output-alias.ts +1 -1
  574. package/models/dagarray-output.ts +1 -1
  575. package/models/dagboolean-input-alias.ts +1 -1
  576. package/models/dagboolean-input.ts +1 -1
  577. package/models/dagboolean-output-alias.ts +1 -1
  578. package/models/dagboolean-output.ts +1 -1
  579. package/models/dagfile-input-alias.ts +1 -1
  580. package/models/dagfile-input.ts +1 -1
  581. package/models/dagfile-output-alias.ts +1 -1
  582. package/models/dagfile-output.ts +1 -1
  583. package/models/dagfolder-input-alias.ts +1 -1
  584. package/models/dagfolder-input.ts +1 -1
  585. package/models/dagfolder-output-alias.ts +1 -1
  586. package/models/dagfolder-output.ts +1 -1
  587. package/models/daggeneric-input-alias.ts +1 -1
  588. package/models/daggeneric-input.ts +1 -1
  589. package/models/daggeneric-output-alias.ts +1 -1
  590. package/models/daggeneric-output.ts +1 -1
  591. package/models/daginteger-input-alias.ts +1 -1
  592. package/models/daginteger-input.ts +1 -1
  593. package/models/daginteger-output-alias.ts +1 -1
  594. package/models/daginteger-output.ts +1 -1
  595. package/models/dagjsonobject-input-alias.ts +1 -1
  596. package/models/dagjsonobject-input.ts +1 -1
  597. package/models/dagjsonobject-output-alias.ts +1 -1
  598. package/models/dagjsonobject-output.ts +1 -1
  599. package/models/daglinked-input-alias.ts +1 -1
  600. package/models/daglinked-output-alias.ts +1 -1
  601. package/models/dagnumber-input-alias.ts +1 -1
  602. package/models/dagnumber-input.ts +1 -1
  603. package/models/dagnumber-output-alias.ts +1 -1
  604. package/models/dagnumber-output.ts +1 -1
  605. package/models/dagpath-input-alias.ts +1 -1
  606. package/models/dagpath-input.ts +1 -1
  607. package/models/dagpath-output-alias.ts +1 -1
  608. package/models/dagpath-output.ts +1 -1
  609. package/models/dagstring-input-alias.ts +1 -1
  610. package/models/dagstring-input.ts +1 -1
  611. package/models/dagstring-output-alias.ts +1 -1
  612. package/models/dagstring-output.ts +1 -1
  613. package/models/dagtask-loop.ts +1 -1
  614. package/models/dagtask.ts +1 -1
  615. package/models/daily-usage.ts +1 -1
  616. package/models/dependency-kind.ts +1 -1
  617. package/models/dependency.ts +1 -1
  618. package/models/docker-config.ts +1 -1
  619. package/models/file-meta.ts +1 -1
  620. package/models/file-reference.ts +1 -1
  621. package/models/folder-reference.ts +1 -1
  622. package/models/function-array-input.ts +1 -1
  623. package/models/function-array-output.ts +1 -1
  624. package/models/function-boolean-input.ts +1 -1
  625. package/models/function-boolean-output.ts +1 -1
  626. package/models/function-file-input.ts +1 -1
  627. package/models/function-file-output.ts +1 -1
  628. package/models/function-folder-input.ts +1 -1
  629. package/models/function-folder-output.ts +1 -1
  630. package/models/function-integer-input.ts +1 -1
  631. package/models/function-integer-output.ts +1 -1
  632. package/models/function-jsonobject-input.ts +1 -1
  633. package/models/function-jsonobject-output.ts +1 -1
  634. package/models/function-number-input.ts +1 -1
  635. package/models/function-number-output.ts +1 -1
  636. package/models/function-path-input.ts +1 -1
  637. package/models/function-path-output.ts +1 -1
  638. package/models/function-string-input.ts +1 -1
  639. package/models/function-string-output.ts +1 -1
  640. package/models/function.ts +1 -1
  641. package/models/http.ts +1 -1
  642. package/models/httpvalidation-error.ts +1 -1
  643. package/models/index.ts +9 -36
  644. package/models/input-file-reference.ts +1 -1
  645. package/models/input-folder-reference.ts +1 -1
  646. package/models/input-path-reference.ts +1 -1
  647. package/models/input-reference.ts +1 -1
  648. package/models/ioalias-handler.ts +1 -1
  649. package/models/item-reference.ts +1 -1
  650. package/models/item-type.ts +1 -1
  651. package/models/job-argument.ts +1 -1
  652. package/models/job-path-argument.ts +1 -1
  653. package/models/job-status-enum.ts +1 -1
  654. package/models/job-status.ts +1 -1
  655. package/models/job.ts +1 -1
  656. package/models/key-request.ts +1 -1
  657. package/models/license-pool-access-policy-list.ts +1 -1
  658. package/models/license-pool-access-policy.ts +1 -1
  659. package/models/license-pool-list.ts +1 -1
  660. package/models/license-pool-policy-subject-list.ts +1 -1
  661. package/models/license-pool-policy-subject.ts +1 -1
  662. package/models/license-pool-public.ts +1 -1
  663. package/models/license-pool-update.ts +1 -1
  664. package/models/license-public.ts +1 -1
  665. package/models/license-type.ts +1 -1
  666. package/models/license.ts +1 -1
  667. package/models/local-config.ts +1 -1
  668. package/models/location.ts +1 -1
  669. package/models/maintainer.ts +1 -1
  670. package/models/meta-data.ts +1 -1
  671. package/models/metadata.ts +1 -1
  672. package/models/new-plugin-package.ts +1 -1
  673. package/models/new-recipe-package.ts +1 -1
  674. package/models/organization-create.ts +1 -1
  675. package/models/organization-list.ts +1 -1
  676. package/models/organization-member-list.ts +1 -1
  677. package/models/organization-member.ts +1 -1
  678. package/models/organization-role-enum.ts +1 -1
  679. package/models/organization-update.ts +1 -1
  680. package/models/organization.ts +1 -1
  681. package/models/package-sort-key.ts +1 -1
  682. package/models/package-version.ts +1 -1
  683. package/models/{coupon-duration.ts → paused-reason.ts} +4 -5
  684. package/models/{payment-create.ts → pay-link.ts} +6 -6
  685. package/models/{price-type.ts → payment-method-enum.ts} +3 -4
  686. package/models/payment-method.ts +10 -22
  687. package/models/{coupon.ts → payment.ts} +24 -25
  688. package/models/permission.ts +1 -1
  689. package/models/{payment-method-type.ts → plan-type.ts} +6 -4
  690. package/models/plugin-config.ts +1 -1
  691. package/models/plugin-package-list.ts +1 -1
  692. package/models/plugin-package.ts +1 -1
  693. package/models/plugin.ts +1 -1
  694. package/models/policy-subject.ts +1 -1
  695. package/models/project-access-policy-list.ts +1 -1
  696. package/models/project-access-policy.ts +1 -1
  697. package/models/project-create.ts +1 -1
  698. package/models/project-folder.ts +1 -1
  699. package/models/project-list.ts +1 -1
  700. package/models/project-policy-subject.ts +1 -1
  701. package/models/project-recipe-filter-list.ts +1 -1
  702. package/models/project-recipe-filter.ts +1 -1
  703. package/models/project-sort-key.ts +1 -1
  704. package/models/project-update.ts +1 -1
  705. package/models/project.ts +1 -1
  706. package/models/public-account-list.ts +1 -1
  707. package/models/quota-list.ts +1 -1
  708. package/models/quota-plan.ts +11 -4
  709. package/models/quota-type.ts +1 -1
  710. package/models/quota.ts +1 -1
  711. package/models/recipe-interface-list.ts +1 -1
  712. package/models/recipe-interface.ts +1 -1
  713. package/models/recipe-package-list.ts +1 -1
  714. package/models/recipe-package.ts +1 -1
  715. package/models/recipe.ts +1 -1
  716. package/models/repository-access-policy-list.ts +1 -1
  717. package/models/repository-access-policy.ts +1 -1
  718. package/models/repository-create.ts +1 -1
  719. package/models/repository-index.ts +1 -1
  720. package/models/repository-list.ts +1 -1
  721. package/models/repository-metadata.ts +1 -1
  722. package/models/repository-policy-subject.ts +1 -1
  723. package/models/repository-sort-key.ts +1 -1
  724. package/models/repository-update.ts +1 -1
  725. package/models/repository-user-permissions.ts +1 -1
  726. package/models/repository.ts +1 -1
  727. package/models/resources-duration.ts +1 -1
  728. package/models/role-enum.ts +1 -1
  729. package/models/run-list.ts +1 -1
  730. package/models/run-meta.ts +1 -1
  731. package/models/run-progress.ts +1 -1
  732. package/models/run-result-list.ts +1 -1
  733. package/models/run-status-enum.ts +1 -1
  734. package/models/run-status.ts +1 -1
  735. package/models/run.ts +1 -1
  736. package/models/s3-upload-request.ts +1 -1
  737. package/models/s3.ts +1 -1
  738. package/models/sort-enum.ts +1 -1
  739. package/models/status-type.ts +1 -1
  740. package/models/step-array-input.ts +1 -1
  741. package/models/step-array-output.ts +1 -1
  742. package/models/step-boolean-input.ts +1 -1
  743. package/models/step-boolean-output.ts +1 -1
  744. package/models/step-file-input.ts +1 -1
  745. package/models/step-file-output.ts +1 -1
  746. package/models/step-folder-input.ts +1 -1
  747. package/models/step-folder-output.ts +1 -1
  748. package/models/step-integer-input.ts +1 -1
  749. package/models/step-integer-output.ts +1 -1
  750. package/models/step-jsonobject-input.ts +1 -1
  751. package/models/step-jsonobject-output.ts +1 -1
  752. package/models/step-list.ts +1 -1
  753. package/models/step-number-input.ts +1 -1
  754. package/models/step-number-output.ts +1 -1
  755. package/models/step-path-input.ts +1 -1
  756. package/models/step-path-output.ts +1 -1
  757. package/models/step-status-enum.ts +1 -1
  758. package/models/step-status.ts +1 -1
  759. package/models/step-string-input.ts +1 -1
  760. package/models/step-string-output.ts +1 -1
  761. package/models/subject-type.ts +1 -1
  762. package/models/subscription-create.ts +16 -5
  763. package/models/{price-recurrence.ts → subscription-payment.ts} +11 -11
  764. package/models/subscription-plan.ts +16 -2
  765. package/models/subscription-update.ts +4 -31
  766. package/models/subscription.ts +26 -37
  767. package/models/task-argument.ts +1 -1
  768. package/models/task-file-reference.ts +1 -1
  769. package/models/task-folder-reference.ts +1 -1
  770. package/models/task-path-argument.ts +1 -1
  771. package/models/task-path-reference.ts +1 -1
  772. package/models/task-path-return.ts +1 -1
  773. package/models/task-reference.ts +1 -1
  774. package/models/task-return.ts +1 -1
  775. package/models/team-create.ts +1 -1
  776. package/models/team-list.ts +1 -1
  777. package/models/team-member-list.ts +1 -1
  778. package/models/team-member.ts +1 -1
  779. package/models/team-role-enum.ts +1 -1
  780. package/models/team-update.ts +1 -1
  781. package/models/team.ts +1 -1
  782. package/models/template-function.ts +1 -1
  783. package/models/update-accepted.ts +1 -1
  784. package/models/usage.ts +1 -1
  785. package/models/user-create.ts +1 -1
  786. package/models/user-permission.ts +1 -1
  787. package/models/user-private.ts +1 -1
  788. package/models/user-public-list.ts +1 -1
  789. package/models/user-public.ts +1 -1
  790. package/models/user-update.ts +1 -1
  791. package/models/validation-error.ts +1 -1
  792. package/models/value-file-reference.ts +1 -1
  793. package/models/value-folder-reference.ts +1 -1
  794. package/models/value-list-reference.ts +1 -1
  795. package/models/value-reference.ts +1 -1
  796. package/package.json +2 -2
  797. package/api/payments-api.ts +0 -2204
  798. package/dist/api/payments-api.d.ts +0 -975
  799. package/dist/api/payments-api.js +0 -1761
  800. package/dist/models/card-public.d.ts +0 -36
  801. package/dist/models/card.d.ts +0 -54
  802. package/dist/models/delete-subscription-item.d.ts +0 -49
  803. package/dist/models/discount-amount.d.ts +0 -30
  804. package/dist/models/discount-amount.js +0 -15
  805. package/dist/models/discount.d.ts +0 -55
  806. package/dist/models/discount.js +0 -15
  807. package/dist/models/inventory.d.ts +0 -25
  808. package/dist/models/inventory.js +0 -15
  809. package/dist/models/invoice-list.d.ts +0 -31
  810. package/dist/models/invoice-list.js +0 -15
  811. package/dist/models/invoice-preview.d.ts +0 -139
  812. package/dist/models/invoice-preview.js +0 -15
  813. package/dist/models/invoice-status-transitions.d.ts +0 -42
  814. package/dist/models/invoice-status-transitions.js +0 -15
  815. package/dist/models/invoice-status.js +0 -29
  816. package/dist/models/invoice.d.ts +0 -144
  817. package/dist/models/invoice.js +0 -15
  818. package/dist/models/line-item-list.d.ts +0 -31
  819. package/dist/models/line-item-list.js +0 -15
  820. package/dist/models/line-item.d.ts +0 -80
  821. package/dist/models/line-item.js +0 -15
  822. package/dist/models/new-subscription-item.d.ts +0 -31
  823. package/dist/models/new-subscription-item.js +0 -15
  824. package/dist/models/payment-create.js +0 -15
  825. package/dist/models/payment-intent.d.ts +0 -24
  826. package/dist/models/payment-intent.js +0 -15
  827. package/dist/models/payment-method-list.d.ts +0 -55
  828. package/dist/models/payment-method-list.js +0 -15
  829. package/dist/models/payment-method-type.d.ts +0 -19
  830. package/dist/models/payment-setup.d.ts +0 -24
  831. package/dist/models/payment-setup.js +0 -15
  832. package/dist/models/period.d.ts +0 -30
  833. package/dist/models/period.js +0 -15
  834. package/dist/models/pollination-subscription.d.ts +0 -62
  835. package/dist/models/pollination-subscription.js +0 -15
  836. package/dist/models/price-recurrence.js +0 -15
  837. package/dist/models/price-tier.d.ts +0 -48
  838. package/dist/models/price-tier.js +0 -15
  839. package/dist/models/price.d.ts +0 -81
  840. package/dist/models/price.js +0 -15
  841. package/dist/models/product-family.d.ts +0 -55
  842. package/dist/models/product-family.js +0 -15
  843. package/dist/models/quota-extension.d.ts +0 -49
  844. package/dist/models/quota-extension.js +0 -15
  845. package/dist/models/status.d.ts +0 -24
  846. package/dist/models/status.js +0 -15
  847. package/dist/models/subscribe.d.ts +0 -25
  848. package/dist/models/subscribe.js +0 -15
  849. package/dist/models/subscription-item-list.d.ts +0 -32
  850. package/dist/models/subscription-item-list.js +0 -15
  851. package/dist/models/subscription-item.d.ts +0 -43
  852. package/dist/models/subscription-item.js +0 -15
  853. package/dist/models/tax-amount.d.ts +0 -36
  854. package/dist/models/tax-amount.js +0 -15
  855. package/dist/models/update-invoice-preview.d.ts +0 -45
  856. package/dist/models/update-invoice-preview.js +0 -15
  857. package/dist/models/update-payment-method.d.ts +0 -24
  858. package/dist/models/update-payment-method.js +0 -15
  859. package/models/card-public.ts +0 -43
  860. package/models/card.ts +0 -61
  861. package/models/delete-subscription-item.ts +0 -56
  862. package/models/discount-amount.ts +0 -37
  863. package/models/discount.ts +0 -62
  864. package/models/inventory.ts +0 -32
  865. package/models/invoice-list.ts +0 -38
  866. package/models/invoice-preview.ts +0 -146
  867. package/models/invoice-status-transitions.ts +0 -49
  868. package/models/invoice.ts +0 -151
  869. package/models/line-item-list.ts +0 -38
  870. package/models/line-item.ts +0 -87
  871. package/models/new-subscription-item.ts +0 -38
  872. package/models/payment-intent.ts +0 -31
  873. package/models/payment-method-list.ts +0 -62
  874. package/models/payment-setup.ts +0 -31
  875. package/models/period.ts +0 -37
  876. package/models/pollination-subscription.ts +0 -69
  877. package/models/price-tier.ts +0 -55
  878. package/models/price.ts +0 -88
  879. package/models/product-family.ts +0 -62
  880. package/models/quota-extension.ts +0 -56
  881. package/models/status.ts +0 -31
  882. package/models/subscribe.ts +0 -32
  883. package/models/subscription-item-list.ts +0 -39
  884. package/models/subscription-item.ts +0 -50
  885. package/models/tax-amount.ts +0 -43
  886. package/models/update-invoice-preview.ts +0 -52
  887. package/models/update-payment-method.ts +0 -31
@@ -1,1761 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * pollination-server
6
- * Pollination Server OpenAPI Definition
7
- *
8
- * The version of the OpenAPI document: 0.25.0
9
- * Contact: info@pollination.cloud
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = void 0;
26
- const axios_1 = require("axios");
27
- // Some imports not used depending on template conditions
28
- // @ts-ignore
29
- const base_1 = require("../base");
30
- /**
31
- * PaymentsApi - axios parameter creator
32
- * @export
33
- */
34
- const PaymentsApiAxiosParamCreator = function (configuration) {
35
- return {
36
- /**
37
- *
38
- * @summary Cancel Subscription
39
- * @param {string} accountName
40
- * @param {*} [options] Override http request option.
41
- * @throws {RequiredError}
42
- */
43
- cancelSubscription: (accountName, options = {}) => __awaiter(this, void 0, void 0, function* () {
44
- // verify required parameter 'accountName' is not null or undefined
45
- if (accountName === null || accountName === undefined) {
46
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling cancelSubscription.');
47
- }
48
- const localVarPath = `/payments/{account_name}/subscription`
49
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
50
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
52
- let baseOptions;
53
- if (configuration) {
54
- baseOptions = configuration.baseOptions;
55
- }
56
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
57
- const localVarHeaderParameter = {};
58
- const localVarQueryParameter = {};
59
- // authentication APIKeyAuth required
60
- if (configuration && configuration.apiKey) {
61
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
62
- ? yield configuration.apiKey("x-pollination-token")
63
- : yield configuration.apiKey;
64
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
65
- }
66
- // authentication JWTAuth required
67
- // http bearer authentication required
68
- if (configuration && configuration.accessToken) {
69
- const accessToken = typeof configuration.accessToken === 'function'
70
- ? yield configuration.accessToken()
71
- : yield configuration.accessToken;
72
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
73
- }
74
- const query = new URLSearchParams(localVarUrlObj.search);
75
- for (const key in localVarQueryParameter) {
76
- query.set(key, localVarQueryParameter[key]);
77
- }
78
- for (const key in options.query) {
79
- query.set(key, options.query[key]);
80
- }
81
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
82
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
83
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
84
- return {
85
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
86
- options: localVarRequestOptions,
87
- };
88
- }),
89
- /**
90
- *
91
- * @summary Add Payment Method
92
- * @param {string} accountName
93
- * @param {PaymentCreate} paymentCreate
94
- * @param {*} [options] Override http request option.
95
- * @throws {RequiredError}
96
- */
97
- createPaymentMethod: (accountName, paymentCreate, options = {}) => __awaiter(this, void 0, void 0, function* () {
98
- // verify required parameter 'accountName' is not null or undefined
99
- if (accountName === null || accountName === undefined) {
100
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling createPaymentMethod.');
101
- }
102
- // verify required parameter 'paymentCreate' is not null or undefined
103
- if (paymentCreate === null || paymentCreate === undefined) {
104
- throw new base_1.RequiredError('paymentCreate', 'Required parameter paymentCreate was null or undefined when calling createPaymentMethod.');
105
- }
106
- const localVarPath = `/payments/{account_name}/methods`
107
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
108
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
109
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
110
- let baseOptions;
111
- if (configuration) {
112
- baseOptions = configuration.baseOptions;
113
- }
114
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
115
- const localVarHeaderParameter = {};
116
- const localVarQueryParameter = {};
117
- // authentication APIKeyAuth required
118
- if (configuration && configuration.apiKey) {
119
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
120
- ? yield configuration.apiKey("x-pollination-token")
121
- : yield configuration.apiKey;
122
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
123
- }
124
- // authentication JWTAuth required
125
- // http bearer authentication required
126
- if (configuration && configuration.accessToken) {
127
- const accessToken = typeof configuration.accessToken === 'function'
128
- ? yield configuration.accessToken()
129
- : yield configuration.accessToken;
130
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
131
- }
132
- localVarHeaderParameter['Content-Type'] = 'application/json';
133
- const query = new URLSearchParams(localVarUrlObj.search);
134
- for (const key in localVarQueryParameter) {
135
- query.set(key, localVarQueryParameter[key]);
136
- }
137
- for (const key in options.query) {
138
- query.set(key, options.query[key]);
139
- }
140
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
141
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
- const needsSerialization = (typeof paymentCreate !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
144
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(paymentCreate !== undefined ? paymentCreate : {}) : (paymentCreate || "");
145
- return {
146
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
147
- options: localVarRequestOptions,
148
- };
149
- }),
150
- /**
151
- *
152
- * @summary Create Subscription
153
- * @param {string} accountName
154
- * @param {SubscriptionCreate} subscriptionCreate
155
- * @param {*} [options] Override http request option.
156
- * @throws {RequiredError}
157
- */
158
- createSubscription: (accountName, subscriptionCreate, options = {}) => __awaiter(this, void 0, void 0, function* () {
159
- // verify required parameter 'accountName' is not null or undefined
160
- if (accountName === null || accountName === undefined) {
161
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling createSubscription.');
162
- }
163
- // verify required parameter 'subscriptionCreate' is not null or undefined
164
- if (subscriptionCreate === null || subscriptionCreate === undefined) {
165
- throw new base_1.RequiredError('subscriptionCreate', 'Required parameter subscriptionCreate was null or undefined when calling createSubscription.');
166
- }
167
- const localVarPath = `/payments/{account_name}/subscription`
168
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
169
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
171
- let baseOptions;
172
- if (configuration) {
173
- baseOptions = configuration.baseOptions;
174
- }
175
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
176
- const localVarHeaderParameter = {};
177
- const localVarQueryParameter = {};
178
- // authentication APIKeyAuth required
179
- if (configuration && configuration.apiKey) {
180
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
181
- ? yield configuration.apiKey("x-pollination-token")
182
- : yield configuration.apiKey;
183
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
184
- }
185
- // authentication JWTAuth required
186
- // http bearer authentication required
187
- if (configuration && configuration.accessToken) {
188
- const accessToken = typeof configuration.accessToken === 'function'
189
- ? yield configuration.accessToken()
190
- : yield configuration.accessToken;
191
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
192
- }
193
- localVarHeaderParameter['Content-Type'] = 'application/json';
194
- const query = new URLSearchParams(localVarUrlObj.search);
195
- for (const key in localVarQueryParameter) {
196
- query.set(key, localVarQueryParameter[key]);
197
- }
198
- for (const key in options.query) {
199
- query.set(key, options.query[key]);
200
- }
201
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
202
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
204
- const needsSerialization = (typeof subscriptionCreate !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
205
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(subscriptionCreate !== undefined ? subscriptionCreate : {}) : (subscriptionCreate || "");
206
- return {
207
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
208
- options: localVarRequestOptions,
209
- };
210
- }),
211
- /**
212
- *
213
- * @summary Delete Payment Method
214
- * @param {string} accountName
215
- * @param {string} id
216
- * @param {*} [options] Override http request option.
217
- * @throws {RequiredError}
218
- */
219
- deletePaymentMethod: (accountName, id, options = {}) => __awaiter(this, void 0, void 0, function* () {
220
- // verify required parameter 'accountName' is not null or undefined
221
- if (accountName === null || accountName === undefined) {
222
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling deletePaymentMethod.');
223
- }
224
- // verify required parameter 'id' is not null or undefined
225
- if (id === null || id === undefined) {
226
- throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling deletePaymentMethod.');
227
- }
228
- const localVarPath = `/payments/{account_name}/methods/{id}`
229
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)))
230
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
231
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
232
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
233
- let baseOptions;
234
- if (configuration) {
235
- baseOptions = configuration.baseOptions;
236
- }
237
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
238
- const localVarHeaderParameter = {};
239
- const localVarQueryParameter = {};
240
- // authentication APIKeyAuth required
241
- if (configuration && configuration.apiKey) {
242
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
243
- ? yield configuration.apiKey("x-pollination-token")
244
- : yield configuration.apiKey;
245
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
246
- }
247
- // authentication JWTAuth required
248
- // http bearer authentication required
249
- if (configuration && configuration.accessToken) {
250
- const accessToken = typeof configuration.accessToken === 'function'
251
- ? yield configuration.accessToken()
252
- : yield configuration.accessToken;
253
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
254
- }
255
- const query = new URLSearchParams(localVarUrlObj.search);
256
- for (const key in localVarQueryParameter) {
257
- query.set(key, localVarQueryParameter[key]);
258
- }
259
- for (const key in options.query) {
260
- query.set(key, options.query[key]);
261
- }
262
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
263
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
264
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
265
- return {
266
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
267
- options: localVarRequestOptions,
268
- };
269
- }),
270
- /**
271
- *
272
- * @summary Get Default Payment Method
273
- * @param {string} accountName
274
- * @param {*} [options] Override http request option.
275
- * @throws {RequiredError}
276
- */
277
- getDefaultPaymentMethod: (accountName, options = {}) => __awaiter(this, void 0, void 0, function* () {
278
- // verify required parameter 'accountName' is not null or undefined
279
- if (accountName === null || accountName === undefined) {
280
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling getDefaultPaymentMethod.');
281
- }
282
- const localVarPath = `/payments/{account_name}/methods/default`
283
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
284
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
285
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
286
- let baseOptions;
287
- if (configuration) {
288
- baseOptions = configuration.baseOptions;
289
- }
290
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
291
- const localVarHeaderParameter = {};
292
- const localVarQueryParameter = {};
293
- // authentication APIKeyAuth required
294
- if (configuration && configuration.apiKey) {
295
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
296
- ? yield configuration.apiKey("x-pollination-token")
297
- : yield configuration.apiKey;
298
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
299
- }
300
- // authentication JWTAuth required
301
- // http bearer authentication required
302
- if (configuration && configuration.accessToken) {
303
- const accessToken = typeof configuration.accessToken === 'function'
304
- ? yield configuration.accessToken()
305
- : yield configuration.accessToken;
306
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
307
- }
308
- const query = new URLSearchParams(localVarUrlObj.search);
309
- for (const key in localVarQueryParameter) {
310
- query.set(key, localVarQueryParameter[key]);
311
- }
312
- for (const key in options.query) {
313
- query.set(key, options.query[key]);
314
- }
315
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
316
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
317
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
318
- return {
319
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
320
- options: localVarRequestOptions,
321
- };
322
- }),
323
- /**
324
- *
325
- * @summary Get Failed Payment
326
- * @param {string} accountName
327
- * @param {*} [options] Override http request option.
328
- * @throws {RequiredError}
329
- */
330
- getFailedPayment: (accountName, options = {}) => __awaiter(this, void 0, void 0, function* () {
331
- // verify required parameter 'accountName' is not null or undefined
332
- if (accountName === null || accountName === undefined) {
333
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling getFailedPayment.');
334
- }
335
- const localVarPath = `/payments/{account_name}/failed`
336
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
337
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
338
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
339
- let baseOptions;
340
- if (configuration) {
341
- baseOptions = configuration.baseOptions;
342
- }
343
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
344
- const localVarHeaderParameter = {};
345
- const localVarQueryParameter = {};
346
- // authentication APIKeyAuth required
347
- if (configuration && configuration.apiKey) {
348
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
349
- ? yield configuration.apiKey("x-pollination-token")
350
- : yield configuration.apiKey;
351
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
352
- }
353
- // authentication JWTAuth required
354
- // http bearer authentication required
355
- if (configuration && configuration.accessToken) {
356
- const accessToken = typeof configuration.accessToken === 'function'
357
- ? yield configuration.accessToken()
358
- : yield configuration.accessToken;
359
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
360
- }
361
- const query = new URLSearchParams(localVarUrlObj.search);
362
- for (const key in localVarQueryParameter) {
363
- query.set(key, localVarQueryParameter[key]);
364
- }
365
- for (const key in options.query) {
366
- query.set(key, options.query[key]);
367
- }
368
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
369
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
370
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
371
- return {
372
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
373
- options: localVarRequestOptions,
374
- };
375
- }),
376
- /**
377
- *
378
- * @summary Get Inventory
379
- * @param {string} accountName
380
- * @param {*} [options] Override http request option.
381
- * @throws {RequiredError}
382
- */
383
- getInventory: (accountName, options = {}) => __awaiter(this, void 0, void 0, function* () {
384
- // verify required parameter 'accountName' is not null or undefined
385
- if (accountName === null || accountName === undefined) {
386
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling getInventory.');
387
- }
388
- const localVarPath = `/payments/{account_name}/inventory`
389
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
390
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
391
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
392
- let baseOptions;
393
- if (configuration) {
394
- baseOptions = configuration.baseOptions;
395
- }
396
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
397
- const localVarHeaderParameter = {};
398
- const localVarQueryParameter = {};
399
- // authentication APIKeyAuth required
400
- if (configuration && configuration.apiKey) {
401
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
402
- ? yield configuration.apiKey("x-pollination-token")
403
- : yield configuration.apiKey;
404
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
405
- }
406
- // authentication JWTAuth required
407
- // http bearer authentication required
408
- if (configuration && configuration.accessToken) {
409
- const accessToken = typeof configuration.accessToken === 'function'
410
- ? yield configuration.accessToken()
411
- : yield configuration.accessToken;
412
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
413
- }
414
- const query = new URLSearchParams(localVarUrlObj.search);
415
- for (const key in localVarQueryParameter) {
416
- query.set(key, localVarQueryParameter[key]);
417
- }
418
- for (const key in options.query) {
419
- query.set(key, options.query[key]);
420
- }
421
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
422
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
423
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
424
- return {
425
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
426
- options: localVarRequestOptions,
427
- };
428
- }),
429
- /**
430
- *
431
- * @summary Get Invoice List
432
- * @param {string} accountName
433
- * @param {string} [startingAfter]
434
- * @param {string} [endingBefore]
435
- * @param {number} [limit]
436
- * @param {number} [perPage] Number of items per page
437
- * @param {*} [options] Override http request option.
438
- * @throws {RequiredError}
439
- */
440
- getInvoiceList: (accountName, startingAfter, endingBefore, limit, perPage, options = {}) => __awaiter(this, void 0, void 0, function* () {
441
- // verify required parameter 'accountName' is not null or undefined
442
- if (accountName === null || accountName === undefined) {
443
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling getInvoiceList.');
444
- }
445
- const localVarPath = `/payments/{account_name}/invoices`
446
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
447
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
448
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
449
- let baseOptions;
450
- if (configuration) {
451
- baseOptions = configuration.baseOptions;
452
- }
453
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
454
- const localVarHeaderParameter = {};
455
- const localVarQueryParameter = {};
456
- // authentication APIKeyAuth required
457
- if (configuration && configuration.apiKey) {
458
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
459
- ? yield configuration.apiKey("x-pollination-token")
460
- : yield configuration.apiKey;
461
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
462
- }
463
- // authentication JWTAuth required
464
- // http bearer authentication required
465
- if (configuration && configuration.accessToken) {
466
- const accessToken = typeof configuration.accessToken === 'function'
467
- ? yield configuration.accessToken()
468
- : yield configuration.accessToken;
469
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
470
- }
471
- if (startingAfter !== undefined) {
472
- localVarQueryParameter['starting_after'] = startingAfter;
473
- }
474
- if (endingBefore !== undefined) {
475
- localVarQueryParameter['ending_before'] = endingBefore;
476
- }
477
- if (limit !== undefined) {
478
- localVarQueryParameter['limit'] = limit;
479
- }
480
- if (perPage !== undefined) {
481
- localVarQueryParameter['per-page'] = perPage;
482
- }
483
- const query = new URLSearchParams(localVarUrlObj.search);
484
- for (const key in localVarQueryParameter) {
485
- query.set(key, localVarQueryParameter[key]);
486
- }
487
- for (const key in options.query) {
488
- query.set(key, options.query[key]);
489
- }
490
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
491
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
492
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
493
- return {
494
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
495
- options: localVarRequestOptions,
496
- };
497
- }),
498
- /**
499
- *
500
- * @summary Get Next Invoice
501
- * @param {string} accountName
502
- * @param {*} [options] Override http request option.
503
- * @throws {RequiredError}
504
- */
505
- getNextInvoice: (accountName, options = {}) => __awaiter(this, void 0, void 0, function* () {
506
- // verify required parameter 'accountName' is not null or undefined
507
- if (accountName === null || accountName === undefined) {
508
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling getNextInvoice.');
509
- }
510
- const localVarPath = `/payments/{account_name}/invoices/next`
511
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
512
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
513
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
514
- let baseOptions;
515
- if (configuration) {
516
- baseOptions = configuration.baseOptions;
517
- }
518
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
519
- const localVarHeaderParameter = {};
520
- const localVarQueryParameter = {};
521
- // authentication APIKeyAuth required
522
- if (configuration && configuration.apiKey) {
523
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
524
- ? yield configuration.apiKey("x-pollination-token")
525
- : yield configuration.apiKey;
526
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
527
- }
528
- // authentication JWTAuth required
529
- // http bearer authentication required
530
- if (configuration && configuration.accessToken) {
531
- const accessToken = typeof configuration.accessToken === 'function'
532
- ? yield configuration.accessToken()
533
- : yield configuration.accessToken;
534
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
535
- }
536
- const query = new URLSearchParams(localVarUrlObj.search);
537
- for (const key in localVarQueryParameter) {
538
- query.set(key, localVarQueryParameter[key]);
539
- }
540
- for (const key in options.query) {
541
- query.set(key, options.query[key]);
542
- }
543
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
544
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
545
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
546
- return {
547
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
548
- options: localVarRequestOptions,
549
- };
550
- }),
551
- /**
552
- *
553
- * @summary Get Status
554
- * @param {string} accountName
555
- * @param {*} [options] Override http request option.
556
- * @throws {RequiredError}
557
- */
558
- getStatus: (accountName, options = {}) => __awaiter(this, void 0, void 0, function* () {
559
- // verify required parameter 'accountName' is not null or undefined
560
- if (accountName === null || accountName === undefined) {
561
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling getStatus.');
562
- }
563
- const localVarPath = `/payments/{account_name}/status`
564
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
565
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
566
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
567
- let baseOptions;
568
- if (configuration) {
569
- baseOptions = configuration.baseOptions;
570
- }
571
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
572
- const localVarHeaderParameter = {};
573
- const localVarQueryParameter = {};
574
- // authentication APIKeyAuth required
575
- if (configuration && configuration.apiKey) {
576
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
577
- ? yield configuration.apiKey("x-pollination-token")
578
- : yield configuration.apiKey;
579
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
580
- }
581
- // authentication JWTAuth required
582
- // http bearer authentication required
583
- if (configuration && configuration.accessToken) {
584
- const accessToken = typeof configuration.accessToken === 'function'
585
- ? yield configuration.accessToken()
586
- : yield configuration.accessToken;
587
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
588
- }
589
- const query = new URLSearchParams(localVarUrlObj.search);
590
- for (const key in localVarQueryParameter) {
591
- query.set(key, localVarQueryParameter[key]);
592
- }
593
- for (const key in options.query) {
594
- query.set(key, options.query[key]);
595
- }
596
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
597
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
598
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
599
- return {
600
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
601
- options: localVarRequestOptions,
602
- };
603
- }),
604
- /**
605
- *
606
- * @summary Get Subscription
607
- * @param {string} accountName
608
- * @param {*} [options] Override http request option.
609
- * @throws {RequiredError}
610
- */
611
- getSubscription: (accountName, options = {}) => __awaiter(this, void 0, void 0, function* () {
612
- // verify required parameter 'accountName' is not null or undefined
613
- if (accountName === null || accountName === undefined) {
614
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling getSubscription.');
615
- }
616
- const localVarPath = `/payments/{account_name}/subscription`
617
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
618
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
619
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
620
- let baseOptions;
621
- if (configuration) {
622
- baseOptions = configuration.baseOptions;
623
- }
624
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
625
- const localVarHeaderParameter = {};
626
- const localVarQueryParameter = {};
627
- // authentication APIKeyAuth required
628
- if (configuration && configuration.apiKey) {
629
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
630
- ? yield configuration.apiKey("x-pollination-token")
631
- : yield configuration.apiKey;
632
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
633
- }
634
- // authentication JWTAuth required
635
- // http bearer authentication required
636
- if (configuration && configuration.accessToken) {
637
- const accessToken = typeof configuration.accessToken === 'function'
638
- ? yield configuration.accessToken()
639
- : yield configuration.accessToken;
640
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
641
- }
642
- const query = new URLSearchParams(localVarUrlObj.search);
643
- for (const key in localVarQueryParameter) {
644
- query.set(key, localVarQueryParameter[key]);
645
- }
646
- for (const key in options.query) {
647
- query.set(key, options.query[key]);
648
- }
649
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
650
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
651
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
652
- return {
653
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
654
- options: localVarRequestOptions,
655
- };
656
- }),
657
- /**
658
- *
659
- * @summary Get Unfiltered Inventory
660
- * @param {*} [options] Override http request option.
661
- * @throws {RequiredError}
662
- */
663
- getUnfilteredInventory: (options = {}) => __awaiter(this, void 0, void 0, function* () {
664
- const localVarPath = `/payments/inventory`;
665
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
666
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
667
- let baseOptions;
668
- if (configuration) {
669
- baseOptions = configuration.baseOptions;
670
- }
671
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
672
- const localVarHeaderParameter = {};
673
- const localVarQueryParameter = {};
674
- const query = new URLSearchParams(localVarUrlObj.search);
675
- for (const key in localVarQueryParameter) {
676
- query.set(key, localVarQueryParameter[key]);
677
- }
678
- for (const key in options.query) {
679
- query.set(key, options.query[key]);
680
- }
681
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
682
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
683
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
684
- return {
685
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
686
- options: localVarRequestOptions,
687
- };
688
- }),
689
- /**
690
- *
691
- * @summary Get Upcoming Subscription
692
- * @param {string} accountName
693
- * @param {*} [options] Override http request option.
694
- * @throws {RequiredError}
695
- */
696
- getUpcomingSubscription: (accountName, options = {}) => __awaiter(this, void 0, void 0, function* () {
697
- // verify required parameter 'accountName' is not null or undefined
698
- if (accountName === null || accountName === undefined) {
699
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling getUpcomingSubscription.');
700
- }
701
- const localVarPath = `/payments/{account_name}/subscription/upcoming`
702
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
703
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
704
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
705
- let baseOptions;
706
- if (configuration) {
707
- baseOptions = configuration.baseOptions;
708
- }
709
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
710
- const localVarHeaderParameter = {};
711
- const localVarQueryParameter = {};
712
- // authentication APIKeyAuth required
713
- if (configuration && configuration.apiKey) {
714
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
715
- ? yield configuration.apiKey("x-pollination-token")
716
- : yield configuration.apiKey;
717
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
718
- }
719
- // authentication JWTAuth required
720
- // http bearer authentication required
721
- if (configuration && configuration.accessToken) {
722
- const accessToken = typeof configuration.accessToken === 'function'
723
- ? yield configuration.accessToken()
724
- : yield configuration.accessToken;
725
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
726
- }
727
- const query = new URLSearchParams(localVarUrlObj.search);
728
- for (const key in localVarQueryParameter) {
729
- query.set(key, localVarQueryParameter[key]);
730
- }
731
- for (const key in options.query) {
732
- query.set(key, options.query[key]);
733
- }
734
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
735
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
736
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
737
- return {
738
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
739
- options: localVarRequestOptions,
740
- };
741
- }),
742
- /**
743
- *
744
- * @summary Get Payment Methods
745
- * @param {string} accountName
746
- * @param {*} [options] Override http request option.
747
- * @throws {RequiredError}
748
- */
749
- listPaymentMethods: (accountName, options = {}) => __awaiter(this, void 0, void 0, function* () {
750
- // verify required parameter 'accountName' is not null or undefined
751
- if (accountName === null || accountName === undefined) {
752
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling listPaymentMethods.');
753
- }
754
- const localVarPath = `/payments/{account_name}/methods`
755
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
756
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
757
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
758
- let baseOptions;
759
- if (configuration) {
760
- baseOptions = configuration.baseOptions;
761
- }
762
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
763
- const localVarHeaderParameter = {};
764
- const localVarQueryParameter = {};
765
- // authentication APIKeyAuth required
766
- if (configuration && configuration.apiKey) {
767
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
768
- ? yield configuration.apiKey("x-pollination-token")
769
- : yield configuration.apiKey;
770
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
771
- }
772
- // authentication JWTAuth required
773
- // http bearer authentication required
774
- if (configuration && configuration.accessToken) {
775
- const accessToken = typeof configuration.accessToken === 'function'
776
- ? yield configuration.accessToken()
777
- : yield configuration.accessToken;
778
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
779
- }
780
- const query = new URLSearchParams(localVarUrlObj.search);
781
- for (const key in localVarQueryParameter) {
782
- query.set(key, localVarQueryParameter[key]);
783
- }
784
- for (const key in options.query) {
785
- query.set(key, options.query[key]);
786
- }
787
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
788
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
789
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
790
- return {
791
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
792
- options: localVarRequestOptions,
793
- };
794
- }),
795
- /**
796
- *
797
- * @summary Preview Update Subscription
798
- * @param {string} accountName
799
- * @param {SubscriptionUpdate} subscriptionUpdate
800
- * @param {*} [options] Override http request option.
801
- * @throws {RequiredError}
802
- */
803
- previewUpdateSubscription: (accountName, subscriptionUpdate, options = {}) => __awaiter(this, void 0, void 0, function* () {
804
- // verify required parameter 'accountName' is not null or undefined
805
- if (accountName === null || accountName === undefined) {
806
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling previewUpdateSubscription.');
807
- }
808
- // verify required parameter 'subscriptionUpdate' is not null or undefined
809
- if (subscriptionUpdate === null || subscriptionUpdate === undefined) {
810
- throw new base_1.RequiredError('subscriptionUpdate', 'Required parameter subscriptionUpdate was null or undefined when calling previewUpdateSubscription.');
811
- }
812
- const localVarPath = `/payments/{account_name}/subscription/preview`
813
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
814
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
815
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
816
- let baseOptions;
817
- if (configuration) {
818
- baseOptions = configuration.baseOptions;
819
- }
820
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
821
- const localVarHeaderParameter = {};
822
- const localVarQueryParameter = {};
823
- // authentication APIKeyAuth required
824
- if (configuration && configuration.apiKey) {
825
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
826
- ? yield configuration.apiKey("x-pollination-token")
827
- : yield configuration.apiKey;
828
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
829
- }
830
- // authentication JWTAuth required
831
- // http bearer authentication required
832
- if (configuration && configuration.accessToken) {
833
- const accessToken = typeof configuration.accessToken === 'function'
834
- ? yield configuration.accessToken()
835
- : yield configuration.accessToken;
836
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
837
- }
838
- localVarHeaderParameter['Content-Type'] = 'application/json';
839
- const query = new URLSearchParams(localVarUrlObj.search);
840
- for (const key in localVarQueryParameter) {
841
- query.set(key, localVarQueryParameter[key]);
842
- }
843
- for (const key in options.query) {
844
- query.set(key, options.query[key]);
845
- }
846
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
847
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
848
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
849
- const needsSerialization = (typeof subscriptionUpdate !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
850
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(subscriptionUpdate !== undefined ? subscriptionUpdate : {}) : (subscriptionUpdate || "");
851
- return {
852
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
853
- options: localVarRequestOptions,
854
- };
855
- }),
856
- /**
857
- *
858
- * @summary Subscribe
859
- * @param {string} accountName
860
- * @param {Subscribe} subscribe
861
- * @param {*} [options] Override http request option.
862
- * @throws {RequiredError}
863
- */
864
- subscribe: (accountName, subscribe, options = {}) => __awaiter(this, void 0, void 0, function* () {
865
- // verify required parameter 'accountName' is not null or undefined
866
- if (accountName === null || accountName === undefined) {
867
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling subscribe.');
868
- }
869
- // verify required parameter 'subscribe' is not null or undefined
870
- if (subscribe === null || subscribe === undefined) {
871
- throw new base_1.RequiredError('subscribe', 'Required parameter subscribe was null or undefined when calling subscribe.');
872
- }
873
- const localVarPath = `/payments/{account_name}/subscribe`
874
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
875
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
876
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
877
- let baseOptions;
878
- if (configuration) {
879
- baseOptions = configuration.baseOptions;
880
- }
881
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
882
- const localVarHeaderParameter = {};
883
- const localVarQueryParameter = {};
884
- // authentication APIKeyAuth required
885
- if (configuration && configuration.apiKey) {
886
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
887
- ? yield configuration.apiKey("x-pollination-token")
888
- : yield configuration.apiKey;
889
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
890
- }
891
- // authentication JWTAuth required
892
- // http bearer authentication required
893
- if (configuration && configuration.accessToken) {
894
- const accessToken = typeof configuration.accessToken === 'function'
895
- ? yield configuration.accessToken()
896
- : yield configuration.accessToken;
897
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
898
- }
899
- localVarHeaderParameter['Content-Type'] = 'application/json';
900
- const query = new URLSearchParams(localVarUrlObj.search);
901
- for (const key in localVarQueryParameter) {
902
- query.set(key, localVarQueryParameter[key]);
903
- }
904
- for (const key in options.query) {
905
- query.set(key, options.query[key]);
906
- }
907
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
908
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
909
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
910
- const needsSerialization = (typeof subscribe !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
911
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(subscribe !== undefined ? subscribe : {}) : (subscribe || "");
912
- return {
913
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
914
- options: localVarRequestOptions,
915
- };
916
- }),
917
- /**
918
- *
919
- * @summary Update Payment Method
920
- * @param {string} accountName
921
- * @param {string} id
922
- * @param {UpdatePaymentMethod} updatePaymentMethod
923
- * @param {*} [options] Override http request option.
924
- * @throws {RequiredError}
925
- */
926
- updatePaymentMethod: (accountName, id, updatePaymentMethod, options = {}) => __awaiter(this, void 0, void 0, function* () {
927
- // verify required parameter 'accountName' is not null or undefined
928
- if (accountName === null || accountName === undefined) {
929
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling updatePaymentMethod.');
930
- }
931
- // verify required parameter 'id' is not null or undefined
932
- if (id === null || id === undefined) {
933
- throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling updatePaymentMethod.');
934
- }
935
- // verify required parameter 'updatePaymentMethod' is not null or undefined
936
- if (updatePaymentMethod === null || updatePaymentMethod === undefined) {
937
- throw new base_1.RequiredError('updatePaymentMethod', 'Required parameter updatePaymentMethod was null or undefined when calling updatePaymentMethod.');
938
- }
939
- const localVarPath = `/payments/{account_name}/methods/{id}`
940
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)))
941
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
942
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
943
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
944
- let baseOptions;
945
- if (configuration) {
946
- baseOptions = configuration.baseOptions;
947
- }
948
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
949
- const localVarHeaderParameter = {};
950
- const localVarQueryParameter = {};
951
- // authentication APIKeyAuth required
952
- if (configuration && configuration.apiKey) {
953
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
954
- ? yield configuration.apiKey("x-pollination-token")
955
- : yield configuration.apiKey;
956
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
957
- }
958
- // authentication JWTAuth required
959
- // http bearer authentication required
960
- if (configuration && configuration.accessToken) {
961
- const accessToken = typeof configuration.accessToken === 'function'
962
- ? yield configuration.accessToken()
963
- : yield configuration.accessToken;
964
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
965
- }
966
- localVarHeaderParameter['Content-Type'] = 'application/json';
967
- const query = new URLSearchParams(localVarUrlObj.search);
968
- for (const key in localVarQueryParameter) {
969
- query.set(key, localVarQueryParameter[key]);
970
- }
971
- for (const key in options.query) {
972
- query.set(key, options.query[key]);
973
- }
974
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
975
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
976
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
977
- const needsSerialization = (typeof updatePaymentMethod !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
978
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(updatePaymentMethod !== undefined ? updatePaymentMethod : {}) : (updatePaymentMethod || "");
979
- return {
980
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
981
- options: localVarRequestOptions,
982
- };
983
- }),
984
- /**
985
- *
986
- * @summary Update Subscription
987
- * @param {string} accountName
988
- * @param {SubscriptionUpdate} subscriptionUpdate
989
- * @param {*} [options] Override http request option.
990
- * @throws {RequiredError}
991
- */
992
- updateSubscription: (accountName, subscriptionUpdate, options = {}) => __awaiter(this, void 0, void 0, function* () {
993
- // verify required parameter 'accountName' is not null or undefined
994
- if (accountName === null || accountName === undefined) {
995
- throw new base_1.RequiredError('accountName', 'Required parameter accountName was null or undefined when calling updateSubscription.');
996
- }
997
- // verify required parameter 'subscriptionUpdate' is not null or undefined
998
- if (subscriptionUpdate === null || subscriptionUpdate === undefined) {
999
- throw new base_1.RequiredError('subscriptionUpdate', 'Required parameter subscriptionUpdate was null or undefined when calling updateSubscription.');
1000
- }
1001
- const localVarPath = `/payments/{account_name}/subscription`
1002
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
1003
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1004
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
1005
- let baseOptions;
1006
- if (configuration) {
1007
- baseOptions = configuration.baseOptions;
1008
- }
1009
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1010
- const localVarHeaderParameter = {};
1011
- const localVarQueryParameter = {};
1012
- // authentication APIKeyAuth required
1013
- if (configuration && configuration.apiKey) {
1014
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
1015
- ? yield configuration.apiKey("x-pollination-token")
1016
- : yield configuration.apiKey;
1017
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
1018
- }
1019
- // authentication JWTAuth required
1020
- // http bearer authentication required
1021
- if (configuration && configuration.accessToken) {
1022
- const accessToken = typeof configuration.accessToken === 'function'
1023
- ? yield configuration.accessToken()
1024
- : yield configuration.accessToken;
1025
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
1026
- }
1027
- localVarHeaderParameter['Content-Type'] = 'application/json';
1028
- const query = new URLSearchParams(localVarUrlObj.search);
1029
- for (const key in localVarQueryParameter) {
1030
- query.set(key, localVarQueryParameter[key]);
1031
- }
1032
- for (const key in options.query) {
1033
- query.set(key, options.query[key]);
1034
- }
1035
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
1036
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1037
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1038
- const needsSerialization = (typeof subscriptionUpdate !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
1039
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(subscriptionUpdate !== undefined ? subscriptionUpdate : {}) : (subscriptionUpdate || "");
1040
- return {
1041
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
1042
- options: localVarRequestOptions,
1043
- };
1044
- }),
1045
- };
1046
- };
1047
- exports.PaymentsApiAxiosParamCreator = PaymentsApiAxiosParamCreator;
1048
- /**
1049
- * PaymentsApi - functional programming interface
1050
- * @export
1051
- */
1052
- const PaymentsApiFp = function (configuration) {
1053
- return {
1054
- /**
1055
- *
1056
- * @summary Cancel Subscription
1057
- * @param {string} accountName
1058
- * @param {*} [options] Override http request option.
1059
- * @throws {RequiredError}
1060
- */
1061
- cancelSubscription(accountName, options) {
1062
- return __awaiter(this, void 0, void 0, function* () {
1063
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).cancelSubscription(accountName, options);
1064
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1065
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1066
- return axios.request(axiosRequestArgs);
1067
- };
1068
- });
1069
- },
1070
- /**
1071
- *
1072
- * @summary Add Payment Method
1073
- * @param {string} accountName
1074
- * @param {PaymentCreate} paymentCreate
1075
- * @param {*} [options] Override http request option.
1076
- * @throws {RequiredError}
1077
- */
1078
- createPaymentMethod(accountName, paymentCreate, options) {
1079
- return __awaiter(this, void 0, void 0, function* () {
1080
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).createPaymentMethod(accountName, paymentCreate, options);
1081
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1082
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1083
- return axios.request(axiosRequestArgs);
1084
- };
1085
- });
1086
- },
1087
- /**
1088
- *
1089
- * @summary Create Subscription
1090
- * @param {string} accountName
1091
- * @param {SubscriptionCreate} subscriptionCreate
1092
- * @param {*} [options] Override http request option.
1093
- * @throws {RequiredError}
1094
- */
1095
- createSubscription(accountName, subscriptionCreate, options) {
1096
- return __awaiter(this, void 0, void 0, function* () {
1097
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).createSubscription(accountName, subscriptionCreate, options);
1098
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1099
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1100
- return axios.request(axiosRequestArgs);
1101
- };
1102
- });
1103
- },
1104
- /**
1105
- *
1106
- * @summary Delete Payment Method
1107
- * @param {string} accountName
1108
- * @param {string} id
1109
- * @param {*} [options] Override http request option.
1110
- * @throws {RequiredError}
1111
- */
1112
- deletePaymentMethod(accountName, id, options) {
1113
- return __awaiter(this, void 0, void 0, function* () {
1114
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).deletePaymentMethod(accountName, id, options);
1115
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1116
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1117
- return axios.request(axiosRequestArgs);
1118
- };
1119
- });
1120
- },
1121
- /**
1122
- *
1123
- * @summary Get Default Payment Method
1124
- * @param {string} accountName
1125
- * @param {*} [options] Override http request option.
1126
- * @throws {RequiredError}
1127
- */
1128
- getDefaultPaymentMethod(accountName, options) {
1129
- return __awaiter(this, void 0, void 0, function* () {
1130
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).getDefaultPaymentMethod(accountName, options);
1131
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1132
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1133
- return axios.request(axiosRequestArgs);
1134
- };
1135
- });
1136
- },
1137
- /**
1138
- *
1139
- * @summary Get Failed Payment
1140
- * @param {string} accountName
1141
- * @param {*} [options] Override http request option.
1142
- * @throws {RequiredError}
1143
- */
1144
- getFailedPayment(accountName, options) {
1145
- return __awaiter(this, void 0, void 0, function* () {
1146
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).getFailedPayment(accountName, options);
1147
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1148
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1149
- return axios.request(axiosRequestArgs);
1150
- };
1151
- });
1152
- },
1153
- /**
1154
- *
1155
- * @summary Get Inventory
1156
- * @param {string} accountName
1157
- * @param {*} [options] Override http request option.
1158
- * @throws {RequiredError}
1159
- */
1160
- getInventory(accountName, options) {
1161
- return __awaiter(this, void 0, void 0, function* () {
1162
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).getInventory(accountName, options);
1163
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1164
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1165
- return axios.request(axiosRequestArgs);
1166
- };
1167
- });
1168
- },
1169
- /**
1170
- *
1171
- * @summary Get Invoice List
1172
- * @param {string} accountName
1173
- * @param {string} [startingAfter]
1174
- * @param {string} [endingBefore]
1175
- * @param {number} [limit]
1176
- * @param {number} [perPage] Number of items per page
1177
- * @param {*} [options] Override http request option.
1178
- * @throws {RequiredError}
1179
- */
1180
- getInvoiceList(accountName, startingAfter, endingBefore, limit, perPage, options) {
1181
- return __awaiter(this, void 0, void 0, function* () {
1182
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).getInvoiceList(accountName, startingAfter, endingBefore, limit, perPage, options);
1183
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1184
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1185
- return axios.request(axiosRequestArgs);
1186
- };
1187
- });
1188
- },
1189
- /**
1190
- *
1191
- * @summary Get Next Invoice
1192
- * @param {string} accountName
1193
- * @param {*} [options] Override http request option.
1194
- * @throws {RequiredError}
1195
- */
1196
- getNextInvoice(accountName, options) {
1197
- return __awaiter(this, void 0, void 0, function* () {
1198
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).getNextInvoice(accountName, options);
1199
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1200
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1201
- return axios.request(axiosRequestArgs);
1202
- };
1203
- });
1204
- },
1205
- /**
1206
- *
1207
- * @summary Get Status
1208
- * @param {string} accountName
1209
- * @param {*} [options] Override http request option.
1210
- * @throws {RequiredError}
1211
- */
1212
- getStatus(accountName, options) {
1213
- return __awaiter(this, void 0, void 0, function* () {
1214
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).getStatus(accountName, options);
1215
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1216
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1217
- return axios.request(axiosRequestArgs);
1218
- };
1219
- });
1220
- },
1221
- /**
1222
- *
1223
- * @summary Get Subscription
1224
- * @param {string} accountName
1225
- * @param {*} [options] Override http request option.
1226
- * @throws {RequiredError}
1227
- */
1228
- getSubscription(accountName, options) {
1229
- return __awaiter(this, void 0, void 0, function* () {
1230
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).getSubscription(accountName, options);
1231
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1232
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1233
- return axios.request(axiosRequestArgs);
1234
- };
1235
- });
1236
- },
1237
- /**
1238
- *
1239
- * @summary Get Unfiltered Inventory
1240
- * @param {*} [options] Override http request option.
1241
- * @throws {RequiredError}
1242
- */
1243
- getUnfilteredInventory(options) {
1244
- return __awaiter(this, void 0, void 0, function* () {
1245
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).getUnfilteredInventory(options);
1246
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1247
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1248
- return axios.request(axiosRequestArgs);
1249
- };
1250
- });
1251
- },
1252
- /**
1253
- *
1254
- * @summary Get Upcoming Subscription
1255
- * @param {string} accountName
1256
- * @param {*} [options] Override http request option.
1257
- * @throws {RequiredError}
1258
- */
1259
- getUpcomingSubscription(accountName, options) {
1260
- return __awaiter(this, void 0, void 0, function* () {
1261
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).getUpcomingSubscription(accountName, options);
1262
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1263
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1264
- return axios.request(axiosRequestArgs);
1265
- };
1266
- });
1267
- },
1268
- /**
1269
- *
1270
- * @summary Get Payment Methods
1271
- * @param {string} accountName
1272
- * @param {*} [options] Override http request option.
1273
- * @throws {RequiredError}
1274
- */
1275
- listPaymentMethods(accountName, options) {
1276
- return __awaiter(this, void 0, void 0, function* () {
1277
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).listPaymentMethods(accountName, options);
1278
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1279
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1280
- return axios.request(axiosRequestArgs);
1281
- };
1282
- });
1283
- },
1284
- /**
1285
- *
1286
- * @summary Preview Update Subscription
1287
- * @param {string} accountName
1288
- * @param {SubscriptionUpdate} subscriptionUpdate
1289
- * @param {*} [options] Override http request option.
1290
- * @throws {RequiredError}
1291
- */
1292
- previewUpdateSubscription(accountName, subscriptionUpdate, options) {
1293
- return __awaiter(this, void 0, void 0, function* () {
1294
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).previewUpdateSubscription(accountName, subscriptionUpdate, options);
1295
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1296
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1297
- return axios.request(axiosRequestArgs);
1298
- };
1299
- });
1300
- },
1301
- /**
1302
- *
1303
- * @summary Subscribe
1304
- * @param {string} accountName
1305
- * @param {Subscribe} subscribe
1306
- * @param {*} [options] Override http request option.
1307
- * @throws {RequiredError}
1308
- */
1309
- subscribe(accountName, subscribe, options) {
1310
- return __awaiter(this, void 0, void 0, function* () {
1311
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).subscribe(accountName, subscribe, options);
1312
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1313
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1314
- return axios.request(axiosRequestArgs);
1315
- };
1316
- });
1317
- },
1318
- /**
1319
- *
1320
- * @summary Update Payment Method
1321
- * @param {string} accountName
1322
- * @param {string} id
1323
- * @param {UpdatePaymentMethod} updatePaymentMethod
1324
- * @param {*} [options] Override http request option.
1325
- * @throws {RequiredError}
1326
- */
1327
- updatePaymentMethod(accountName, id, updatePaymentMethod, options) {
1328
- return __awaiter(this, void 0, void 0, function* () {
1329
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).updatePaymentMethod(accountName, id, updatePaymentMethod, options);
1330
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1331
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1332
- return axios.request(axiosRequestArgs);
1333
- };
1334
- });
1335
- },
1336
- /**
1337
- *
1338
- * @summary Update Subscription
1339
- * @param {string} accountName
1340
- * @param {SubscriptionUpdate} subscriptionUpdate
1341
- * @param {*} [options] Override http request option.
1342
- * @throws {RequiredError}
1343
- */
1344
- updateSubscription(accountName, subscriptionUpdate, options) {
1345
- return __awaiter(this, void 0, void 0, function* () {
1346
- const localVarAxiosArgs = yield (0, exports.PaymentsApiAxiosParamCreator)(configuration).updateSubscription(accountName, subscriptionUpdate, options);
1347
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
1348
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
1349
- return axios.request(axiosRequestArgs);
1350
- };
1351
- });
1352
- },
1353
- };
1354
- };
1355
- exports.PaymentsApiFp = PaymentsApiFp;
1356
- /**
1357
- * PaymentsApi - factory interface
1358
- * @export
1359
- */
1360
- const PaymentsApiFactory = function (configuration, basePath, axios) {
1361
- return {
1362
- /**
1363
- *
1364
- * @summary Cancel Subscription
1365
- * @param {string} accountName
1366
- * @param {*} [options] Override http request option.
1367
- * @throws {RequiredError}
1368
- */
1369
- cancelSubscription(accountName, options) {
1370
- return (0, exports.PaymentsApiFp)(configuration).cancelSubscription(accountName, options).then((request) => request(axios, basePath));
1371
- },
1372
- /**
1373
- *
1374
- * @summary Add Payment Method
1375
- * @param {string} accountName
1376
- * @param {PaymentCreate} paymentCreate
1377
- * @param {*} [options] Override http request option.
1378
- * @throws {RequiredError}
1379
- */
1380
- createPaymentMethod(accountName, paymentCreate, options) {
1381
- return (0, exports.PaymentsApiFp)(configuration).createPaymentMethod(accountName, paymentCreate, options).then((request) => request(axios, basePath));
1382
- },
1383
- /**
1384
- *
1385
- * @summary Create Subscription
1386
- * @param {string} accountName
1387
- * @param {SubscriptionCreate} subscriptionCreate
1388
- * @param {*} [options] Override http request option.
1389
- * @throws {RequiredError}
1390
- */
1391
- createSubscription(accountName, subscriptionCreate, options) {
1392
- return (0, exports.PaymentsApiFp)(configuration).createSubscription(accountName, subscriptionCreate, options).then((request) => request(axios, basePath));
1393
- },
1394
- /**
1395
- *
1396
- * @summary Delete Payment Method
1397
- * @param {string} accountName
1398
- * @param {string} id
1399
- * @param {*} [options] Override http request option.
1400
- * @throws {RequiredError}
1401
- */
1402
- deletePaymentMethod(accountName, id, options) {
1403
- return (0, exports.PaymentsApiFp)(configuration).deletePaymentMethod(accountName, id, options).then((request) => request(axios, basePath));
1404
- },
1405
- /**
1406
- *
1407
- * @summary Get Default Payment Method
1408
- * @param {string} accountName
1409
- * @param {*} [options] Override http request option.
1410
- * @throws {RequiredError}
1411
- */
1412
- getDefaultPaymentMethod(accountName, options) {
1413
- return (0, exports.PaymentsApiFp)(configuration).getDefaultPaymentMethod(accountName, options).then((request) => request(axios, basePath));
1414
- },
1415
- /**
1416
- *
1417
- * @summary Get Failed Payment
1418
- * @param {string} accountName
1419
- * @param {*} [options] Override http request option.
1420
- * @throws {RequiredError}
1421
- */
1422
- getFailedPayment(accountName, options) {
1423
- return (0, exports.PaymentsApiFp)(configuration).getFailedPayment(accountName, options).then((request) => request(axios, basePath));
1424
- },
1425
- /**
1426
- *
1427
- * @summary Get Inventory
1428
- * @param {string} accountName
1429
- * @param {*} [options] Override http request option.
1430
- * @throws {RequiredError}
1431
- */
1432
- getInventory(accountName, options) {
1433
- return (0, exports.PaymentsApiFp)(configuration).getInventory(accountName, options).then((request) => request(axios, basePath));
1434
- },
1435
- /**
1436
- *
1437
- * @summary Get Invoice List
1438
- * @param {string} accountName
1439
- * @param {string} [startingAfter]
1440
- * @param {string} [endingBefore]
1441
- * @param {number} [limit]
1442
- * @param {number} [perPage] Number of items per page
1443
- * @param {*} [options] Override http request option.
1444
- * @throws {RequiredError}
1445
- */
1446
- getInvoiceList(accountName, startingAfter, endingBefore, limit, perPage, options) {
1447
- return (0, exports.PaymentsApiFp)(configuration).getInvoiceList(accountName, startingAfter, endingBefore, limit, perPage, options).then((request) => request(axios, basePath));
1448
- },
1449
- /**
1450
- *
1451
- * @summary Get Next Invoice
1452
- * @param {string} accountName
1453
- * @param {*} [options] Override http request option.
1454
- * @throws {RequiredError}
1455
- */
1456
- getNextInvoice(accountName, options) {
1457
- return (0, exports.PaymentsApiFp)(configuration).getNextInvoice(accountName, options).then((request) => request(axios, basePath));
1458
- },
1459
- /**
1460
- *
1461
- * @summary Get Status
1462
- * @param {string} accountName
1463
- * @param {*} [options] Override http request option.
1464
- * @throws {RequiredError}
1465
- */
1466
- getStatus(accountName, options) {
1467
- return (0, exports.PaymentsApiFp)(configuration).getStatus(accountName, options).then((request) => request(axios, basePath));
1468
- },
1469
- /**
1470
- *
1471
- * @summary Get Subscription
1472
- * @param {string} accountName
1473
- * @param {*} [options] Override http request option.
1474
- * @throws {RequiredError}
1475
- */
1476
- getSubscription(accountName, options) {
1477
- return (0, exports.PaymentsApiFp)(configuration).getSubscription(accountName, options).then((request) => request(axios, basePath));
1478
- },
1479
- /**
1480
- *
1481
- * @summary Get Unfiltered Inventory
1482
- * @param {*} [options] Override http request option.
1483
- * @throws {RequiredError}
1484
- */
1485
- getUnfilteredInventory(options) {
1486
- return (0, exports.PaymentsApiFp)(configuration).getUnfilteredInventory(options).then((request) => request(axios, basePath));
1487
- },
1488
- /**
1489
- *
1490
- * @summary Get Upcoming Subscription
1491
- * @param {string} accountName
1492
- * @param {*} [options] Override http request option.
1493
- * @throws {RequiredError}
1494
- */
1495
- getUpcomingSubscription(accountName, options) {
1496
- return (0, exports.PaymentsApiFp)(configuration).getUpcomingSubscription(accountName, options).then((request) => request(axios, basePath));
1497
- },
1498
- /**
1499
- *
1500
- * @summary Get Payment Methods
1501
- * @param {string} accountName
1502
- * @param {*} [options] Override http request option.
1503
- * @throws {RequiredError}
1504
- */
1505
- listPaymentMethods(accountName, options) {
1506
- return (0, exports.PaymentsApiFp)(configuration).listPaymentMethods(accountName, options).then((request) => request(axios, basePath));
1507
- },
1508
- /**
1509
- *
1510
- * @summary Preview Update Subscription
1511
- * @param {string} accountName
1512
- * @param {SubscriptionUpdate} subscriptionUpdate
1513
- * @param {*} [options] Override http request option.
1514
- * @throws {RequiredError}
1515
- */
1516
- previewUpdateSubscription(accountName, subscriptionUpdate, options) {
1517
- return (0, exports.PaymentsApiFp)(configuration).previewUpdateSubscription(accountName, subscriptionUpdate, options).then((request) => request(axios, basePath));
1518
- },
1519
- /**
1520
- *
1521
- * @summary Subscribe
1522
- * @param {string} accountName
1523
- * @param {Subscribe} subscribe
1524
- * @param {*} [options] Override http request option.
1525
- * @throws {RequiredError}
1526
- */
1527
- subscribe(accountName, subscribe, options) {
1528
- return (0, exports.PaymentsApiFp)(configuration).subscribe(accountName, subscribe, options).then((request) => request(axios, basePath));
1529
- },
1530
- /**
1531
- *
1532
- * @summary Update Payment Method
1533
- * @param {string} accountName
1534
- * @param {string} id
1535
- * @param {UpdatePaymentMethod} updatePaymentMethod
1536
- * @param {*} [options] Override http request option.
1537
- * @throws {RequiredError}
1538
- */
1539
- updatePaymentMethod(accountName, id, updatePaymentMethod, options) {
1540
- return (0, exports.PaymentsApiFp)(configuration).updatePaymentMethod(accountName, id, updatePaymentMethod, options).then((request) => request(axios, basePath));
1541
- },
1542
- /**
1543
- *
1544
- * @summary Update Subscription
1545
- * @param {string} accountName
1546
- * @param {SubscriptionUpdate} subscriptionUpdate
1547
- * @param {*} [options] Override http request option.
1548
- * @throws {RequiredError}
1549
- */
1550
- updateSubscription(accountName, subscriptionUpdate, options) {
1551
- return (0, exports.PaymentsApiFp)(configuration).updateSubscription(accountName, subscriptionUpdate, options).then((request) => request(axios, basePath));
1552
- },
1553
- };
1554
- };
1555
- exports.PaymentsApiFactory = PaymentsApiFactory;
1556
- /**
1557
- * PaymentsApi - object-oriented interface
1558
- * @export
1559
- * @class PaymentsApi
1560
- * @extends {BaseAPI}
1561
- */
1562
- class PaymentsApi extends base_1.BaseAPI {
1563
- /**
1564
- *
1565
- * @summary Cancel Subscription
1566
- * @param {PaymentsApiCancelSubscriptionRequest} requestParameters Request parameters.
1567
- * @param {*} [options] Override http request option.
1568
- * @throws {RequiredError}
1569
- * @memberof PaymentsApi
1570
- */
1571
- cancelSubscription(requestParameters, options) {
1572
- return (0, exports.PaymentsApiFp)(this.configuration).cancelSubscription(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
1573
- }
1574
- /**
1575
- *
1576
- * @summary Add Payment Method
1577
- * @param {PaymentsApiCreatePaymentMethodRequest} requestParameters Request parameters.
1578
- * @param {*} [options] Override http request option.
1579
- * @throws {RequiredError}
1580
- * @memberof PaymentsApi
1581
- */
1582
- createPaymentMethod(requestParameters, options) {
1583
- return (0, exports.PaymentsApiFp)(this.configuration).createPaymentMethod(requestParameters.accountName, requestParameters.paymentCreate, options).then((request) => request(this.axios, this.basePath));
1584
- }
1585
- /**
1586
- *
1587
- * @summary Create Subscription
1588
- * @param {PaymentsApiCreateSubscriptionRequest} requestParameters Request parameters.
1589
- * @param {*} [options] Override http request option.
1590
- * @throws {RequiredError}
1591
- * @memberof PaymentsApi
1592
- */
1593
- createSubscription(requestParameters, options) {
1594
- return (0, exports.PaymentsApiFp)(this.configuration).createSubscription(requestParameters.accountName, requestParameters.subscriptionCreate, options).then((request) => request(this.axios, this.basePath));
1595
- }
1596
- /**
1597
- *
1598
- * @summary Delete Payment Method
1599
- * @param {PaymentsApiDeletePaymentMethodRequest} requestParameters Request parameters.
1600
- * @param {*} [options] Override http request option.
1601
- * @throws {RequiredError}
1602
- * @memberof PaymentsApi
1603
- */
1604
- deletePaymentMethod(requestParameters, options) {
1605
- return (0, exports.PaymentsApiFp)(this.configuration).deletePaymentMethod(requestParameters.accountName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1606
- }
1607
- /**
1608
- *
1609
- * @summary Get Default Payment Method
1610
- * @param {PaymentsApiGetDefaultPaymentMethodRequest} requestParameters Request parameters.
1611
- * @param {*} [options] Override http request option.
1612
- * @throws {RequiredError}
1613
- * @memberof PaymentsApi
1614
- */
1615
- getDefaultPaymentMethod(requestParameters, options) {
1616
- return (0, exports.PaymentsApiFp)(this.configuration).getDefaultPaymentMethod(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
1617
- }
1618
- /**
1619
- *
1620
- * @summary Get Failed Payment
1621
- * @param {PaymentsApiGetFailedPaymentRequest} requestParameters Request parameters.
1622
- * @param {*} [options] Override http request option.
1623
- * @throws {RequiredError}
1624
- * @memberof PaymentsApi
1625
- */
1626
- getFailedPayment(requestParameters, options) {
1627
- return (0, exports.PaymentsApiFp)(this.configuration).getFailedPayment(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
1628
- }
1629
- /**
1630
- *
1631
- * @summary Get Inventory
1632
- * @param {PaymentsApiGetInventoryRequest} requestParameters Request parameters.
1633
- * @param {*} [options] Override http request option.
1634
- * @throws {RequiredError}
1635
- * @memberof PaymentsApi
1636
- */
1637
- getInventory(requestParameters, options) {
1638
- return (0, exports.PaymentsApiFp)(this.configuration).getInventory(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
1639
- }
1640
- /**
1641
- *
1642
- * @summary Get Invoice List
1643
- * @param {PaymentsApiGetInvoiceListRequest} requestParameters Request parameters.
1644
- * @param {*} [options] Override http request option.
1645
- * @throws {RequiredError}
1646
- * @memberof PaymentsApi
1647
- */
1648
- getInvoiceList(requestParameters, options) {
1649
- return (0, exports.PaymentsApiFp)(this.configuration).getInvoiceList(requestParameters.accountName, requestParameters.startingAfter, requestParameters.endingBefore, requestParameters.limit, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
1650
- }
1651
- /**
1652
- *
1653
- * @summary Get Next Invoice
1654
- * @param {PaymentsApiGetNextInvoiceRequest} requestParameters Request parameters.
1655
- * @param {*} [options] Override http request option.
1656
- * @throws {RequiredError}
1657
- * @memberof PaymentsApi
1658
- */
1659
- getNextInvoice(requestParameters, options) {
1660
- return (0, exports.PaymentsApiFp)(this.configuration).getNextInvoice(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
1661
- }
1662
- /**
1663
- *
1664
- * @summary Get Status
1665
- * @param {PaymentsApiGetStatusRequest} requestParameters Request parameters.
1666
- * @param {*} [options] Override http request option.
1667
- * @throws {RequiredError}
1668
- * @memberof PaymentsApi
1669
- */
1670
- getStatus(requestParameters, options) {
1671
- return (0, exports.PaymentsApiFp)(this.configuration).getStatus(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
1672
- }
1673
- /**
1674
- *
1675
- * @summary Get Subscription
1676
- * @param {PaymentsApiGetSubscriptionRequest} requestParameters Request parameters.
1677
- * @param {*} [options] Override http request option.
1678
- * @throws {RequiredError}
1679
- * @memberof PaymentsApi
1680
- */
1681
- getSubscription(requestParameters, options) {
1682
- return (0, exports.PaymentsApiFp)(this.configuration).getSubscription(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
1683
- }
1684
- /**
1685
- *
1686
- * @summary Get Unfiltered Inventory
1687
- * @param {*} [options] Override http request option.
1688
- * @throws {RequiredError}
1689
- * @memberof PaymentsApi
1690
- */
1691
- getUnfilteredInventory(options) {
1692
- return (0, exports.PaymentsApiFp)(this.configuration).getUnfilteredInventory(options).then((request) => request(this.axios, this.basePath));
1693
- }
1694
- /**
1695
- *
1696
- * @summary Get Upcoming Subscription
1697
- * @param {PaymentsApiGetUpcomingSubscriptionRequest} requestParameters Request parameters.
1698
- * @param {*} [options] Override http request option.
1699
- * @throws {RequiredError}
1700
- * @memberof PaymentsApi
1701
- */
1702
- getUpcomingSubscription(requestParameters, options) {
1703
- return (0, exports.PaymentsApiFp)(this.configuration).getUpcomingSubscription(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
1704
- }
1705
- /**
1706
- *
1707
- * @summary Get Payment Methods
1708
- * @param {PaymentsApiListPaymentMethodsRequest} requestParameters Request parameters.
1709
- * @param {*} [options] Override http request option.
1710
- * @throws {RequiredError}
1711
- * @memberof PaymentsApi
1712
- */
1713
- listPaymentMethods(requestParameters, options) {
1714
- return (0, exports.PaymentsApiFp)(this.configuration).listPaymentMethods(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
1715
- }
1716
- /**
1717
- *
1718
- * @summary Preview Update Subscription
1719
- * @param {PaymentsApiPreviewUpdateSubscriptionRequest} requestParameters Request parameters.
1720
- * @param {*} [options] Override http request option.
1721
- * @throws {RequiredError}
1722
- * @memberof PaymentsApi
1723
- */
1724
- previewUpdateSubscription(requestParameters, options) {
1725
- return (0, exports.PaymentsApiFp)(this.configuration).previewUpdateSubscription(requestParameters.accountName, requestParameters.subscriptionUpdate, options).then((request) => request(this.axios, this.basePath));
1726
- }
1727
- /**
1728
- *
1729
- * @summary Subscribe
1730
- * @param {PaymentsApiSubscribeRequest} requestParameters Request parameters.
1731
- * @param {*} [options] Override http request option.
1732
- * @throws {RequiredError}
1733
- * @memberof PaymentsApi
1734
- */
1735
- subscribe(requestParameters, options) {
1736
- return (0, exports.PaymentsApiFp)(this.configuration).subscribe(requestParameters.accountName, requestParameters.subscribe, options).then((request) => request(this.axios, this.basePath));
1737
- }
1738
- /**
1739
- *
1740
- * @summary Update Payment Method
1741
- * @param {PaymentsApiUpdatePaymentMethodRequest} requestParameters Request parameters.
1742
- * @param {*} [options] Override http request option.
1743
- * @throws {RequiredError}
1744
- * @memberof PaymentsApi
1745
- */
1746
- updatePaymentMethod(requestParameters, options) {
1747
- return (0, exports.PaymentsApiFp)(this.configuration).updatePaymentMethod(requestParameters.accountName, requestParameters.id, requestParameters.updatePaymentMethod, options).then((request) => request(this.axios, this.basePath));
1748
- }
1749
- /**
1750
- *
1751
- * @summary Update Subscription
1752
- * @param {PaymentsApiUpdateSubscriptionRequest} requestParameters Request parameters.
1753
- * @param {*} [options] Override http request option.
1754
- * @throws {RequiredError}
1755
- * @memberof PaymentsApi
1756
- */
1757
- updateSubscription(requestParameters, options) {
1758
- return (0, exports.PaymentsApiFp)(this.configuration).updateSubscription(requestParameters.accountName, requestParameters.subscriptionUpdate, options).then((request) => request(this.axios, this.basePath));
1759
- }
1760
- }
1761
- exports.PaymentsApi = PaymentsApi;