mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* Reflect new amount for returned/reverted transaction. * Enhance payout and transfer response structures with transaction IDs and pending transaction IDs; * Update payment creation logic to utilize new fields. * Remove periodic execution of fetch_payments * Update ParentReference and Reference fields in payment model for transfer creation * Update pkg/client/ * Set return payment to SUCCEEDED, remove adjustment update * trigger ready for review * retrigger CI * Reuse Refund functionality instead of created Returned upsert operation * fix: ensure PendingTimeline and DeclinedTimeline are preserved in payments state test: add unit test to preserve timeline states in FetchNextPayments * Retrigger CI --------- Co-authored-by: gitstart_bot <[email protected]>
55 lines
1.7 KiB
Go
55 lines
1.7 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: webhooks.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source webhooks.go -destination webhookverifier_generated.go -package increase WebhookVerifier
|
|
//
|
|
|
|
// Package increase is a generated GoMock package.
|
|
package increase
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockWebhookVerifier is a mock of WebhookVerifier interface.
|
|
type MockWebhookVerifier struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockWebhookVerifierMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockWebhookVerifierMockRecorder is the mock recorder for MockWebhookVerifier.
|
|
type MockWebhookVerifierMockRecorder struct {
|
|
mock *MockWebhookVerifier
|
|
}
|
|
|
|
// NewMockWebhookVerifier creates a new mock instance.
|
|
func NewMockWebhookVerifier(ctrl *gomock.Controller) *MockWebhookVerifier {
|
|
mock := &MockWebhookVerifier{ctrl: ctrl}
|
|
mock.recorder = &MockWebhookVerifierMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockWebhookVerifier) EXPECT() *MockWebhookVerifierMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// verifyWebhookSignature mocks base method.
|
|
func (m *MockWebhookVerifier) verifyWebhookSignature(payload []byte, header string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "verifyWebhookSignature", payload, header)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// verifyWebhookSignature indicates an expected call of verifyWebhookSignature.
|
|
func (mr *MockWebhookVerifierMockRecorder) verifyWebhookSignature(payload, header any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "verifyWebhookSignature", reflect.TypeOf((*MockWebhookVerifier)(nil).verifyWebhookSignature), payload, header)
|
|
}
|