mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* feat(workflows): handle webhook idempotency in a different way * feat(adyen): add verify webhook and fix tests * fix(atlar): ensure plugin functions are tested * fix(bankingcircle): ensure plugin functions are tested * feat(column): add verify webhook method and fix tests * fix(currencycloud): ensure plugin functions are tested * fix(generic): ensure plugin functions are tested * feat(mangopay): add verify webhook method and fix tests * fix(modulr): ensure plugin functions are tested * fix(moneycorp): ensure plugin functions are tested * fix(stripe): ensure plugin functions are tested * feat(wise): add verify webhook method and fix tests * fix dirty * fix postgres idempotency key * fix wrong go libs version * fix coderabbitai * webhooks failing verification should stop temporal workflow
88 lines
3.6 KiB
Go
88 lines
3.6 KiB
Go
package plugins
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/formancehq/payments/internal/models"
|
|
)
|
|
|
|
type basePlugin struct{}
|
|
|
|
func NewBasePlugin() models.Plugin {
|
|
return &basePlugin{}
|
|
}
|
|
|
|
func (dp *basePlugin) Name() string {
|
|
return "default"
|
|
}
|
|
|
|
func (dp *basePlugin) Install(ctx context.Context, req models.InstallRequest) (models.InstallResponse, error) {
|
|
return models.InstallResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) Uninstall(ctx context.Context, req models.UninstallRequest) (models.UninstallResponse, error) {
|
|
return models.UninstallResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) FetchNextAccounts(ctx context.Context, req models.FetchNextAccountsRequest) (models.FetchNextAccountsResponse, error) {
|
|
return models.FetchNextAccountsResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) FetchNextBalances(ctx context.Context, req models.FetchNextBalancesRequest) (models.FetchNextBalancesResponse, error) {
|
|
return models.FetchNextBalancesResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) FetchNextExternalAccounts(ctx context.Context, req models.FetchNextExternalAccountsRequest) (models.FetchNextExternalAccountsResponse, error) {
|
|
return models.FetchNextExternalAccountsResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) FetchNextPayments(ctx context.Context, req models.FetchNextPaymentsRequest) (models.FetchNextPaymentsResponse, error) {
|
|
return models.FetchNextPaymentsResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) FetchNextOthers(ctx context.Context, req models.FetchNextOthersRequest) (models.FetchNextOthersResponse, error) {
|
|
return models.FetchNextOthersResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) CreateBankAccount(ctx context.Context, req models.CreateBankAccountRequest) (models.CreateBankAccountResponse, error) {
|
|
return models.CreateBankAccountResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) CreateTransfer(ctx context.Context, req models.CreateTransferRequest) (models.CreateTransferResponse, error) {
|
|
return models.CreateTransferResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) ReverseTransfer(ctx context.Context, req models.ReverseTransferRequest) (models.ReverseTransferResponse, error) {
|
|
return models.ReverseTransferResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) PollTransferStatus(ctx context.Context, req models.PollTransferStatusRequest) (models.PollTransferStatusResponse, error) {
|
|
return models.PollTransferStatusResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) CreatePayout(ctx context.Context, req models.CreatePayoutRequest) (models.CreatePayoutResponse, error) {
|
|
return models.CreatePayoutResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) ReversePayout(ctx context.Context, req models.ReversePayoutRequest) (models.ReversePayoutResponse, error) {
|
|
return models.ReversePayoutResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) PollPayoutStatus(ctx context.Context, req models.PollPayoutStatusRequest) (models.PollPayoutStatusResponse, error) {
|
|
return models.PollPayoutStatusResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) CreateWebhooks(ctx context.Context, req models.CreateWebhooksRequest) (models.CreateWebhooksResponse, error) {
|
|
return models.CreateWebhooksResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) VerifyWebhook(ctx context.Context, req models.VerifyWebhookRequest) (models.VerifyWebhookResponse, error) {
|
|
return models.VerifyWebhookResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
func (dp *basePlugin) TranslateWebhook(ctx context.Context, req models.TranslateWebhookRequest) (models.TranslateWebhookResponse, error) {
|
|
return models.TranslateWebhookResponse{}, ErrNotImplemented
|
|
}
|
|
|
|
var _ models.Plugin = &basePlugin{}
|