feat: Payment repo를 backend repo에 병합#43
Open
MU-Software wants to merge 10 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 배경
이에 payment repo를 backend repo에 병합합니다.
주요 변경 사항
1.
purchase_shared→app/core흡수core/external_apis/portone/)core/util/)core/authn/api_key.py) + 권한 (core/authz/api_key.py)2.
python-korea-payment의 결제 도메인 →app/shop/*sub-appshop/order— Order, OrderProductRelation, OrderProductOptionRelation, SingleProductCart, CustomerInfoshop/product— Product, OptionGroup, Option, Tag, Category, CategoryGroupshop/payment_history— PortOne v1 webhook + 상태 전이 검증3. UserExt / 인증 통합
UserExt.unique_id추가 (QR scancode 식별자)google_oauth2와 병행)4. ScanCode (QR 코드) 도메인
core/scancode_mixin.ScanCodeMixin—UserExt/Order/OrderProductRelation공통shop/order/views/scancode.py단일 viewset, prefix dispatch (user:/order:/opr:)5. 어드민 (
admin_api/views/shop/)transaction.on_commitenqueue)6. 사용자 / 외부 API
internal_api/— desk_support (등록 데스크 환불 등)shop/patron.py— 후원자 목록 공개 API7. 보안 / 정합성
select_for_update)Orderaggregate root row lock)후속 작업 (별도 PR)
shop 도메인 + simple-history 복사. cutover 시
LEGACY_DATABASE_*env var 설정 후 실행.