paddle

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "paddle"

Variables

This section is empty.

Functions

This section is empty.

Types

type EventProcessor

type EventProcessor struct {
	Tx  *gorm.DB
	Log logutil.Log
}

func (EventProcessor) Process

func (ep EventProcessor) Process(payload string, eventUUID string) error

type Provider

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

func NewProvider

func NewProvider(log logutil.Log, cfg config.Config) (*Provider, error)

func (Provider) CreateCustomer

func (p Provider) CreateCustomer(ctx context.Context, email string, token string) (*paymentprovider.Customer, error)

func (Provider) CreateSubscription

func (p Provider) CreateSubscription(ctx context.Context, cust string, seats int) (*paymentprovider.Subscription, error)

func (Provider) DeleteSubscription

func (p Provider) DeleteSubscription(ctx context.Context, cust string, sub string) error

func (Provider) GetEvent

func (p Provider) GetEvent(ctx context.Context, eventID string) (*paymentprovider.Event, error)

func (Provider) GetSubscription

func (p Provider) GetSubscription(ctx context.Context, cust string, sub string) (*paymentprovider.Subscription, error)

func (Provider) GetSubscriptions

func (p Provider) GetSubscriptions(ctx context.Context, cust string) ([]paymentprovider.Subscription, error)

func (Provider) Name

func (p Provider) Name() string

func (Provider) SetBaseURL

func (p Provider) SetBaseURL(u string) error

func (Provider) UpdateSubscription

Jump to

Keyboard shortcuts

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