Partner
Helper methods for Partners that make database interactions easier.
get_active_commercial_peer_by_partner_id(partner_id)
Get a commercial peer subscription by partner ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
partner_id
|
UUIDstr
|
The ID of the partner. |
required |
Returns:
| Type | Description |
|---|---|
SubscriptionModel | None
|
A SubscriptionModel object representing the commercial peer subscription, or None if not found. |
Source code in gso/services/subscriptions/partner.py
get_partners_that_should_have_prefix_list()
Get a list of all partners that should have a Prefix List subscription.