Documentation ¶
Index ¶
- func All(DB *gorm.DB) ([]schema.Payment, error)
- func Create(DB *gorm.DB, payment *schema.Payment) (*schema.Payment, error)
- func Delete(DB *gorm.DB, ID string) error
- func DeleteAll(DB *gorm.DB) error
- func Get(DB *gorm.DB, ID string) (*schema.Payment, error)
- func SetAll(DB *gorm.DB, payments []schema.Payment) ([]schema.Payment, error)
- func Update(DB *gorm.DB, ID string, payment *schema.Payment) (*schema.Payment, error)
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ValidationError ¶
type ValidationError struct {
// contains filtered or unexported fields
}
ValidationError describes the incorrectness of a payment operation
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.