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 ¶
func (m *MockPayments) EXPECT() *MockPaymentsMockRecorder
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 (*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.
Click to show internal directories.
Click to hide internal directories.