Subscription Module
- class q2_marketplace.subscription.EntitlementType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
- user = 'user'
- customer = 'customer'
- async q2_marketplace.subscription.is_valid(logger, extension_name, user_id, hq_credentials=None)[source]
- Return type:
bool
- async q2_marketplace.subscription.cancel(logger, extension_name, customer_key, customer_or_user_id, hq_credentials=None)[source]
This method will cancel a q2 marketplace subscription by canceling it with app direct.
- Parameters:
extension_name (
str) – The name of an extensioncustomer_key (
str) – the q2 marketplace customer key from which to remove the extensioncustomer_or_user_id (
int) – the id (integer) corresponding to the q2 customer or user that owns the subscription, depending on the extension product entitlement belonging to customer or users at the FI
- Return type:
None