Browse Source

Wave 2: profile received-likes + remove donation remnants + cash terminology

- Member profile: drop TotalDonatedAmount/IsDonationPublic + stale MemberApprove donation join (Donation removed in Phase B)

- Cash terms: PaymentOrder.OrderName cash charge, store insufficient-balance msg, stale Danal comments -> PG/Toss

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
KIM-JINO5 3 weeks ago
parent
commit
0e5feacb2f

+ 0 - 5
Application/Features/Api/Member/Profile/Handler.cs

@@ -29,7 +29,6 @@ public sealed class Handler(IAppDbContext db) : IQueryHandler<Query, Result<Resp
                 m.LastLoginAt,
                 ChannelSID = m.Channel != null ? m.Channel.SID : null,
                 ChannelHandle = m.Channel != null ? m.Channel.Handle : null,
-                IsDonationPublic = m.MemberApprove != null && m.MemberApprove.IsDonationPublic,
                 Stats = m.MemberStats == null ? null : new
                 {
                     m.MemberStats.FollowerCount,
@@ -69,8 +68,6 @@ public sealed class Handler(IAppDbContext db) : IQueryHandler<Query, Result<Resp
             isFollowing = await db.MemberFollow.AsNoTracking().AnyAsync(f => f.FollowerMemberID == viewerID && f.FolloweeMemberID == member.ID, ct);
         }
 
-        long? totalDonated = null;
-
         return new Response
         {
             MemberID = member.ID,
@@ -96,8 +93,6 @@ public sealed class Handler(IAppDbContext db) : IQueryHandler<Query, Result<Resp
             ConsecutiveDays = consecutiveDays,
             Exp = member.Stats?.Exp ?? 0,
             LikeReceivedCount = member.Stats?.LikeReceivedCount ?? 0,
-            TotalDonatedAmount = totalDonated,
-            IsDonationPublic = member.IsDonationPublic,
             IsFollowing = isFollowing,
             IsSelf = isSelf
         };

+ 0 - 3
Application/Features/Api/Member/Profile/Response.cs

@@ -28,9 +28,6 @@ public sealed class Response
     public long Exp { get; init; }
     public long LikeReceivedCount { get; init; }
 
-    public long? TotalDonatedAmount { get; init; }
-    public bool IsDonationPublic { get; init; }
-
     public bool IsFollowing { get; init; }
     public bool IsSelf { get; init; }
 }

+ 1 - 1
Application/Features/Api/Store/Orders/Place/Handler.cs

@@ -209,7 +209,7 @@ internal sealed class Handler(IAppDbContext db) : ICommandHandler<Command, Resul
         if (storeAvailable.Value < totalAmount)
         {
             return Result.Failure<Response>(Error.Problem("Wallet.InsufficientBalance",
-                $"포인트가 부족합니다. 필요: {totalAmount:N0}원 / 사용 가능: {(int)storeAvailable.Value:N0}원."));
+                $"잔액이 부족합니다. 필요: {totalAmount:N0}원 / 사용 가능: {(int)storeAvailable.Value:N0}원."));
         }
 
         // 5. 재고 차감 (RowVersion 동시성 보호 — SaveChanges 가 자동 처리)

+ 4 - 4
Domain/Entities/Payments/PaymentOrder.cs

@@ -18,13 +18,13 @@ public class PaymentOrder
     /// <summary>가맹점 주문번호 (unique, 중복 불가)</summary>
     public string OrderID { get; private set; } = default!;
 
-    /// <summary>다날 CPID (계약 완료 후 발급)</summary>
+    /// <summary>PG 가맹점 식별자</summary>
     public string MerchantID { get; private set; } = default!;
 
     /// <summary>상품명</summary>
-    public string OrderName { get; private set; } = "포인트 충전";
+    public string OrderName { get; private set; } = "캐시 충전";
 
-    /// <summary>다날 거래번호 (승인 후 저장)</summary>
+    /// <summary>PG 거래 키 (승인 후 저장 — Toss paymentKey)</summary>
     public string? TransactionID { get; private set; }
 
     /// <summary>PG 결제 총액 (= PointAmount + VatAmount, 부가세 별도 가산)</summary>
@@ -72,7 +72,7 @@ public class PaymentOrder
         string merchantID,
         int pointAmount,
         PaymentMethod method,
-        string orderName = "포인트 충전"
+        string orderName = "캐시 충전"
     ) {
         ArgumentOutOfRangeException.ThrowIfNegativeOrZero(memberID);
         ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pointAmount);