kyc

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotExist       = errors.New("org kyc doesn't exist")
	ErrKycLinkNotSet  = errors.New("link cannot be empty")
	ErrInvalidUUID    = errors.New("invalid syntax of uuid")
	ErrOrgDoesntExist = errors.New("org doesn't exist")
)

Functions

This section is empty.

Types

type KYC

type KYC struct {
	OrgID  string
	Status bool
	Link   string

	CreatedAt time.Time
	UpdatedAt time.Time
}

type Repository

type Repository interface {
	GetByOrgID(context.Context, string) (KYC, error)
	List(context.Context) ([]KYC, error)
	Upsert(context.Context, KYC) (KYC, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(repository Repository) *Service

func (Service) GetKyc

func (s Service) GetKyc(ctx context.Context, orgID string) (KYC, error)

func (Service) ListKycs added in v0.57.0

func (s Service) ListKycs(ctx context.Context) ([]KYC, error)

func (Service) SetKyc

func (s Service) SetKyc(ctx context.Context, kyc KYC) (KYC, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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