mentortools/libs/: marketplace-server-connector-v2-1.0.0+69626 metadata and description

Simple index

Mentortools Marketplace Server

author OpenAPI Generator community
author_email OpenAPI Generator Community <team@openapitools.org>
description_content_type text/markdown
keywords OpenAPI, OpenAPI-Generator, Mentortools Marketplace Server
project_urls
  • Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
requires_dist
  • python-dateutil>=2.8.2
  • aiohttp>=3.14.1
  • aiohttp-retry>=2.8.3
  • pydantic>=2.11
  • typing-extensions>=4.7.1
requires_python >=3.10
File Tox results History
marketplace_server_connector_v2-1.0.0+69626-py3-none-any.whl
Size
114 KB
Type
Python Wheel
Python
3
marketplace_server_connector_v2-1.0.0+69626.tar.gz
Size
59 KB
Type
Source

marketplace-server-connector-v2

Mentortools service for ingesting payment-provider webhooks into normalized order events

This Python package is automatically generated by the OpenAPI Generator project:

Requirements.

Python 3.10+

Packaging uses standard [project] metadata and [dependency-groups] (PEP 621/735). Install the package with python -m pip install .; install development dependencies with Poetry 2.2 or newer using poetry install, or pip 25.1 or newer using python -m pip install --group dev. The latter installs the group, not the package.

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import marketplace_server_connector_v2

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import marketplace_server_connector_v2

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import marketplace_server_connector_v2
from marketplace_server_connector_v2.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = marketplace_server_connector_v2.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
async with marketplace_server_connector_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = marketplace_server_connector_v2.HealthApi(api_client)

    try:
        # Health check
        api_response = await api_instance.health_health_get()
        print("The response of HealthApi->health_health_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling HealthApi->health_health_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
HealthApi health_health_get GET /health Health check
ImportApi import_orders_v1_import_orders_post POST /v1/import/orders Import historical purchases as proper orders (batch)
IntegrationsApi check_identity_v1_integrations_integration_id_identity_check_post POST /v1/integrations/{integration_id}/identity/check Re-validate the stored credentials and refresh the provider account id
IntegrationsApi create_v1_integrations_post POST /v1/integrations Connect a provider integration
IntegrationsApi delete_integration_v1_integrations_integration_id_delete DELETE /v1/integrations/{integration_id} Disconnect (delete) an integration
IntegrationsApi get_integration_v1_integrations_integration_id_get GET /v1/integrations/{integration_id} Get one integration
IntegrationsApi list_integrations_v1_integrations_get GET /v1/integrations List the portal's provider integrations
IntegrationsApi list_providers_v1_integrations_providers_get GET /v1/integrations/providers List the providers that can be connected, with their capabilities
IntegrationsApi rotate_webhook_key_v1_integrations_integration_id_webhook_key_rotate_post POST /v1/integrations/{integration_id}/webhook_key/rotate Rotate the integration's webhook key (its inbound /v2/ipn address)
IntegrationsApi setup_webhooks_v1_integrations_integration_id_webhooks_setup_post POST /v1/integrations/{integration_id}/webhooks/setup (Re-)register the provider-side webhook
IntegrationsApi sync_products_v1_integrations_integration_id_products_sync_post POST /v1/integrations/{integration_id}/products/sync Sync products from one integration's provider
IntegrationsApi test_credentials_v1_integrations_test_post POST /v1/integrations/test Test provider credentials (before saving)
IntegrationsApi test_integration_v1_integrations_integration_id_test_post POST /v1/integrations/{integration_id}/test Test an integration's saved connection
IntegrationsApi update_integration_v1_integrations_integration_id_patch PATCH /v1/integrations/{integration_id} Update an integration (rotate credentials / enable-disable)
ProductsApi count_products_v1_products_count_get GET /v1/products/count Count the portal's products
ProductsApi create_product_v1_products_post POST /v1/products Register a product
ProductsApi delete_product_v1_products_product_id_delete DELETE /v1/products/{product_id} Delete a product
ProductsApi get_product_v1_products_product_id_get GET /v1/products/{product_id} Get one product
ProductsApi import_products_v1_products_import_post POST /v1/products/import Bulk-add products by hand (upsert a list)
ProductsApi list_products_v1_products_get GET /v1/products List the portal's products (paginated)
ProductsApi sync_all_v1_products_sync_post POST /v1/products/sync Sync products from ALL of the portal's integrations
ProductsApi update_product_v1_products_product_id_patch PATCH /v1/products/{product_id} Edit a product (title / external id / archive-restore)
ServerApi check_identities_v1_admin_integrations_identity_check_post POST /v1/admin/integrations/identity/check Re-validate stored credentials and fill provider account ids, across portals
ServerApi drain_v1_admin_drain_post POST /v1/admin/drain Process queued IPNs then relay pending outbox rows
ServerApi list_migrated_portals_v1_admin_migrated_portals_get GET /v1/admin/migrated_portals Portals served by marketplace_server on the legacy webhook URLs
ServerApi requeue_ipn_v1_admin_ipn_ipn_call_id_requeue_post POST /v1/admin/ipn/{ipn_call_id}/requeue Replay a parked / dead-lettered / forwarded webhook
ServerApi set_migrated_portal_v1_admin_migrated_portals_target_portal_id_put PUT /v1/admin/migrated_portals/{target_portal_id} Switch a portal's legacy-URL webhooks to marketplace_server
ServerApi unset_migrated_portal_v1_admin_migrated_portals_target_portal_id_delete DELETE /v1/admin/migrated_portals/{target_portal_id} Roll a portal's legacy-URL webhooks back to the legacy entity server
WebhooksApi ingest_access_v1_ipn_provider_post POST /v1/ipn/{provider} Creator -> student webhooks (access flow)
WebhooksApi ingest_keyed_v2_ipn_webhook_key_post POST /v2/ipn/{webhook_key} Integration webhooks: the key names the integration (portal, provider, flow)
WebhooksApi ingest_legacy_segment_v1_ipn_legacy_provider_segment_post POST /v1/ipn/legacy/{provider}/{segment} Legacy per-portal / per-merchant webhook URL ({segment} = portal id or FAPI slug)
WebhooksApi ingest_legacy_v1_ipn_legacy_provider_post POST /v1/ipn/legacy/{provider} Legacy shared webhook URL (account resolved from the payload)
WebhooksApi ingest_portal_v1_ipn_portal_provider_post POST /v1/ipn/portal/{provider} Portal-plan webhooks (mentortools' own merchant account)

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ServerName Authorization

Bearer Authorization

Author