transactions

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package transactions is a generated GoMock package.

Package transactions is a generated GoMock package.

Index

Constants

View Source
const (
	RequestDataType = "timelineTransactions"
)

Variables

View Source
var ErrEventTypeUnsupported = errors.New("unsupported event type")

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(reader portfolio.ReaderInterface) Client

func (Client) Get

func (c Client) Get() ([]ResponseItem, error)

type ClientInterface added in v0.10.0

type ClientInterface interface {
	Get() ([]ResponseItem, error)
}

type EventType added in v0.6.0

type EventType string
const (
	EventTypePaymentInbound                EventType = "PAYMENT_INBOUND"
	EventTypePaymentInboundSepaDirectDebit EventType = "PAYMENT_INBOUND_SEPA_DIRECT_DEBIT"
	EventTypePaymentOutbound               EventType = "PAYMENT_OUTBOUND"
	EventTypeOrderExecuted                 EventType = "ORDER_EXECUTED"
	EventTypeSavingsPlanExecuted           EventType = "SAVINGS_PLAN_EXECUTED"
	EventTypeInterestPayoutCreated         EventType = "INTEREST_PAYOUT_CREATED"
	EventTypeCredit                        EventType = "CREDIT"
	EventTypeBenefitsSavebackExecution     EventType = "benefits_saveback_execution"
	EventTypeBenefitsSpareChangeExecution  EventType = "benefits_spare_change_execution"
	EventTypeCardSuccessfulTransaction     EventType = "card_successful_transaction"
	EventTypeCardRefund                    EventType = "card_refund"
)

type EventTypeResolver added in v0.6.0

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

func NewEventTypeResolver added in v0.6.0

func NewEventTypeResolver(logger *log.Logger) EventTypeResolver

func (EventTypeResolver) Resolve added in v0.6.0

func (e EventTypeResolver) Resolve(response ResponseItem) (EventType, error)

type EventTypeResolverInterface added in v0.6.0

type EventTypeResolverInterface interface {
	Resolve(response ResponseItem) (EventType, error)
}

type MockClientInterface added in v0.10.0

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

MockClientInterface is a mock of ClientInterface interface.

func NewMockClientInterface added in v0.10.0

func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface

NewMockClientInterface creates a new mock instance.

func (*MockClientInterface) EXPECT added in v0.10.0

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

func (*MockClientInterface) Get added in v0.10.0

func (m *MockClientInterface) Get() ([]ResponseItem, error)

Get mocks base method.

type MockClientInterfaceMockRecorder added in v0.10.0

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

MockClientInterfaceMockRecorder is the mock recorder for MockClientInterface.

func (*MockClientInterfaceMockRecorder) Get added in v0.10.0

Get indicates an expected call of Get.

type MockEventTypeResolverInterface added in v0.10.0

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

MockEventTypeResolverInterface is a mock of EventTypeResolverInterface interface.

func NewMockEventTypeResolverInterface added in v0.10.0

func NewMockEventTypeResolverInterface(ctrl *gomock.Controller) *MockEventTypeResolverInterface

NewMockEventTypeResolverInterface creates a new mock instance.

func (*MockEventTypeResolverInterface) EXPECT added in v0.10.0

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

func (*MockEventTypeResolverInterface) Resolve added in v0.10.0

Resolve mocks base method.

type MockEventTypeResolverInterfaceMockRecorder added in v0.10.0

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

MockEventTypeResolverInterfaceMockRecorder is the mock recorder for MockEventTypeResolverInterface.

func (*MockEventTypeResolverInterfaceMockRecorder) Resolve added in v0.10.0

Resolve indicates an expected call of Resolve.

type Response

type Response struct {
	Type  string       `json:"type"`
	Items ResponseItem `json:"data"`
}

type ResponseItem added in v0.10.0

type ResponseItem struct {
	Action    ResponseItemAction `json:"action,omitempty"`
	Amount    ResponseItemAmount `json:"amount"`
	Badge     any                `json:"badge,omitempty"`
	EventType string             `json:"eventType"`
	Icon      string             `json:"icon"`
	ID        string             `json:"id"`
	Status    string             `json:"status"`
	SubAmount ResponseItemAmount `json:"subAmount,omitempty"`
	Subtitle  string             `json:"subtitle,omitempty"`
	Timestamp string             `json:"timestamp"`
	Title     string             `json:"title"`
}

type ResponseItemAction added in v0.10.0

type ResponseItemAction struct {
	Payload string `json:"payload"`
	Type    string `json:"type"`
}

func (ResponseItemAction) HasTimelineDetail added in v0.10.0

func (a ResponseItemAction) HasTimelineDetail() bool

type ResponseItemAmount added in v0.10.0

type ResponseItemAmount struct {
	Currency       string  `json:"currency"`
	FractionDigits uint8   `json:"fractionDigits"`
	Value          float32 `json:"value"`
}

Jump to

Keyboard shortcuts

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