Skip to content

Commit

Permalink
chore: rename app payment to account payment
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna committed Mar 27, 2024
1 parent cc95d2b commit 772a1ff
Show file tree
Hide file tree
Showing 18 changed files with 15 additions and 13 deletions.
3 changes: 2 additions & 1 deletion bd_api/apps/account/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@


class AccountConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "bd_api.apps.account"
verbose_name = "Contas"
default_auto_field = "django.db.models.BigAutoField"

def ready(self):
import bd_api.apps.account.signals # noqa
3 changes: 2 additions & 1 deletion bd_api/apps/account_auth/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@


class AuthConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "bd_api.apps.account_auth"
verbose_name = "Autenticação e Autorização Interna"
default_auto_field = "django.db.models.BigAutoField"
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@


class PaymentConfig(DjstripeAppConfig):
verbose_name = "Stripe"
verbose_name = "Pagamentos"

def ready(self):
super().ready()
import bd_api.apps.payment.signals # noqa
import bd_api.apps.payment.webhooks # noqa
import bd_api.apps.account_payment.signals # noqa
import bd_api.apps.account_payment.webhooks # noqa
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from stripe import Customer as StripeCustomer

from bd_api.apps.account.models import Account, Subscription
from bd_api.apps.payment.webhooks import add_user, remove_user
from bd_api.apps.account_payment.webhooks import add_user, remove_user
from bd_api.custom.graphql_base import CountableConnection, PlainTextNode

if settings.STRIPE_LIVE_MODE:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions bd_api/apps/api/v1/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@


class ApiConfig(AppConfig):
app_label = "v1"
verbose_name = " V1"
name = "bd_api.apps.api.v1"
verbose_name = " API"
default_auto_field = "django.db.models.BigAutoField"
4 changes: 2 additions & 2 deletions bd_api/apps/schema.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
from bd_api.apps.account.graphql import AccountMutation
from bd_api.apps.api.v1.graphql import APIQuery
from bd_api.apps.payment.graphql import (
from bd_api.apps.account_payment.graphql import (
StripeCustomerMutation,
StripePriceQuery,
StripeSubscriptionCustomerMutation,
StripeSubscriptionMutation,
)
from bd_api.apps.api.v1.graphql import APIQuery
from bd_api.custom.graphql_auto import build_schema

schema = build_schema(
Expand Down
5 changes: 3 additions & 2 deletions bd_api/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
#
"health_check",
"health_check.db",
#
Expand All @@ -56,10 +57,10 @@
"huey.contrib.djhuey",
#
"bd_api.apps.account",
"bd_api.apps.api.v1",
"bd_api.apps.account_auth",
"bd_api.apps.account_payment.apps.PaymentConfig",
"bd_api.apps.api.v1",
"bd_api.apps.core",
"bd_api.apps.payment.apps.PaymentConfig",
]

MIDDLEWARE = [
Expand Down
2 changes: 1 addition & 1 deletion bd_api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ def graphql_view():
path("search/debug/", include("haystack.urls")),
path("dataset/", DatasetRedirectView.as_view()),
path("dataset_redirect/", DatasetRedirectView.as_view()),
path("payment/", include("bd_api.apps.payment.urls")),
path("payment/", include("bd_api.apps.account_payment.urls")),
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

0 comments on commit 772a1ff

Please sign in to comment.