mocks

package
v0.0.0-...-aa999d4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coinage

type Coinage struct {
	mock.Mock
}

Coinage is an autogenerated mock type for the Coinage type

func (*Coinage) AddOrUpdateCustomer

func (_m *Coinage) AddOrUpdateCustomer(_a0 *models.CustomerRequest) (*models.Customer, error)

AddOrUpdateCustomer provides a mock function with given fields: _a0

func (*Coinage) Customer

func (_m *Coinage) Customer(_a0 uuid.UUID) (*models.Customer, error)

Customer provides a mock function with given fields: _a0

func (*Coinage) Customers

func (_m *Coinage) Customers(_a0 int, _a1 int) ([]*models.Customer, error)

Customers provides a mock function with given fields: _a0, _a1

func (*Coinage) DeleteCustomer

func (_m *Coinage) DeleteCustomer(_a0 uuid.UUID) error

DeleteCustomer provides a mock function with given fields: _a0

func (*Coinage) DeletePlan

func (_m *Coinage) DeletePlan(_a0 uuid.UUID, _a1 uuid.UUID) error

DeletePlan provides a mock function with given fields: _a0, _a1

func (*Coinage) DeleteRoaster

func (_m *Coinage) DeleteRoaster(_a0 uuid.UUID) error

DeleteRoaster provides a mock function with given fields: _a0

func (*Coinage) DeleteSubscription

func (_m *Coinage) DeleteSubscription(_a0 uuid.UUID, _a1 string) error

DeleteSubscription provides a mock function with given fields: _a0, _a1

func (*Coinage) NewPlan

func (_m *Coinage) NewPlan(_a0 uuid.UUID, _a1 *models.PlanRequest) (*models.Plan, error)

NewPlan provides a mock function with given fields: _a0, _a1

func (*Coinage) NewRoaster

func (_m *Coinage) NewRoaster(_a0 *models.RoasterRequest) (*models.Roaster, error)

NewRoaster provides a mock function with given fields: _a0

func (*Coinage) NewSubscription

func (_m *Coinage) NewSubscription(_a0 uuid.UUID, _a1 *models.SubscribeRequest) error

NewSubscription provides a mock function with given fields: _a0, _a1

func (*Coinage) Plan

func (_m *Coinage) Plan(_a0 uuid.UUID, _a1 uuid.UUID) (*models.Plan, error)

Plan provides a mock function with given fields: _a0, _a1

func (*Coinage) Plans

func (_m *Coinage) Plans(_a0 uuid.UUID) ([]*models.Plan, error)

Plans provides a mock function with given fields: _a0

func (*Coinage) Roaster

func (_m *Coinage) Roaster(_a0 uuid.UUID) (*models.Roaster, error)

Roaster provides a mock function with given fields: _a0

type Stripe

type Stripe struct {
	mock.Mock
}

Stripe is an autogenerated mock type for the Stripe type

func (*Stripe) AddSource

func (_m *Stripe) AddSource(id string, token string) (*stripe.Customer, error)

AddSource provides a mock function with given fields: id, token

func (*Stripe) ApplicationFee

func (_m *Stripe) ApplicationFee() float64

ApplicationFee provides a mock function with given fields:

func (*Stripe) DeleteCustomer

func (_m *Stripe) DeleteCustomer(id string) error

DeleteCustomer provides a mock function with given fields: id

func (*Stripe) FeePercent

func (_m *Stripe) FeePercent() float64

FeePercent provides a mock function with given fields:

func (*Stripe) GetCustomer

func (_m *Stripe) GetCustomer(id string) (*stripe.Customer, error)

GetCustomer provides a mock function with given fields: id

func (*Stripe) GetPlan

func (_m *Stripe) GetPlan(secret string, pid string) (*stripe.Plan, error)

GetPlan provides a mock function with given fields: secret, pid

func (*Stripe) NewAccount

func (_m *Stripe) NewAccount(user *models.User, roaster *models.Roaster) (*stripe.Account, error)

NewAccount provides a mock function with given fields: user, roaster

func (*Stripe) NewCustomer

func (_m *Stripe) NewCustomer(token string, userID string) (string, error)

NewCustomer provides a mock function with given fields: token, userID

func (*Stripe) NewPlan

func (_m *Stripe) NewPlan(secret string, item *warehousemodels.Item, freq coinagemodels.Frequency) (*stripe.Plan, error)

NewPlan provides a mock function with given fields: secret, item, freq

func (*Stripe) Subscribe

func (_m *Stripe) Subscribe(roaster *coinagemodels.Roaster, id string, planID string, quantity uint64) (string, *stripe.Sub, error)

Subscribe provides a mock function with given fields: roaster, id, planID, quantity

Jump to

Keyboard shortcuts

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