Documentation ¶
Index ¶
- type OrderUseCase
- type PaymentUseCase
- func (p *PaymentUseCase) Create(ctx context.Context, payment *entity.Payment) error
- func (p *PaymentUseCase) CreateQRCode(ctx context.Context, order *entity.Order) (*responsepaymentservice.CreateQRCode, error)
- func (p *PaymentUseCase) GetLastPaymentStatus(ctx context.Context, paymentId int) (enum.PaymentStatus, error)
- func (p *PaymentUseCase) PaymentNotification(ctx context.Context, paymentId int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderUseCase ¶
type OrderUseCase struct {
// contains filtered or unexported fields
}
func NewOrderUseCase ¶
func NewOrderUseCase(orderService contract.OrderService, logger *slog.Logger) *OrderUseCase
type PaymentUseCase ¶
type PaymentUseCase struct {
// contains filtered or unexported fields
}
func NewPaymentUseCase ¶
func NewPaymentUseCase(r contract.PaymentRepository, e contract.ExternalPaymentService, s contract.SnsService, logger *slog.Logger) *PaymentUseCase
func (*PaymentUseCase) CreateQRCode ¶
func (p *PaymentUseCase) CreateQRCode(ctx context.Context, order *entity.Order) (*responsepaymentservice.CreateQRCode, error)
func (*PaymentUseCase) GetLastPaymentStatus ¶
func (p *PaymentUseCase) GetLastPaymentStatus(ctx context.Context, paymentId int) (enum.PaymentStatus, error)
func (*PaymentUseCase) PaymentNotification ¶
func (p *PaymentUseCase) PaymentNotification(ctx context.Context, paymentId int) error
Click to show internal directories.
Click to hide internal directories.