payment

package
v0.0.0-...-bbe9343 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package payment is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvalidPaymentAPIResponse

type InvalidPaymentAPIResponse struct {
	// contains filtered or unexported fields
}

InvalidPaymentAPIResponse is returned when an invalid status is returned from the payments api.

func (*InvalidPaymentAPIResponse) Error

func (e *InvalidPaymentAPIResponse) Error() string

type MockPayments

type MockPayments struct {
	// contains filtered or unexported fields
}

MockPayments is a mock of Payments interface.

func NewMockPayments

func NewMockPayments(ctrl *gomock.Controller) *MockPayments

NewMockPayments creates a new mock instance.

func (*MockPayments) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPayments) RefundRequestPost

func (m *MockPayments) RefundRequestPost(refundRequestURL string, patchBody data.RefundPostRequest, HTTPClient *http.Client, apiKey string) error

RefundRequestPost mocks base method.

type MockPaymentsMockRecorder

type MockPaymentsMockRecorder struct {
	// contains filtered or unexported fields
}

MockPaymentsMockRecorder is the mock recorder for MockPayments.

func (*MockPaymentsMockRecorder) RefundRequestPost

func (mr *MockPaymentsMockRecorder) RefundRequestPost(refundRequestURL, patchBody, HTTPClient, apiKey interface{}) *gomock.Call

RefundRequestPost indicates an expected call of RefundRequestPost.

type Payment

type Payment struct{}

Payment implements the Payment Interface.

func New

func New() *Payment

New returns a new implementation of the Payment Interface.

func (*Payment) RefundRequestPost

func (impl *Payment) RefundRequestPost(patchURL string, patchBody data.RefundPostRequest, httpClient *http.Client, apiKey string) error

RefundRequestPost executes a POST request to the specified URL.

type Payments

type Payments interface {
	RefundRequestPost(refundRequestURL string, patchBody data.RefundPostRequest, HTTPClient *http.Client, apiKey string) error
}

Payments implements the payments endpoints.

Jump to

Keyboard shortcuts

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