package errors

import "github.com/bitcoin-sv/spv-wallet/models"

// ErrInvalidPublicKey is returned when the public key provided by admin is invalid
var ErrInvalidPublicKey = models.SPVError{Message: "invalid public key", StatusCode: 400, Code: "error-user-invalid-pubkey"}

// ErrCreatingUser is returned when the user creation fails
var ErrCreatingUser = models.SPVError{Message: "error creating user", StatusCode: 500, Code: "error-user-creating"}

// ErrInvalidPaymail is returned when the paymail is invalid
var ErrInvalidPaymail = models.SPVError{Message: "invalid paymail", StatusCode: 400, Code: "error-user-invalid-paymail"}

// ErrInvalidAvatarURL is returned when the avatar url is invalid
var ErrInvalidAvatarURL = models.SPVError{Message: "invalid avatar url", StatusCode: 422, Code: "error-user-invalid-avatar-url"}

// ErrAddingPaymail is returned when the paymail addition fails
var ErrAddingPaymail = models.SPVError{Message: "error adding paymail", StatusCode: 500, Code: "error-user-adding-paymail"}

// ErrPaymailInconsistent is returned when both paymail address and alias + domain are provided and they are inconsistent
var ErrPaymailInconsistent = models.SPVError{Message: "inconsistent paymail address and alias/domain", StatusCode: 400, Code: "error-user-inconsistent-paymail"}

// ErrInvalidDomain is when the domain is wrong
var ErrInvalidDomain = models.SPVError{Message: "invalid domain", StatusCode: 400, Code: "error-invalid-domain"}
