mocks

package
v1.2.59 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCheckoutClient

type FakeCheckoutClient struct {
	mock.Mock
}

func (*FakeCheckoutClient) CheckWebhookKey

func (c *FakeCheckoutClient) CheckWebhookKey(keyCode, key string) bool

func (*FakeCheckoutClient) CreateInstrument added in v0.9.41

func (c *FakeCheckoutClient) CreateInstrument(request *instruments.Request) (*instruments.Response, error)

func (*FakeCheckoutClient) CreateToken added in v0.9.41

func (c *FakeCheckoutClient) CreateToken(request *tokens.Request) (string, error)

func (*FakeCheckoutClient) DeleteCustomerInstrument added in v0.9.20

func (c *FakeCheckoutClient) DeleteCustomerInstrument(instrumentID string) bool

func (*FakeCheckoutClient) GetCustomer added in v0.9.41

func (c *FakeCheckoutClient) GetCustomer(idOrEmail string) (bool, *checkout.CustomerResponse)

func (*FakeCheckoutClient) GetInstrument added in v0.9.50

func (c *FakeCheckoutClient) GetInstrument(sourceID string) (*instruments.Response, error)

func (*FakeCheckoutClient) GetPaymentDetail added in v0.9.55

func (c *FakeCheckoutClient) GetPaymentDetail(paymentID string) (*payments.PaymentResponse, error)

func (*FakeCheckoutClient) RequestPayment

func (c *FakeCheckoutClient) RequestPayment(request *payments.Request) *payments.Response

func (*FakeCheckoutClient) RequestRefunds added in v0.9.16

func (c *FakeCheckoutClient) RequestRefunds(amount uint64, paymentID, reference string, metadata map[string]string) *payments.RefundsResponse

func (*FakeCheckoutClient) SaveGetClient added in v0.9.41

func (c *FakeCheckoutClient) SaveGetClient(customerData *checkout.SaveCustomerRequest) (created bool, customer *checkout.CustomerResponse)

Jump to

Keyboard shortcuts

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