service

package
v0.0.0-...-456c6e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	storage storage.DBRepository,
	bankClient simulator.BankClient,
	logger *slog.Logger,
) *Service

func (*Service) CreateNewPayment

func (s *Service) CreateNewPayment(payment entities.Payment) (string, error)

func (*Service) GetPaymentDetails

func (s *Service) GetPaymentDetails(merchantID, paymentID string) (entities.PaymentDetails, error)

func (*Service) RefundPayment

func (s *Service) RefundPayment(merchantID, paymentID string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL