Documentation ¶
Index ¶
- type Coinage
- func (_m *Coinage) AddOrUpdateCustomer(_a0 *models.CustomerRequest) (*models.Customer, error)
- func (_m *Coinage) Customer(_a0 uuid.UUID) (*models.Customer, error)
- func (_m *Coinage) Customers(_a0 int, _a1 int) ([]*models.Customer, error)
- func (_m *Coinage) DeleteCustomer(_a0 uuid.UUID) error
- func (_m *Coinage) DeletePlan(_a0 uuid.UUID, _a1 uuid.UUID) error
- func (_m *Coinage) DeleteRoaster(_a0 uuid.UUID) error
- func (_m *Coinage) DeleteSubscription(_a0 uuid.UUID, _a1 string) error
- func (_m *Coinage) NewPlan(_a0 uuid.UUID, _a1 *models.PlanRequest) (*models.Plan, error)
- func (_m *Coinage) NewRoaster(_a0 *models.RoasterRequest) (*models.Roaster, error)
- func (_m *Coinage) NewSubscription(_a0 uuid.UUID, _a1 *models.SubscribeRequest) error
- func (_m *Coinage) Plan(_a0 uuid.UUID, _a1 uuid.UUID) (*models.Plan, error)
- func (_m *Coinage) Plans(_a0 uuid.UUID) ([]*models.Plan, error)
- func (_m *Coinage) Roaster(_a0 uuid.UUID) (*models.Roaster, error)
- type Stripe
- func (_m *Stripe) AddSource(id string, token string) (*stripe.Customer, error)
- func (_m *Stripe) ApplicationFee() float64
- func (_m *Stripe) DeleteCustomer(id string) error
- func (_m *Stripe) FeePercent() float64
- func (_m *Stripe) GetCustomer(id string) (*stripe.Customer, error)
- func (_m *Stripe) GetPlan(secret string, pid string) (*stripe.Plan, error)
- func (_m *Stripe) NewAccount(user *models.User, roaster *models.Roaster) (*stripe.Account, error)
- func (_m *Stripe) NewCustomer(token string, userID string) (string, error)
- func (_m *Stripe) NewPlan(secret string, item *warehousemodels.Item, freq coinagemodels.Frequency) (*stripe.Plan, error)
- func (_m *Stripe) Subscribe(roaster *coinagemodels.Roaster, id string, planID string, quantity uint64) (string, *stripe.Sub, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coinage ¶
Coinage is an autogenerated mock type for the Coinage type
func (*Coinage) AddOrUpdateCustomer ¶
AddOrUpdateCustomer provides a mock function with given fields: _a0
func (*Coinage) DeleteCustomer ¶
DeleteCustomer provides a mock function with given fields: _a0
func (*Coinage) DeletePlan ¶
DeletePlan provides a mock function with given fields: _a0, _a1
func (*Coinage) DeleteRoaster ¶
DeleteRoaster provides a mock function with given fields: _a0
func (*Coinage) DeleteSubscription ¶
DeleteSubscription provides a mock function with given fields: _a0, _a1
func (*Coinage) NewRoaster ¶
NewRoaster provides a mock function with given fields: _a0
func (*Coinage) NewSubscription ¶
NewSubscription provides a mock function with given fields: _a0, _a1
type Stripe ¶
Stripe is an autogenerated mock type for the Stripe type
func (*Stripe) ApplicationFee ¶
ApplicationFee provides a mock function with given fields:
func (*Stripe) DeleteCustomer ¶
DeleteCustomer provides a mock function with given fields: id
func (*Stripe) FeePercent ¶
FeePercent provides a mock function with given fields:
func (*Stripe) GetCustomer ¶
GetCustomer provides a mock function with given fields: id
func (*Stripe) NewAccount ¶
NewAccount provides a mock function with given fields: user, roaster
func (*Stripe) NewCustomer ¶
NewCustomer provides a mock function with given fields: token, userID