from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns

from apps.sender import views

urlpatterns = [

    url(r'^mobile/push', views.PushNotificationView.as_view(), name='mobile-send-push'),
    url(r'^mobile/sms', views.SmsNotificationView.as_view(), name='mobile-send-sms'),
    # url(r'^products$', views.ProductList.as_view(), name='product.py-list'),
    url(r'^vouchers/new_fund', views.NewFund.as_view(), name='new-fund-email'),
    url(r'^vouchers/fund_started', views.FundStarted.as_view(), name='fund-started'),
    url(r'^vouchers/fund_expires', views.FundExpires.as_view(), name='fund-expires'),
    url(r'^vouchers/fund_balance_warning', views.FundBalanceWarning.as_view(), name='fund-balance-warning'),
    url(r'^vouchers/forus_new_fund_created', views.ForusNewFundCreated.as_view(), name='forus-new-fund-created-email'),
    url(r'^vouchers/forus_users_calc', views.ForusUsersCalc.as_view(), name='forus-users-calc-email'),
    url(r'^vouchers/product_bought', views.ProductBought.as_view(), name='product-bought'),
    url(r'^vouchers/product_soldout', views.ProductSoldout.as_view(), name='product-soldout'),
    url(r'^vouchers/new_fund_created', views.NewFundCreated.as_view(), name='new-fund-created-email'),
    url(r'^vouchers/provider_approved', views.ProviderApprovedView.as_view(), name='provider-approved-email'),
    url(r'^vouchers/provider_applied', views.ProviderAppliedView.as_view(), name='provider-applied-email'),
    url(r'^vouchers/new_product_added', views.NewProductAddedView.as_view(), name='new-product-added-email'),
    url(r'^vouchers/provider_rejected', views.ProviderRejectedView.as_view(), name='provider-rejected-email'),
    url(r'^vouchers/share_product', views.ShareProductView.as_view(), name='share-product-email'),
    url(r'^vouchers/sended_via_email', views.SendVoucherViaEmailView.as_view(), name='sended-via-email'),
    url(r'^vouchers/payment_success', views.PaymentSuccessView.as_view(), name='payment-success'),

    url(r'^login/login_via_email', views.LoginViaEmail.as_view(), name='login-via-email'),

    url(r'^user/email_activation', views.EmailActivation.as_view(), name='email-activation'),

    url(r'^sponsors/you_added_as_validator', views.SponsorAddYouAsValidatorApi.as_view(), name='you-added-as-validator'),
    url(r'^validations/new_validation_request', views.NewValidationRequestApi.as_view(),
        name='new-validation-request'),

 ]

urlpatterns = format_suffix_patterns(urlpatterns)
