Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v1.3.248 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

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 added in v1.0.69

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 added in v1.0.56

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

func (*FakeStripeClient) CreateBillingPortalSession added in v1.0.67

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

func (*FakeStripeClient) CreateCheckoutSession added in v1.0.67

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

func (*FakeStripeClient) CreateCustomer added in v1.0.67

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

func (*FakeStripeClient) CreatePaymentIntentMultiparty added in v1.0.56

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

func (*FakeStripeClient) CreateRefundMultiparty added in v1.0.99

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

func (*FakeStripeClient) CreateSetupIntent added in v1.0.70

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

func (*FakeStripeClient) CreateSubscription added in v1.0.69

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

func (*FakeStripeClient) GetAccount added in v1.0.98

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

func (*FakeStripeClient) GetPaymentIntent added in v1.1.0

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

func (*FakeStripeClient) GetSubscription added in v1.0.76

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 added in v1.2.42

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

func (*FakeStripeClient) UpdateCustomer added in v1.0.71

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

func (*FakeStripeClient) UpdateSubscription added in v1.0.69

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

Jump to

Keyboard shortcuts

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