validation

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: GPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

func NewValidator

func NewValidator() *Validator

NewValidator creates a new validator

func (*Validator) ValidateAmount

func (v *Validator) ValidateAmount(amount money.Money) error

ValidateAmount validates a monetary amount

func (*Validator) ValidatePaymentRequest

func (v *Validator) ValidatePaymentRequest(request *types.PaymentRequest) error

ValidatePaymentRequest validates a payment request

func (*Validator) ValidatePhoneNumber

func (v *Validator) ValidatePhoneNumber(phoneStr string) error

ValidatePhoneNumber validates a phone number string

Jump to

Keyboard shortcuts

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