@pollination-solutions/pollination-sdk 0.24.0 → 0.26.2

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