Documentation ¶
Index ¶
- type PaymentProvider
- type PaymentProvider_Expecter
- type PaymentProvider_GetOwnerPlan_Call
- func (_c *PaymentProvider_GetOwnerPlan_Call) Return(_a0 payment.PaymentPlan, _a1 error) *PaymentProvider_GetOwnerPlan_Call
- func (_c *PaymentProvider_GetOwnerPlan_Call) Run(run func(ctx context.Context, owner string)) *PaymentProvider_GetOwnerPlan_Call
- func (_c *PaymentProvider_GetOwnerPlan_Call) RunAndReturn(run func(context.Context, string) (payment.PaymentPlan, error)) *PaymentProvider_GetOwnerPlan_Call
- type PaymentProvider_SaveSubscription_Call
- func (_c *PaymentProvider_SaveSubscription_Call) Return(_a0 error) *PaymentProvider_SaveSubscription_Call
- func (_c *PaymentProvider_SaveSubscription_Call) Run(run func(ctx context.Context, owner string, subscriptionID string)) *PaymentProvider_SaveSubscription_Call
- func (_c *PaymentProvider_SaveSubscription_Call) RunAndReturn(run func(context.Context, string, string) error) *PaymentProvider_SaveSubscription_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PaymentProvider ¶
PaymentProvider is an autogenerated mock type for the PaymentProvider type
func NewPaymentProvider ¶
func NewPaymentProvider(t mockConstructorTestingTNewPaymentProvider) *PaymentProvider
NewPaymentProvider creates a new instance of PaymentProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PaymentProvider) EXPECT ¶
func (_m *PaymentProvider) EXPECT() *PaymentProvider_Expecter
func (*PaymentProvider) GetOwnerPlan ¶
func (_m *PaymentProvider) GetOwnerPlan(ctx context.Context, owner string) (payment.PaymentPlan, error)
GetOwnerPlan provides a mock function with given fields: ctx, owner
func (*PaymentProvider) SaveSubscription ¶
func (_m *PaymentProvider) SaveSubscription(ctx context.Context, owner string, subscriptionID string) error
SaveSubscription provides a mock function with given fields: ctx, owner, subscriptionID
type PaymentProvider_Expecter ¶
type PaymentProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*PaymentProvider_Expecter) GetOwnerPlan ¶
func (_e *PaymentProvider_Expecter) GetOwnerPlan(ctx interface{}, owner interface{}) *PaymentProvider_GetOwnerPlan_Call
GetOwnerPlan is a helper method to define mock.On call
- ctx context.Context
- owner string
func (*PaymentProvider_Expecter) SaveSubscription ¶
func (_e *PaymentProvider_Expecter) SaveSubscription(ctx interface{}, owner interface{}, subscriptionID interface{}) *PaymentProvider_SaveSubscription_Call
SaveSubscription is a helper method to define mock.On call
- ctx context.Context
- owner string
- subscriptionID string
type PaymentProvider_GetOwnerPlan_Call ¶
PaymentProvider_GetOwnerPlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOwnerPlan'
func (*PaymentProvider_GetOwnerPlan_Call) Return ¶
func (_c *PaymentProvider_GetOwnerPlan_Call) Return(_a0 payment.PaymentPlan, _a1 error) *PaymentProvider_GetOwnerPlan_Call
func (*PaymentProvider_GetOwnerPlan_Call) Run ¶
func (_c *PaymentProvider_GetOwnerPlan_Call) Run(run func(ctx context.Context, owner string)) *PaymentProvider_GetOwnerPlan_Call
func (*PaymentProvider_GetOwnerPlan_Call) RunAndReturn ¶
func (_c *PaymentProvider_GetOwnerPlan_Call) RunAndReturn(run func(context.Context, string) (payment.PaymentPlan, error)) *PaymentProvider_GetOwnerPlan_Call
type PaymentProvider_SaveSubscription_Call ¶
PaymentProvider_SaveSubscription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveSubscription'
func (*PaymentProvider_SaveSubscription_Call) Return ¶
func (_c *PaymentProvider_SaveSubscription_Call) Return(_a0 error) *PaymentProvider_SaveSubscription_Call
func (*PaymentProvider_SaveSubscription_Call) Run ¶
func (_c *PaymentProvider_SaveSubscription_Call) Run(run func(ctx context.Context, owner string, subscriptionID string)) *PaymentProvider_SaveSubscription_Call
func (*PaymentProvider_SaveSubscription_Call) RunAndReturn ¶
func (_c *PaymentProvider_SaveSubscription_Call) RunAndReturn(run func(context.Context, string, string) error) *PaymentProvider_SaveSubscription_Call