service

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PwSaltBytes = 16
	ApiKeyBytes = 16
)

Variables

This section is empty.

Functions

func NewConfiguration

func NewConfiguration() *proxyClientApi.Configuration

Types

type IAuthenticationService

type IAuthenticationService interface {
	HandleJwtAuthentication(bearer string) (*model.Merchant, error)
	HandleLogin(email string, password string) (string, error)
	HandleApiAuthentication(apiKey string) (*model.Merchant, *model.ApiKey, error)
	CreateSecretApiKey(mode enum.Mode, apiKeyType enum.ApiKeyType) (*model.ApiKey, error)
	CreatePublicApiKey(mode enum.Mode, apiKeyType enum.ApiKeyType) (*model.ApiKey, error)
	CreateMerchant(registerRequestDto configApi.RegisterRequestDto) error
	HandleVerification(email string, verificationCode int64) error
}

func NewAuthenticationService

func NewAuthenticationService(
	merchantRepository repository.IMerchantRepository,
	apiKeyRepository repository.IApiKeyRepository,
) IAuthenticationService

type IInternalPaymentService

type IInternalPaymentService interface {
	HandlePaymentUpdate(payment internalApi.PaymentUpdateDto) error
}

func NewInternalPaymentService

func NewInternalPaymentService(paymentRepository repository.IPaymentRepository) IInternalPaymentService

type IPublicPaymentService

type IPublicPaymentService interface {
	HandleNewPayment(priceCurrency enum.FiatCurrency, priceAmount float64, wallet string, mode enum.Mode, callback string, merchant *model.Merchant) (*model.Payment, error)
}

func NewPublicPaymentService

func NewPublicPaymentService(merchantRepository repository.IMerchantRepository) IPublicPaymentService

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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