apivalidation

package
v3.22.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: GPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRepresentation

type CheckRepresentation struct {
	UserID    *string    `json:"userId,omitempty"`
	Operator  *string    `json:"operator,omitempty"`
	DateTime  *time.Time `json:"datetime,omitempty"`
	Status    *string    `json:"status,omitempty"`
	Type      *string    `json:"type,omitempty"`
	Nature    *string    `json:"nature,omitempty"`
	ProofData *[]byte    `json:"proofData,omitempty"`
	ProofType *string    `json:"proofType,omitempty"`
}

CheckRepresentation struct

func (*CheckRepresentation) ConvertToDBCheck

func (c *CheckRepresentation) ConvertToDBCheck() dto.DBCheck

ConvertToDBCheck creates a DBCheck

func (*CheckRepresentation) IsIdentificationAborted

func (c *CheckRepresentation) IsIdentificationAborted() bool

IsIdentificationAborted checks if the identification was aborted

func (*CheckRepresentation) IsIdentificationCanceled

func (c *CheckRepresentation) IsIdentificationCanceled() bool

IsIdentificationCanceled checks if the identification was canceled

func (*CheckRepresentation) IsIdentificationSuccessful

func (c *CheckRepresentation) IsIdentificationSuccessful() bool

IsIdentificationSuccessful tells whether a check is success or not

func (*CheckRepresentation) Validate

func (c *CheckRepresentation) Validate() error

Validate checks the validity of the given check

type PendingChecksRepresentation

type PendingChecksRepresentation struct {
	Nature *string `json:"nature,omitempty"`
}

PendingChecksRepresentation struct {

func (*PendingChecksRepresentation) Validate

func (cp *PendingChecksRepresentation) Validate() error

Validate checks the validity of the given pending check

type UserRepresentation

type UserRepresentation struct {
	ID                   *string    `json:"id,omitempty"`
	Username             *string    `json:"username,omitempty"`
	Gender               *string    `json:"gender,omitempty"`
	FirstName            *string    `json:"firstName,omitempty"`
	LastName             *string    `json:"lastName,omitempty"`
	Email                *string    `json:"email,omitempty"`
	EmailVerified        *bool      `json:"emailVerified,omitempty"`
	PhoneNumber          *string    `json:"phoneNumber,omitempty"`
	PhoneNumberVerified  *bool      `json:"phoneNumberVerified,omitempty"`
	BirthDate            *time.Time `json:"birthDate,omitempty"`
	BirthLocation        *string    `json:"birthLocation,omitempty"`
	Nationality          *string    `json:"nationality,omitempty"`
	IDDocumentType       *string    `json:"idDocumentType,omitempty"`
	IDDocumentNumber     *string    `json:"idDocumentNumber,omitempty"`
	IDDocumentExpiration *time.Time `json:"idDocumentExpiration,omitempty"`
	IDDocumentCountry    *string    `json:"idDocumentCountry,omitempty"`
}

UserRepresentation struct

func (*UserRepresentation) ExportToKeycloak

func (u *UserRepresentation) ExportToKeycloak(kcUser *kc.UserRepresentation)

ExportToKeycloak exports user details into a Keycloak UserRepresentation

func (*UserRepresentation) HasUpdateOfAccreditationDependantInformationDB

func (u *UserRepresentation) HasUpdateOfAccreditationDependantInformationDB(formerUserInfo dto.DBUser) bool

HasUpdateOfAccreditationDependantInformationDB checks user data contains an update of accreditation-dependant information

func (*UserRepresentation) HasUpdateOfAccreditationDependantInformationKC

func (u *UserRepresentation) HasUpdateOfAccreditationDependantInformationKC(formerUserInfo *kc.UserRepresentation) bool

HasUpdateOfAccreditationDependantInformationKC checks user data contains an update of accreditation-dependant information

func (*UserRepresentation) ImportFromKeycloak

func (u *UserRepresentation) ImportFromKeycloak(kcUser kc.UserRepresentation)

ImportFromKeycloak import details from Keycloak

func (*UserRepresentation) Validate

func (u *UserRepresentation) Validate() error

Validate checks the validity of the given User

Jump to

Keyboard shortcuts

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