Documentation
¶
Index ¶
- type AccountService
- func (s *AccountService) CreateAccount(ctx context.Context, req models.CreateAccountRequest) (commons.Response[models.CreateAccountResponse], error)
- func (s *AccountService) DepositFunds(ctx context.Context, req models.DepositFundsRequest) (commons.Response[models.DepositFundsResponse], error)
- func (s *AccountService) GetAccount(ctx context.Context, accountNumber string, bankCode string) (commons.Response[models.GetAccountResponse], error)
- type ChargesService
- func (s *ChargesService) GetCharges(ctx context.Context, amount decimal.Decimal, fromCurrency string) (decimal.Decimal, string, decimal.Decimal, decimal.Decimal, decimal.Decimal, ...)
- func (s *ChargesService) GetChargesSummary(ctx context.Context, req models.GetChargesRequest) (commons.Response[models.GetChargesResponse], error)
- type ParticipantBankService
- type RateService
- func (s *RateService) ConvertRate(ctx context.Context, amount decimal.Decimal, fromCcy string, toCcy string) (decimal.Decimal, decimal.Decimal, string, error)
- func (s *RateService) GetCcyRates(ctx context.Context, req models.GetCcyRatesRequest) (commons.Response[models.GetCcyRatesResponse], error)
- func (s *RateService) GetRate(ctx context.Context, req models.GetRateRequest) (commons.Response[models.RateResponse], error)
- func (s *RateService) GetRates(ctx context.Context) (commons.Response[[]models.RateResponse], error)
- type TransferService
- type UserService
- func (s *UserService) CreateUser(ctx context.Context, req models.CreateUserRequest) (commons.Response[models.CreateUserResponse], error)
- func (s *UserService) GetUser(ctx context.Context, id string) (commons.Response[models.GetUserResponse], error)
- func (s *UserService) VerifyUserPin(ctx context.Context, customerID string, pin string) (commons.Response[models.VerifyUserPinResponse], error)
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) CreateAccount ¶
func (s *AccountService) CreateAccount(ctx context.Context, req models.CreateAccountRequest) (commons.Response[models.CreateAccountResponse], error)
func (*AccountService) DepositFunds ¶
func (s *AccountService) DepositFunds(ctx context.Context, req models.DepositFundsRequest) (commons.Response[models.DepositFundsResponse], error)
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 ¶
func (s *ChargesService) GetChargesSummary(ctx context.Context, req models.GetChargesRequest) (commons.Response[models.GetChargesResponse], error)
type ParticipantBankService ¶
type ParticipantBankService struct {
// contains filtered or unexported fields
}
func NewParticipantBankService ¶
func NewParticipantBankService(participantBankRepo domain.ParticipantBankRepository) *ParticipantBankService
func (*ParticipantBankService) GetParticipantBanks ¶
func (s *ParticipantBankService) GetParticipantBanks(ctx context.Context) (commons.Response[[]models.ParticipantBankResponse], error)
type RateService ¶
type RateService struct {
// contains filtered or unexported fields
}
func NewRateService ¶
func NewRateService(rateRepo repo_interfaces.RateRepository) *RateService
func (*RateService) ConvertRate ¶
func (*RateService) GetCcyRates ¶
func (s *RateService) GetCcyRates(ctx context.Context, req models.GetCcyRatesRequest) (commons.Response[models.GetCcyRatesResponse], error)
func (*RateService) GetRate ¶
func (s *RateService) GetRate(ctx context.Context, req models.GetRateRequest) (commons.Response[models.RateResponse], error)
func (*RateService) GetRates ¶
func (s *RateService) GetRates(ctx context.Context) (commons.Response[[]models.RateResponse], error)
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
func (*TransferService) TransferFunds ¶
func (s *TransferService) TransferFunds(ctx context.Context, req models.InternalTransferRequest) (commons.Response[models.InternalTransferResponse], error)
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(userRepo domain.UserRepository) *UserService
func (*UserService) CreateUser ¶
func (s *UserService) CreateUser(ctx context.Context, req models.CreateUserRequest) (commons.Response[models.CreateUserResponse], error)
func (*UserService) GetUser ¶
func (s *UserService) GetUser(ctx context.Context, id string) (commons.Response[models.GetUserResponse], error)
func (*UserService) VerifyUserPin ¶
func (s *UserService) VerifyUserPin(ctx context.Context, customerID string, pin string) (commons.Response[models.VerifyUserPinResponse], error)
Click to show internal directories.
Click to hide internal directories.