Documentation
¶
Index ¶
- type FakeStripeClient
- func (t *FakeStripeClient) CancelSubscription(subscriptionID string, cancelParams *stripe.SubscriptionCancelParams) (*stripe.Subscription, error)
- func (t *FakeStripeClient) ConstructWebhookEvent(reqBody []byte, signature string, webhookKey string) (stripe.Event, error)
- func (t *FakeStripeClient) CreateAccount(accountParams *stripe.AccountParams) (*stripe.Account, error)
- func (t *FakeStripeClient) CreateAccountLink(accountLinkParams *stripe.AccountLinkParams) (*stripe.AccountLink, error)
- func (t *FakeStripeClient) CreateBillingPortalSession(billingPortalSParams *stripe.BillingPortalSessionParams) (*stripe.BillingPortalSession, error)
- func (t *FakeStripeClient) CreateCheckoutSession(checkoutSessionParams *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
- func (t *FakeStripeClient) CreateCustomer(customerParams *stripe.CustomerParams) (*stripe.Customer, error)
- func (t *FakeStripeClient) CreatePaymentIntentMultiparty(paymentIntentParams *stripe.PaymentIntentParams, linkedAccountID string) (*stripe.PaymentIntent, error)
- func (t *FakeStripeClient) CreateRefundMultiparty(refundParams *stripe.RefundParams, linkedAccountID string) (*stripe.Refund, error)
- func (t *FakeStripeClient) CreateSetupIntent(setupIntentParams *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
- func (t *FakeStripeClient) CreateSubscription(subscriptionParams *stripe.SubscriptionParams) (*stripe.Subscription, error)
- func (t *FakeStripeClient) GetAccount(accountID string, accountParams *stripe.AccountParams) (*stripe.Account, error)
- func (t *FakeStripeClient) GetPaymentIntent(paymentIntentID string, paymentIntentParams *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func (t *FakeStripeClient) GetSubscription(subscriptionID string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
- func (t *FakeStripeClient) NewCheckoutSession(paymentMethods []string, mode, successURL, cancelURL string, ...) *stripe.CheckoutSession
- func (t *FakeStripeClient) UpdateAccount(accountID string, accountParams *stripe.AccountParams) (*stripe.Account, error)
- func (t *FakeStripeClient) UpdateCustomer(customerID string, customerParams *stripe.CustomerParams) (*stripe.Customer, error)
- func (t *FakeStripeClient) UpdateSubscription(subscriptionID string, subscriptionParams *stripe.SubscriptionParams) (*stripe.Subscription, error)
- type MockStripeBackend
- func (m *MockStripeBackend) Call(method, path, key string, params stripe.ParamsContainer, ...) error
- func (m *MockStripeBackend) CallMultipart(method, path, key, boundary string, body *bytes.Buffer, params *stripe.Params, ...) error
- func (m *MockStripeBackend) CallRaw(method, path, key string, body []byte, params *stripe.Params, ...) error
- func (m *MockStripeBackend) CallStreaming(method, path, key string, params stripe.ParamsContainer, ...) error
- func (m *MockStripeBackend) SetMaxNetworkRetries(maxNetworkRetries int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeStripeClient ¶
func (*FakeStripeClient) CancelSubscription ¶
func (t *FakeStripeClient) CancelSubscription(subscriptionID string, cancelParams *stripe.SubscriptionCancelParams) (*stripe.Subscription, error)
func (*FakeStripeClient) ConstructWebhookEvent ¶
func (*FakeStripeClient) CreateAccount ¶
func (t *FakeStripeClient) CreateAccount(accountParams *stripe.AccountParams) (*stripe.Account, error)
func (*FakeStripeClient) CreateAccountLink ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.