mocks

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeStripeClient

type FakeStripeClient struct {
	mock.Mock
}

func (*FakeStripeClient) CancelSubscription

func (t *FakeStripeClient) CancelSubscription(subscriptionID string, cancelParams *stripe.SubscriptionCancelParams) (*stripe.Subscription, error)

func (*FakeStripeClient) ConstructWebhookEvent

func (t *FakeStripeClient) ConstructWebhookEvent(reqBody []byte, signature string, webhookKey string) (stripe.Event, error)

func (*FakeStripeClient) CreateAccount

func (t *FakeStripeClient) CreateAccount(accountParams *stripe.AccountParams) (*stripe.Account, error)
func (t *FakeStripeClient) CreateAccountLink(accountLinkParams *stripe.AccountLinkParams) (*stripe.AccountLink, error)

func (*FakeStripeClient) CreateBillingPortalSession

func (t *FakeStripeClient) CreateBillingPortalSession(billingPortalSParams *stripe.BillingPortalSessionParams) (*stripe.BillingPortalSession, error)

func (*FakeStripeClient) CreateCheckoutSession

func (t *FakeStripeClient) CreateCheckoutSession(checkoutSessionParams *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)

func (*FakeStripeClient) CreateCustomer

func (t *FakeStripeClient) CreateCustomer(customerParams *stripe.CustomerParams) (*stripe.Customer, error)

func (*FakeStripeClient) CreatePaymentIntentMultiparty

func (t *FakeStripeClient) CreatePaymentIntentMultiparty(
	paymentIntentParams *stripe.PaymentIntentParams,
	linkedAccountID string,
) (*stripe.PaymentIntent, error)

func (*FakeStripeClient) CreateRefundMultiparty

func (t *FakeStripeClient) CreateRefundMultiparty(refundParams *stripe.RefundParams, linkedAccountID string) (*stripe.Refund, error)

func (*FakeStripeClient) CreateSetupIntent

func (t *FakeStripeClient) CreateSetupIntent(setupIntentParams *stripe.SetupIntentParams) (*stripe.SetupIntent, error)

func (*FakeStripeClient) CreateSubscription

func (t *FakeStripeClient) CreateSubscription(subscriptionParams *stripe.SubscriptionParams) (*stripe.Subscription, error)

func (*FakeStripeClient) GetAccount

func (t *FakeStripeClient) GetAccount(accountID string, accountParams *stripe.AccountParams) (*stripe.Account, error)

func (*FakeStripeClient) GetPaymentIntent

func (t *FakeStripeClient) GetPaymentIntent(paymentIntentID string, paymentIntentParams *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)

func (*FakeStripeClient) GetSubscription

func (t *FakeStripeClient) GetSubscription(subscriptionID string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)

func (*FakeStripeClient) NewCheckoutSession

func (t *FakeStripeClient) NewCheckoutSession(
	paymentMethods []string,
	mode, successURL, cancelURL string,
	lineItems []*stripe.CheckoutSessionLineItemParams,
	_ []*stripe.CheckoutSessionDiscountParams) *stripe.CheckoutSession

func (*FakeStripeClient) UpdateAccount

func (t *FakeStripeClient) UpdateAccount(accountID string, accountParams *stripe.AccountParams) (*stripe.Account, error)

func (*FakeStripeClient) UpdateCustomer

func (t *FakeStripeClient) UpdateCustomer(customerID string, customerParams *stripe.CustomerParams) (*stripe.Customer, error)

func (*FakeStripeClient) UpdateSubscription

func (t *FakeStripeClient) UpdateSubscription(subscriptionID string, subscriptionParams *stripe.SubscriptionParams) (*stripe.Subscription, error)

type MockStripeBackend

type MockStripeBackend struct {
	mock.Mock
}

MockStripeBackend mock for Stripe Backend interface

func (*MockStripeBackend) Call

func (m *MockStripeBackend) Call(method, path, key string, params stripe.ParamsContainer, v stripe.LastResponseSetter) error

Call mock for Call method in Stripe Backend interface

func (*MockStripeBackend) CallMultipart

func (m *MockStripeBackend) CallMultipart(method, path, key, boundary string, body *bytes.Buffer, params *stripe.Params, v stripe.LastResponseSetter) error

CallMultipart mock for Call method in Stripe Backend interface

func (*MockStripeBackend) CallRaw

func (m *MockStripeBackend) CallRaw(method, path, key string, body []byte, params *stripe.Params, v stripe.LastResponseSetter) error

CallRaw mock for Call method in Stripe Backend interface v82 introduced breaking changes and modified the behavior of CallRaw https://github.com/stripe/stripe-go/releases/tag/v82.0.0

func (*MockStripeBackend) CallStreaming

func (m *MockStripeBackend) CallStreaming(method, path, key string, params stripe.ParamsContainer, v stripe.StreamingLastResponseSetter) error

CallStreaming mock for Call method in Stripe Backend interface

func (*MockStripeBackend) SetMaxNetworkRetries

func (m *MockStripeBackend) SetMaxNetworkRetries(maxNetworkRetries int64)

CallMultipart mock for Call method in Stripe Backend interface

Jump to

Keyboard shortcuts

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