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