Command.cs 556 B

1234567891011121314
  1. using Application.Abstractions.Messaging;
  2. using SharedKernel.Results;
  3. namespace Application.Features.Api.Payment.Toss.CreateOrder;
  4. /// <summary>
  5. /// 토스 캐시 충전 주문 생성. <see cref="Amount"/>는 사용자가 충전할 캐시(VAT 제외).
  6. /// PG 결제 총액은 Handler 에서 Amount + VAT(10%)로 계산됨.
  7. /// 서버가 orderID·금액·orderName 을 확정 저장하고, 회원 customerKey(UUID)를 없으면 발급한다.
  8. /// </summary>
  9. public sealed record Command(
  10. int Amount,
  11. int MemberID = 0
  12. ) : ICommand<Result<Response>>;