billing

package
v0.0.0-...-52c27b0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Biller

type Biller interface {
	// data.Client is not a struct property because function needs to receive a transactional one
	PreparePerson(context.Context, *data.Client, *data.Person) error
	SyncPerson(*data.Person) error
	CreateCheckoutSession(*data.Person) (string, error)
	CreatePortalSession(*data.Person) (string, error)
	WebhookHandler() http.Handler
}

func NewBiller

func NewBiller(cfg *config.Config, log *slog.Logger, data *data.Client) Biller

type StripeBiller

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

func (*StripeBiller) CreateCheckoutSession

func (b *StripeBiller) CreateCheckoutSession(p *data.Person) (string, error)

func (*StripeBiller) CreatePortalSession

func (b *StripeBiller) CreatePortalSession(p *data.Person) (string, error)

func (*StripeBiller) PreparePerson

func (b *StripeBiller) PreparePerson(ctx context.Context, d *data.Client, p *data.Person) error

data.Client is not a struct property because function needs to receive a transactional one

func (*StripeBiller) SyncPerson

func (b *StripeBiller) SyncPerson(p *data.Person) error

func (*StripeBiller) WebhookHandler

func (b *StripeBiller) WebhookHandler() http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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