customer

package
v0.0.0-...-8bae9e1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	Name      string
	Canonical string
	Address   address.Address
	VATNumber string
}

type Repository

type Repository interface {
	Create(ctx context.Context, c *Customer) error
	Find(ctx context.Context, canonical string) (*Customer, error)
	Filter(ctx context.Context) ([]*Customer, error)
	Update(ctx context.Context, ID string, c *Customer) error
	Delete(ctx context.Context, ID string) error
}

Jump to

Keyboard shortcuts

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