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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.