Skip to content

Commit

Permalink
Fix invalid class name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebwon committed Dec 5, 2023
1 parent 1cdd504 commit a0ea45c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import org.springframework.stereotype.Service;

@Service
public final class PaymentFacade {
public final class PaymentCommandExecutor {

private final TossPaymentsPaymentProcessor paymentProcessor;

public PaymentFacade(TossPaymentsPaymentProcessor paymentProcessor) {
public PaymentCommandExecutor(TossPaymentsPaymentProcessor paymentProcessor) {
this.paymentProcessor = paymentProcessor;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
package kr.flab.movieon.payment.presentation;

import kr.flab.movieon.payment.application.PaymentFacade;
import kr.flab.movieon.payment.application.PaymentCommandExecutor;
import kr.flab.movieon.payment.presentation.request.TossPaymentsPaymentApprovalRequest;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PaymentApi implements TossPaymentSpecification {

private final PaymentFacade paymentFacade;
private final PaymentCommandExecutor paymentCommandExecutor;

public PaymentApi(PaymentFacade paymentFacade) {
this.paymentFacade = paymentFacade;
public PaymentApi(PaymentCommandExecutor paymentCommandExecutor) {
this.paymentCommandExecutor = paymentCommandExecutor;
}

@Override
public void pay(TossPaymentsPaymentApprovalRequest request) {
paymentFacade.pay(request.toCommand());
paymentCommandExecutor.pay(request.toCommand());
}
}

0 comments on commit a0ea45c

Please sign in to comment.