Marketplace Product Request Handler
- class q2_marketplace.http_handlers.product_handler.ProductRequestHandler(application, request, **kwargs)[source]
RequestHandler meant to be used in conjunction with the Q2Marketplace
- async subscribe(subscription_event)[source]
Invoked with a POST to /marketplace/{{Name}}/subscribe for a SUBSCRIPTION_ORDER event
- Parameters:
subscription_event (
SubscriptionEvent
) – Subscription Event
- async cancel(subscription_event)[source]
Invoked with a POST to /marketplace/{{Name}}/cancel for SUBSCRIPTION_CANCEL event
Note: The users subscription will always successfully cancel regardless of what value or status_code returned, except for error code ErrorCode.DO_NOT_CANCEL.
- Parameters:
subscription_event (
SubscriptionEvent
) – Subscription Event
- async update(subscription_event)[source]
Invoked with a POST to /marketplace/{{Name}}/update for a SUBSCRIPTION_CHANGE event
- Parameters:
subscription_event (
SubscriptionEvent
) – Subscription Event