Example #1
0
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
URLs related to provider bank account information.
"""

from django.conf.urls import patterns, url

from saas.settings import ACCT_REGEX
from saas.views import ProviderRedirectView
from saas.views.billing import (BankUpdateView, TransferListView, WithdrawView,
                                CouponListView)

urlpatterns = patterns(
    '',
    url(r'^billing/bank/',
        ProviderRedirectView.as_view(pattern_name='saas_update_bank'),
        name='saas_provider_update_bank'),
    url(r'^billing/coupons/',
        ProviderRedirectView.as_view(pattern_name='saas_coupon_list'),
        name='saas_provider_coupon_list'),
    url(r'^billing/transfers/',
        ProviderRedirectView.as_view(pattern_name='saas_transfer_info'),
        name='saas_provider_transfer_info'),
    url(r'^billing/withdraw/',
        ProviderRedirectView.as_view(pattern_name='saas_withdraw_funds'),
        name='saas_provider_withdraw_funds'),
    url(r'^billing/(?P<organization>%s)/bank/' % ACCT_REGEX,
        BankUpdateView.as_view(),
        name='saas_update_bank'),
    url(r'^billing/(?P<organization>%s)/coupons/' % ACCT_REGEX,
        CouponListView.as_view(),
Example #2
0
from saas.settings import ACCT_REGEX
from saas.views import ProviderRedirectView
from saas.views.metrics import (
    BalancesDownloadView,
    CouponMetricsDownloadView,
    ActiveSubscriptionDownloadView,
    ChurnedSubscriptionDownloadView,
)
from saas.views.billing import TransferDownloadView


urlpatterns = patterns(
    "saas.views.downloads",
    url(
        r"^download/subscribers/active/?",
        ProviderRedirectView.as_view(pattern_name="saas_subscriber_pipeline_download_subscribed"),
        name="saas_provider_subscriber_pipeline_download_subscribed",
    ),
    url(
        r"^download/subscribers/churned/?",
        ProviderRedirectView.as_view(pattern_name="saas_subscriber_pipeline_download_churned"),
        name="saas_provider_subscriber_pipeline_download_churned",
    ),
    url(
        r"^download/coupons/",
        ProviderRedirectView.as_view(pattern_name="saas_metrics_coupons_download"),
        name="saas_provider_metrics_coupons_download",
    ),
    url(
        r"^download/balances/?",
        ProviderRedirectView.as_view(pattern_name="saas_balances_download"),
Example #3
0
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

'''Urls to metrics'''

from django.conf.urls import patterns, url

from saas.settings import ACCT_REGEX
from saas.views import ProviderRedirectView
from saas.views.profile import DashboardView
from saas.views.metrics import (CouponMetricsView, PlansMetricsView,
    RevenueMetricsView)

urlpatterns = patterns(
    'saas.views.metrics',
    url(r'^metrics/dashboard/',
        ProviderRedirectView.as_view(pattern_name='saas_dashboard'),
        name='saas_provider_dashboard'),
    url(r'^metrics/revenue/',
        ProviderRedirectView.as_view(pattern_name='saas_metrics_summary'),
        name='saas_provider_metrics_revenue'),
    url(r'^metrics/plans/',
        ProviderRedirectView.as_view(pattern_name='saas_metrics_plans'),
        name='saas_provider_metrics_plans'),
    url(r'^metrics/coupons/((?P<coupon>%s)/)?' % ACCT_REGEX,
        ProviderRedirectView.as_view(pattern_name='saas_metrics_coupons'),
        name='saas_provider_metrics_coupons'),

    url(r'^metrics/(?P<organization>%s)/coupons/((?P<coupon>%s)/)?'
        % (ACCT_REGEX, ACCT_REGEX),
        CouponMetricsView.as_view(), name='saas_metrics_coupons'),
    url(r'^metrics/(?P<organization>%s)/dashboard/' % ACCT_REGEX,
Example #4
0
"""

from django.conf.urls import patterns, url

from saas.settings import ACCT_REGEX
from saas.views import ProviderRedirectView
from saas.views.metrics import (BalancesDownloadView,
                                CouponMetricsDownloadView,
                                ActiveSubscriptionDownloadView,
                                ChurnedSubscriptionDownloadView)
from saas.views.billing import TransferDownloadView

urlpatterns = patterns(
    'saas.views.downloads',
    url(r'^download/subscribers/active/?',
        ProviderRedirectView.as_view(
            pattern_name='saas_subscriber_pipeline_download_subscribed'),
        name='saas_provider_subscriber_pipeline_download_subscribed'),
    url(r'^download/subscribers/churned/?',
        ProviderRedirectView.as_view(
            pattern_name='saas_subscriber_pipeline_download_churned'),
        name='saas_provider_subscriber_pipeline_download_churned'),
    url(r'^download/coupons/',
        ProviderRedirectView.as_view(
            pattern_name='saas_metrics_coupons_download'),
        name='saas_provider_metrics_coupons_download'),
    url(r'^download/balances/?',
        ProviderRedirectView.as_view(pattern_name='saas_balances_download'),
        name='saas_provider_balances_download'),
    url(r'^download/transfers/?',
        ProviderRedirectView.as_view(pattern_name='saas_transfers_download'),
        name='saas_provider_transfers_download'),
Example #5
0
"""
URLs related to provider bank account information.
"""

from django.conf.urls import url
from django.views.generic import TemplateView

from saas.settings import ACCT_REGEX
from saas.views import ProviderRedirectView
from saas.views.profile import SubscriberListView
from saas.views.plans import PlanCreateView, PlanUpdateView


urlpatterns = [
    url(r'^profile/roles/(?P<role>%s)/' % ACCT_REGEX,
        ProviderRedirectView.as_view(pattern_name='saas_role_list'),
        name='saas_provider_role_list'),
    url(r'^profile/plans/new/',
        ProviderRedirectView.as_view(pattern_name='saas_plan_new'),
        name='saas_provider_plan_new'),
    url(r'^profile/plans/(?P<plan>%s)/$' % ACCT_REGEX,
        ProviderRedirectView.as_view(pattern_name='saas_plan_edit'),
        name='saas_provider_plan_edit'),
    url(r'^profile/plans/',
        ProviderRedirectView.as_view(pattern_name='saas_plan_base'),
        name='saas_provider_plan_base'),
    url(r'^profile/subscribers/',
        ProviderRedirectView.as_view(pattern_name='saas_subscriber_list'),
        name='saas_provider_subscriber_list'),
    url(r'^provider/$',
        ProviderRedirectView.as_view(pattern_name='saas_organization_profile'),
Example #6
0
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

"""
URLs related to provider bank account information.
"""

from django.conf.urls import url

from saas.settings import ACCT_REGEX
from saas.views import ProviderRedirectView
from saas.views.billing import (BankUpdateView,
    CouponListView, TransferListView, WithdrawView)

urlpatterns = [
    url(r'^billing/bank/', ProviderRedirectView.as_view(
        pattern_name='saas_update_bank'), name='saas_provider_update_bank'),
    url(r'^billing/coupons/', ProviderRedirectView.as_view(
        pattern_name='saas_coupon_list'), name='saas_provider_coupon_list'),
    url(r'^billing/transfers/', ProviderRedirectView.as_view(
        pattern_name='saas_transfer_info'), name='saas_provider_transfer_info'),
    url(r'^billing/withdraw/', ProviderRedirectView.as_view(
        pattern_name='saas_withdraw_funds'),
        name='saas_provider_withdraw_funds'),
    url(r'^billing/(?P<organization>%s)/bank/' % ACCT_REGEX,
        BankUpdateView.as_view(), name='saas_update_bank'),
    url(r'^billing/(?P<organization>%s)/coupons/' % ACCT_REGEX,
        CouponListView.as_view(), name='saas_coupon_list'),
    url(r'^billing/(?P<organization>%s)/transfers/' % ACCT_REGEX,
        TransferListView.as_view(), name='saas_transfer_info'),
    url(r'^billing/(?P<organization>%s)/withdraw/' % ACCT_REGEX,
        WithdrawView.as_view(), name='saas_withdraw_funds'),
Example #7
0
"""
URLs related to provider bank account information.
"""

from django.conf.urls import patterns, url

from saas.settings import ACCT_REGEX
from saas.views import ProviderRedirectView
from saas.views.billing import BankUpdateView, TransferListView, WithdrawView, CouponListView

urlpatterns = patterns(
    "",
    url(
        r"^billing/bank/",
        ProviderRedirectView.as_view(pattern_name="saas_update_bank"),
        name="saas_provider_update_bank",
    ),
    url(
        r"^billing/coupons/",
        ProviderRedirectView.as_view(pattern_name="saas_coupon_list"),
        name="saas_provider_coupon_list",
    ),
    url(
        r"^billing/transfers/",
        ProviderRedirectView.as_view(pattern_name="saas_transfer_info"),
        name="saas_provider_transfer_info",
    ),
    url(
        r"^billing/withdraw/",
        ProviderRedirectView.as_view(pattern_name="saas_withdraw_funds"),
Example #8
0
"""
URLs related to provider bank account information.
"""

from django.conf.urls import patterns, url
from django.views.generic import RedirectView

from saas.settings import ACCT_REGEX
from saas.views import ProviderRedirectView
from saas.views.profile import SubscriberListView
from saas.views.plans import PlanCreateView, PlanUpdateView

urlpatterns = patterns(
    '',
    url(r'^profile/roles/(?P<role>%s)/' % ACCT_REGEX,
        ProviderRedirectView.as_view(pattern_name='saas_role_list'),
        name='saas_provider_role_list'),
    url(r'^profile/plans/new/',
        ProviderRedirectView.as_view(pattern_name='saas_plan_new'),
        name='saas_provider_plan_new'),
    url(r'^profile/plans/(?P<plan>%s)/$' % ACCT_REGEX,
        ProviderRedirectView.as_view(pattern_name='saas_plan_edit'),
        name='saas_provider_plan_edit'),
    url(r'^profile/plans/',
        ProviderRedirectView.as_view(pattern_name='saas_plan_base'),
        name='saas_provider_plan_base'),
    url(r'^profile/subscribers/',
        ProviderRedirectView.as_view(pattern_name='saas_subscriber_list'),
        name='saas_provider_subscriber_list'),
    url(r'^provider/$',
        ProviderRedirectView.as_view(pattern_name='saas_organization_profile'),