services

package
v0.0.0-...-9b6af93 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountService

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

func NewAccountService

func NewAccountService(
	accountRepo repo_interfaces.AccountRepository,
	userRepo domain.UserRepository,
	participantBankRepo domain.ParticipantBankRepository,
	greyBankCode string,
) *AccountService

func (*AccountService) GetAccount

func (s *AccountService) GetAccount(ctx context.Context, accountNumber string, bankCode string) (commons.Response[models.GetAccountResponse], error)

type ChargesService

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

func NewChargesService

func NewChargesService(rateRepo repo_interfaces.RateRepository, chargePercent decimal.Decimal, vatPercent decimal.Decimal, chargeMin decimal.Decimal, chargeMax decimal.Decimal) *ChargesService

func (*ChargesService) GetCharges

func (*ChargesService) GetChargesSummary

type ParticipantBankService

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

func NewParticipantBankService

func NewParticipantBankService(participantBankRepo domain.ParticipantBankRepository) *ParticipantBankService

func (*ParticipantBankService) GetParticipantBanks

type RateService

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

func NewRateService

func NewRateService(rateRepo repo_interfaces.RateRepository) *RateService

func (*RateService) ConvertRate

func (s *RateService) ConvertRate(ctx context.Context, amount decimal.Decimal, fromCcy string, toCcy string) (decimal.Decimal, decimal.Decimal, string, error)

func (*RateService) GetRate

func (*RateService) GetRates

type TransferService

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

func NewTransferService

func NewTransferService(
	transferRepo repo_interfaces.TransferRepository,
	accountRepo repo_interfaces.AccountRepository,
	transientAccountRepo repo_interfaces.TransientAccountRepository,
	transientAccountTransactionRepo repo_interfaces.TransientAccountTransactionRepository,
	participantBankRepo domain.ParticipantBankRepository,
	rateRepo repo_interfaces.RateRepository,
	userService service_interfaces.UserService,
	rateService service_interfaces.RateService,
	chargeService service_interfaces.ChargesService,
	greyBankCode string,
	internalTransientAccountNumber string,
	internalChargesAccountNumber string,
	internalVATAccountNumber string,
	externalUSDGLAccountNumber string,
	externalGBPGLAccountNumber string,
	externalEURGLAccountNumber string,
	externalNGNGLAccountNumber string,
) *TransferService

type UserService

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

func NewUserService

func NewUserService(userRepo domain.UserRepository) *UserService

func (*UserService) GetUser

func (*UserService) VerifyUserPin

func (s *UserService) VerifyUserPin(ctx context.Context, customerID string, pin string) (commons.Response[models.VerifyUserPinResponse], error)

Jump to

Keyboard shortcuts

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